
/* 基础样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 使用清晰易读的字体 */
    background: linear-gradient(135deg, #0D47A1, #1565C0); /* 主色调深蓝色渐变背景 */
    color: #FFFFFF; /* 文字颜色为白色 */
    transition: background 0.3s ease, color 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background-color: rgba(13, 71, 161, 0.8); /* 半透明深蓝色背景 */
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FFA000; /* 辅助色橙色悬停效果 */
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    right: 20px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-nav a {
    background: #FF8F00; /* 辅助色橙色背景 */
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.chapter-nav a:hover {
    background: #FFA000;
    transform: scale(1.05);
}

/* 主要内容区域样式 */
.container {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero .cta-button {
    background: #FF8F00;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero .cta-button:hover {
    background: linear-gradient(45deg, #FF8F00, #FFA000);
    transform: scale(1.05);
}

/* 模块化内容区 */
.section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.section h2, .section h3, .section h4 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.section p {
    font-size: 16px;
    line-height: 1.6;
    color: #E0E0E0;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

    .chapter-nav {
        display: none;
    }

    .container {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .section {
        padding: 60px 20px;
    }

    .section p {
        font-size: 14px;
    }
}

/* 代码块样式 */
.code-block {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.code-block code {
    display: block;
    white-space: pre;
}

/* 提示文字样式 */
.reference-note {
    font-size: 16px;
    color: #FF8F00;
    text-align: center;
    margin: 40px 0;
    font-weight: bold;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #1565C0;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collapsible:hover {
    background-color: #0D47A1;
}

.content {
    padding: 0 18px;
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    margin-bottom: 20px;
}

/* 滚动平滑效果 */
html {
    scroll-behavior: smooth;
}

