/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2A2228;
    background-color: #F4EFE6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #A0312A 0%, #7F231C 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #A0312A 0%, #7F231C 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: white;
    color: #A0312A;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background-color: white;
    color: #A0312A;
}

/* 章节样式 */
.chapters-section,
.tools-section,
.reports-section {
    padding: 80px 20px;
}

.chapters-section h2,
.tools-section h2,
.reports-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2A2228;
}

.part-section {
    margin-bottom: 60px;
}

.part-section h3 {
    font-size: 1.8rem;
    color: #A0312A;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #A0312A;
}

.chapters-grid,
.tools-grid,
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.chapter-card,
.tool-card,
.report-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #2A2228;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chapter-card:hover,
.tool-card:hover,
.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.chapter-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.chapter-number {
    font-size: 2rem;
    font-weight: bold;
    color: #A0312A;
    min-width: 60px;
}

.chapter-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2A2228;
}

.chapter-content p {
    color: #4A3F45;
    font-size: 0.9rem;
}

/* 工具卡片样式 */
.tool-card,
.report-card {
    text-align: center;
    padding: 30px 20px;
}

.tool-card i,
.report-card i {
    font-size: 3rem;
    color: #A0312A;
    margin-bottom: 20px;
}

.tool-card h3,
.report-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2A2228;
}

.tool-card p,
.report-card p {
    color: #4A3F45;
    font-size: 0.9rem;
}

/* 背景色区分 */
.tools-section {
    background-color: #f1f3f5;
}

/* 底部 */
.footer {
    background-color: #2A2228;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chapters-grid,
    .tools-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* 代码高亮样式 */
.code-block {
    background-color: #F4EFE6;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    overflow-x: auto;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #A0312A;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid #A0312A;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: #F4EFE6;
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
}

/* 列表样式 */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 5px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #2A2228;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* 段落样式 */
p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 强调样式 */
strong {
    color: #A0312A;
    font-weight: 600;
}

em {
    color: #7F231C;
}

/* 链接样式 */
a {
    color: #A0312A;
    transition: color 0.3s ease;
}

a:hover {
    color: #7F231C;
}