/* ==========================================================================
   大赢家游戏 · 全站共享样式 /assets/site.css
   深海蓝墨底 + 暖纸阅读区 + 电竞金结构强调
   ========================================================================== */

:root {
  --ink-900: #061A2E;
  --ink-700: #0E2F52;
  --paper: #F5EFE3;
  --ink: #101418;
  --gold: #F5C542;
  --gold-soft: #FFE08A;
  --violet: #7C4DFF;
  --violet-ink: #5326D8;
  --coral: #FF6B4A;
  --steel: #C8D2E0;
  --green: #2FBF71;

  --font-display: "Bebas Neue", "Oswald", "Noto Sans SC", "Alibaba PuHuiTi 3.0", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1120px;
  --shell-wide: 1280px;
  --gutter: clamp(16px, 4.2vw, 44px);
  --bd: 3px;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-gold: 6px 6px 0 rgba(245, 197, 66, 0.45);
  --shadow-violet: 6px 6px 0 var(--violet);

  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
  --dur: 0.2s;
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: inherit;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--gold); text-decoration: none; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: var(--bd) solid currentColor;
  opacity: 0.25;
  margin: 32px 0;
}

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: var(--bd) solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 中文排版细节 */
body { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: var(--shell-wide); }

.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)); }

/* ---------- 跳过链接 ---------- */
.skip {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 200;
  margin: 0;
}
.skip__link {
  position: absolute;
  left: 14px;
  top: -80px;
  display: inline-block;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-violet);
  transition: top 0.18s var(--ease);
  white-space: nowrap;
}
.skip__link:focus { top: 14px; }

/* ---------- 刊头顶部标签带 ---------- */
.ticker {
  background: var(--ink);
  border-bottom: 1px solid rgba(245, 197, 66, 0.28);
}
.ticker__track {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(245, 197, 66, 0.3);
  box-shadow: 0 14px 34px rgba(6, 26, 46, 0.5);
}

.masthead {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 16px var(--gutter) 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

/* 品牌署名 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gold);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(16, 20, 24, 0.14) 0 4px,
    transparent 4px 9px
  );
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  color: var(--paper);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--steel);
  line-height: 1.2;
  white-space: nowrap;
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.3vw, 20px);
  justify-self: center;
}
.nav__link {
  position: relative;
  display: block;
  padding: 11px 10px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 3px 3px 0 rgba(124, 77, 255, 0.9);
}
.nav__link[aria-current="page"]::after { display: none; }

.nav__link--cta { display: none; }

/* 刊头右侧操作区 */
.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}
.btn--gold:hover {
  background: var(--gold-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--violet);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--steel);
}
.btn--ghost:hover {
  background: var(--ink-700);
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}
.btn__label--short { display: none; }

/* ---------- 移动导航开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--gold); color: var(--ink); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle__text { line-height: 1; }

/* ---------- 滚动进度 ---------- */
.header-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}

/* ---------- 通用内容组件 ---------- */
.prose {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 56px);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-hard);
  font-size: 17px;
  line-height: 1.85;
}
.prose h2, .prose h3, .prose h4 { color: var(--ink-900); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.4em; }
.prose h3 { font-size: clamp(19px, 2.2vw, 24px); margin-top: 1.2em; }
.prose a {
  color: var(--violet-ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(6, 26, 46, 0.08);
  border: 1px solid rgba(6, 26, 46, 0.2);
  padding: 0.1em 0.4em;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 6px solid var(--gold);
  background: rgba(245, 197, 66, 0.14);
}

.breadcrumbs {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "·";
  color: var(--gold);
}
.breadcrumbs__link {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumbs__link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: var(--bd) solid currentColor;
}
.section-head__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.03em;
}
.section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.62;
  text-align: right;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.side-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0.8;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  background: var(--ink-700);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--violet { background: var(--violet); color: #FFFFFF; }
.tag--coral { background: var(--coral); color: #FFFFFF; }
.tag--green { background: var(--green); color: #04231A; }

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-700);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.media__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media__img--placeholder {
  background:
    radial-gradient(circle at 28% 26%, rgba(245, 197, 66, 0.5), transparent 56%),
    radial-gradient(circle at 76% 72%, rgba(124, 77, 255, 0.55), transparent 56%),
    linear-gradient(135deg, var(--ink-700), var(--ink-900));
}
.media__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  background: var(--coral);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  border: 2px solid var(--ink);
}
.media__caption {
  display: block;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(245, 197, 66, 0.35);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--steel);
  border-top: var(--bd) solid var(--gold);
}

.site-footer__top {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 64px) var(--gutter) clamp(24px, 3.5vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(24px, 3.4vw, 40px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-footer__mark {
  width: 46px;
  height: 46px;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--gold);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(16, 20, 24, 0.14) 0 4px,
    transparent 4px 9px
  );
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}
.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.site-footer__line {
  margin: 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--steel);
}
.site-footer__hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.22);
}

.site-footer__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 197, 66, 0.35);
}
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__link {
  display: inline-block;
  padding: 6px 0;
  color: var(--steel);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.site-footer__link:hover { color: var(--gold); transform: translateX(4px); }

.site-footer__col--contact { min-width: 0; }

.copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px;
  text-align: left;
  background: var(--ink-900);
  color: var(--steel);
  border: 2px solid rgba(200, 210, 224, 0.28);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.copy:hover { border-color: var(--gold); background: var(--ink-700); }
.copy__label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.copy__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.copy__state {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
  white-space: nowrap;
}
.copy[data-copied] { border-color: var(--green); }
.copy[data-copied] .copy__state { color: var(--green); }

.site-footer__addr {
  margin: 14px 0 6px;
  font-size: 14.5px;
  color: var(--steel);
}
.site-footer__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(200, 210, 224, 0.72);
}

.site-footer__meta {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(245, 197, 66, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.site-footer__copy,
.site-footer__icp { margin: 0; }
.site-footer__meta-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 0 auto;
  padding: 0;
}
.site-footer__meta-links .site-footer__link {
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) and (min-width: 921px) {
  .nav { gap: 2px; }
  .nav__link { font-size: 14px; padding: 10px 7px; }
  .brand__sub { display: none; }
}

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

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px var(--gutter);
    gap: 12px;
  }

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

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 90;
    display: block;
    max-height: 82vh;
    overflow-y: auto;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--ink-900);
    border-top: var(--bd) solid var(--gold);
    box-shadow: 0 -22px 54px rgba(0, 0, 0, 0.6);
    transform: translateY(105%);
    transition: transform 0.24s var(--ease);
  }
  .nav[data-open] { transform: translateY(0); }

  .nav__link {
    display: block;
    padding: 15px 6px;
    font-size: 17px;
    color: var(--paper);
    border-bottom: 1px dashed rgba(200, 210, 224, 0.22);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    background: var(--gold);
    color: var(--ink);
    box-shadow: none;
    padding-left: 15px;
    border-bottom-color: transparent;
  }
  .nav__link--cta {
    display: block;
    margin-top: 16px;
    padding: 15px 6px;
    background: var(--gold);
    color: var(--ink);
    text-align: center;
    border-bottom: 0;
  }

  .btn--collect { padding: 11px 14px; font-size: 14px; }
  .btn__label--full { display: none; }
  .btn__label--short { display: inline; }

  .site-footer__meta-links { margin-left: 0; }
}

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .ticker__track { gap: 6px 18px; font-size: 11px; letter-spacing: 0.12em; }
  .brand__mark { width: 38px; height: 38px; font-size: 19px; }
  .brand__name { font-size: 20px; }
  .brand__sub { display: none; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head__note { text-align: left; }
  .btn--collect { padding: 10px 12px; font-size: 13px; }
  .nav-toggle { padding: 9px 11px; }
  .nav-toggle__text { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .nav { transition: none; }
  .header-progress { transition: none; }
}
