/* =========================================================
   亚洲城游艺 — 共享样式 /assets/site.css
   ========================================================= */

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

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #07111F;
  --ink-800: #0C1B2E;
  --ink-700: #132941;
  --line: #2B4A66;
  --line-soft: rgba(43, 74, 102, 0.60);

  --text: #ECF7FF;
  --text-muted: #A9C1D6;

  --cyan: #35E0D1;
  --coral: #FF7A5C;
  --gold: #E8B86D;
  --mint: #7BE0A3;

  --cyan-soft: rgba(53, 224, 209, 0.14);
  --coral-soft: rgba(255, 122, 92, 0.12);
  --gold-soft: rgba(232, 184, 109, 0.14);

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, "Courier New", monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;

  --edge: 2px solid var(--line);
  --radius: 2px;
  --shadow-hard: 8px 8px 0 0 rgba(43, 74, 102, 0.55);
  --shadow-cyan: 8px 8px 0 0 rgba(53, 224, 209, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1180px 520px at 82% -12%, rgba(53, 224, 209, 0.10), transparent 62%),
    radial-gradient(900px 420px at 4% 2%, rgba(232, 184, 109, 0.07), transparent 60%),
    linear-gradient(180deg, #07111F 0%, #081523 56%, #07111F 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1, .h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.03; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); letter-spacing: -0.01em; }
h4, .h4 { font-size: 1rem; letter-spacing: 0; }

p { line-height: 1.8; }

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

::selection {
  background: var(--cyan);
  color: #06131E;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.muted { color: var(--text-muted); }

.prose {
  max-width: 40em;
  color: var(--text-muted);
  line-height: 1.85;
}
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.lede {
  max-width: 36em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.rule {
  height: 2px;
  border: 0;
  background: var(--line);
}

/* ---------- 4. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--edge { border-top: var(--edge); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.stack > * + * { margin-top: clamp(12px, 1.6vw, 20px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--3-6-3 { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: #06131E;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink-900);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: var(--edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold) 8%,
    var(--cyan) 8%,
    var(--cyan) 22%,
    rgba(53, 224, 209, 0) 22%
  );
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  min-width: 0;
}
.brand__mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 4px 4px 0 0 rgba(53, 224, 209, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand:hover .brand__mark {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 rgba(255, 122, 92, 0.30);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__latin {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* 主导航 */
.header-nav { justify-self: end; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link__index {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  color: rgba(169, 193, 214, 0.5);
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(19, 41, 65, 0.72);
}
.nav-link:hover .nav-link__index { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(19, 41, 65, 0.92);
  border-color: var(--line-soft);
}
.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link--anchor { color: var(--text); }
.nav-link--anchor .nav-link__index { color: var(--gold); }
.nav-link--anchor::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

/* 页头 CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--coral);
  border-radius: var(--radius);
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 4px 4px 0 0 rgba(255, 122, 92, 0.20);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.header-cta::after { content: "→"; font-size: 0.9em; }
.header-cta:hover {
  background: var(--coral);
  color: #10202E;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 rgba(255, 122, 92, 0.35);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 12px;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--ink-900);
  border-top: var(--edge);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: min(320px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 3vw, 36px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.2fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 36ch;
}
.footer-brand__link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.footer-brand__latin {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-summary {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.85;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col:nth-child(3) { padding-top: 18px; }
.footer-col:nth-child(4) { padding-top: 36px; }

.footer-col__title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}
.footer-link::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--line);
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}
.footer-link:hover { color: var(--text); }
.footer-link:hover::before {
  width: 14px;
  background: var(--coral);
}

.footer-contact {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--edge);
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 24px);
  background: var(--ink-800);
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.copy-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 2px;
  text-align: left;
  border-bottom: 1px dashed var(--line);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.copy-value__text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--text);
  word-break: break-word;
}
.copy-value__hint {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}
.copy-value:hover { border-color: var(--cyan); }
.copy-value:hover .copy-value__text { color: var(--cyan); }
.copy-value.is-copied { border-color: var(--mint); }
.copy-value.is-copied .copy-value__text { color: var(--mint); }
.copy-value.is-copied .copy-value__hint { color: var(--mint); }

.footer-note {
  margin: 0;
  padding: 14px clamp(16px, 2vw, 24px);
  border: var(--edge);
  border-top: 0;
  background: var(--ink-800);
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.footer-meta {
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.10em;
  color: var(--text-muted);
}
.footer-meta p { margin: 0; }

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-legal__link {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-legal__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.footer-legal__sep { color: var(--line); }
.footer-icp { color: var(--gold); }

/* ---------- 8. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  box-shadow: 5px 5px 0 0 rgba(43, 74, 102, 0.60);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
              background-color 0.16s var(--ease), border-color 0.16s var(--ease),
              color 0.16s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 0 rgba(53, 224, 209, 0.28);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 0 rgba(53, 224, 209, 0.28);
}

.btn--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #10202E;
  font-weight: 700;
  box-shadow: 5px 5px 0 0 rgba(255, 122, 92, 0.26);
}
.btn--primary:hover {
  border-color: var(--coral);
  box-shadow: 8px 8px 0 0 rgba(255, 122, 92, 0.34);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.6875rem;
  box-shadow: 3px 3px 0 0 rgba(43, 74, 102, 0.55);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--ink-700);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(53, 224, 209, 0.45); background: var(--cyan-soft); }
.tag--gold { color: var(--gold); border-color: rgba(232, 184, 109, 0.45); background: var(--gold-soft); }
.tag--coral { color: var(--coral); border-color: rgba(255, 122, 92, 0.45); background: var(--coral-soft); }
.tag--mint { color: var(--mint); border-color: rgba(123, 224, 163, 0.45); background: rgba(123, 224, 163, 0.12); }

.card {
  position: relative;
  background: var(--ink-800);
  border: var(--edge);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--line);
  box-shadow: var(--shadow-cyan);
}
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--line); }

.media {
  position: relative;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--radius);
  background-color: var(--ink-700);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(43, 74, 102, 0.40) 0 2px,
    transparent 2px 14px
  );
  aspect-ratio: 16 / 10;
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }
.media--slant { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); }
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.92));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.media__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.breadcrumb {
  border-bottom: 1px solid var(--line-soft);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.crumbs a { transition: color 0.18s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--text); }

.meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.meta-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
}
.meta-list dt { color: var(--text-muted); }
.meta-list dd { margin: 0; color: var(--text); }

/* ---------- 9. 滚动进度与显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  z-index: 200;
  pointer-events: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 110;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--ink-800);
    border-bottom: var(--edge);
    box-shadow: 0 24px 40px rgba(7, 17, 31, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s linear;
  }
  .header-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link {
    width: 100%;
    padding: 16px 6px;
    border: 0;
    border-radius: 0;
    font-size: 0.9375rem;
  }
  .nav-link::after {
    left: 6px;
    right: auto;
    bottom: 10px;
    width: 40px;
  }
  .nav-link[aria-current="page"] {
    background: rgba(53, 224, 209, 0.08);
    border-color: transparent;
  }

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) { padding-top: 0; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3,
  .grid--4-8,
  .grid--5-7 { grid-template-columns: minmax(0, 1fr); }
  .brand__latin { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .brand__mark { width: 32px; height: 32px; font-size: 0.875rem; }
  .brand__name { font-size: 0.975rem; }
  .nav-toggle__text { display: none; }
}

/* ---------- 11. 动效降级 ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn:hover,
  .btn:active,
  .header-cta:hover,
  .brand:hover .brand__mark {
    transform: none;
  }
}
