/* =========================================================
   龙珠体育CN · 共享样式表  /assets/site.css
   01 Reset · 02 Tokens · 03 Base · 04 Utilities
   05 Buttons · 06 Header · 07 Nav · 08 Footer
   09 Media Frames · 10 Motion · 11 Responsive
   ========================================================= */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 02. Tokens ---------- */
:root {
  --ink: #0B0D10;
  --ink-2: #0E1116;
  --panel: #14181F;
  --panel-2: #171C24;
  --line: #2A3340;
  --line-soft: rgba(42, 51, 64, .6);
  --mute: #9AA7B8;
  --text: #F2F4F7;
  --gold: #F2B544;
  --gold-soft: #F7D9A0;
  --red: #A31F2B;
  --red-deep: #6E141C;
  --cyan: #2FE0C8;
  --violet: #7C5CFF;

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

  --wrap: 1280px;
  --gutter: 24px;
  --cut: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 320ms;
}

/* ---------- 03. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 50% -12%, rgba(242, 181, 68, .09), transparent 62%),
    radial-gradient(80% 60% at 105% 0%, rgba(163, 31, 43, .16), transparent 60%),
    linear-gradient(180deg, #0B0D10 0%, #0B0D10 58%, #090B0E 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--text);
}
h1 { font-size: clamp(30px, 4.4vw, 60px); }
h2 { font-size: clamp(24px, 2.8vw, 40px); }
h3 { font-size: clamp(18px, 1.8vw, 24px); }
h4 { font-size: 18px; }

p { max-width: 38em; }
strong { font-weight: 800; color: var(--gold-soft); }

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

#main-content { scroll-margin-top: 110px; }

/* ---------- 04. Utilities ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #12140F;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translate(-50%, -180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.tilt {
  display: inline-block;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
}
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--line);
}
.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--text); }

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

.btn--sm { padding: 8px 15px; font-size: 13px; }

.btn--ghost {
  border-color: var(--line);
  background: rgba(242, 244, 247, .03);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(242, 181, 68, .7);
  color: var(--gold);
  background: rgba(242, 181, 68, .08);
}

.btn--accent {
  background: var(--cyan);
  color: #04120F;
  box-shadow: 0 0 0 0 rgba(47, 224, 200, .35);
}
.btn--accent:hover {
  background: #5CF0DC;
  box-shadow: 0 8px 22px -12px rgba(47, 224, 200, .9);
}

.btn--gold {
  background: var(--gold);
  color: #14100A;
}
.btn--gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 10px 24px -14px rgba(242, 181, 68, .9);
}

/* ---------- 06. Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 12px var(--gutter) 0;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 55%, var(--violet) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 24, 31, .94), rgba(11, 13, 16, .95));
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(242, 244, 247, .05);
  transition: padding .28s var(--ease), background .28s var(--ease),
    box-shadow .28s var(--ease);
}
.head-inner::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 181, 68, .65) 22%, rgba(163, 31, 43, .6) 62%, transparent);
  pointer-events: none;
}

.site-head.is-compact .head-inner {
  padding-top: 5px;
  padding-bottom: 5px;
  background: linear-gradient(180deg, rgba(16, 19, 25, .98), rgba(9, 11, 14, .98));
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .95);
}
.site-head.is-compact .brand-sub { opacity: 0; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(148deg, var(--gold) 0%, var(--gold-soft) 36%, var(--red) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 13, 16, .45);
  transition: transform .3s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    135deg,
    rgba(11, 13, 16, .62) 0 2px,
    transparent 2px 5px
  );
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.05;
}
.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--text);
  display: inline-block;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}
.brand-name em {
  font-style: normal;
  margin-left: 2px;
  font-size: .74em;
  letter-spacing: .08em;
  color: var(--gold);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--mute);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .26s var(--ease);
}

/* ---------- 07. Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--mute);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(242, 181, 68, .1);
}
.nav-link[aria-current="page"] {
  color: #14100A;
  font-weight: 800;
  background: var(--gold);
  box-shadow: 0 6px 18px -12px rgba(242, 181, 68, .95);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(242, 181, 68, .38);
  border-radius: 999px;
  background: rgba(242, 181, 68, .1);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(242, 181, 68, .18); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), top .26s var(--ease), bottom .26s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* ---------- 08. Footer ---------- */
.site-foot {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background-color: var(--ink-2);
  background-image:
    repeating-linear-gradient(115deg, rgba(242, 181, 68, .045) 0 1px, transparent 1px 15px),
    linear-gradient(180deg, rgba(20, 24, 31, .92) 0%, rgba(11, 13, 16, .99) 78%);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 18%, var(--red) 52%, transparent 94%);
  opacity: .75;
}

.foot-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.5fr;
  gap: 36px 40px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 68px var(--gutter) 44px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.brand--foot .brand-mark { width: 34px; height: 34px; }
.brand--foot .brand-name { font-size: 19px; }

.foot-line {
  max-width: 22em;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
}
.foot-note {
  max-width: 22em;
  padding-left: 12px;
  border-left: 2px solid rgba(163, 31, 43, .75);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

.foot-col { min-width: 0; }

.foot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
}
.foot-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 181, 68, .5), transparent);
}

.foot-links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--mute);
  transition: color .2s var(--ease);
}
.foot-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width .22s var(--ease), background .22s var(--ease);
}
.foot-links a:hover { color: var(--gold); }
.foot-links a:hover::before { width: 20px; background: var(--gold); }

.foot-contact { min-width: 0; }

.foot-contact-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-contact-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.foot-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mute);
  white-space: nowrap;
}
.foot-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--mute);
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease);
}
.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(47, 224, 200, .55);
}
.copy-btn[data-copied="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

.foot-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 34px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--mute);
}
.foot-legal p { max-width: none; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 181, 68, .35);
  background: linear-gradient(158deg, var(--panel-2), var(--ink));
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .26s var(--ease), transform .26s var(--ease),
    visibility .26s var(--ease), background .22s var(--ease);
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: linear-gradient(158deg, rgba(242, 181, 68, .22), var(--ink));
}

/* ---------- 09. Media Frames ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(242, 181, 68, .05) 0 1px, transparent 1px 13px),
    linear-gradient(158deg, #161B23 0%, #0B0D10 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--4x5  { aspect-ratio: 4 / 5; }

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 13, 16, .78);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--gold);
}

/* ---------- 10. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .head-tools { gap: 6px; }
  .btn--sm { padding: 7px 12px; font-size: 12.5px; }
}

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

  .head-inner { padding: 8px 10px 8px 14px; gap: 10px; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-inline: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20, 24, 31, .99), rgba(11, 13, 16, .99));
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-link::after {
    content: "›";
    font-family: var(--font-mono);
    font-size: 15px;
    opacity: .4;
  }
  .nav-link[aria-current="page"]::after { opacity: .7; color: #14100A; }

  .head-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
  .head-tools .btn { justify-content: center; padding: 11px 14px; }

  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand,
  .foot-contact { grid-column: 1 / -1; }
  .foot-contact-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand-name { font-size: 16.5px; }
  .brand-sub { font-size: 9px; letter-spacing: .16em; }
  .brand-mark { width: 27px; height: 27px; }

  .foot-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
  .foot-brand,
  .foot-contact { grid-column: auto; }

  .foot-contact-item {
    grid-template-columns: 68px minmax(0, 1fr);
    row-gap: 6px;
  }
  .foot-contact-item .copy-btn {
    grid-column: 2;
    justify-self: start;
  }

  .foot-legal { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }

  .to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
  .site-foot { margin-top: 64px; }
}

@media (max-width: 420px) {
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .brand-name { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .to-top { transition: opacity .01ms linear, visibility .01ms linear; }
  .btn:hover,
  .brand:hover .brand-mark { transform: none; }
}
