/* ============================================================
   /assets/site.css — 澳门王牌站 全站共享样式
   墨绿底 × 酒红分区 × 午夜靛面板 × 霓虹金 × 电光青
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

button { background: none; border: 0; cursor: pointer; }

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink-green-900: #071A16;
  --wine-900: #2A0A12;
  --indigo-950: #0E1220;
  --neon-gold-400: #E9B949;
  --electric-cyan-400: #37E1D3;
  --brass-600: #A8783A;
  --bone-100: #F2EFE7;
  --mist-400: #9BA6A2;

  --bg: var(--ink-green-900);
  --text: var(--bone-100);
  --text-dim: var(--mist-400);
  --line: rgba(168, 120, 58, 0.30);
  --line-strong: rgba(233, 185, 73, 0.45);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-narrow: "Archivo Narrow", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --entry-h: 64px;
  --rail-w: 88px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --glow-gold: 0 0 0 1px rgba(233, 185, 73, 0.35), 0 0 22px rgba(233, 185, 73, 0.22);
  --glow-cyan: 0 0 0 1px rgba(55, 225, 211, 0.42), 0 0 20px rgba(55, 225, 211, 0.25);
}

/* ---------- base ---------- */
html, body { min-height: 100%; }

body {
  background-color: var(--ink-green-900);
  background-image:
    repeating-linear-gradient(0deg, rgba(168, 120, 58, 0.055) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(90deg, rgba(168, 120, 58, 0.045) 0 1px, transparent 1px 88px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  padding-top: var(--entry-h);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 680px) {
  :root { --entry-h: 104px; }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--bone-100);
}

h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.125rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p { max-width: 68ch; }

strong { color: var(--neon-gold-400); font-weight: 600; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--electric-cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) { outline: none; }

/* ---------- layout utilities ---------- */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.shell--wide { max-width: 1560px; }
.shell--narrow { max-width: 780px; }

.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(168, 120, 58, 0.7), rgba(168, 120, 58, 0.05));
}

/* ---------- basic components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-narrow);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.92), rgba(7, 26, 22, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 34px);
}

.panel--slant {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  border-radius: var(--radius-lg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 32, 0.6);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist-400);
  transition: color 160ms var(--ease), border-color 160ms var(--ease),
    background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.pill:hover {
  color: var(--neon-gold-400);
  border-color: var(--line-strong);
}

.pill[aria-pressed="true"],
.pill[data-active] {
  color: #04201C;
  background: var(--electric-cyan-400);
  border-color: var(--electric-cyan-400);
  box-shadow: 0 0 18px rgba(55, 225, 211, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(233, 185, 73, 0.08);
  color: var(--neon-gold-400);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    background 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(233, 185, 73, 0.16);
  box-shadow: var(--glow-gold);
}

.btn--cyan {
  color: var(--electric-cyan-400);
  border-color: rgba(55, 225, 211, 0.45);
  background: rgba(55, 225, 211, 0.07);
}

.btn--cyan:hover {
  background: rgba(55, 225, 211, 0.14);
  box-shadow: var(--glow-cyan);
}

.btn--solid {
  background: var(--neon-gold-400);
  border-color: transparent;
  color: #08160F;
  font-weight: 700;
}

.btn--solid:hover {
  background: #F3C85C;
  box-shadow: 0 0 28px rgba(233, 185, 73, 0.45);
}

.breadcrumb {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--brass-600);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(168, 120, 58, 0.6);
}

.breadcrumb a { color: var(--mist-400); }
.breadcrumb a:hover { color: var(--electric-cyan-400); }
.breadcrumb [aria-current="page"] { color: var(--bone-100); }

.idx-table { font-size: 14.5px; }

.idx-table thead th {
  font-family: var(--font-narrow);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: left;
  color: var(--brass-600);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.idx-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(168, 120, 58, 0.16);
  color: var(--mist-400);
  vertical-align: top;
}

.idx-table tbody tr { transition: background 160ms var(--ease); }

.idx-table tbody tr:hover td {
  background: rgba(233, 185, 73, 0.05);
  color: var(--bone-100);
}

.idx-table .mono { color: var(--bone-100); }

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

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

.accordion__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--bone-100);
  transition: color 180ms var(--ease);
}

.accordion__btn:hover { color: var(--neon-gold-400); }

.accordion__btn::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 240ms var(--ease);
}

.accordion__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}

.accordion__panel[data-open] { grid-template-rows: 1fr; }

.accordion__panel > div {
  overflow: hidden;
  color: var(--text-dim);
}

.accordion__panel > div > * { padding-bottom: 6px; }
.accordion__panel > div > *:last-child { padding-bottom: 22px; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(42, 10, 18, 0.92), rgba(14, 18, 32, 0.95) 55%, rgba(7, 26, 22, 0.95));
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(242, 239, 231, 0.05) 0 1px, transparent 1px 4px);
}

.media-frame > img,
.media-frame > picture { display: block; width: 100%; height: 100%; }

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 9 / 16; }

.media-frame--slant { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.media-frame--slant-up { clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }

.media-figure { display: flex; flex-direction: column; gap: 12px; }

.media-figure__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist-400);
}

[data-filtered-out] { display: none !important; }

/* ---------- reveal ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.has-js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 18, 32, 0.92);
  color: var(--neon-gold-400);
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--neon-gold-400);
  color: #071A16;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 180ms var(--ease);
}

.skip-link:focus { top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: relative; z-index: 70; }

.entry-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  background: rgba(6, 22, 19, 0.93);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.entry-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 clamp(14px, 3vw, 40px);
  max-width: 1680px;
  margin-inline: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark__cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--bone-100);
  text-shadow: 0 0 18px rgba(233, 185, 73, 0.35);
  transition: color 180ms var(--ease), text-shadow 180ms var(--ease);
}

.brand-mark__en {
  font-family: var(--font-narrow);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--neon-gold-400);
}

.brand-mark:hover .brand-mark__cn,
.brand-mark:focus-visible .brand-mark__cn {
  color: var(--neon-gold-400);
  text-shadow: 0 0 24px rgba(233, 185, 73, 0.6);
}

.entry-bar__note {
  font-size: 13.5px;
  color: var(--mist-400);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(233, 185, 73, 0.07);
  color: var(--neon-gold-400);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}

.copy-btn:hover {
  background: rgba(233, 185, 73, 0.16);
  box-shadow: var(--glow-gold);
}

.copy-btn__icon {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.copy-btn__icon::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.5;
}

.copy-btn[data-copied]::after {
  content: attr(data-copied);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--electric-cyan-400);
  color: #05201D;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  z-index: 6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.quick-search {
  position: relative;
  flex: 0 1 250px;
  margin-left: auto;
}

.quick-search__input {
  width: 100%;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 32, 0.85);
  color: var(--bone-100);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.quick-search__input::placeholder { color: rgba(155, 166, 162, 0.7); }

.quick-search__input:focus {
  outline: none;
  border-color: var(--electric-cyan-400);
  box-shadow: var(--glow-cyan);
}

.quick-search__hint {
  position: absolute;
  left: 16px;
  top: calc(100% + 8px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--electric-cyan-400);
  white-space: nowrap;
}

.quick-search__hint:empty { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--bone-100);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.nav-toggle:hover {
  color: var(--electric-cyan-400);
  border-color: var(--electric-cyan-400);
  box-shadow: var(--glow-cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease), top 240ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-gold-400), var(--electric-cyan-400));
  box-shadow: 0 0 12px rgba(55, 225, 211, 0.5);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============================================================
   RAIL NAV
   ============================================================ */
.rail {
  position: fixed;
  z-index: 60;
  top: var(--entry-h);
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 28px;
  background: linear-gradient(190deg, #0A211C 0%, var(--indigo-950) 74%);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 340ms var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail[data-open] { transform: translateX(0); }

.rail__line { display: none; }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-narrow);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.rail__link:hover {
  color: var(--neon-gold-400);
  background: rgba(233, 185, 73, 0.06);
  box-shadow: var(--glow-gold);
}

.rail__link[aria-current="page"],
.rail__link[data-rail-active] {
  color: var(--neon-gold-400);
  background: rgba(233, 185, 73, 0.09);
}

.rail__link[aria-current="page"]::before,
.rail__link[data-rail-active]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--neon-gold-400);
  box-shadow: 0 0 12px rgba(233, 185, 73, 0.7);
  animation: rail-breathe 2.4s ease-in-out infinite;
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass-600);
}

.rail__link[aria-current="page"] .rail__idx,
.rail__link[data-rail-active] .rail__idx { color: var(--electric-cyan-400); }

.rail__label { font-family: var(--font-body); letter-spacing: 0.14em; }

.rail__foot {
  margin-top: auto;
  padding-top: 22px;
}

.rail__cta {
  display: block;
  text-align: center;
  padding: 13px 10px;
  border-radius: 14px;
  background: rgba(233, 185, 73, 0.1);
  border: 1px solid rgba(233, 185, 73, 0.42);
  color: var(--neon-gold-400);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.rail__cta:hover {
  background: rgba(233, 185, 73, 0.2);
  box-shadow: var(--glow-gold);
}

@keyframes rail-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

body.nav-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 11, 0.7);
  z-index: 55;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  body.nav-open::after { display: none; }

  .rail {
    width: var(--rail-w);
    max-width: none;
    transform: none;
    padding: 18px 0 22px;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 33, 28, 0.96), rgba(14, 18, 32, 0.98));
    overflow-y: hidden;
  }

  .rail__line {
    display: block;
    position: absolute;
    top: 54px;
    bottom: 108px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(168, 120, 58, 0.5) 18%, rgba(168, 120, 58, 0.5) 82%, transparent);
  }

  .rail__list {
    flex: 1;
    justify-content: center;
    gap: 8px;
    padding: 0 6px;
  }

  .rail__link {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding: 12px 6px;
    font-size: 13px;
  }

  .rail__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    line-height: 1.1;
  }

  .rail__link[aria-current="page"]::before,
  .rail__link[data-rail-active]::before {
    left: 50%;
    top: auto;
    bottom: 2px;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    box-shadow: 0 0 12px rgba(233, 185, 73, 0.7);
  }

  .rail__foot {
    width: 100%;
    padding: 16px 10px 0;
  }

  .rail__cta {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.24em;
    margin-inline: auto;
    padding: 16px 8px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background: linear-gradient(180deg, var(--wine-900) 0%, #0A0509 58%, #05100E 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--text-dim);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 185, 73, 0.75), rgba(55, 225, 211, 0.5), transparent);
}

.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(52px, 7vw, 88px) clamp(18px, 4vw, 48px) 36px;
  display: grid;
  gap: clamp(32px, 4vw, 52px);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .site-footer__inner { grid-template-columns: 1fr 1.35fr 1fr; }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-600);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.footer-index__list a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
    background 180ms var(--ease), transform 180ms var(--ease);
}

.footer-index__list a:hover {
  color: var(--electric-cyan-400);
  border-color: rgba(55, 225, 211, 0.55);
  background: rgba(55, 225, 211, 0.07);
  transform: translateY(-2px);
}

.signboard {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 30px 26px 26px;
  border-radius: var(--radius-md);
  background: radial-gradient(130% 150% at 10% 0%, rgba(233, 185, 73, 0.24) 0%, rgba(42, 10, 18, 0.88) 58%, rgba(14, 18, 32, 0.96) 100%);
  border: 2px solid rgba(233, 185, 73, 0.5);
  box-shadow: 0 0 26px rgba(233, 185, 73, 0.16), inset 0 0 34px rgba(233, 185, 73, 0.07);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.signboard:hover,
.signboard:focus-visible {
  transform: translateY(-2px);
  border-color: var(--neon-gold-400);
  box-shadow: 0 0 46px rgba(233, 185, 73, 0.32), inset 0 0 40px rgba(233, 185, 73, 0.12);
}

.signboard__glow {
  position: absolute;
  inset: 9px;
  border-radius: 13px;
  border: 1px solid rgba(55, 225, 211, 0.32);
  box-shadow: inset 0 0 22px rgba(55, 225, 211, 0.14);
  pointer-events: none;
}

.signboard__cn {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0.1em;
  color: var(--bone-100);
  text-shadow: 0 0 14px rgba(233, 185, 73, 0.6), 0 0 40px rgba(233, 185, 73, 0.3);
}

.signboard__en {
  display: block;
  margin-top: 10px;
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--electric-cyan-400);
}

.signboard__note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--mist-400);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-line__key {
  font-family: var(--font-narrow);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-600);
}

.contact-line__val {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--bone-100);
  word-break: break-all;
}

.contact-line__val--text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-100);
  word-break: normal;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(155, 166, 162, 0.86);
}

.footer-meta__brand {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--bone-100);
}

.footer-meta__links { margin-left: auto; }

.footer-meta__links a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer-meta__links a:hover {
  color: var(--electric-cyan-400);
  border-bottom-color: currentColor;
}

/* ---------- header responsive ---------- */
@media (max-width: 1180px) {
  .entry-bar__note { display: none; }
}

@media (max-width: 900px) {
  .quick-search { flex: 0 1 190px; }
}

@media (max-width: 680px) {
  .entry-bar__inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    row-gap: 8px;
  }

  .brand-mark { margin-right: auto; }
  .brand-mark__cn { font-size: 19px; }

  .quick-search {
    order: 5;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .quick-search__hint {
    position: static;
    display: block;
    margin-top: 4px;
  }
}

/* ---------- motion & print ---------- */
@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;
  }

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