@charset "utf-8";
/* ================================================================
   陇原红 · 薪火传  ——  全站样式表
   纯手写 CSS，无任何外部依赖 / CDN，离线可用
   目标兼容：Edge 90+（Chromium 90）、Chrome、Firefox、Safari
   ================================================================ */

/* ---------------- 1. 设计变量 ---------------- */
:root{
  /* 纸与墨 */
  --paper:      #f6efe1;
  --paper-2:    #efe6d4;
  --paper-3:    #e5d8c1;
  --ink:        #211a16;
  --ink-2:      #4b3c32;
  --ink-3:      #7b6a5b;
  --line:       rgba(90,58,40,.16);
  /* 红与金 */
  --red:        #b01b24;
  --red-soft:   #c8393a;
  --red-deep:   #7c1217;
  --red-dark:   #3d0a0c;
  --gold:       #b8923c;
  --gold-lt:    #e6c681;
  --jade:       #55655c;
  /* 阴影/圆角/动效 */
  --sh-sm: 0 1px 2px rgba(70,30,15,.07), 0 3px 10px rgba(70,30,15,.05);
  --sh-md: 0 10px 34px rgba(70,30,15,.11);
  --sh-lg: 0 24px 60px rgba(60,20,10,.18);
  --r: 3px;
  --nav-h: 66px;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* 字体 */
  --serif: "Source Han Serif SC","Noto Serif CJK SC","Songti SC","STSong","SimSun","宋体",serif;
  --sans:  "Source Han Sans SC","Noto Sans CJK SC","PingFang SC","Microsoft YaHei","微软雅黑","Hiragino Sans GB",sans-serif;
  --kai:   "KaiTi","STKaiti","Kaiti SC","楷体",var(--serif);
}

/* ---------------- 2. 基础重置 ---------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 宣纸纹理：SVG 噪点，不引入图片文件 */
body::before{
  content:"";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
img{ max-width: 100%; display: block; border: 0; }
a{ color: var(--red-deep); text-decoration: none; transition: color .3s var(--ease); }
a:hover{ color: var(--red-soft); }
h1,h2,h3,h4{ margin: 0; font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: .04em; }
p{ margin: 0 0 1em; }
ul,ol{ margin: 0 0 1em; padding-left: 1.4em; }
::selection{ background: rgba(176,27,36,.85); color: #fff; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------- 3. 通用骨架 ---------------- */
.wrap{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }
.wrap--narrow{ max-width: 860px; }
[id]{ scroll-margin-top: 92px; }
code{
  font-family: Consolas, "Courier New", monospace;
  font-size: .88em;
  background: rgba(90,58,40,.09);
  border: 1px solid rgba(90,58,40,.1);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--red-deep);
  word-break: break-word;
}

.section{ position: relative; padding: 100px 0; z-index: 1; }
.section--tight{ padding: 72px 0; }
.section--paper{ background: linear-gradient(180deg, rgba(239,230,212,.55), rgba(239,230,212,0)); }
.section--dark{
  background: radial-gradient(120% 100% at 50% 0%, #5c0f13 0%, #3d0a0c 55%, #2a0608 100%);
  color: #f2e2d0;
}
.section--dark .sec-title, .section--dark h2, .section--dark h3{ color: #f7ecdd; }
.section--dark .sec-desc, .section--dark p{ color: rgba(242,226,208,.8); }

/* 章节标题 */
.sec-head{ text-align: center; margin-bottom: 64px; }
.sec-kicker{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-title{ font-size: 2.15rem; line-height: 1.4; letter-spacing: .14em; text-indent: .14em; }
.sec-title em{ font-style: normal; color: var(--red); }
.rule{
  display: block;
  width: 62px; height: 2px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.rule::before,
.rule::after{
  content:""; position: absolute; top: -3px; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg); opacity: .75;
}
.rule::before{ left: -14px; }
.rule::after{ right: -14px; }
.sec-desc{ margin-top: 20px; color: var(--ink-3); font-size: .97rem; line-height: 2; }
.section--dark .sec-desc{ color: rgba(240,225,205,.66); }

/* 装饰分隔 */
.ornament{ display: block; width: 100%; height: 46px; opacity: .55; margin: 6px 0; }

/* 按钮 */
.btn{
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--sans);
  font-size: .93rem;
  letter-spacing: .18em;
  text-indent: .18em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary{
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff6ea;
  box-shadow: 0 8px 22px rgba(124,18,23,.28);
}
.btn-primary:hover{ color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124,18,23,.36); }
.btn-ghost{ border-color: rgba(230,198,129,.6); color: var(--gold-lt); background: rgba(255,255,255,.03); }
.btn-ghost:hover{ border-color: var(--gold-lt); color: #fff; background: rgba(230,198,129,.12); }

/* ---------------- 4. 顶部导航 ---------------- */
.progress-bar{
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-lt), var(--red-soft));
  z-index: 200;
  transition: width .12s linear;
}
.site-head{
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 120;
  background: rgba(45,8,10,.9);
  border-bottom: 1px solid rgba(230,198,129,.22);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-head.is-solid{ background: rgba(38,6,8,.97); box-shadow: 0 6px 26px rgba(0,0,0,.28); }
@supports (backdrop-filter: blur(8px)){
  .site-head{ background: rgba(45,8,10,.62); backdrop-filter: blur(10px) saturate(1.1); }
  .site-head.is-solid{ background: rgba(38,6,8,.94); }
}
.head-inner{
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand{ display: flex; align-items: center; gap: 13px; }
.brand-seal{
  width: 36px; height: 36px; flex: 0 0 36px;
  background: linear-gradient(150deg, #c62a2a, #8d1218);
  color: #ffeccf;
  font-family: var(--kai);
  font-size: 21px; line-height: 36px; text-align: center;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,235,205,.35), 0 2px 6px rgba(0,0,0,.3);
  letter-spacing: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.25; }
.brand-name{
  font-family: var(--serif); font-size: 1.06rem; color: #fdf2e2;
  letter-spacing: .22em; text-indent: .22em;
}
.brand-sub{ font-size: .62rem; color: rgba(230,198,129,.72); letter-spacing: .3em; text-indent: .3em; }

.nav{ display: flex; align-items: center; gap: 4px; }
.nav-link{
  position: relative;
  padding: 8px 13px;
  font-size: .88rem;
  letter-spacing: .12em;
  color: rgba(246,236,220,.82);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav-link::after{
  content:""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1px; background: var(--gold-lt);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.nav-link:hover{ color: #fff; }
.nav-link:hover::after{ transform: scaleX(1); }
.nav-link.is-active{ color: var(--gold-lt); }
.nav-link.is-active::after{ transform: scaleX(1); }
.nav-toggle{
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span{
  position: absolute; left: 9px; width: 24px; height: 1.6px; background: #f2dfc6;
  transition: all .35s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }
.nav-toggle.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* ---------------- 5. 首页主视觉 ---------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: #2b0709;
}
.hero-media{
  position: absolute; inset: -6% 0 -6% 0;
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(.82) contrast(1.06) brightness(.86);
  transform: translateY(0);
  will-change: transform;
}
/* 首页主视觉视频：无脚本 / 不支持视频时 poster 兜底 */
video.hero-media{ display: block; background: #2b0709; }
.hero-veil{
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(38,6,8,.24) 0%, rgba(30,4,6,.72) 62%, rgba(20,2,4,.94) 100%),
    linear-gradient(180deg, rgba(20,2,4,.72) 0%, rgba(20,2,4,.12) 38%, rgba(20,2,4,.9) 100%);
}
.hero-grain{
  position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.32'/%3E%3C/svg%3E");
}
.hero-inner{
  position: relative; z-index: 3;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 26px 90px;
  text-align: center;
}
.hero-eyebrow{
  display: inline-block;
  font-size: .74rem; letter-spacing: .5em; text-indent: .5em;
  color: rgba(230,198,129,.9);
  border: 1px solid rgba(230,198,129,.35);
  padding: 8px 20px 8px 22px;
  margin-bottom: 40px;
  animation: fadeUp 1s var(--ease) both;
}
.hero-title{
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 1.18;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #fff8ec;
  text-shadow: 0 6px 40px rgba(0,0,0,.6), 0 0 90px rgba(200,60,40,.24);
  margin: 0 0 10px;
  animation: fadeUp 1.2s .12s var(--ease) both;
}
.hero-title .dot{ color: var(--gold-lt); font-size: .55em; vertical-align: middle; margin: 0 .12em; }
.hero-slogan{
  font-family: var(--kai);
  font-size: clamp(1rem, 1.9vw, 1.32rem);
  color: rgba(255,239,220,.9);
  letter-spacing: .3em; text-indent: .3em;
  margin: 26px 0 34px;
  animation: fadeUp 1.2s .26s var(--ease) both;
}
.hero-lead{
  max-width: 44em; margin: 0 auto 44px;
  color: rgba(246,230,212,.72);
  font-size: .98rem; line-height: 2.1;
  animation: fadeUp 1.2s .38s var(--ease) both;
}
.hero-actions{ display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1.2s .5s var(--ease) both; }
.hero-scroll{
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 4; text-align: center; color: rgba(230,198,129,.7);
  font-size: .68rem; letter-spacing: .34em; text-indent: .34em;
  animation: fadeIn 2s 1.1s var(--ease) both;
}
.hero-scroll i{
  display: block; width: 1px; height: 46px; margin: 12px auto 0;
  background: linear-gradient(180deg, rgba(230,198,129,.75), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll i::after{
  content:""; position: absolute; top: -46px; left: 0; width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, #fff);
  animation: scrollDown 2.4s 1.6s infinite;
}
.hero-corner{
  position: absolute; width: 74px; height: 74px; z-index: 4;
  border: 1px solid rgba(230,198,129,.42);
  opacity: .8;
}
.hero-corner.tl{ top: calc(var(--nav-h) + 18px); left: 22px; border-right: 0; border-bottom: 0; }
.hero-corner.br{ bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

@keyframes fadeUp{ from{ opacity: 0; transform: translateY(26px); } to{ opacity: 1; transform: none; } }
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes scrollDown{ 0%{ top: -46px; } 60%,100%{ top: 46px; } }

/* ---------------- 6. 序章 / 引言 ---------------- */
.prologue{ display: grid; grid-template-columns: 1fr; gap: 46px; }
.prologue-quote{
  position: relative;
  padding: 46px 40px 46px 66px;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(239,230,212,.35));
  border-left: 3px solid var(--red);
  box-shadow: var(--sh-sm);
  font-family: var(--kai);
  font-size: 1.18rem;
  line-height: 2.15;
  color: var(--ink-2);
}
.prologue-quote::before{
  content: "“";
  position: absolute; left: 20px; top: 18px;
  font-family: var(--serif); font-size: 4.6rem; line-height: 1;
  color: rgba(176,27,36,.22);
}
.prologue-quote cite{
  display: block; margin-top: 22px;
  font-family: var(--sans); font-style: normal;
  font-size: .82rem; letter-spacing: .16em; color: var(--ink-3);
}
.prologue-body{ font-size: 1.02rem; color: var(--ink-2); line-height: 2.2; }
.prologue-body .dropcap::first-letter{
  float: left; font-family: var(--serif); font-size: 3.5rem; line-height: .92;
  color: var(--red); padding: 6px 12px 0 0;
}

/* ---------------- 7. 数字条 ---------------- */
.stats{
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat{ padding: 34px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child{ border-right: 0; }
.stat-num{
  font-family: var(--serif); font-size: 2.5rem; line-height: 1.1;
  color: var(--red); letter-spacing: .02em;
}
.stat-num small{ font-size: .82rem; color: var(--ink-3); letter-spacing: .1em; margin-left: 4px; }
.stat-label{ margin-top: 10px; font-size: .8rem; letter-spacing: .18em; color: var(--ink-3); }

/* ---------------- 8. 板块卡片 ---------------- */
.modules{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.module-card{
  position: relative;
  display: block;
  padding: 40px 38px 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(246,239,225,.55));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.module-card::before{
  content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease);
}
.module-card::after{
  content:""; position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,27,36,.09), transparent 70%);
  transition: transform .6s var(--ease);
}
.module-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-md); border-color: rgba(176,27,36,.3); }
.module-card:hover::before{ transform: scaleY(1); }
.module-card:hover::after{ transform: scale(1.35); }
.module-idx{
  font-family: var(--serif); font-size: .82rem; letter-spacing: .2em;
  color: var(--gold); margin-bottom: 16px;
}
.module-title{ font-size: 1.5rem; letter-spacing: .14em; margin-bottom: 12px; }
.module-title span{ font-size: .8rem; color: var(--ink-3); letter-spacing: .1em; margin-left: 10px; font-family: var(--sans); }
.module-desc{ color: var(--ink-2); font-size: .94rem; line-height: 1.95; margin-bottom: 22px; }
.module-tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-size: .74rem; letter-spacing: .08em;
  padding: 3px 11px; border-radius: 20px;
  color: var(--red-deep); background: rgba(176,27,36,.07);
  border: 1px solid rgba(176,27,36,.16);
}
.module-arrow{
  position: absolute; right: 32px; top: 40px;
  font-family: var(--serif); color: rgba(176,27,36,.4);
  font-size: 1.1rem; transition: transform .45s var(--ease), color .45s var(--ease);
}
.module-card:hover .module-arrow{ transform: translateX(6px); color: var(--red); }

/* ---------------- 9. 时间轴（纵向） ---------------- */
.timeline{ position: relative; padding-left: 0; }
.timeline::before{
  content:""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(176,27,36,.42) 8%, rgba(176,27,36,.42) 92%, transparent);
}
.tl-item{
  position: relative;
  display: grid; grid-template-columns: 132px 1fr; gap: 44px;
  padding-bottom: 46px;
}
.tl-item:last-child{ padding-bottom: 0; }
.tl-year{
  text-align: right;
  font-family: var(--serif);
  font-size: 1.44rem; line-height: 1.5;
  color: var(--red);
  letter-spacing: .04em;
  padding-top: 2px;
}
.tl-year small{ display: block; font-size: .74rem; color: var(--ink-3); letter-spacing: .16em; font-family: var(--sans); margin-top: 2px; }
.tl-item::after{
  content:""; position: absolute; left: 126px; top: 12px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--red);
  box-shadow: 0 0 0 4px rgba(176,27,36,.09);
}
.tl-card{
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(246,239,225,.5));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 30px 24px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.tl-card:hover{ box-shadow: var(--sh-md); transform: translateY(-3px); }
.tl-title{ font-size: 1.16rem; letter-spacing: .06em; margin-bottom: 10px; }
.tl-text{ font-size: .93rem; color: var(--ink-2); line-height: 2; margin: 0; }
.tl-text b{ color: var(--red-deep); font-weight: 600; }
.tl-meta{ margin-top: 12px; font-size: .76rem; letter-spacing: .12em; color: var(--ink-3); }

/* ---------------- 10. 年份横条（首页预览） ---------------- */
.rail-wrap{ overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.rail-wrap::-webkit-scrollbar{ height: 4px; }
.rail-wrap::-webkit-scrollbar-thumb{ background: rgba(176,27,36,.3); }
.rail{ display: flex; gap: 0; min-width: 760px; }
.rail-item{
  flex: 1 1 0;
  text-align: center;
  padding: 22px 6px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-3);
  transition: color .4s var(--ease);
}
.rail-item::before{
  content:""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper-3); transition: all .4s var(--ease);
}
.rail-item:hover::before{ background: var(--red); box-shadow: 0 0 0 5px rgba(176,27,36,.12); }
.rail-item:hover{ color: var(--red-deep); }
.rail-year{ font-family: var(--serif); font-size: 1.18rem; display: block; }
.rail-cap{ font-size: .74rem; letter-spacing: .1em; margin-top: 6px; display: block; }

/* ---------------- 11. 子页面页头 ---------------- */
.page-hero{
  position: relative;
  min-height: 400px;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  background: #2b0709;
  overflow: hidden;
}
.page-hero .hero-media{ inset: 0; height: 100%; filter: saturate(.7) contrast(1.05) brightness(.7); }
.page-hero-inner{
  position: relative; z-index: 3;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 120px 26px 52px;
}
.crumb{ font-size: .76rem; letter-spacing: .16em; color: rgba(230,198,129,.78); margin-bottom: 20px; }
.crumb a{ color: rgba(230,198,129,.78); }
.crumb a:hover{ color: #fff; }
.crumb span{ opacity: .5; margin: 0 8px; }
.page-title{
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: #fff6e9; letter-spacing: .18em; text-indent: .18em;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.page-sub{
  margin-top: 18px; max-width: 46em;
  color: rgba(246,232,214,.76); font-size: .96rem; line-height: 2;
}
.page-hero-line{
  width: 70px; height: 2px; margin-top: 26px;
  background: linear-gradient(90deg, var(--gold-lt), transparent);
}

/* ---------------- 12. 地标 ---------------- */
.mapbox{
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center;
}
.map-panel{
  position: relative;
  padding: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.55), rgba(239,230,212,.3));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.map-svg{ width: 100%; height: auto; display: block; }
.map-dot{ cursor: pointer; outline: none; }
.map-dot circle.core{ transition: fill .3s var(--ease), stroke .3s var(--ease); }
.map-dot .halo{ transition: opacity .3s var(--ease); }
.map-dot:hover circle.core,
.map-dot.is-hot circle.core,
.map-dot:focus circle.core{ fill: #7c1217; }
.map-dot:hover .halo,
.map-dot.is-hot .halo,
.map-dot:focus .halo{ opacity: .22; }
.map-dot:focus text{ fill: var(--red); font-weight: 700; }
.map-dot text{ font-family: var(--sans); font-size: 11px; fill: var(--ink-2); letter-spacing: .06em; pointer-events: none; }
.map-region-label{ font-family: var(--serif); font-size: 12px; fill: var(--ink-3); letter-spacing: .2em; }
.map-legend{ display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: .76rem; color: var(--ink-3); }
.map-legend i{ display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.region-nav{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; justify-content: center; }
.chip{
  padding: 7px 20px;
  font-size: .84rem; letter-spacing: .1em;
  border: 1px solid var(--line); border-radius: 24px;
  background: rgba(255,255,255,.5);
  color: var(--ink-2); cursor: pointer;
  transition: all .35s var(--ease);
}
.chip:hover{ border-color: rgba(176,27,36,.4); color: var(--red-deep); }
.chip.is-on{ background: var(--red); border-color: var(--red); color: #fff5e9; box-shadow: 0 6px 16px rgba(124,18,23,.24); }

.place-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.place-card{
  position: relative;
  padding: 26px 28px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(246,239,225,.45));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: all .45s var(--ease);
}
.place-card:hover{ transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(176,27,36,.28); }
.place-card.is-dim{ opacity: .32; filter: grayscale(.6); }
.place-card.is-hot{
  border-color: rgba(176,27,36,.65);
  box-shadow: 0 0 0 2px rgba(176,27,36,.28), var(--sh-md);
  transform: translateY(-4px);
}
.place-card.is-hot .place-name{ color: var(--red-deep); }
.place-top{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.place-name{ font-size: 1.1rem; letter-spacing: .06em; }
.place-name a{ color: inherit; }
.place-where{ font-size: .76rem; color: var(--gold); letter-spacing: .1em; white-space: nowrap; }
.place-meta{
  display: inline-block; margin: 12px 0 12px;
  font-size: .72rem; letter-spacing: .16em;
  color: var(--red-deep); background: rgba(176,27,36,.07);
  padding: 2px 10px; border-radius: 2px;
}
.place-text{ font-size: .9rem; color: var(--ink-2); line-height: 1.95; margin: 0; }

/* ---------------- 13. 人物 ---------------- */
.people{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person-card{
  position: relative;
  padding: 34px 30px 30px;
  background: linear-gradient(165deg, rgba(255,255,255,.86), rgba(246,239,225,.5));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: all .5s var(--ease);
  overflow: hidden;
}
.person-card::after{
  content:""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(176,27,36,.06), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.person-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-md); }
.person-card:hover::after{ opacity: 1; }
.person-seal{
  width: 74px; height: 74px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(150deg, #c62a2a, #8a1116);
  color: #ffeccf;
  font-family: var(--kai); font-size: 2rem; line-height: 74px; text-align: center;
  box-shadow: 0 8px 20px rgba(124,18,23,.26), inset 0 0 0 2px rgba(255,235,205,.28);
  position: relative; z-index: 1;
}
.person-name{ text-align: center; font-size: 1.2rem; letter-spacing: .12em; position: relative; z-index: 1; }
.person-life{ text-align: center; font-size: .76rem; color: var(--ink-3); letter-spacing: .12em; margin-top: 6px; position: relative; z-index: 1; }
.person-line{
  margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line);
  font-family: var(--kai); font-size: 1.02rem; color: var(--red-deep); text-align: center;
  position: relative; z-index: 1;
}
.person-body{ margin: 16px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.95; position: relative; z-index: 1; }

/* ---------------- 14. 精神谱系 ---------------- */
.spirit-figure{ margin: 0 auto 56px; max-width: 760px; }
.spirit-figure svg{ width: 100%; height: auto; }
.spirit-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.spirit-card{
  padding: 30px 32px 28px;
  border: 1px solid rgba(230,198,129,.24);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: all .45s var(--ease);
}
.spirit-card:hover{ border-color: rgba(230,198,129,.5); background: rgba(255,255,255,.075); transform: translateY(-4px); }
.spirit-glyph{
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold-lt);
  line-height: 1; margin-bottom: 14px; opacity: .9;
}
.spirit-name{ font-size: 1.16rem; color: #f7ecdd; letter-spacing: .16em; margin-bottom: 14px; }
.spirit-quote{
  font-family: var(--kai); font-size: 1rem; color: rgba(230,198,129,.9);
  border-left: 2px solid rgba(230,198,129,.5); padding-left: 14px; margin: 0 0 14px;
}
.spirit-body{ font-size: .9rem; line-height: 1.95; color: rgba(242,226,208,.76); margin: 0; }

/* ---------------- 15. 互动测验 ---------------- */
.quiz-shell{
  max-width: 820px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(246,239,225,.5));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-md);
  padding: 44px 46px 40px;
}
.quiz-top{ display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.quiz-step{ font-size: .8rem; letter-spacing: .16em; color: var(--ink-3); }
.quiz-step b{ color: var(--red); font-size: 1rem; }
.quiz-score{ font-size: .8rem; letter-spacing: .12em; color: var(--gold); }
.quiz-track{ height: 3px; background: rgba(176,27,36,.12); border-radius: 3px; overflow: hidden; margin-bottom: 34px; }
.quiz-fill{ height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .5s var(--ease); }
.q-stem{ font-family: var(--serif); font-size: 1.24rem; line-height: 1.85; letter-spacing: .04em; margin-bottom: 26px; }
.q-options{ display: grid; gap: 12px; }
.q-opt{
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 15px 20px;
  font-family: var(--sans); font-size: .95rem; color: var(--ink-2); line-height: 1.7;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.q-opt:hover{ border-color: rgba(176,27,36,.45); background: rgba(176,27,36,.045); transform: translateX(3px); }
.q-opt .idx{
  flex: 0 0 22px; height: 22px; margin-top: 1px;
  font-family: var(--serif); font-size: .82rem; line-height: 22px; text-align: center;
  border: 1px solid rgba(176,27,36,.3); border-radius: 50%; color: var(--red-deep);
}
.q-opt.is-right{ border-color: #3f7a4a; background: rgba(63,122,74,.1); color: #2c5c36; }
.q-opt.is-right .idx{ border-color: #3f7a4a; background: #3f7a4a; color: #fff; }
.q-opt.is-wrong{ border-color: var(--red); background: rgba(176,27,36,.1); color: var(--red-deep); }
.q-opt.is-wrong .idx{ border-color: var(--red); background: var(--red); color: #fff; }
.q-opt[disabled]{ cursor: default; }
.q-opt[disabled]:hover{ transform: none; }
.quiz-feedback{
  margin-top: 24px; padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(184,146,60,.08);
  font-size: .9rem; line-height: 1.95; color: var(--ink-2);
  display: none;
}
.quiz-feedback.show{ display: block; animation: fadeUp .45s var(--ease) both; }
.quiz-feedback b{ color: var(--red-deep); }
.quiz-next{ margin-top: 26px; text-align: right; }
.quiz-result{ text-align: center; padding: 16px 0 6px; display: none; }
.quiz-result.show{ display: block; animation: fadeUp .6s var(--ease) both; }
.result-ring{
  width: 152px; height: 152px; margin: 0 auto 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(circle at 50% 35%, #c62a2a, #7c1217 70%);
  color: #fff3e0; box-shadow: 0 14px 40px rgba(124,18,23,.3);
}
.result-ring .n{ font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.result-ring .u{ font-size: .72rem; letter-spacing: .2em; opacity: .8; margin-top: 6px; }
.result-title{ font-size: 1.4rem; letter-spacing: .16em; margin-bottom: 12px; }
.result-body{ color: var(--ink-2); font-size: .95rem; line-height: 2; max-width: 34em; margin: 0 auto 30px; }

/* ---------------- 16. 关于页 ---------------- */
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.about-card{
  padding: 32px 34px;
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(246,239,225,.45));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.about-card h3{ font-size: 1.1rem; letter-spacing: .1em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about-card p, .about-card li{ font-size: .9rem; color: var(--ink-2); line-height: 1.95; }
.about-card ul{ padding-left: 1.2em; margin-bottom: 0; }
.about-card li{ margin-bottom: 6px; }
.tree{
  font-family: Consolas, "Courier New", monospace;
  font-size: .82rem; line-height: 1.9; color: var(--ink-2);
  background: rgba(60,30,20,.045);
  border: 1px solid var(--line);
  padding: 18px 20px; border-radius: 2px;
  overflow-x: auto; white-space: pre;
}
.swatches{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.swatch{ text-align: center; font-size: .68rem; color: var(--ink-3); letter-spacing: .05em; }
.swatch i{ display: block; width: 52px; height: 40px; border-radius: 2px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }

/* ---------------- 17. 页脚 ---------------- */
.site-foot{
  position: relative; z-index: 1;
  background: radial-gradient(120% 100% at 50% 0%, #4a0d11 0%, #2a0608 70%, #1d0406 100%);
  color: rgba(242,226,208,.72);
  padding: 74px 0 30px;
  border-top: 1px solid rgba(230,198,129,.2);
}
.foot-inner{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46px; }
.foot-brand .brand-name{ font-size: 1.24rem; color: #fdf2e2; }
.foot-slogan{ font-family: var(--kai); color: rgba(230,198,129,.8); letter-spacing: .24em; margin-top: 14px; font-size: .95rem; }
.foot-desc{ margin-top: 18px; font-size: .82rem; line-height: 2; color: rgba(242,226,208,.55); max-width: 30em; }
.foot-title{ font-size: .82rem; letter-spacing: .24em; color: var(--gold-lt); margin-bottom: 18px; }
.foot-links{ list-style: none; padding: 0; margin: 0; }
.foot-links li{ margin-bottom: 10px; }
.foot-links a{ color: rgba(242,226,208,.68); font-size: .86rem; }
.foot-links a:hover{ color: #fff; }
.foot-bottom{
  margin-top: 54px; padding-top: 22px;
  border-top: 1px solid rgba(230,198,129,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .76rem; letter-spacing: .06em; color: rgba(242,226,208,.45);
}

/* ---------------- 18. 回到顶部 ---------------- */
.to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 130;
  width: 44px; height: 44px;
  border: 1px solid rgba(176,27,36,.3);
  background: rgba(246,239,225,.92);
  color: var(--red-deep); font-size: .82rem; font-family: var(--serif);
  border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .4s var(--ease);
  box-shadow: var(--sh-sm);
}
.to-top.show{ opacity: 1; visibility: visible; transform: none; }
.to-top:hover{ background: var(--red); color: #fff; border-color: var(--red); }

/* ---------------- 19. 滚动浮现 ---------------- */
/* 只有脚本可用时才隐藏，保证禁用 JS 时内容依然可见 */
.reveal{ transition: opacity .85s var(--ease), transform .85s var(--ease); }
html.js .reveal{ opacity: 0; transform: translateY(26px); }
html.js .reveal.in{ opacity: 1; transform: none; }
.reveal.d1{ transition-delay: .1s; }
.reveal.d2{ transition-delay: .2s; }
.reveal.d3{ transition-delay: .3s; }
.reveal.d4{ transition-delay: .4s; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  html.js .reveal{ opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-lead, .hero-slogan, .hero-eyebrow, .hero-actions, .hero-scroll{ animation: none; }
  .hero-scroll i::after{ animation: none; }
}

/* ---------------- 20. 无障碍 ---------------- */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: #fff; padding: 10px 18px; font-size: .85rem;
}
.skip-link:focus{ left: 12px; top: 12px; color: #fff; }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- 21. 响应式 ---------------- */
@media (max-width: 1024px){
  .mapbox{ grid-template-columns: 1fr; gap: 34px; }
  .people{ grid-template-columns: repeat(2, 1fr); }
  .foot-inner{ grid-template-columns: 1fr 1fr; }
  .foot-brand{ grid-column: 1 / -1; }
}
@media (max-width: 860px){
  body{ font-size: 16px; }
  .section{ padding: 76px 0; }
  .sec-head{ margin-bottom: 44px; }
  .sec-title{ font-size: 1.72rem; }
  .nav{
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(32,5,7,.985);
    border-bottom: 1px solid rgba(230,198,129,.2);
    padding: 8px 0 18px;
    transform: translateY(-140%);
    transition: transform .45s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .nav.is-open{ transform: none; }
  .nav-link{ padding: 14px 26px; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-link::after{ display: none; }
  .nav-toggle{ display: block; }
  .modules, .place-grid, .spirit-grid, .about-grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .stat{ border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n){ border-right: 0; }
  .stat:nth-last-child(-n+2){ border-bottom: 0; }
  .timeline::before{ left: 14px; }
  .tl-item{ grid-template-columns: 1fr; gap: 12px; padding-left: 44px; padding-bottom: 38px; }
  .tl-item::after{ left: 8px; top: 10px; }
  .tl-year{ text-align: left; font-size: 1.2rem; }
  .tl-year small{ display: inline-block; margin-left: 10px; }
  .prologue-quote{ padding: 34px 26px 34px 46px; font-size: 1.06rem; }
  .prologue-quote::before{ font-size: 3.4rem; left: 12px; }
  .quiz-shell{ padding: 30px 22px 26px; }
  .q-stem{ font-size: 1.08rem; }
  .foot-inner{ grid-template-columns: 1fr; gap: 34px; }
  .hero-inner{ padding-top: calc(var(--nav-h) + 26px); }
  .page-hero-inner{ padding-top: 100px; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 18px; }
  .hero-actions .btn{ padding: 12px 24px; font-size: .86rem; }
  .people{ grid-template-columns: 1fr; }
  .brand-sub{ display: none; }
  .tl-card{ padding: 22px 22px; }
  .module-card{ padding: 30px 24px 28px; }
  .module-arrow{ right: 22px; top: 30px; }
}

/* ---------------- 22. 打印 ---------------- */
@media print{
  .site-head, .to-top, .progress-bar, .hero-scroll, .nav-toggle{ display: none; }
  body{ background: #fff; }
  .section{ padding: 28px 0; page-break-inside: avoid; }
}
