/* 西游记扎根理论研究网站 - 统一样式表 */
/* 版本: 1.0 */
/* 日期: 2026年1月7日 */

/* ==================== CSS变量定义 ==================== */
:root {
    /* 主色调 */
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #c53030;
    
    /* 文字颜色 */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-accent: #ebf8ff;
    
    /* 边框颜色 */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    
    /* 成功色 */
    --success-color: #38a169;
    --success-light: #f0fff4;
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', 'Source Serif Pro', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

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

/* ==================== 页面头部 ==================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* ==================== 导航栏 ==================== */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
}

nav a:hover {
    background-color: var(--bg-accent);
    border-bottom-color: var(--secondary-color);
}

nav a.active {
    border-bottom-color: var(--secondary-color);
    background-color: var(--bg-accent);
}

/* ==================== 主要内容 ==================== */
.main-content {
    padding: 40px 0;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* ==================== 统计卡片样式 ==================== */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-card .number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.stat-card .label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item .value {
    font-size: 2.5rem;
    font-weight:  页面分析报告.md;
    color: var(--success-color);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-box .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.stat-box .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== 按钮样式 ==================== */
.link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.link-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==================== 表格样式 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.data-table tr:hover {
    background: var(--bg-accent);
}

.data-table .total-row {
    background: linear-gradient(135deg, var(--success-light) 0%, #c6f6d5 100%);
    font-weight: 700;
}

/* ==================== 列表样式 ==================== */
ul {
    padding-left: 20px;
    line-height: 2;
}

li {
    margin-bottom: 8px;
}

/* ==================== 代码块样式 ==================== */
code {
    background: var(--bg-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.9em;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .stat-card .number {
        font-size: 3.5rem;
    }
    
    .stat-item .value {
        font-size: 2rem;
    }
    
    .stat-box .value {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== 页脚样式 ==================== */
footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}