/* ==========================================================
   Site Kit / assets/site.css
   爱体育官网CN — 全站共享样式
   ========================================================== */

/* ========== Reset & Variables ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --maxw: 1200px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "Courier New", monospace;

  --clr-primary: #2d6a4f;
  --clr-deep: #1b263b;
  --clr-accent: #f4a261;
  --clr-light: #f8f9fa;
  --clr-darkgreen: #1b4332;
  --clr-slate: #415a77;
  --clr-red: #e76f51;
  --clr-paper: #fefae0;

  --shadow-card: 6px 6px 0 rgba(27, 38, 59, 0.08);
  --radius-card: 18px 6px 18px 6px;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.75;
  color: var(--clr-deep);
  background: var(--clr-light);
}

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

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

ul,
ol {
  list-style: none;
}

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

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--clr-accent);
  color: var(--clr-deep);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

p {
  overflow-wrap: break-word;
}

/* ========== Layout Primitives ========== */
.container {
  width: min(calc(100% - 2.5rem), var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.section-header {
  max-width: 56rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.section-index::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--clr-accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--clr-deep);
}

.section-description {
  max-width: 60ch;
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(27, 38, 59, 0.76);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(244, 162, 97, 0.55);
  border-radius: 999px;
  background: rgba(244, 162, 97, 0.14);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--clr-deep);
}

.display-lead {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--clr-deep);
}

.print-frame {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(27, 38, 59, 0.45);
  background: var(--clr-paper);
  box-shadow: var(--shadow-card);
}

.print-frame::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px dashed rgba(27, 38, 59, 0.3);
  pointer-events: none;
}

.track-line {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--clr-primary) 0 12px,
    var(--clr-accent) 12px 24px
  );
  opacity: 0.35;
}

.band-deep {
  background: var(--clr-deep);
  color: var(--clr-light);
}

.band-deep .section-title {
  color: var(--clr-light);
}

.band-deep .section-description {
  color: rgba(248, 249, 250, 0.82);
}

.band-deep .btn-ghost {
  border-color: rgba(248, 249, 250, 0.7);
  color: var(--clr-light);
}

.band-grass {
  background: var(--clr-primary);
  color: var(--clr-light);
}

.band-grass .section-title {
  color: var(--clr-light);
}

.band-grass .section-description {
  color: rgba(248, 249, 250, 0.86);
}

.band-paper {
  background: var(--clr-paper);
}

.band-cloud {
  background: var(--clr-light);
}

.page-main {
  min-height: 68vh;
}

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

/* ========== Breadcrumbs ========== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--clr-slate);
}

.breadcrumbs a {
  color: var(--clr-primary);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}

.breadcrumbs .sep {
  color: var(--clr-accent);
  font-weight: 700;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-deep);
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(27, 38, 59, 0.15);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(27, 38, 59, 0.18);
}

.btn-ghost {
  border-color: rgba(27, 38, 59, 0.3);
  color: var(--clr-deep);
  box-shadow: 3px 3px 0 rgba(27, 38, 59, 0.06);
}

.btn-ghost:hover {
  background: rgba(27, 38, 59, 0.04);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(27, 38, 59, 0.1);
}

.btn-light {
  border-color: rgba(248, 249, 250, 0.75);
  color: var(--clr-light);
  box-shadow: none;
}

.btn-light:hover {
  background: rgba(248, 249, 250, 0.1);
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid rgba(27, 38, 59, 0.18);
  border-radius: var(--radius-card);
  background: var(--clr-paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(27, 38, 59, 0.12);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--clr-deep);
}

.card-meta {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-slate);
}

.card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(27, 38, 59, 0.75);
}

/* ========== Tags ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(45, 106, 79, 0.45);
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.06);
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--clr-deep);
}

.tag-accent {
  border-color: rgba(244, 162, 97, 0.55);
  background: rgba(244, 162, 97, 0.14);
  color: #7a4525;
}

/* ========== Data Table ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--clr-deep);
  color: var(--clr-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.data-table tbody th {
  background: rgba(45, 106, 79, 0.08);
  font-weight: 500;
}

.data-table td {
  border-bottom: 1px solid rgba(27, 38, 59, 0.12);
}

.data-table tbody tr:hover td {
  background: rgba(244, 162, 97, 0.08);
}

/* ========== Media Frame ========== */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--clr-slate);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(248, 249, 250, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

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

.media-placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--clr-slate), var(--clr-deep));
  color: rgba(248, 249, 250, 0.7);
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.media-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(27, 38, 59, 0.62);
}

/* ========== Tabs ========== */
.tabs {
  overflow: hidden;
  border: 1px solid rgba(27, 38, 59, 0.2);
  border-radius: var(--radius-card);
  background: var(--clr-paper);
  box-shadow: var(--shadow-card);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  border-bottom: 2px solid var(--clr-primary);
  background: rgba(45, 106, 79, 0.07);
}

.tab-btn {
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(27, 38, 59, 0.25);
  border-radius: 999px;
  background: var(--clr-light);
  color: var(--clr-deep);
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--clr-accent);
}

.tab-btn[aria-selected="true"] {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-light);
  box-shadow: 3px 3px 0 rgba(244, 162, 97, 0.45);
}

.tab-panel {
  padding: 1.5rem;
}

/* ========== Scroll Reveal ========== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(27, 38, 59, 0.1);
  background: rgba(248, 249, 250, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: var(--clr-deep);
  color: var(--clr-light);
  font-family: var(--font-data);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.header-topline {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    var(--clr-deep) 60%,
    var(--clr-accent) 100%
  );
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: 76px;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: auto;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px 4px 12px 4px;
  background: var(--clr-primary);
  color: var(--clr-light);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--clr-deep);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--clr-accent);
}

.site-nav {
  order: 2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--clr-deep);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-list a:hover {
  color: var(--clr-primary);
}

.nav-list a[aria-current="page"] {
  background: rgba(45, 106, 79, 0.08);
  color: var(--clr-primary);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(27, 38, 59, 0.18);
  border-radius: 50%;
  background: var(--clr-light);
  color: var(--clr-deep);
  transition: border-color 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--clr-accent);
  background: rgba(244, 162, 97, 0.12);
}

.search-toggle {
  order: 3;
}

.search-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.search-toggle[aria-expanded="true"] {
  border-color: var(--clr-primary);
  background: rgba(45, 106, 79, 0.08);
  color: var(--clr-primary);
}

.nav-toggle {
  display: none;
  order: 4;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.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);
}

.search-panel {
  padding-block: 1rem;
  border-top: 1px dashed rgba(27, 38, 59, 0.15);
  background: var(--clr-light);
}

.search-input {
  width: 100%;
  max-width: 42rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--clr-slate);
  border-radius: 14px;
  background: var(--clr-paper);
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--clr-deep);
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--clr-slate);
  opacity: 0.75;
}

.search-input:focus {
  border-color: var(--clr-accent);
  outline: none;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--clr-darkgreen);
  color: rgba(248, 249, 250, 0.9);
}

.footer-topline {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clr-accent),
    var(--clr-deep) 55%,
    var(--clr-primary)
  );
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand .brand {
  margin-right: 0;
}

.footer-brand .brand-name,
.brand-light .brand-name {
  color: var(--clr-light);
}

.footer-brand .brand-tag,
.brand-light .brand-tag {
  color: var(--clr-accent);
}

.footer-brand .brand-mark,
.brand-light .brand-mark {
  background: var(--clr-accent);
  color: var(--clr-darkgreen);
}

.footer-slogan {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.72);
}

.footer-contact-compact {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--clr-accent);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  margin-bottom: 1.1rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.footer-title-second {
  margin-top: 2.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  display: inline-block;
  font-size: 0.92rem;
  color: rgba(248, 249, 250, 0.85);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--clr-accent);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-style: normal;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: rgba(248, 249, 250, 0.8);
}

.footer-address span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.55rem;
  background: var(--clr-accent);
  transform: rotate(45deg);
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid rgba(248, 249, 250, 0.22);
}

.footer-trust {
  max-width: 64ch;
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(248, 249, 250, 0.62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: rgba(248, 249, 250, 0.85);
}

.footer-icp {
  color: rgba(248, 249, 250, 0.6);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .header-inner {
    min-height: 64px;
    padding-block: 0.5rem;
    gap: 0.4rem 0.75rem;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    margin-top: 0.25rem;
    padding-block: 0.25rem 0.5rem;
    border-top: 1px solid rgba(27, 38, 59, 0.1);
  }

  .site-nav[data-open] {
    display: block;
  }

  .search-toggle {
    order: 2;
  }

  .nav-toggle {
    order: 3;
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0.75rem;
    border-radius: 0.75rem;
  }

  .nav-list a::after {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 2rem), var(--maxw));
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* ==========================================================
   Reduced Motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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