/* ==========================================================================
   乐投娱乐游艺 · 全站共享样式  /assets/site.css
   色彩节奏：深墨蓝底 / 墨蓝浅阶实色层 / 暖金橙强调 / 青瓷绿·珊瑚粉状态
   ========================================================================== */

/* ── 1. 变量 ─────────────────────────────────────────────────────────── */
:root {
  --ink-900: #08161F;
  --ink-800: #0E2233;
  --ink-700: #16324A;
  --ink-650: #1D3E58;

  --gold: #F5A524;
  --gold-deep: #C97F12;
  --jade: #3FBFA0;
  --coral: #F2708A;
  --indigo: #5A4FCF;

  --paper: #F2EFE6;
  --slate: #8C9AA6;

  --glass: rgba(242, 239, 230, 0.07);
  --glass-strong: rgba(242, 239, 230, 0.11);
  --line: rgba(242, 239, 230, 0.14);
  --line-soft: rgba(242, 239, 230, 0.08);

  --shell: 1180px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 11px;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-1: 56px;
  --fs-2: 40px;
  --fs-3: 28px;
  --fs-4: 22px;
  --fs-5: 17px;
  --fs-6: 14px;
  --fs-7: 12px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 640px at 88% -10%, rgba(90, 79, 207, .22), transparent 62%),
    radial-gradient(780px 520px at 2% 14%, rgba(63, 191, 160, .10), transparent 58%),
    var(--ink-800);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-5);
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(32px, 5.2vw, var(--fs-1)); }
h2 { font-size: clamp(24px, 3.4vw, var(--fs-2)); }
h3 { font-size: clamp(20px, 2.4vw, var(--fs-3)); }
h4 { font-size: var(--fs-4); }

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

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

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

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

/* ── 3. 焦点与无障碍 ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 90;
  padding: 11px 18px;
  background: var(--gold);
  color: #1A1204;
  font-size: var(--fs-6);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── 4. 页头：双层信息导航 ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 27, 41, .9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-deep) 52%, var(--indigo) 100%);
  box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(245, 165, 36, .22);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  background: var(--ink-800);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; }

.brand__name {
  font-size: var(--fs-5);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--slate);
  text-transform: uppercase;
  white-space: nowrap;
}

.brandbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.lang-switch__btn {
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--fs-7);
  letter-spacing: .06em;
  color: var(--slate);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lang-switch__btn:hover { color: var(--paper); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--glass-strong);
  color: var(--paper);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
    color .18s var(--ease), border-color .18s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1A1204;
  box-shadow: 0 10px 24px rgba(245, 165, 36, .2);
}
.btn--primary:hover { transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--line);
  background: var(--glass);
  color: var(--paper);
}
.btn--ghost:hover { border-color: rgba(245, 165, 36, .55); color: var(--gold); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: background-color .18s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), top .2s 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); }

/* 栏目层 */
.site-nav { border-top: 1px solid var(--line-soft); }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 0 15px;
  font-size: 14.5px;
  color: rgba(242, 239, 230, .82);
  transition: color .18s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--gold); font-weight: 700; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--jade));
}

/* ── 5. 页脚 ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #0B1C2A 0%, var(--ink-900) 100%);
  border-top: 1px solid var(--line);
  color: var(--slate);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding: 48px 0 24px;
}

.footer-brand__name {
  font-size: var(--fs-4);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-brand__note {
  max-width: 40ch;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.footer-block__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: var(--fs-7);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer-list li + li { margin-top: 9px; }

.footer-link {
  font-size: var(--fs-6);
  color: rgba(242, 239, 230, .8);
  transition: color .18s var(--ease);
}
.footer-link:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: var(--fs-6);
  line-height: 1.7;
}

.footer-contact__k {
  flex: none;
  min-width: 34px;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--slate);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-7);
  letter-spacing: .04em;
}

.footer-legal { font-family: var(--mono); color: var(--slate); }
.footer-copy { color: rgba(140, 154, 166, .85); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 50, 74, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease),
    visibility .22s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); color: var(--gold); }

/* ── 6. 布局与排版工具 ───────────────────────────────────────────────── */
.wrap {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: 56px 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-7);
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}

.plate-tag {
  font-family: var(--mono);
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

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

.meta {
  font-family: var(--mono);
  font-size: var(--fs-7);
  letter-spacing: .06em;
  color: var(--slate);
}

.lede {
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(242, 239, 230, .86);
}

/* 卡片：实色层与玻璃层并置 */
.card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-700);
}

.card--glass {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(242, 239, 230, .09), rgba(242, 239, 230, .03));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 面包屑 */
.breadcrumb { font-size: 13px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(140, 154, 166, .55);
}

.breadcrumb__link { color: var(--slate); transition: color .18s var(--ease); }
.breadcrumb__link:hover { color: var(--gold); }
.breadcrumb__current { color: var(--paper); }

/* 图片容器基础（页面阶段放置占位图） */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, var(--ink-700) 0%, var(--ink-800) 58%, rgba(90, 79, 207, .38) 100%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 22, 31, .66);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(242, 239, 230, .85);
}

/* ── 7. 响应式 ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 18px; }
  .footer-grid { gap: 24px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }

  h1 { font-size: clamp(30px, 8.4vw, 40px); }
  h2 { font-size: clamp(22px, 6vw, 28px); }

  .nav-toggle { display: inline-flex; }
  .brandbar-tools .btn--primary { display: none; }

  .brand__sub { display: none; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0;
    transition: max-height .26s var(--ease);
  }
  .site-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: rgba(8, 22, 31, .62);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 6px var(--gutter) 18px;
  }

  .site-nav__link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px dashed rgba(242, 239, 230, .1);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--gold); }

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

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid .footer-block:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  body { font-size: 16.5px; }

  .section { padding: 40px 0; }

  .brandbar { gap: 12px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 9px; }
  .brand__mark::after { inset: 9px; }

  .footer-inner { padding: 38px 0 22px; gap: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid .footer-block:last-child { grid-column: auto; }

  .footer-bottom { flex-direction: column; }

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

/* ── 8. 动效偏好 ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .scroll-progress__bar { transition: none; }
  .to-top { transform: none; }
}
