﻿/* ============================================
   鏁呭寤虹瓚鎴愬氨鍙鍖?鈥?鍏变韩鏍峰紡
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-red: #B81D25;
  --color-red-dark: #8A151B;
  --color-gold: #DDAA33;
  --color-gold-dim: #C49000;
  --color-gold-deep: #8A6800;
  --color-gray: #5A646E;
  --color-gray-light: #DCE0E3;
  --color-ink: #2C2E33;
  --color-cream: #F8F5EE;
  --color-cream-dark: #EBE5D5;
  --color-cream-strong: #FFFDF9;
  --color-zitan: #361A1D;
  --color-zitan-light: #52252A;
  --color-white: #FFFFFF;

  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-brand: 'STSong', 'Songti SC', 'SimSun', 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.05), 0 12px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.12);

  --nav-height: 64px;
  --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: clamp(12px, calc(16px * (100vw / 2560)), 16px); }
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
img.lazy-loaded {
  opacity: 1;
}
[data-bg-image] {
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease-in-out;
}
[data-bg-image]:not(.lazy-loaded) {
  opacity: 0.3;
}
[data-bg-image].lazy-loaded {
  opacity: 1;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.3; }

/* --- Utilities --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  padding: var(--space-xl) 0;
}
.section-title {
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  color: var(--color-ink);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-red);
  margin: var(--space-sm) auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--color-gray);
  font-size: 1rem;
  font-weight: 500;
  margin-top: -1.5rem;
  margin-bottom: var(--space-lg);
}
.text-gold { color: var(--color-gold); }
.text-red  { color: var(--color-red); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(247, 238, 226, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60' viewBox='0 0 180 60'%3E%3Cg opacity='0.08' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 44H170'/%3E%3Cpath d='M26 44V30h128v14'/%3E%3Cpath d='M34 30l10-8h92l10 8'/%3E%3Cpath d='M40 22l8-6h84l8 6'/%3E%3Cpath d='M54 44V34M126 44V34'/%3E%3Cpath d='M72 44V36h36v8'/%3E%3Cpath d='M66 36l6-4h36l6 4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 60px;
  background-position: 0 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 4px 16px rgba(0,0,0,0.08);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-brand);
  display: inline-block;
  font-size: 1.7rem;
  color: #9E001F;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
  padding: 0 0 0.2rem;
  border-bottom: none;
  text-decoration: none;
  text-shadow: 0 4px 14px rgba(255,255,255,0.12);
}
.nav-links {
  display: flex;
  gap: var(--space-xs);
}
.nav-links a {
  color: rgba(58, 21, 24, 0.88);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  list-style: none;
}
.nav-links a::before {
  content: none;
  display: none;
}
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active,
.nav-links a:focus {
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: #FFF7DD;
  background: rgba(158, 0, 31, 0.8);
  box-shadow: inset 0 0 0 1px rgba(112, 93, 0, 0.2);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #7D1023;
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  overflow: hidden;
  margin-top: var(--nav-height);
}
.hero--home { min-height: 55vh; }
.hero--module { min-height: 32vh; }
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-zitan) 0%, var(--color-red-dark) 50%, var(--color-zitan) 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, var(--color-gold) 40px, var(--color-gold) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, var(--color-gold) 40px, var(--color-gold) 41px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(58,21,24,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) var(--space-md);
}
.hero-content h1 {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  letter-spacing: 4px;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Palace Door Effect (Homepage Only) --- */
.door-stage {
  position: relative;
  height: 100vh;
}
.door-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0a0a;
  --door-backdrop-scale: 1.08;
  --door-pan-x: 0px;
  --door-pan-y: 0px;
  --door-tilt-x: 0deg;
  --door-tilt-y: 0deg;
  perspective: 1400px;
}
.door-scene::before {
  content: '';
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,215,0,0.14), transparent 26%),
    radial-gradient(circle at 50% 55%, rgba(200,16,46,0.18), transparent 38%);
  transform: translate3d(calc(var(--door-pan-x) * -0.35), calc(var(--door-pan-y) * -0.2), 0);
  opacity: 0.95;
  transition: transform 0.8s var(--ease-smooth), opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
.door-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.door-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform:
    translate3d(calc(var(--door-pan-x) * -0.32), calc(var(--door-pan-y) * -0.24), 0)
    scale(var(--door-backdrop-scale))
    rotateX(var(--door-tilt-x))
    rotateY(calc(var(--door-tilt-y) * 0.55));
  transition: transform 1.25s var(--ease-emphasis), filter 0.9s ease;
  filter: saturate(1.04) contrast(1.05);
}
.door-scene.door-open .door-backdrop img {
  transform: translate3d(0, 0, 0) scale(1.01);
}
.door-backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245,240,225,0.08) 0%, rgba(245,240,225,0.02) 28%, rgba(245,240,225,0.18) 62%, rgba(245,240,225,0.84) 100%),
    radial-gradient(circle at 50% 30%, rgba(255,244,214,0.12), transparent 38%);
}
.door-backdrop-image--gate-view {
  object-position: 52% 54%;
}
.door-content {
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-zitan);
  opacity: 0;
  transform:
    translate3d(calc(var(--door-pan-x) * 0.14), calc(var(--door-pan-y) * 0.1), 0)
    scale(0.92);
  width: min(92vw, 1100px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) var(--space-md) clamp(4rem, 7vw, 6rem);
  pointer-events: none;
  gap: 0.85rem;
  transition: opacity 0.9s var(--ease-smooth) 0.16s, transform 1.05s var(--ease-emphasis) 0.16s;
}
.door-scene.door-open .door-content {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.door-content-active .door-eyebrow,
.door-content-active .door-hero-title,
.door-content-active .door-hero-subtitle,
.door-content-active .door-thesis-card {
  animation: doorContentFloat 7s ease-in-out infinite alternate;
}
.door-content-active .door-hero-title { animation-delay: 0.12s; }
.door-content-active .door-hero-subtitle { animation-delay: 0.22s; }
.door-content-active .door-thesis-card { animation-delay: 0.34s; }
.door-content h1 {
  font-family: var(--font-serif);
  margin: 0;
}
.door-content p {
  margin: 0;
}
.door-eyebrow {
  font-family: var(--font-serif);
  color: #7A5A00;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(255,255,255,0.32);
}
.door-hero-title {
  font-size: clamp(4.5rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #9E001F;
  text-shadow: 0 3px 28px rgba(90,22,24,0.18);
}
.door-hero-subtitle {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.7;
  color: rgba(90, 70, 38, 0.82);
  text-shadow: 0 1px 10px rgba(255,255,255,0.3);
}
.door-thesis-card {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 660px;
  padding: 1.4rem 1.8rem;
  background: rgba(247, 241, 227, 0.86);
  border: 1px solid rgba(122,90,0,0.14);
  box-shadow: 0 18px 42px rgba(58,21,24,0.08);
  backdrop-filter: blur(8px);
  text-align: left;
}
.door-thesis-card p {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(58,21,24,0.88);
}
.door-thesis-card span {
  color: var(--color-red);
  font-weight: 700;
}
/* Door panels: each is full-width with clip-path to show only its half.
   The background-image is set inline so the split falls exactly on the
   natural door seam. No element sits on the split line. */
.door-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 3;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 1.15s var(--ease-emphasis), filter 0.6s ease;
}
.door-left {
  left: 0;
  clip-path: inset(0 50% 0 0);
  transform-origin: 50% 50%;
  filter: drop-shadow(4px 0 18px rgba(0,0,0,0.46));
}
.door-right {
  left: 0;
  clip-path: inset(0 0 0 50%);
  transform-origin: 50% 50%;
  filter: drop-shadow(-4px 0 18px rgba(0,0,0,0.46));
}
.door-scene.door-open .door-left {
  transform: translateX(-54%) rotateY(10deg);
}
.door-scene.door-open .door-right {
  transform: translateX(54%) rotateY(-10deg);
}
/* Centre seam line between the two door leaves */
.door-scene::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: rgba(0,0,0,0.45);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.door-scene.door-open::after {
  opacity: 0;
}
.door-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-smooth);
}
.door-scene.door-open .door-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.door-skip {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 6;
  background: rgba(0,0,0,0.4);
  color: var(--color-cream);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.3s ease, transform 0.35s var(--ease-smooth), border-color 0.3s ease;
  backdrop-filter: blur(4px);
}
.door-skip:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-2px);
  border-color: rgba(255,215,0,0.4);
}
.door-scene.door-open .door-skip {
  opacity: 0;
  pointer-events: none;
}
.door-hint-arrow {
  width: 18px;
  height: 18px;
  margin: 10px auto 0;
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(45deg);
  animation: doorHintBounce 2s ease-in-out infinite;
}
@keyframes doorHintBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.6; }
}
@keyframes doorContentFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
/* Skip transitions when restoring state on page refresh */
.door-scene.door-no-transition .door-panel,
.door-scene.door-no-transition .door-content,
.door-scene.door-no-transition .door-backdrop img,
.door-scene.door-no-transition .door-hint,
.door-scene.door-no-transition::after {
  transition: none !important;
}

/* --- Module Entry Cards (homepage) --- */
.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.module-cards > .module-card {
  grid-column: auto;
}

/* Desktop: force 3 cards in first row, 2 centered in second row */
@media (min-width: 1025px) {
  .module-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .module-cards > .module-card {
    grid-column: span 2;
  }
  .module-cards > .module-card:nth-child(4) { grid-column: 2 / span 2; }
  .module-cards > .module-card:nth-child(5) { grid-column: 4 / span 2; }
}
.module-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  border-top: 4px solid var(--color-red);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-gold);
}
.module-card-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-red);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.module-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}
.module-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}
.module-card p {
  font-size: 0.92rem;
  color: var(--color-gray);
  flex: 1;
  margin-bottom: var(--space-sm);
}
.module-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-red);
  font-weight: 600;
  transition: gap 0.3s ease;
}
.module-card:hover .module-card-link { gap: 0.8rem; }

/* --- Data Cards (Section A) --- */
.data-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.data-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--color-red);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth), border-color 0.35s ease, background 0.35s ease;
}
.data-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-gold-dim);
}
.data-card-value {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1.1;
}
.data-card-unit {
  font-size: 1rem;
  color: var(--color-gray);
  margin-left: 0.2rem;
}
.data-card-label {
  font-size: 0.95rem;
  color: var(--color-ink);
  margin-top: var(--space-xs);
}

/* --- SVG Floorplan (Section B) --- */
.floorplan-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.floorplan-wrapper svg {
  width: 100%;
  height: auto;
}
.floorplan-wrapper .building {
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}
.floorplan-wrapper .building:hover {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(200,16,46,0.5));
}
.floorplan-tooltip {
  position: absolute;
  background: var(--color-zitan);
  color: var(--color-cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: normal;
  max-width: 280px;
  line-height: 1.5;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.floorplan-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-zitan);
}
.floorplan-tooltip.visible { opacity: 1; }

.floorplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
  font-size: 0.9rem;
}
.floorplan-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.floorplan-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--color-gray-light);
}

/* --- Defense Section (Section C) --- */
.defense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.defense-svg-col {
  position: relative;
}
.defense-svg-col svg {
  width: 100%;
  height: auto;
}
.defense-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.defense-spec-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.defense-spec-thumb {
  width: 112px;
  min-width: 112px;
  height: 72px;
  border-radius: 14px;
  background-size: 280px auto;
  background-repeat: no-repeat;
  background-color: #fff;
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.defense-spec-thumb--dragon { background-position: left 18% top 8%; }
.defense-spec-thumb--lion { background-position: center 24% top 8%; }
.defense-spec-thumb--myth { background-position: center 62% top 8%; }
.defense-spec-thumb--xingshi { background-position: right 8% top 8%; }
.defense-spec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.defense-spec-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--color-red);
}
.defense-spec-item p {
  font-size: 0.9rem;
  color: var(--color-gray);
}
.quote-block {
  background: var(--color-zitan);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  margin-top: var(--space-md);
  letter-spacing: 2px;
  position: relative;
}
.quote-block::before,
.quote-block::after {
  font-size: 2rem;
  opacity: 0.4;
  position: absolute;
}
.quote-block::before { content: '\201C'; top: 8px; left: 16px; }
.quote-block::after  { content: '\201D'; bottom: 8px; right: 16px; }

/* --- Timeline Canvas (Section D) --- */
.timeline-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.timeline-canvas {
  display: block;
  width: 100%;
  height: 220px;
  cursor: pointer;
}
.timeline-detail {
  display: none;
  background: var(--color-white);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease;
}
.timeline-detail.visible { display: block; }
.timeline-detail h4 {
  color: var(--color-red);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.timeline-detail p {
  font-size: 0.92rem;
  color: var(--color-gray);
}

/* --- Functional Zones (Section E) --- */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.zone-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-red);
  transition: box-shadow 0.45s var(--ease-smooth), border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.zone-card:hover {
  box-shadow: 0 18px 34px rgba(58,21,24,0.15);
  border-left-color: var(--color-gold-dim);
}
.zone-card-media {
  position: relative;
  min-height: 164px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.zone-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.08), rgba(20, 12, 10, 0.52));
}
.zone-card-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.92);
  color: var(--color-zitan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.zone-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  padding: var(--space-md) var(--space-md) 0;
}
.zone-card-header .zone-icon {
  font-size: 1.4rem;
}
.zone-card h3 {
  font-size: 1.15rem;
  color: var(--color-ink);
}
.zone-card .zone-desc {
  font-size: 0.92rem;
  color: var(--color-gray);
  margin-bottom: var(--space-xs);
  padding: 0 var(--space-md);
}
.zone-card .zone-buildings {
  font-size: 0.85rem;
  color: var(--color-ink);
  padding-left: 1rem;
  padding-right: var(--space-md);
  padding-bottom: var(--space-md);
  margin-left: var(--space-md);
}
.zone-card .zone-buildings li {
  list-style: disc;
  margin-bottom: 0.2rem;
}

/* --- Footer --- */
.footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 10%;
  font-size: 0.85rem;
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
  }
}

.footer-left {
  flex: 1;
}

.footer-left p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  text-align: left;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .footer-left p {
    text-align: center;
  }
}

.footer-right {
  font-size: 1.7rem;
  font-family: var(--font-brand, var(--font-serif));
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #9E001F;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  padding-bottom: 0.2rem;
  text-shadow: 0 4px 14px rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .footer-right {
    margin-top: var(--space-lg);
  }
}

.footer a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Placeholder page --- */
.placeholder-section {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.placeholder-section .placeholder-icon {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}
.placeholder-section h2 {
  font-size: 1.5rem;
  color: var(--color-gray);
  margin-bottom: var(--space-sm);
}
.placeholder-section p {
  color: var(--color-gray);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  --reveal-opacity: 0;
  --reveal-y: 36px;
  --reveal-x: 0px;
  --reveal-scale: 0.96;
  --reveal-rotate-x: 0deg;
  --reveal-delay: 0ms;
  --hover-lift: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  opacity: var(--reveal-opacity);
  transform:
    perspective(1200px)
    translate3d(var(--reveal-x), calc(var(--reveal-y) + var(--hover-lift)), 0)
    scale(var(--reveal-scale))
    rotateX(calc(var(--reveal-rotate-x) + var(--hover-rotate-x)))
    rotateY(var(--hover-rotate-y));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition:
    opacity 1.2s var(--ease-smooth) var(--reveal-delay),
    transform 1.2s var(--ease-spring) var(--reveal-delay),
    box-shadow 0.5s var(--ease-smooth),
    border-color 0.35s ease,
    background 0.35s ease;
}
.animate-on-scroll.in-view {
  --reveal-opacity: 1;
  --reveal-y: 0px;
  --reveal-x: 0px;
  --reveal-scale: 1;
  --reveal-rotate-x: 0deg;
}

.motion-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --hover-glow-opacity: 0;
  --hover-lift: 0px;
  --hover-rotate-x: 0deg;
  --hover-rotate-y: 0deg;
  transform:
    perspective(1200px)
    translate3d(0, var(--hover-lift), 0)
    rotateX(var(--hover-rotate-x))
    rotateY(var(--hover-rotate-y));
  transition:
    transform 0.55s var(--ease-spring),
    box-shadow 0.5s var(--ease-smooth),
    border-color 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
}

.animate-on-scroll.motion-card {
  transform:
    perspective(1200px)
    translate3d(0, calc(var(--reveal-y) + var(--hover-lift)), 0)
    scale(var(--reveal-scale))
    rotateX(calc(var(--reveal-rotate-x) + var(--hover-rotate-x)))
    rotateY(var(--hover-rotate-y));
}

.motion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 55%);
  opacity: var(--hover-glow-opacity);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.motion-card > * {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* --- Engineering SVG Motion --- */
.engineering-diagram {
  --engineering-accent: var(--color-red);
  --engineering-soft: rgba(200,16,46,0.12);
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(58,21,24,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,240,225,0.96)),
    radial-gradient(circle at top left, rgba(255,215,0,0.12), transparent 38%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.engineering-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,215,0,0.1), transparent 32%),
    linear-gradient(135deg, rgba(200,16,46,0.05), transparent 42%);
  pointer-events: none;
}

.engineering-diagram > * {
  position: relative;
  z-index: 1;
}

.engineering-diagram[data-engineering-diagram="heating"] {
  --engineering-accent: #d95b1f;
  --engineering-soft: rgba(217,91,31,0.14);
}

.engineering-diagram[data-engineering-diagram="environment"] {
  --engineering-accent: #b8860b;
  --engineering-soft: rgba(184,134,11,0.14);
}

.engineering-figure {
  overflow: visible;
  border-radius: 20px;
}

.engineering-caption {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.engineering-caption-head {
  display: grid;
  gap: 0.3rem;
}

.engineering-caption-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--engineering-soft);
  color: var(--engineering-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engineering-caption-title {
  color: var(--engineering-accent);
  font-size: 1.18rem;
  line-height: 1.45;
}

.engineering-caption-body {
  color: var(--color-zitan);
  font-size: 0.94rem;
  line-height: 1.8;
}

.engineering-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.engineering-step {
  display: grid;
  align-items: start;
  min-height: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(58,21,24,0.09);
  border-radius: 16px;
  background: rgba(245,240,225,0.62);
  color: var(--color-zitan);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-smooth),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.35s var(--ease-smooth);
}

.engineering-step[data-phase-name="phase-overview"] {
  order: 99;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 16.5rem);
  padding: 0.78rem 1.05rem;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border-color: rgba(58,21,24,0.14);
  box-shadow: 0 10px 20px rgba(58,21,24,0.08);
}

.engineering-step:hover {
  transform: translateY(-2px);
  border-color: rgba(58,21,24,0.16);
}

.engineering-step.is-active {
  transform: translateY(-2px);
  border-color: rgba(58,21,24,0.12);
  background:
    linear-gradient(135deg, var(--engineering-soft), rgba(255,255,255,0.96));
  box-shadow: 0 14px 26px rgba(58,21,24,0.12);
}

.engineering-step:focus-visible {
  outline: 2px solid var(--engineering-accent);
  outline-offset: 2px;
}

.engineering-step-copy {
  display: grid;
  gap: 0.2rem;
}

.engineering-step[data-phase-name="phase-overview"] .engineering-step-copy {
  justify-items: center;
}

.engineering-step-copy strong {
  font-size: 0.92rem;
  line-height: 1.45;
}

.engineering-step-copy small {
  color: var(--color-gray);
  font-size: 0.78rem;
  line-height: 1.5;
}

.engineering-step[data-phase-name="phase-overview"] .engineering-step-copy strong {
  font-size: 0.95rem;
}

.engineering-figure .seismic-foundation,
.engineering-figure .seismic-column,
.engineering-figure .seismic-beam,
.engineering-figure .seismic-bracket,
.engineering-figure .seismic-roof,
.engineering-figure .seismic-node,
.engineering-figure .seismic-force-arrow,
.engineering-figure .heat-firebox,
.engineering-figure .heat-flame,
.engineering-figure .heat-channel-bed,
.engineering-figure .heat-channel-line,
.engineering-figure .heat-flow-arrow,
.engineering-figure .heat-floor-surface,
.engineering-figure .heat-rise-line,
.engineering-figure .heat-rise-arrow,
.engineering-figure .heat-chimney,
.engineering-figure .heat-smoke,
.engineering-figure .sun-disc,
.engineering-figure .light-ray,
.engineering-figure .lightning-bolt,
.engineering-figure .lightning-path,
.engineering-figure .env-finial,
.engineering-figure .env-body,
.engineering-figure .env-platform,
.engineering-figure .env-ground,
.engineering-figure .env-grounding,
.engineering-figure .vent-flow,
.engineering-figure .vent-arrow,
.engineering-figure .env-roof {
  transform-box: fill-box;
  transform-origin: center center;
  transition:
    opacity 0.55s var(--ease-smooth),
    filter 0.55s ease,
    transform 0.7s var(--ease-smooth),
    fill-opacity 0.55s ease,
    stroke-dashoffset 0.8s linear;
}

.engineering-figure .seismic-column,
.engineering-figure .seismic-beam,
.engineering-figure .seismic-bracket,
.engineering-figure .seismic-roof {
  transform-origin: center bottom;
}

.engineering-figure .heat-flame,
.engineering-figure .heat-rise-arrow {
  transform-origin: center bottom;
}

.engineering-diagram.is-live .engineering-figure .seismic-foundation,
.engineering-diagram.is-live .engineering-figure .seismic-column,
.engineering-diagram.is-live .engineering-figure .seismic-beam,
.engineering-diagram.is-live .engineering-figure .seismic-bracket,
.engineering-diagram.is-live .engineering-figure .seismic-roof,
.engineering-diagram.is-live .engineering-figure .seismic-node,
.engineering-diagram.is-live .engineering-figure .seismic-force-arrow,
.engineering-diagram.is-live .engineering-figure .heat-firebox,
.engineering-diagram.is-live .engineering-figure .heat-flame,
.engineering-diagram.is-live .engineering-figure .heat-channel-bed,
.engineering-diagram.is-live .engineering-figure .heat-channel-line,
.engineering-diagram.is-live .engineering-figure .heat-flow-arrow,
.engineering-diagram.is-live .engineering-figure .heat-floor-surface,
.engineering-diagram.is-live .engineering-figure .heat-rise-line,
.engineering-diagram.is-live .engineering-figure .heat-rise-arrow,
.engineering-diagram.is-live .engineering-figure .heat-chimney,
.engineering-diagram.is-live .engineering-figure .heat-smoke,
.engineering-diagram.is-live .engineering-figure .sun-disc,
.engineering-diagram.is-live .engineering-figure .light-ray,
.engineering-diagram.is-live .engineering-figure .lightning-bolt,
.engineering-diagram.is-live .engineering-figure .lightning-path,
.engineering-diagram.is-live .engineering-figure .env-finial,
.engineering-diagram.is-live .engineering-figure .env-body,
.engineering-diagram.is-live .engineering-figure .env-platform,
.engineering-diagram.is-live .engineering-figure .env-ground,
.engineering-diagram.is-live .engineering-figure .env-grounding,
.engineering-diagram.is-live .engineering-figure .vent-flow,
.engineering-diagram.is-live .engineering-figure .vent-arrow,
.engineering-diagram.is-live .engineering-figure .env-roof {
  opacity: 0.2;
  filter: saturate(0.76) brightness(0.98);
}

.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-foundation,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-column,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-beam,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-bracket,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-roof,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-node,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .seismic-force-arrow,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-firebox,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-flame,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-channel-bed,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-channel-line,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-flow-arrow,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-floor-surface,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-rise-line,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-rise-arrow,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-chimney,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .heat-smoke,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .sun-disc,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .light-ray,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .lightning-bolt,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .lightning-path,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-finial,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-body,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-platform,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-ground,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-grounding,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .vent-flow,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .vent-arrow,
.engineering-diagram[data-phase="phase-overview"] .engineering-figure .env-roof {
  opacity: 0.95;
  filter: saturate(1.08) brightness(1.04);
}

.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-column,
.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-beam,
.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-bracket,
.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-roof {
  animation: seismicOverviewMotion 2.4s var(--ease-smooth) infinite;
}

.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-force-arrow,
.engineering-diagram[data-engineering-diagram="seismic"][data-phase="phase-overview"] .seismic-node {
  animation: seismicOverviewSignal 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(200,16,46,0.28));
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-flame {
  animation: heatingFlameFlicker 0.85s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 16px rgba(255,111,0,0.32));
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-channel-line {
  animation: engineeringDash 1.35s linear infinite;
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-channel-line--alt {
  animation-delay: -0.45s;
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-flow-arrow {
  animation: engineeringArrowX 1.05s ease-in-out infinite;
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-rise-line {
  animation: engineeringDashUp 1.2s linear infinite;
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-rise-arrow {
  animation: engineeringArrowUp 1.15s ease-in-out infinite;
}

.engineering-diagram[data-engineering-diagram="heating"][data-phase="phase-overview"] .heat-smoke {
  animation: chimneySmoke 1.8s linear infinite;
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .lightning-bolt {
  animation: lightningFlash 1.1s steps(2, end) infinite;
  filter: drop-shadow(0 0 18px rgba(255,215,0,0.4));
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .lightning-path,
.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .vent-flow {
  animation: engineeringDash 1.25s linear infinite;
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .vent-flow--alt {
  animation-delay: -0.45s;
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .vent-arrow {
  animation: engineeringArrowX 1.05s ease-in-out infinite;
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .sun-disc {
  animation: sunPulse 2.4s ease-in-out infinite;
}

.engineering-diagram[data-engineering-diagram="environment"][data-phase="phase-overview"] .light-ray {
  animation: lightRayBreath 1.8s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-force"] .seismic-column,
.engineering-diagram[data-phase="phase-force"] .seismic-beam,
.engineering-diagram[data-phase="phase-force"] .seismic-roof,
.engineering-diagram[data-phase="phase-force"] .seismic-force-arrow {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.28));
}

.engineering-diagram[data-phase="phase-force"] .seismic-column,
.engineering-diagram[data-phase="phase-force"] .seismic-beam,
.engineering-diagram[data-phase="phase-force"] .seismic-roof {
  animation: seismicFrameSway 2.6s var(--ease-smooth) infinite;
}

.engineering-diagram[data-phase="phase-force"] .seismic-force-arrow {
  animation: seismicForcePulse 1.15s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-joints"] .seismic-beam,
.engineering-diagram[data-phase="phase-joints"] .seismic-bracket,
.engineering-diagram[data-phase="phase-joints"] .seismic-node--joint {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.32));
}

.engineering-diagram[data-phase="phase-joints"] .seismic-bracket,
.engineering-diagram[data-phase="phase-joints"] .seismic-beam {
  animation: seismicJointGive 2.2s var(--ease-smooth) infinite;
}

.engineering-diagram[data-phase="phase-joints"] .seismic-node--joint {
  animation: seismicNodePulse 1.45s ease-out infinite;
}

.engineering-diagram[data-phase="phase-base"] .seismic-foundation,
.engineering-diagram[data-phase="phase-base"] .seismic-column,
.engineering-diagram[data-phase="phase-base"] .seismic-node--base {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.28));
}

.engineering-diagram[data-phase="phase-base"] .seismic-foundation {
  animation: seismicFoundationGlow 1.9s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-base"] .seismic-column {
  animation: seismicBaseSlide 2.4s var(--ease-smooth) infinite;
}

.engineering-diagram[data-phase="phase-base"] .seismic-node--base {
  animation: seismicNodePulse 1.4s ease-out infinite;
}

.engineering-diagram[data-phase="phase-bracket"] .seismic-beam,
.engineering-diagram[data-phase="phase-bracket"] .seismic-bracket,
.engineering-diagram[data-phase="phase-bracket"] .seismic-node--joint {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.32));
}

.engineering-diagram[data-phase="phase-bracket"] .seismic-bracket,
.engineering-diagram[data-phase="phase-bracket"] .seismic-beam {
  animation: seismicJointGive 2.2s var(--ease-smooth) infinite;
}

.engineering-diagram[data-phase="phase-bracket"] .seismic-node--joint {
  animation: seismicNodePulse 1.45s ease-out infinite;
}

.engineering-diagram[data-phase="phase-recover"] .seismic-foundation,
.engineering-diagram[data-phase="phase-recover"] .seismic-column,
.engineering-diagram[data-phase="phase-recover"] .seismic-beam,
.engineering-diagram[data-phase="phase-recover"] .seismic-bracket,
.engineering-diagram[data-phase="phase-recover"] .seismic-roof,
.engineering-diagram[data-phase="phase-recover"] .seismic-node {
  opacity: 0.96;
  filter: drop-shadow(0 0 8px rgba(200,16,46,0.16));
}

.engineering-diagram[data-phase="phase-recover"] .seismic-column,
.engineering-diagram[data-phase="phase-recover"] .seismic-beam,
.engineering-diagram[data-phase="phase-recover"] .seismic-bracket,
.engineering-diagram[data-phase="phase-recover"] .seismic-roof {
  animation: seismicSettle 2.8s var(--ease-smooth) infinite;
}

.engineering-diagram[data-phase="phase-recover"] .seismic-node {
  animation: seismicNodePulse 1.8s ease-out infinite;
}

.engineering-figure .dg-part,
.engineering-figure .dg-node,
.engineering-figure .dg-flow-line {
  transform-box: fill-box;
  transform-origin: center center;
  transition:
    opacity 0.55s var(--ease-smooth),
    filter 0.55s ease,
    transform 0.7s var(--ease-smooth),
    stroke-dashoffset 0.75s linear;
}

.dougong-diagram.is-live .dougong-figure .dg-part,
.dougong-diagram.is-live .dougong-figure .dg-node,
.dougong-diagram.is-live .dougong-figure .dg-flow-line {
  opacity: 0.2;
  filter: saturate(0.76) brightness(0.98);
}

.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-part,
.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-node,
.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-flow-line {
  opacity: 0.96;
  filter: saturate(1.04) brightness(1.03);
}

.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-part {
  animation: dougongLayerFloat 2.6s ease-in-out infinite;
}

.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-flow-line {
  animation: engineeringDashDown 1.25s linear infinite;
}

.dougong-diagram[data-phase="phase-overview"] .dougong-figure .dg-node {
  animation: seismicNodePulse 1.55s ease-out infinite;
}

.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-part--roof,
.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-flow-line--roof,
.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-node--roof {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.28));
}

.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-part--roof {
  animation: dougongRoofLift 2.35s ease-in-out infinite;
}

.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-flow-line--roof {
  animation: engineeringDashDown 1.05s linear infinite;
}

.dougong-diagram[data-phase="phase-roof"] .dougong-figure .dg-node--roof {
  animation: seismicNodePulse 1.35s ease-out infinite;
}

.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-part--bracket,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-flow-line--roof,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-flow-line--bracket,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-node--roof,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-node--bracket {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.32));
}

.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-part--bracket {
  animation: dougongBracketFlex 2.3s ease-in-out infinite;
}

.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-flow-line--roof,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-flow-line--bracket {
  animation: engineeringDashDown 1.05s linear infinite;
}

.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-node--roof,
.dougong-diagram[data-phase="phase-bracket"] .dougong-figure .dg-node--bracket {
  animation: seismicNodePulse 1.35s ease-out infinite;
}

.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-part--column,
.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-flow-line,
.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-node {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,16,46,0.28));
}

.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-part--column {
  animation: dougongColumnSettle 2.35s ease-in-out infinite;
}

.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-flow-line {
  animation: engineeringDashDown 1.05s linear infinite;
}

.dougong-diagram[data-phase="phase-column"] .dougong-figure .dg-node {
  animation: seismicNodePulse 1.35s ease-out infinite;
}

.engineering-diagram[data-phase="phase-ignite"] .heat-firebox,
.engineering-diagram[data-phase="phase-ignite"] .heat-flame {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,111,0,0.34));
}

.engineering-diagram[data-phase="phase-ignite"] .heat-firebox {
  animation: engineeringGlow 2s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-ignite"] .heat-flame {
  animation: heatingFlameFlicker 0.95s ease-in-out infinite alternate;
}

.engineering-diagram[data-phase="phase-ignite"] .heat-flame--inner {
  animation-duration: 0.68s;
}

.engineering-diagram[data-phase="phase-channel"] .heat-firebox,
.engineering-diagram[data-phase="phase-channel"] .heat-channel-bed,
.engineering-diagram[data-phase="phase-channel"] .heat-channel-line,
.engineering-diagram[data-phase="phase-channel"] .heat-flow-arrow {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(255,111,0,0.28));
}

.engineering-diagram[data-phase="phase-channel"] .heat-channel-line {
  animation: engineeringDash 1.7s linear infinite;
}

.engineering-diagram[data-phase="phase-channel"] .heat-channel-line--alt {
  animation-delay: -0.55s;
}

.engineering-diagram[data-phase="phase-channel"] .heat-flow-arrow {
  animation: engineeringArrowX 1.3s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-radiate"] .heat-floor-surface,
.engineering-diagram[data-phase="phase-radiate"] .heat-rise-line,
.engineering-diagram[data-phase="phase-radiate"] .heat-rise-arrow,
.engineering-diagram[data-phase="phase-radiate"] .heat-channel-bed {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,143,0,0.28));
}

.engineering-diagram[data-phase="phase-radiate"] .heat-floor-surface {
  animation: heatingSurfaceGlow 2.3s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-radiate"] .heat-rise-line {
  animation: engineeringDashUp 1.5s linear infinite;
}

.engineering-diagram[data-phase="phase-radiate"] .heat-rise-line--mid,
.engineering-diagram[data-phase="phase-radiate"] .heat-rise-arrow--mid {
  animation-delay: -0.3s;
}

.engineering-diagram[data-phase="phase-radiate"] .heat-rise-line--late,
.engineering-diagram[data-phase="phase-radiate"] .heat-rise-arrow--late {
  animation-delay: -0.6s;
}

.engineering-diagram[data-phase="phase-radiate"] .heat-rise-arrow {
  animation: engineeringArrowUp 1.5s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-exhaust"] .heat-chimney,
.engineering-diagram[data-phase="phase-exhaust"] .heat-smoke {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(148,148,148,0.18));
}

.engineering-diagram[data-phase="phase-exhaust"] .heat-smoke {
  animation: chimneySmoke 2.1s linear infinite;
}

.engineering-diagram[data-phase="phase-exhaust"] .heat-smoke--alt {
  animation-delay: -0.75s;
}

.engineering-diagram[data-phase="phase-lightning"] .lightning-bolt,
.engineering-diagram[data-phase="phase-lightning"] .env-finial,
.engineering-diagram[data-phase="phase-lightning"] .env-roof {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,215,0,0.36));
}

.engineering-diagram[data-phase="phase-lightning"] .lightning-bolt {
  animation: lightningFlash 1.35s steps(2, end) infinite;
}

.engineering-diagram[data-phase="phase-lightning"] .lightning-bolt--core {
  animation-duration: 1.08s;
}

.engineering-diagram[data-phase="phase-lightning"] .env-finial {
  animation: engineeringPulse 1.2s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-grounding"] .lightning-path,
.engineering-diagram[data-phase="phase-grounding"] .env-grounding,
.engineering-diagram[data-phase="phase-grounding"] .env-body,
.engineering-diagram[data-phase="phase-grounding"] .env-platform,
.engineering-diagram[data-phase="phase-grounding"] .env-ground {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(255,215,0,0.28));
}

.engineering-diagram[data-phase="phase-grounding"] .lightning-path {
  animation: engineeringDashDown 1.35s linear infinite;
}

.engineering-diagram[data-phase="phase-grounding"] .env-grounding {
  animation: groundingPulse 1.35s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-vent"] .vent-flow,
.engineering-diagram[data-phase="phase-vent"] .vent-arrow,
.engineering-diagram[data-phase="phase-vent"] .env-body {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(46,125,50,0.28));
}

.engineering-diagram[data-phase="phase-vent"] .vent-flow {
  animation: engineeringDash 1.7s linear infinite;
}

.engineering-diagram[data-phase="phase-vent"] .vent-flow--alt {
  animation-delay: -0.55s;
}

.engineering-diagram[data-phase="phase-vent"] .vent-arrow {
  animation: engineeringArrowX 1.2s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-daylight"] .sun-disc,
.engineering-diagram[data-phase="phase-daylight"] .light-ray,
.engineering-diagram[data-phase="phase-daylight"] .env-roof {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,224,130,0.34));
}

.engineering-diagram[data-phase="phase-daylight"] .sun-disc {
  animation: sunPulse 3s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-daylight"] .light-ray {
  animation: lightRayBreath 2.2s ease-in-out infinite;
}

.engineering-diagram[data-phase="phase-daylight"] .light-ray--alt {
  animation-delay: -1s;
}

.engineering-diagram[data-phase="phase-daylight"] .env-roof {
  animation: roofLightShift 2.8s ease-in-out infinite;
}

@keyframes seismicOverviewMotion {
  0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
  20% { transform: translateX(-5px) rotate(-1.2deg) scale(0.996); }
  42% { transform: translateX(5px) rotate(1.2deg) scale(1.005); }
  68% { transform: translateX(-2.5px) rotate(-0.5deg) scale(0.998); }
}

@keyframes seismicOverviewSignal {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.46); opacity: 1; }
}

@keyframes seismicFrameSway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  18% { transform: translateX(-4px) rotate(-1.2deg); }
  38% { transform: translateX(4.5px) rotate(1.2deg); }
  62% { transform: translateX(-2.4px) rotate(-0.6deg); }
  82% { transform: translateX(1.4px) rotate(0.28deg); }
}

@keyframes seismicJointGive {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  30% { transform: translateX(3px) rotate(0.75deg); }
  55% { transform: translateX(-3px) rotate(-0.65deg); }
}

@keyframes seismicBaseSlide {
  0%, 100% { transform: translateX(0); }
  28% { transform: translateX(-3px); }
  55% { transform: translateX(4px); }
  78% { transform: translateX(-1.8px); }
}

@keyframes seismicSettle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-1px) rotate(-0.22deg); }
  55% { transform: translateX(1.2px) rotate(0.26deg); }
  78% { transform: translateX(-0.5px) rotate(-0.08deg); }
}

@keyframes seismicNodePulse {
  0% { transform: scale(1); opacity: 0.84; }
  55% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes seismicForcePulse {
  0%, 100% { transform: translateX(0); opacity: 0.45; }
  50% { transform: translateX(14px); opacity: 1; }
}

@keyframes engineeringGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,143,0,0)); }
  50% { filter: drop-shadow(0 0 16px rgba(255,143,0,0.22)); }
}

@keyframes seismicFoundationGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(200,16,46,0)); }
  50% { filter: drop-shadow(0 0 16px rgba(200,16,46,0.24)); }
}

@keyframes engineeringPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes dougongLayerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes dougongRoofLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes dougongBracketFlex {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

@keyframes dougongColumnSettle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes heatingFlameFlicker {
  0% { transform: scale(0.92, 0.9) translateY(0); opacity: 0.56; }
  50% { transform: scale(1.12, 1.22) translateY(-5px); opacity: 1; }
  100% { transform: scale(0.9, 1.04) translateY(2px); opacity: 0.66; }
}

@keyframes heatingSurfaceGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,143,0,0)); }
  50% { filter: drop-shadow(0 0 16px rgba(255,143,0,0.26)); }
}

@keyframes engineeringDash {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: 0; }
}

@keyframes engineeringDashUp {
  from { stroke-dashoffset: 10; opacity: 0.32; }
  to { stroke-dashoffset: 0; opacity: 0.92; }
}

@keyframes engineeringDashDown {
  from { stroke-dashoffset: -12; opacity: 0.34; }
  to { stroke-dashoffset: 0; opacity: 0.92; }
}

@keyframes engineeringArrowX {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(14px); opacity: 1; }
}

@keyframes engineeringArrowUp {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-13px); opacity: 1; }
}

@keyframes chimneySmoke {
  0% { stroke-dashoffset: 10; opacity: 0.18; }
  50% { opacity: 0.55; }
  100% { stroke-dashoffset: 0; opacity: 0.08; }
}

@keyframes lightningFlash {
  0%, 60%, 100% { opacity: 0.16; }
  8%, 14%, 22% { opacity: 1; }
  11%, 18% { opacity: 0.42; }
}

@keyframes groundingPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.68; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes lightRayBreath {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.46; }
}

@keyframes roofLightShift {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.11) saturate(1.05); }
}

@media (max-width: 768px) {
  .engineering-step-list {
    grid-template-columns: 1fr;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .motion-card {
    transform: none !important;
  }
  .door-content-active h1,
  .door-content-active p,
  .door-content-active .hero-thesis {
    animation: none !important;
  }
  .door-scene::before,
  .thd-viewer-wrap::before,
  .thd-viewer-wrap::after,
  .explode-viewer-wrap::before,
  .explode-viewer-wrap::after {
    display: none;
  }
  html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .data-cards { grid-template-columns: repeat(2, 1fr); }

  .door-scene {
    --door-backdrop-scale: 1.1;
  }

  .door-backdrop-image--gate-view {
    object-position: 55% 54%;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: var(--nav-height);
  }

  .navbar .container {
    gap: 0.75rem;
    min-height: var(--nav-height);
  }

  .nav-links {
    display: flex !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    background: none;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    flex: 0 0 auto;
    padding: 0.35rem 0.58rem;
    font-size: 0.82rem;
  }
  .nav-toggle { display: none !important; }

  .navbar-brand {
    font-size: 1.35rem;
    padding-bottom: 0.16rem;
    flex: 0 0 auto;
  }

  .hero-content h1 { font-size: 2rem; letter-spacing: 2px; }
  .hero-content p { font-size: 1rem; }

  .data-cards { grid-template-columns: 1fr 1fr; }
  .data-card-value { font-size: 2rem; }

  .defense-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem; }

  .timeline-canvas { height: 400px; }

  .door-content {
    width: min(94vw, 760px);
    padding: 2.6rem 1.2rem 3.4rem;
  }
  .door-scene {
    --door-backdrop-scale: 1.14;
  }
  .door-backdrop-image--gate-view {
    object-position: 58% 54%;
  }
  .door-eyebrow { font-size: 0.78rem; letter-spacing: 0.28em; }
  .door-hero-title { font-size: clamp(3.1rem, 12vw, 5rem); }
  .door-hero-subtitle { font-size: 1rem; line-height: 1.6; }
  .door-thesis-card {
    max-width: 100%;
    margin-top: 1.8rem;
    padding: 1.05rem 1.15rem;
  }
  .door-thesis-card p { font-size: 0.95rem; line-height: 1.8; }
  .door-hint { font-size: 0.85rem; bottom: 32px; }
}

@media (max-width: 480px) {
  .data-cards { grid-template-columns: 1fr; }
  .module-cards { grid-template-columns: 1fr; }
  .hero--home { min-height: 45vh; }

  .navbar-brand {
    font-size: 1.12rem;
    padding-bottom: 0.14rem;
  }

  .hero-content h1 { font-size: 1.6rem; }

  .door-content {
    width: min(96vw, 100%);
    padding: 2.1rem 0.9rem 2.8rem;
    gap: 0.6rem;
  }
  .door-scene {
    --door-backdrop-scale: 1.18;
  }
  .door-backdrop-image--gate-view {
    object-position: 60% 55%;
  }
  .door-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; }
  .door-hero-title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .door-hero-subtitle { font-size: 0.9rem; }
  .door-thesis-card {
    margin-top: 1.4rem;
    padding: 0.9rem 1rem;
  }
  .door-thesis-card p { font-size: 0.88rem; line-height: 1.7; }
}

@media (max-height: 820px) and (min-width: 769px) {
  .door-scene {
    --door-backdrop-scale: 1.12;
  }

  .door-backdrop-image--gate-view {
    object-position: 54% 52%;
  }

  .door-content {
    padding-top: 2.4rem;
    padding-bottom: 3.4rem;
  }
}

@media (min-width: 1440px) and (min-height: 900px) {
  .door-backdrop-image--gate-view {
    object-position: 50% 55%;
  }
}

/* ============================================
   鏂板鏍峰紡 鈥?Module 2~5 鍏辩敤缁勪欢
   ============================================ */

/* --- Comparison Table --- */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}
.compare-table thead th {
  background: var(--color-zitan);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: center;
  white-space: nowrap;
}
.compare-table thead th:first-child {
  background: var(--color-red-dark);
  color: var(--color-cream);
}
.compare-table tbody td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-gray-light);
  vertical-align: middle;
}
.compare-table tbody td:first-child {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-red);
  background: rgba(200,16,46,0.04);
  text-align: left;
  white-space: nowrap;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: rgba(255,215,0,0.08);
}

/* --- Color Swatch Grid --- */
.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.color-swatch-grid .color-swatch.animate-on-scroll {
  transform-origin: 50% 50%;
  --reveal-scale: 0.82;
  transition:
    opacity 1.1s var(--ease-smooth) var(--reveal-delay),
    transform 1.1s var(--ease-spring) var(--reveal-delay),
    box-shadow 0.5s var(--ease-smooth),
    border-color 0.35s ease,
    background 0.35s ease;
}
.color-swatch {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.color-swatch:hover { transform: translateY(-4px); }
.color-swatch-block {
  height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem;
}
.color-swatch-block span {
  font-size: 0.75rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(33,33,33,0.6);
  color: rgba(255,255,255,0.95);
  text-shadow: none;
  font-family: var(--font-sans);
}
.color-swatch-body {
  padding: 0.75rem 1rem;
}
.color-swatch-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--color-ink);
}
.color-swatch-body p {
  font-size: 0.82rem;
  color: var(--color-gray);
  line-height: 1.5;
}

/* --- Structure Diagram --- */
.structure-diagram {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.structure-diagram svg {
  width: 100%;
  height: auto;
}
.roof-evidence-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.roof-evidence-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  background: var(--color-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(58,21,24,0.08);
}
.roof-evidence-media {
  min-height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.roof-evidence-body {
  padding: 1.15rem 1.2rem;
}
.roof-evidence-kicker,
.module3-reference-kicker {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roof-evidence-body h3,
.module3-reference-body h3 {
  margin-top: 0.72rem;
  font-size: 1.06rem;
  color: var(--color-ink);
}
.roof-evidence-body p,
.module3-reference-body p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-gray);
}
.module3-reference-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(58,21,24,0.08);
  margin-bottom: var(--space-sm);
}
.module3-reference-media {
  min-height: 210px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #fff;
}
.module3-reference-body {
  padding: 1rem 1.05rem 1.1rem;
}

/* --- Info Grid (generic 2-col) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.info-card h4 {
  font-size: 1.1rem;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}
.info-card p {
  font-size: 0.92rem;
  color: var(--color-gray);
  line-height: 1.7;
}
.info-card .info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* --- Homepage Overview micro-viz --- */
.mini-axis {
  margin-top: var(--space-sm);
}
.mini-axis svg {
  width: 100%;
  height: auto;
}
.mini-bars {
  margin-top: var(--space-sm);
  display: grid;
  gap: 0.55rem;
}
.mini-bar {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.6rem;
  align-items: center;
}
.mini-bar-label {
  font-size: 0.9rem;
  color: var(--color-ink);
  font-weight: 600;
  font-family: var(--font-serif);
}
.mini-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(107,118,128,0.18);
  overflow: hidden;
}
.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-gold) 100%);
}
.mini-legend {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--color-gray);
}
.mini-palette {
  margin-top: var(--space-sm);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.mini-palette span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.overview-note {
  margin-top: var(--space-lg);
  color: var(--color-gray);
  font-size: 0.86rem;
  text-align: center;
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge--red {
  background: rgba(200,16,46,0.1);
  color: var(--color-red);
}
.badge--gold {
  background: rgba(122,90,0,0.12);
  color: var(--color-gold-deep);
  border: 1px solid rgba(122,90,0,0.18);
}
.badge--green {
  background: rgba(46,125,50,0.1);
  color: #2E7D32;
}
.badge--gray {
  background: rgba(140,150,155,0.15);
  color: var(--color-gray);
}

/* --- Painting / Pattern Demo Blocks --- */
.painting-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.painting-cards .painting-card.paint-reveal {
  opacity: 0;
  transform: translate3d(0, 96px, 0) scale(0.88);
  transition:
    opacity 0.95s var(--ease-smooth),
    transform 1s var(--ease-spring),
    box-shadow 0.5s var(--ease-smooth),
    border-color 0.35s ease,
    background 0.35s ease;
  will-change: transform, opacity;
}
.painting-cards .painting-card.paint-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.painting-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}
.painting-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  min-height: 140px;
}
.painting-card-visual--image {
  position: relative;
  overflow: hidden;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.painting-card-visual--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 10, 8, 0.08) 0%, rgba(15, 10, 8, 0.22) 42%, rgba(15, 10, 8, 0.62) 100%),
    linear-gradient(135deg, rgba(200, 16, 46, 0.16), rgba(212, 166, 58, 0.12));
  z-index: -1;
}
.painting-card-visual svg {
  width: 100%;
  height: 100%;
  max-height: 120px;
}
.painting-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.9);
  color: var(--color-zitan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.painting-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.painting-card-body h4 {
  font-size: 1.1rem;
  color: var(--color-red);
  margin-bottom: 0.3rem;
}
.painting-card-body .painting-rank {
  font-size: 0.82rem;
  color: var(--color-gold-deep);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.painting-card-body p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.65;
}

/* --- Responsive additions for new components --- */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
  .painting-cards .painting-card.paint-reveal { transform: translate3d(0, 72px, 0) scale(0.9); }
  .painting-card { grid-template-columns: 1fr; }
  .painting-card-visual { min-height: 100px; }
  .roof-evidence-strip { grid-template-columns: 1fr; }
  .roof-evidence-card { grid-template-columns: 1fr; }
  .roof-evidence-media { min-height: 150px; }
  .module3-reference-media { min-height: 180px; }
  .defense-spec-item { flex-wrap: wrap; }
  .defense-spec-thumb {
    width: 100%;
    min-width: 0;
    height: 110px;
    background-size: cover;
  }
  .compare-table { font-size: 0.82rem; }
  .compare-table thead th,
  .compare-table tbody td { padding: 0.6rem 0.6rem; }
  .mini-bar { grid-template-columns: 84px 1fr; }
}

@media (max-width: 480px) {
  .color-swatch-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .color-swatch-block { height: 70px; }
}

/* ============================================
   澶拰娈?3D 鍙氦浜掓ā鍨?Section
   ============================================ */
#taihedian-3d {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background:
    linear-gradient(180deg, var(--color-cream) 0%, #EDE6D4 50%, var(--color-cream-dark) 100%);
  position: relative;
}
#taihedian-3d .container {
  display: grid;
  gap: 1.25rem;
}
#taihedian-3d .section-title {
  letter-spacing: 4px;
}
#taihedian-3d .section-subtitle {
  font-family: var(--font-serif);
  letter-spacing: 1px;
  opacity: 0.75;
}
.page-home #taihedian-3d .section-intro {
  margin-bottom: 0;
}
.legacy-model-argument {
  display: none;
}
.home-model-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: var(--space-lg);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.home-model-copy h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  color: var(--color-zitan);
  margin-bottom: var(--space-sm);
}
.home-model-copy p {
  color: var(--color-gray);
  max-width: 34rem;
}
.home-model-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.1);
  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.home-model-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(58,21,24,0.08);
  color: var(--color-zitan);
  font-size: 0.82rem;
}
.home-model-stage {
  position: relative;
  min-height: 540px;
  border-radius: 22px;
  overflow: hidden;
  background: #efe7d8;
  border: 1px solid rgba(58,21,24,0.12);
}
.home-model-stage--embedded {
  min-height: 0;
  max-width: none;
  margin: 0;
}
.home-model-stage--embedded .home-model-viewer {
  height: 100%;
  min-height: 540px;
}
.home-model-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(58,21,24,0.8);
  color: var(--color-cream);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.home-model-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 540px;
  background: #efe7d8;
  --progress-bar-color: var(--color-red);
  --progress-mask: rgba(245,240,225,0.85);
}
.home-model-tip,
.home-model-error {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 24rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  text-align: center;
  font-size: 0.88rem;
}
.home-model-tip {
  background: #ffffff;
  color: var(--color-zitan);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-model-tip.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.home-model-error {
  background: rgba(200,16,46,0.12);
  color: var(--color-red-dark);
}
.thd-viewer-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: #efe7d8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(58,21,24,0.15),
    0 1px 0 rgba(200,16,46,0.25),
    inset 0 0 0 1px rgba(200,16,46,0.08);
  border: 2px solid rgba(200,16,46,0.18);
}
.thd-viewer-wrap::before,
.explode-viewer-wrap::before {
  display: none;
}
.thd-viewer-wrap::after,
.explode-viewer-wrap::after {
  display: none;
}
.thd-viewer-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.thd-viewer-wrap canvas:active {
  cursor: grabbing;
}
.thd-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(58,21,24,0.78);
  color: var(--color-cream);
  font-size: 0.8rem;
  font-family: var(--font-serif);
  padding: 0.35rem 1.2rem;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  letter-spacing: 1px;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-smooth), background 0.35s ease;
}
.thd-hint.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }
.thd-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.9rem;
  gap: 0.8rem;
}
.thd-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-gray-light);
  border-top-color: var(--color-red);
  border-radius: 50%;
  animation: thd-spin 0.8s linear infinite;
}
@keyframes thd-spin { to { transform: rotate(360deg); } }
.thd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.82rem;
  color: var(--color-gray);
}
.thd-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.thd-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.thd-note {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-gray);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .home-model-shell { grid-template-columns: 1fr; }
  .home-model-stage,
  .home-model-viewer { height: 420px; min-height: 420px; }
  .home-model-stage--embedded .home-model-viewer { min-height: 420px; }
  .thd-viewer-wrap { aspect-ratio: 4 / 3; }
  .thd-hint { font-size: 0.75rem; }
  .thd-legend { font-size: 0.78rem; gap: 0.35rem 0.8rem; }
}
@media (max-width: 480px) {
  .home-model-stage,
  .home-model-viewer { height: 340px; min-height: 340px; }
  .home-model-stage--embedded .home-model-viewer { min-height: 340px; }
  .thd-viewer-wrap { aspect-ratio: 1 / 1; }
}

/* ============================================
   3D 鐖嗙偢鍥炬帶鍒堕潰鏉?   ============================================ */
.explode-viewer-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: #efe7d8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(58,21,24,0.15),
    0 1px 0 rgba(200,16,46,0.25),
    inset 0 0 0 1px rgba(200,16,46,0.08);
  border: 2px solid rgba(200,16,46,0.18);
}
.explode-viewer-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.explode-viewer-wrap canvas:active {
  cursor: grabbing;
}

/* 鐖嗙偢鎺у埗鏉?*/
.explode-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(58,21,24,0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: 28px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.explode-label {
  color: var(--color-cream);
  font-size: 0.78rem;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  opacity: 0.85;
  user-select: none;
}

/* 婊戝潡鏍峰紡 */
.explode-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,215,0,0.4), rgba(200,16,46,0.6));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.explode-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  border: 2px solid var(--color-cream);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.explode-controls input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.explode-controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  border: 2px solid var(--color-cream);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 鑷姩婕旂ず鎸夐挳 */
.explode-auto-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(200,16,46,0.8);
  color: var(--color-cream);
  border: 1px solid rgba(255,215,0,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-family: var(--font-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.explode-auto-btn:hover {
  background: var(--color-red);
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(200,16,46,0.4);
}
.explode-auto-btn.playing {
  background: var(--color-gold-dim);
  color: var(--color-zitan);
  pointer-events: none;
}
.explode-auto-btn svg {
  display: inline-block;
  width: 12px;
  height: 12px;
}

/* 鍔犺浇鍔ㄧ敾 */
.explode-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.9rem;
  gap: 0.8rem;
  z-index: 5;
}

/* 鏋勪欢淇℃伅闈㈡澘 */
.explode-info {
  display: none;
  position: relative;
  max-width: 960px;
  margin: var(--space-sm) auto 0;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-red);
}
.explode-info.visible { display: block; }
.explode-info-close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray);
  cursor: pointer;
  line-height: 1;
}
.explode-info h4 {
  font-size: 1.1rem;
  color: var(--color-red);
  margin-bottom: 0.3rem;
}
.explode-info p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.65;
}

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
  .explode-viewer-wrap { aspect-ratio: 4 / 3; }
  .explode-controls {
    bottom: 40px;
    padding: 0.4rem 0.8rem;
    gap: 0.4rem;
  }
  .explode-controls input[type="range"] { width: 100px; }
  .explode-label { font-size: 0.7rem; }
  .explode-auto-btn { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
}
@media (max-width: 480px) {
  .explode-viewer-wrap { aspect-ratio: 3 / 4; }
  .explode-controls {
    bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    max-width: 90%;
  }
  .explode-controls input[type="range"] { width: 80px; }
}

/* ============================================
   鍗冮緳鍚愭按 路 鎺掓按绯荤粺绮掑瓙妯℃嫙
   ============================================ */
.drainage-sim-wrap {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(100,181,246,0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(200,16,46,0.12), transparent 26%),
    #FBF7EE;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}
.drainage-canvas {
  display: block;
  width: 100%;
  height: 392px;
  cursor: default;
}
.drainage-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(58,21,24,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.drainage-controls label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.drainage-controls input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #90CAF9 0%, #1E88E5 50%, #C8102E 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.drainage-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border: 2px solid #1E88E5;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}
.drainage-controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border: 2px solid #1E88E5;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}
.drainage-rain-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E88E5;
  min-width: 3.5em;
  text-align: center;
}

.drainage-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.18rem;
}

.drainage-stat {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(58,21,24,0.05);
  border: 1px solid rgba(58,21,24,0.06);
}

.drainage-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

.drainage-stat strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-zitan);
  font-size: 1rem;
  font-weight: 700;
}

.drainage-pressure {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.22rem 1rem 0.55rem;
}

.drainage-pressure-label,
.drainage-pressure strong {
  font-size: 0.8rem;
  color: var(--color-zitan);
  font-weight: 700;
}

.drainage-pressure-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(58,21,24,0.08);
  overflow: hidden;
}

.drainage-pressure-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #64B5F6 0%, #1E88E5 55%, #C8102E 100%);
  box-shadow: 0 0 18px rgba(30,136,229,0.32);
  transition: width 0.45s var(--ease-smooth), box-shadow 0.35s ease;
}

.drainage-path-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
}

.drainage-path {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(58,21,24,0.08);
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease-smooth), background 0.35s ease;
  --path-progress: 0.14;
}

.drainage-path::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(100,181,246,0.18), rgba(200,16,46,0.78)) left center / calc(var(--path-progress) * 100%) 100% no-repeat,
    rgba(58,21,24,0.08);
  opacity: 0.9;
}

.drainage-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 700;
}

.drainage-path h4 {
  margin: 0;
  color: var(--color-zitan);
  font-size: 0.88rem;
}

.drainage-path p {
  margin: 0.25rem 0 0;
  color: var(--color-gray);
  font-size: 0.76rem;
  line-height: 1.55;
}

.drainage-path.is-active {
  background: rgba(200,16,46,0.06);
  border-color: rgba(200,16,46,0.28);
  box-shadow: 0 16px 34px rgba(58,21,24,0.14);
}

.drainage-path.is-active span {
  background: var(--color-red);
  color: #fff;
}

.drainage-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-red);
  font-weight: 600;
  padding: 0.42rem 1rem 0.48rem;
  background: rgba(200,16,46,0.04);
}

.page-module-5 #section-b .defense-specs {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  height: 100%;
  transform: translateY(-12px);
}

.page-module-5 #section-b .defense-grid {
  align-items: stretch;
  perspective: 1600px;
}

.page-module-5 #section-b .defense-spec-item {
  height: 100%;
  min-height: 0;
  padding: 1rem 1.1rem;
  align-items: flex-start;
}

.page-module-5 #section-b .defense-spec-item p {
  line-height: 1.72;
}

.page-module-5 #section-b .defense-svg-col {
  opacity: 0;
  transform: translate3d(-86px, 0, 0) scale(0.98);
  clip-path: inset(0 0 100% 0 round 28px);
  filter: blur(7px);
  transition:
    opacity 0.82s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.02s cubic-bezier(0.18, 0.9, 0.24, 1),
    clip-path 1.14s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.72s ease;
}

.page-module-5 #section-b .drainage-sim-wrap {
  transform: translateY(-12px) scale(1.04);
  transform-origin: center top;
  transition: transform 1.08s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-5 #section-b .drainage-controls,
.page-module-5 #section-b .drainage-dashboard,
.page-module-5 #section-b .drainage-pressure,
.page-module-5 #section-b .drainage-note {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.54s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-5 #section-b .drainage-controls {
  transition-delay: 0.16s;
}

.page-module-5 #section-b .drainage-dashboard {
  transition-delay: 0.24s;
}

.page-module-5 #section-b .drainage-pressure {
  transition-delay: 0.32s;
}

.page-module-5 #section-b .drainage-note {
  transition-delay: 0.48s;
  position: relative;
  top: -8px;
  margin-bottom: -8px;
}

.page-module-5 #section-b .drainage-path {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.96);
  transition:
    opacity 0.52s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-5 #section-b .drainage-path:nth-child(1) { transition-delay: 0.26s; }
.page-module-5 #section-b .drainage-path:nth-child(2) { transition-delay: 0.34s; }
.page-module-5 #section-b .drainage-path:nth-child(3) { transition-delay: 0.42s; }
.page-module-5 #section-b .drainage-path:nth-child(4) { transition-delay: 0.5s; }
.page-module-5 #section-b .drainage-path:nth-child(5) { transition-delay: 0.58s; }

.page-module-5 #section-b .defense-spec-item {
  opacity: 0;
  transform: translate3d(92px, 0, 0) rotateY(-10deg);
  transition:
    opacity 0.66s ease,
    transform 0.86s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #section-b .defense-spec-item:nth-child(1) { transition-delay: 0.3s; }
.page-module-5 #section-b .defense-spec-item:nth-child(2) { transition-delay: 0.42s; }
.page-module-5 #section-b .defense-spec-item:nth-child(3) { transition-delay: 0.54s; }
.page-module-5 #section-b .defense-spec-item:nth-child(4) { transition-delay: 0.66s; }

.page-module-5 #section-b .defense-grid.is-drainage-revealed .defense-svg-col {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0 round 28px);
  filter: blur(0);
}

.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-sim-wrap {
  transform: translateY(-12px) scale(1);
}

.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-controls,
.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-dashboard,
.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-pressure,
.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-note,
.page-module-5 #section-b .defense-grid.is-drainage-revealed .drainage-path,
.page-module-5 #section-b .defense-grid.is-drainage-revealed .defense-spec-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .page-module-5 #section-b .defense-svg-col,
  .page-module-5 #section-b .drainage-sim-wrap,
  .page-module-5 #section-b .drainage-controls,
  .page-module-5 #section-b .drainage-dashboard,
  .page-module-5 #section-b .drainage-pressure,
  .page-module-5 #section-b .drainage-note,
  .page-module-5 #section-b .drainage-path,
  .page-module-5 #section-b .defense-spec-item {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
    transition: none;
  }
}

/* ============================================
   防火体系 · 总图板
   ============================================ */
.fire-defense-board {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255,193,7,0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(200,16,46,0.12), transparent 28%),
    #FBF7EE;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.fire-defense-stage {
  padding: 1rem 1rem 0.4rem;
}

.fire-defense-stage-head {
  display: grid;
  gap: 0.45rem;
  padding: 0.15rem 0 1rem;
}

.fire-defense-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fire-defense-stage-head strong {
  color: var(--color-zitan);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.fire-defense-map {
  position: relative;
  min-height: 328px;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,249,239,0.92)),
    repeating-linear-gradient(90deg, rgba(200,16,46,0.03), rgba(200,16,46,0.03) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(0deg, rgba(200,16,46,0.02), rgba(200,16,46,0.02) 1px, transparent 1px, transparent 24px);
  border: 1px solid rgba(58,21,24,0.08);
}

.fire-defense-map::before,
.fire-defense-map::after {
  content: '';
  position: absolute;
  inset: 50%;
  pointer-events: none;
}

.fire-defense-map::before {
  width: min(68%, 320px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(200,16,46,0.18), rgba(221,170,51,0.65), rgba(200,16,46,0.18));
}

.fire-defense-map::after {
  width: 1px;
  height: min(68%, 220px);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(200,16,46,0.18), rgba(221,170,51,0.65), rgba(200,16,46,0.18));
}

.fire-defense-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48%, 240px);
  padding: 1rem 1rem 1.05rem;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(200,16,46,0.92), rgba(143,74,83,0.94));
  box-shadow: 0 18px 34px rgba(58,21,24,0.18);
  text-align: center;
  color: #fff8ef;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  animation: fireCoreFloat 4.8s ease-in-out infinite;
}

.fire-defense-core::before,
.fire-defense-core::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.fire-defense-core::before {
  inset: -14%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,244,214,0.3) 0%, rgba(255,244,214,0.12) 28%, transparent 66%),
    radial-gradient(circle at 16% 20%, rgba(255,255,255,0.14), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(255,209,102,0.18), transparent 30%);
  opacity: 0.92;
  animation: fireCoreGlow 3.6s ease-in-out infinite;
}

.fire-defense-core::after {
  inset: -30% auto -30% -55%;
  width: 46%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 36%, rgba(255,248,224,0.38) 50%, rgba(255,255,255,0.08) 64%, transparent 100%);
  transform: rotate(14deg);
  opacity: 0.8;
  animation: fireCoreSweep 4.4s ease-in-out infinite;
}

.fire-defense-core-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.15rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fire-defense-core h3 {
  margin-top: 0.65rem;
  color: #fffdf7;
  font-size: 1.3rem;
  text-shadow: 0 2px 10px rgba(58,21,24,0.22);
}

.fire-defense-core p {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,248,239,0.9);
}

@keyframes fireCoreFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px) scale(1.015);
  }
}

@keyframes fireCoreGlow {
  0%, 100% {
    opacity: 0.78;
    transform: scale(0.98);
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: saturate(1.12);
  }
}

@keyframes fireCoreSweep {
  0% {
    transform: translateX(0) rotate(14deg);
    opacity: 0;
  }
  18% {
    opacity: 0.78;
  }
  52% {
    transform: translateX(430%) rotate(14deg);
    opacity: 0.32;
  }
  100% {
    transform: translateX(430%) rotate(14deg);
    opacity: 0;
  }
}

.fire-defense-node {
  position: absolute;
  width: min(36%, 185px);
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: 0 10px 20px rgba(58,21,24,0.08);
  z-index: 1;
}

.fire-defense-node--cistern { top: 0.9rem; left: 0.9rem; }
.fire-defense-node--wall { top: 0.9rem; right: 0.9rem; }
.fire-defense-node--river { bottom: 0.9rem; left: 0.9rem; }
.fire-defense-node--patrol { bottom: 0.9rem; right: 0.9rem; }

.fire-defense-node-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 700;
}

.fire-defense-node h4 {
  margin: 0.5rem 0 0;
  color: var(--color-zitan);
  font-size: 0.92rem;
}

.fire-defense-node p {
  margin: 0.35rem 0 0;
  color: var(--color-gray);
  font-size: 0.76rem;
  line-height: 1.6;
}

.fire-defense-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.3rem;
}

.fire-defense-stat {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(58,21,24,0.05);
  border: 1px solid rgba(58,21,24,0.06);
}

.fire-defense-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

.fire-defense-stat strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--color-zitan);
  font-size: 1rem;
  font-weight: 700;
}

.fire-defense-path-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.15rem 1rem 1rem;
}

.fire-defense-path {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(58,21,24,0.08);
}

.fire-defense-path::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(221,170,51,0.25), rgba(200,16,46,0.78)) left center / 100% 100% no-repeat,
    rgba(58,21,24,0.08);
  opacity: 0.2;
}

.fire-defense-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 700;
}

.fire-defense-path h4 {
  margin: 0;
  color: var(--color-zitan);
  font-size: 0.88rem;
}

.fire-defense-path p {
  margin: 0.25rem 0 0;
  color: var(--color-gray);
  font-size: 0.76rem;
  line-height: 1.55;
}

.fire-defense-path.is-active {
  background: rgba(200,16,46,0.06);
  border-color: rgba(200,16,46,0.28);
  box-shadow: 0 16px 34px rgba(58,21,24,0.14);
}

.fire-defense-path.is-active::after {
  opacity: 0.9;
}

.fire-defense-path.is-active span {
  background: var(--color-red);
  color: #fff;
}

.fire-defense-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-red);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(200,16,46,0.04);
}

/* ============================================
   防火体系 · 三图图谱
   ============================================ */
.fire-atlas-board {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(255,193,7,0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(200,16,46,0.12), transparent 28%),
    #FBF7EE;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fire-atlas-head {
  display: grid;
  gap: 0.45rem;
  padding: 0.15rem 0 1rem;
}

.fire-atlas-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fire-atlas-head strong {
  color: var(--color-zitan);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.fire-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.fire-atlas-card {
  display: grid;
  grid-template-rows: 188px 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: 0 12px 24px rgba(58,21,24,0.08);
}

.fire-atlas-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.fire-atlas-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58,21,24,0.04), rgba(58,21,24,0.16)),
    linear-gradient(180deg, transparent 45%, rgba(58,21,24,0.42) 100%);
}

.fire-atlas-copy {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1rem;
}

.fire-atlas-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 700;
}

.fire-atlas-copy h3 {
  color: var(--color-zitan);
  font-size: 1rem;
}

.fire-atlas-copy p {
  color: var(--color-gray);
  font-size: 0.8rem;
  line-height: 1.65;
}

.fire-atlas-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-red);
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: rgba(200,16,46,0.04);
}

@media (max-width: 1024px) {
  .drainage-path-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fire-defense-path-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fire-atlas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .drainage-dashboard,
  .drainage-path-board {
    grid-template-columns: 1fr;
  }

  .fire-defense-map {
    min-height: auto;
    padding: 0.9rem;
    display: grid;
    gap: 0.9rem;
  }

  .fire-defense-map::before,
  .fire-defense-map::after {
    display: none;
  }

  .fire-defense-core,
  .fire-defense-node {
    position: static;
    width: auto;
    transform: none;
  }

  .fire-defense-dashboard,
  .fire-defense-path-board {
    grid-template-columns: 1fr;
  }

  .fire-atlas-card {
    grid-template-rows: 180px 1fr;
  }

  .drainage-pressure {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fire-defense-core,
  .fire-defense-core::before,
  .fire-defense-core::after {
    animation: none !important;
  }
}

/* ============================================
   鏂楁嫳鐖嗙偢鍥?路 浜や簰寮忔媶瑙ｅ姩鐢?   ============================================ */
.dougong-explode-wrap {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.9), rgba(251,247,238,0.96) 58%, rgba(239,229,206,0.96)),
    #FBF7EE;
  border: 1px solid rgba(58,21,24,0.08);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(58,21,24,0.12);
  overflow: hidden;
}
.dougong-explode-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--color-ink);
  padding: 1rem 1rem 0;
}
.dougong-explode-hint {
  margin: 0;
  padding: 0.35rem 1.3rem 0.25rem;
  text-align: center;
  color: var(--color-gray);
  font-size: 0.84rem;
  line-height: 1.65;
}
#dougong-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.35rem 0.4rem 1.1rem;
}
/* 鏋勪欢浜や簰鏍峰紡 */
.dg-part {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease, opacity 0.3s ease;
  transform-origin: 320px 300px;
}
.dg-part:hover {
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(200,16,46,0.28));
}
.dg-part:focus-visible {
  outline: none;
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(255,215,0,0.55));
}
.dg-part.dg-active {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(255,215,0,0.55));
}
.dg-part.dg-dimmed {
  opacity: 0.24;
}

.dg-layer-tags rect {
  fill: rgba(200,16,46,0.08);
  stroke: rgba(200,16,46,0.14);
}

.dg-layer-tags text {
  fill: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.dg-axis line {
  stroke: rgba(122,90,0,0.16);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.dg-guide-line {
  stroke: rgba(58,21,24,0.28);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dg-label-main,
.dg-label-sub {
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.dg-label-main {
  fill: #FFF7E6;
  font-size: 14px;
  font-weight: 700;
}

.dg-label-sub {
  fill: rgba(255,247,230,0.82);
  font-size: 10px;
  font-weight: 600;
}

/* 鎺у埗婊戝潡 */
.dougong-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(58,21,24,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.dougong-controls label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.dougong-slider-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dougong-slider-label-l,
.dougong-slider-label-r {
  font-size: 0.75rem;
  color: var(--color-gray);
  white-space: nowrap;
}
.dougong-slider-track input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #8B6F3C 0%, #C8102E 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.dougong-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border: 2px solid #8B6F3C;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}
.dougong-slider-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border: 2px solid #8B6F3C;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}

.dougong-storyboard {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.dougong-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dougong-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(58,21,24,0.12);
  background: rgba(255,255,255,0.88);
  color: var(--color-zitan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dougong-preset:hover,
.dougong-preset.is-active {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}
.dougong-preset:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.dougong-story-note {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(200,16,46,0.07), rgba(221,170,51,0.08)),
    rgba(200,16,46,0.05);
  color: var(--color-zitan);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* 鏋勪欢璇存槑闈㈡澘 */
.dougong-info {
  display: none;
  position: absolute;
  right: 1rem;
  top: 4.6rem;
  background: var(--color-zitan);
  color: var(--color-cream);
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  width: min(320px, calc(100% - 2rem));
  z-index: 10;
  animation: fadeInUp 0.3s ease;
}
.dougong-info.visible { display: block; }
.dougong-info h4 {
  font-size: 1rem;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}
.dougong-info p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-cream-dark);
}
.dougong-info-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-gray-light);
  line-height: 1;
}
.dougong-info-close:hover { color: var(--color-gold); }

.page-module-2 #section-b .defense-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

.page-module-2 #section-b .section-intro {
  width: min(760px, 100%);
  margin: 0 auto var(--space-lg);
}

.page-module-2 #section-b .defense-svg-col {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.page-module-2 #section-b .dougong-diagram {
  width: 100%;
  max-width: 980px;
}

.page-module-2 #section-b #dougong-svg {
  padding: 0;
  background: #FBF7EE;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(58,21,24,0.06);
}

.page-module-2 #section-b .dg-figure-title {
  fill: var(--color-zitan);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
}

.page-module-2 #section-b .dg-figure-subtitle {
  fill: var(--color-gray);
  font-size: 11px;
}

.page-module-2 #section-b .dg-part {
  transform-origin: center center;
}

.page-module-2 #section-b .dg-flow-line {
  fill: none;
  stroke: rgba(200,16,46,0.76);
  stroke-width: 3;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  opacity: 0.18;
}

.page-module-2 #section-b .dg-node {
  fill: #FFF8F4;
  stroke: #C8102E;
  stroke-width: 3;
  opacity: 0.2;
}

.page-module-2 #section-b .defense-specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.page-module-2 #section-b .dougong-mode-card {
  cursor: pointer;
  min-height: 112px;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(200,16,46,0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.page-module-2 #section-b .dougong-mode-card .defense-spec-icon {
  width: 46px;
  font-size: 1.65rem;
}

.page-module-2 #section-b .dougong-mode-card h4 {
  font-size: 1.28rem;
  margin-bottom: 0.35rem;
}

.page-module-2 #section-b .dougong-mode-card p {
  font-size: 0.98rem;
  line-height: 1.8;
}

.page-module-2 #section-b .dougong-mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200,16,46,0.3);
  box-shadow: 0 16px 28px rgba(58,21,24,0.1);
}

.page-module-2 #section-b .dougong-mode-card.is-active {
  background: linear-gradient(135deg, rgba(200,16,46,0.06), rgba(221,170,51,0.08));
  border-color: rgba(200,16,46,0.42);
  box-shadow: 0 18px 34px rgba(58,21,24,0.12);
}

.page-module-2 #section-b .dougong-mode-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.page-module-2 #section-b .dougong-side-note {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0.35rem 0 0;
}

.page-module-2 #section-b .dougong-side-note-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-module-2 #section-b .dougong-side-note .dougong-story-note {
  margin-top: 0.8rem;
  flex: 1 1 auto;
  min-height: 240px;
}

.page-module-2 #section-b .dougong-story-note--rich {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.page-module-2 #section-b .dougong-story-title {
  margin: 0;
  color: var(--color-zitan);
  font-size: 1rem;
}

.page-module-2 #section-b .dougong-story-lead,
.page-module-2 #section-b .dougong-story-summary {
  margin: 0;
  color: var(--color-zitan);
  font-size: 0.9rem;
  line-height: 1.75;
}

.page-module-2 #section-b .dougong-story-summary {
  color: var(--color-gray);
}

.page-module-2 #section-b .dougong-story-points {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-zitan);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-module-2 #section-b .dougong-story-points li + li {
  margin-top: 0.35rem;
}

.page-module-2 #section-b .engineering-caption .engineering-step-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-module-2 #section-d .defense-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.page-module-2 #section-d .defense-svg-col {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page-module-2 #section-d .engineering-diagram {
  width: 100%;
  max-width: 980px;
}

.page-module-2 #section-d .defense-specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.page-module-2 #section-d .engineering-caption .engineering-step-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-module-2 #section-d .seismic-story-panel {
  margin-top: auto;
  padding-top: 0.25rem;
}

.page-module-2 #section-d .seismic-story-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 211, 197, 0.9), rgba(239, 225, 198, 0.86));
  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-module-2 #section-d .seismic-story-card {
  margin-top: 0.85rem;
  min-height: 286px;
  padding: 1.45rem 1.5rem 1.6rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 225, 213, 0.66), rgba(239, 226, 201, 0.74));
  border: 1px solid rgba(200,16,46,0.08);
  box-shadow: 0 16px 30px rgba(58,21,24,0.06);
}

.page-module-2 #section-d .seismic-story-title {
  margin: 0 0 1rem;
  color: var(--color-zitan);
  font-size: 1.8rem;
  line-height: 1.28;
}

.page-module-2 #section-d .seismic-story-body {
  margin: 0;
  color: var(--color-zitan);
  font-size: 1.02rem;
  line-height: 1.95;
  white-space: pre-line;
}

.page-module-2 #section-d .section-title {
  display: block !important;
  letter-spacing: 0.05em !important;
  gap: 0 !important;
  margin-bottom: var(--space-lg);
}

.page-module-2 #section-d .section-title::before {
  content: none !important;
  display: none !important;
}

.page-module-2 #section-d .section-title::after {
  content: '';
  display: block !important;
  width: 60px;
  height: 3px;
  background: var(--color-red);
  margin: var(--space-sm) auto 0;
}

.page-module-2 #section-d .section-subtitle {
  font-family: var(--font-sans);
  letter-spacing: 0;
  max-width: none;
  margin-top: -1.5rem !important;
  margin-bottom: var(--space-lg) !important;
  border-bottom: none;
  padding-bottom: 0;
}

.page-module-2 #section-d .section-subtitle::after {
  content: none;
  display: none;
}

@media (max-width: 768px) {
  .dougong-explode-wrap {
    border-radius: 22px;
  }

  .dougong-explode-hint {
    padding: 0.35rem 1rem 0.25rem;
    font-size: 0.8rem;
  }

  .dougong-info {
    position: static;
    width: auto;
    max-width: none;
    margin: 0 1rem 1rem;
  }

  .page-module-2 #section-d .engineering-caption .engineering-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-module-2 #section-d .seismic-story-card {
    min-height: auto;
    padding: 1.2rem 1.15rem 1.3rem;
  }

  .page-module-2 #section-d .seismic-story-title {
    font-size: 1.45rem;
  }

  .page-module-2 #section-b .dougong-side-note .dougong-story-note {
    min-height: auto;
  }

}

/* ============================================
   Timeline Scroll
   ============================================ */
.scroll-stage {
  --scroll-open: 0;
  --scroll-rod-width: 98px;
  --scroll-closed-gap: -10px;
  --scroll-closed-overlap: 7px;
  --scroll-paper-join: 14px;
  --scroll-current-left: 0px;
  --scroll-current-right: 0px;
  position: relative;
  margin: 0 auto;
  width: min(98vw, 2200px);
  max-width: none;
  min-height: 500px;
  padding: 12px max(10px, 0.8vw) 16px;
  perspective: 2200px;
  transform-style: preserve-3d;
  visibility: visible;
  opacity: 1;
}

.scroll-stage.is-unsealed {
  --scroll-open: 1;
}

.scroll-stage:not(.is-armed) .scroll-stage-shadow,
.scroll-stage:not(.is-armed) .scroll-rod,
.scroll-stage:not(.is-armed) .scroll-paper,
.scroll-stage:not(.is-armed) .scroll-paper::before,
.scroll-stage:not(.is-armed) .scroll-paper::after,
.scroll-stage:not(.is-armed) .scroll-paper-head,
.scroll-stage:not(.is-armed) .scroll-paper-foot,
.scroll-stage:not(.is-armed) .scroll-track,
.scroll-stage:not(.is-armed) .scroll-card,
.scroll-stage:not(.is-armed) .scroll-curl {
  transition: none !important;
  animation: none !important;
}

.scroll-stage-shadow {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  bottom: 6px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 21, 24, 0.28), rgba(58, 21, 24, 0) 72%);
  filter: blur(22px);
  transform: scaleX(calc(0.32 + 0.68 * var(--scroll-open)));
  opacity: calc(0.3 + 0.7 * var(--scroll-open));
  will-change: transform, opacity;
}

.scroll-rod {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: var(--scroll-rod-width);
  z-index: 8;
  pointer-events: none;
  background-image: url("../素材/轴体.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  filter: drop-shadow(0 14px 18px rgba(82, 47, 12, 0.18));
  transition: opacity 0.24s ease;
  will-change: transform;
}

.scroll-rod::before {
  content: none;
}

.scroll-rod::after {
  content: none;
}

.scroll-rod--left {
  left: var(--scroll-current-left);
  transform: translateX(calc((1 - var(--scroll-open)) * var(--scroll-closed-overlap))) rotateY(0deg) rotateZ(0deg);
}

.scroll-rod--right {
  right: var(--scroll-current-right);
  transform: translateX(calc((var(--scroll-open) - 1) * var(--scroll-closed-overlap))) rotateY(0deg) rotateZ(0deg);
}

.scroll-paper {
  position: relative;
  z-index: 2;
  min-height: 430px;
  margin: 0 calc((var(--scroll-rod-width) * 0.5) - var(--scroll-paper-join));
  padding: 18px 0 12px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.82) 0%, rgba(255, 248, 231, 0.74) 16%, rgba(255, 243, 213, 0.6) 42%, rgba(233, 209, 159, 0.38) 100%),
    radial-gradient(circle at 50% 24%, rgba(255, 252, 242, 0.94) 0%, rgba(255, 245, 221, 0.78) 18%, rgba(247, 231, 191, 0.42) 40%, rgba(203, 169, 112, 0.12) 82%, rgba(203, 169, 112, 0) 100%),
    linear-gradient(90deg, rgba(122, 83, 31, 0.16) 0%, rgba(255, 247, 223, 0) 6%, rgba(255, 249, 231, 0.18) 50%, rgba(255, 247, 223, 0) 94%, rgba(122, 83, 31, 0.16) 100%),
    repeating-linear-gradient(90deg, rgba(133, 95, 35, 0.03) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(180deg, rgba(109, 78, 29, 0.02) 0 2px, transparent 2px 22px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f7ebcc 0%, #f2dfb3 48%, #e7ca92 100%);
  border: 1px solid rgba(139, 102, 47, 0.34);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 220px 220px, 100% 100%;
  background-position: center, center, center, center, center, center, center;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.76),
    inset 0 14px 22px rgba(255, 247, 225, 0.28),
    inset 0 -28px 42px rgba(111, 73, 25, 0.16),
    inset 30px 0 40px rgba(136, 97, 40, 0.14),
    inset -30px 0 40px rgba(136, 97, 40, 0.14),
    0 18px 32px rgba(58, 21, 24, 0.14);
  opacity: var(--scroll-open);
  transform-origin: 50% 50%;
  transform:
    rotateX(calc(16deg - 16deg * var(--scroll-open)))
    scaleX(calc(0.012 + 0.988 * var(--scroll-open)))
    scaleY(calc(0.9 + 0.1 * var(--scroll-open)));
  filter: saturate(calc(0.8 + 0.2 * var(--scroll-open)));
  transition: filter 0.5s ease, box-shadow 0.5s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.scroll-paper::before,
.scroll-paper::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  pointer-events: none;
}

.scroll-paper::before {
  top: 8px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.95) 0%, rgba(255, 240, 201, 0.62) 28%, rgba(175, 127, 56, 0.34) 68%, rgba(116, 74, 24, 0.24) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.64),
    0 6px 12px rgba(101, 65, 22, calc(0.16 + 0.2 * (1 - var(--scroll-open))));
}

.scroll-paper::after {
  bottom: 10px;
  height: 28px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(196, 157, 95, 0.18) 0%, rgba(158, 118, 56, 0.28) 36%, rgba(118, 76, 26, 0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.26),
    0 -3px 10px rgba(101, 65, 22, 0.08);
}

.scroll-paper-head,
.scroll-paper-foot {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s var(--ease-emphasis);
}

.scroll-stage.is-unsealed .scroll-paper-head,
.scroll-stage.is-unsealed .scroll-paper-foot {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Paper curl shadow - simulates paper peeling off the rod */
.scroll-curl {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  opacity: calc(0.85 * (1 - var(--scroll-open)));
}

.scroll-curl--left {
  left: 0;
  width: calc(72px * (1 - var(--scroll-open)));
  background: linear-gradient(90deg,
    rgba(158, 132, 88, 0.65) 0%,
    rgba(192, 168, 125, 0.4) 22%,
    rgba(218, 198, 160, 0.18) 52%,
    transparent 100%);
  border-radius: 0 10px 10px 0;
}

.scroll-curl--right {
  right: 0;
  width: calc(72px * (1 - var(--scroll-open)));
  background: linear-gradient(270deg,
    rgba(158, 132, 88, 0.65) 0%,
    rgba(192, 168, 125, 0.4) 22%,
    rgba(218, 198, 160, 0.18) 52%,
    transparent 100%);
  border-radius: 10px 0 0 10px;
}

.scroll-paper-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 6px 84px 14px;
}

.scroll-paper-kicker {
  display: inline-block;
  position: relative;
  padding: 0 0 0.55rem;
  color: var(--color-zitan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.scroll-paper-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 122px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.7), rgba(139, 111, 60, 0.18));
}

.scroll-paper-title {
  margin-top: 1rem;
  font-size: 2.3rem;
  color: #3f2119;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.88);
}

.scroll-paper-intro {
  margin: 0;
  color: rgba(78, 46, 19, 0.96);
  font-size: 1.03rem;
  line-height: 1.96;
  text-indent: 2em;
  text-shadow: 0 1px 0 rgba(255, 250, 236, 0.48);
}

.scroll-track {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 2px 0 0;
  scrollbar-width: none;
  scroll-behavior: auto;
  opacity: 0;
  transform: translateY(calc((1 - var(--scroll-open)) * 26px));
  pointer-events: none;
  transition: opacity 0.6s ease 0.3s;
}

.scroll-stage.is-unsealed .scroll-track {
  opacity: 1;
  pointer-events: auto;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-track.is-dragging {
  cursor: grabbing;
}

.scroll-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 84px 6px;
  width: max-content;
}

.scroll-card {
  position: relative;
  flex-shrink: 0;
  width: 440px;
  min-height: 330px;
  padding: 0 34px 0 42px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(3px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-emphasis), filter 0.65s ease;
}

.scroll-card::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, rgba(177, 118, 47, 0), rgba(198, 145, 63, 0.46) 18%, rgba(165, 116, 48, 0.58) 82%, rgba(177, 118, 47, 0));
}

.scroll-card::after {
  content: attr(data-year);
  position: absolute;
  top: 2px;
  right: 10px;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(196, 121, 69, 0.08);
  letter-spacing: 0.03em;
  pointer-events: none;
}

.scroll-card.sc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scroll-card.sc-visible:hover {
  transform: translateY(-4px) scale(1.005);
}

.scroll-card-era {
  font-size: 0.82rem;
  color: rgba(88, 74, 48, 0.92);
  letter-spacing: 0.14em;
  font-weight: 700;
}

.scroll-card-year {
  margin-top: 0.24rem;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1.05;
}

.scroll-card-title {
  margin: 0.8rem 0 0.68rem;
  font-family: var(--font-serif);
  font-size: 1.52rem;
  color: #4a281c;
  line-height: 1.4;
}

.scroll-card-desc {
  font-size: 1rem;
  color: rgba(73, 44, 20, 0.96);
  line-height: 1.95;
  text-indent: 2em;
}

.scroll-card-map {
  margin-top: 1.12rem;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.scroll-card-focus {
  display: block;
  position: relative;
  padding-left: 1.18rem;
  color: rgba(88, 74, 48, 0.94);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.scroll-card-focus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-red), var(--color-gold-deep));
}

.scroll-card-anchor {
  position: relative;
  padding-left: 1.18rem;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.86;
  color: rgba(73, 44, 20, 0.94);
}

.scroll-card-anchor::before {
  content: "·";
  position: absolute;
  left: 0.08rem;
  top: 0;
  color: rgba(200, 16, 46, 0.72);
  font-size: 1rem;
}

.scroll-card-shift,
.scroll-card-impact {
  margin-top: 0;
  font-size: 0.91rem;
  line-height: 1.9;
  text-indent: 2em;
}

.scroll-card-shift {
  color: rgba(88, 74, 48, 0.94);
}

.scroll-card-impact {
  color: #4a281c;
  font-weight: 600;
}

.scroll-card-evidence-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(139, 111, 60, 0.32);
}

.scroll-card-evidence-title {
  font-size: 0.76rem;
  color: rgba(88, 74, 48, 0.92);
  letter-spacing: 0.18em;
  margin-bottom: 0.52rem;
}

.scroll-card-evidence {
  margin-top: 0;
  display: grid;
  gap: 0.45rem;
}

.scroll-card-evidence li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: rgba(73, 44, 20, 0.92);
  line-height: 1.7;
}

.scroll-card-evidence li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-gold-deep);
}

.scroll-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 0.95rem;
}

.scroll-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #816338;
  font-size: 0.76rem;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}

.scroll-card-tag::before {
  content: "·";
  margin-right: 0.24rem;
  color: rgba(200, 16, 46, 0.78);
}

.scroll-card-inscription {
  margin-top: 1.12rem;
  padding-top: 0.76rem;
  border-top: 1px solid rgba(139, 111, 60, 0.22);
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: rgba(196, 87, 61, 0.92);
  letter-spacing: 0.12em;
  line-height: 1.72;
}

.scroll-connector {
  flex-shrink: 0;
  width: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 24px 0 0;
  position: relative;
}

.scroll-connector::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 152, 83, 0.12), rgba(154, 111, 53, 0.62), rgba(199, 152, 83, 0.12));
}

.scroll-connector svg {
  width: 82px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.scroll-paper-foot {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 2px 96px 0;
}

.scroll-bottom-ornament {
  position: relative;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16px 50%, rgba(168, 123, 62, 0.18) 0 1.5px, transparent 1.5px),
    repeating-linear-gradient(90deg, rgba(188, 142, 77, 0.12) 0 18px, rgba(166, 115, 48, 0.08) 18px 36px),
    linear-gradient(180deg, rgba(240, 219, 172, 0.68) 0%, rgba(222, 188, 128, 0.42) 36%, rgba(190, 145, 84, 0.28) 100%);
  background-size: 40px 30px, 120px 100%, 100% 100%;
  background-repeat: repeat-x, repeat-x, no-repeat;
  border: 1px solid rgba(167, 123, 62, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 246, 219, 0.42), inset 0 -4px 10px rgba(126, 82, 28, 0.08);
}

.scroll-bottom-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  width: min(14vw, 140px);
  height: 35px;
  border-radius: 8px;
  border: 2px solid rgba(176, 122, 57, 0.76);
  background:
    linear-gradient(180deg, rgba(250, 236, 199, 0.22) 0%, rgba(167, 115, 52, 0.08) 100%),
    url("../素材/纸面.png");
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 212, 0.44),
    0 4px 10px rgba(118, 76, 26, 0.12);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  background-position: center, center;
}

.scroll-bottom-ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  width: min(14vw, 140px);
  height: 35px;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 212, 0.26),
    inset 0 0 24px rgba(125, 82, 27, 0.08);
  pointer-events: none;
}

.scroll-progress-wrap {
  width: 100%;
  height: 8px;
  background: linear-gradient(180deg, rgba(177, 133, 76, 0.18), rgba(138, 99, 47, 0.08));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(112, 73, 24, 0.12);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ad7a2f 0%, #c95f32 48%, #ddb154 100%);
  border-radius: 999px;
  transition: width 0.08s linear;
}

.scroll-hint-text {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(112, 87, 55, 0.92);
  margin-top: 0.82rem;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
}

@media (max-width: 1100px) {
  .scroll-stage {
    width: 99vw;
    min-height: 470px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .scroll-paper-head,
  .scroll-paper-foot,
  .scroll-inner {
    padding-left: 64px;
    padding-right: 64px;
  }

  .scroll-paper-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scroll-paper {
    min-height: 400px;
  }

  .scroll-card {
    width: 380px;
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .scroll-stage {
    --scroll-rod-width: 74px;
    --scroll-closed-gap: -8px;
    --scroll-closed-overlap: 5px;
    --scroll-paper-join: 11px;
    width: 100vw;
    min-height: 430px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .scroll-paper {
    min-height: 380px;
  }

  .scroll-bottom-ornament::before,
  .scroll-bottom-ornament::after {
    width: min(21vw, 115px);
    height: 29px;
  }

  .scroll-paper-title {
    font-size: 1.8rem;
  }

  .scroll-paper-intro {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .scroll-card {
    width: 300px;
    min-height: 300px;
    padding-left: 24px;
    padding-right: 20px;
  }

  .scroll-card::after {
    font-size: 3rem;
  }

  .scroll-connector {
    width: 60px;
  }
}

@media (max-width: 560px) {
  .scroll-stage {
    width: 100vw;
    min-height: 410px;
    padding-left: 0;
    padding-right: 0;
  }

  .scroll-rod {
    display: none;
  }

  .scroll-paper {
    margin: 0;
    transform: none;
    min-height: 370px;
  }

  .scroll-track {
    transform: none;
  }

  .scroll-stage.is-unsealed .scroll-track {
    pointer-events: auto;
  }

  .scroll-paper-head,
  .scroll-paper-foot,
  .scroll-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .scroll-card {
    width: 268px;
    min-height: 292px;
  }
}

/* ============================================
   寤虹瓚绛夌骇閲戝瓧濉?   ============================================ */
.pyramid-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-md);
  align-items: start;
}
.pyramid-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.pyramid-level {
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.pyramid-level path {
  transition: filter 0.25s ease, stroke-width 0.25s ease, stroke 0.25s ease;
}
.pyramid-level:hover path {
  filter: brightness(1.15);
}
.pyramid-level:focus-visible path {
  stroke: var(--color-gold);
  stroke-width: 2.5;
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(255,215,0,0.4));
}
.pyramid-level.py-active path {
  stroke: #FFD700;
  stroke-width: 2.5;
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(255,215,0,0.35));
}
.pyramid-level.py-dim {
  opacity: 0.3;
}
.pyramid-detail {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  min-height: 300px;
  transition: box-shadow 0.3s ease;
}
.pyramid-detail.visible {
  box-shadow: var(--shadow-lg);
}
.pyd-placeholder {
  text-align: center;
  color: var(--color-gray);
  padding: var(--space-lg) 0;
}
.pyd-placeholder span {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.pyd-placeholder p {
  line-height: 1.7;
}
.pyd-header {
  border-left: 4px solid;
  padding-left: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.pyd-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.pyd-header h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0.2rem 0;
}
.pyd-sub {
  font-size: 0.85rem;
  color: var(--color-gray);
}
.pyd-sub span {
  margin-left: 0.5rem;
  font-weight: 700;
  color: var(--color-red);
}
.pyd-dims {
  margin: var(--space-sm) 0;
}
.pyd-dim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-light);
  font-size: 0.88rem;
}
.pyd-dim:last-child {
  border-bottom: none;
}
.pyd-dim-l {
  color: var(--color-gray);
  font-weight: 600;
  white-space: nowrap;
  margin-right: var(--space-sm);
}
.pyd-dim-v {
  color: var(--color-ink);
  font-weight: 600;
  text-align: right;
}
.pyd-desc {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.pyd-scores {
  display: grid;
  gap: 0.55rem;
  margin: var(--space-sm) 0;
}

.pyd-score {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.2rem;
  align-items: center;
  gap: 0.65rem;
}

.pyd-score-label {
  color: var(--color-gray);
  font-size: 0.78rem;
  font-weight: 700;
}

.pyd-score-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(58,21,24,0.08);
  overflow: hidden;
}

.pyd-score-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(200,16,46,0.45), rgba(200,16,46,0.95));
}

.pyd-score-value {
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.encoding-lens {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: end;
  margin-bottom: var(--space-md);
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.encoding-lens-intro strong {
  display: block;
  color: var(--color-zitan);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.encoding-lens-intro p {
  margin: 0.35rem 0 0;
  color: var(--color-gray);
  font-size: 0.84rem;
  line-height: 1.7;
}

.encoding-lens-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.encoding-lens-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(58,21,24,0.12);
  background: rgba(255,255,255,0.88);
  color: var(--color-zitan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.encoding-lens-btn:hover,
.encoding-lens-btn.is-active {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}
.encoding-lens-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.encoding-row {
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.encoding-row.is-highlight {
  background: rgba(200,16,46,0.08);
}

.encoding-row.is-muted {
  opacity: 0.45;
}

@media (max-width: 768px) {
  .pyramid-wrap {
    grid-template-columns: 1fr;
  }
  .pyramid-detail {
    min-height: auto;
  }
  .pyd-placeholder {
    min-height: auto;
  }

  .encoding-lens {
    grid-template-columns: 1fr;
  }

  .encoding-lens-controls {
    justify-content: flex-start;
  }

  .pyd-score {
    grid-template-columns: 4rem 1fr 2rem;
  }
}

/* ============================================
   鑹茶氨瑙ｇ爜 路 鑹插僵鍩哄洜鐜舰鍥捐氨
   ============================================ */
.color-ring-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}
.color-ring-chart svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.cr-seg {
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.cr-seg path {
  transition: filter 0.25s ease, stroke-width 0.25s ease, transform 0.3s ease;
  transform-origin: center;
}
.cr-seg:hover path {
  filter: brightness(1.15);
}
.cr-seg:focus-visible path {
  stroke-width: 2.5;
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(255,215,0,0.4));
}
.cr-seg.cr-active path {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(0,0,0,0.25));
  stroke-width: 2.5;
}
.cr-seg.cr-dim {
  opacity: 0.25;
}
.cr-conn {
  transition: opacity 0.4s ease;
}
.cr-conn.cr-conn-show {
  opacity: 1 !important;
}

.color-lens {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: end;
  margin-bottom: var(--space-md);
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.color-lens-intro strong {
  display: block;
  color: var(--color-zitan);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.color-lens-intro p {
  margin: 0.35rem 0 0;
  color: var(--color-gray);
  font-size: 0.84rem;
  line-height: 1.7;
}

.color-lens-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.color-lens-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(58,21,24,0.12);
  background: rgba(255,255,255,0.88);
  color: var(--color-zitan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.color-lens-btn:hover,
.color-lens-btn.is-active {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}
.color-lens-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.color-ring-detail {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  min-height: 300px;
  transition: box-shadow 0.3s ease;
}
.color-ring-detail.visible {
  box-shadow: var(--shadow-lg);
}
.crd-placeholder {
  text-align: center;
  color: var(--color-gray);
  padding: var(--space-lg) 0;
}
.crd-placeholder span {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.crd-placeholder p {
  line-height: 1.7;
}
.crd-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  border-left: 4px solid;
  padding-left: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.crd-color-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.crd-header h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
}
.crd-element {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-gray);
  margin-left: 0.5rem;
}
.crd-meaning {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 0.15rem;
}
.crd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}
.crd-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.06);
  color: var(--color-ink);
}
.crd-tag--accent {
  background: rgba(200,16,46,0.1);
  color: var(--color-red);
}

.crd-panel-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-zitan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crd-detail {
  font-size: 0.88rem;
  color: var(--color-ink);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.crd-relations {
  display: grid;
  gap: 0.8rem;
  margin-bottom: var(--space-sm);
}

.crd-relation {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(58,21,24,0.04);
}

.crd-relation p {
  margin: 0 0 0.55rem;
  color: var(--color-gray);
  font-size: 0.82rem;
  line-height: 1.65;
}

.crd-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crd-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(58,21,24,0.08);
  color: var(--color-zitan);
  font-size: 0.75rem;
  font-weight: 600;
}

.crd-buildings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.crd-buildings-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray);
  margin-right: 0.3rem;
}
.crd-building {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-cream);
  color: var(--color-ink);
  border: 1px solid var(--color-gray-light);
}

@media (max-width: 768px) {
  .color-lens {
    grid-template-columns: 1fr;
  }

  .color-lens-controls {
    justify-content: flex-start;
  }

  .color-ring-wrap {
    grid-template-columns: 1fr;
  }
  .color-ring-detail {
    min-height: auto;
  }
}

/* ============================================
   Competition Narrative Layers
   ============================================ */
.section-intro {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.competition-overview,
.spatial-atlas,
.engineering-system {
  position: relative;
  overflow: hidden;
}

.competition-overview::before,
.spatial-atlas::before,
.engineering-system::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,215,0,0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(200,16,46,0.08), transparent 24%);
  pointer-events: none;
}

.thesis-board,
.spatial-atlas-grid,
.system-board {
  position: relative;
  z-index: 1;
}

.thesis-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.thesis-summary,
.thesis-evidence,
.spatial-summary,
.system-column,
.system-network,
.statement-card,
.methodology-item,
.route-card,
.rule-card,
.system-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.thesis-summary {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(43,14,17,0.98), rgba(103,18,36,0.96)),
    var(--color-zitan);
  color: var(--color-cream);
  box-shadow: 0 20px 40px rgba(58,21,24,0.2);
}

.thesis-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,215,0,0.28);
  color: var(--color-cream-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thesis-summary h3 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  line-height: 1.35;
  color: var(--color-cream-strong);
  text-shadow: 0 2px 10px rgba(0,0,0,0.32);
}

.thesis-summary > p:last-of-type {
  color: rgba(255,247,230,0.92);
}

.thesis-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.thesis-metric {
  padding: 0.8rem 0.7rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.thesis-metric strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFE39A;
}

.thesis-metric span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(255,247,230,0.88);
}

.thesis-evidence,
.spatial-evidence-grid,
.system-card-grid,
.route-grid {
  display: grid;
  gap: var(--space-md);
}

.thesis-evidence {
  grid-template-columns: 1fr 1fr;
}

.evidence-card,
.system-card {
  position: relative;
  padding: 1.15rem 1.2rem 1.15rem 1.25rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
}

.evidence-card::before,
.system-card::before,
.route-card::before,
.rule-card::before,
.methodology-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
}

.evidence-index,
.system-card-index,
.rule-index,
.route-step,
.axial-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 700;
}

.evidence-card h3,
.system-card h3,
.route-card h3,
.rule-card h3,
.axial-stop h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.08rem;
}

.evidence-card p,
.system-card p,
.route-card p,
.rule-card p,
.axial-stop p {
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

.dimension-map-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-lg);
}

.dimension-map {
  position: relative;
  min-height: 720px;
  border-radius: 32px;
  border: 1px solid rgba(58,21,24,0.08);
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.98) 0 20%, rgba(245,240,225,0.92) 20% 46%, rgba(232,224,204,0.86) 46% 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dimension-map::before,
.dimension-map::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(200,16,46,0.18);
}

.dimension-map::before {
  width: min(82vw, 620px);
  height: min(82vw, 620px);
}

.dimension-map::after {
  width: min(62vw, 440px);
  height: min(62vw, 440px);
}

.dimension-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(48,16,19,0.98), rgba(100,18,35,0.96));
  box-shadow: 0 20px 40px rgba(58,21,24,0.24);
  color: var(--color-cream);
  text-align: center;
  z-index: 2;
}

.dimension-core strong {
  display: block;
  max-width: 8em;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--color-cream-strong);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dimension-core span {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: rgba(255,247,230,0.9);
  opacity: 1;
}

.dimension-node {
  position: absolute;
  width: min(260px, calc(100% - 2rem));
  padding: 1.15rem 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.dimension-node h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 1.08rem;
}

.dimension-node p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dimension-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--color-red);
  font-size: 0.86rem;
  font-weight: 700;
}

.dimension-node--north {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.dimension-node--east {
  top: 24%;
  right: 4%;
}

.dimension-node--south-east {
  bottom: 8%;
  right: 8%;
}

.dimension-node--south {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.dimension-node--south-west {
  bottom: 8%;
  left: 8%;
}

.dimension-node--west {
  top: 24%;
  left: 4%;
}

.route-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: var(--space-lg);
}

.route-card {
  position: relative;
  display: block;
  padding: 1.2rem 1rem 1.15rem;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.methodology-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.methodology-item {
  position: relative;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-radius: 18px;
}

.methodology-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-zitan);
  font-size: 0.95rem;
}

.methodology-item span {
  display: block;
  color: var(--color-gray);
  font-size: 0.88rem;
  line-height: 1.6;
}

.spatial-atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: var(--space-lg);
  align-items: stretch;
}

.axial-diagram,
.spatial-summary {
  position: relative;
  border-radius: 28px;
}

.spatial-atlas .section-intro {
  max-width: 920px;
  margin: 0 auto 1.5rem;
}

.spatial-atlas .section-title {
  margin-bottom: 1rem;
}

.spatial-atlas .section-subtitle {
  max-width: 42rem;
  margin: -0.45rem auto 0;
}

.axial-diagram {
  min-height: clamp(520px, 64vh, 620px);
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(232,224,204,0.92)),
    var(--color-white);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.axial-scene {
  position: absolute;
  inset: 0.9rem;
  border-radius: 22px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: saturate(0.9) contrast(1.02);
}
.axial-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.24) 24%, rgba(248,245,238,0.72) 100%),
    linear-gradient(90deg, rgba(200,16,46,0.04), rgba(212,166,58,0.04));
}
.axial-scene-caption {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem 0.78rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}
.axial-scene-caption span {
  font-size: 0.72rem;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.axial-scene-caption strong {
  font-size: 0.88rem;
  color: var(--color-zitan);
}

.axial-line {
  position: absolute;
  top: 94px;
  bottom: 66px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-red), var(--color-gold), var(--color-zitan));
  border-radius: 999px;
  opacity: 0.85;
  z-index: 1;
}

.axial-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, 58%);
  padding: 0.62rem 0.85rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.axial-band span {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.96rem;
}

.axial-band small {
  display: block;
  margin-top: 0.14rem;
  color: var(--color-gray);
  font-size: 0.76rem;
}

.axial-band--outer {
  top: 58px;
  background: rgba(200,16,46,0.08);
}

.axial-band--inner {
  bottom: 18px;
  background: rgba(58,21,24,0.07);
}

.axial-stops {
  position: absolute;
  inset: 120px 1rem 88px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-items: center;
  pointer-events: none;
}

.axial-stop {
  position: relative;
  width: auto;
  padding: 0.9rem 0.95rem 0.9rem 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: 0 18px 38px rgba(58,21,24,0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  pointer-events: auto;
}

.axial-stop::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: rgba(200,16,46,0.35);
}

.axial-stop--gate {
  grid-column: 1;
  grid-row: 1;
  margin-right: 0.45rem;
  align-self: start;
  --reveal-x: -88px;
}

.axial-stop--gate::after {
  right: -28px;
}

.axial-stop--hall {
  grid-column: 3;
  grid-row: 2;
  margin-left: 0.45rem;
  align-self: start;
  --reveal-x: 88px;
}

.axial-stop--hall::after {
  left: -28px;
}

.axial-stop--palace {
  grid-column: 1;
  grid-row: 3;
  margin-right: 0.45rem;
  align-self: end;
  --reveal-x: -88px;
}

.axial-stop--palace::after {
  right: -28px;
}

.axial-stop--garden {
  grid-column: 3;
  grid-row: 4;
  margin-left: 0.45rem;
  align-self: end;
  --reveal-x: 88px;
}

.axial-stop--garden::after {
  left: -28px;
}

.spatial-summary {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.9rem;
  min-height: clamp(520px, 64vh, 620px);
}

.statement-card,
.system-network {
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 24px;
}

.statement-label {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.45;
}

.statement-note {
  margin-top: 0.72rem;
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.6;
}

.spatial-system-board {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.spatial-system-track {
  display: grid;
  align-content: start;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.spatial-track-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: fit-content;
  height: 1.75rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spatial-system-track h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1rem;
}

.spatial-system-track p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.axial-route-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 10.5rem);
}

.axial-route-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.26rem 0.64rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(58,21,24,0.08);
  color: var(--color-zitan);
  font-size: 0.72rem;
  font-weight: 700;
}

.axial-route-chip--axis {
  color: var(--color-red);
}

.axial-route-chip--zones {
  color: #8C6A10;
}

.axial-route-chip--path {
  color: #6A5847;
}

.axial-node {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0;
}

.axial-node::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--color-red);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.12);
  transform: translateX(-50%);
}

.axial-node strong {
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(58,21,24,0.08);
  font-size: 0.78rem;
  color: var(--color-zitan);
}

.axial-node span {
  font-size: 0.7rem;
  color: var(--color-gray);
}

.axial-node--wumen {
  top: 22%;
  left: calc(50% - 28px);
}

.axial-node--taihe {
  top: 39%;
  left: calc(50% - 28px);
}

.axial-node--qianqing {
  top: 61%;
  left: calc(50% - 28px);
}

.axial-node--garden {
  top: 81%;
  left: calc(50% - 28px);
}

.axial-path {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,248,230,0.9);
  border: 1px solid rgba(122,90,0,0.14);
  color: var(--color-zitan);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.axial-path--gate {
  top: 27%;
  left: 1rem;
}

.axial-path--palace {
  top: 58%;
  left: 1rem;
}

.axial-path--side {
  bottom: 4.9rem;
  left: 1rem;
}

.spatial-visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.spatial-visual-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.spatial-visual-media {
  min-height: 210px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.spatial-visual-body {
  padding: 1rem 1.05rem 1.1rem;
}

.spatial-visual-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 700;
}

.spatial-visual-body h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.05rem;
}

.spatial-visual-body p {
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-module-1 .spatial-visual-strip {
  perspective: 1400px;
}

.page-module-1 .spatial-visual-card {
  position: relative;
  transform: translate3d(0, 82px, 0) scale(0.94) rotateX(7deg);
  opacity: 0;
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.92s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.38s ease,
    border-color 0.32s ease;
  will-change: transform, opacity;
}

.page-module-1 .spatial-visual-card:nth-child(1) {
  transition-delay: 0.06s;
}

.page-module-1 .spatial-visual-card:nth-child(2) {
  transition-delay: 0.18s;
}

.page-module-1 .spatial-visual-card:nth-child(3) {
  transition-delay: 0.3s;
}

.page-module-1 .spatial-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 58%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.page-module-1 .spatial-visual-media {
  transform: scale(1.14);
  transform-origin: center center;
  transition: transform 1.15s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-1 .spatial-visual-chip,
.page-module-1 .spatial-visual-body h3,
.page-module-1 .spatial-visual-body p {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.56s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-1 .spatial-visual-body h3 {
  transition-delay: 0.08s;
}

.page-module-1 .spatial-visual-body p {
  transition-delay: 0.15s;
}

.page-module-1 .spatial-visual-strip.is-revealed .spatial-visual-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.page-module-1 .spatial-visual-strip.is-revealed .spatial-visual-media {
  transform: scale(1);
}

.page-module-1 .spatial-visual-strip.is-revealed .spatial-visual-chip,
.page-module-1 .spatial-visual-strip.is-revealed .spatial-visual-body h3,
.page-module-1 .spatial-visual-strip.is-revealed .spatial-visual-body p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-module-1 .spatial-visual-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.01);
  box-shadow: 0 24px 48px rgba(58, 21, 24, 0.16);
  border-color: rgba(200, 16, 46, 0.18);
}

.page-module-1 .spatial-visual-card:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-module-1 .spatial-visual-card,
  .page-module-1 .spatial-visual-media,
  .page-module-1 .spatial-visual-chip,
  .page-module-1 .spatial-visual-body h3,
  .page-module-1 .spatial-visual-body p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.rule-grid,
.spatial-evidence-grid,
.system-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.rule-card {
  position: relative;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 20px;
}

.engineering-system .methodology-strip {
  margin-top: 1.1rem;
}

.system-overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: var(--space-md);
  align-items: stretch;
  margin-bottom: 2rem;
}

.system-board {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
  margin-bottom: var(--space-lg);
}

.system-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
  border-radius: 24px;
}

.system-column-title {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-zitan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-chip {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pressure-chip {
  background: rgba(200,16,46,0.08);
  color: var(--color-zitan);
}

.outcome-chip {
  background: rgba(255,215,0,0.14);
  color: var(--color-zitan);
}

.system-network {
  --system-orbit-center-y: 53%;
  --system-orbit-outer: 324px;
  --system-orbit-inner: 228px;
  position: relative;
  min-height: 420px;
  height: 100%;
  background:
    radial-gradient(circle at 50% var(--system-orbit-center-y), rgba(255,255,255,0.98) 0 18%, rgba(245,240,225,0.92) 18% 100%);
  overflow: hidden;
  border-radius: 28px;
}

.system-network::before,
.system-network::after {
  content: '';
  position: absolute;
  top: var(--system-orbit-center-y);
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(200,16,46,0.18);
}

.system-network::before {
  width: var(--system-orbit-outer);
  height: var(--system-orbit-outer);
}

.system-network::after {
  width: var(--system-orbit-inner);
  height: var(--system-orbit-inner);
}

.system-core {
  position: absolute;
  top: var(--system-orbit-center-y);
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 184px;
  height: 184px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(48,16,19,0.98), rgba(100,18,35,0.96));
  box-shadow: 0 18px 40px rgba(58,21,24,0.22);
  text-align: center;
  color: var(--color-cream);
  z-index: 2;
}

.system-core strong {
  display: block;
  max-width: 7em;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--color-cream-strong);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.system-core span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255,247,230,0.9);
  opacity: 1;
}

.system-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: 0 8px 18px rgba(58, 21, 24, 0.1);
  color: var(--color-zitan);
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 1;
}

.system-pill--drainage {
  top: calc(var(--system-orbit-center-y) - 188px);
  left: 50%;
  transform: translate(-50%, -50%);
}

.system-pill--heating {
  top: calc(var(--system-orbit-center-y) - 74px);
  right: 8%;
  transform: translateY(-50%);
}

.system-pill--fire {
  top: calc(var(--system-orbit-center-y) + 132px);
  right: 10%;
  transform: translateY(-50%);
}

.system-pill--lightning {
  top: calc(var(--system-orbit-center-y) + 132px);
  left: 10%;
  transform: translateY(-50%);
}

.system-pill--ventilation {
  top: calc(var(--system-orbit-center-y) - 74px);
  left: 8%;
  transform: translateY(-50%);
}

.system-side-panel {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
  align-content: start;
  grid-auto-rows: min-content;
  padding-bottom: 0.2rem;
}

.system-mini-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.system-mini-column {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
}

.system-mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.system-mini-chip {
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.system-card-grid--compact {
  grid-template-columns: 1fr;
  min-width: 0;
  gap: 0.85rem;
  align-content: start;
}

.system-card-grid--compact .system-card {
  padding: 1rem 1.05rem 1rem 1.1rem;
}

.system-card-grid--compact .system-card h3 {
  margin: 0.7rem 0 0.32rem;
  font-size: 1rem;
}

.system-card-grid--compact .system-card p {
  font-size: 0.84rem;
  line-height: 1.6;
}

.methodology-strip--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
  align-items: stretch;
  gap: 0.9rem;
}

.methodology-strip--compact .methodology-item {
  padding: 0.95rem 1rem 1rem;
  min-width: 0;
  min-height: 100%;
}

.methodology-strip--compact .methodology-item::before {
  display: none;
}

/* --- Module 5 Solid Tone Override --- */
.engineering-system {
  background: #f5eedf;
}

.engineering-system::before {
  display: none;
}

.engineering-system .section-title {
  color: #3a1518;
}

.engineering-system .section-subtitle {
  color: rgba(58, 21, 24, 0.86);
}

.engineering-system .system-column,
.engineering-system .system-network,
.engineering-system .system-mini-column,
.engineering-system .system-card,
.engineering-system .methodology-item {
  background: #fffaf2;
  border: 1px solid rgba(58, 21, 24, 0.12);
  box-shadow: 0 10px 24px rgba(58, 21, 24, 0.08);
}

.engineering-system .system-column-title {
  color: #7a1224;
}

.engineering-system .pressure-chip {
  background: #f8ebe7;
  color: #4a2327;
}

.engineering-system .outcome-chip {
  background: #f6eedb;
  color: #4a2327;
}

.engineering-system .system-network {
  background: #f8f1e3;
}

.engineering-system .system-network::before,
.engineering-system .system-network::after {
  border-color: rgba(122, 18, 36, 0.22);
}

.engineering-system .system-core {
  background: #8f4a53;
  box-shadow: 0 16px 30px rgba(58, 21, 24, 0.16);
}

.engineering-system .system-pill {
  background: #fffaf2;
  border: 1px solid rgba(58, 21, 24, 0.12);
  color: #4a2327;
}

.engineering-system .system-card::before,
.engineering-system .methodology-item::before {
  background: linear-gradient(90deg, #c65a5d, #d5b167);
}

.engineering-system .system-card-index {
  background: #f6e6e7;
  color: #b74a56;
}

.engineering-system .system-card h3,
.engineering-system .methodology-item strong {
  color: #5a2e33;
}

.engineering-system .system-card p,
.engineering-system .methodology-item span {
  color: rgba(58, 21, 24, 0.78);
}

.page-module-5 .engineering-diagram {
  background: #fff9ef;
  border: 1px solid rgba(58, 21, 24, 0.12);
  box-shadow: 0 12px 28px rgba(58, 21, 24, 0.08);
}

.page-module-5 .engineering-diagram::before {
  display: none;
}

.page-module-5 .engineering-caption {
  background: #fffaf2;
  border: 1px solid rgba(58, 21, 24, 0.12);
  box-shadow: 0 8px 20px rgba(58, 21, 24, 0.06);
}

.page-module-5 .engineering-caption-body,
.page-module-5 .engineering-step-copy small {
  color: rgba(58, 21, 24, 0.78);
}

.page-module-5 .engineering-step {
  background: #f3eadb;
  border: 1px solid rgba(58, 21, 24, 0.12);
  color: #4a2327;
}

.page-module-5 .engineering-step[data-phase-name="phase-overview"] {
  background: #fff3df;
  border-color: rgba(58, 21, 24, 0.16);
  box-shadow: 0 8px 18px rgba(58, 21, 24, 0.08);
}

.page-module-5 .engineering-step.is-active {
  background: #efdfc2;
  border-color: rgba(58, 21, 24, 0.18);
  box-shadow: 0 10px 22px rgba(58, 21, 24, 0.1);
}

.page-module-5 .methodology-strip {
  gap: 1.1rem;
}

.page-module-5 .engineering-diagram.is-live .engineering-figure [class] {
  opacity: 1 !important;
  filter: none !important;
}

.page-module-5 #section-d .section-title,
.page-module-5 #section-d .section-subtitle {
  color: #3a1518;
}

.page-module-5 #section-d .fire-atlas-board,
.page-module-5 #section-d .fire-atlas-card,
.page-module-5 #section-d .fire-atlas-note {
  border-color: rgba(58, 21, 24, 0.12);
  box-shadow: 0 10px 24px rgba(58, 21, 24, 0.08);
}

.page-module-5 #section-d .fire-atlas-copy h3 {
  color: #5a2e33;
}

.page-module-5 #section-d .fire-atlas-copy p,
.page-module-5 #section-d .fire-atlas-head strong {
  color: rgba(58, 21, 24, 0.82);
}

.page-module-5 #section-d .defense-spec-item {
  background: #fffaf2;
  border: 1px solid rgba(58, 21, 24, 0.12);
  box-shadow: 0 10px 24px rgba(58, 21, 24, 0.08);
}

.page-module-5 #section-d .defense-grid {
  align-items: center;
}

.page-module-5 #section-d .defense-specs {
  justify-content: center;
  height: 100%;
}

.page-module-5 #section-d .defense-spec-item h4 {
  color: #c05a64;
}

.page-module-5 #section-d .defense-spec-item p {
  color: rgba(58, 21, 24, 0.78);
}

.page-module-5 #section-e .section-title,
.page-module-5 #section-e .section-subtitle {
  color: #3a1518;
}

.page-module-5 #section-e .defense-grid {
  align-items: center;
}

.page-module-5 #section-e .defense-specs {
  justify-content: center;
  height: 100%;
}

.page-module-5 #section-e .defense-spec-item {
  background: #fffaf2;
  border: 1px solid rgba(58, 21, 24, 0.12);
  box-shadow: 0 10px 24px rgba(58, 21, 24, 0.08);
}

.page-module-5 #section-e .defense-spec-item h4 {
  color: #c05a64;
}

.page-module-5 #section-e .defense-spec-item p {
  color: rgba(58, 21, 24, 0.78);
}

.page-home #taihedian-3d .section-subtitle {
  opacity: 0.9;
  color: rgba(79, 90, 100, 0.92);
}

.page-home .model-argument-layout {
  opacity: 1 !important;
  transform: none !important;
}

.page-home .home-model-stage,
.page-home .explode-viewer-wrap {
  background: #f2e7d2;
  border: 1px solid rgba(200, 16, 46, 0.22);
  box-shadow:
    0 8px 28px rgba(58, 21, 24, 0.12),
    inset 0 0 0 1px rgba(200, 16, 46, 0.08);
}

.page-home .explode-viewer-wrap {
  border-top: 4px solid #c8102e;
}

.page-home .model-argument-panel {
  background: #fffdf9;
  border: 1px solid rgba(58, 21, 24, 0.1);
  box-shadow: 0 10px 26px rgba(58, 21, 24, 0.08);
}

.page-home .figure-title {
  color: rgba(58, 21, 24, 0.76);
}

.page-home .model-caption {
  color: #5a2e33;
  font-weight: 600;
}

.page-home .model-evidence-list li {
  color: rgba(58, 21, 24, 0.86);
}

.page-home .thd-legend {
  background: #fffdf9;
  border: 1px solid rgba(58, 21, 24, 0.08);
  box-shadow: 0 8px 18px rgba(58, 21, 24, 0.06);
  color: rgba(58, 21, 24, 0.82);
}

.page-home .home-model-badge {
  background: rgba(90, 46, 51, 0.9);
}

.page-home .home-model-tip {
  background: #fffdf9;
  color: rgba(58, 21, 24, 0.82);
  box-shadow: 0 8px 18px rgba(58, 21, 24, 0.06);
}

@media (max-width: 1200px) {
  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-overview-shell,
  .system-board {
    grid-template-columns: 1fr;
  }

  .system-network {
    order: -1;
  }
}

@media (max-width: 1024px) {
  .thesis-board,
  .spatial-atlas-grid,
  .system-overview-shell,
  .methodology-strip {
    grid-template-columns: 1fr;
  }

  .spatial-summary {
    min-height: auto;
  }

  .route-grid,
  .thesis-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spatial-visual-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .thesis-metrics,
  .route-grid,
  .thesis-evidence,
  .rule-grid,
  .spatial-evidence-grid,
  .system-card-grid,
  .system-mini-board,
  .methodology-strip {
    grid-template-columns: 1fr;
  }

  .dimension-map {
    min-height: auto;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    background: var(--color-cream-dark);
  }

  .dimension-map::before,
  .dimension-map::after {
    display: none;
  }

  .dimension-core,
  .dimension-node,
  .axial-band,
  .axial-stop,
  .system-core,
  .system-pill {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
  }

  .dimension-core {
    width: 100%;
    height: auto;
    padding: 1.25rem;
    border-radius: 24px;
  }

  .axial-diagram {
    min-height: auto;
    display: grid;
    gap: var(--space-md);
    padding: 1.2rem;
  }

  .axial-stops {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.8rem;
    pointer-events: auto;
  }

  .spatial-summary,
  .spatial-system-board {
    min-height: auto;
    grid-template-rows: none;
  }

  .axial-line {
    display: none;
  }

  .axial-route-legend,
  .axial-node,
  .axial-path {
    display: none;
  }

  .axial-band {
    width: 100%;
  }

  .axial-stop::after {
    display: none;
  }

  .system-network {
    min-height: auto;
    display: grid;
    gap: var(--space-md);
    padding: 1.2rem;
  }

  .system-network::before,
  .system-network::after {
    display: none;
  }

  .system-core {
    width: 100%;
    height: auto;
    padding: 1.25rem;
    border-radius: 24px;
  }
}

/* ============================================
   Competition Homepage Refresh
   ============================================ */

.page-home .section-intro {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
}

.page-home .page-home .hero-thesis {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 14px;
  background: rgba(58, 21, 24, 0.42);
  color: var(--color-cream);
  font-size: 0.98rem;
  line-height: 1.75;
  backdrop-filter: blur(8px);
}

.page-home .thesis-title {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #fff8ef;
  text-shadow: 0 2px 12px rgba(0,0,0,0.26);
}

.page-home .thesis-lead {
  color: rgba(255,248,239,0.96);
}

.page-home .thesis-tag {
  display: none;
}

.page-home .thesis-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.page-home .thesis-metric {
  padding: 1rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(58, 21, 24, 0.08);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.page-home .thesis-metric strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-red);
  font-size: 1.5rem;
  font-family: var(--font-serif);
}

.page-home .thesis-metric span {
  color: var(--color-gray);
  font-size: 0.88rem;
}

.atlas-home-section {
  --atlas-bg: #f5eee0;
  --atlas-ink: #3d2a1f;
  --atlas-red: #b1242f;
  --atlas-stage-top: #5f2b33;
  --atlas-stage-bottom: #2f171c;
  --atlas-shadow: 0 24px 50px rgba(76, 45, 32, 0.12);
  --atlas-panel-shadow: 0 18px 42px rgba(68, 36, 29, 0.12);
  background:
    linear-gradient(rgba(200, 167, 136, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 167, 136, 0.07) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(212, 182, 115, 0.22), transparent 22%),
    var(--atlas-bg);
  background-size: 14px 14px, 14px 14px, auto, auto;
  color: var(--atlas-ink);
  padding-top: clamp(1.2rem, 3vw, 2.2rem);
}

.atlas-home-frame {
  width: min(1560px, calc(100% - 24px));
  margin: 0 auto;
}

.atlas-home-head {
  text-align: center;
  padding: 0 0 0.9rem;
}

.atlas-home-kicker {
  color: #8a6d26;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.atlas-home-title {
  margin: 0.1rem 0 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: #2f2018;
}

.atlas-home-subtitle {
  max-width: 980px;
  margin: 1.1rem auto 0;
  color: #65574f;
  font-size: 1.05rem;
  line-height: 1.85;
}

.atlas-home-divider {
  position: relative;
  width: min(760px, 84%);
  height: 1px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(171, 36, 48, 0.18), transparent);
}

.atlas-home-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b059, #c89616);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(200, 150, 22, 0.18);
}

.atlas-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 0.5rem;
}

.atlas-home-section .atlas-stage {
  position: relative;
  min-height: 1040px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--atlas-stage-top), var(--atlas-stage-bottom));
  box-shadow: var(--atlas-shadow);
  overflow: hidden;
}

.atlas-home-section .atlas-stage::before,
.atlas-home-section .atlas-stage::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(244, 223, 189, 0.09);
  pointer-events: none;
}

.atlas-home-section .atlas-stage::after {
  inset: 54px;
  border-color: rgba(244, 223, 189, 0.05);
}

.atlas-home-section .atlas-surface {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 980px;
}

.atlas-home-section .axis-line,
.atlas-home-section .axis-line-cross {
  position: absolute;
  background: rgba(246, 226, 194, 0.08);
  pointer-events: none;
}

.atlas-home-section .axis-line {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.atlas-home-section .axis-line-cross {
  left: 11%;
  right: 11%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.atlas-home-section .core-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(280px, 24vw, 340px);
  min-width: 280px;
  padding: 18px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 238, 225, 0.95));
  border: 1px solid rgba(201, 161, 100, 0.22);
  box-shadow: 0 22px 48px rgba(18, 8, 8, 0.18);
  text-align: center;
  transform: translate(-50%, -50%);
}

.atlas-home-section .core-kicker {
  color: #8a6d26;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.atlas-home-section .core-title {
  margin: 8px 0 4px;
  color: var(--atlas-red);
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.86rem, 2.35vw, 2.6rem);
  line-height: 1.05;
}

.atlas-home-section .core-subtitle {
  color: #4b332d;
  font-size: 1rem;
  font-weight: 700;
}

.atlas-home-section .core-body {
  margin: 10px 0 0;
  color: #5f4941;
  font-size: 0.9rem;
  line-height: 1.68;
}

.atlas-home-section .core-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.atlas-home-section .core-metric {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(115, 76, 60, 0.08);
  box-shadow: 0 10px 18px rgba(110, 80, 63, 0.08);
}

.atlas-home-section .core-metric strong {
  display: block;
  color: var(--atlas-red);
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1rem;
}

.atlas-home-section .core-metric span {
  display: block;
  margin-top: 3px;
  color: #6d5d56;
  font-size: 0.76rem;
}

.atlas-home-section .connector {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--len);
  height: 1px;
  background: linear-gradient(90deg, rgba(248, 225, 184, 0.78), rgba(248, 225, 184, 0.1));
  transform-origin: left center;
  transform: rotate(var(--angle));
}

.atlas-home-section .connector::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 225, 184, 0.92);
  box-shadow: 0 0 20px rgba(248, 225, 184, 0.28);
  transform: translate(50%, -50%);
}

.atlas-home-section .atlas-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  width: clamp(168px, 15vw, 192px);
  min-width: 168px;
  padding: 13px 13px 12px;
  border-radius: 20px;
  border: 1px solid rgba(248, 225, 184, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #f7efe0;
  text-align: left;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  backdrop-filter: blur(10px);
}

.atlas-home-section .atlas-node:hover,
.atlas-home-section .atlas-node:focus-visible,
.atlas-home-section .atlas-node.is-active {
  transform: translate(-50%, calc(-50% - 4px));
  border-color: rgba(248, 225, 184, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  outline: none;
}

.atlas-home-section .node-index {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(248, 225, 184, 0.74);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.atlas-home-section .node-name {
  margin: 0 0 8px;
  color: #fff4e1;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.08;
}

.atlas-home-section .node-thesis {
  margin: 0;
  color: rgba(251, 242, 230, 0.82);
  font-size: 0.82rem;
  line-height: 1.56;
}

.atlas-home-section .node-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.atlas-home-section .node-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(248, 225, 184, 0.16);
  color: #fff2dd;
  font-size: 0.72rem;
  font-weight: 700;
}

.atlas-home-section .atlas-detail-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px 22px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--atlas-panel-shadow);
  min-height: 920px;
}

.atlas-home-section .detail-kicker {
  color: #a8821d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.atlas-home-section .detail-title {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.85rem, 2.1vw, 2.6rem);
  line-height: 1.34;
  color: #4a2c23;
}

.atlas-home-section .detail-body {
  color: #665851;
  font-size: 1rem;
  line-height: 1.9;
}

.atlas-home-section .detail-tags,
.atlas-home-section .detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atlas-home-section .detail-tag,
.atlas-home-section .detail-metric {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.atlas-home-section .detail-tag {
  background: rgba(162, 114, 55, 0.08);
  color: #5e4539;
}

.atlas-home-section .detail-metric {
  background: rgba(177, 36, 47, 0.06);
  color: #6e5148;
}

.atlas-home-section .detail-evidence {
  display: grid;
  gap: 12px;
}

.atlas-home-section .evidence-item {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #f8f1e5;
  border: 1px solid rgba(170, 120, 87, 0.08);
}

.atlas-home-section .evidence-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--atlas-red);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.atlas-home-section .evidence-item p {
  margin: 0;
  color: #6a5951;
  font-size: 0.94rem;
  line-height: 1.82;
}

.atlas-home-section .detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--atlas-red);
  font-size: 0.95rem;
  font-weight: 700;
}

.atlas-home-section .detail-link span:first-child {
  color: #705c52;
  font-weight: 600;
}

.atlas-home-section .detail-link:hover {
  opacity: 0.8;
}

@media (max-width: 1220px) {
  .atlas-home-shell {
    grid-template-columns: 1fr;
  }

  .atlas-home-section .atlas-stage {
    min-height: 1080px;
  }

  .atlas-home-section .atlas-surface {
    min-height: 1020px;
  }

  .atlas-home-section .atlas-detail-panel {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .atlas-home-frame {
    width: min(100%, calc(100% - 24px));
  }

  .atlas-home-head {
    padding-bottom: 1rem;
  }

  .atlas-home-subtitle {
    font-size: 0.96rem;
    line-height: 1.74;
  }

  .atlas-home-shell {
    gap: 14px;
  }

  .atlas-home-section .atlas-stage {
    min-height: 0;
    padding: 14px;
  }

  .atlas-home-section .atlas-surface {
    min-height: 0;
    display: grid;
    gap: 14px;
  }

  .atlas-home-section .axis-line,
  .atlas-home-section .axis-line-cross,
  .atlas-home-section .connector {
    display: none;
  }

  .atlas-home-section .core-card,
  .atlas-home-section .atlas-node {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .atlas-home-section .core-card {
    margin-bottom: 2px;
  }

  .atlas-home-section .atlas-node:hover,
  .atlas-home-section .atlas-node:focus-visible,
  .atlas-home-section .atlas-node.is-active {
    transform: translateY(-3px);
  }

  .atlas-home-section .atlas-detail-panel {
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .atlas-home-section .core-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .atlas-home-section .node-name {
    font-size: 1.45rem;
  }
}

.page-home .dimension-map-section {
  background: #F7F3E8;
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
}

.page-home .dimension-map-wrap {
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.page-home .dimension-map-wrap.animate-on-scroll,
.page-home .dimension-map-wrap.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
  transition: none;
}

.page-home .dimension-map {
  position: relative;
  display: grid;
  gap: 1.2rem;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-home .dimension-map::before {
  display: none;
}

.page-home .dimension-map::after {
  display: none;
}

.page-home .dimension-core {
  display: none;
}

.page-home .dimension-node-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.page-home .dimension-node {
  position: relative;
  inset: auto;
  width: auto;
  height: 330px;
  padding: 0.95rem 0.9rem 1.55rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 243, 233, 0.96));
  border: 1px solid rgba(58, 21, 24, 0.08);
  box-shadow: 0 18px 34px rgba(88, 64, 41, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(var(--dimension-offset, 0));
  transition:
    opacity 0.8s ease var(--dimension-delay, 0ms),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--dimension-delay, 0ms),
    box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-home .dimension-map-wrap.in-view .dimension-node {
  opacity: 1;
  transform: translateY(0);
}

.page-home .dimension-map-wrap.in-view .dimension-node:hover,
.page-home .dimension-map-wrap.in-view .dimension-node:focus-visible {
  transform: translateY(-11.52px);
  border-color: rgba(184, 29, 37, 0.22);
  box-shadow: 0 28.8px 48px rgba(88, 64, 41, 0.192);
  transition:
    transform 0s,
    box-shadow 0s,
    border-color 0s;
}

.page-home .dimension-node::before {
  display: none;
}

.page-home .dimension-node::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.6rem;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(166, 102, 69, 0.95), rgba(166, 102, 69, 0.16));
  pointer-events: none;
}

.page-home .dimension-index,
.page-home .dimension-name,
.page-home .dimension-thesis,
.page-home .dimension-metrics,
.page-home .dimension-link {
  position: relative;
  z-index: 1;
}

.page-home .dimension-index {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(61, 42, 31, 0.74);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-home .dimension-name {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--color-zitan);
}

.page-home .dimension-thesis {
  color: var(--color-gray);
  font-size: 0.84rem;
  line-height: 1.72;
  min-height: 7.2em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .dimension-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.page-home .dimension-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--color-zitan);
  font-size: 0.72rem;
  font-weight: 600;
}

.page-home .dimension-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  margin-top: 0.65rem;
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .dimension-link-prefix {
  color: rgba(90, 70, 38, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
}

.page-home .dimension-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 70, 38, 0.72);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  transition: transform 0.25s ease;
}

.page-home .dimension-link-text {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 700;
}

.page-home .dimension-map-wrap.in-view .dimension-node:hover .dimension-link-arrow,
.page-home .dimension-map-wrap.in-view .dimension-node:focus-visible .dimension-link-arrow {
  transform: translateX(2px);
}

.page-home .model-argument-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.page-home .model-stage {
  display: grid;
  gap: 0.9rem;
}

.page-home .model-argument-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(58, 21, 24, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.page-home .model-tools {
  display: grid;
  gap: 1rem;
}

.page-home .model-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-home .model-topic,
.page-home .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(58, 21, 24, 0.12);
  border-radius: 999px;
  background: rgba(245, 240, 225, 0.88);
  color: var(--color-zitan);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.page-home .model-topic:hover,
.page-home .button-secondary:hover,
.page-home .model-topic.is-active {
  background: rgba(200, 16, 46, 0.12);
  border-color: rgba(200, 16, 46, 0.25);
  color: var(--color-red);
}

.page-home .model-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-home .figure-title {
  color: var(--color-zitan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .model-caption {
  color: var(--color-zitan);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-home .model-evidence-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
}

.page-home .model-evidence-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-gray);
}

.page-home .model-evidence-list li::before {
  content: '';
  position: absolute;
  top: 0.78rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--color-red);
  transform: translateY(-50%);
}

.page-home .model-jump {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--color-red);
  font-weight: 700;
}

.page-home .route-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.page-home .route-effect-stage {
  position: relative;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 2rem 1.5rem 2.4rem;
}

.page-home .route-effect-grid {
  display: none;
}

.page-home .route-grid--effect {
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 350px;
}

.page-home .route-card {
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.15rem 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,240,225,0.94));
  border: 1px solid rgba(58, 21, 24, 0.08);
  box-shadow: var(--shadow-sm);
}

.page-home .route-card--effect {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 1rem 0.9rem 1.2rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 235, 223, 0.96)),
    linear-gradient(135deg, rgba(142, 75, 47, 0.08), transparent 50%);
  border: 1px solid rgba(89, 55, 34, 0.12);
  box-shadow: 0 14px 28px rgba(70, 44, 28, 0.1);
  opacity: 0;
  transform: translateY(0);
  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 800ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
  will-change: transform, opacity;
}

.page-home .route-card--effect::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), transparent 46%),
    linear-gradient(0deg, rgba(142, 75, 47, 0.04), transparent 35%);
  pointer-events: none;
}

.page-home .route-card--effect::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(142, 75, 47, 0.9), rgba(142, 75, 47, 0.18));
  opacity: 0.9;
}

.page-home .route-card--effect[data-side="top"] {
  opacity: 0.35;
  transform: translateY(-100%);
}

.page-home .route-card--effect[data-side="bottom"] {
  opacity: 0.35;
  transform: translateY(100%);
}

.page-home .route-effect-stage.is-active .route-card--effect {
  opacity: 1;
  transform: translateY(var(--route-landing, 0));
}

.page-home .route-effect-stage.is-active .route-card--effect:hover {
  transform: translateY(calc(var(--route-landing, 0) - 8px));
  box-shadow: 0 18px 34px rgba(70, 44, 28, 0.16);
  border-color: rgba(142, 75, 47, 0.22);
}

.page-home .route-card--effect > * {
  position: relative;
  z-index: 1;
}

.page-home .route-step {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(142, 75, 47, 0.1);
  color: #7b5038;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-home .route-question {
  font-size: 1.02rem;
  color: var(--color-zitan);
  line-height: 1.35;
}

.page-home .route-answer {
  color: var(--color-gray);
  font-size: 0.86rem;
  line-height: 1.7;
}

.page-home .route-link {
  color: var(--color-red);
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
}

.page-home .methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-home .methodology-item {
  padding: 1.2rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(58, 21, 24, 0.08);
  box-shadow: var(--shadow-sm);
}

.page-home .methodology-item h3 {
  margin-bottom: 0.8rem;
  color: var(--color-zitan);
  font-size: 1rem;
}

.page-home .methodology-list {
  display: grid;
  gap: 0.6rem;
}

.page-home .methodology-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-gray);
  font-size: 0.9rem;
}

.page-home .methodology-list li::before {
  content: '';
  position: absolute;
  top: 0.78rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-gold-dim);
  transform: translateY(-50%);
}

@media (max-width: 1200px) {
  .page-home .dimension-node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .page-home .model-argument-layout,
  .page-home .methodology-grid {
    grid-template-columns: 1fr;
  }

  .page-home .thesis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .route-grid--effect {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .page-home .hero-thesis {
    font-size: 0.92rem;
  }

  .page-home .thesis-title {
    font-size: 1.5rem;
  }

  .page-home .dimension-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .route-grid,
  .page-home .thesis-metrics {
    grid-template-columns: 1fr;
  }

  .page-home .route-effect-stage {
    padding: 1rem 0.85rem 1.2rem;
  }

  .page-home .route-card--effect,
  .page-home .route-effect-stage.is-active .route-card--effect,
  .page-home .route-effect-stage.is-active .route-card--effect:hover {
    min-height: 0;
    transform: none;
    opacity: 1;
  }

  .page-home .model-topics,
  .page-home .model-tour-actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-home .dimension-node-grid {
    grid-template-columns: 1fr;
  }

  .page-home .dimension-node {
    height: auto;
    min-height: 300px;
  }
}

/* ============================================
   Module Narrative Reset
   ============================================ */

.page-module .page-module .section-intro {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.page-module .thesis-title {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
  color: var(--color-cream-strong);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-module .thesis-lead {
  color: rgba(255,247,230,0.92);
}

.page-module .thesis-summary .thesis-metrics {
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.page-module .thesis-summary .thesis-metric {
  padding: 0.8rem 0.7rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  box-shadow: none;
}

.page-module .thesis-summary .thesis-metric strong {
  display: block;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFE39A;
}

.page-module .thesis-summary .thesis-metric span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(255,247,230,0.88);
}

.page-module .methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-module .methodology-item {
  position: relative;
}

.page-module .methodology-item h3 {
  margin-bottom: 0.8rem;
  color: var(--color-zitan);
  font-size: 1rem;
}

.page-module .methodology-list {
  display: grid;
  gap: 0.6rem;
}

.page-module .methodology-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-gray);
  font-size: 0.9rem;
}

.page-module .methodology-list li::before {
  content: '';
  position: absolute;
  top: 0.78rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-gold-dim);
  transform: translateY(-50%);
}

@media (max-width: 960px) {
  .page-module .methodology-grid {
    grid-template-columns: 1fr;
  }

  .page-module .thesis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-module .thesis-metrics {
    grid-template-columns: 1fr;
  }
}

.zone-switch-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.zone-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(58,21,24,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--color-zitan);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zone-filter:hover,
.zone-filter.is-active {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}
.zone-filter:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.zone-switch-board {
  margin-bottom: var(--space-md);
  padding: 1.25rem 1.35rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58,21,24,0.08);
  box-shadow: var(--shadow-sm);
}

.zone-view-copy {
  display: none;
}

.zone-view-copy.is-active {
  display: block;
}

.zone-view-copy h3 {
  margin: 0.95rem 0 0.55rem;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-zitan);
}

.zone-view-copy p {
  color: var(--color-gray);
  line-height: 1.75;
}

#zone-switch .zone-card {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

#zone-switch .zone-card.is-muted {
  opacity: 0.35;
  filter: grayscale(0.12);
  transform: scale(0.98);
}

#zone-switch .zone-card .zone-card-media {
  min-height: 188px;
  background-color: #EDE4D2;
}

#zone-switch .zone-card[data-zone="outer"] {
  border-left-color: #C8102E;
}

#zone-switch .zone-card[data-zone="inner"] {
  border-left-color: #6A5847;
}

#zone-switch .zone-card[data-zone="east"] {
  border-left-color: #8C6A10;
}

#zone-switch .zone-card[data-zone="west"] {
  border-left-color: #7A1224;
}

#zone-switch .zone-card[data-zone="outer"] .zone-card-media {
  background-position: center 16%;
}

#zone-switch .zone-card[data-zone="inner"] .zone-card-media {
  background-position: center 70%;
}

#zone-switch .zone-card[data-zone="east"] .zone-card-media {
  background-position: 26% 44%;
}

#zone-switch .zone-card[data-zone="west"] .zone-card-media {
  background-position: 74% 44%;
}

@media (max-width: 768px) {
  .zone-switch-controls {
    gap: 0.55rem;
  }

  .zone-filter {
    min-width: auto;
    padding: 0.62rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Homepage 3D module sizing after section reorder */
.page-home #taihedian-3d {
  padding: clamp(2.4rem, 4vw, 3.4rem) 0 clamp(5vh, 6vw, 6.5vh);
  background:
    linear-gradient(180deg, var(--color-cream) 0%, #EDE6D4 50%, var(--color-cream-dark) 100%);
}

.page-home #taihedian-3d .container {
  min-height: 0;
  align-content: start;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.page-home .model-argument-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  align-items: stretch;
  min-height: clamp(760px, 76vh, 940px);
}

.page-home .model-stage {
  gap: 1.1rem;
  min-height: 100%;
}

.page-home .home-model-stage--embedded {
  min-height: clamp(700px, 72vh, 860px);
}

.page-home .home-model-stage--embedded .home-model-viewer,
.page-home .home-model-viewer {
  height: clamp(700px, 72vh, 860px);
  min-height: clamp(700px, 72vh, 860px);
}

.page-home .explode-viewer-wrap {
  max-width: none;
  min-height: clamp(700px, 72vh, 860px);
  aspect-ratio: auto;
}

.page-home .thd-legend {
  padding: 1rem 1.15rem;
  gap: 0.55rem 1rem;
}

.page-home .model-argument-panel {
  min-height: clamp(700px, 72vh, 860px);
  padding: 1.5rem 1.35rem;
  align-content: start;
}

@media (max-width: 1024px) {
  .page-home .model-argument-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
    min-height: clamp(680px, 72vh, 840px);
  }
}

@media (max-width: 768px) {
  .page-home #taihedian-3d {
    padding: 3.5rem 0 4.5rem;
  }

  .page-home #taihedian-3d .container {
    min-height: 0;
    gap: 1.1rem;
  }

  .page-home .model-argument-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-home .home-model-stage--embedded,
  .page-home .home-model-stage--embedded .home-model-viewer,
  .page-home .home-model-viewer,
  .page-home .explode-viewer-wrap,
  .page-home .model-argument-panel {
    min-height: 480px;
    height: auto;
  }

  .page-home .model-argument-panel {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  .page-home .home-model-stage--embedded,
  .page-home .home-model-stage--embedded .home-model-viewer,
  .page-home .home-model-viewer,
  .page-home .explode-viewer-wrap,
  .page-home .model-argument-panel {
    min-height: 360px;
  }

  .page-home .thd-legend {
    padding: 0.85rem 0.9rem;
  }
}

/* ============================================
   Module 01 Header Experiment
   ============================================ */

.page-module-1 {
  background:
    linear-gradient(180deg, #F5EFDF 0%, #EEE4CF 100%);
}

.page-module-1 .order-hero {
  min-height: calc(100vh - var(--nav-height));
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(33, 10, 15, 0.96) 0%, rgba(71, 16, 27, 0.94) 34%, rgba(132, 49, 42, 0.72) 51%, rgba(240, 232, 212, 0.96) 68%, rgba(246, 240, 225, 1) 100%);
  isolation: isolate;
}

.page-module-1 .order-hero .hero-bg {
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 212, 118, 0.18) 0%, rgba(255, 212, 118, 0.03) 18%, transparent 38%),
    linear-gradient(90deg, rgba(20, 6, 10, 0.26) 0%, rgba(20, 6, 10, 0.08) 44%, rgba(246, 240, 225, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.page-module-1 .order-hero .hero-bg::before {
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 46%),
    repeating-linear-gradient(0deg, transparent, transparent 54px, rgba(255, 215, 0, 0.8) 54px, rgba(255, 215, 0, 0.8) 55px),
    repeating-linear-gradient(90deg, transparent, transparent 54px, rgba(255, 215, 0, 0.55) 54px, rgba(255, 215, 0, 0.55) 55px);
}

.page-module-1 .order-hero .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(21, 7, 10, 0.1) 0%, rgba(21, 7, 10, 0) 48%, rgba(245, 240, 225, 0.18) 68%, rgba(245, 240, 225, 0.04) 100%);
}

/* ============================================
   Global Navbar Theme Sync
   Keep homepage and all module pages on the same nav background.
   ============================================ */

.navbar,
.page-home .navbar,
.page-module .navbar {
  background-color: #F2E4D2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60' viewBox='0 0 180 60'%3E%3Cg opacity='0.18' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 44H170'/%3E%3Cpath d='M26 44V30h128v14'/%3E%3Cpath d='M34 30l10-8h92l10 8'/%3E%3Cpath d='M40 22l8-6h84l8 6'/%3E%3Cpath d='M54 44V34M126 44V34'/%3E%3Cpath d='M72 44V36h36v8'/%3E%3Cpath d='M66 36l6-4h36l6 4'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #F7EEE2 0%, #F2E4D2 100%);
  background-repeat: repeat, no-repeat;
  background-size: 180px 60px, 100% 100%;
  background-position: 0 0, 0 0;
}

@media (max-width: 768px) {
  .nav-links,
  .page-home .nav-links,
  .page-module .nav-links {
    background-color: #F2E4D2;
    background-image: linear-gradient(180deg, #F7EEE2 0%, #F2E4D2 100%);
  }
}

.page-module-1 .order-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.82fr);
  gap: clamp(0.5rem, 1.5vw, 1.4rem);
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding-top: clamp(5.8rem, 8vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  padding-left: 0;
  padding-right: clamp(3.5rem, 5vw, 7rem);
  align-items: center;
}

.page-module-1 .order-hero-shell::before {
  content: none;
}

.page-module-1 .order-hero-gallery {
  position: relative;
  min-height: clamp(600px, 78vh, 860px);
  padding: 0;
  overflow: visible;
}

.page-module-1 .order-hero-roof {
  position: absolute;
  left: -18%;
  bottom: -21%;
  width: min(165.528%, 1778px);
  max-width: none;
  z-index: 2;
  filter: drop-shadow(0 38px 56px rgba(14, 4, 6, 0.36));
}

.page-module-1 .order-hero-content {
  position: relative;
  z-index: 4;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.4rem);
  text-align: left;
  color: var(--color-zitan);
}

.page-module-1 .order-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(122, 18, 36, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.page-module-1 .order-hero-kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 0, 0.85), rgba(122, 18, 36, 0.5));
}

.page-module-1 .order-hero-content h1 {
  margin-bottom: 1rem;
  color: #7A1224;
  white-space: nowrap;
  font-size: clamp(2.3rem, 4.15vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 22px rgba(255, 255, 255, 0.18);
}

.page-module-1 .order-hero-content p {
  max-width: 21rem;
  margin: 0;
  color: rgba(58, 21, 24, 0.88);
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  line-height: 1.95;
}

.page-module-1 .order-hero-thesis {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  color: #6A5847;
  font-size: 0.94rem;
  font-weight: 700;
}

.page-module-1 .order-thesis-line {
  display: inline-block;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #A11C2D, #C7A768);
}

.page-module-1 .order-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.page-module-1 .order-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.78);
  border: 1px solid rgba(122, 90, 0, 0.12);
  color: #5A4338;
  font-size: 0.82rem;
  font-weight: 700;
}

.page-module-1 .order-hero-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6rem;
  color: #9B0C23;
  font-weight: 700;
  font-size: 0.92rem;
}

.page-module-1 .order-hero-link::after {
  content: '→';
  margin-left: 0.45rem;
  transition: transform 0.2s ease;
}

.page-module-1 .order-hero-link:hover::after {
  transform: translateX(2px);
}

.page-module-1 .order-hero-map-card {
  position: absolute;
  top: 15%;
  right: clamp(1.2rem, 4vw, 3rem);
  z-index: 3;
  width: min(340px, 36%);
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,252,244,0.95), rgba(242,231,208,0.9));
  border: 1px solid rgba(122, 18, 36, 0.1);
  box-shadow: 0 18px 34px rgba(14, 4, 6, 0.18);
  backdrop-filter: blur(8px);
}

.page-module-1 .order-hero-map-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-module-1 .order-hero-map-card strong {
  display: block;
  margin-top: 0.85rem;
  color: var(--color-zitan);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
}

.page-module-1 .order-hero-map-card p {
  max-width: none;
  margin-top: 0.55rem;
  color: rgba(58,21,24,0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-module-1 .order-hero-map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.page-module-1 .order-hero-map-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(58,21,24,0.08);
  color: #5A4338;
  font-size: 0.74rem;
  font-weight: 700;
}

.page-module-1 .order-hero-outline {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.page-module-1 .order-outline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 251, 243, 0.74);
  border: 1px solid rgba(122, 90, 0, 0.08);
}

.page-module-1 .order-outline-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(200,16,46,0.08);
  color: var(--color-red);
  font-size: 0.82rem;
}

.page-module-1 .order-outline-card span {
  color: #5A4338;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.7;
}


@media (max-width: 1180px) {
  .page-module-1 .order-hero-shell {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .page-module-1 .order-hero-gallery {
    min-height: 620px;
  }

  .page-module-1 .order-hero-map-card {
    top: auto;
    bottom: 1.5rem;
    width: min(380px, 54%);
  }

  .page-module-1 .order-hero-content p {
    max-width: 34rem;
  }

  .page-module-1 .order-hero-roof {
    left: -14%;
    width: min(153.3312%, 1551px);
    bottom: -19%;
  }
}

@media (max-width: 768px) {
  .page-module-1 .order-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(33, 10, 15, 0.96) 0%, rgba(71, 16, 27, 0.9) 46%, rgba(240, 232, 212, 0.96) 72%, rgba(246, 240, 225, 1) 100%);
  }

  .page-module-1 .order-hero-shell {
    padding-top: 4.9rem;
    padding-bottom: 3.4rem;
  }

  .page-module-1 .order-hero-gallery {
    min-height: auto;
    min-height: 380px;
  }

  .page-module-1 .order-hero-map-card {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    margin: 1rem auto 0;
  }

  .page-module-1 .order-hero-roof {
    left: -18%;
    width: 160.3008%;
    bottom: -21%;
  }

  .page-module-1 .order-hero-content h1 {
    white-space: normal;
    font-size: clamp(2.15rem, 9vw, 3.25rem);
  }

  .page-module-1 .order-hero-content p {
    max-width: none;
    font-size: 0.98rem;
  }

  .page-module-1 .order-hero-outline {
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .page-module-1 .order-hero-gallery {
    min-height: 300px;
  }

  .page-module-1 .order-hero-roof {
    left: -24%;
    width: 178.596%;
    bottom: -25%;
  }

  .page-module-1 .order-hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .page-module-1 .order-hero-thesis {
    align-items: flex-start;
  }

  .page-module-1 .order-outline-card {
    grid-template-columns: 1fr;
  }
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero {
  min-height: calc(100vh - var(--nav-height));
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(33, 10, 15, 0.96) 0%, rgba(71, 16, 27, 0.94) 34%, rgba(132, 49, 42, 0.72) 51%, rgba(240, 232, 212, 0.96) 68%, rgba(246, 240, 225, 1) 100%);
  isolation: isolate;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero .hero-bg {
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 212, 118, 0.18) 0%, rgba(255, 212, 118, 0.03) 18%, transparent 38%),
    linear-gradient(90deg, rgba(20, 6, 10, 0.26) 0%, rgba(20, 6, 10, 0.08) 44%, rgba(246, 240, 225, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero .hero-bg::before {
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 46%),
    repeating-linear-gradient(0deg, transparent, transparent 54px, rgba(255, 215, 0, 0.8) 54px, rgba(255, 215, 0, 0.8) 55px),
    repeating-linear-gradient(90deg, transparent, transparent 54px, rgba(255, 215, 0, 0.55) 54px, rgba(255, 215, 0, 0.55) 55px);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(21, 7, 10, 0.1) 0%, rgba(21, 7, 10, 0) 48%, rgba(245, 240, 225, 0.18) 68%, rgba(245, 240, 225, 0.04) 100%);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.82fr);
  gap: clamp(0.5rem, 1.5vw, 1.4rem);
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding-top: clamp(5.8rem, 8vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  padding-left: 0;
  padding-right: clamp(3.5rem, 5vw, 7rem);
  align-items: center;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-shell::before {
  content: none;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-gallery {
  position: relative;
  min-height: clamp(600px, 78vh, 860px);
  padding: 0;
  overflow: visible;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-roof {
  position: absolute;
  left: -18%;
  bottom: -21%;
  width: min(165.528%, 1778px);
  max-width: none;
  z-index: 2;
  filter: drop-shadow(0 38px 56px rgba(14, 4, 6, 0.36));
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content {
  position: relative;
  z-index: 4;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.4rem);
  text-align: left;
  color: var(--color-zitan);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(122, 18, 36, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 0, 0.85), rgba(122, 18, 36, 0.5));
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content h1 {
  margin-bottom: 1rem;
  color: #7A1224;
  white-space: nowrap;
  font-size: clamp(2.3rem, 4.15vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 22px rgba(255, 255, 255, 0.18);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content p {
  max-width: 21rem;
  margin: 0;
  color: rgba(58, 21, 24, 0.88);
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  line-height: 1.95;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-thesis {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  color: #6A5847;
  font-size: 0.94rem;
  font-weight: 700;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-thesis-line {
  display: inline-block;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #A11C2D, #C7A768);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.78);
  border: 1px solid rgba(122, 90, 0, 0.12);
  color: #5A4338;
  font-size: 0.82rem;
  font-weight: 700;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6rem;
  color: #9B0C23;
  font-weight: 700;
  font-size: 0.92rem;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-link::after {
  content: '→';
  margin-left: 0.45rem;
  transition: transform 0.2s ease;
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-link:hover::after {
  transform: translateX(2px);
}

:is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) main {
  display: flex;
  flex-direction: column;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero {
  order: 0;
}

.page-module-1 main {
  display: flex;
  flex-direction: column;
}

.page-module-1 #timeline {
  order: 1;
}

.page-module-1 #section-a {
  order: 2;
}

.page-module-1 #spatial-atlas {
  order: 3;
}

.page-module-1 #zone-switch {
  order: 4;
}

.page-module-1 #competition-overview {
  order: 5;
}

.page-module-2 #section-d {
  order: 1;
}

.page-module-2 #section-b {
  order: 2;
}

.page-module-2 #section-a {
  order: 3;
}

.page-module-2 #section-c {
  order: 4;
}

.page-module-2 #section-c {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(237, 227, 208, 0.82)),
    linear-gradient(135deg, rgba(184, 29, 37, 0.03), transparent 28%, rgba(221, 170, 51, 0.06) 100%);
}

.page-module-2 #section-c .section-intro {
  max-width: 900px;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.page-module-2 #section-c .craft-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.35rem, 2.6vw, 2.2rem);
}

.page-module-2 #section-c .craft-feature {
  --craft-scroll-x: 0px;
  --craft-scroll-opacity: 1;
  position: relative;
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: clamp(340px, 34vw, 440px);
  overflow: hidden;
  border: 1px solid rgba(110, 71, 33, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 235, 220, 0.98)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 50px rgba(70, 42, 22, 0.12);
  isolation: isolate;
  opacity: var(--craft-scroll-opacity);
  transform: translate3d(var(--craft-scroll-x), 0, 0);
  will-change: transform, opacity;
}

.page-module-2 #section-c .craft-feature:nth-child(odd) {
  margin-right: auto;
}

.page-module-2 #section-c .craft-feature:nth-child(even) {
  margin-left: auto;
}

.page-module-2 #section-c .craft-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(221, 170, 51, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(184, 29, 37, 0.08), transparent 34%);
  pointer-events: none;
  opacity: 0.7;
}

.page-module-2 #section-c .craft-feature:hover {
  border-color: rgba(184, 29, 37, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 28px 56px rgba(70, 42, 22, 0.15);
}

.page-module-2 #section-c .craft-feature--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.page-module-2 #section-c .craft-feature-media,
.page-module-2 #section-c .craft-feature-copy {
  position: relative;
  z-index: 1;
}

.page-module-2 #section-c .craft-feature-media {
  min-height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.page-module-2 #section-c .craft-feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 17, 12, 0.02), rgba(24, 17, 12, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 36%);
}

.page-module-2 #section-c .craft-feature--wood .craft-feature-media {
  background-position: center 56%;
}

.page-module-2 #section-c .craft-feature--stone .craft-feature-media {
  background-position: center 58%;
}

.page-module-2 #section-c .craft-feature--tile .craft-feature-media {
  background-position: center 52%;
}

.page-module-2 #section-c .craft-feature--paint .craft-feature-media {
  background-position: center 48%;
}

.page-module-2 #section-c .craft-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.95rem;
  padding: clamp(1.6rem, 3vw, 2.5rem) clamp(1.4rem, 3.4vw, 2.8rem);
}

.page-module-2 #section-c .craft-feature-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  background: rgba(184, 29, 37, 0.08);
  border: 1px solid rgba(184, 29, 37, 0.12);
  color: #8f1623;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-module-2 #section-c .craft-feature-copy h3 {
  color: #3f2320;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.4;
}

.page-module-2 #section-c .craft-feature-copy p {
  color: rgba(67, 42, 23, 0.88);
  font-size: 1rem;
  line-height: 1.95;
}

.page-module-2 #section-c .craft-feature-list {
  display: grid;
  gap: 0.7rem;
}

.page-module-2 #section-c .craft-feature-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(61, 40, 24, 0.9);
  font-size: 0.95rem;
  line-height: 1.82;
}

.page-module-2 #section-c .craft-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b81d25, #d39b3c);
}

@media (max-width: 900px) {
  .page-module-2 #section-c .craft-feature,
  .page-module-2 #section-c .craft-feature--reverse {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-module-2 #section-c .craft-feature-media {
    min-height: 300px;
  }

  .page-module-2 #section-c .craft-feature-copy {
    padding: 1.4rem 1.25rem 1.55rem;
  }
}

@media (max-width: 640px) {
  .page-module-2 #section-c {
    padding-top: clamp(3rem, 9vw, 3.6rem);
    padding-bottom: clamp(3rem, 9vw, 3.6rem);
  }

  .page-module-2 #section-c .section-intro {
    margin-bottom: 1.4rem;
  }

  .page-module-2 #section-c .craft-stack {
    gap: 1rem;
  }

  .page-module-2 #section-c .craft-feature {
    border-radius: 22px;
  }

  .page-module-2 #section-c .craft-feature-media {
    min-height: 220px;
  }

  .page-module-2 #section-c .craft-feature-copy h3 {
    font-size: 1.28rem;
  }

  .page-module-2 #section-c .craft-feature-copy p,
  .page-module-2 #section-c .craft-feature-list li {
    font-size: 0.92rem;
    line-height: 1.72;
  }
}

.page-module-2 #section-e {
  order: 5;
}

.page-module-2 #competition-overview {
  order: 6;
}

.page-module-3 #section-f {
  order: 1;
}

.page-module-3 #section-a {
  order: 2;
}

.page-module-3 #section-b {
  order: 3;
}

.page-module-3 #section-b .container {
  width: min(96vw, 1480px);
  max-width: none;
}

.page-module-3 #section-b .roof-grade-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) 0 0.75rem;
  row-gap: clamp(1.4rem, 2vw, 2rem);
  overflow: visible;
}

.page-module-3 #section-b .roof-grade-board::before {
  content: none;
}

.page-module-3 #section-b .roof-grade-track,
.page-module-3 #section-b .roof-grade-axis {
  position: relative;
  z-index: 1;
}

.page-module-3 #section-b .roof-grade-track {
  display: contents;
}

.page-module-3 #section-b .roof-grade-item {
  width: 300px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition:
    transform 0.95s var(--ease-emphasis),
    opacity 0.75s ease;
  will-change: transform, opacity;
}

.page-module-3 #section-b .roof-grade-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  transform: translate3d(-54px, -40px, 0) scale(0.94);
}

.page-module-3 #section-b .roof-grade-item:nth-child(2) {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  transform: translate3d(-28px, 52px, 0) scale(0.94);
}

.page-module-3 #section-b .roof-grade-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  transform: translate3d(0, -42px, 0) scale(0.94);
}

.page-module-3 #section-b .roof-grade-item:nth-child(4) {
  grid-column: 4;
  grid-row: 3;
  align-self: start;
  transform: translate3d(28px, 52px, 0) scale(0.94);
}

.page-module-3 #section-b .roof-grade-item:nth-child(5) {
  grid-column: 5;
  grid-row: 1;
  align-self: end;
  transform: translate3d(54px, -40px, 0) scale(0.94);
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item:nth-child(1) {
  transition-delay: 80ms;
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item:nth-child(2) {
  transition-delay: 180ms;
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item:nth-child(3) {
  transition-delay: 280ms;
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item:nth-child(4) {
  transition-delay: 380ms;
}

.page-module-3 #section-b .roof-grade-board.in-view .roof-grade-item:nth-child(5) {
  transition-delay: 480ms;
}

.page-module-3 #section-b .roof-grade-media {
  width: 300px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-module-3 #section-b .roof-grade-media img {
  width: 300px;
  height: 270px;
  object-fit: contain;
  display: block;
}

.page-module-3 #section-b .roof-grade-copy {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.22rem;
}

.page-module-3 #section-b .roof-grade-item--top .roof-grade-copy {
  order: -1;
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.page-module-3 #section-b .roof-grade-item--top .roof-grade-media {
  order: 2;
}

.page-module-3 #section-b .roof-grade-copy h3 {
  color: #3f2320;
  font-size: 1rem;
  line-height: 1.35;
}

.page-module-3 #section-b .roof-grade-level {
  color: #9b0c23;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-module-3 #section-b .roof-grade-note {
  color: rgba(78, 55, 34, 0.82);
  font-size: 0.8rem;
  line-height: 1.5;
}

.page-module-3 #section-b .roof-grade-axis {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  margin: 0;
  padding: 0 clamp(1.8rem, 4vw, 3.6rem);
}

.page-module-3 #section-b .roof-grade-axis-line {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.3), #c8102e 62%, #c8102e 82%, rgba(200, 16, 46, 0.15) 100%);
}

.page-module-3 #section-b .roof-grade-axis-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #c8102e;
  border-right: 2px solid #c8102e;
  transform: translateY(-50%) rotate(45deg);
}

.page-module-3 #section-b .roof-grade-axis-label {
  display: block;
  width: max-content;
  margin: 0.7rem auto 0;
  color: #c8102e;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.page-module-3 #section-e {
  order: 4;
}

.page-module-3 #section-c {
  order: 5;
}

.page-module-3 #section-c .ridge-beast-stage {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.page-module-3 #section-c .ridge-beast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: var(--space-md);
  align-items: stretch;
}

.page-module-3 #section-c .ridge-beast-visual,
.page-module-3 #section-c .ridge-beast-summary,
.page-module-3 #section-c .ridge-beast-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(245, 236, 220, 0.96)),
    rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(128, 86, 39, 0.12);
  box-shadow: 0 18px 40px rgba(85, 54, 24, 0.1);
}

.page-module-3 #section-c .ridge-beast-visual,
.page-module-3 #section-c .ridge-beast-summary {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.95s var(--ease-smooth),
    transform 0.95s var(--ease-emphasis),
    box-shadow 0.35s ease;
}

.page-module-3 #section-c .ridge-beast-visual,
.page-module-3 #section-c .ridge-beast-summary {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
}

.page-module-3 #section-c .ridge-beast-visual {
  transform: translate3d(-52px, 18px, 0) scale(0.97);
}

.page-module-3 #section-c .ridge-beast-summary {
  transform: translate3d(52px, 18px, 0) scale(0.97);
}

.page-module-3 #section-c .ridge-beast-visual {
  padding: 1rem 1rem 1.05rem;
}

.page-module-3 #section-c .ridge-beast-visual-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  margin-top: 0.95rem;
}

.page-module-3 #section-c .ridge-beast-visual-main {
  min-height: 248px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: rgba(255, 252, 246, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(128, 86, 39, 0.1);
}

.page-module-3 #section-c .ridge-beast-visual-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0;
  border-top: none;
}

.page-module-3 #section-c .ridge-beast-visual-kicker,
.page-module-3 #section-c .ridge-beast-summary-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(184, 29, 37, 0.08);
  border: 1px solid rgba(184, 29, 37, 0.12);
  color: #8f1623;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-module-3 #section-c .ridge-beast-visual-note p {
  color: rgba(72, 47, 25, 0.88);
  font-size: 0.92rem;
  line-height: 1.82;
}

.page-module-3 #section-c .ridge-beast-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem 1.25rem 1.25rem;
}

.page-module-3 #section-c .ridge-beast-summary h3 {
  color: #3f2320;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  line-height: 1.46;
}

.page-module-3 #section-c .ridge-beast-summary > p {
  color: rgba(72, 47, 25, 0.88);
  font-size: 0.95rem;
  line-height: 1.9;
}

.page-module-3 #section-c .ridge-beast-metrics {
  display: grid;
  gap: 0.8rem;
}

.page-module-3 #section-c .ridge-beast-metric {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 29, 37, 0.08);
}

.page-module-3 #section-c .ridge-beast-metric strong {
  display: block;
  color: #b81d25;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.2;
}

.page-module-3 #section-c .ridge-beast-metric span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(72, 47, 25, 0.84);
  font-size: 0.86rem;
  line-height: 1.65;
}

.page-module-3 #section-c .ridge-beast-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.page-module-3 #section-c .ridge-beast-card {
  min-height: 220px;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 22px;
  opacity: 0;
  transform: translate3d(0, 54px, 0) scale(0.96);
  will-change: transform, opacity;
  transition:
    opacity 0.82s var(--ease-smooth),
    transform 0.82s var(--ease-emphasis),
    box-shadow 0.35s ease;
}

.page-module-3 #section-c .ridge-beast-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 246, 226, 0.95), rgba(248, 232, 208, 0.96)),
    rgba(255, 255, 255, 0.95);
}

.page-module-3 #section-c .ridge-beast-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #b81d25;
  color: #fff8eb;
  font-size: 0.8rem;
  font-weight: 700;
}

.page-module-3 #section-c .ridge-beast-card h4 {
  margin-top: 0.9rem;
  color: #3f2320;
  font-size: 1.1rem;
}

.page-module-3 #section-c .ridge-beast-card p {
  margin-top: 0.7rem;
  color: rgba(72, 47, 25, 0.88);
  font-size: 0.9rem;
  line-height: 1.82;
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-visual,
.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-summary,
.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-summary {
  transition-delay: 120ms;
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-card:nth-child(1) {
  transition-delay: 160ms;
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-card:nth-child(2) {
  transition-delay: 260ms;
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-card:nth-child(3) {
  transition-delay: 360ms;
}

.page-module-3 #section-c .ridge-beast-stage.in-view .ridge-beast-card:nth-child(4) {
  transition-delay: 460ms;
}

.page-module-3 #competition-overview {
  order: 6;
}

.page-module-3 #section-f .pyramid-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
  justify-items: center;
}

.page-module-3 #section-f .pyramid-chart {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.page-module-3 #section-f .pyramid-chart svg {
  max-width: 600px;
}

.page-module-3 #section-f .pyramid-detail {
  width: 100%;
  justify-self: stretch;
  min-height: 440px;
  height: 100%;
}

.page-module-3 #section-f .pyd-placeholder {
  min-height: calc(440px - (var(--space-md) * 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.page-module-3 .data-cards {
  justify-content: center;
}

.page-module-3 .data-card {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

.page-module-3 .roof-evidence-strip {
  justify-content: center;
}

.page-module-3 .roof-evidence-card {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 980px) {
  .page-module-3 #section-b .roof-grade-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    padding-bottom: 1.8rem;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
  }

  .page-module-3 #section-b .roof-grade-axis {
    grid-row: 3;
  }

  .page-module-3 #section-b .roof-grade-media,
  .page-module-3 #section-b .roof-grade-media img {
    width: 240px;
    height: 216px;
  }

  .page-module-3 #section-b .roof-grade-item {
    width: 240px;
  }

  .page-module-3 #section-c .ridge-beast-hero {
    grid-template-columns: 1fr;
  }

  .page-module-3 #section-c .ridge-beast-visual-main {
    min-height: 228px;
  }

  .page-module-3 #section-c .ridge-beast-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-module-3 #section-b .roof-grade-track {
    display: contents;
  }

  .page-module-3 #section-b .roof-grade-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    row-gap: 1.3rem;
  }

  .page-module-3 #section-b .roof-grade-item,
  .page-module-3 #section-b .roof-grade-item:nth-child(1),
  .page-module-3 #section-b .roof-grade-item:nth-child(2),
  .page-module-3 #section-b .roof-grade-item:nth-child(3),
  .page-module-3 #section-b .roof-grade-item:nth-child(4),
  .page-module-3 #section-b .roof-grade-item:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    align-self: start;
  }

  .page-module-3 #section-b .roof-grade-media,
  .page-module-3 #section-b .roof-grade-media img {
    width: 180px;
    height: 162px;
  }

  .page-module-3 #section-b .roof-grade-item {
    width: 180px;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(odd) {
    justify-self: end;
  }

  .page-module-3 #section-b .roof-grade-item:nth-child(even) {
    justify-self: start;
  }

  .page-module-3 #section-b .roof-grade-axis {
    margin-top: 1.2rem;
    padding: 0 0.6rem;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .page-module-3 #section-b .roof-grade-axis-label {
    letter-spacing: 0.08em;
  }

  .page-module-3 #section-c .ridge-beast-visual-main {
    min-height: 210px;
    background-position: center;
    background-size: contain;
  }

  .page-module-3 #section-c .ridge-beast-visual-note {
    flex-direction: column;
  }

  .page-module-3 #section-c .ridge-beast-card-grid {
    grid-template-columns: 1fr;
  }

  .page-module-3 #section-c .ridge-beast-card {
    min-height: auto;
  }
}

.page-module-3 #section-c .module3-reference-card,
.page-module-3 #section-c .defense-spec-item {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.page-module-3 .zone-grid {
  justify-content: center;
}

.page-module-3 .zone-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.page-module-3 #section-e .zone-grid {
  perspective: 1400px;
}

.page-module-3 #section-e .zone-card {
  opacity: 0;
  transform: translate3d(0, 78px, 0) scale(0.95) rotateX(7deg);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.92s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
  will-change: transform, opacity;
}

.page-module-3 #section-e .zone-card:nth-child(1),
.page-module-3 #section-e .zone-card:nth-child(3) {
  transform: translate3d(-62px, 78px, 0) scale(0.95) rotateX(7deg);
}

.page-module-3 #section-e .zone-card:nth-child(2),
.page-module-3 #section-e .zone-card:nth-child(4) {
  transform: translate3d(62px, 78px, 0) scale(0.95) rotateX(7deg);
}

.page-module-3 #section-e .zone-card:nth-child(1) {
  transition-delay: 0.04s;
}

.page-module-3 #section-e .zone-card:nth-child(2) {
  transition-delay: 0.14s;
}

.page-module-3 #section-e .zone-card:nth-child(3) {
  transition-delay: 0.24s;
}

.page-module-3 #section-e .zone-card:nth-child(4) {
  transition-delay: 0.34s;
}

.page-module-3 #section-e .zone-card-header,
.page-module-3 #section-e .zone-desc,
.page-module-3 #section-e .zone-buildings li {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.56s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-3 #section-e .zone-desc {
  transition-delay: 0.08s;
}

.page-module-3 #section-e .zone-buildings li:nth-child(1) {
  transition-delay: 0.14s;
}

.page-module-3 #section-e .zone-buildings li:nth-child(2) {
  transition-delay: 0.2s;
}

.page-module-3 #section-e .zone-buildings li:nth-child(3) {
  transition-delay: 0.26s;
}

.page-module-3 #section-e .zone-grid.is-revealed .zone-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.page-module-3 #section-e .zone-grid.is-revealed .zone-card-header,
.page-module-3 #section-e .zone-grid.is-revealed .zone-desc,
.page-module-3 #section-e .zone-grid.is-revealed .zone-buildings li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .page-module-3 #section-e .zone-card,
  .page-module-3 #section-e .zone-card-header,
  .page-module-3 #section-e .zone-desc,
  .page-module-3 #section-e .zone-buildings li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-module-4 #section-b {
  order: 1;
}

.page-module-4 #section-e .zone-grid {
  perspective: 1400px;
}

.page-module-4 #section-e .zone-card {
  opacity: 0;
  transform: translate3d(0, 84px, 0) scale(0.95) rotateX(7deg);
  transition:
    opacity 0.74s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.94s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
  will-change: transform, opacity;
}

.page-module-4 #section-e .zone-card:nth-child(1),
.page-module-4 #section-e .zone-card:nth-child(3) {
  transform: translate3d(-64px, 84px, 0) scale(0.95) rotateX(7deg);
}

.page-module-4 #section-e .zone-card:nth-child(2),
.page-module-4 #section-e .zone-card:nth-child(4) {
  transform: translate3d(64px, 84px, 0) scale(0.95) rotateX(7deg);
}

.page-module-4 #section-e .zone-card:nth-child(1) {
  transition-delay: 0.05s;
}

.page-module-4 #section-e .zone-card:nth-child(2) {
  transition-delay: 0.16s;
}

.page-module-4 #section-e .zone-card:nth-child(3) {
  transition-delay: 0.27s;
}

.page-module-4 #section-e .zone-card:nth-child(4) {
  transition-delay: 0.38s;
}

.page-module-4 #section-e .zone-card-media {
  transform: scale(1.12);
  transform-origin: center center;
  transition: transform 1.12s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-4 #section-e .zone-card-chip,
.page-module-4 #section-e .zone-card-header,
.page-module-4 #section-e .zone-desc,
.page-module-4 #section-e .zone-buildings li {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.56s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-4 #section-e .zone-card-header {
  transition-delay: 0.06s;
}

.page-module-4 #section-e .zone-desc {
  transition-delay: 0.12s;
}

.page-module-4 #section-e .zone-buildings li:nth-child(1) {
  transition-delay: 0.18s;
}

.page-module-4 #section-e .zone-buildings li:nth-child(2) {
  transition-delay: 0.24s;
}

.page-module-4 #section-e .zone-buildings li:nth-child(3) {
  transition-delay: 0.3s;
}

.page-module-4 #section-e .zone-grid.is-revealed .zone-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.page-module-4 #section-e .zone-grid.is-revealed .zone-card-media {
  transform: scale(1);
}

.page-module-4 #section-e .zone-grid.is-revealed .zone-card-chip,
.page-module-4 #section-e .zone-grid.is-revealed .zone-card-header,
.page-module-4 #section-e .zone-grid.is-revealed .zone-desc,
.page-module-4 #section-e .zone-grid.is-revealed .zone-buildings li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .page-module-4 #section-e .zone-card,
  .page-module-4 #section-e .zone-card-media,
  .page-module-4 #section-e .zone-card-chip,
  .page-module-4 #section-e .zone-card-header,
  .page-module-4 #section-e .zone-desc,
  .page-module-4 #section-e .zone-buildings li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-module-4 #section-f {
  order: 2;
}

.page-module-4 #section-ring {
  order: 1;
}

.page-module-4 #section-a {
  order: 2;
}

.page-module-4 #section-color-system {
  order: 3;
}

.page-module-4 #section-pie {
  order: 4;
}

.page-module-4 #section-heatmap {
  order: 5;
}

.page-module-4 #section-painting-chart {
  order: 6;
}

.page-module-4 #section-e {
  order: 7;
}

.page-module-4 #competition-overview {
  order: 8;
}

.page-module-5 #section-b {
  order: 1;
}

.page-module-5 #section-a {
  order: 2;
}

.page-module-5 #engineering-system {
  order: 3;
}

.page-module-5 #engineering-system .system-overview-shell {
  perspective: 1800px;
}

.page-module-5 #engineering-system .system-network {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.94);
  filter: blur(6px);
  transition:
    opacity 0.76s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.02s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.7s ease;
}

.page-module-5 #engineering-system .system-network::before,
.page-module-5 #engineering-system .system-network::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.68);
  transition:
    opacity 0.66s ease,
    transform 1.12s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-5 #engineering-system .system-core {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.46);
  transition:
    opacity 0.68s ease,
    transform 1s cubic-bezier(0.16, 0.92, 0.24, 1);
}

.page-module-5 #engineering-system .system-pill {
  opacity: 0;
  transition:
    opacity 0.56s ease,
    transform 0.86s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #engineering-system .system-pill--drainage {
  transform: translate(-50%, -50%) scale(0.4);
  transition-delay: 0.18s;
}

.page-module-5 #engineering-system .system-pill--heating {
  transform: translate(-76px, -50%) scale(0.4);
  transition-delay: 0.26s;
}

.page-module-5 #engineering-system .system-pill--fire {
  transform: translate(-92px, -50%) scale(0.4);
  transition-delay: 0.34s;
}

.page-module-5 #engineering-system .system-pill--lightning {
  transform: translate(92px, -50%) scale(0.4);
  transition-delay: 0.42s;
}

.page-module-5 #engineering-system .system-pill--ventilation {
  transform: translate(76px, -50%) scale(0.4);
  transition-delay: 0.5s;
}

.page-module-5 #engineering-system .system-mini-column,
.page-module-5 #engineering-system .system-card,
.page-module-5 #engineering-system .methodology-item {
  opacity: 0;
  transition:
    opacity 0.58s ease,
    transform 0.82s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #engineering-system .system-mini-column:nth-child(1) {
  transform: translate3d(0, -26px, 0) scale(0.96);
  transition-delay: 0.22s;
}

.page-module-5 #engineering-system .system-mini-column:nth-child(2) {
  transform: translate3d(0, 26px, 0) scale(0.96);
  transition-delay: 0.34s;
}

.page-module-5 #engineering-system .system-card:nth-child(1) {
  transform: translate3d(82px, 0, 0) scale(0.97);
  transition-delay: 0.38s;
}

.page-module-5 #engineering-system .system-card:nth-child(2) {
  transform: translate3d(98px, 0, 0) scale(0.97);
  transition-delay: 0.5s;
}

.page-module-5 #engineering-system .system-card:nth-child(3) {
  transform: translate3d(114px, 0, 0) scale(0.97);
  transition-delay: 0.62s;
}

.page-module-5 #engineering-system .methodology-item:nth-child(1) {
  transform: translate3d(0, 60px, 0) scale(0.95);
  transition-delay: 0.42s;
}

.page-module-5 #engineering-system .methodology-item:nth-child(2) {
  transform: translate3d(0, 72px, 0) scale(0.95);
  transition-delay: 0.54s;
}

.page-module-5 #engineering-system .methodology-item:nth-child(3) {
  transform: translate3d(0, 84px, 0) scale(0.95);
  transition-delay: 0.66s;
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-network {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-network::before,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-network::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill {
  opacity: 1;
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill--drainage {
  transform: translate(-50%, -50%) scale(1);
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill--heating,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill--fire,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill--lightning,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-pill--ventilation {
  transform: translateY(-50%) scale(1);
}

.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-mini-column,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .system-card,
.page-module-5 #engineering-system .system-overview-shell.is-system-overview-revealed .methodology-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .page-module-5 #engineering-system .system-network,
  .page-module-5 #engineering-system .system-network::before,
  .page-module-5 #engineering-system .system-network::after,
  .page-module-5 #engineering-system .system-core,
  .page-module-5 #engineering-system .system-pill,
  .page-module-5 #engineering-system .system-mini-column,
  .page-module-5 #engineering-system .system-card,
  .page-module-5 #engineering-system .methodology-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.page-module-5 #section-c {
  order: 4;
}

.page-module-5 #section-c .defense-grid {
  perspective: 1600px;
  align-items: center;
}

.page-module-5 #section-c .defense-specs {
  justify-content: center;
  height: 100%;
}

.page-module-5 #section-c .defense-svg-col {
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(0.94);
  filter: saturate(0.84) blur(5px);
  transition:
    opacity 0.76s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.98s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.72s ease;
}

.page-module-5 #section-c .engineering-diagram {
  transform: scale(0.96);
  transform-origin: center center;
  box-shadow:
    0 0 0 rgba(217, 91, 31, 0),
    0 12px 28px rgba(58, 21, 24, 0.08);
  transition:
    transform 1.02s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.96s ease;
}

.page-module-5 #section-c .engineering-diagram::after {
  content: '';
  position: absolute;
  inset: 14% 12%;
  background: radial-gradient(circle at 28% 70%, rgba(255, 143, 0, 0.26), transparent 36%);
  opacity: 0;
  transform: scale(0.72);
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.72s ease,
    transform 1.08s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-5 #section-c .engineering-caption,
.page-module-5 #section-c .engineering-step {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.56s ease,
    transform 0.74s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-5 #section-c .engineering-caption {
  transition-delay: 0.22s;
}

.page-module-5 #section-c .engineering-step:nth-child(1) { transition-delay: 0.3s; }
.page-module-5 #section-c .engineering-step:nth-child(2) { transition-delay: 0.38s; }
.page-module-5 #section-c .engineering-step:nth-child(3) { transition-delay: 0.46s; }
.page-module-5 #section-c .engineering-step:nth-child(4) { transition-delay: 0.54s; }

.page-module-5 #section-c .defense-spec-item {
  opacity: 0;
  transform: translate3d(0, 86px, 0) scale(0.95);
  filter: saturate(0.88);
  transition:
    opacity 0.62s ease,
    transform 0.84s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.48s ease,
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #section-c .defense-spec-item:nth-child(1) { transition-delay: 0.28s; }
.page-module-5 #section-c .defense-spec-item:nth-child(2) { transition-delay: 0.4s; }
.page-module-5 #section-c .defense-spec-item:nth-child(3) { transition-delay: 0.52s; }
.page-module-5 #section-c .defense-spec-item:nth-child(4) { transition-delay: 0.64s; }

.page-module-5 #section-c .defense-grid.is-heating-revealed .defense-svg-col {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

.page-module-5 #section-c .defense-grid.is-heating-revealed .engineering-diagram {
  transform: scale(1);
  box-shadow:
    0 0 36px rgba(217, 91, 31, 0.14),
    0 16px 34px rgba(58, 21, 24, 0.1);
}

.page-module-5 #section-c .defense-grid.is-heating-revealed .engineering-diagram::after {
  opacity: 1;
  transform: scale(1);
}

.page-module-5 #section-c .defense-grid.is-heating-revealed .engineering-caption,
.page-module-5 #section-c .defense-grid.is-heating-revealed .engineering-step,
.page-module-5 #section-c .defense-grid.is-heating-revealed .defense-spec-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-module-5 #section-c .defense-svg-col,
  .page-module-5 #section-c .engineering-diagram,
  .page-module-5 #section-c .engineering-diagram::after,
  .page-module-5 #section-c .engineering-caption,
  .page-module-5 #section-c .engineering-step,
  .page-module-5 #section-c .defense-spec-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.page-module-5 #section-d {
  order: 5;
}

.page-module-5 #section-d .defense-grid {
  perspective: 1600px;
}

.page-module-5 #section-d .defense-svg-col {
  opacity: 0;
  transform: translate3d(-34px, 48px, 0) scale(0.97);
  filter: blur(5px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.94s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.6s ease;
}

.page-module-5 #section-d .fire-atlas-head,
.page-module-5 #section-d .fire-atlas-note {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.54s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-5 #section-d .fire-atlas-head {
  transition-delay: 0.16s;
}

.page-module-5 #section-d .fire-atlas-note {
  transition-delay: 0.56s;
}

.page-module-5 #section-d .fire-atlas-card {
  opacity: 0;
  transform-origin: center center;
  transition:
    opacity 0.66s ease,
    transform 0.9s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #section-d .fire-atlas-card--wall {
  transform: translate3d(-78px, 24px, 0) rotate(-7deg) scale(0.94);
  transition-delay: 0.18s;
}

.page-module-5 #section-d .fire-atlas-card--cistern {
  transform: translate3d(0, 46px, 0) scale(0.92);
  transition-delay: 0.28s;
}

.page-module-5 #section-d .fire-atlas-card--roof {
  transform: translate3d(78px, 24px, 0) rotate(7deg) scale(0.94);
  transition-delay: 0.38s;
}

.page-module-5 #section-d .fire-atlas-image {
  transform: scale(1.1);
  transition: transform 1s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-module-5 #section-d .defense-spec-item {
  opacity: 0;
  transform: translate3d(0, 88px, 0) scale(0.94);
  transition:
    opacity 0.62s ease,
    transform 0.82s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #section-d .defense-spec-item:nth-child(1) { transition-delay: 0.3s; }
.page-module-5 #section-d .defense-spec-item:nth-child(2) { transition-delay: 0.44s; }
.page-module-5 #section-d .defense-spec-item:nth-child(3) { transition-delay: 0.58s; }

.page-module-5 #section-d .defense-grid.is-fire-revealed .defense-svg-col {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

.page-module-5 #section-d .defense-grid.is-fire-revealed .fire-atlas-head,
.page-module-5 #section-d .defense-grid.is-fire-revealed .fire-atlas-note,
.page-module-5 #section-d .defense-grid.is-fire-revealed .fire-atlas-card,
.page-module-5 #section-d .defense-grid.is-fire-revealed .defense-spec-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.page-module-5 #section-d .defense-grid.is-fire-revealed .fire-atlas-image {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .page-module-5 #section-d .defense-svg-col,
  .page-module-5 #section-d .fire-atlas-head,
  .page-module-5 #section-d .fire-atlas-note,
  .page-module-5 #section-d .fire-atlas-card,
  .page-module-5 #section-d .fire-atlas-image,
  .page-module-5 #section-d .defense-spec-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.page-module-5 #section-e {
  order: 6;
}

.page-module-5 #section-e .defense-grid {
  perspective: 1700px;
}

.page-module-5 #section-e .defense-svg-col {
  opacity: 0;
  transform: translate3d(0, -54px, 0) scale(0.9) rotateX(12deg);
  filter: blur(8px) saturate(0.82);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.18, 0.9, 0.24, 1),
    filter 0.72s ease;
}

.page-module-5 #section-e .engineering-diagram {
  transform: scale(0.94);
  transform-origin: center center;
  overflow: hidden;
  transition:
    transform 1s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.9s ease;
}

.page-module-5 #section-e .engineering-diagram::after {
  content: '';
  position: absolute;
  inset: -8% 24% -8% -24%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 243, 176, 0.12) 45%, rgba(255,255,255,0.55) 50%, rgba(255, 243, 176, 0.12) 55%, transparent 100%);
  transform: translate3d(-120%, 0, 0) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.page-module-5 #section-e .engineering-caption,
.page-module-5 #section-e .engineering-step {
  opacity: 0;
  transform: translate3d(-18px, 18px, 0);
  transition:
    opacity 0.56s ease,
    transform 0.74s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-module-5 #section-e .engineering-caption {
  transition-delay: 0.18s;
}

.page-module-5 #section-e .engineering-step:nth-child(1) { transition-delay: 0.26s; }
.page-module-5 #section-e .engineering-step:nth-child(2) { transition-delay: 0.34s; }
.page-module-5 #section-e .engineering-step:nth-child(3) { transition-delay: 0.42s; }
.page-module-5 #section-e .engineering-step:nth-child(4) { transition-delay: 0.5s; }

.page-module-5 #section-e .defense-spec-item {
  opacity: 0;
  transition:
    opacity 0.62s ease,
    transform 0.82s cubic-bezier(0.18, 0.9, 0.24, 1),
    box-shadow 0.36s ease,
    border-color 0.32s ease;
}

.page-module-5 #section-e .defense-spec-item:nth-child(1),
.page-module-5 #section-e .defense-spec-item:nth-child(3) {
  transform: translate3d(-74px, 0, 0) scale(0.95);
}

.page-module-5 #section-e .defense-spec-item:nth-child(2),
.page-module-5 #section-e .defense-spec-item:nth-child(4) {
  transform: translate3d(74px, 0, 0) scale(0.95);
}

.page-module-5 #section-e .defense-spec-item:nth-child(1) { transition-delay: 0.28s; }
.page-module-5 #section-e .defense-spec-item:nth-child(2) { transition-delay: 0.4s; }
.page-module-5 #section-e .defense-spec-item:nth-child(3) { transition-delay: 0.52s; }
.page-module-5 #section-e .defense-spec-item:nth-child(4) { transition-delay: 0.64s; }

.page-module-5 #section-e .defense-grid.is-environment-revealed .defense-svg-col {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: none;
}

.page-module-5 #section-e .defense-grid.is-environment-revealed .engineering-diagram {
  transform: scale(1);
  box-shadow:
    0 0 34px rgba(255, 215, 0, 0.12),
    0 16px 34px rgba(58, 21, 24, 0.1);
}

.page-module-5 #section-e .defense-grid.is-environment-revealed .engineering-diagram::after {
  opacity: 1;
  animation: environmentScanSweep 1.35s cubic-bezier(0.18, 0.9, 0.24, 1) 0.18s both;
}

.page-module-5 #section-e .defense-grid.is-environment-revealed .engineering-caption,
.page-module-5 #section-e .defense-grid.is-environment-revealed .engineering-step,
.page-module-5 #section-e .defense-grid.is-environment-revealed .defense-spec-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes environmentScanSweep {
  0% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0) skewX(-18deg);
  }
  16% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(120%, 0, 0) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-module-5 #section-e .defense-svg-col,
  .page-module-5 #section-e .engineering-diagram,
  .page-module-5 #section-e .engineering-diagram::after,
  .page-module-5 #section-e .engineering-caption,
  .page-module-5 #section-e .engineering-step,
  .page-module-5 #section-e .defense-spec-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}

.page-module-5 #competition-overview {
  order: 7;
}

.page-module-2 #section-b .defense-grid.animate-on-scroll,
.page-module-3 #section-f .pyramid-wrap.animate-on-scroll,
.page-module-5 #section-b .defense-grid.animate-on-scroll {
  --reveal-x: -54px;
}

.page-module-2 #section-d .defense-grid.animate-on-scroll,
.page-module-3 #section-b .structure-diagram.animate-on-scroll,
.page-module-5 #section-c .defense-grid.animate-on-scroll {
  --reveal-x: 56px;
}

.page-module-2 #section-e .defense-grid.animate-on-scroll,
.page-module-3 #section-c .defense-grid.animate-on-scroll,
.page-module-5 #section-e .defense-grid.animate-on-scroll {
  --reveal-x: -42px;
}

.page-module-3 #section-b .roof-evidence-strip.animate-on-scroll,
.page-module-4 #section-f .color-ring-wrap.animate-on-scroll,
.page-module-5 #engineering-system .system-card-grid.animate-on-scroll {
  --reveal-x: 42px;
}

.page-module-5 #engineering-system .system-overview-shell.animate-on-scroll,
.page-module-5 #engineering-system .system-board.animate-on-scroll,
.page-module-5 #engineering-system .methodology-strip.animate-on-scroll {
  --reveal-x: 0px;
  --reveal-y: 24px;
}

.page-module-5 #engineering-system .system-network {
  min-height: 560px;
}

@media (max-width: 1024px) {
  .page-module-5 #engineering-system .system-network {
    min-height: auto;
  }
}

.page-module-3 #section-e .zone-card.animate-on-scroll:nth-child(odd),
.page-module-5 #section-d .zone-card.animate-on-scroll:nth-child(odd) {
  --reveal-x: -28px;
}

.page-module-3 #section-e .zone-card.animate-on-scroll:nth-child(even),
.page-module-5 #section-d .zone-card.animate-on-scroll:nth-child(even) {
  --reveal-x: 28px;
}

.page-module-4 .color-spectrum-section {
  padding: clamp(2.8rem, 4.4vw, 4rem) 0 calc(clamp(2.8rem, 4.4vw, 4rem) + 100px);
}

.page-module-4 .color-spectrum-section .container {
  display: grid;
  gap: clamp(3.8rem, 5.6vw, 5.4rem);
}

.page-module-4 .color-spectrum-subsection {
  position: relative;
  z-index: 1;
}

.page-module-4 .color-spectrum-subsection--swatches,
.page-module-4 .color-spectrum-subsection--ring {
  display: grid;
  gap: clamp(1.55rem, 2.8vw, 2.2rem);
}

.page-module-4 .color-spectrum-subsection + .color-spectrum-subsection {
  margin-top: 0;
  padding-top: clamp(2.4rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(184, 29, 37, 0.14);
}

.page-module-4 #section-b .section-title,
.page-module-4 #section-f .section-title {
  margin-bottom: 1.75rem;
}

.page-module-4 #section-b .section-subtitle,
.page-module-4 #section-f .section-subtitle {
  margin-top: -1rem;
  margin-bottom: 0;
}

.page-module-4 #section-b .color-swatch-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.3vw, 1.1rem);
  align-items: stretch;
}

.page-module-4 #section-b .color-swatch {
  min-height: 216px;
}

.page-module-4 #section-f .color-ring-wrap {
  margin-top: 0;
  width: min(100%, 1380px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 1fr);
  gap: clamp(1.15rem, 2vw, 1.8rem);
  align-items: stretch;
}

.page-module-4 #section-f .color-ring-chart {
  display: flex;
  min-height: clamp(500px, 42vw, 580px);
  align-items: stretch;
  justify-content: center;
  padding: clamp(1.2rem, 2.1vw, 1.8rem);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(58,21,24,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.page-module-4 #section-f .color-ring-chart svg {
  width: min(100%, 540px);
  max-width: 540px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.page-module-4 #section-f .color-ring-detail {
  min-height: clamp(500px, 42vw, 580px);
  height: 100%;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(58,21,24,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.page-module-4 #section-f .crd-placeholder {
  padding: 1.6rem 0;
}

.page-module-4 #section-f .crd-placeholder span {
  font-size: 1.65rem;
}

.page-module-4 #section-f .crd-placeholder p {
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .page-module-4 #section-b .color-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-module-4 .color-spectrum-section .container {
    gap: 2.9rem;
  }

  .page-module-4 .color-spectrum-subsection + .color-spectrum-subsection {
    padding-top: 2rem;
  }

  .page-module-4 #section-b .color-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-module-4 #section-f .color-ring-wrap {
    grid-template-columns: 1fr;
  }

  .page-module-4 #section-f .color-ring-chart,
  .page-module-4 #section-f .color-ring-detail {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-module-4 #section-b .color-swatch-grid {
    grid-template-columns: 1fr;
  }

  .page-module-4 #section-b .color-swatch {
    min-height: auto;
  }
}

.page-module .xiang-summary-shell {
  position: relative;
  z-index: 1;
  padding: 0;
}

.page-module .xiang-summary-shell::before {
  content: none;
}

.page-module .xiang-summary-head,
.page-module .xiang-summary-grid {
  position: relative;
  z-index: 1;
}

.page-module .xiang-summary-head {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.page-module .xiang-summary-title {
  position: relative;
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #3a1518;
  letter-spacing: 0.04em;
}

.page-module .xiang-summary-title::before {
  content: "❖";
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--color-red);
}

.page-module .xiang-summary-lead {
  position: relative;
  margin-top: 0.85rem;
  padding-bottom: 2rem;
  color: rgba(73, 47, 22, 0.88);
  font-size: 1rem;
  line-height: 1.8;
}

.page-module .xiang-summary-lead::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
}

.page-module .xiang-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr) minmax(260px, 0.88fr);
  gap: 1.15rem;
  align-items: stretch;
}

.page-module .xiang-summary-core,
.page-module .xiang-summary-side,
.page-module .xiang-track-card {
  border: 1px solid rgba(122, 18, 36, 0.12);
  box-shadow: var(--shadow-sm);
}

.page-module .xiang-summary-core {
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(56, 18, 25, 0.98), rgba(120, 24, 44, 0.96)),
    var(--color-zitan);
  color: rgba(255, 248, 239, 0.94);
}

.page-module .xiang-summary-core-label {
  color: rgba(255, 227, 154, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-module .xiang-summary-core h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.42;
  color: #fff8ef;
  text-align: left;
}

.page-module .xiang-summary-core > p:last-of-type {
  margin-top: 0.95rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 244, 230, 0.9);
}

.page-module .xiang-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.page-module .xiang-summary-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 227, 154, 0.22);
  color: #fff3d0;
  font-size: 0.82rem;
  font-weight: 700;
}

.page-module .xiang-summary-track {
  display: grid;
  gap: 0.9rem;
}

.page-module .xiang-track-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.page-module .xiang-track-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #d7af56, #b9822f);
  color: #fff9ef;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-module .xiang-track-card h4 {
  margin-top: 0.75rem;
  font-size: 1.08rem;
  color: #7a1224;
}

.page-module .xiang-track-card p {
  margin-top: 0.45rem;
  color: rgba(73, 47, 22, 0.82);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-module .xiang-summary-side {
  display: grid;
  gap: 0.9rem;
}

.page-module .xiang-side-panel,
.page-module .xiang-side-band {
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.page-module .xiang-side-label,
.page-module .xiang-side-band-title {
  color: #7a1224;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-module .xiang-side-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.page-module .xiang-side-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(73, 47, 22, 0.84);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-module .xiang-side-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #d8b067, #b81d25);
}

.page-module .xiang-side-band {
  background: linear-gradient(135deg, rgba(248, 229, 191, 0.92), rgba(255, 252, 245, 0.9));
  border: 1px solid rgba(191, 129, 47, 0.18);
}

.page-module .xiang-side-band p {
  margin-top: 0.7rem;
  color: rgba(58, 21, 24, 0.86);
  font-size: 0.92rem;
  line-height: 1.76;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell {
  overflow: visible;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-head,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-core,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-panel,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-band {
  opacity: 0;
  will-change: transform, opacity;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-head {
  transform: translate3d(0, 54px, 0) scale(0.97);
  transition:
    opacity 0.82s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.92s cubic-bezier(0.18, 0.9, 0.24, 1);
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-core {
  transform: translate3d(-96px, 26px, 0) scale(0.95);
  transition:
    opacity 0.88s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s,
    transform 0.98s cubic-bezier(0.18, 0.9, 0.24, 1) 0.08s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card {
  transform: translate3d(0, 68px, 0) scale(0.95);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.82s cubic-bezier(0.18, 0.9, 0.24, 1);
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card:nth-child(1) {
  transition-delay: 0.18s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card:nth-child(2) {
  transition-delay: 0.28s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card:nth-child(3) {
  transition-delay: 0.38s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-panel,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-band {
  transform: translate3d(92px, 24px, 0) scale(0.95);
  transition:
    opacity 0.84s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.94s cubic-bezier(0.18, 0.9, 0.24, 1);
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-panel {
  transition-delay: 0.24s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-band {
  transition-delay: 0.34s;
}

:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell.is-revealed .xiang-summary-head,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell.is-revealed .xiang-summary-core,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell.is-revealed .xiang-track-card,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell.is-revealed .xiang-side-panel,
:is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-shell.is-revealed .xiang-side-band {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.page-home #competition-overview {
  overflow: visible;
}

.page-home #competition-overview .section-intro,
.page-home #competition-overview .thesis-board {
  overflow: visible;
}

.page-home #competition-overview .section-title,
.page-home #competition-overview .section-subtitle,
.page-home #competition-overview .thesis-summary,
.page-home #competition-overview .thesis-metric,
.page-home #competition-overview .evidence-card {
  opacity: 0;
  will-change: transform, opacity;
}

.page-home #competition-overview .section-title {
  transform: translate3d(0, 54px, 0) scale(0.97);
  transition:
    opacity 0.82s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.92s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-home #competition-overview .section-subtitle {
  transform: translate3d(0, 42px, 0) scale(0.98);
  transition:
    opacity 0.84s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s,
    transform 0.94s cubic-bezier(0.18, 0.9, 0.24, 1) 0.08s;
}

.page-home #competition-overview .thesis-summary {
  transform: translate3d(-96px, 26px, 0) scale(0.95);
  transition:
    opacity 0.88s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s,
    transform 0.98s cubic-bezier(0.18, 0.9, 0.24, 1) 0.12s;
}

.page-home #competition-overview .thesis-metric {
  transform: translate3d(0, 56px, 0) scale(0.94);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.82s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-home #competition-overview .thesis-metric:nth-child(1) {
  transition-delay: 0.24s;
}

.page-home #competition-overview .thesis-metric:nth-child(2) {
  transition-delay: 0.3s;
}

.page-home #competition-overview .thesis-metric:nth-child(3) {
  transition-delay: 0.36s;
}

.page-home #competition-overview .thesis-metric:nth-child(4) {
  transition-delay: 0.42s;
}

.page-home #competition-overview .evidence-card {
  transform: translate3d(92px, 24px, 0) scale(0.95);
  transition:
    opacity 0.84s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.94s cubic-bezier(0.18, 0.9, 0.24, 1);
}

.page-home #competition-overview .evidence-card:nth-child(1) {
  transition-delay: 0.22s;
}

.page-home #competition-overview .evidence-card:nth-child(2) {
  transition-delay: 0.3s;
}

.page-home #competition-overview .evidence-card:nth-child(3) {
  transition-delay: 0.38s;
}

.page-home #competition-overview .evidence-card:nth-child(4) {
  transition-delay: 0.46s;
}

.page-home #competition-overview.is-home-thesis-revealed .section-title,
.page-home #competition-overview.is-home-thesis-revealed .section-subtitle,
.page-home #competition-overview.is-home-thesis-revealed .thesis-summary,
.page-home #competition-overview.is-home-thesis-revealed .thesis-metric,
.page-home #competition-overview.is-home-thesis-revealed .evidence-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  :is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-head,
  :is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-summary-core,
  :is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-track-card,
  :is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-panel,
  :is(.page-module-1, .page-module-2, .page-module-3, .page-module-4, .page-module-5) #competition-overview .xiang-side-band {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home #competition-overview .section-title,
  .page-home #competition-overview .section-subtitle,
  .page-home #competition-overview .thesis-summary,
  .page-home #competition-overview .thesis-metric,
  .page-home #competition-overview .evidence-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .page-module .xiang-summary-grid {
    grid-template-columns: 1fr;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-shell {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-gallery {
    min-height: 620px;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content p {
    max-width: 34rem;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-roof {
    left: -8%;
    width: min(126.72%, 1282px);
    bottom: -14%;
  }
}

@media (max-width: 768px) {
  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(33, 10, 15, 0.96) 0%, rgba(71, 16, 27, 0.9) 46%, rgba(240, 232, 212, 0.96) 72%, rgba(246, 240, 225, 1) 100%);
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-shell {
    padding-top: 4.9rem;
    padding-bottom: 3.4rem;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-gallery {
    min-height: auto;
    min-height: 380px;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-roof {
    left: -12%;
    width: 132.48%;
    bottom: -16%;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content h1 {
    white-space: normal;
    font-size: clamp(2.15rem, 9vw, 3.25rem);
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content p {
    max-width: none;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-gallery {
    min-height: 300px;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-roof {
    left: -18%;
    width: 147.6%;
    bottom: -20%;
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  :is(.page-module-2, .page-module-3, .page-module-4, .page-module-5) .order-hero-thesis {
    align-items: flex-start;
  }
}



/* ==========================================================================
   LIGHT ARCHIVAL THEME OVERRIDES (国赛级视觉重构 - 亮色文献版)
   严格遵守约束:保留导航纹理、大门开场文字与色彩、保持模块页首版及 Dashboard 不变
   ========================================================================== */

/* 重塑全局基础质感 (保护 Dashboard 模块) */
body:not(.dashboard-body) {
  /* 高级古典配色微调 */
  --color-red: #B81D25;
  --color-red-dark: #8A151B;
  --color-gold: #DDAA33;
  --color-gold-dim: #C49000;
  --color-gold-deep: #8A6800;
  --color-ink: #2C2E33;
  --color-cream: #F8F5EE;
  --color-zitan: #361A1D;

  /* 强制全局锐化,去除商业级圆角 */
  --radius: 0px;

  /* 注入多层次古典纹理：宣纸质感 + 斗拱网格 + 细密纹理 */
  background-image:
    /* 主网格 - 模拟斗拱结构的正交网格 */
    linear-gradient(rgba(184, 29, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 29, 37, 0.035) 1px, transparent 1px),
    /* 次网格 - 更细密的辅助网格 */
    linear-gradient(rgba(184, 29, 37, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 29, 37, 0.015) 1px, transparent 1px),
    /* 金色点缀 - 模拟金箔装饰 */
    radial-gradient(circle at 20% 30%, rgba(221, 170, 51, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(221, 170, 51, 0.02) 0%, transparent 50%),
    /* 宣纸噪点纹理 */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
    /* 细密纹理 - 模拟丝绸质感 */
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(184, 29, 37, 0.008) 2px, rgba(184, 29, 37, 0.008) 4px) !important;
  background-size:
    40px 40px,
    40px 40px,
    8px 8px,
    8px 8px,
    800px 800px,
    800px 800px,
    100px 100px,
    6px 6px !important;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0 !important;
}

/* 1. 学术级标题重构 (排版规范) */
body:not(.dashboard-body) .section-title {
  font-size: 2.2rem !important;
  letter-spacing: 0.15em !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
body:not(.dashboard-body) .section-title::before {
  content: "❖";
  font-size: 1.2rem;
  color: var(--color-red);
  display: block;
}
body:not(.dashboard-body) .section-title::after { display: none !important; }

body:not(.dashboard-body) .section-subtitle {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  max-width: 680px;
  margin: 0 auto 3.5rem !important;
  line-height: 1.8;
  border-bottom: 1px solid rgba(184, 29, 37, 0.15);
  padding-bottom: 1.5rem;
  position: relative;
}
body:not(.dashboard-body) .section-subtitle::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--color-gold);
}

/* 2. 档案级卡片解构 (去SaaS化) */
body:not(.dashboard-body) .module-card,
body:not(.dashboard-body) .data-card,
body:not(.dashboard-body) .zone-card,
body:not(.dashboard-body) .defense-spec-item,
body:not(.dashboard-body) .info-card {
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
  border: 1px solid rgba(184, 29, 37, 0.15) !important;
  border-radius: 0 !important;
  position: relative;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
  backdrop-filter: blur(8px);
}

/* 传统古建十字卯榫角标 */
body:not(.dashboard-body) .module-card::before,
body:not(.dashboard-body) .data-card::before,
body:not(.dashboard-body) .zone-card::before,
body:not(.dashboard-body) .info-card::before,
body:not(.dashboard-body) .defense-spec-item::before {
  content: ""; position: absolute; top: -3px; left: -3px; width: 14px; height: 14px;
  border-top: 2px solid var(--color-red); border-left: 2px solid var(--color-red);
  transition: width 0.4s, height 0.4s; pointer-events: none;
}
body:not(.dashboard-body) .module-card::after,
body:not(.dashboard-body) .data-card::after,
body:not(.dashboard-body) .zone-card::after,
body:not(.dashboard-body) .info-card::after,
body:not(.dashboard-body) .defense-spec-item::after {
  content: ""; position: absolute; bottom: -3px; right: -3px; width: 14px; height: 14px;
  border-bottom: 2px solid var(--color-red); border-right: 2px solid var(--color-red);
  transition: width 0.4s, height 0.4s; pointer-events: none;
}

/* 悬停时的文献抽拉质感 */
body:not(.dashboard-body) .module-card:hover,
body:not(.dashboard-body) .data-card:hover,
body:not(.dashboard-body) .zone-card:hover,
body:not(.dashboard-body) .info-card:hover,
body:not(.dashboard-body) .defense-spec-item:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--color-gold) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(184, 29, 37, 0.06) !important;
}
body:not(.dashboard-body) .module-card:hover::before,
body:not(.dashboard-body) .data-card:hover::before,
body:not(.dashboard-body) .zone-card:hover::before,
body:not(.dashboard-body) .info-card:hover::before,
body:not(.dashboard-body) .defense-spec-item:hover::before,
body:not(.dashboard-body) .module-card:hover::after,
body:not(.dashboard-body) .data-card:hover::after,
body:not(.dashboard-body) .zone-card:hover::after,
body:not(.dashboard-body) .info-card:hover::after,
body:not(.dashboard-body) .defense-spec-item:hover::after {
  width: 100%; height: 100%; border-color: rgba(221, 170, 51, 0.5);
}

/* 数据标尺级数字 */
body:not(.dashboard-body) .data-card-value {
  font-weight: 400 !important;
  text-shadow: 2px 2px 0px rgba(221, 170, 51, 0.3);
}
body:not(.dashboard-body) .data-card-label {
  letter-spacing: 0.15em;
  border-top: 1px dashed rgba(184, 29, 37, 0.2);
  padding-top: 10px; margin-top: 10px;
}

/* 3. 附属组件深度解构 */
body:not(.dashboard-body) .compare-table {
  border-radius: 0 !important;
  border: 1px solid rgba(184, 29, 37, 0.2) !important;
  box-shadow: none !important;
}
body:not(.dashboard-body) .compare-table thead th {
  background: rgba(184, 29, 37, 0.05) !important;
  color: var(--color-red) !important;
  border-bottom: 2px solid var(--color-red) !important;
  letter-spacing: 0.1em;
}
body:not(.dashboard-body) .compare-table tbody td {
  border-bottom: 1px dashed rgba(184, 29, 37, 0.15) !important;
}

body:not(.dashboard-body) .color-swatch {
  border-radius: 0 !important;
  border: 1px solid rgba(184, 29, 37, 0.15) !important;
  box-shadow: none !important;
}

body:not(.dashboard-body) .quote-block {
  border-radius: 0 !important;
  background: rgba(184, 29, 37, 0.03) !important;
  border: 1px solid rgba(184, 29, 37, 0.15) !important;
  color: var(--color-red) !important;
  box-shadow: none !important;
}

body:not(.dashboard-body) .floorplan-tooltip {
  border-radius: 0 !important;
  border: 1px solid var(--color-red) !important;
  background: rgba(255,255,255,0.95) !important;
  color: var(--color-ink) !important;
  box-shadow: 0 8px 24px rgba(184, 29, 37, 0.1) !important;
}
body:not(.dashboard-body) .floorplan-tooltip::after {
  border-top-color: var(--color-red) !important;
}

body:not(.dashboard-body) .engineering-diagram {
  border-radius: 0 !important;
  border: 1px solid rgba(184, 29, 37, 0.2) !important;
  background: rgba(255,255,255,0.6) !important;
  box-shadow: none !important;
}
body:not(.dashboard-body) .engineering-caption,
body:not(.dashboard-body) .engineering-step {
  border-radius: 0 !important;
  border: 1px solid rgba(184, 29, 37, 0.15) !important;
}
body:not(.dashboard-body) .engineering-step[data-phase-name="phase-overview"] {
  border-radius: 0 !important;
}

/* 3.5. 区域性纹理增强 */
/* 为重要内容区域添加更精致的纹理层 */
body:not(.dashboard-body) .section {
  position: relative;
}

body:not(.dashboard-body) .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image:
    /* 云纹装饰 */
    radial-gradient(ellipse at 10% 20%, rgba(221, 170, 51, 0.015) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(221, 170, 51, 0.015) 0%, transparent 40%),
    /* 细密横纹 - 模拟木纹 */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(184, 29, 37, 0.01) 3px, rgba(184, 29, 37, 0.01) 4px);
  background-size: 600px 600px, 600px 600px, 100% 4px;
  opacity: 0.6;
  z-index: 0;
}

/* 卡片内部纹理 */
body:not(.dashboard-body) .module-card,
body:not(.dashboard-body) .data-card,
body:not(.dashboard-body) .zone-card,
body:not(.dashboard-body) .info-card {
  background-image:
    /* 细密点阵 */
    radial-gradient(circle at 50% 50%, rgba(184, 29, 37, 0.02) 1px, transparent 1px),
    /* 宣纸质感 */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperTexture'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperTexture)' opacity='0.03'/%3E%3C/svg%3E") !important;
  background-size: 10px 10px, 80px 80px !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
}

/* 悬停时纹理变化 */
body:not(.dashboard-body) .module-card:hover,
body:not(.dashboard-body) .data-card:hover,
body:not(.dashboard-body) .zone-card:hover,
body:not(.dashboard-body) .info-card:hover {
  background-image:
    /* 金色光晕 */
    radial-gradient(circle at 50% 50%, rgba(221, 170, 51, 0.08) 0%, transparent 70%),
    /* 细密点阵 */
    radial-gradient(circle at 50% 50%, rgba(184, 29, 37, 0.02) 1px, transparent 1px),
    /* 宣纸质感 */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperTexture'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperTexture)' opacity='0.03'/%3E%3C/svg%3E") !important;
  background-size: 100% 100%, 10px 10px, 80px 80px !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* 4. 导航菜单的高级金线呼吸交互 (保护原纹理背景,仅优化文字悬停) */
body:not(.dashboard-body) .nav-links a {
  position: relative;
}
body:not(.dashboard-body) .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateX(-50%);
}
body:not(.dashboard-body) .nav-links a:hover::after {
  width: 100%;
}
body:not(.dashboard-body) .nav-links a:hover,
body:not(.dashboard-body) .nav-links a.active {
  background: transparent !important;
  color: var(--color-red) !important;
  box-shadow: none !important;
}

/* 5. 导航栏纹理增强 */
body:not(.dashboard-body) .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body:not(.dashboard-body) .navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 29, 37, 0.2) 20%,
    rgba(221, 170, 51, 0.3) 50%,
    rgba(184, 29, 37, 0.2) 80%,
    transparent 100%
  );
}

/* 6. 页脚纹理 */
body:not(.dashboard-body) .footer {
  position: relative;
  background-image:
    /* 回纹装饰 */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(184, 29, 37, 0.03) 20px,
      rgba(184, 29, 37, 0.03) 22px,
      transparent 22px,
      transparent 24px,
      rgba(221, 170, 51, 0.02) 24px,
      rgba(221, 170, 51, 0.02) 25px
    ),
    /* 宣纸底纹 */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='footerNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23footerNoise)' opacity='0.05'/%3E%3C/svg%3E") !important;
  background-size: 100% 100%, 150px 150px !important;
}

body:not(.dashboard-body) .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 29, 37, 0.3) 10%,
    rgba(221, 170, 51, 0.5) 50%,
    rgba(184, 29, 37, 0.3) 90%,
    transparent 100%
  );
}

/* ============================================
   Stable Reel Timeline Rebuild
   ============================================ */
.reel-section {
  padding-top: clamp(2.1rem, 3.6vw, 3rem);
  padding-bottom: clamp(2.8rem, 4.2vw, 3.8rem);
  overflow: hidden;
}

.reel-section::before {
  opacity: 0.22;
}

.reel-shell {
  position: relative;
  z-index: 1;
  width: min(96vw, 1700px);
  margin: 0 auto;
  padding: 0;
}

.reel-stage {
  --reel-stage-pad-y: clamp(1.1rem, 2vw, 1.7rem);
  --reel-rod-width: clamp(118px, 8vw, 154px);
  --reel-sheet-height: clamp(430px, 34vw, 560px);
  --reel-closed-gap: -42px;
  position: relative;
  min-height: calc(var(--reel-sheet-height) + (var(--reel-stage-pad-y) * 2));
  padding: var(--reel-stage-pad-y) 0;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.reel-section .section-intro {
  margin-bottom: clamp(0.9rem, 1.6vw, 1.3rem);
}

.reel-stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 29, 37, 0.22);
}

.reel-shadow {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 1.5vw, 1.35rem);
  width: min(86%, 1380px);
  height: clamp(42px, 5vw, 70px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(79, 42, 18, 0.22) 0%, rgba(79, 42, 18, 0.1) 42%, rgba(79, 42, 18, 0) 76%);
  filter: blur(12px);
  pointer-events: none;
}

.reel-rod {
  position: absolute;
  top: var(--reel-stage-pad-y);
  bottom: var(--reel-stage-pad-y);
  width: var(--reel-rod-width);
  height: auto;
  background: url('../素材/轴体.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 22px 28px rgba(68, 29, 15, 0.24));
  z-index: 4;
  pointer-events: none;
  transition:
    left 0.78s var(--ease-emphasis),
    right 0.78s var(--ease-emphasis),
    transform 0.78s var(--ease-emphasis),
    filter 0.38s ease;
  will-change: left, right, transform;
}

.reel-rod--left {
  left: 50%;
  z-index: 4;
  transform: translate(calc(-100% - (var(--reel-closed-gap) * 0.5)), 0);
}

.reel-rod--right {
  right: 50%;
  z-index: 5;
  transform: translate(calc(100% + (var(--reel-closed-gap) * 0.5)), 0);
}

.reel-stage.is-open .reel-rod--left {
  left: 0;
  transform: translate(0, 0);
}

.reel-stage.is-open .reel-rod--right {
  right: 0;
  transform: translate(0, 0);
}

.reel-sheet-wrap {
  position: relative;
  z-index: 2;
  margin: 0 calc(var(--reel-rod-width) * 0.62) 0 calc(var(--reel-rod-width) * 0.92);
  padding: 0;
  pointer-events: none;
}

.reel-stage.is-open .reel-sheet-wrap {
  pointer-events: auto;
}

.reel-sheet {
  position: relative;
  min-height: var(--reel-sheet-height);
  padding: clamp(1.7rem, 2.4vw, 2.4rem) clamp(1.35rem, 2.1vw, 2rem) clamp(1.1rem, 1.7vw, 1.45rem);
  border: 1px solid rgba(123, 82, 33, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(243, 234, 213, 0.92)),
    url('../素材/纸面.png') center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    0 20px 40px rgba(82, 47, 20, 0.16);
  clip-path: inset(0 50% 0 50% round 24px);
  opacity: 0.01;
  transition:
    clip-path 0.78s var(--ease-emphasis),
    opacity 0.28s ease,
    box-shadow 0.38s ease;
  will-change: clip-path, opacity;
}

.reel-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04) 32%, rgba(128, 84, 30, 0.08) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 56%);
  pointer-events: none;
}

.reel-sheet::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(165, 128, 74, 0.16);
  border-radius: 18px;
  pointer-events: none;
}

.reel-stage.is-open .reel-sheet {
  clip-path: inset(0 0 0 0 round 24px);
  opacity: 1;
}

.reel-head,
.reel-foot,
.reel-track {
  position: relative;
  z-index: 1;
}

.reel-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1rem, 1.8vw, 1.8rem);
  align-items: end;
  margin-bottom: clamp(1.15rem, 1.8vw, 1.65rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(140, 101, 42, 0.2);
}

.reel-headline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #8c5730;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.reel-kicker::before,
.reel-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 29, 37, 0.65), rgba(221, 170, 51, 0.75));
}

.reel-title {
  color: #7a1224;
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: 0.08em;
}

.reel-intro {
  max-width: 48rem;
  color: rgba(73, 47, 22, 0.9);
  font-size: 1rem;
  line-height: 1.9;
}

.reel-track {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.55rem 0 0.45rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 96, 46, 0.42) rgba(255, 255, 255, 0.22);
}

.reel-track.is-dragging {
  cursor: grabbing;
}

.reel-track::-webkit-scrollbar {
  height: 8px;
}

.reel-track::-webkit-scrollbar-thumb {
  background: rgba(154, 96, 46, 0.42);
  border-radius: 999px;
}

.reel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.reel-inner {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 1.9vw, 2.2rem);
  width: max-content;
  min-width: 100%;
  padding: 0 clamp(0.4rem, 1vw, 0.9rem) 0 0;
}

.reel-card {
  position: relative;
  width: min(320px, 22vw);
  min-height: 100%;
  padding: 0 0.25rem 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s ease,
    transform 0.42s var(--ease-smooth);
  transition-delay: var(--reel-delay, 0ms);
}

.reel-stage.is-open .reel-card {
  opacity: 1;
  transform: translateY(0);
}

.reel-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.reel-card::before {
  content: none;
}

.reel-era {
  color: #8c5730;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reel-year {
  margin-top: 0.3rem;
  color: #9b0c23;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
}

.reel-card-title {
  margin-top: 0.7rem;
  color: #3f2320;
  font-size: 1.16rem;
  line-height: 1.4;
}

.reel-card-desc {
  margin-top: 0.7rem;
  color: rgba(53, 34, 20, 0.88);
  font-size: 0.92rem;
  line-height: 1.8;
}

.reel-meta {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.78rem;
  padding: 0.7rem 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(184, 29, 37, 0.1);
  border-radius: 0;
}

.reel-meta-item {
  color: rgba(66, 42, 22, 0.9);
  font-size: 0.88rem;
  line-height: 1.72;
}

.reel-meta-item strong {
  color: #7a1224;
  font-weight: 700;
}

.reel-evidence {
  margin-top: 0.82rem;
}

.reel-evidence-title {
  color: #8c5730;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.reel-evidence-list {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.38rem;
}

.reel-evidence-list li {
  position: relative;
  padding-left: 0.9rem;
  color: rgba(61, 40, 24, 0.88);
  font-size: 0.86rem;
  line-height: 1.72;
}

.reel-evidence-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b81d25, #d39b3c);
}

.reel-inscription {
  margin-top: 0.78rem;
  padding: 0.62rem 0 0;
  color: #7a1224;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.72;
  background: transparent;
  border-left: none;
  border-top: 1px solid rgba(184, 29, 37, 0.16);
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.82rem;
}

.reel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.72);
  border: 1px solid rgba(202, 155, 78, 0.24);
  color: #7a5a00;
  font-size: 0.72rem;
  font-weight: 700;
}

.reel-connector {
  align-self: stretch;
  width: 1px;
  min-height: 100%;
  margin-inline: clamp(-0.2rem, 0.2vw, 0.12rem);
  background:
    linear-gradient(180deg, rgba(184, 29, 37, 0), rgba(221, 170, 51, 0.72) 16%, rgba(184, 29, 37, 0.26) 50%, rgba(221, 170, 51, 0.72) 84%, rgba(184, 29, 37, 0));
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.82);
  transition: opacity 0.42s ease, transform 0.42s var(--ease-smooth);
  transition-delay: var(--reel-delay, 0ms);
}

.reel-stage.is-open .reel-connector {
  opacity: 1;
  transform: scaleY(1);
}

.reel-foot {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(140, 101, 42, 0.16);
}

.reel-progress {
  position: relative;
  height: 6px;
  background: rgba(125, 70, 32, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.reel-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a31a2d 0%, #d3a14b 100%);
  transition: width 0.18s ease;
}

.reel-hint-text {
  color: rgba(85, 58, 33, 0.88);
  font-size: 0.92rem;
  line-height: 1.75;
}

.reel-stage.is-open .reel-hint-text {
  color: rgba(90, 63, 36, 0.76);
}

@media (max-width: 1180px) {
  .reel-stage {
    --reel-stage-pad-y: 1.75rem;
    --reel-rod-width: 120px;
    --reel-sheet-height: 500px;
  }

  .reel-head {
    grid-template-columns: 1fr;
  }

  .reel-intro {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .reel-section {
    padding-top: 2.4rem;
    padding-bottom: 2.6rem;
  }

  .reel-stage {
    --reel-stage-pad-y: 1rem;
    --reel-rod-width: 82px;
    --reel-sheet-height: 360px;
    --reel-closed-gap: -26px;
    min-height: calc(var(--reel-sheet-height) + (var(--reel-stage-pad-y) * 2));
    padding: var(--reel-stage-pad-y) 0 1.5rem;
  }

  .reel-sheet-wrap {
    margin: 0 calc(var(--reel-rod-width) * 0.58) 0 calc(var(--reel-rod-width) * 0.86);
  }

  .reel-sheet {
    min-height: var(--reel-sheet-height);
    padding: 1.2rem 0.95rem 1rem;
    border-radius: 18px;
  }

  .reel-sheet::after {
    inset: 10px;
    border-radius: 13px;
  }

  .reel-title {
    font-size: 1.45rem;
  }

  .reel-intro,
  .reel-hint-text,
  .reel-card-desc,
  .reel-meta-item,
  .reel-evidence-list li {
    font-size: 0.88rem;
  }

  .reel-card {
    width: min(62vw, 248px);
    padding-right: 0.12rem;
  }

  .reel-year {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .reel-stage {
    --reel-stage-pad-y: 1rem;
    --reel-rod-width: 66px;
    --reel-sheet-height: 318px;
    --reel-closed-gap: -20px;
    min-height: calc(var(--reel-sheet-height) + (var(--reel-stage-pad-y) * 2));
  }

  .reel-sheet-wrap {
    margin: 0 calc(var(--reel-rod-width) * 0.54) 0 calc(var(--reel-rod-width) * 0.82);
  }

  .reel-card {
    width: min(68vw, 220px);
  }

  .reel-kicker {
    letter-spacing: 0.18em;
  }
}


/* ============================================
   时空卷轴 - 营建阶段样式
   ============================================ */

.reel-phase {
  min-width: 480px;
}

.phase-progress {
  margin: 1.2rem 0 1.5rem;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(200, 16, 46, 0.1);
}

.phase-progress-label {
  font-size: 0.85rem;
  color: #6B7680;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.phase-progress-bar {
  height: 24px;
  background: rgba(220, 224, 227, 0.4);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.phase-progress-fill {
  height: 100%;
  background: #C8102E;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.phase-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.phase-progress-value {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #C8102E;
  text-align: right;
}

.phase-data-section {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 3px solid #C8102E;
}

.phase-data-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2C2E33;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phase-data-summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: #C8102E;
  margin-bottom: 0.8rem;
}

.phase-data-list {
  list-style: none;
  padding: 0;
}

.phase-data-list li {
  font-size: 0.9rem;
  color: #5A646E;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.phase-data-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #DDAA33;
  font-weight: bold;
}

.phase-data-note {
  font-size: 0.85rem;
  color: #6B7680;
  font-style: italic;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(200, 16, 46, 0.2);
}

@media (max-width: 768px) {
  .reel-phase {
    min-width: 360px;
  }
  
  .phase-data-section {
    padding: 1rem;
  }
  
  .phase-data-title {
    font-size: 0.95rem;
  }
  
  .phase-data-list li {
    font-size: 0.85rem;
  }
}

