/* ==========================================================================
   星海广场 · 大连  |  style.css
   结构：1 变量  2 基础  3 导航  4 首屏  5 通用版式  6 缘起时间轴
        7 格局图文  8 景观卡片  9 引文  10 时段切换  11 攻略  12 页脚
        13 入场动画  14 响应式  15 减弱动效
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #04101d;
  --ink-800: #0a1a2b;
  --ink-700: #12293e;
  --sea-600: #17465f;
  --sea-500: #1d5b7a;
  --foam-100: #e8f2f6;
  --paper: #ffffff;
  --mist: #eff5f7;
  --gold: #d99a53;
  --gold-ink: #b07a34;
  --sand: #f0d3a8;

  --text: #16232e;
  --text-soft: #5d7180;
  --line: rgba(12, 32, 48, 0.12);
  --line-soft: rgba(12, 32, 48, 0.07);

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 24px;

  --shadow-s: 0 2px 12px rgba(8, 26, 40, 0.06);
  --shadow-m: 0 24px 48px -26px rgba(8, 26, 40, 0.34);

  --max: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: rgba(217, 154, 83, 0.32);
}

.wrap {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* 阅读进度条 */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--sand), #7fc6d8);
  pointer-events: none;
  will-change: transform;
}

/* ---------- 3. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  color: #fff;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(7, 21, 34, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -22px rgba(0, 0, 0, 0.9);
}

.nav__inner {
  width: min(var(--max), 100% - 48px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 30px;
  height: 30px;
  color: var(--sand);
}

.logo__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.logo__text em {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.45);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s var(--ease);
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__links a.is-active {
  color: #fff;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .icon-sun {
  display: none;
}

[data-theme="night"] .icon-btn .icon-sun {
  display: block;
}

[data-theme="night"] .icon-btn .icon-moon {
  display: none;
}

.burger {
  display: none;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav.is-open .burger span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .burger span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene {
  position: absolute;
  pointer-events: none;
}

/* 天空 */
.scene--sky {
  inset: 0;
  background: linear-gradient(
    180deg,
    #04101d 0%,
    #0b2134 26%,
    #1b3c53 44%,
    #4a5560 58%,
    #9c6b51 66%,
    #d0894f 74%,
    #eda971 82%,
    #f3c795 92%
  );
  transition: background 0.9s var(--ease);
}

/* 星点 */
.scene--stars {
  inset: 0 0 42% 0;
  opacity: 0;
  background-image: radial-gradient(1.3px 1.3px at 30px 40px, #fff, transparent),
    radial-gradient(1px 1px at 122px 92px, #dbe9f4, transparent),
    radial-gradient(1.7px 1.7px at 212px 28px, #fff, transparent),
    radial-gradient(1px 1px at 264px 142px, #cfe0ee, transparent),
    radial-gradient(1.2px 1.2px at 82px 172px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 182px 204px, #e7f1f8, transparent),
    radial-gradient(1px 1px at 304px 106px, #fff, transparent);
  background-size: 340px 250px;
  transition: opacity 1.2s var(--ease);
}

/* 天光 */
.scene--glow {
  inset: 0;
  background: radial-gradient(
    60% 46% at 62% 74%,
    rgba(255, 196, 130, 0.5),
    rgba(255, 168, 104, 0.14) 46%,
    transparent 72%
  );
  transition: opacity 0.9s var(--ease);
}

/* 落日 / 月亮 */
.scene--sun {
  left: 62%;
  top: 46%;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(255, 250, 240, 0.96) 0%,
    rgba(255, 228, 186, 0.94) 32%,
    rgba(246, 175, 112, 0.86) 56%,
    rgba(238, 152, 94, 0.34) 76%,
    rgba(238, 152, 94, 0) 84%
  );
  filter: blur(1.2px);
  transition: background 1s var(--ease), transform 1.2s var(--ease), opacity 0.9s;
}

/* 云霞 */
.scene--haze {
  height: 8%;
  border-radius: 50%;
  filter: blur(26px);
  transition: opacity 0.9s;
}

.scene--haze-a {
  top: 50%;
  left: -6%;
  width: 62%;
  background: rgba(255, 214, 176, 0.4);
}

.scene--haze-b {
  top: 56%;
  right: -8%;
  width: 54%;
  background: rgba(255, 178, 128, 0.3);
}

/* 跨海大桥剪影 */
.scene--bridge {
  left: 0;
  top: 52%;
  width: 100%;
  height: 12%;
  color: #071726;
  opacity: 0.78;
  transition: color 0.9s, opacity 0.9s;
}

/* 桥面灯带（仅夜景） */
.scene--lights {
  left: 0;
  top: 60.4%;
  width: 100%;
  height: 7px;
  opacity: 0;
  background-image: radial-gradient(circle, #ffd9a0 1.6px, transparent 2px);
  background-size: 46px 7px;
  filter: blur(0.3px) drop-shadow(0 0 6px rgba(255, 200, 130, 0.9));
  transition: opacity 1s var(--ease);
}

/* 海面 */
.scene--sea {
  left: 0;
  right: 0;
  top: 62%;
  bottom: 0;
  background: linear-gradient(
    180deg,
    #33566b 0%,
    #1d3d51 18%,
    #102b3c 48%,
    #081c2a 78%,
    #05131e 100%
  );
  transition: background 0.9s var(--ease);
}

/* 海面光带 */
.scene--trail {
  left: 62%;
  top: 62%;
  width: 150px;
  height: 24%;
  margin-left: -75px;
  background: linear-gradient(
    180deg,
    rgba(255, 214, 160, 0.5),
    rgba(255, 178, 122, 0.14) 34%,
    transparent 68%
  );
  filter: blur(16px);
  opacity: 0.6;
  transition: opacity 0.9s;
}

/* 海浪 */
.scene--wave {
  left: 0;
  width: 100%;
  bottom: 0;
}

.wave-a {
  height: 26%;
  animation: waveDrift 15s ease-in-out infinite alternate;
}

.wave-b {
  height: 20%;
  opacity: 0.9;
  animation: waveDrift 19s ease-in-out infinite alternate-reverse;
}

@keyframes waveDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-2.5%, 6px, 0);
  }
}

/* 海鸥 */
.scene--gulls {
  inset: 0;
  color: rgba(255, 255, 255, 0.62);
}

.gull {
  position: absolute;
  width: 30px;
  height: 12px;
  animation: gullFloat 7s ease-in-out infinite;
}

.gull-1 {
  top: 30%;
  left: 78%;
}

.gull-2 {
  top: 25%;
  left: 84%;
  width: 22px;
  animation-delay: -2.4s;
}

.gull-3 {
  top: 35%;
  left: 71%;
  width: 18px;
  animation-delay: -4.1s;
}

@keyframes gullFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(10px, -9px, 0) rotate(3deg);
  }
}

/* 文字遮罩，保证可读性 */
.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 18, 0.58) 0%,
    rgba(3, 10, 18, 0.24) 34%,
    rgba(3, 10, 18, 0.12) 58%,
    rgba(3, 10, 18, 0.66) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 48px);
  min-height: 100svh;
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + 6vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__coord {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 26px;
}

.hero__coord-place {
  position: relative;
  padding-left: 20px;
}

.hero__coord-place::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%);
}

.hero__title-cn {
  display: block;
  font-size: clamp(52px, 10vw, 128px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero__title-en {
  display: block;
  margin-top: 20px;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.62em;
  color: rgba(255, 255, 255, 0.55);
}

.hero__lead {
  margin-top: 30px;
  max-width: 620px;
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 2.05;
  color: rgba(255, 255, 255, 0.78);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s,
    box-shadow 0.3s, color 0.3s;
}

.btn--primary {
  background: var(--sand);
  color: #2a1a08;
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(240, 211, 168, 0.8);
}

.btn--primary:hover {
  background: #ffe4bd;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -16px rgba(240, 211, 168, 0.9);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat dt {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.04em;
}

.stat dd {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.hero__scroll-text {
  font-size: 9px;
  letter-spacing: 0.34em;
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.55);
    transform-origin: 0 100%;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: 0 100%;
    opacity: 1;
  }
}

/* 夜景主题 */
[data-theme="night"] .scene--sky {
  background: linear-gradient(
    180deg,
    #01070d 0%,
    #05121f 32%,
    #08202f 52%,
    #0b2a3c 62%,
    #0e3245 70%,
    #0a2333 82%,
    #061520 100%
  );
}

[data-theme="night"] .scene--stars {
  opacity: 0.9;
}

[data-theme="night"] .scene--glow {
  opacity: 0.42;
  background: radial-gradient(50% 40% at 62% 72%, rgba(140, 190, 220, 0.34), transparent 70%);
}

[data-theme="night"] .scene--sun {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #eaf4ff 40%, #b9d2e6 62%, rgba(185, 210, 230, 0) 66%);
  transform: scale(0.62) translateY(6%);
  box-shadow: 0 0 90px 30px rgba(180, 214, 240, 0.28);
}

[data-theme="night"] .scene--haze {
  opacity: 0.28;
}

[data-theme="night"] .scene--bridge {
  color: #031019;
  opacity: 0.95;
}

[data-theme="night"] .scene--lights {
  opacity: 0.9;
}

[data-theme="night"] .scene--sea {
  background: linear-gradient(180deg, #0d2a3b 0%, #08202e 20%, #04131e 55%, #020a11 100%);
}

[data-theme="night"] .scene--trail {
  background: linear-gradient(180deg, rgba(214, 234, 250, 0.42), rgba(160, 200, 230, 0.12) 42%, transparent 80%);
  opacity: 0.6;
}

[data-theme="night"] .gull {
  opacity: 0.3;
}

/* ---------- 5. 通用版式 ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 122px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section--mist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 88% 0%, rgba(217, 154, 83, 0.09), transparent 62%);
  pointer-events: none;
}

.section > .wrap {
  position: relative;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--sea-500);
  margin-bottom: 18px;
}

.eyebrow span {
  color: rgba(93, 113, 128, 0.55);
  font-weight: 500;
}

.section-title {
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--ink-800);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-sub {
  margin-top: 20px;
  font-size: clamp(14.5px, 1.25vw, 16px);
  line-height: 2.05;
  color: var(--text-soft);
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.split__head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

/* ---------- 6. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), var(--line-soft) 90%);
}

.timeline__item {
  position: relative;
  padding-bottom: 34px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline__item:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 154, 83, 0.14);
}

.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
}

.timeline__body h3 {
  margin: 6px 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-800);
}

.timeline__body p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-soft);
}

/* ---------- 7. 格局 ---------- */
.layout-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.diagram {
  position: relative;
}

.diagram svg {
  width: 100%;
  height: auto;
}

.dg-ring {
  fill: none;
  stroke: rgba(18, 41, 60, 0.16);
  stroke-width: 1;
}

.dg-ring--inner {
  stroke: rgba(18, 41, 60, 0.26);
}

.dg-dash {
  fill: none;
  stroke: rgba(217, 154, 83, 0.75);
  stroke-width: 1;
  stroke-dasharray: 2 10;
  transform-origin: 210px 210px;
  animation: ringSpin 60s linear infinite;
}

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

.dg-roads {
  stroke: rgba(18, 41, 60, 0.1);
  stroke-width: 1;
  fill: none;
}

.dg-core-halo {
  fill: none;
  stroke: rgba(217, 154, 83, 0.4);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  transform-origin: 210px 210px;
  animation: ringSpin 40s linear infinite reverse;
}

.dg-label text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  fill: #7c8f9c;
}

.dg-label--core {
  fill: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.06em !important;
}

.dg-label--sub {
  fill: rgba(255, 255, 255, 0.82) !important;
  font-size: 9.5px !important;
}

.diagram__cap {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(93, 113, 128, 0.7);
}

.layout-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
}

.num-card {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.num-card__num {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums;
}

.num-card__num span {
  margin-left: 5px;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sea-500);
}

.num-card h3 {
  margin: 10px 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.num-card p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-soft);
}

.note {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: rgba(217, 154, 83, 0.06);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 14px;
  line-height: 1.95;
  color: #4b5f6d;
}

/* ---------- 8. 景观卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
  border-color: rgba(12, 32, 48, 0.14);
}

.card__art {
  height: 156px;
  display: grid;
  place-items: center;
  color: #10293c;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__art {
  transform: scale(1.04);
}

.card__art svg {
  width: 96px;
  height: 96px;
}

.art-fill {
  fill: var(--gold);
}

.art-fill-soft {
  fill: rgba(217, 154, 83, 0.42);
}

.art-stroke {
  stroke: var(--gold);
}

.card__art--core {
  background: linear-gradient(135deg, #eaf3f7, #d3e5ee);
}

.card__art--book {
  background: linear-gradient(135deg, #f6eee2, #ead9c3);
}

.card__art--fountain {
  background: linear-gradient(135deg, #e2f0f5, #cbe2ed);
}

.card__art--bridge {
  background: linear-gradient(135deg, #e8eef1, #d2dde4);
}

.card__art--shell {
  background: linear-gradient(135deg, #f7efe9, #ecdbcc);
}

.card__art--sail {
  background: linear-gradient(135deg, #e5f1f2, #cde5e7);
}

.card__body {
  padding: 22px 24px 26px;
}

.card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(29, 91, 122, 0.66);
}

.card__body h3 {
  margin: 9px 0 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-800);
}

.card__body p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-soft);
}

/* ---------- 9. 引文 ---------- */
.quote-band {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0;
  background: linear-gradient(150deg, #071624 0%, #0c2637 52%, #123445 100%);
  color: #eef5fa;
  overflow: hidden;
}

.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.quote-band::before {
  width: 460px;
  height: 460px;
  left: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(217, 154, 83, 0.28), transparent 68%);
}

.quote-band::after {
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(94, 170, 196, 0.24), transparent 68%);
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.quote-band blockquote p {
  font-size: clamp(20px, 2.7vw, 32px);
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.quote-band blockquote footer {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(238, 245, 250, 0.45);
}

/* ---------- 10. 时段切换 ---------- */
.tabs {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

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

.tabs__btn {
  position: relative;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.tabs__btn:hover {
  background: rgba(217, 154, 83, 0.05);
}

.tabs__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.tabs__btn::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.tabs__btn.is-active::after {
  transform: scaleX(1);
}

.tabs__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(93, 113, 128, 0.75);
}

.tabs__name {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-800);
  transition: color 0.3s;
}

.tabs__btn.is-active .tabs__name {
  color: var(--gold-ink);
}

.tabs__stage {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 320px;
}

.tab-panel {
  grid-area: 1 / 1;
  padding: clamp(30px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0.5s;
}

.tab-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tab-panel h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-800);
}

.tab-panel p {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--text-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #4b6371;
  background: rgba(255, 255, 255, 0.6);
}

.tabs__visual {
  grid-area: 1 / 2;
  position: relative;
  overflow: hidden;
  transition: background 0.8s var(--ease);
}

.tabs__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%);
}

.tabs__orb {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  border-radius: 50%;
  transition: background 0.8s var(--ease), box-shadow 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.tabs__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.8s;
}

[data-phase="dawn"] .tabs__visual {
  background: linear-gradient(170deg, #2c4356 0%, #6f8391 46%, #c9bda9 100%);
}

[data-phase="dawn"] .tabs__orb {
  background: radial-gradient(circle at 50% 45%, #fff6e6, #ffd9a8 55%, #e8b489);
  box-shadow: 0 0 60px 14px rgba(255, 220, 170, 0.35);
  transform: translateY(26%);
}

[data-phase="noon"] .tabs__visual {
  background: linear-gradient(170deg, #b6d8e6 0%, #d9ecf3 52%, #eef8fb 100%);
}

[data-phase="noon"] .tabs__orb {
  background: radial-gradient(circle at 50% 45%, #ffffff, #fdf6e6);
  box-shadow: 0 0 90px 30px rgba(255, 255, 255, 0.85);
  transform: translateY(-14%);
}

[data-phase="dusk"] .tabs__visual {
  background: linear-gradient(170deg, #22303f 0%, #6d4a45 42%, #c8753f 76%, #eda765 100%);
}

[data-phase="dusk"] .tabs__orb {
  background: radial-gradient(circle at 50% 45%, #fff2d8, #ffc580 52%, #f08a4b);
  box-shadow: 0 0 80px 22px rgba(255, 180, 110, 0.5);
  transform: translateY(18%);
}

[data-phase="night"] .tabs__visual {
  background: linear-gradient(170deg, #05121d 0%, #0d2a3c 58%, #14384c 100%);
}

[data-phase="night"] .tabs__orb {
  background: radial-gradient(circle at 50% 45%, #ffffff, #e4f0fb 46%, #a9c8de);
  box-shadow: 0 0 70px 22px rgba(180, 214, 240, 0.45);
  transform: translateY(-24%) scale(0.7);
}

[data-phase="night"] .tabs__horizon {
  background: rgba(255, 214, 160, 0.7);
  box-shadow: 0 0 18px rgba(255, 214, 160, 0.8);
}

/* ---------- 11. 攻略 ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.accordion {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}

.acc-head:hover {
  color: var(--gold-ink);
}

.acc-head svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  transition: transform 0.4s var(--ease), color 0.25s;
}

.acc-item.is-open .acc-head svg {
  transform: rotate(180deg);
  color: var(--gold-ink);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}

.acc-item.is-open .acc-body {
  opacity: 1;
}

.acc-body p {
  padding: 0 4px 24px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 2;
  color: var(--text-soft);
}

.fact-card {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  padding: 32px 28px 28px;
  border-radius: 22px;
  background: linear-gradient(160deg, #0a1f30 0%, #0e2c3d 100%);
  color: #eaf3f9;
  box-shadow: 0 30px 60px -34px rgba(6, 22, 34, 0.7);
}

.fact-card__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: rgba(240, 211, 168, 0.8);
}

.fact-card dl > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-card dl > div:first-child {
  margin-top: 12px;
}

.fact-card dt {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(234, 243, 249, 0.5);
}

.fact-card dd {
  text-align: right;
  font-size: 13.5px;
  line-height: 1.7;
}

.fact-card__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  border-bottom: 1px solid rgba(240, 211, 168, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.fact-card__link:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- 12. 页脚 ---------- */
.footer {
  padding: 58px 0 64px;
  background: #05131e;
  color: rgba(255, 255, 255, 0.55);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__cn {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer__en {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
}

.footer__note {
  font-size: 12.5px;
  line-height: 1.95;
  max-width: 60ch;
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.35);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(12, 32, 48, 0.1);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-800);
  box-shadow: 0 12px 26px -12px rgba(8, 26, 40, 0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    background 0.3s, color 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--ink-800);
  color: #fff;
}

.to-top svg {
  width: 19px;
  height: 19px;
}

/* ---------- 13. 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 无 JS 兜底 */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__head {
    position: static;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .diagram {
    max-width: 340px;
    margin-inline: auto;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .fact-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }

  .wrap,
  .nav__inner,
  .hero__inner {
    width: calc(100% - 40px);
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 22px;
    background: rgba(7, 21, 34, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
      visibility 0.35s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: 15px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links a.is-active {
    color: var(--sand);
  }

  .burger {
    display: block;
  }

  .hero__inner {
    padding-top: calc(var(--nav-h) + 4vh);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .hero__scroll {
    display: none;
  }

  .tabs__bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs__btn {
    padding: 16px 20px;
  }

  .tabs__btn:nth-child(1),
  .tabs__btn:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .tabs__btn:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
  }

  .tabs__btn::after {
    left: 20px;
    right: 20px;
  }

  .tabs__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tabs__visual {
    grid-area: 1 / 1;
    height: 150px;
  }

  .tab-panel {
    grid-area: 2 / 1;
    padding: 26px 22px 30px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__copy {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 62px 0;
  }

  /* 移动端首屏：遮罩集中在文字区，落日下移到海平线 */
  .hero__scene::after {
    background: linear-gradient(
      180deg,
      rgba(3, 10, 18, 0.6) 0%,
      rgba(3, 10, 18, 0.46) 38%,
      rgba(3, 10, 18, 0.18) 56%,
      rgba(3, 10, 18, 0.5) 78%,
      rgba(3, 10, 18, 0.7) 100%
    );
  }

  .scene--sun {
    top: 60%;
    left: 68%;
    width: 92px;
    height: 92px;
    margin: -46px 0 0 -46px;
    opacity: 0.92;
    filter: blur(1.5px);
  }

  .hero__coord {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
  }

  .hero__coord-place {
    padding-left: 0;
  }

  .hero__coord-place::before {
    display: none;
  }

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

  .layout-list {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero__title-cn {
    font-size: clamp(46px, 16vw, 72px);
    letter-spacing: 0.03em;
  }

  .hero__title-en {
    letter-spacing: 0.4em;
    margin-top: 14px;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.95;
  }

  .hero__lead br {
    display: none;
  }

  .btn {
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
  }

  .stat dt {
    font-size: 26px;
  }

  .stat dd {
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }

  .note {
    padding: 18px 20px;
    font-size: 13.5px;
  }

  .quote-band blockquote p {
    font-size: 19px;
  }

  .br-pc {
    display: none;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 15. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
