
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1E3C72 70%, #2A5298 25%, #FF6B6B 5%); /* 使用渐变色，符合黄金比配色原则 */
    color: #ffffff;
    line-height: 1.6;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.7); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影增加深度感 */
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.navbar .nav-links a {
    color: #FFD93D; /* 辅助色用于导航链接 */
    margin-left: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #FF6B6B; /* 点缀色用于悬停效果 */
}

/* 主内容区域样式 */
.container {
    padding: 100px 20px 50px 20px; /* 顶部留出导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1); /* 玻璃拟态效果的背景 */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); /* 阴影增加层次感 */
    backdrop-filter: blur(10px); /* 背景模糊 */
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px); /* 悬停时的微动画效果 */
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
}

.section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #FFD93D;
}

.section p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.section pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.section pre code {
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.section table th,
.section table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

.section table th {
    background: rgba(30, 60, 114, 0.9);
    color: #FFD93D;
}

.section table td {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

/* 图像样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05); /* 悬停时放大 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 导航锚点样式 */
.nav-anchor {
    position: relative;
    top: -80px; /* 调整锚点位置以匹配滚动效果 */
    visibility: hidden;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

/* 页脚样式 */
.footer {
    background: rgba(30, 60, 114, 0.8); /* 半透明背景 */
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer a {
    color: #FFD93D;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FF6B6B;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links a {
        margin: 10px 0;
    }

    .section {
        padding: 20px;
    }

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