
/* 
整体布局设置
使用Flexbox和Grid实现响应式布局，确保在不同屏幕尺寸下内容的自适应和排列。
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主体背景颜色和字体设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A 70%, #054B2C 25%, #FF9D33 5%);
    color: #333333;
    line-height: 1.6;
    padding-top: 80px; /* 为固定导航栏预留空间 */
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background-color: rgba(30, 58, 138, 0.9); /* 半透明主色调 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航栏中的链接样式 */
.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 12px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FF9D33; /* 点缀色悬停效果 */
}

/* 主视觉区样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 75, 44, 0.6); /* 辅助色覆盖 */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    animation: fadeIn 2s ease-in-out;
}

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

.hero-content p {
    font-size: 18px;
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.chapter-nav a {
    background-color: #054B2C;
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.chapter-nav a:hover {
    background-color: #FF9D33;
    transform: scale(1.1);
}

/* 内容模块样式 */
.module {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.module:nth-child(even) {
    flex-direction: row-reverse;
}

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

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

.module-content {
    animation: slideIn 1s ease-out;
}

.module-content h2, .module-content h3, .module-content h4 {
    color: #1E3A8A;
    margin-bottom: 15px;
}

.module-content p {
    margin-bottom: 20px;
}

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

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #1E3A8A;
    color: #FFFFFF;
}

table pre {
    background-color: #F5F5F5;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

table code {
    font-family: 'Courier New', Courier, monospace;
    color: #054B2C;
}

/* 按钮样式 */
.button, .register-button {
    background-color: #FF9D33;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover, .register-button:hover {
    background-color: #e68a28;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 折叠内容样式 */
.collapsible {
    background-color: #054B2C;
    color: #FFFFFF;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}

.collapsible:hover {
    background-color: #FF9D33;
}

.collapsible:after {
    content: '\002B';
    color: #FFFFFF;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2212";
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 代码块样式 */
pre code {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #054B2C;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module {
        grid-template-columns: 1fr;
    }

    .chapter-nav {
        display: none; /* 移动端隐藏侧边导航 */
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* 图文并茂的图片悬停效果 */
.decorative-image {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* 提示文本样式 */
.reference-note {
    text-align: center;
    padding: 20px;
    background-color: #054B2C;
    color: #FFFFFF;
    font-size: 18px;
    margin: 40px 0;
    border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
}


