/* ==========================================================================
   星海广场 · 大连 — 样式表
   配色：深海墨 / 海青 / 沙色 / 琥珀
   ========================================================================== */

:root {
  --ink: #0d1a22;
  --ink-soft: #263a45;
  --muted: #63737e;
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --card: #fffdf9;
  --line: rgba(13, 26, 34, 0.12);
  --line-soft: rgba(13, 26, 34, 0.07);
  --deep: #04161f;
  --deep-2: #072733;
  --sea: #12718a;
  --sea-soft: #8fd0dd;
  --sand: #e5d5ba;
  --amber: #c9903f;
  --cream: #f5efe4;

  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-serif: "Songti SC", "STZhongsong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; }

::selection {
  background: var(--sea);
  color: #fff;
}

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

/* ---------------------------------------------------------------- 滚动进度 */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sea-soft), var(--amber));
}

/* ------------------------------------------------------------------ 顶部导航 */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--cream);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

.header.is-scrolled {
  background: rgba(247, 245, 240, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft), 0 18px 40px -34px rgba(9, 32, 44, 0.6);
}

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

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

.brand__mark {
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
}
.brand__mark::after {
  inset: 8px;
  background: currentColor;
  border: 0;
  opacity: 0.9;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__text strong {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand__text small {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  opacity: 0.62;
  margin-top: 3px;
}

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

.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { opacity: 1; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  padding: 0;
  position: relative;
  cursor: pointer;
  opacity: 0.8;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 25px; }
.menu-btn.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.is-active span:nth-child(2) { opacity: 0; }
.menu-btn.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(120% 85% at 76% 6%, #1a5b74 0%, rgba(26, 91, 116, 0) 58%),
    radial-gradient(90% 70% at 12% 96%, #0a3f52 0%, rgba(10, 63, 82, 0) 62%),
    linear-gradient(180deg, #03131c 0%, #072430 52%, #0b3849 100%);
}

/* 同心圆铺装 */
.hero__plaza {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 190vmax;
  height: 190vmax;
  transform: translateX(-50%);
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(229, 213, 186, 0.14) 0deg 0.35deg,
      transparent 0.35deg 3.6deg
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      rgba(229, 213, 186, 0.1) 0 1px,
      transparent 1px 72px
    );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 42%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 42%, transparent 68%);
  opacity: 0.55;
  animation: plazaDrift 160s linear infinite;
  pointer-events: none;
}

@keyframes plazaDrift {
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 130vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(233, 173, 96, 0.34) 0%,
    rgba(233, 173, 96, 0.1) 34%,
    rgba(233, 173, 96, 0) 68%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(2, 10, 15, 0.55) 100%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  padding: 120px 0 120px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: rgba(245, 239, 228, 0.7);
  margin-bottom: 26px;
}
.hero__eyebrow span {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--amber);
  opacity: 0.9;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__title-cn {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 10.4vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: 0.1em;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero__title-en {
  font-size: clamp(0.6rem, 1.2vw, 0.78rem);
  letter-spacing: 0.62em;
  color: var(--sand);
  opacity: 0.72;
  padding-left: 0.4em;
}

.hero__lead {
  max-width: 34em;
  margin-top: 34px;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 2;
  color: rgba(245, 239, 228, 0.82);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero__chips li {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border: 1px solid rgba(229, 213, 186, 0.28);
  border-radius: 100px;
  color: rgba(245, 239, 228, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::after {
  content: "→";
  font-size: 0.95em;
  transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

.btn--solid {
  background: var(--cream);
  color: var(--deep);
  border: 1px solid var(--cream);
}
.btn--solid:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(245, 239, 228, 0.34);
  color: rgba(245, 239, 228, 0.9);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(245, 239, 228, 0.08);
  transform: translateY(-2px);
}

.hero__skyline {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: 100%;
  height: 34%;
  color: rgba(229, 213, 186, 0.38);
  z-index: 2;
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 164px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: rgba(245, 239, 228, 0.62);
}
.hero__cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(245, 239, 228, 0), rgba(245, 239, 228, 0.7));
  animation: cueDrop 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0.2; }
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 84px;
  z-index: 5;
  pointer-events: none;
}

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

section[id] { scroll-margin-top: 74px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-bottom: 20px;
}
.kicker span {
  font-family: var(--font-serif);
  color: var(--amber);
  letter-spacing: 0.1em;
}
.kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.32;
  letter-spacing: 0.04em;
}

.section__head {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__desc {
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- 概览 */
.about { background: var(--paper); }

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.prose { margin-top: 28px; }
.prose p {
  font-size: 1rem;
  line-height: 2.05;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.prose p + p { margin-top: 18px; }

.prose p::first-letter { letter-spacing: 0.02em; }

.quote {
  margin-top: 38px;
  padding: 26px 28px 26px 30px;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(201, 144, 63, 0.08), rgba(201, 144, 63, 0));
  border-radius: 0 12px 12px 0;
}
.quote p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.archive {
  position: sticky;
  top: 96px;
  padding: 34px 30px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -60px rgba(9, 32, 44, 0.7);
}
.archive__title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.archive__title small {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 400;
}
.archive__list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.archive__list > div:last-child { border-bottom: 0; }
.archive__list dt {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.archive__list dd {
  font-size: 0.88rem;
  text-align: right;
  color: var(--ink);
}
.archive__note {
  margin-top: 14px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------------------------------------------------------------------- 数字 */
.stats {
  position: relative;
  padding: clamp(48px, 6vw, 74px) 0;
  color: var(--cream);
  background:
    radial-gradient(80% 120% at 14% 0%, #10465a 0%, rgba(16, 70, 90, 0) 60%),
    linear-gradient(180deg, #07232f, #04161f);
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(229, 213, 186, 0.07) 0 1px,
    transparent 1px 120px
  );
  pointer-events: none;
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat {
  padding-left: 22px;
  border-left: 1px solid rgba(229, 213, 186, 0.18);
}
.stat:first-child { padding-left: 0; border-left: 0; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat__num em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  opacity: 0.95;
}
.stat__label {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 228, 0.56);
}

/* -------------------------------------------------------------------- 时间轴 */
.story { background: var(--paper-2); }

.timeline {
  position: relative;
  margin-top: 12px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 26, 34, 0.18) 6%,
    rgba(13, 26, 34, 0.18) 94%,
    transparent 100%
  );
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 48px;
  padding: 22px 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 145px;
  top: 36px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1.5px solid var(--sea);
  box-shadow: 0 0 0 5px var(--paper-2);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline__item:hover::before {
  background: var(--sea);
  transform: scale(1.15);
}

.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: right;
  padding-right: 26px;
  white-space: nowrap;
}
.timeline__year em {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-left: 4px;
  vertical-align: 0.5em;
}

.timeline__body h3 {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.timeline__body p {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 44em;
}

/* ---------------------------------------------------------------------- 地标 */
.spots { background: var(--paper); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sea), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 113, 138, 0.34);
  box-shadow: 0 34px 60px -42px rgba(9, 40, 54, 0.75);
}
.card:hover::after { transform: scaleX(1); }

.card__index {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(13, 26, 34, 0.07);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(18, 113, 138, 0.09);
  color: var(--sea);
  margin-bottom: 24px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon {
  background: var(--sea);
  color: #fff;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- 光影 */
.light {
  background: var(--paper-2);
  overflow: hidden;
}

.light__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tint {
  position: relative;
  min-height: 360px;
  padding: 28px 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.tint:hover { transform: translateY(-4px); }

.tint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.8s var(--ease);
}
.tint:hover::before { transform: scale(1.05); }

.tint__time {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.75;
  margin-bottom: 10px;
}
.tint h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.tint p {
  font-size: 0.88rem;
  line-height: 1.9;
  opacity: 0.88;
}

.tint--dawn { color: #12303c; }
.tint--dawn::before {
  background:
    radial-gradient(60% 40% at 50% 22%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(175deg, #eaf1f3 0%, #c9dbe2 46%, #93b6c3 100%);
}

.tint--noon { color: #3b2d18; }
.tint--noon::before {
  background:
    radial-gradient(38% 30% at 74% 16%, rgba(255, 232, 178, 0.95), transparent 70%),
    linear-gradient(175deg, #f6efdd 0%, #e6d3ad 52%, #cdb488 100%);
}

.tint--dusk { color: #fdf3e6; }
.tint--dusk .tint__time,
.tint--dusk p { text-shadow: 0 1px 10px rgba(74, 28, 18, 0.35); }
.tint--dusk::before {
  background:
    radial-gradient(50% 38% at 60% 78%, rgba(255, 196, 128, 0.85), transparent 72%),
    linear-gradient(175deg, #f2cda7 0%, #dfa075 34%, #b4674a 68%, #6e372b 100%);
}

.tint--night { color: #eaf3f6; }
.tint--night::before {
  background:
    radial-gradient(50% 36% at 66% 18%, rgba(120, 200, 220, 0.4), transparent 70%),
    linear-gradient(175deg, #164456 0%, #0a2532 56%, #04121a 100%);
}
.tint--night::after {
  content: "";
  position: absolute;
  inset: auto 0 32% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 150, 0.9), transparent);
  box-shadow: 0 0 18px rgba(255, 200, 120, 0.7);
  opacity: 0.8;
}

/* ---------------------------------------------------------------------- 路线 */
.routes { background: var(--paper); }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: none;
  border: 0;
  padding: 14px 24px 16px;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.tabs__btn small {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.tabs__btn:hover { color: var(--ink-soft); background: rgba(18, 113, 138, 0.04); }
.tabs__btn.is-active { color: var(--ink); }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__btn:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: -4px;
}

.tabs__panel { padding-top: 34px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-active { animation: panelIn 0.55s var(--ease) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 22px;
}
.route li {
  display: flex;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.route li > span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--amber);
  padding-top: 3px;
  flex-shrink: 0;
}
.route h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.route p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--muted);
}

.tabs__note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ------------------------------------------------------------------ 实用信息 */
.tips { background: var(--paper-2); }

.tips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 40px;
}
.tip {
  padding-top: 20px;
  border-top: 1px solid rgba(13, 26, 34, 0.16);
}
.tip h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tip h3 span {
  color: var(--amber);
  font-size: 0.72rem;
}
.tip p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- 页脚 */
.footer {
  position: relative;
  padding: 62px 0 54px;
  color: rgba(245, 239, 228, 0.7);
  background: linear-gradient(180deg, #04161f, #020d14);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -60%;
  width: 90vw;
  height: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(18, 113, 138, 0.22), transparent 62%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 32px;
  align-items: end;
}

.footer__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.footer__sub {
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  opacity: 0.6;
}
.footer__note {
  font-size: 0.78rem;
  line-height: 1.9;
  opacity: 0.62;
}
.footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ 回到顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(13, 26, 34, 0.18);
  background: rgba(255, 253, 249, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s, background-color 0.3s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* -------------------------------------------------------------------- 入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .card:nth-child(2),
.tips__grid .tip:nth-child(2),
.light__grid .tint:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(3),
.tips__grid .tip:nth-child(3),
.light__grid .tint:nth-child(3) { transition-delay: 0.16s; }
.cards .card:nth-child(4),
.tips__grid .tip:nth-child(4),
.light__grid .tint:nth-child(4) { transition-delay: 0.24s; }
.cards .card:nth-child(5),
.tips__grid .tip:nth-child(5) { transition-delay: 0.3s; }
.cards .card:nth-child(6),
.tips__grid .tip:nth-child(6) { transition-delay: 0.36s; }

/* ---------------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .light__grid { grid-template-columns: repeat(2, 1fr); }
  .tint { min-height: 300px; }
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__copy { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .archive { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .tips__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 30px; }
  .timeline::before { left: 104px; }
  .timeline__item { grid-template-columns: 104px 1fr; gap: 34px; }
  .timeline__item::before { left: 99px; }
  .timeline__year { font-size: 1.28rem; padding-right: 20px; }
  .hero__cue { display: none; }
}

@media (max-width: 760px) {
  .container,
  .header__inner,
  .hero__inner { width: calc(100% - 40px); }

  .header__inner { height: 64px; }

  .menu-btn { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 80px 32px;
    background: rgba(4, 22, 31, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: var(--cream);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__link {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    padding: 14px 0;
    opacity: 0.85;
  }
  .nav__link::after { left: 0; right: auto; width: 28px; bottom: 8px; }

  .header.is-menu-open {
    background: transparent;
    color: var(--cream);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero__inner { padding: 104px 0 130px; }
  .hero__lead { font-size: 0.96rem; }
  .hero__chips li { font-size: 0.74rem; padding: 6px 13px; }
  .hero__skyline { height: 26%; bottom: 40px; opacity: 0.7; }
  .hero__title-en { letter-spacing: 0.42em; }

  .section { padding: 64px 0; }

  .timeline::before { left: 4px; top: 20px; bottom: 20px; }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0 18px 26px;
  }
  .timeline__item::before { left: -1px; top: 30px; }
  .timeline__year { text-align: left; padding-right: 0; font-size: 1.15rem; }
  .timeline__body p { font-size: 0.9rem; }

  .light__grid { grid-template-columns: 1fr; }
  .tint { min-height: 240px; }

  .tabs__list { border-bottom: 0; gap: 8px; }
  .tabs__btn {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.9rem;
  }
  .tabs__btn::after { display: none; }
  .tabs__btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
  }
  .tabs__panel { padding-top: 26px; }
  .route { grid-template-columns: 1fr; gap: 16px; }

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

  .footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .footer__copy { grid-column: auto; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; row-gap: 26px; }
  .stat { padding-left: 0; border-left: 0; padding-bottom: 20px; border-bottom: 1px solid rgba(229, 213, 186, 0.14); }
  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .quote { padding: 22px 20px; }
  .archive { padding: 26px 22px 20px; }
}

/* ------------------------------------------------------------------ 降低动效 */
@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; }
}
