/* ================================================================
   决胜津门 · 杨柳青平津前线指挥部旧址数字场景复现云展厅
   全站样式：深红 #7a1f1f / 米白 #f5f0e6
   ================================================================ */

:root {
  --red: #7a1f1f;
  --red-deep: #4b1010;
  --red-bright: #9d3434;
  --red-soft: #c4655a;
  --cream: #f5f0e6;
  --cream-warm: #ede3d2;
  --cream-deep: #ded2bd;
  --ink: #241b18;
  --ink-soft: #564842;
  --muted: #85756c;
  --gold: #b78a50;
  --line: rgba(122, 31, 31, 0.18);
  --line-light: rgba(245, 240, 230, 0.2);
  --nav-h: 78px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.page-exhibition::before {
  opacity: 0.06;
  mix-blend-mode: overlay;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 18px;
  background: var(--red);
  color: var(--cream);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ================================================================
   导航
   ================================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 230, 0.92);
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(245, 240, 230, 0.15);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-name strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-name small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-check,
.nav-toggle {
  display: none;
}

/* 深色导航：封面与展厅 */
.page-home .site-nav,
.site-nav-dark {
  border-bottom-color: rgba(245, 240, 230, 0.14);
  background: rgba(18, 12, 11, 0.62);
  color: var(--cream);
}

.page-home .site-nav .brand-seal,
.site-nav-dark .brand-seal {
  border-color: rgba(245, 240, 230, 0.32);
  background: var(--red);
}

.page-home .brand-name small,
.site-nav-dark .brand-name small {
  color: rgba(245, 240, 230, 0.55);
}

.page-home .nav-links a,
.site-nav-dark .nav-links a {
  color: rgba(245, 240, 230, 0.68);
}

.page-home .nav-links a::after,
.site-nav-dark .nav-links a::after {
  background: var(--cream);
}

.page-home .nav-links a:hover,
.page-home .nav-links a.active,
.site-nav-dark .nav-links a:hover,
.site-nav-dark .nav-links a.active {
  color: var(--cream);
}

.page-home .nav-links a.active,
.site-nav-dark .nav-links a.active {
  color: #f0d9b4;
}

/* ================================================================
   通用元素
   ================================================================ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: rgba(245, 240, 230, 0.68);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 13px 27px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.btn i {
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 16px 32px rgba(55, 9, 9, 0.16);
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(245, 240, 230, 0.38);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 230, 0.08);
}

.btn-light {
  background: var(--cream);
  color: var(--red);
}

.btn-light:hover {
  background: #fffaf0;
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(245, 240, 230, 0.42);
  color: var(--cream);
}

.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 230, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: gap 0.35s var(--ease), border-color 0.35s ease;
}

.text-link:hover {
  gap: 26px;
  border-color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* ================================================================
   封面
   ================================================================ */

.page-home {
  overflow: hidden;
  background: #17100e;
  color: var(--cream);
}

.home-main {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.home-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.82) contrast(1.03);
  animation: slowScale 18s ease-out both;
}

.home-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 12, 11, 0.96) 0%, rgba(25, 14, 12, 0.9) 28%, rgba(30, 16, 13, 0.54) 58%, rgba(20, 12, 11, 0.06) 100%),
    linear-gradient(0deg, rgba(16, 10, 9, 0.88) 0%, transparent 35%, rgba(16, 10, 9, 0.18) 100%),
    radial-gradient(circle at 75% 38%, rgba(122, 31, 31, 0.12), transparent 48%);
}

.home-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(30px, 4.4vw, 68px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245, 240, 230, 0.2) 20%, rgba(245, 240, 230, 0.2) 80%, transparent);
}

.home-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 48px;
  width: min(1460px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 44px) clamp(34px, 7vw, 110px) 116px;
}

.home-copy {
  max-width: 790px;
  animation: fadeUp 1s var(--ease) both;
}

.home-copy .eyebrow {
  margin-bottom: 24px;
  color: rgba(245, 240, 230, 0.58);
}

.hero-place {
  margin-bottom: 20px;
  color: rgba(245, 240, 230, 0.7);
  font-size: 13px;
  letter-spacing: 0.34em;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.02em;
  color: var(--cream);
  font-size: clamp(78px, 11.4vw, 184px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hero-title-red {
  position: relative;
  color: #c65b4c;
}

.hero-title-red::before {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: 0.04em;
  left: 0.02em;
  height: 0.075em;
  background: rgba(198, 91, 76, 0.42);
}

.hero-subtitle {
  margin-top: 25px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 31px);
  letter-spacing: 0.3em;
}

.hero-desc {
  max-width: 530px;
  margin-top: 28px;
  color: rgba(245, 240, 230, 0.68);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
}

.home-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  padding: 10px 0 30px;
  animation: fadeIn 1.4s 0.2s both;
}

.vertical-note {
  color: rgba(245, 240, 230, 0.42);
  font-size: 10px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

.home-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 96px;
  border: 1px solid rgba(245, 240, 230, 0.4);
  background: rgba(122, 31, 31, 0.88);
  color: var(--cream);
  font-family: var(--serif);
  line-height: 1.2;
  box-shadow: inset 0 0 0 5px rgba(245, 240, 230, 0.09);
}

.home-seal span {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.home-seal b {
  font-size: 25px;
  font-weight: 500;
}

.home-index {
  position: absolute;
  right: clamp(28px, 4vw, 58px);
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(245, 240, 230, 0.34);
  font-size: 9px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

.home-footer {
  position: absolute;
  right: clamp(34px, 7vw, 110px);
  bottom: 30px;
  left: clamp(34px, 7vw, 110px);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 230, 0.16);
  color: rgba(245, 240, 230, 0.38);
  font-size: 9px;
  letter-spacing: 0.15em;
}

/* ================================================================
   内页通用
   ================================================================ */

.page-inner {
  background:
    radial-gradient(circle at 85% 8%, rgba(122, 31, 31, 0.07), transparent 26%),
    linear-gradient(180deg, #f7f2e9 0%, var(--cream) 42%, #ede4d5 100%);
}

.page-inner .site-nav {
  background: rgba(245, 240, 230, 0.88);
}

.inner-main {
  width: min(1220px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: calc(var(--nav-h) + 70px);
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.page-head .eyebrow {
  margin-bottom: 22px;
}

.page-head h1 {
  max-width: 860px;
  font-size: clamp(43px, 5.6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.chapter-num {
  flex-shrink: 0;
  color: rgba(122, 31, 31, 0.09);
  font-family: var(--serif);
  font-size: clamp(130px, 17vw, 248px);
  line-height: 0.72;
  user-select: none;
}

/* 前言 */
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.62fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  padding: 72px 0 0;
}

.prose-main {
  max-width: 720px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.15;
  color: #3c302b;
}

.prose-main p + p {
  margin-top: 24px;
}

.prose-main .lead {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.95;
  color: var(--ink);
}

.prose-main .lead::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
  font-size: 3.2em;
  line-height: 0.82;
}

.prose-main blockquote {
  position: relative;
  margin: 44px 0;
  padding: 30px 34px 30px 48px;
  border-left: 2px solid var(--red);
  background: rgba(122, 31, 31, 0.045);
}

.prose-main blockquote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  color: rgba(122, 31, 31, 0.25);
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.prose-main blockquote p {
  color: var(--red);
  font-size: 19px;
  line-height: 1.9;
}

.prose-main .note {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.prose-aside {
  position: sticky;
  top: calc(var(--nav-h) + 38px);
}

.framed-photo {
  padding: 10px;
  border: 1px solid var(--line);
  background: #fbf8f1;
  box-shadow: 0 24px 54px rgba(54, 31, 24, 0.12);
}

.framed-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82);
}

.framed-photo figcaption {
  padding: 13px 4px 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.fact-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.fact-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.fact-list dd {
  color: var(--red);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.prose-aside .text-link {
  margin-top: 30px;
}

.timeline-section {
  margin-top: 120px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading-row .table-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-top: 26px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.timeline li::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(122, 31, 31, 0.1);
}

.timeline .time {
  color: var(--red);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.timeline h3 {
  margin-top: 13px;
  font-size: 19px;
  font-weight: 600;
}

.timeline p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.page-cta {
  position: relative;
  margin: 120px 0 90px;
  padding: clamp(48px, 7vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(46, 8, 8, 0.66), transparent 58%),
    var(--red);
  color: var(--cream);
}

.page-cta::after {
  content: "津";
  position: absolute;
  right: 4%;
  bottom: -0.22em;
  color: rgba(245, 240, 230, 0.07);
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
}

.page-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 20px;
  font-size: clamp(33px, 4.4vw, 56px);
  font-weight: 500;
}

.page-cta > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-top: 18px;
  color: rgba(245, 240, 230, 0.64);
  font-size: 13px;
}

.page-cta .btn {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

/* 拓展感悟 */
.expand-lead {
  max-width: 980px;
  padding: 64px 0 34px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.9;
  color: var(--red);
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.essay-card {
  padding: 38px 32px 42px;
  border-right: 1px solid var(--line);
}

.essay-card:first-child {
  padding-left: 0;
}

.essay-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.essay-no {
  color: var(--red);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.essay-card h2 {
  margin-top: 34px;
  font-size: 23px;
  font-weight: 600;
}

.essay-card p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.expand-banner {
  position: relative;
  margin: 96px 0;
}

.expand-banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.03);
}

.expand-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25, 13, 11, 0.72), transparent 55%);
}

.expand-banner figcaption {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(245, 240, 230, 0.7);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.reflection {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0 100px;
}

.reflection h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500;
}

.reflection-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 34px;
}

.reflection-columns p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.1;
}

.reflection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 42px;
}

/* 素材来源 */
.reference-intro {
  max-width: 880px;
  padding: 56px 0 42px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2.05;
}

.reference-block {
  margin-bottom: 86px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.source-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  text-align: left;
}

.source-table th {
  padding: 16px 18px;
  background: rgba(122, 31, 31, 0.06);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.source-table td {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  vertical-align: top;
}

.source-table td:first-child {
  color: var(--ink);
}

.source-table tbody tr {
  transition: background 0.25s ease;
}

.source-table tbody tr:hover {
  background: rgba(122, 31, 31, 0.025);
}

.source-table code {
  padding: 1px 5px;
  border: 1px solid rgba(122, 31, 31, 0.12);
  background: rgba(122, 31, 31, 0.04);
  color: var(--red);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.tech-grid article {
  padding: 30px 26px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-grid article:first-child {
  padding-left: 0;
}

.tech-grid article:last-child {
  border-right: 0;
}

.tech-grid article > span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.tech-grid h3 {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 600;
}

.tech-grid p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.license-note {
  max-width: 900px;
  margin: 0 auto 90px;
  padding: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.58);
}

.license-note h2 {
  margin-top: 15px;
  font-size: 34px;
  font-weight: 500;
}

.license-note p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2.05;
}

.license-note .text-link {
  margin-top: 28px;
}

/* ================================================================
   展厅
   ================================================================ */

.page-exhibition {
  overflow: hidden;
  background: #120d0c;
  color: var(--cream);
}

.exhibition-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #2b1714 0%, #120d0c 58%, #090606 100%);
}

.scene-stage {
  position: absolute;
  inset: 0;
}

.scene-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(7, 4, 4, 0.28) 76%, rgba(6, 3, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.42) 0%, transparent 20%, transparent 78%, rgba(8, 5, 4, 0.35) 100%);
}

.scene-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hud > * {
  pointer-events: none;
}

.hud button,
.hud a,
.hud .task-panel,
.hud .mobile-stick {
  pointer-events: auto;
}

.hud-identity {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  left: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 15px;
  border-left: 2px solid var(--red);
  color: rgba(245, 240, 230, 0.44);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.hud-identity b {
  color: rgba(245, 240, 230, 0.72);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* 任务面板 */
.task-panel {
  position: absolute;
  top: calc(var(--nav-h) + 22px);
  right: clamp(18px, 2.6vw, 38px);
  width: 278px;
  padding: 20px 20px 17px;
  border: 1px solid rgba(245, 240, 230, 0.16);
  background:
    linear-gradient(145deg, rgba(122, 31, 31, 0.16), transparent 48%),
    rgba(19, 12, 11, 0.78);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

body.panel-open .task-panel {
  opacity: 0;
  transform: translateX(18px);
}

.task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.14);
}

.task-kicker {
  color: rgba(245, 240, 230, 0.36);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.task-head h2 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.task-count {
  color: #e2c493;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.task-list {
  list-style: none;
}

.task-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.09);
}

.task-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(245, 240, 230, 0.28);
  border-radius: 50%;
  color: rgba(245, 240, 230, 0.6);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
  transition: all 0.35s ease;
}

.task-copy strong {
  display: block;
  color: rgba(245, 240, 230, 0.9);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.task-copy small {
  display: block;
  margin-top: 2px;
  color: rgba(245, 240, 230, 0.4);
  font-size: 9px;
  line-height: 1.6;
}

.task-check {
  position: relative;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-radius: 50%;
}

.task-check::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 6px;
  border-right: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  opacity: 0;
  transform: rotate(42deg) scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.task-item.is-complete .task-num {
  border-color: #b78a50;
  background: rgba(183, 138, 80, 0.16);
  color: #e2c493;
}

.task-item.is-complete .task-copy strong {
  color: #e2c493;
}

.task-item.is-complete .task-check {
  border-color: #b78a50;
  background: #8d622e;
}

.task-item.is-complete .task-check::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.task-note {
  margin-top: 12px;
  color: rgba(245, 240, 230, 0.3);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* 准星与提示 */
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

body.is-locked .crosshair {
  opacity: 0.78;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(245, 240, 230, 0.82);
}

.crosshair::before {
  top: 10px;
  left: 0;
  width: 7px;
  height: 1px;
  box-shadow: 15px 0 0 rgba(245, 240, 230, 0.82);
}

.crosshair::after {
  top: 0;
  left: 10px;
  width: 1px;
  height: 7px;
  box-shadow: 0 15px 0 rgba(245, 240, 230, 0.82);
}

.crosshair span {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  transition: all 0.3s ease;
}

body.focus-hotspot .crosshair {
  opacity: 1;
}

body.focus-hotspot .crosshair span {
  box-shadow: 0 0 0 7px rgba(183, 138, 80, 0.18), 0 0 18px #d6a45d;
}

.focus-tip {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  padding: 7px 13px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  background: rgba(20, 13, 12, 0.68);
  color: rgba(245, 240, 230, 0.9);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.focus-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 操作提示 */
.hints {
  position: absolute;
  bottom: 26px;
  left: clamp(24px, 3vw, 44px);
  padding: 14px 17px;
  border-left: 1px solid rgba(245, 240, 230, 0.28);
  background: rgba(18, 12, 11, 0.4);
  color: rgba(245, 240, 230, 0.56);
  font-size: 9px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}

.hint-title {
  margin-bottom: 7px;
  color: rgba(245, 240, 230, 0.88);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hint-desktop,
.hint-touch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 15px;
}

.hint-desktop span,
.hint-touch span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hint-touch {
  display: none;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 1px solid rgba(245, 240, 230, 0.24);
  border-radius: 2px;
  background: rgba(245, 240, 230, 0.06);
  color: rgba(245, 240, 230, 0.74);
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1;
}

.hint-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.35);
}

.enter-tip {
  position: absolute;
  bottom: 48px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(245, 240, 230, 0.16);
  background: rgba(18, 12, 11, 0.58);
  color: rgba(245, 240, 230, 0.7);
  font-size: 10px;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: softPulse 3s ease-in-out infinite;
}

.enter-line {
  width: 18px;
  height: 1px;
  background: rgba(245, 240, 230, 0.5);
}

body.is-locked .enter-tip,
body.touch-mode .enter-tip {
  opacity: 0;
  visibility: hidden;
}

/* 移动端摇杆与缩放提示 */
.mobile-stick {
  display: none;
}

.zoom-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 5px 10px;
  border: 1px solid rgba(245, 240, 230, 0.18);
  background: rgba(18, 12, 11, 0.6);
  color: rgba(245, 240, 230, 0.72);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}

.zoom-toast.is-visible {
  opacity: 1;
}

/* 加载页 */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(122, 31, 31, 0.24), transparent 38%),
    linear-gradient(135deg, #1b100e 0%, #0d0807 100%);
  color: var(--cream);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(245, 240, 230, 0.08);
  pointer-events: none;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  width: min(460px, calc(100% - 60px));
  text-align: center;
  animation: fadeUp 0.9s var(--ease) both;
}

.loading-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border: 1px solid rgba(245, 240, 230, 0.38);
  background: var(--red);
  box-shadow: inset 0 0 0 5px rgba(245, 240, 230, 0.09);
  font-family: var(--serif);
  font-size: 39px;
  line-height: 1;
}

.loading-emblem i {
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(245, 240, 230, 0.12);
  animation: sealSpin 10s linear infinite;
}

.loading-overline {
  color: rgba(245, 240, 230, 0.4);
  font-size: 8px;
  letter-spacing: 0.34em;
}

.loading-inner h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 500;
  letter-spacing: 0.15em;
}

.loading-copy {
  margin-top: 8px;
  color: rgba(245, 240, 230, 0.5);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.loading-bar {
  position: relative;
  height: 2px;
  margin-top: 40px;
  overflow: hidden;
  background: rgba(245, 240, 230, 0.13);
}

.loading-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--red-soft), #e4c69a);
  transition: width 0.25s ease;
}

.loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 11px;
  color: rgba(245, 240, 230, 0.42);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.loading-meta strong {
  color: #e2c493;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
}

.loading-path {
  margin-top: 25px;
  color: rgba(245, 240, 230, 0.22);
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.loading-foot {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: rgba(245, 240, 230, 0.24);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-align: center;
}

/* 加载失败提示 */
.scene-notice {
  position: fixed;
  top: calc(var(--nav-h) + 18px);
  left: 50%;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(720px, calc(100% - 34px));
  padding: 10px 14px;
  border: 1px solid rgba(228, 198, 154, 0.32);
  background: rgba(38, 18, 14, 0.9);
  color: rgba(245, 240, 230, 0.68);
  font-size: 10px;
  line-height: 1.7;
  transform: translateX(-50%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.scene-notice strong {
  flex-shrink: 0;
  color: #e2c493;
  font-weight: 500;
}

.scene-notice button {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 240, 230, 0.54);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  body.has-notice .task-panel {
    top: calc(var(--nav-h) + 92px);
  }
}

/* 热点侧边面板 */
.hotspot-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  width: min(440px, 100%);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(122, 31, 31, 0.055), transparent 22%),
    var(--cream);
  color: var(--ink);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.36);
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
}

.hotspot-panel.is-open {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(122, 31, 31, 0.2);
  background: rgba(245, 240, 230, 0.78);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.panel-close:hover {
  border-color: var(--red);
  background: var(--red);
}

.panel-close span {
  position: absolute;
  top: 20px;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--red);
  transition: background 0.25s ease;
}

.panel-close span:first-child {
  transform: rotate(45deg);
}

.panel-close span:last-child {
  transform: rotate(-45deg);
}

.panel-close:hover span {
  background: var(--cream);
}

.panel-scroll {
  height: 100%;
  padding: 82px 42px 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 31, 31, 0.25) transparent;
}

.panel-scroll::-webkit-scrollbar {
  width: 4px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(122, 31, 31, 0.24);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-heading p {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.panel-heading span {
  color: rgba(122, 31, 31, 0.3);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hotspot-panel h2 {
  margin-top: 22px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.panel-figure {
  margin-top: 24px;
}

.panel-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
  box-shadow: 0 18px 44px rgba(60, 34, 28, 0.14);
}

.panel-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.panel-text {
  margin-top: 26px;
  color: #42352f;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.05;
  white-space: pre-line;
}

.panel-audio {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(122, 31, 31, 0.035);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 26px;
  height: 20px;
  flex-shrink: 0;
}

.audio-wave i {
  width: 2px;
  height: 5px;
  background: var(--red);
  animation: audioWave 1.1s ease-in-out infinite;
}

.audio-wave i:nth-child(2) {
  animation-delay: 0.12s;
}

.audio-wave i:nth-child(3) {
  animation-delay: 0.24s;
}

.audio-wave i:nth-child(4) {
  animation-delay: 0.36s;
}

.audio-wave i:nth-child(5) {
  animation-delay: 0.48s;
}

.panel-audio.is-muted .audio-wave i {
  animation-play-state: paused;
  opacity: 0.3;
}

.audio-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.audio-copy span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.audio-copy small {
  color: var(--muted);
  font-size: 9px;
}

.panel-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}

.panel-continue:hover {
  padding-right: 7px;
}

.panel-source {
  margin-top: 22px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

/* 完成弹窗 */
.completion-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.completion-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.completion-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 4, 0.76);
  backdrop-filter: blur(9px);
}

.completion-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(38px, 6vw, 64px);
  border-top: 3px solid var(--red);
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.45s var(--ease);
}

.completion-modal.is-open .completion-card {
  transform: translateY(0) scale(1);
}

.completion-seal {
  position: absolute;
  top: -27px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(245, 240, 230, 0.35);
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 5px rgba(245, 240, 230, 0.1);
}

.completion-card .eyebrow {
  justify-content: center;
  margin-top: 18px;
}

.completion-card h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 500;
}

.completion-card > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.completion-score {
  display: block;
  margin-top: 18px;
  color: rgba(122, 31, 31, 0.36);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.completion-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.completion-actions .btn-outline-light {
  border-color: rgba(122, 31, 31, 0.28);
  color: var(--red);
}

.completion-actions .btn-outline-light:hover {
  border-color: var(--red);
  background: rgba(122, 31, 31, 0.05);
}

/* ================================================================
   战役时间轴（可收起侧栏）
   ================================================================ */

.hud .timeline-toggle,
.hud .timeline-panel,
.hud .tour-toggle {
  pointer-events: auto;
}

.timeline-toggle {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  padding: 18px 9px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-left: none;
  background: rgba(122, 31, 31, 0.82);
  color: rgba(245, 240, 230, 0.88);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: left 0.45s var(--ease), background 0.3s ease, opacity 0.3s ease;
}

.timeline-toggle span {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.32em;
}

.timeline-toggle:hover {
  background: var(--red);
}

body.timeline-open .timeline-toggle {
  left: min(312px, 88vw);
}

.timeline-panel {
  position: absolute;
  top: calc(var(--nav-h) + 14px);
  bottom: 14px;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(312px, 88vw);
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-left: none;
  background:
    linear-gradient(165deg, rgba(122, 31, 31, 0.2), transparent 42%),
    rgba(17, 11, 10, 0.86);
  box-shadow: 30px 0 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-106%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s ease;
}

body.timeline-open .timeline-panel {
  transform: translateX(0);
  visibility: visible;
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.13);
}

.timeline-kicker {
  color: rgba(245, 240, 230, 0.36);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.timeline-head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.timeline-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 240, 230, 0.24);
  background: transparent;
  color: rgba(245, 240, 230, 0.7);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-close:hover {
  border-color: rgba(245, 240, 230, 0.6);
  background: rgba(245, 240, 230, 0.08);
}

.timeline-list {
  position: relative;
  flex: 1;
  list-style: none;
  overflow-y: auto;
  padding: 8px 14px 8px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 240, 230, 0.2) transparent;
}

.timeline-list::-webkit-scrollbar {
  width: 4px;
}

.timeline-list::-webkit-scrollbar-thumb {
  background: rgba(245, 240, 230, 0.18);
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 32px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(226, 196, 147, 0.34) 12%,
    rgba(226, 196, 147, 0.34) 88%,
    transparent
  );
}

.timeline-node {
  position: relative;
  padding: 9px 0 9px 22px;
}

.node-dot {
  position: absolute;
  top: 20px;
  left: 3px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(245, 240, 230, 0.3);
  border-radius: 50%;
  background: #5c2220;
  box-shadow: 0 0 0 3px rgba(17, 11, 10, 0.85);
  transition: all 0.35s ease;
}

.timeline-node.is-viewing .node-dot {
  border-color: rgba(255, 122, 96, 0.9);
  background: #ff5a44;
  box-shadow: 0 0 12px rgba(255, 90, 68, 0.75), 0 0 0 3px rgba(17, 11, 10, 0.85);
  animation: nodePulse 1.5s ease-in-out infinite;
}

.timeline-node.is-visited .node-dot {
  border-color: rgba(226, 196, 147, 0.85);
  background: #d9a860;
  box-shadow: 0 0 9px rgba(217, 168, 96, 0.55), 0 0 0 3px rgba(17, 11, 10, 0.85);
}

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

.node-body {
  display: block;
  width: 100%;
  padding: 8px 12px 9px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.node-body:hover,
.timeline-node.is-viewing .node-body {
  border-color: rgba(245, 240, 230, 0.18);
  background: rgba(245, 240, 230, 0.06);
}

.node-date {
  display: block;
  color: #e2c493;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.node-title {
  display: block;
  margin-top: 2px;
  color: rgba(245, 240, 230, 0.92);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.node-desc {
  display: block;
  margin-top: 3px;
  color: rgba(245, 240, 230, 0.42);
  font-size: 9px;
  line-height: 1.7;
}

.timeline-node.is-visited .node-title {
  color: rgba(226, 196, 147, 0.95);
}

.timeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(245, 240, 230, 0.13);
}

.timeline-progress {
  color: rgba(245, 240, 230, 0.5);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.timeline-cert {
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(226, 196, 147, 0.5);
  background: rgba(183, 138, 80, 0.14);
  color: #e2c493;
  font-size: 10px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-cert:hover {
  border-color: #e2c493;
  background: rgba(183, 138, 80, 0.28);
}

body.timeline-complete .timeline-progress {
  color: #e2c493;
}

/* ================================================================
   自动导览
   ================================================================ */

.tour-toggle {
  position: absolute;
  right: clamp(24px, 3vw, 44px);
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(245, 240, 230, 0.3);
  background: rgba(18, 12, 11, 0.62);
  color: rgba(245, 240, 230, 0.86);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tour-toggle i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2c493;
  box-shadow: 0 0 8px rgba(226, 196, 147, 0.8);
}

.tour-toggle:hover {
  border-color: rgba(245, 240, 230, 0.65);
  background: rgba(245, 240, 230, 0.1);
}

body.tour-active .tour-toggle {
  border-color: var(--red);
  background: var(--red);
  color: var(--cream);
}

body.tour-active .tour-toggle i {
  background: var(--cream);
  animation: nodePulse 1.2s ease-in-out infinite;
}

.tour-status {
  position: absolute;
  bottom: 92px;
  left: 50%;
  padding: 8px 18px;
  border: 1px solid rgba(226, 196, 147, 0.32);
  background: rgba(18, 12, 11, 0.66);
  color: rgba(226, 196, 147, 0.92);
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(10px);
}

body.tour-active .tour-status {
  opacity: 1;
  visibility: visible;
}

body.panel-open .timeline-toggle,
body.panel-open .tour-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ================================================================
   参观电子证书
   ================================================================ */

.certificate .cert-text {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.certificate .cert-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.certificate .cert-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
}

.completion-card.is-incomplete .completion-seal {
  background: var(--ink-soft);
}

.completion-card.is-incomplete .completion-score {
  color: rgba(86, 72, 66, 0.4);
  font-size: 34px;
}

.completion-card.is-incomplete #cert-save {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================================================================
   动画
   ================================================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slowScale {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

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

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes audioWave {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 18px;
  }
}

.reveal {
  animation: fadeUp 0.85s var(--ease) both;
}

.page-head.reveal {
  animation-delay: 0.05s;
}

.prose-main.reveal,
.prose-aside.reveal {
  animation-delay: 0.14s;
}

.timeline-section.reveal,
.expand-lead.reveal {
  animation-delay: 0.18s;
}

.essay-card:nth-child(2) {
  animation-delay: 0.1s;
}

.essay-card:nth-child(3) {
  animation-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   响应式
   ================================================================ */

@media (max-width: 1080px) {
  .prose-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.6fr);
    gap: 56px;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    row-gap: 38px;
  }

  .essay-card {
    padding: 34px 22px;
  }

  .essay-card h2 {
    font-size: 20px;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-grid article:nth-child(2) {
    border-right: 0;
  }

  .tech-grid article:first-child,
  .tech-grid article:nth-child(2) {
    padding-left: 0;
  }

  .tech-grid article:nth-child(3) {
    padding-left: 0;
  }

  .essay-grid {
    grid-template-columns: 1fr;
  }

  .essay-card,
  .essay-card:first-child,
  .essay-card:last-child {
    padding: 34px 0 38px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .essay-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 66px;
  }

  .site-nav {
    padding: 0 20px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand-name strong {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .brand-name small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid currentColor;
    opacity: 0.72;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    z-index: 450;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 240, 230, 0.98);
    box-shadow: 0 20px 50px rgba(40, 20, 16, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s ease;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-check:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .page-home .nav-links,
  .site-nav-dark .nav-links {
    border-bottom-color: rgba(245, 240, 230, 0.14);
    background: rgba(18, 12, 11, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }

  .page-home .nav-links a,
  .site-nav-dark .nav-links a {
    border-bottom-color: rgba(245, 240, 230, 0.12);
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 55px) 24px 124px;
  }

  .home-copy {
    max-width: 620px;
  }

  .home-media img {
    object-position: 63% center;
  }

  .home-shade {
    background:
      linear-gradient(90deg, rgba(20, 12, 11, 0.94) 0%, rgba(23, 13, 11, 0.8) 45%, rgba(22, 12, 10, 0.44) 100%),
      linear-gradient(0deg, rgba(14, 8, 7, 0.94) 0%, rgba(16, 10, 9, 0.24) 55%, rgba(16, 10, 9, 0.44) 100%);
  }

  .home-rule {
    left: 24px;
  }

  .home-aside,
  .home-index {
    display: none;
  }

  .hero-title {
    font-size: clamp(66px, 20vw, 120px);
  }

  .hero-place {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 19px;
    letter-spacing: 0.22em;
  }

  .hero-desc {
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.95;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 11px 20px;
  }

  .home-footer {
    right: 24px;
    bottom: 22px;
    left: 24px;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
  }

  .inner-main {
    width: calc(100% - 40px);
    padding-top: calc(var(--nav-h) + 48px);
  }

  .page-head {
    align-items: flex-start;
    padding-bottom: 32px;
  }

  .page-head h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .chapter-num {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 110px;
    opacity: 0.72;
  }

  .page-head > div {
    position: relative;
    z-index: 1;
  }

  .prose-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 46px;
  }

  .prose-main {
    font-size: 16px;
    line-height: 2;
  }

  .prose-aside {
    position: static;
  }

  .prose-main blockquote {
    margin: 34px 0;
    padding: 25px 22px 25px 36px;
  }

  .timeline-section {
    margin-top: 72px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline li {
    padding: 0 0 30px 26px;
    border-left: 1px solid var(--line);
  }

  .timeline li::before {
    display: none;
  }

  .timeline li::after {
    top: 7px;
    left: -5px;
  }

  .page-cta {
    margin: 72px 0 54px;
    padding: 40px 28px;
  }

  .page-cta h2 {
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
    gap: 5px;
    width: calc(100% - 40px);
    padding: 24px 0 28px;
    font-size: 8px;
  }

  .expand-lead {
    padding-top: 42px;
    font-size: 21px;
  }

  .essay-card h2 {
    margin-top: 22px;
    font-size: 21px;
  }

  .expand-banner {
    margin: 62px 0;
  }

  .expand-banner img {
    aspect-ratio: 4 / 3;
  }

  .expand-banner figcaption {
    right: 16px;
    bottom: 14px;
    left: 16px;
    flex-direction: column;
    gap: 3px;
    font-size: 8px;
  }

  .reflection {
    padding-bottom: 60px;
  }

  .reflection-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reference-intro {
    padding-top: 40px;
    font-size: 16px;
  }

  .reference-block {
    margin-bottom: 58px;
  }

  .section-heading-row {
    align-items: flex-start;
  }

  .table-note {
    display: none;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid article,
  .tech-grid article:first-child,
  .tech-grid article:nth-child(2),
  .tech-grid article:nth-child(3) {
    padding: 24px 0;
    border-right: 0;
  }

  .license-note {
    padding: 32px 24px;
    margin-bottom: 56px;
  }

  .license-note h2 {
    font-size: 28px;
  }

  /* 展厅移动端 */
  .hud-identity {
    display: none;
  }

  .task-panel {
    top: calc(var(--nav-h) + 10px);
    right: 10px;
    width: min(248px, calc(100% - 20px));
    padding: 13px 14px 12px;
  }

  .task-head {
    padding-bottom: 9px;
  }

  .task-head h2 {
    font-size: 16px;
  }

  .task-item {
    grid-template-columns: 19px minmax(0, 1fr) 14px;
    gap: 7px;
    padding: 8px 0;
  }

  .task-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .task-copy strong {
    font-size: 11px;
  }

  .task-copy small {
    display: none;
  }

  .task-check {
    width: 13px;
    height: 13px;
  }

  .task-check::after {
    top: 1px;
    left: 4px;
  }

  .task-note {
    display: none;
  }

  .hints {
    right: 12px;
    bottom: 14px;
    left: auto;
    max-width: 188px;
    padding: 9px 11px;
    font-size: 8px;
  }

  .hint-title {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .hint-desktop {
    display: none;
  }

  .hint-touch {
    display: flex;
    gap: 2px 8px;
  }

  .hint-touch span {
    font-size: 8px;
  }

  .mobile-stick {
    display: block;
    position: absolute;
    bottom: 22px;
    left: 20px;
  }

  .stick-base {
    position: relative;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border: 1px solid rgba(245, 240, 230, 0.2);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(122, 31, 31, 0.2) 0%, rgba(18, 12, 11, 0.44) 68%);
    backdrop-filter: blur(7px);
    touch-action: none;
    user-select: none;
  }

  .stick-ring {
    position: absolute;
    inset: 22px;
    border: 1px dashed rgba(245, 240, 230, 0.14);
    border-radius: 50%;
  }

  .stick-knob {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 240, 230, 0.35);
    border-radius: 50%;
    background: rgba(122, 31, 31, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 0 0 4px rgba(245, 240, 230, 0.06);
    transform: translate(0, 0);
  }

  .stick-label {
    display: block;
    margin-top: 6px;
    color: rgba(245, 240, 230, 0.36);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-align: center;
  }

  .enter-tip {
    bottom: 150px;
    width: max-content;
    max-width: calc(100% - 40px);
    font-size: 9px;
  }

  .scene-notice {
    top: calc(var(--nav-h) + 8px);
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    align-items: flex-start;
    padding: 8px 10px;
    font-size: 9px;
    transform: none;
  }

  body.has-notice .task-panel {
    top: calc(var(--nav-h) + 100px);
  }

  .scene-notice span {
    line-height: 1.5;
  }

  .hotspot-panel {
    width: 100%;
  }

  .panel-scroll {
    padding: 78px 24px 32px;
  }

  .panel-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(245, 240, 230, 0.9);
  }

  .panel-close span {
    top: 18px;
    left: 10px;
  }

  .hotspot-panel h2 {
    font-size: 32px;
  }

  .panel-text {
    font-size: 14px;
  }

  .completion-card {
    padding: 44px 24px 30px;
  }

  .completion-actions {
    flex-direction: column;
  }

  .completion-score {
    font-size: 38px;
  }

  .timeline-toggle {
    padding: 15px 8px;
  }

  .timeline-toggle span {
    font-size: 9px;
  }

  .timeline-panel {
    top: calc(var(--nav-h) + 8px);
    bottom: 8px;
  }

  .tour-toggle {
    right: 16px;
    bottom: 20px;
    min-height: 42px;
    padding: 10px 15px;
    font-size: 10px;
  }

  .tour-status {
    bottom: 76px;
    max-width: calc(100% - 32px);
    font-size: 8px;
  }

  .cert-meta {
    gap: 4px 14px;
  }
}

@media (max-width: 420px) {
  .brand-name small {
    display: none;
  }

  .hero-title {
    font-size: 19vw;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 11px 14px;
    font-size: 11px;
  }

  .task-panel {
    width: 230px;
  }

  .hints {
    max-width: 162px;
  }

  .stick-base {
    width: 104px;
    height: 104px;
  }

  .hotspot-panel h2 {
    font-size: 29px;
  }
}

/* 触摸模式 */
body.touch-mode .hint-desktop,
body.touch-mode .crosshair {
  display: none;
}

body.touch-mode .hint-touch {
  display: flex;
}
