/* =========================================================
   趣体育站 · 全站共享样式
   文件：/assets/site.css
   ========================================================= */

/* ---------- Reset & Tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

a:hover {
  color: var(--lime);
  border-color: currentColor;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ivory);
}

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

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

:root {
  --ink: #1B1410;
  --cream: #FAF3E7;
  --orange: #FF4D2E;
  --orange-deep: #C93A22;
  --lime: #B8FF2E;
  --night: #0B1B2C;
  --sand: #F0D9B5;
  --ivory: #F5F1EA;
  --steel: #9CB2C9;
  --success: #2DE1C2;

  --font-display: Impact, 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-heading: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-data: 'JetBrains Mono', 'Roboto Mono', monospace;

  --hero-xl: clamp(3.5rem, 12vw, 8rem);
  --display: clamp(2rem, 5vw, 3.5rem);
  --h1: 1.8rem;
  --h2: 1.35rem;
  --body: 1rem;
  --caption: 0.875rem;

  --container: 1200px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .36);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, .5);
  --border-thin: 1px solid rgba(250, 243, 231, .1);
  --border-thick: 2px solid rgba(250, 243, 231, .2);
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.grid {
  display: grid;
  gap: var(--space-3);
}

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 77, 46, .35);
}

.btn-primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--ivory);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 77, 46, .5);
  color: var(--orange);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--lime);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 243, 231, .2);
  color: var(--sand);
}

.btn-ghost:hover {
  border-color: var(--sand);
  color: var(--ivory);
}

/* ---------- Header ---------- */
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 120;
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}

.signal-bar {
  background: var(--night);
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid rgba(250, 243, 231, .08);
}

.signal-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 30px;
  font-family: var(--font-data);
  font-size: var(--caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  flex: 0 0 auto;
}

.signal-text {
  color: var(--ivory);
  font-weight: 700;
  white-space: nowrap;
}

.signal-sep {
  width: 20px;
  height: 1px;
  background: var(--orange);
  flex: 0 0 20px;
}

.signal-note {
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-shell {
  padding-block: 0 .25rem;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: .75rem;
  padding-block: .9rem 0;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 0 var(--lime);
}

.brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--display);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ivory);
}

.brand-sub {
  margin-top: .35rem;
  font-family: var(--font-data);
  font-size: var(--caption);
  letter-spacing: .22em;
  color: var(--steel);
}

.header-live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .65rem;
  border: 1px solid rgba(184, 255, 46, .25);
  border-radius: 999px;
  background: rgba(11, 27, 44, .7);
  white-space: nowrap;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: live-pulse 1.6s ease-out infinite;
}

.live-copy {
  font-size: var(--caption);
  color: var(--ivory);
}

.live-tag {
  font-family: var(--font-data);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--lime);
  border-radius: 2px;
  padding: .15rem .4rem;
}

.nav-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
  justify-self: end;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250, 243, 231, .2);
  border-radius: var(--radius);
  padding: 7px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: var(--ivory);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  border-top: 1px solid rgba(250, 243, 231, .1);
  margin-top: .75rem;
}

.nav-list {
  display: flex;
  justify-content: center;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list li + li {
  border-left: 1px solid rgba(250, 243, 231, .1);
}

.nav-list a {
  display: block;
  padding: .8rem 1.1rem .7rem;
  color: var(--sand);
  font-weight: 600;
  letter-spacing: .06em;
  border: 0;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover {
  color: var(--ivory);
  border-bottom-color: var(--orange);
}

.nav-list a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--orange);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--space-7);
  background: var(--night);
  color: var(--ivory);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--orange) 110px,
    var(--lime) 110px,
    var(--lime) 118px,
    var(--sand) 118px,
    var(--sand) 150px,
    transparent 150px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-5);
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--display);
  line-height: 1;
  color: var(--ivory);
  margin-bottom: .35rem;
}

.footer-logo-sub {
  display: block;
  font-family: var(--font-data);
  font-size: var(--caption);
  letter-spacing: .2em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.footer-about {
  color: var(--steel);
  font-size: .95rem;
  max-width: 38ch;
}

.footer-col {
  padding-left: 1.2rem;
}

.footer-col-nav,
.footer-col-legal {
  border-left: 1px solid rgba(250, 243, 231, .07);
}

.footer-title {
  font-size: var(--caption);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
  border-left: 3px solid var(--orange);
  padding-left: .65rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: grid;
  gap: .45rem;
}

.footer-links a {
  color: var(--steel);
  font-size: .95rem;
  border: 0;
  transition: color .15s ease, padding-left .15s ease;
}

.footer-links a:hover {
  color: var(--lime);
  padding-left: .25rem;
}

.footer-address {
  font-style: normal;
  display: grid;
  gap: .3rem;
  color: var(--steel);
  font-size: .9rem;
  line-height: 1.6;
}

.footer-contact-note {
  color: var(--steel);
  font-size: var(--caption);
  border-left: 2px solid var(--sand);
  padding-left: .6rem;
  margin-top: .4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 231, .1);
  background: rgba(0, 0, 0, .22);
  padding-block: 1rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--steel);
  font-family: var(--font-data);
  font-size: var(--caption);
}

/* ---------- Common Components ---------- */
.section {
  position: relative;
  padding-block: var(--space-5);
}

.section-kicker {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-data);
  font-size: var(--caption);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--display);
  line-height: 1.1;
  color: var(--ivory);
}

.card {
  display: flex;
  flex-direction: column;
  background: #241C16;
  border: 1px solid rgba(250, 243, 231, .08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.25rem 1.25rem 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--h2);
  font-weight: 800;
}

.badge {
  display: inline-block;
  padding: .25em .6em;
  font-family: var(--font-data);
  font-size: var(--caption);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(184, 255, 46, .12);
  color: var(--lime);
}

.badge--orange {
  background: rgba(255, 77, 46, .14);
  color: var(--orange);
}

.badge--steel {
  background: rgba(156, 178, 201, .14);
  color: var(--steel);
}

.panel {
  background: var(--night);
  border: 1px solid rgba(250, 243, 231, .1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(250, 243, 231, .08);
  font-family: var(--font-data);
  font-size: var(--caption);
  letter-spacing: .08em;
  color: var(--sand);
}

.panel-body {
  padding: 1rem 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  border: var(--border-thin);
  border-radius: var(--radius);
  background: var(--night);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(250, 243, 231, .08);
  font-size: .9rem;
}

.table-wrap th {
  font-family: var(--font-data);
  font-size: var(--caption);
  letter-spacing: .06em;
  color: var(--sand);
  background: rgba(255, 255, 255, .03);
}

.table-wrap td {
  color: var(--ivory);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  padding: .75rem 0;
  font-size: var(--caption);
  color: var(--steel);
}

.breadcrumb a {
  color: var(--sand);
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb .sep {
  color: var(--orange);
  margin: 0 .1rem;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night);
  overflow: hidden;
  border: 1px solid rgba(250, 243, 231, .08);
}

.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: attr(data-credit);
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-family: var(--font-data);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--steel);
  background: rgba(11, 27, 44, .7);
  padding: .2rem .45rem;
  border-radius: 2px;
}

.prose {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ivory);
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2 {
  margin-top: 2rem;
}

.section-slant {
  height: 12px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 40px 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Motion ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--lime), var(--sand));
  z-index: 300;
  box-shadow: 0 0 12px rgba(184, 255, 46, .35);
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 255, 46, .6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(184, 255, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(184, 255, 46, 0);
  }
}

@media (max-width: 1100px) {
  .live-copy {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night);
    border-top: 0;
    border-bottom: 3px solid var(--orange);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    margin-top: 0;
    transition: max-height .28s ease, visibility .28s ease;
  }

  .site-nav[data-open] {
    max-height: 80vh;
    visibility: visible;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    padding: 0 clamp(1rem, 3vw, 2.5rem) 1rem;
  }

  .nav-list li + li {
    border-left: 0;
  }

  .nav-list a {
    padding: .8rem .4rem;
    border-bottom: 1px solid rgba(250, 243, 231, .08);
    color: var(--ivory);
  }

  .nav-list a[aria-current="page"] {
    color: var(--lime);
    background: rgba(255, 77, 46, .1);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand cta toggle"
      "live live live";
    gap: .5rem .6rem;
    padding-block: .6rem 0;
  }

  .brand {
    grid-area: brand;
  }

  .nav-cta {
    grid-area: cta;
    display: inline-flex;
    padding: .55em .9em;
    font-size: .85rem;
  }

  .nav-toggle {
    grid-area: toggle;
  }

  .header-live {
    grid-area: live;
    justify-self: start;
    width: 100%;
    overflow: hidden;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
    box-shadow: 3px 3px 0 0 var(--lime);
  }

  .brand-sub {
    display: none;
  }

  .signal-note,
  .signal-sep {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-5) var(--space-4);
  }

  .footer-col {
    padding-left: 0;
  }

  .footer-col-nav,
  .footer-col-legal {
    border-left: 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
