/* ==========================================================================
   爱游戏娱乐 · 热带夜场转播台
   全站共享样式 → /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, h6,
p, figure, blockquote, dl, dd, ol, ul { margin: 0; }

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

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

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

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

button { background: none; border: 0; }

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

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色彩 */
  --ink-950: #03111C;
  --blue-900: #061A2B;
  --blue-800: #0B2942;
  --cyan-500: #20D7E8;
  --cyan-300: #7FF3FF;
  --coral-500: #FF6B4A;
  --green-500: #43C86B;
  --sand-050: #F4F8FA;
  --mist-400: #6F8FA6;

  --line: rgba(127, 243, 255, 0.34);
  --line-soft: rgba(127, 243, 255, 0.14);
  --on-dark: rgba(244, 248, 250, 0.76);
  --on-dark-dim: rgba(244, 248, 250, 0.52);

  /* 排版 */
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 76px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-card: 0 1px 0 rgba(127, 243, 255, 0.05), 0 24px 44px -34px rgba(3, 17, 28, 0.95);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.78;
  color: var(--sand-050);
  background-color: var(--blue-900);
  background-image:
    radial-gradient(1200px 620px at 10% -10%, rgba(32, 215, 232, 0.1), transparent 62%),
    radial-gradient(900px 520px at 94% 2%, rgba(255, 107, 74, 0.07), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.018em;
}

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.4vw, 24px); line-height: 1.26; }
h4 { font-size: clamp(16px, 1vw, 18px); line-height: 1.34; }

p { line-height: 1.82; }

strong { font-weight: 700; }

::selection {
  background: var(--cyan-500);
  color: var(--ink-950);
}

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

/* ---------- 4. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

#main-content {
  padding-top: var(--header-h);
  scroll-margin-top: var(--header-h);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 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)); }

.rule {
  height: 1px;
  border: 0;
  background-image: linear-gradient(90deg, var(--line), rgba(127, 243, 255, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan-500);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.prose { max-width: 44em; }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--cyan-300); border-bottom: 1px solid rgba(127, 243, 255, 0.4); }

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

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: var(--ink-950);
}
.btn-primary:hover { background: #FF8465; border-color: #FF8465; }

.btn-ghost {
  background: rgba(32, 215, 232, 0.07);
  border-color: rgba(127, 243, 255, 0.42);
  color: var(--cyan-300);
}
.btn-ghost:hover {
  background: rgba(32, 215, 232, 0.16);
  border-color: var(--cyan-300);
  color: var(--sand-050);
}

/* ---------- 6. Tags / cards / media ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(32, 215, 232, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(32, 215, 232, 0.13);
  color: var(--cyan-300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.tag-cyan { border-color: rgba(32, 215, 232, 0.38); background: rgba(32, 215, 232, 0.13); color: var(--cyan-300); }
.tag-coral { border-color: rgba(255, 107, 74, 0.42); background: rgba(255, 107, 74, 0.14); color: #FF9A7D; }
.tag-green { border-color: rgba(67, 200, 107, 0.42); background: rgba(67, 200, 107, 0.14); color: #7FE3A0; }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background-image: linear-gradient(180deg, rgba(11, 41, 66, 0.92), rgba(6, 26, 43, 0.94));
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line); }

.card--light {
  background-image: none;
  background-color: var(--sand-050);
  border-color: rgba(6, 26, 43, 0.12);
  color: var(--blue-900);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background-color: var(--blue-800);
  background-image: linear-gradient(155deg, rgba(32, 215, 232, 0.18), rgba(11, 41, 66, 0.85) 55%, rgba(3, 17, 28, 0.96));
  box-shadow: var(--shadow-card);
}
.media > img,
.media > picture,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--on-dark-dim);
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--on-dark-dim);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(127, 243, 255, 0.42);
}
.breadcrumb a { color: var(--cyan-300); }
.breadcrumb a:hover { color: var(--sand-050); }
.breadcrumb [aria-current="page"] { color: var(--sand-050); }

/* ---------- 8. Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(3, 17, 28, 0.55);
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--on-dark);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-btn:hover { color: var(--sand-050); background: rgba(32, 215, 232, 0.12); }
.filter-btn.is-active {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  color: var(--ink-950);
}

/* ---------- 9. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--cyan-500);
  color: var(--ink-950);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 10. Site header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: rgba(6, 26, 43, 0);
  background-image: linear-gradient(180deg, rgba(3, 17, 28, 0.78), rgba(3, 17, 28, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.site-header[data-scrolled] {
  background-color: rgba(6, 26, 43, 0.95);
  background-image: none;
  border-bottom-color: var(--line-soft);
  box-shadow: 0 18px 48px -38px #000;
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  backdrop-filter: saturate(130%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--cyan-500);
  border-radius: var(--radius-sm);
  background-image: linear-gradient(150deg, rgba(32, 215, 232, 0.22), rgba(32, 215, 232, 0));
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--coral-500);
  border-radius: 1px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--cyan-300);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--sand-050);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--on-dark-dim);
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
}
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease);
}
.nav-link:hover { color: var(--sand-050); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--sand-050); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--coral-500);
}

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

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(32, 215, 232, 0.08);
  color: var(--sand-050);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(32, 215, 232, 0.16); border-color: var(--cyan-300); }

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 18px;
  flex: none;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan-300);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-label { line-height: 1; }

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

/* 阅读进度尺 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.scroll-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--cyan-500), var(--coral-500));
  transition: width 0.12s linear;
}

/* ---------- 11. Site footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 96px);
  background-color: var(--ink-950);
  border-top: 1px solid var(--line-soft);
  color: var(--on-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(30px, 4.5vw, 54px);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid rgba(32, 215, 232, 0.6);
  border-radius: var(--radius-sm);
}
.footer-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 107, 74, 0.85);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--sand-050);
}

.footer-summary {
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(244, 248, 250, 0.66);
}

.footer-contacts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(244, 248, 250, 0.74);
}
.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  line-height: 1.6;
}
.footer-contact-key {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--cyan-500);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 12px;
  border: 1px solid rgba(127, 243, 255, 0.22);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(244, 248, 250, 0.62);
}
.footer-stamp-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(67, 200, 107, 0.18);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.footer-list { display: grid; gap: 11px; }
.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: rgba(244, 248, 250, 0.78);
  transition: color 0.2s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.footer-link:hover { color: var(--sand-050); }
.footer-link:hover::after { transform: scaleX(1); }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 34px;
  border-top: 1px solid rgba(127, 243, 255, 0.12);
  font-size: 12.5px;
  color: var(--mist-400);
}
.footer-legal {
  max-width: 62ch;
  line-height: 1.72;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(244, 248, 250, 0.56);
}
.footer-copy { color: rgba(244, 248, 250, 0.44); }

/* ---------- 12. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 64px; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 16px var(--gutter) 26px;
    background-color: var(--blue-800);
    background-image: linear-gradient(180deg, rgba(11, 41, 66, 0.99), rgba(3, 17, 28, 0.99));
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 34px 64px -34px #000;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-header[data-open] .primary-nav { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    letter-spacing: 0.06em;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--cyan-500); }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }
  .nav-actions .btn { width: 100%; padding-block: 14px; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-summary { max-width: none; }
}

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

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .brand-name { font-size: 15.5px; }
  .brand-line { font-size: 9.5px; letter-spacing: 0.16em; }
  .brand-mark { width: 30px; height: 30px; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .filter-btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- 14. 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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-meter { display: none !important; }
  #main-content { padding-top: 0; }
  body { background: #fff; color: #000; }
}
