/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #CD853F;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* 首页英雄区 */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 页面标题 */
.page-header {
    background: var(--gradient-1);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 章节标题 */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
}

/* 时间轴 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    width: 150px;
    padding: 1rem;
    background: var(--gradient-gold);
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    border: 2px solid transparent;
}

.timeline-year::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.3s ease;
    z-index: 1;
}

.timeline-year:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.timeline-content {
    width: 100%;
    max-width: 800px;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* 数据统计 */
.stats-section {
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--gradient-1);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 内容卡片 */
.info-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.8rem;
}

.info-card h4 {
    color: var(--accent-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

/* 系统图表 */
.system-diagram {
    margin: 2rem 0;
}

.system-level {
    margin-bottom: 2rem;
}

.system-level h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.system-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.system-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-origin: center;
}

.system-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.system-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* 表格 */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background: var(--gradient-1);
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

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

/* 特性列表 */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 垂直时间轴 */
.timeline-vertical {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-gold);
}

.timeline-v-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-v-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-v-year {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-v-content h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* 考试类型 */
.exam-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.exam-type-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--secondary-color);
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.exam-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.exam-type-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 税收系统 */
.tax-system {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tax-item {
    flex: 1;
    min-width: 200px;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.tax-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

/* 理念网格 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.philosophy-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.philosophy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.philosophy-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 外交网格 */
.diplomacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.diplomacy-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.diplomacy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.diplomacy-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.diplomacy-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.diplomacy-card li {
    margin: 0.5rem 0;
}

/* 丝绸之路 */
.silk-road-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.route-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.route-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.route-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 民族卡片 */
.ethnic-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ethnic-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.ethnic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ethnic-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 长安特色 */
.chang-an-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 事件时间轴 */
.event-timeline {
    margin: 2rem 0;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-year {
    font-weight: bold;
    color: white;
    background: var(--gradient-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transform-origin: center;
    border: 2px solid transparent;
}

.event-year::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.event-year::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.3s ease;
    z-index: 1;
}

.event-item:hover .event-year {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-content {
    text-align: center;
    width: 100%;
}

.event-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.event-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 人物网格 */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.figure-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.figure-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.figure-card.highlight {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.figure-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 皇帝头像样式 */
.emperor-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.emperor-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    position: relative;
}

.emperor-svg,
.emperor-svg-large {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.emperor-card-animated .emperor-svg-large {
    animation: float 3s ease-in-out infinite;
}

.emperor-card-animated:hover .emperor-svg-large {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(212, 175, 55, 0.4));
}

/* 皇帝头像动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 皇帝卡片轮播 */
.emperors-section {
    margin: 4rem 0;
}

.emperors-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.emperors-carousel::-webkit-scrollbar {
    height: 8px;
}

.emperors-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.emperors-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.emperor-card {
    min-width: 250px;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.emperor-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.emperor-card:hover::before {
    animation: shimmer 1.5s infinite;
    opacity: 1;
}

.emperor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--secondary-color);
}

.animated-card {
    animation: fadeInUp 0.6s ease-out;
}

.animated-card:nth-child(1) {
    animation-delay: 0.1s;
}

.animated-card:nth-child(2) {
    animation-delay: 0.2s;
}

.animated-card:nth-child(3) {
    animation-delay: 0.3s;
}

.animated-card:nth-child(4) {
    animation-delay: 0.4s;
}

.emperor-card h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.emperor-card p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.emperor-desc {
    font-weight: bold;
    color: var(--secondary-color) !important;
    font-size: 1rem;
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--gradient-gold);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 星星闪烁动画 */
.star {
    animation: pulse 2s ease-in-out infinite;
}

/* 响应式设计 - 皇帝头像 */
@media (max-width: 768px) {
    .emperors-carousel {
        gap: 1rem;
        padding: 1rem 0;
    }

    .emperor-card {
        min-width: 200px;
        padding: 1.5rem;
    }

    .emperor-avatar {
        width: 120px;
        height: 120px;
    }

    .emperor-avatar-large {
        width: 100px;
        height: 100px;
    }
}

.figure-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.figure-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.figure-content {
    text-align: left;
    margin-top: 1rem;
}

.figure-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.figure-quote {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    color: var(--text-light);
}

/* 事件卡片 */
.events-timeline {
    margin: 2rem 0;
}

.event-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.event-card.major {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.event-card.critical {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffe6e6 0%, #ffffff 100%);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-year {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.event-header h3 {
    color: var(--primary-color);
    margin: 0;
}

/* 诗歌流派 */
.poetry-schools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.school-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.school-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 书法大师 */
.calligraphy-masters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.master-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.master-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.master-card.highlight {
    border-left-color: var(--secondary-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.master-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 绘画类型 */
.painting-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.painting-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.painting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.painting-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
}

/* 音乐舞蹈 */
.music-dance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.md-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.md-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.md-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 科技成就 */
.tech-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tech-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tech-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-card ul {
    padding-left: 1.5rem;
}

.tech-card li {
    margin: 0.5rem 0;
}

/* 思想宗教 */
.philosophy-religion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pr-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.pr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pr-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 工艺美术 */
.crafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.craft-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.craft-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.craft-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 创作说明页面 */
.design-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.point-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    cursor: pointer;
}

.point-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.point-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-organization {
    margin: 1.5rem 0;
}

.org-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.org-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reflection {
    margin: 1.5rem 0;
}

.reflection p {
    margin: 1rem 0;
    line-height: 1.8;
}

.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid var(--secondary-color);
}

.key-feature {
    margin: 1.5rem 0;
}

.key-feature p {
    margin: 1rem 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.tech-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.tech-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.tech-list li::before {
    content: '⚙️';
    position: absolute;
    left: 0;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 4rem;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        margin: 0 0 1rem 0;
        transform: none;
    }

    .timeline-year:hover {
        transform: translateY(-3px) !important;
    }

    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 0;
    }

    .container {
        padding: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .features-grid,
    .stats-grid,
    .figures-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
}

