/* ==========================================================================
   泉下里高岭黄氏族谱官网 - 主样式表
   主色调：帝王黄 / 金色 / 深红
   ========================================================================== */

/* 变量定义 */
:root {
    --imperial-gold: #D4AF37;          /* 帝王金 */
    --deep-gold: #B8860B;               /* 深金 */
    --light-gold: #F4E4BC;              /* 浅金 */
    --pale-gold: #FFF8DC;               /* 淡金 */
    --royal-yellow: #FFD700;            /* 皇家黄 */
    --amber: #FFBF00;                   /* 琥珀色 */
    --deep-red: #8B0000;                /* 深红 */
    --crimson: #DC143C;                 /* 猩红 */
    --ink-black: #1a1a1a;               /* 墨黑 */
    --charcoal: #333333;                /* 炭灰 */
    --paper-cream: #FDF5E6;             /* 宣纸色 */
    --rice-paper: #FAF0E6;              /* 米纸色 */
    --bamboo-green: #228B22;            /* 竹青 */
    --jade-green: #00A86B;              /* 翠绿 */
    --shadow-gold: rgba(212, 175, 55, 0.3);
}

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "KaiTi", "楷体", "STKaiti", "Microsoft YaHei", "微软雅黑", serif;
    background: var(--paper-cream);
    color: var(--charcoal);
    line-height: 1.8;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at top, var(--pale-gold) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, var(--light-gold) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, var(--deep-red) 0%, #6b0000 50%, var(--deep-red) 100%);
    color: var(--imperial-gold);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--imperial-gold);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-emblem {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, var(--royal-yellow) 0%, var(--imperial-gold) 50%, var(--deep-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--deep-red);
    border: 3px solid var(--royal-yellow);
    box-shadow: 0 0 15px var(--shadow-gold), inset 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: "STKaiti", "KaiTi", serif;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 3px;
    color: var(--royal-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "STKaiti", "KaiTi", serif;
}

.logo-text p {
    font-size: 12px;
    color: var(--light-gold);
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--light-gold);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--deep-red);
    background: linear-gradient(135deg, var(--royal-yellow), var(--imperial-gold));
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--royal-yellow);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--imperial-gold);
    color: var(--royal-yellow);
    font-size: 24px;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Hero 横幅区域 */
.hero {
    position: relative;
    height: 500px;
    background: 
        linear-gradient(180deg, rgba(139, 0, 0, 0.85) 0%, rgba(107, 0, 0, 0.7) 50%, rgba(139, 0, 0, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z' fill='%23D4AF37' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: cover, 200px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
}

.hero-title {
    font-size: 72px;
    color: var(--royal-yellow);
    letter-spacing: 15px;
    margin-bottom: 20px;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.5),
        0 0 30px var(--shadow-gold);
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px var(--shadow-gold);
    }
    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--light-gold);
    letter-spacing: 8px;
    margin-bottom: 30px;
    font-family: "STKaiti", "KaiTi", serif;
}

.hero-divider {
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--imperial-gold), transparent);
    margin: 20px auto;
    position: relative;
}

.hero-divider::before,
.hero-divider::after {
    content: '❖';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--royal-yellow);
    font-size: 16px;
}

.hero-divider::before {
    left: -20px;
}

.hero-divider::after {
    right: -20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--pale-gold);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 2;
    letter-spacing: 2px;
}

/* 通用容器 */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 通用区块标题 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--deep-red);
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.section-title .subtitle {
    font-size: 16px;
    color: var(--deep-gold);
    letter-spacing: 4px;
    font-family: "STKaiti", "KaiTi", serif;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.title-decoration .line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--imperial-gold));
}

.title-decoration .line:last-child {
    background: linear-gradient(90deg, var(--imperial-gold), transparent);
}

.title-decoration .diamond {
    color: var(--imperial-gold);
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: linear-gradient(135deg, #fff 0%, var(--pale-gold) 100%);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-red), var(--imperial-gold), var(--deep-red));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(212, 175, 55, 0.4);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--imperial-gold), var(--deep-gold));
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-gold);
    font-family: "STKaiti", "KaiTi", serif;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, var(--royal-yellow), var(--imperial-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-red {
    background: linear-gradient(135deg, var(--crimson), var(--deep-red));
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-red:hover {
    background: linear-gradient(135deg, #ff4444, var(--crimson));
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--imperial-gold);
    color: var(--deep-gold);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--imperial-gold);
    color: #fff;
}

/* 三卷导航卡片 */
.volumes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.volume-card {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(180deg, #fff 0%, var(--pale-gold) 100%);
    border-radius: 16px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(212, 175, 55, 0.3);
    transition: all 0.5s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.volume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--deep-red), var(--imperial-gold), var(--deep-red));
    border-radius: 0 0 6px 6px;
}

.volume-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(212, 175, 55, 0.5);
}

.volume-icon {
    width: 100px;
    height: 100px;
    margin: 20px auto 30px;
    background: radial-gradient(circle, var(--royal-yellow) 0%, var(--imperial-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--deep-red);
    box-shadow: 
        0 8px 30px var(--shadow-gold),
        inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: bold;
}

.volume-card h3 {
    font-size: 32px;
    color: var(--deep-red);
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.volume-card .volume-subtitle {
    font-size: 14px;
    color: var(--deep-gold);
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.volume-card .volume-desc {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 2;
    margin-bottom: 30px;
    min-height: 90px;
}

/* 源流时间线 */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--deep-red), var(--imperial-gold), var(--deep-red));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: linear-gradient(135deg, #fff, var(--pale-gold));
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, var(--royal-yellow), var(--imperial-gold));
    border-radius: 50%;
    border: 4px solid var(--paper-cream);
    box-shadow: 0 0 0 3px var(--imperial-gold), 0 0 20px var(--shadow-gold);
    z-index: 1;
}

.timeline-year {
    font-size: 20px;
    color: var(--deep-red);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.timeline-title {
    font-size: 22px;
    color: var(--charcoal);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: "STKaiti", "KaiTi", serif;
}

.timeline-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 世系图 */
.genealogy-tree {
    background: var(--rice-paper);
    border-radius: 16px;
    padding: 50px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
    overflow-x: auto;
}

.generation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.generation:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background: var(--imperial-gold);
}

.person-node {
    background: linear-gradient(135deg, #fff, var(--light-gold));
    border: 2px solid var(--imperial-gold);
    border-radius: 10px;
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
    position: relative;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.person-node:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.person-node.founder {
    background: linear-gradient(135deg, var(--deep-red), #6b0000);
    border-color: var(--royal-yellow);
    color: var(--royal-yellow);
}

.person-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: "STKaiti", "KaiTi", serif;
}

.person-title {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* 祖训展示 */
.ancestor-instruction {
    background: 
        linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(107, 0, 0, 0.95)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='30' y='35' text-anchor='middle' font-size='20' fill='%23D4AF37' fill-opacity='0.1' font-family='serif'%3E%E9%BB%84%3C/text%3E%3C/svg%3E");
    color: var(--light-gold);
    padding: 60px;
    border-radius: 16px;
    margin: 40px 0;
    position: relative;
    border: 2px solid var(--imperial-gold);
}

.ancestor-instruction h3 {
    font-size: 32px;
    text-align: center;
    color: var(--royal-yellow);
    margin-bottom: 30px;
    letter-spacing: 8px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.instruction-text {
    font-size: 18px;
    line-height: 2.5;
    letter-spacing: 3px;
    text-align: center;
    font-family: "STKaiti", "KaiTi", serif;
}

.instruction-text p {
    margin-bottom: 15px;
}

/* 页面内容区 */
.page-content {
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 0;
    background: 
        linear-gradient(180deg, rgba(253, 245, 230, 0.9), var(--paper-cream)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L55 25 L75 25 L60 40 L65 60 L50 48 L35 60 L40 40 L25 25 L45 25 Z' fill='%23D4AF37' fill-opacity='0.08'/%3E%3C/svg%3E");
    border-bottom: 3px solid var(--imperial-gold);
}

.page-header h1 {
    font-size: 52px;
    color: var(--deep-red);
    letter-spacing: 12px;
    margin-bottom: 15px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.page-header p {
    font-size: 18px;
    color: var(--deep-gold);
    letter-spacing: 4px;
    font-family: "STKaiti", "KaiTi", serif;
}

/* 章节样式 */
.chapter {
    margin-bottom: 80px;
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gold);
}

.chapter-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--deep-red), #6b0000);
    color: var(--royal-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: "STKaiti", "KaiTi", serif;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    flex-shrink: 0;
}

.chapter-title h2 {
    font-size: 32px;
    color: var(--deep-red);
    letter-spacing: 4px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.chapter-title h2 small {
    font-size: 16px;
    color: var(--deep-gold);
    margin-left: 15px;
    letter-spacing: 2px;
}

.chapter-content {
    padding: 0 20px;
}

.chapter-content p {
    margin-bottom: 20px;
    text-indent: 2em;
    font-size: 17px;
    line-height: 2.2;
    color: var(--charcoal);
}

/* 人物卡片 */
.person-card {
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, #fff, var(--pale-gold));
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--imperial-gold);
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.person-portrait {
    width: 180px;
    height: 220px;
    background: linear-gradient(135deg, var(--light-gold), var(--imperial-gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.person-portrait::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 2px solid var(--deep-red);
    border-radius: 6px;
}

.person-portrait .portrait-text {
    font-size: 72px;
    color: var(--deep-red);
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.person-info {
    flex: 1;
}

.person-info h3 {
    font-size: 28px;
    color: var(--deep-red);
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.person-info .person-era {
    font-size: 14px;
    color: var(--deep-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.person-info p {
    font-size: 16px;
    line-height: 2;
    color: var(--charcoal);
    margin-bottom: 10px;
}

/* 表格样式 */
.genealogy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.genealogy-table th {
    background: linear-gradient(135deg, var(--deep-red), #6b0000);
    color: var(--royal-yellow);
    padding: 18px 20px;
    text-align: left;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: normal;
    font-family: "STKaiti", "KaiTi", serif;
}

.genealogy-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gold);
    font-size: 15px;
}

.genealogy-table tr:nth-child(even) {
    background: var(--pale-gold);
}

.genealogy-table tr:hover {
    background: var(--light-gold);
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--light-gold);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--imperial-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--royal-yellow);
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-family: "STKaiti", "KaiTi", serif;
    font-weight: normal;
}

.footer-section p {
    font-size: 14px;
    line-height: 2;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--royal-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #666;
    letter-spacing: 2px;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--imperial-gold), var(--deep-gold));
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-gold);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .volumes-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 70px;
    }
    
    .timeline-content {
        width: 100%;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-red);
        flex-direction: column;
        padding: 20px;
        border-top: 2px solid var(--imperial-gold);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 5px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 4px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
        letter-spacing: 4px;
    }
    
    .page-header h1 {
        font-size: 36px;
        letter-spacing: 6px;
    }
    
    .person-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .person-portrait {
        width: 100%;
        height: 180px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .ancestor-instruction {
        padding: 30px 20px;
    }
    
    .ancestor-instruction h3 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .instruction-text {
        font-size: 15px;
        letter-spacing: 1px;
    }
}

/* 装饰性元素 */
.decorative-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--imperial-gold);
    opacity: 0.6;
}

.decorative-corner.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.decorative-corner.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.decorative-corner.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.decorative-corner.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* 印章效果 */
.seal {
    display: inline-block;
    padding: 10px 15px;
    background: var(--deep-red);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 4px;
    transform: rotate(-5deg);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    font-family: "STKaiti", "KaiTi", serif;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pale-gold);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--imperial-gold), var(--deep-gold));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--royal-yellow), var(--imperial-gold));
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
