/* =========================================================
   355娱乐会 · 共享 Site Kit  /assets/site.css
   夜间控制台：深空蓝黑 + 热力橙 / 霓虹青 / 琥珀金
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* 矿物 + 霓虹色板 */
  --c-void: #070B14;
  --c-rock: #1A2230;
  --c-stone: #3A4658;
  --c-cream: #F2EEE6;
  --c-heat: #FF6A2A;
  --c-neon: #38F2D0;
  --c-amber: #F5B84B;
  --c-moss: #6F8F6A;
  --c-clay: #C56A4A;
  --c-glass: #1E3A5F;

  /* 派生 */
  --c-mute: #8B98AB;
  --c-line: rgba(58, 70, 88, 0.72);
  --c-line-soft: rgba(58, 70, 88, 0.42);
  --c-glass-fill: rgba(30, 58, 95, 0.44);
  --c-glass-edge: rgba(56, 242, 208, 0.16);
  --c-ink-on-warm: #1B0902;

  /* 字体 */
  --font-head: "Oswald", "Barlow Condensed", "PingFang SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  /* 字号阶梯 12 / 14 / 16 / 20 / 28 / 40 / 64 / 96 / 132 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-28: 1.75rem;
  --fs-40: 2.5rem;
  --fs-64: 4rem;
  --fs-96: 6rem;
  --fs-132: 8.25rem;

  /* 形状 */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-float: 0 18px 44px -22px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(242, 238, 230, 0.09);
  --sh-deep: 0 30px 70px -40px rgba(0, 0, 0, 1);

  /* 节奏 */
  --pad-x: clamp(16px, 4vw, 48px);
  --sec-y: clamp(48px, 7vw, 96px);
  --gap: clamp(16px, 2.4vw, 28px);
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--c-void);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 对角光斑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 48vh at 88% -6%, rgba(255, 106, 42, 0.14), transparent 62%),
    radial-gradient(46vw 42vh at 2% 14%, rgba(56, 242, 208, 0.09), transparent 66%),
    radial-gradient(80vw 60vh at 50% 112%, rgba(30, 58, 95, 0.55), transparent 72%);
}

/* 极慢漂移光栅 */
body::after {
  content: "";
  position: fixed;
  inset: -128px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(90deg, rgba(242, 238, 230, 0.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(242, 238, 230, 0.035) 0 1px, transparent 1px 64px);
  animation: raster-drift 34s linear infinite;
  will-change: transform;
}

@keyframes raster-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-64px, -64px, 0); }
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  padding-top: clamp(88px, 10vw, 118px);
}

.main-flush {
  padding-top: 0;
}

#main-content {
  scroll-margin-top: 104px;
}

a {
  text-decoration: none;
  color: var(--c-neon);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--c-cream);
}

/* 焦点可见 */
:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: min(1240px, calc(100% - clamp(24px, 5vw, 72px)));
  margin-inline: auto;
}

.shell--narrow {
  width: min(780px, calc(100% - clamp(24px, 5vw, 72px)));
  margin-inline: auto;
}

.shell--wide {
  width: min(1440px, calc(100% - clamp(20px, 4vw, 48px)));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.stack {
  display: grid;
  gap: var(--gap);
  align-content: start;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 排版组件 ---------- */
.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--c-cream);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-amber);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
  flex: none;
}

.prose {
  font-size: 1.03rem;
  line-height: 1.85;
  color: rgba(242, 238, 230, 0.82);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 1.9em;
  color: var(--c-cream);
}

.prose h3 {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 1.6em;
  color: var(--c-cream);
}

.prose strong {
  color: var(--c-cream);
  font-weight: 700;
}

.prose a {
  color: var(--c-neon);
  border-bottom: 1px solid rgba(56, 242, 208, 0.4);
  padding-bottom: 1px;
}

.prose a:hover {
  color: var(--c-cream);
  border-bottom-color: var(--c-cream);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: none;
}

.prose li {
  position: relative;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c-heat);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol > li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: -1.9em;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
  color: var(--c-heat);
}

.prose blockquote {
  border-left: 3px solid var(--c-amber);
  padding-left: 1.1em;
  color: rgba(242, 238, 230, 0.72);
}

/* ---------- 6. 卡片 / 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-l);
  background: var(--c-rock);
  border: 1px solid var(--c-line);
  color: var(--c-cream);
}

.panel--glass {
  background: linear-gradient(165deg, rgba(30, 58, 95, 0.52), rgba(10, 16, 26, 0.74));
  border-color: var(--c-glass-edge);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--sh-float);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(56, 242, 208, 0.1);
  color: var(--c-neon);
  border: 1px solid rgba(56, 242, 208, 0.28);
  white-space: nowrap;
}

.path {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-cream);
  border-bottom: 2px solid var(--c-neon);
  padding-bottom: 2px;
  word-break: break-all;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  --btn-bg: var(--c-heat);
  --btn-fg: var(--c-ink-on-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px var(--btn-bg);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-cream);
  border-color: rgba(242, 238, 230, 0.24);
}

.btn--ghost:hover {
  border-color: var(--c-neon);
  color: var(--c-neon);
  box-shadow: 0 16px 32px -22px var(--c-neon);
}

.btn--neon {
  --btn-bg: var(--c-neon);
  --btn-fg: #04231E;
}

.btn--amber {
  --btn-bg: var(--c-amber);
  --btn-fg: #251A04;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(16px, 2.2vw, 26px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  list-style: none;
}

.crumbs > li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crumbs > li + li::before {
  content: "/";
  color: var(--c-stone);
}

.crumbs a {
  color: var(--c-mute);
  transition: color 0.18s ease;
}

.crumbs a:hover {
  color: var(--c-neon);
}

.crumbs [aria-current="page"] {
  color: var(--c-amber);
}

/* ---------- 9. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-m);
  border: 1px solid var(--c-line);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 106, 42, 0.22), transparent 56%),
    radial-gradient(circle at 76% 84%, rgba(56, 242, 208, 0.18), transparent 58%),
    var(--c-rock);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 46%, rgba(7, 11, 20, 0.62));
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-neon);
  color: #04231E;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c-cream);
  outline-offset: 2px;
}

/* ---------- 11. 滚动进度线 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 240;
  pointer-events: none;
  background: rgba(58, 70, 88, 0.34);
}

.scroll-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--c-heat) 0%, var(--c-amber) 52%, var(--c-neon) 100%);
  transition: transform 0.09s linear;
}

/* ---------- 12. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 18px) clamp(12px, 3vw, 40px);
  pointer-events: none;
}

.header-island {
  position: relative;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 7px clamp(10px, 1.6vw, 16px) 7px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.62), rgba(11, 17, 28, 0.86));
  border: 1px solid var(--c-glass-edge);
  box-shadow: var(--sh-float);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-header[data-scrolled] .header-island {
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.9), rgba(7, 11, 20, 0.96));
  border-color: rgba(56, 242, 208, 0.24);
  box-shadow: 0 24px 56px -26px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(242, 238, 230, 0.12);
}

/* 品牌柱 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--c-cream);
}

.brand-mark {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--c-heat), #B33A0D 58%, var(--c-clay));
  box-shadow: inset 0 0 0 1px rgba(7, 11, 20, 0.45),
    0 8px 18px -10px rgba(255, 106, 42, 0.9);
}

.brand-mark i {
  display: block;
  border-radius: 1px;
  background: rgba(7, 11, 20, 0.82);
}

.brand-mark i:nth-child(1) { height: 40%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 66%; }

.brand-type {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  white-space: nowrap;
}

.brand-ver {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2A1B05;
  background: var(--c-amber);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px rgba(7, 11, 20, 0.4);
}

/* 汉堡 */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(242, 238, 230, 0.16);
  background: rgba(56, 242, 208, 0.08);
  color: var(--c-cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(56, 242, 208, 0.16);
  border-color: rgba(56, 242, 208, 0.4);
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle-bar:nth-child(1) { transform: translateY(-7px); }
.nav-toggle-bar:nth-child(2) { transform: translateY(0); }
.nav-toggle-bar:nth-child(3) { transform: translateY(7px); }

.site-header[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: translateY(0) scaleX(0.2);
}

.site-header[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  min-width: 0;
}

.nav-item {
  display: block;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(242, 238, 230, 0.74);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c-neon);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--c-cream);
  background: rgba(56, 242, 208, 0.09);
}

.nav-link:hover::after {
  width: 42%;
}

.nav-link[aria-current="page"] {
  color: var(--c-ink-on-warm);
  background: var(--c-heat);
  box-shadow: 0 10px 22px -12px rgba(255, 106, 42, 0.95);
}

.nav-link[aria-current="page"]::after {
  width: 0;
}

/* 工具入口 */
.nav-utility {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: clamp(6px, 1.4vw, 14px);
  border-left: 1px solid var(--c-line);
  flex: none;
}

.util-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  color: #04231E;
  background: var(--c-neon);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}

.util-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px var(--c-neon);
}

.util-link--alt {
  color: var(--c-cream);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 238, 230, 0.2);
}

.util-link--alt:hover {
  color: var(--c-amber);
  background: rgba(245, 184, 75, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 184, 75, 0.6);
}

/* ---------- 13. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  background: linear-gradient(180deg, rgba(26, 34, 48, 0.86) 0%, #05080F 76%);
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(245, 184, 75, 0) 0%,
    var(--c-amber) 22%,
    var(--c-heat) 50%,
    var(--c-neon) 78%,
    rgba(56, 242, 208, 0) 100%
  );
  opacity: 0.72;
}

.footer-shell {
  width: min(1240px, calc(100% - clamp(24px, 5vw, 72px)));
  margin-inline: auto;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--c-line-soft);
}

.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.footer-brand__mark {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(60px, 9vw, 108px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 184, 75, 0.42);
  text-shadow: 0 0 34px rgba(245, 184, 75, 0.16);
  margin-bottom: 6px;
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  line-height: 1.2;
}

.footer-brand__line {
  font-size: 0.875rem;
  color: rgba(242, 238, 230, 0.72);
  max-width: 34ch;
}

.footer-brand__note {
  font-size: 0.8125rem;
  line-height: 1.72;
  color: var(--c-mute);
  max-width: 42ch;
}

.footer-col,
.footer-contact {
  min-width: 0;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(242, 238, 230, 0.74);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover {
  color: var(--c-neon);
  transform: translateX(3px);
}

.contact-list {
  display: grid;
  gap: 13px;
}

.contact-list__row {
  display: grid;
  gap: 2px;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.contact-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-cream);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: clamp(20px, 3vw, 30px);
  font-size: 0.78rem;
  color: var(--c-mute);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(242, 238, 230, 0.6);
}

.footer-note {
  color: var(--c-mute);
}

/* ---------- 14. 入场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式：窄桌面 ---------- */
@media (max-width: 1180px) and (min-width: 1024px) {
  .brand-sub { display: none; }
  .nav-link { padding: 9px 9px; font-size: 0.84rem; }
  .util-link { padding: 8px 11px; font-size: 0.76rem; }
  .nav-list { gap: 0; }
}

/* ---------- 16. 响应式：平板 / 移动导航 ---------- */
@media (max-width: 1023px) {
  .site-header {
    padding: 10px 12px;
    align-items: flex-start;
  }

  .header-island {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r-l);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: var(--r-l);
    background: linear-gradient(180deg, rgba(20, 32, 52, 0.97), rgba(7, 11, 20, 0.99));
    border: 1px solid var(--c-glass-edge);
    box-shadow: var(--sh-deep);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.19s ease, transform 0.19s ease, visibility 0.19s linear;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-inline: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(56, 242, 208, 0.1);
  }

  .nav-utility {
    flex-direction: row;
    gap: 8px;
    width: 100%;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--c-line);
  }

  .util-link {
    flex: 1 1 0;
    padding: 11px 12px;
    font-size: 0.84rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand__mark {
    font-size: clamp(56px, 14vw, 92px);
  }
}

/* ---------- 17. 响应式：手机 ---------- */
@media (max-width: 767px) {
  main {
    padding-top: clamp(80px, 20vw, 96px);
  }

  body::after {
    animation: none;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-ver {
    font-size: 0.6rem;
    padding: 3px 7px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .display {
    font-size: clamp(40px, 13vw, 72px);
  }
}

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

  .nav-link {
    font-size: 0.95rem;
    padding: 11px 12px;
  }
}

/* ---------- 18. 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  body::after {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-meter::after {
    transition: none;
  }
}
