/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

:root {
    --primary-color: #8B0000; /* 暗红色 */
    --primary-dark: #600000; /* 深暗红色 */
    --primary-light: #A52A2A; /* 浅暗红色 */
    --secondary-color: #F5F5DC; /* 米黄色 */
    --secondary-dark: #E8E8C8; /* 深米黄色 */
    --secondary-light: #FFFEF0; /* 浅米黄色 */
    --text-color: #2D2D2D; /* 主文本颜色 */
    --text-light: #4A4A4A; /* 浅文本颜色 */
    --accent-color: #D4AF37; /* 金色强调 */
    --redacted-bg: #1a1a1a; /* 已编辑内容背景 */
    --header-font: 'Courier New', Courier, monospace;
    --body-font: 'Courier New', Courier, monospace;
    
    /* 附加色彩 */
    --success-color: #4CAF50; /* 绿色 - 成功/正确 */
    --error-color: #F44336; /* 红色 - 错误/警告 */
    --info-color: #2196F3; /* 蓝色 - 信息 */
    --warning-color: #FF9800; /* 橙色 - 警告 */
    --note-color: #9C27B0; /* 紫色 - 注释 */
    
    /* 背景色 */
    --bg-light: #F5F5F5; /* 浅灰色背景 */
    --bg-dark: #333333; /* 深灰色背景 */
    --bg-code: #F8F8F8; /* 代码块背景 */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--secondary-color);
    position: relative;
}

/* 通用容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-color);
}

.navbar.scrolled {
    background-color: rgba(139, 0, 0, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    letter-spacing: 1px;
    position: relative;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
}

.security-level {
    position: absolute;
    bottom: -15px;
    left: 50px;
    font-size: 0.7rem;
    color: var(--accent-color);
    background-color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-family: var(--header-font);
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* 主内容区样式 */
main {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    min-height: 100vh;
}

/* 标题部分样式 */
.guide-header {
    background-color: var(--secondary-dark);
    padding: 60px 0 40px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.document-number, .document-clearance, .document-version {
    font-size: 0.85rem;
    color: var(--primary-color);
    background-color: rgba(139, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

.guide-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--header-font);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--header-font);
    letter-spacing: 1px;
}

.guidance-notice {
    background-color: rgba(139, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.guidance-notice i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--primary-color);
}

/* 报告内容区 */
.novel-section {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.novel-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.novel-section:nth-child(even) {
    background-color: var(--secondary-light);
}

.novel-section:nth-child(odd) {
    background-color: white;
}

.novel-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    font-family: var(--header-font);
    display: flex;
    align-items: center;
}

.novel-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    font-family: var(--header-font);
    text-align: center;
}

.section-content {
    max-width: 980px;
    margin: 0 auto;
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-indent: 2em;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-content p.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 对话样式 */
.dialogue {
    color: var(--primary-dark);
    font-style: italic;
    position: relative;
    animation: fadeInDialogue 1s forwards;
    opacity: 0;
}

@keyframes fadeInDialogue {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 日记样式 */
.journal-entry {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--secondary-light);
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.journal-entry p {
    text-indent: 1em;
    margin-bottom: 15px;
}

/* 导航控制 */
.navigation-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.chapter-nav {
    position: fixed;
    top: 100px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.chapter-nav-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
}

.chapter-nav-item:hover, .chapter-nav-item.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-light);
    padding: 80px 0 30px;
    border-top: 3px solid var(--accent-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkZCQThFOTYyNUNBMzExRTM5MzA0QTY5MDVGQkVCOTBDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkZCQThFOTYzNUNBMzExRTM5MzA0QTY5MDVGQkVCOTBDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RkJBOEU5NjA1Q0EzMTFFMzkzMDRBNjkwNUZCRUI5MEMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RkJBOEU5NjE1Q0EzMTFFMzkzMDRBNjkwNUZCRUI5MEMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7MR4jLAAAAHUlEQVR42mJkYGD4z8DAwMgAJYAUMDIyQjlAAgwABnkANGK/+VsAAAAASUVORK5CYII=');
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--header-font);
    letter-spacing: 1px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.motto {
    font-style: italic;
    color: var(--accent-color);
    margin: 15px 0;
    font-weight: bold;
    font-family: var(--header-font);
}

.metadata-info {
    margin-bottom: 20px;
}

.metadata-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--secondary-light);
    font-family: 'Courier New', Courier, monospace;
}

.metadata-info i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--secondary-light);
    position: relative;
    z-index: 2;
    font-family: 'Courier New', Courier, monospace;
}

.footer-warning {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.classification-tag {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid var(--accent-color);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #F5F5DC;
    font-family: 'Courier New', Courier, monospace;
    transition: opacity 0.8s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(245, 245, 220, 0.3);
    border-radius: 50%;
    border-top-color: #F5F5DC;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 雾气特效 */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
    display: none;
}

.fog-img {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fogAnimation 10s infinite alternate;
}

.fog-1 {
    background-image: url('https://assets.codepen.io/747/fog-1.png');
    animation-delay: 0s;
}

.fog-2 {
    background-image: url('https://assets.codepen.io/747/fog-2.png');
    animation-delay: 2s;
}

.fog-3 {
    background-image: url('https://assets.codepen.io/747/fog-2.png');
    animation-delay: 4s;
    transform: scaleX(-1);
}

@keyframes fogAnimation {
    0% {
        opacity: 0.1;
        transform: translateX(-5%) translateY(0);
    }
    100% {
        opacity: 0.3;
        transform: translateX(5%) translateY(0);
    }
}

/* 古朴纸张效果 */
.section-content {
    position: relative;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
    opacity: 0.2;
    pointer-events: none;
}

/* 悬浮时间标记 */
.time-marker {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.novel-section:hover .time-marker {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: all 0.5s ease;
        z-index: 999;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links li {
        margin: 15px 0;
    }
    .guide-header h1 {
        font-size: 2rem;
    }
    .footer-column {
        flex: 100%;
    }
    .chapter-nav {
        top: auto;
        left: 20px;
        bottom: 20px;
        flex-direction: row;
    }
    .navigation-controls {
        bottom: 20px;
        right: 20px;
    }
}

/* 翻页提示 */
.page-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(139, 0, 0, 0.7);
    color: var(--secondary-light);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-indicator span {
    margin: 0 10px;
}

.page-indicator a {
    color: var(--secondary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.page-indicator a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* 修改雾气效果默认样式 */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
    display: none; /* 默认隐藏 */
}

/* 激活状态的雾气按钮 */
.nav-button.active {
    background-color: var(--accent-color) !important;
    transform: scale(1.1);
}

/* 优化脚注导航样式 */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.footer-links li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a.active {
    color: var(--accent-color);
    font-weight: bold;
}

.footer-links .current {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    margin: 10px 0;
}

/* 更新章节导航样式以适应7个部分 */
.chapter-nav-item {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.page-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(139, 0, 0, 0.9);
    color: var(--secondary-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-indicator a {
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.page-indicator a i {
    font-size: 0.5rem;
}

/* 适配更多章节的响应式设计 */
@media (max-width: 768px) {
    .chapter-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}