/* ==========================================================================
   维基体育CN — 全域共享样式
   文件位置 /assets/site.css
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --primary: #0B4EA2;
  --primary-deep: #083A7A;
  --primary-soft: #E8F0FA;
  --white: #FFFFFF;
  --accent: #FF6B2C;
  --green: #3AA655;
  --lake: #0E7B9F;
  --gray-soft: #D8D8D8;
  --ink: #1A1A1A;
  --cream: #F7F3E8;
  --red: #E6492D;

  --font-title: "Arial Black", Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  --container-w: 1280px;
  --header-offset: 88px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-soft: 0 4px 18px rgba(11, 78, 162, 0.08);
  --shadow-glass: 0 8px 32px rgba(11, 78, 162, 0.14);
  --shadow-float: 0 16px 48px rgba(11, 78, 162, 0.24);

  --ease-std: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 12% -5%, rgba(232, 240, 250, 0.55), transparent 65%),
    radial-gradient(ellipse 55% 38% at 88% 12%, rgba(14, 123, 159, 0.06), transparent 60%),
    var(--white);
  padding-top: var(--header-offset);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

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

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ---------- 4. Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease-std), transform 0.24s var(--ease-std);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 5. Layout Helpers ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.62);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gray-soft);
  border-radius: 50%;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero {
  position: relative;
  padding: 48px 0 56px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 12em;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.72);
  max-width: 460px;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease-std), box-shadow 0.22s var(--ease-std), background 0.22s var(--ease-std);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 107, 44, 0.28);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 44, 0.38);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

/* ---------- 7. Media Frames ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), #F2F7FE);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

.img-frame[data-ratio="3/2"] {
  aspect-ratio: 3 / 2;
}

.img-frame[data-ratio="4/3"] {
  aspect-ratio: 4 / 3;
}

.img-frame[data-ratio="1/1"] {
  aspect-ratio: 1 / 1;
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(11, 78, 162, 0.06);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 20px 0;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(11, 78, 162, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-glass);
  pointer-events: auto;
  transition: background 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}

.header-inner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 24px;
  width: 42px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-float);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 58%, var(--accent) 58% 100%);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 900;
  border-radius: 12px 12px 12px 4px;
  transform: skewX(-4deg);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.3s var(--ease-std);
}

.brand:hover .brand-text::after {
  transform: scaleX(1);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  transition: background 0.2s var(--ease-std), color 0.2s var(--ease-std), box-shadow 0.2s var(--ease-std);
}

.nav-list a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 78, 162, 0.3);
}

.nav-list a[aria-current="page"]:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary-soft);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-std);
}

.nav-toggle:hover {
  background: #D9E6F7;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-std), opacity 0.22s var(--ease-std);
}

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

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

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

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(165deg, #082B52 0%, #0B4EA2 52%, #083A7A 100%);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 56px;
  padding-top: 56px;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--primary-soft);
  clip-path: polygon(
    0% 100%,
    0% 42%,
    7% 42%,
    15% 12%,
    22% 40%,
    32% 18%,
    42% 66%,
    52% 26%,
    60% 50%,
    70% 14%,
    82% 42%,
    92% 24%,
    100% 58%,
    100% 100%
  );
}

.footer-top-row {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  max-width: 440px;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--white) 58%, var(--accent) 58% 100%);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-brand .brand-text::after {
  background: linear-gradient(90deg, var(--accent), var(--white));
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 14px 0 10px;
}

.footer-trust {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.75;
  max-width: 420px;
}

.footer-archive {
  display: block;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 18px 22px;
  max-width: 300px;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
  flex-shrink: 0;
}

.footer-archive:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.archive-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.archive-title {
  display: block;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.68);
  margin-bottom: 6px;
}

.archive-link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.footer-link-grid {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease-std);
}

.footer-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact-list li {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 24px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 10. Motion & Interactive ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0 4px 4px 0;
  z-index: 1100;
  pointer-events: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-std), transform 0.55s var(--ease-std);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-grid {
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    border-radius: 28px;
    padding: 6px 6px 6px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(11, 78, 162, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-float);
    padding: 12px;
    margin-left: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    visibility: hidden;
    transition: opacity 0.28s var(--ease-std), transform 0.28s var(--ease-std), visibility 0s linear 0.28s;
  }

  .site-nav[data-open] {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition: opacity 0.28s var(--ease-std), transform 0.28s var(--ease-std), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    border-radius: 16px;
    font-size: 16px;
    padding: 12px 16px;
  }

  .nav-list a[aria-current="page"] {
    box-shadow: none;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px 28px;
  }

  .footer-archive {
    max-width: 100%;
  }

  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

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

  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-lead {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .footer-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .footer-legal {
    margin-top: 4px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ---------- 12. 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;
  }

  .scroll-progress {
    display: none;
  }

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

  .skip-link,
  .header-inner,
  .header-inner::after,
  .nav-toggle-line,
  .nav-list a,
  .brand-text::after,
  .footer-archive,
  .btn {
    transition: none;
  }
}
