:root {
    --bg-color: #FFFFFF;
    --text-main: #333333;
    --text-light: #666666;
    --accent: #C8A97E;
    --border-color: #E6DFD3;
    --font-serif: 'Times New Roman', 'Songti SC', 'SimSun', serif;
}

html { scroll-behavior: smooth; }
#background, #key-events, #relics, #social { scroll-margin-top: 80px; }

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

a:focus, a:active, img:focus, img:active, .relic-item:focus, .relic-item:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ==================== 顶部导航 ==================== */
.top-nav {
    display: flex; justify-content: center; gap: 4rem;
    padding: 30px 20px; font-size: 0.9rem; letter-spacing: 1px;
    font-family: 'Roboto Mono', monospace;
}
.top-nav a { color: var(--text-light); transition: color 0.3s; text-align: center; }
.top-nav a:hover { color: var(--accent); }

/* ==================== Hero 首屏 ==================== */
.hero-container { position: relative; width: 100%; min-height: 100vh; overflow: hidden; }
.hero-title { 
    padding: 250px 5vw 350px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    font-family: 'Italiana', serif;
}
.hero-title h1 {
    font-size: 100px; font-weight: normal; line-height: 1.2;
    letter-spacing: 3px; color: #222; margin: 15px 0;
    position: relative; z-index: 2; 
}

.cloud-wrapper { position: absolute; z-index: 1; pointer-events: none; }
.cloud-wrapper img { width: 100%; height: auto; opacity: 0.8; }
.cloud-1 { top: -570px; left: -10%; width: 1100px; }
.cloud-2 { top: -650px; right: -22%; width: 1250px; }
.cloud-3 { bottom: -770px; left: -26%; width: 1500px; transform: scaleX(-1); }
.cloud-4 { bottom: -750px; right: -20%; width: 1400px; }

/* ==================== 通用区块 ==================== */
.section { position: relative; padding: 200px 20%; max-width: 100%; margin: 0 auto; }
.section-title { 
    position: absolute; top: 300px; right: 20%;
    font-size: 55px; font-weight: normal; color: #775100; 
    margin-bottom: 70px; letter-spacing: 0px; font-family: 'Questrial', sans-serif;
}

/* ==================== Background 背景区 ==================== */
.bg-section { position: relative; text-align: right; padding-top: 250px; }
.sun-moon { 
    position: absolute; top: 130px; right: 15%; width: 400px; height: 400px;
    background-color: #FFF9E1; border-radius: 50%; z-index: -1; opacity: 0.8; 
}
.bg-section .text-content { 
    position: absolute; max-width: 550px; margin-left: auto; text-align: right;
    font-size: 17px; position: relative; z-index: 2; bottom: -350px; right: 0%;
}
.bg-section .text-content p { margin-bottom: 15px; font-family: 'Questrial', sans-serif; }

.illustration-left { position: absolute; top: 220px; left: -897px; width: 1500px; z-index: 1; }
.illustration-right { position: absolute; top: 700px; right: 0px; width: 1700px; z-index: 1; }
.illustration-last { position: absolute; top: 1150px; left: 0px; z-index: 1; }
.illustration-last img { width: 700px !important; height: auto !important; display: block; }

/* ==================== Key Events 桌面端复杂排版 ==================== */
.events-section { position: relative; padding-top: 1000px; height: 1300px; }
.events-section .section-title {
    position: absolute; text-align: center; margin-top: 600px;
    margin-right: -170px; font-size: 55px;
    font-family: 'Questrial', sans-serif; z-index: 10;
}

.figma-line-img {
    position: absolute; top: 1400px; left: 0px;
    width: 1200px; height: 1400px;
    z-index: 5 !important; pointer-events: none; object-fit: fill; 
}

.event-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: auto !important; pointer-events: none; 
}

.event-block {
    position: absolute; width: 600px !important;
    font-family: 'Questrial', sans-serif; pointer-events: auto;
}

.event-block h3 { font-size: 24px; font-weight: bold; color: #222; margin-bottom: 15px; font-family: 'Questrial', sans-serif; pointer-events: auto; }
.event-block p { font-size: 17px; line-height: 1.6; color: var(--text-main); text-align: left !important; }

.event-img-group { display: flex; gap: 15px; margin-top: 20px; align-items: flex-start; }
.event-img-group img { box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-radius: 2px; object-fit: cover; }

/* --- 事件 1 --- */
.block-1 { top: 5% !important; left: 40% !important; }
.block-1 .event-img-group { position: absolute !important; right: 110% !important; top: 0 !important; display: flex !important; gap: 15px !important; }
.block-1 .event-img-group img:nth-of-type(1) { 
    width: 200px !important; height: 190px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1300px !important; left: -90px !important; z-index: 0 !important;
}
.block-1 .event-img-group img:nth-of-type(2) { 
    width: 80px !important; height: 160px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1500px !important; left: -450px !important; z-index: 0 !important;
}
.block-1 h3 { position: relative !important; left: -100px !important; top: 1290px !important; }
.block-1 p { position: relative !important; left: -100px !important; top: 1300px !important; }

/* --- 事件 2 --- */
.block-2 { top: 26% !important; left: 48% !important; }
.block-2 h3, .block-2 p { position: relative; z-index: 10 !important; }
.block-2 .event-img-group { position: absolute !important; left: -250px !important; top: 20px !important; display: flex !important; gap: 15px !important; align-items: flex-start !important; }
.block-2 img:nth-child(1) { 
    width: 185px !important; height: 125px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1500px !important; left: -150px !important; z-index: 1 !important;
}
.block-2 img:nth-child(2) { 
    width: 80px !important; height: 220px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1450px !important; left: -120px !important; z-index: 0 !important;
}
.block-2 h3 { position: relative !important; left: 50px !important; top: 1370px !important; }
.block-2 p { position: relative !important; left: 50px !important; top: 1380px !important; }

/* --- 事件 3 --- */
.block-3 { top: 48% !important; left: 15% !important; }
.block-3 h3, .block-3 p { position: relative; z-index: 10 !important; }
.block-3 .event-img-group.multi { position: absolute !important; left: 110% !important; top: 0px !important; width: 380px !important; display: flex !important; flex-wrap: wrap !important; gap: 15px !important; }
.block-3 img:nth-of-type(1) { 
    width: 170px !important; height: 210px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1450px !important; left: 200px !important; z-index: 1 !important;
}
.block-3 img:nth-of-type(2) { 
    width: 250px !important; height: 150px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1150px !important; left: 400px !important; z-index: 1 !important;
}
.block-3 img:nth-of-type(3) { 
    width: 95px !important; height: 190px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1350px !important; left: 135px !important; z-index: 1 !important;
}
.block-3 h3 { position: relative !important; left: -110px !important; top: 1490px; }
.block-3 p { position: relative !important; left: -110px !important; top: 1500px !important; }

/* --- 事件 4 --- */
.block-4 { top: 78% !important; left: 38% !important; }
.block-4 h3, .block-4 p { position: relative; z-index: 10 !important; }
.block-4 .event-img-group.dual { position: absolute !important; left: -180px !important; top: 0px !important; display: flex !important; flex-direction: column !important; gap: 15px !important; }
.block-4 img:nth-of-type(1) { 
    width: 200px !important; height: 130px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1500px !important; left: -300px !important; z-index: 1 !important;
}
.block-4 img:nth-of-type(2) { 
    width: 270px !important; height: 170px !important; object-fit: cover !important; flex-shrink: 0 !important;
    position: relative !important; top: 1550px !important; left: -80px !important; z-index: 1 !important;
}
.block-4 h3 { position: relative !important; left: 150px !important; top: 1700px; }
.block-4 p { position: relative !important; left: 150px !important; top: 1700px !important; }

/* ==================== Relics 文物区 ==================== */
.relics-section { padding-top: 2700px; padding-bottom: 150px; }
.watermark { 
    position: absolute; top: 1870px; right: -2%; font-size: 84px; font-weight: bold; 
    color: #EEEEEE; line-height: 1.8; text-align: right; z-index: 0; 
    pointer-events: auto; white-space: nowrap; filter: blur(5px);
}
.section-title-1 { position: absolute; display: block; top: 45%; left: 30%; font-family: 'Questrial', sans-serif; }
.watermark span { display: block; }
.section-title h2 { display: block; position: absolute; top: 100%; }

.relics-gallery { position: relative; z-index: 2; margin-top: 100px; }
.relic-row { display: flex; justify-content: space-between; margin-bottom: 80px; align-items: flex-end; }
.relic-row.justify-start { justify-content: flex-start; }
.relic-row.justify-end { justify-content: flex-end; }
.relic-item { display: flex; flex-direction: column; max-width: 300px; }
.relic-item.align-left { align-items: flex-start; text-align: left; }
.relic-item.align-right { align-items: flex-end; text-align: right; }
/* 🌟 基础图片样式：加上模糊和过渡动画 */
.relic-item img { 
    margin-bottom: 15px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    background-color: #FAFAFA; 
    
    /* 核心修改：特效加在 img 上 */
    filter: blur(5px); 
    transform: scale(1);
    transition: filter 0.6s ease, transform 0.6s ease; 
}

/* 🌟 悬停时：变清晰并放大 */
.relic-item:hover img { 
    filter: blur(0); 
    transform: scale(1.2); 
}
.relic-item .en { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; }

/* 文物绝对定位 (略过冗长的具体坐标，保持你原本的设定即可) */
/* 文物绝对定位 (只保留定位和光标) */
.relic-item.align-left-1{ display: block; position: absolute; width: 160px; top: 0%; left: 0%; cursor: pointer; }
.relic-item.align-right-1{ display: block; position: absolute; width: 140px; top: 2%; right: -17%; cursor: pointer; }
.relic-item.align-right-2{ display: block; position: absolute; width: 130px; top: 60%; right: -15%; cursor: pointer; }
.relic-item.align-left-2{ display: block; position: absolute; width: 80px; top: 160%; left: 50%; cursor: pointer; }
.relic-item.align-right-3{ display: block; position: absolute; width: 230px; top: 225%; left: 43%; cursor: pointer; }
.relic-item.align-left-3{ display: block; position: absolute; width: 135px; top: 300%; left: 0%; cursor: pointer; }
.relic-item.align-left-4{ display: block; position: absolute; width: 150px; top: 370%; left: -1%; cursor: pointer; }
.relic-item.align-right-4{ display: block; position: absolute; width: 250px; top: 370%; right: -17%; cursor: pointer; }
.relic-item.align-left-5{ display: block; position: absolute; width: 300px; top: 450%; left: 35%; cursor: pointer; }
.relic-item-text-1{ display: block; position: absolute; top: 1%; left: -14%; font-family: 'Questrial', sans-serif; }
.relic-item-text-2{ display: block; position: absolute; top: 4%; right: 0%; font-family: 'Questrial', sans-serif; }
.relic-item-text-3{ display: block; position: absolute; top: 65%; right: 3%; font-family: 'Questrial', sans-serif; }
.relic-item-text-4{ display: block; position: absolute; top: 163%; left: 35%; font-family: 'Questrial', sans-serif; }
.relic-item-text-5{ display: block; position: absolute; top: 228%; left: 28%; font-family: 'Questrial', sans-serif; }
.relic-item-text-6{ display: block; position: absolute; top: 305%; left: -17%; font-family: 'Questrial', sans-serif; }
.relic-item-text-7{ display: block; position: absolute; top: 370%; left: -17%; font-family: 'Questrial', sans-serif; }
.relic-item-text-8{ display: block; position: absolute; top: 373%; right: 13%; font-family: 'Questrial', sans-serif; }
.relic-item-text-9{ display: block; position: absolute; top: 453%; left: 18%; font-family: 'Questrial', sans-serif; }
.relic-item:hover img { filter: blur(0); transform: scale(1.2); }

/* ==================== Social life ==================== */
.social-section { padding-top: 2200px; padding-bottom: 100px; }
.social-text { 
    max-width: 800px; font-size: 15px; text-align: justify; margin-bottom: 130px; 
    font-family: 'Questrial', sans-serif; height: 400px; overflow: hidden; position: relative;
}
.social-text-inner { animation: social-scroll-up 20s linear infinite; }
.social-text-inner p { margin: 0 0 20px 0; margin-bottom: 25px; }
@keyframes social-scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.social-text:hover .social-text-inner { animation-play-state: paused; }
.more-links { font-size: 40px; color: var(--text-light); padding-top: 0px; font-family: 'Russo One', sans-serif; margin-top: -5%; }
.socia-title h2 { display: block; position: absolute; top: 69%; left: 20%; font-family: 'Questrial', sans-serif; }

/* ==================== Conclusion ==================== */
.conclusion-section { text-align: center; padding-top: 550px; padding-bottom: 550px; background-color: #FFFBF4; }
.conclusion-section .center-title { 
    text-align: center; font-size: 40px; margin-bottom: 50px; display: block;
    position: absolute; top: 35%; left: 25%; font-family: 'Questrial', sans-serif;
}
.conclusion-illustration { margin-bottom: 50px; width: 1700px; display: block; position: absolute; top: 15%; left: 0%; }
.conclusion-text { max-width: 700px; margin: 0 auto; font-size: 15px; text-align: left; margin-left: 25%; margin-right: 20%; font-family: 'Questrial', sans-serif; }

/* ==================== Footer ==================== */
.site-footer { padding: 50px 10%; font-size: 15px; color: var(--text-light); font-family: 'Questrial', sans-serif; }
.footer-links { display: flex; justify-content: space-between; margin-bottom: 30px; }
.footer-group { display: flex; flex-direction: column; gap: 10px; }
.footer-group a { color: var(--text-light); transition: color 0.3s; }
.footer-group a:hover { color: var(--text-main); }

/* ==================== 云朵动画 ==================== */
.cloud-wrapper { --dx: 5px; --dy: -5px; --dur: 5s; --delay: 0s; animation: cloud-drift var(--dur) ease-in-out infinite; animation-delay: var(--delay); will-change: translate; }
@keyframes cloud-drift { 0%, 100% { translate: 0 0; } 50% { translate: var(--dx) var(--dy); } }
.cloud-1 { --dx: 15px;  --dy: -10px; --dur: 10s;  --delay: 2s; }
.cloud-2 { --dx: -10px; --dy: 15px;  --dur: 11s; --delay: -2.5s; }
.cloud-3 { --dx: 20px;  --dy: 15px;  --dur: 13s; --delay: -5s; }
.cloud-4 { --dx: -15px; --dy: -10px; --dur: 10s; --delay: -7s; }
@keyframes cloud-breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.55; } }
.cloud-wrapper img { animation: cloud-breathe 6s ease-in-out infinite; }
.cloud-2 img { animation-delay: -1.5s; } .cloud-3 img { animation-delay: -3s; } .cloud-4 img { animation-delay: -4s; }


/* ==================== 手机端终极适配区 ==================== */
@media (max-width: 768px) {
    body { line-height: 1.6; }
    .section { padding: 60px 5% !important; }
    .top-nav { flex-wrap: wrap; gap: 10px 15px; padding: 15px; font-size: 12px; }

    /* 隐藏复杂装饰 */
    .illustration-left, .illustration-right, .illustration-last, .conclusion-illustration, .figma-line-img { 
        display: none !important; 
    }

    /* Hero 首屏 */
    .hero-container { min-height: auto; padding-bottom: 0px; overflow: hidden; }
    .hero-title { padding: 130px 20px 120px; }
    .hero-title h1 { font-size: 39px; letter-spacing: 1px; margin: 10px 0; }
    .cloud-wrapper { display: block !important; }
    .cloud-wrapper img { opacity: 0.55; }
    .cloud-1{ top: -28vw; left: -20vw; width: 85vw; }
    .cloud-2 { top: -38vw; right: -32vw; width: 95vw; }
    .cloud-3 { bottom: -35vw; left: -27vw; width: 95vw; transform: scaleX(-1); }
    .cloud-4 { bottom: -50vw; right: -35vw; width: 110vw; }

    /* 通用标题 */
    .section-title { position: static !important; font-size: 28px; text-align: center; margin: 0 auto 30px auto !important; right: auto !important; top: auto !important; }

    /* Background 背景区 */
    .bg-section .text-content { position: static !important; width: 100% !important; max-width: 100% !important; margin: 0 auto !important; text-align: center !important; right: auto !important; bottom: auto !important; font-size: 15px; }
    #background .text-content p { text-align: justify !important; padding: 0 10px; }

    /* ==================== Key Events 手机端重构 ==================== */
    .events-section { 
        padding-top: 80px !important; 
        height: auto !important; 
        padding-bottom: 50px !important; 
    }
    .events-section .section-title { 
        margin: 0 0 40px 0 !important; 
        text-align: center !important; 
        font-size: 28px !important; 
        position: static !important; 
    }

    /* 画布：垂直排列 + 左侧长线 */
    .event-canvas { 
        position: relative !important; 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 40px !important; 
        margin-top: 20px !important; 
        height: auto !important; 
        padding-left: 25px !important; 
        pointer-events: auto !important;
    }
    
    /* 贯穿的垂直长线 */
    .event-canvas::before {
        content: ''; 
        position: absolute; 
        left: 6px !important; 
        top: 10px !important; 
        bottom: 10px !important;
        width: 2px !important; 
        background-color: #222 !important; 
        z-index: 1 !important;
    }

    /* 节点块 */
    .event-block { 
        position: relative !important; 
        width: 100% !important; 
        margin-bottom: 0 !important; 
        display: flex !important; 
        flex-direction: column !important; 
        z-index: 2 !important; 
        top: auto !important; 
        left: auto !important;
    }
    
    /* 空心圆圈节点 */
    .event-block::before {
        content: '' !important; 
        position: absolute !important; 
        left: -25px !important; 
        top: 6px !important;
        width: 12px !important; 
        height: 12px !important; 
        background-color: #fff !important; 
        border: 2px solid #222 !important; 
        border-radius: 50% !important; 
        z-index: 3 !important;
    }

    /* 暴力重置文字（干掉所有的 top: 1300px） */
    .block-1 h3, .block-2 h3, .block-3 h3, .block-4 h3,
    .block-1 p, .block-2 p, .block-3 p, .block-4 p { 
        position: static !important; 
        top: auto !important; 
        left: auto !important; 
        right: auto !important; 
        transform: none !important; 
        margin-bottom: 10px !important; 
    }
    .block-1 h3, .block-2 h3, .block-3 h3, .block-4 h3 { font-size: 20px !important; }
    .block-1 p, .block-2 p, .block-3 p, .block-4 p { font-size: 15px !important; text-align: justify !important; }

    /* 🌟 用最暴力的方式隐藏所有图片 🌟 */
    .event-canvas img,
    .event-img-group,
    .block-1 .event-img-group,
    .block-2 .event-img-group,
    .block-3 .event-img-group,
    .block-4 .event-img-group { 
        display: none !important; 
    }

    /* ==================== Relics ==================== */
    .relics-section { padding-top: 80px !important; padding-bottom: 50px !important; }
    .section-title-1 { position: static !important; text-align: center; margin-bottom: 30px; }
    .section-title-1 h2 { font-size: 28px; }
    .watermark { position: static !important; font-size: 32px !important; text-align: center !important; margin-bottom: 40px !important; filter: blur(2px); top: auto !important; right: auto !important; white-space: normal !important; }
    .relics-gallery { margin-top: 20px !important; }
    .relic-row { flex-direction: column !important; align-items: center !important; margin-bottom: 40px !important; }
    .relic-item, [class^="relic-item align-"], [class^="relic-item-text-"] { position: static !important; width: 40% !important; max-width: 300px; margin: 0 auto 20px auto !important; text-align: center !important; left: auto !important; right: auto !important; top: auto !important; }
    .relic-item img { margin: 0 auto 10px auto; width: 40%; height: auto; }

    /* ==================== Social life ==================== */
    .social-section { padding-top: 80px !important; }
    .socia-title h2 { position: static !important; text-align: center; margin-bottom: 30px; }
    .social-text { font-size: 15px !important; margin-bottom: 40px !important; }
    .more-links { font-size: 15px !important; margin-top: 20px !important; text-align: center; }

    /* ==================== Conclusion ==================== */
    .conclusion-section { padding-top: 80px !important; padding-bottom: 80px !important; }
    .conclusion-section .center-title { position: static !important; font-size: 28px !important; margin-bottom: 20px !important; }
    .conclusion-text { margin: 0 auto !important; width: 90% !important; font-size: 15px !important; }

    /* ==================== Footer ==================== */
    .site-footer { padding: 30px 5% !important; }
    .footer-links { flex-direction: column !important; gap: 20px !important; }
    .footer-group { text-align: center; }
}

@media (max-width: 380px) {
    .hero-title h1 { font-size: 32px; }
    .event-text h3, .section-title, .section-title-1 h2 { font-size: 28px !important; }
}

/* ==================== Key 图片滚动淡入动效 (纯 CSS) ==================== */

/* 定义动画：从透明、缩小、偏下，变为可见、正常大小、归位 */
/* ==================== Key 图片滚动淡入动效 ==================== */
/* ==================== Key 图片滚动由小变大 ==================== */

@keyframes slow-scale-up {
    from {
        opacity: 0;
        /* 👇 初始大小改为 0.4（也就是只有原图 40% 的大小） */
        transform: scale(0.4); 
    }
    to {
        opacity: 1;
        /* 恢复到原始大小 */
        transform: scale(1);   
    }
}

.event-img-group img,
.block-1 img,
.block-2 img,
.block-3 img,
.block-4 img {
    /* 动画时长设为 3s 兜底 */
    animation: slow-scale-up 3s linear both;
    animation-timeline: view();
    
    /* 🌟 核心：拉长滚动距离 */
    /* entry 0% 代表刚露出屏幕，cover 100% 代表滑出屏幕，让整个滚动过程都在变大 */
    animation-range: entry 0% cover 60%; 
    
    /* 确保图片以中心点向四周放大 */
    transform-origin: center center;
    
    will-change: transform, opacity;
}