/* ==========================================================================
   老虎游戏机登录 · 共享外壳样式 /assets/site.css
   夜场电玩城机台 · 深墨黑底 · 黑金机械面板 · 虎纹斜切 · 霓虹扫描
   ========================================================================== */

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #07070B;
  --panel: #12121A;
  --panel-2: #171722;
  --gold: #C9A227;
  --gold-lit: #F4D77A;
  --tiger: #FF6B1A;
  --neon: #3DFFA2;
  --cyan: #35D6FF;
  --paper: #F1E6CF;
  --mist: #A8A4B8;
  --red: #D9483B;

  --line: rgba(201, 162, 39, .28);
  --line-soft: rgba(168, 164, 184, .16);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 72px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
}

/* ---------- 3. Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 620px at 10% -12%, rgba(201, 162, 39, .17), transparent 62%),
    radial-gradient(900px 520px at 92% -6%, rgba(53, 214, 255, .10), transparent 62%),
    radial-gradient(700px 700px at 50% 120%, rgba(255, 107, 26, .07), transparent 65%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: .6em;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--paper);
}

p { margin-bottom: 1em; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--gold-lit); }

::selection {
  background: rgba(201, 162, 39, .38);
  color: #fff;
}

#main-content { display: block; }
#main-content:focus { outline: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tiger), var(--gold-lit));
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.9;
  color: var(--paper);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 26, .82);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.pill-gold {
  border-color: transparent;
  background: linear-gradient(160deg, var(--gold-lit), var(--gold));
  color: #0b0b0b;
  font-weight: 600;
}

.pill-neon {
  border-color: rgba(61, 255, 162, .45);
  background: rgba(61, 255, 162, .08);
  color: var(--neon);
}

.divider {
  height: 1px;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.btn-gold {
  color: #0b0b0b;
  background: linear-gradient(160deg, var(--gold-lit), var(--gold) 68%, #9a7a12);
  box-shadow: 0 0 0 1px rgba(244, 215, 122, .5), 0 12px 26px -16px rgba(201, 162, 39, .95);
}

.btn-gold:hover {
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--gold-lit), 0 0 28px rgba(201, 162, 39, .55);
}

.btn-ghost {
  color: var(--gold-lit);
  background: rgba(201, 162, 39, .05);
  border-color: rgba(201, 162, 39, .55);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(201, 162, 39, .14);
  border-color: var(--gold-lit);
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 300;
  padding: .65rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--gold-lit);
  color: #0a0a0a;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform .2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #0a0a0a;
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

/* ---------- 7. Header — 机台边框 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(18, 18, 26, .98), rgba(7, 7, 11, .97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px #000;
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 16%, var(--gold-lit) 50%, var(--gold) 84%, transparent);
  opacity: .8;
  pointer-events: none;
}

.header-inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding: .65rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.8vw, 1.6rem);
}

/* 品牌锁 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-lit), var(--gold) 56%, #8f6f13);
  color: #0a0a0a;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(244, 215, 122, .55), 0 0 16px rgba(201, 162, 39, .42);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--paper);
}

.brand-line {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-tagline {
  margin: 0;
  padding-left: .9rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: .8rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--mist);
  flex: 0 1 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  margin-inline-start: auto;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel-2);
  color: var(--paper);
  font-size: .8rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 39, .12); }

.nav-toggle-label { font-weight: 500; }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-lit);
  transition: background .18s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-lit);
  transition: transform .2s ease;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 主导航 */
.site-nav { margin-inline-start: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.1rem, .8vw, .5rem);
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: .45rem .72rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, box-shadow .22s ease;
}

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

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(201, 162, 39, .1);
}

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

.nav-link[aria-current="page"] {
  color: #0a0a0a;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  box-shadow: 0 0 16px rgba(201, 162, 39, .45);
}

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

.header-cta {
  flex: 0 0 auto;
  padding: .6rem 1.15rem;
  font-size: .84rem;
}

/* 虎纹斜切轨道 + 滚动进度 */
.header-rail {
  height: 5px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 107, 26, .92) 0 10px, rgba(255, 107, 26, 0) 10px 26px),
    linear-gradient(90deg, rgba(201, 162, 39, .8), rgba(7, 7, 11, 0) 72%);
  opacity: .55;
  pointer-events: none;
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(241, 230, 207, .08);
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit) 55%, var(--neon));
  box-shadow: 0 0 12px rgba(244, 215, 122, .7);
}

/* ---------- 8. Footer — 机房基座 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 14% 0%, rgba(201, 162, 39, .13), transparent 70%),
    radial-gradient(600px 260px at 88% 10%, rgba(53, 214, 255, .07), transparent 70%),
    linear-gradient(180deg, #0b0b11, #07070b 72%);
  color: var(--mist);
  font-size: .92rem;
}

.footer-crown {
  height: 7px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 107, 26, .9) 0 16px, rgba(255, 107, 26, 0) 16px 42px),
    linear-gradient(90deg, rgba(7, 7, 11, 0), rgba(201, 162, 39, .55) 50%, rgba(7, 7, 11, 0));
  opacity: .55;
}

.footer-inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(140px, .8fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.footer-brand {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 23, 34, .92), rgba(7, 7, 11, .72));
  box-shadow: inset 0 0 0 1px rgba(244, 215, 122, .06);
}

.brand-footer { margin-bottom: 1rem; }

.footer-tagline {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: .88rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-contact {
  display: grid;
  gap: .45rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201, 162, 39, .25);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact-key {
  flex: 0 0 auto;
  padding: .1rem .5rem;
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 39, .14);
  color: var(--gold-lit);
  font-size: .68rem;
  letter-spacing: .16em;
}

.footer-contact-note {
  margin: .4rem 0 0;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer-col {
  padding-top: .2rem;
}

.footer-col-title {
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: .55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tiger), rgba(255, 107, 26, 0));
}

.footer-links {
  display: grid;
  gap: .35rem;
}

.footer-link {
  display: inline-block;
  padding: .18rem 0;
  color: var(--mist);
  font-size: .9rem;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-lit);
  transform: translateX(4px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-copy { margin: 0; }

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--gold);
}

/* ---------- 9. Media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #15151f, #0b0b11);
  box-shadow: 0 26px 54px -38px #000, inset 0 0 0 1px rgba(244, 215, 122, .07);
}

.media img,
.media picture,
.media video {
  display: block;
  width: 100%;
  height: 100%;
}

.media img { object-fit: cover; aspect-ratio: 16 / 10; }

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: .7;
}

.media-cap {
  margin-top: .65rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .09em;
  color: var(--mist);
}

/* ---------- 10. Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244, 215, 122, .6);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-lit), var(--gold));
  color: #0a0a0a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  box-shadow: 0 0 22px rgba(201, 162, 39, .45);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

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

.to-top:hover { box-shadow: 0 0 30px rgba(244, 215, 122, .7); }

/* ---------- 11. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: markPulse 4.6s ease-in-out infinite; }

  @keyframes markPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(244, 215, 122, .5), 0 0 14px rgba(201, 162, 39, .35); }
    50% { box-shadow: 0 0 0 1px rgba(244, 215, 122, .85), 0 0 26px rgba(201, 162, 39, .7); }
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .header-tagline { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(120px, .8fr));
    gap: 1.6rem;
  }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 1.12rem; }
  .brand-name { font-size: .95rem; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: .5rem var(--gutter) 1.1rem;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 18, 26, .99), rgba(7, 7, 11, .99));
    box-shadow: 0 34px 54px -32px #000;
    margin-inline-start: 0;
  }

  .site-nav[data-nav][data-open] {
    display: block;
    animation: navDrop .24s ease both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .nav-item { width: 100%; }

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

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

  .nav-link[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(244, 215, 122, .55), 0 0 18px -6px rgba(201, 162, 39, .8);
  }

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

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

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .header-inner { gap: .5rem; padding-block: .55rem; }

  .brand-line { display: none; }

  .footer-inner { padding-bottom: 1.2rem; }

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

  .footer-legal { flex-direction: column; align-items: flex-start; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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