
/* 
    页面整体样式设计
    采用HTML5和CSS3技术，实现响应式、多样化的排版风格与布局。
    主要使用深蓝色（#12263B）作为主色调，亮橙色（#FFA726）作为辅助色，绿色（#66BB6A）作为点缀色。
    背景使用紫色渐变（从#456990到#1E3D59），营造科技感与现代感。
    文字采用无衬线字体，如‘Segoe UI’，确保内容清晰易读。
    图片样式包括圆角、阴影、悬浮效果及精致边框，增强视觉美感。
    各个段落通过渐变线条和留白进行分隔，确保页面布局清晰且层次分明。
    卡片式布局通过Flexbox和Grid实现，确保响应式设计在不同设备上表现良好。
    所有内部链接添加rel="nofollow"属性，禁止外部链接。
*/

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #456990, #1E3D59);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #FFFFFF;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 38, 59, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.navbar a {
    color: #FFA726;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}

.navbar a:hover {
    color: #FF9800;
    transition: color 0.3s;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    height: 100%;
    background-color: #12263B;
    padding: 20px;
}

.sidebar a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    margin: 15px 0;
    font-size: 16px;
}

.sidebar a:hover {
    color: #FFA726;
    transition: color 0.3s;
}

/* 内容区域 */
.content {
    margin-left: 220px;
    padding: 80px 20px 20px 20px;
}

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

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 卡片样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #12263B;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 按钮样式 */
.button {
    background-color: #FFA726;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #FF9800;
}

/* 正数显示样式 */
.positive {
    color: #66BB6A;
    font-weight: bold;
}

/* 图片样式 */
img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 渐变分隔线 */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #FFA726, #66BB6A);
    margin: 40px 0;
    border: none;
}

/* 代码块样式 */
.code-block {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    color: #FFFFFF;
}

/* 特别提示样式 */
.special-note {
    background-color: rgba(255, 167, 38, 0.2);
    padding: 15px;
    border-left: 5px solid #FFA726;
    margin-bottom: 30px;
    font-size: 18px;
}

/* 导航系统样式 */
.chapter-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.chapter-navigation a {
    background-color: #66BB6A;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.chapter-navigation a:hover {
    background-color: #4CAF50;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 150px;
    }
    
    .content {
        margin-left: 170px;
        padding: 80px 10px 10px 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    
    .content {
        margin-left: 0;
        padding: 80px 10px 10px 10px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* 加载动画样式 */
.loading-animation {
    width: 100px;
    height: 100px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: contain;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按钮按下效果 */
.button:active {
    transform: scale(0.95);
}

/* 卡片悬浮阴影加深 */
.card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

