/* ============================================================
   龙珠赛场 · 共享样式表 /assets/site.css
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Variables ---------- */
:root {
  --ink-900: #0B1220;
  --ink-850: #0F1729;
  --ink-800: #131C2E;
  --ink-700: #1E3A5F;
  --line: #2C4A6B;
  --gold: #FFC53D;
  --gold-soft: #FFE6A6;
  --grass: #2FA46A;
  --coral: #FF6B4A;
  --steel: #8A97AD;
  --paper: #F5F8FF;

  --shell: 1280px;
  --cut: 14px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 100;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 620px at 86% -12%, rgba(255, 197, 61, 0.07), transparent 70%),
    radial-gradient(760px 520px at -12% 34%, rgba(47, 164, 106, 0.055), transparent 72%);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 500;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  z-index: 300;
  pointer-events: none;
  transition: width 0.12s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
}

.site-header__tier1 {
  border-bottom: 1px solid rgba(44, 74, 107, 0.55);
  max-height: 68px;
  overflow: hidden;
  transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-condensed .site-header__tier1 {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}

.site-header__tier1-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 11px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  position: relative;
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--gold-soft), var(--gold) 58%, #D89B18);
  box-shadow: 0 0 0 1px rgba(255, 197, 61, 0.35), 0 0 14px rgba(255, 197, 61, 0.26);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(circle, rgba(122, 46, 0, 0.85) 1.5px, transparent 1.6px),
    radial-gradient(circle, rgba(122, 46, 0, 0.85) 1.5px, transparent 1.6px),
    radial-gradient(circle, rgba(122, 46, 0, 0.85) 1.5px, transparent 1.6px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 6px 8px, 15px 9px, 10px 16px;
}
.brand__text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}
.brand__tag {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.header-tools__count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
  white-space: nowrap;
}
.header-tools__count .mono {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.season-switch {
  display: flex;
  border: 1px solid var(--line);
  background: var(--ink-800);
}
.season-switch__btn {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.season-switch__btn:hover { color: var(--paper); }
.season-switch__btn.is-active {
  background: var(--gold);
  color: var(--ink-900);
  font-weight: 600;
}
.season-switch__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.season-switch__btn.is-active:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink-900);
}

.site-header__tier2-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.main-nav { display: flex; align-items: stretch; }
.main-nav__list { display: flex; align-items: stretch; gap: 2px; }
.main-nav__list > li { display: flex; }
.main-nav__list a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  color: var(--steel);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav__list a:hover {
  color: var(--paper);
  background: rgba(255, 197, 61, 0.06);
}
.main-nav__list a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--gold-soft);
  border-color: var(--line);
  background: var(--ink-800);
}
.icon-btn[aria-pressed="true"] {
  color: var(--ink-900);
  background: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper);
  border: 1px solid var(--line);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 112px);
  background: var(--ink-850);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 132px; height: 3px;
  background: var(--gold);
  transform: skewX(-24deg);
  transform-origin: left center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px 32px;
  padding-block: clamp(40px, 5vw, 60px) 40px;
}

.footer-brand__note {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.footer-contact-list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #5C6B85;
  text-transform: uppercase;
}
.footer-contact-list dd {
  margin-top: 3px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel);
}

.footer-col__title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-col__list li + li { margin-top: 11px; }
.footer-col__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--steel);
  transition: color 0.2s var(--ease);
}
.footer-col__list a:hover { color: var(--gold-soft); }
.footer-col__list .tag { margin-left: 6px; vertical-align: 1px; }

.footer-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(44, 74, 107, 0.6);
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}
.footer-status__dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 3px rgba(47, 164, 106, 0.16);
  animation: pulseDot 2.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 30px;
  border-top: 1px solid rgba(44, 74, 107, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #6C7C96;
}

/* ---------- Layout tools ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.col-main { grid-column: 1 / span 7; }
.col-side { grid-column: 9 / span 4; }

.frame {
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 52px);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--gold);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.cut-panel {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.divider-slant {
  position: relative;
  display: block;
  height: 36px;
  margin-block: clamp(40px, 6vw, 76px);
}
.divider-slant::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
  transform: rotate(-1.1deg) translateY(-50%);
  transform-origin: left center;
}
.divider-slant::after {
  content: "";
  position: absolute;
  left: 0; top: calc(50% - 1.5px);
  width: 72px; height: 3px;
  background: var(--gold);
  transform: rotate(-1.1deg);
  transform-origin: left center;
}

/* ---------- Media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-700);
  border: 1px solid var(--line);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media > img,
.media > picture,
.media > svg,
.media > .media__inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 38%, rgba(11, 18, 32, 0.78) 100%);
}

/* ---------- Typography ---------- */
.display {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(56px, 9vw, 120px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.section-head__title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--paper);
}

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 248, 255, 0.86);
}
.prose p + p { margin-top: 1.1em; }
.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 350;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
}
.prose ul { margin: 1em 0; display: grid; gap: 0.55em; }
.prose li {
  position: relative;
  padding-left: 20px;
  color: rgba(245, 248, 255, 0.8);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 8px; height: 1.5px;
  background: var(--gold);
}
.prose strong { color: var(--paper); font-weight: 600; }
.prose a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(255, 197, 61, 0.45);
}
.prose a:hover { border-bottom-color: var(--gold); }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line); }
.breadcrumb__list a { color: var(--steel); transition: color 0.2s var(--ease); }
.breadcrumb__list a:hover { color: var(--gold); }
.breadcrumb__list [aria-current="page"] { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink-800);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }

.btn--gold {
  background: var(--gold);
  color: var(--ink-900);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--gold:focus-visible { box-shadow: inset 0 0 0 2px var(--ink-900); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line);
  background: rgba(30, 58, 95, 0.35);
}
.tag--gold {
  color: var(--gold);
  border-color: rgba(255, 197, 61, 0.5);
  background: rgba(255, 197, 61, 0.1);
}
.tag--grass {
  color: var(--grass);
  border-color: rgba(47, 164, 106, 0.5);
  background: rgba(47, 164, 106, 0.1);
}
.tag--coral {
  color: var(--coral);
  border-color: rgba(255, 107, 74, 0.55);
  background: rgba(255, 107, 74, 0.1);
}

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

/* ---------- High contrast ---------- */
html.is-high-contrast {
  --steel: #B6C2D6;
  --line: #3E6288;
  --ink-800: #16233A;
}
html.is-high-contrast .main-nav__list a { color: #C4D0E2; }
html.is-high-contrast .footer-col__list a { color: #C4D0E2; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
  }
  .site-header[data-open] .main-nav { display: block; }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .main-nav__list a {
    padding: 14px 24px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    font-size: 16px;
  }
  .main-nav__list a[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--gold);
    background: rgba(255, 197, 61, 0.07);
  }

  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-main,
  .col-side { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand__tag { display: none; }
  .brand__text { gap: 0; }
  .header-tools__count { display: none; }
  .season-switch__btn { padding: 6px 10px; font-size: 11px; }
  .footer-legal { flex-direction: column; }
  .footer-status { font-size: 12.5px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-tools { gap: 10px; }
}

/* ---------- Motion preference ---------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .footer-status__dot { animation: none !important; }
  .scroll-progress { transition: none !important; }
}
