
/* 主体样式设置 */
/* 设置全局的字体、背景色和基本排版 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif; /* 使用易读的无衬线字体 */
    background: linear-gradient(135deg, #f0f4f8 70%, #d0d4d8 25%, #ff6f61 5%); /* 使用线性渐变背景，遵循色彩比例 */
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden; /* 避免出现水平滚动条 */
}

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

/* 导航链接样式 */
.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s;
}

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

/* 主要内容容器 */
.container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 40px;
    padding: 100px 80px 60px 80px; /* 顶部留出导航栏空间 */
}

/* 文章正文样式 */
.main-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 500px; /* 确保每个块的最小宽度 */
}

.main-content h2, .main-content h3, .main-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.main-content p {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 侧边栏样式 */
.sidebar {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 500px;
}

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

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

/* 代码块样式 */
pre code {
    display: block;
    padding: 20px;
    background-color: #2d2d2d;
    color: #f8f8f2;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    margin-bottom: 20px;
}

pre code::before {
    content: "代码示例";
    position: absolute;
    top: -20px;
    left: 20px;
    background-color: #34495e;
    color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮样式 */
.button-primary {
    display: inline-block;
    background-color: #e67e22; /* 辅助色 */
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}

.button-primary:hover {
    transform: translateY(-3px);
    background-color: #d35400;
}

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

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px 40px;
    }
    .sidebar {
        display: none; /* 隐藏侧边栏以优化移动端体验 */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }
    .main-content, .sidebar {
        padding: 20px;
    }
}

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

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

/* 滚动触发动画 */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 留白与布局平衡 */
.section {
    margin-bottom: 60px;
}

/* 强调视觉焦点 */
.highlight {
    color: #ff6f61; /* 点缀色 */
    font-weight: bold;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 视觉引导 */
.hero {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6);
}

.hero-text {
    position: relative;
    color: #fff;
    font-size: 32px;
    text-align: center;
    z-index: 1;
}

/* Chatbot样式 */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

.chatbot:hover {
    transform: scale(1.1);
}

/* 添加更多样式以满足设计需求... */

