
/* 全局样式设置，包括字体、背景、颜色等 */
/* 设置整体字体和背景渐变，营造复古与现代融合的氛围 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #F5F5DC 70%, #556B2F 25%, #FFD700 5%);
    color: #333;
    line-height: 1.6;
    transition: background 0.5s ease-in-out;
}

/* 设置容器的最大宽度和内边距，确保内容在不同屏幕上有良好的展示 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 头部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(85, 107, 47, 0.9);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar a:hover {
    color: #B22222;
}

/* 主内容区域的样式 */
.main-content {
    flex: 3;
    min-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

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

/* 文章标题样式 */
h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #8B4513;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #B22222;
}

/* 图片样式，确保不超过最大宽度，并添加圆角、阴影、悬停效果 */
img.decorative {
    max-width: 650px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 重要提示样式，突出显示 */
.notice {
    background: #FFD700;
    padding: 10px;
    border-left: 5px solid #B22222;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

/* 链接样式，确保内部链接有no-follow属性 */
a[rel="nofollow"] {
    color: #556B2F;
    text-decoration: underline;
}

/* 响应式设计，适配不同屏幕尺寸 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 10px 0;
    }
}

/* 折叠区域样式，用于次要信息显示 */
.collapsible {
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.active, .collapsible:hover {
    background-color: #ddd;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
    border-left: 3px solid #556B2F;
    margin-bottom: 15px;
}

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

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

/* 引导区样式，使用渐变和动画增强视觉效果 */
.intro-section {
    background: linear-gradient(45deg, #FFEBCD, #8B4513);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    animation: fadeIn 2s ease-in;
}

.intro-section h1 {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.intro-section p {
    font-size: 18px;
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 14px;
    color: #8B4513;
    margin: 20px 0;
}

/* 按钮样式 */
.btn-cta {
    background-color: #FFD700;
    border: 2px solid #B22222;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-cta:hover {
    border-color: #8B0000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* 固定导航栏优化，避免内容隐藏 */
body {
    padding-top: 80px;
}

