
/* 全局样式设置，确保页面在不同设备上的良好展示 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代、简洁的无衬线字体 */
    background: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%); /* 主色调渐变背景 */
    color: #ffffff; /* 统一文本颜色为白色，确保与深色背景对比明显 */
    line-height: 1.6;
}

/* 设置响应式容器，控制内容宽度 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(44, 62, 80, 0.9); /* 半透明背景 */
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.navbar a {
    color: #ffffff;
    padding: 14px 20px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar a:hover {
    color: #ff6600; /* 点缀色用于悬停效果 */
    background-color: rgba(255, 255, 255, 0.1);
}

/* 主视觉区块样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px 50px 20px; /* 顶部留白避免被固定导航栏覆盖 */
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.6); /* 叠加层增强文字可读性 */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #dcdcdc;
}

.hero-content .cta-button {
    background-color: #ff6600;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.hero-content .cta-button:hover {
    background-color: #ff8533;
    transform: scale(1.05);
}

/* 章节导航系统样式 */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px 0;
}

.section-nav a {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.section-nav a:hover {
    background-color: #ff6600;
    transform: translateY(-5px);
}

/* 文章内容区块样式 */
.article-section {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.article-section h3 {
    font-size: 24px;
    margin-top: 30px;
    color: #ff6600;
}

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

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

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

/* 图片样式，应用圆角、阴影和悬停效果 */
.article-section img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 0;
}

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

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

.article-section table, 
.article-section th, 
.article-section td {
    border: 1px solid #ffffff;
}

.article-section th, 
.article-section td {
    padding: 12px;
    text-align: left;
}

.article-section th {
    background-color: rgba(255, 102, 0, 0.7);
    color: #ffffff;
}

.article-section td {
    background-color: rgba(44, 62, 80, 0.8);
    color: #dcdcdc;
}

/* CSS代码示例块样式 */
.code-sample {
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-sample code {
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 按钮样式 */
.button {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.button:hover {
    background-color: #ff8533;
    transform: scale(1.05);
}

/* 页脚样式 */
.footer {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px;
    text-align: center;
    color: #dcdcdc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .section-nav {
        flex-direction: column;
        align-items: center;
    }

    .article-section img {
        max-width: 100%;
    }
}

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

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 悬停放大与阴影变化效果 */
.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 透明度与模糊效果 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin: 20px 0;
}

/* 黄金比例色彩分配 */
:root {
    --main-color: #1E3C72; /* 主色（蓝色） */
    --secondary-color: #ffffff; /* 辅色（白色） */
    --accent-color: #ff6600; /* 点缀色（橙色） */
}


