/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 唐朝古典配色 */
    --primary-color: #8B4513;      /* 褐色 - 主色调 */
    --secondary-color: #D4AF37;     /* 金色 */
    --accent-color: #DC143C;        /* 朱红色 */
    --dark-bg: #1a0f0a;            /* 深褐色背景 */
    --light-bg: #f5e6d3;           /* 米黄色背景 */
    --text-dark: #2c1810;          /* 深色文字 */
    --text-light: #f5e6d3;         /* 浅色文字 */
    --border-color: #8B4513;       /* 边框色 */
    --shadow-color: rgba(139, 69, 19, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'STKaiti', 'KaiTi', '楷体', 'SimSun', '宋体', serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 背景装饰 ==================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(26, 15, 10, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B4513' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* ==================== 头部导航 ==================== */
.header {
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.95) 0%, rgba(26, 15, 10, 0.85) 100%);
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2em;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    letter-spacing: 0.3em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* ==================== 主视觉区域 ==================== */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(rgba(26, 15, 10, 0.7), rgba(26, 15, 10, 0.8)),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '诡';
    position: absolute;
    font-size: 30rem;
    color: rgba(212, 175, 55, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3em;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 2;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 20, 60, 0.5);
    border-color: var(--secondary-color);
}

/* ==================== 简介区域 ==================== */
.intro-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.5) 0%, rgba(26, 15, 10, 0.8) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    letter-spacing: 0.3em;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 2.2;
    text-align: center;
}

.intro-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.intro-content strong {
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== 三季导航 ==================== */
.seasons-nav-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.8) 0%, rgba(26, 15, 10, 0.9) 100%);
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.season-nav-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(26, 15, 10, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
    display: block;
}

.season-nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.season-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.season-nav-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
    letter-spacing: 0.1em;
}

.season-info {
    color: rgba(245, 230, 211, 0.8);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.season-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 1rem;
}

/* ==================== 章节卡片 ==================== */
.episodes-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.season-two {
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.9) 0%, rgba(26, 15, 10, 0.95) 100%);
}

.season-three {
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.95) 0%, rgba(26, 15, 10, 1) 100%);
}

.season-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--text-light);
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.season-meta {
    color: rgba(245, 230, 211, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

.season-summary {
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
    line-height: 2;
    font-size: 1.1rem;
}

.episode-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(26, 15, 10, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.episode-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.episode-title {
    font-size: 2rem;
    color: var(--secondary-color);
    flex: 1;
    letter-spacing: 0.2em;
}

.episode-range {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--secondary-color);
}

.episode-content {
    color: var(--text-light);
}

.episode-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.episode-summary h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.episode-summary p {
    font-size: 1.1rem;
    line-height: 2;
}

.episode-details {
    margin-bottom: 2rem;
}

.episode-details h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.episode-details ul {
    list-style: none;
    padding-left: 0;
}

.episode-details li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    position: relative;
    line-height: 1.8;
}

.episode-details li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.episode-details li:last-child {
    border-bottom: none;
}

.episode-details strong {
    color: var(--secondary-color);
    font-weight: bold;
}

.episode-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.keyword {
    background: rgba(220, 20, 60, 0.2);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.keyword:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* ==================== 人物区域 ==================== */
.characters-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.9) 0%, rgba(26, 15, 10, 0.7) 100%);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.character-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(26, 15, 10, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.character-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--secondary-color);
}

.character-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

.character-role {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.character-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==================== 时间线 ==================== */
.timeline-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--secondary-color);
    z-index: 1;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(26, 15, 10, 0.6) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    letter-spacing: 0.2em;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== FAQ部分 ==================== */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.85) 0%, rgba(26, 15, 10, 0.9) 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(26, 15, 10, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==================== SEO关键词区域 ==================== */
.seo-keywords {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.9) 0%, rgba(26, 15, 10, 0.95) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
    line-height: 2;
    color: rgba(245, 230, 211, 0.8);
}

.seo-keywords h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.2em;
}

.seo-keywords p {
    margin-bottom: 1rem;
    text-indent: 2em;
}

.seo-keywords strong {
    color: var(--secondary-color);
    font-weight: normal;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-top: 2px solid var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
    color: var(--text-light);
    opacity: 0.7;
}

/* ==================== 动画 ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .episode-title {
        font-size: 1.5rem;
    }
    
    .episode-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: -35px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .episode-card {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .footer,
    .cta-button,
    .nav-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .episode-card {
        break-inside: avoid;
        border: 1px solid #333;
    }
}

