
/* 全局样式设置，包括字体、背景色和基本布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #f0f0f0;
    line-height: 1.6;
}

/* 容器设置，限制内容宽度并居中显示 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 导航链接样式 */
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #aa4b6b;
    transform: scale(1.1);
}

/* 章节导航系统样式 */
.section-nav {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 10px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.section-nav a:hover {
    color: #aa4b6b;
}

/* 主要内容区块的样式 */
.section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.section:last-child {
    border-bottom: none;
}

/* 标题样式 */
h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 正文内容样式 */
p {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* 代码块样式，使用单独的背景和字体 */
code {
    background: rgba(0, 0, 0, 0.7);
    color: #00ffea;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* 预格式化文本块的样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

pre code {
    color: #00ffea;
    font-size: 14px;
}

/* 图片样式，包含圆角、阴影和悬停效果 */
img.decorative {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* 强调提示文字 */
.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    color: #ffdd57;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #3b8d99, #6b6b83, #aa4b6b);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #6b6b83, #aa4b6b, #3b8d99);
    transform: scale(1.05);
}

/* 玻璃拟态卡片样式 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease-in-out;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.2);
}

/* 动态背景渐变 */
.background-gradient {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #5a3f72, #8e2de2);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式设计，调整不同屏幕尺寸下的布局 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links a {
        margin: 0 5px;
        font-size: 14px;
    }

    .section-nav {
        display: none;
    }

    img.decorative {
        width: 100%;
        height: auto;
    }

    .container {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .button {
        font-size: 14px;
    }
}

/* 3D 变换效果 */
.immersive-experience {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.immersive-experience:hover {
    transform: rotateY(20deg) rotateX(10deg);
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.icon:hover {
    fill: #aa4b6b;
}

/* 黄金比配色 */
.main-color {
    color: #1e3c72; /* 主色 */
}

.secondary-color {
    color: #2a5298; /* 辅色 */
}

.accent-color {
    color: #aa4b6b; /* 点缀色 */
}

/* 数据图表背景动态效果 */
.data-chart {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.data-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(270deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);
    animation: moveGradient 10s linear infinite;
}

@keyframes moveGradient {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* 流动的渐变背景 */
.dynamic-background {
    animation: gradientShift 10s infinite;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 统一按钮样式 */
.button {
    background: linear-gradient(45deg, #3b8d99, #6b6b83, #aa4b6b);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(45deg, #6b6b83, #aa4b6b, #3b8d99);
    transform: scale(1.05);
}

/* 字体层次 */
.title {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
}

.subtitle {
    font-size: 1.5em;
    font-weight: 600;
    color: #d1d1d1;
}

.text {
    font-size: 1em;
    font-weight: 400;
    color: #f0f0f0;
}

