
/* 基础样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    overflow-x: hidden;
}

/* 标题与段落样式 */
h1, h2, h3 {
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

p {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

a {
    color: #39ff14;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    alt: "";
}

/* 动画与交互效果 */
.button {
    background-color: #39ff14;
    color: #000046;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background-color: #1cb5e0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #39ff14;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1, h2 {
        font-size: 1.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    p {
        font-size: 0.9rem;
    }
}

/* 示例数据展示 */
.data-module {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 文章代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #39ff14;
    font-family: 'Fira Code', monospace;
}

/* 提示信息 */
.note {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

