/* ============================================================
   AK体育官方版 / Site Kit 全站共享样式
   草原绿 x 运动橙 x 深邃蓝 / 堆叠画板 / 风纹曲线
   ============================================================ */

:root {
  --green: #2E6E4E;
  --green-deep: #25563E;
  --orange: #F26522;
  --orange-deep: #E85A16;
  --blue: #1B3B4C;
  --blue-deep: #122933;
  --teal: #0E5E6E;
  --wine: #7A2E4F;
  --purple: #5A4A77;
  --light: #F7F5F2;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --line: rgba(26, 26, 26, 0.10);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --pill: 999px;
  --header-h: 72px;

  --shadow-sm: 0 4px 16px rgba(27, 59, 76, 0.08);
  --shadow-md: 0 12px 32px rgba(27, 59, 76, 0.12);
  --shadow-orange: 0 8px 24px rgba(242, 101, 34, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
    --radius: 16px;
    --radius-lg: 22px;
  }
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

main {
  display: block;
  flex: 1;
}

::selection {
  background: rgba(242, 101, 34, 0.22);
}

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

/* ---------- Utilities ---------- */

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  padding: 10px 22px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-orange);
  transform: translateY(-220%);
  transition: transform var(--duration) var(--ease);
}

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

/* ---------- Layout ---------- */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

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

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

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--text);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 101, 34, 0.42);
}

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

.btn-ghost:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.btn-inverse {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.btn-inverse:hover {
  background: #fff;
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 6px 24px rgba(27, 59, 76, 0.28);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--orange) 24%,
    var(--green) 24%,
    var(--green) 64%,
    var(--teal) 64%,
    var(--teal) 100%);
}

.header-inner {
  position: relative;
  width: min(100% - 48px, var(--container));
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  filter: drop-shadow(0 4px 12px rgba(242, 101, 34, 0.38));
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-text::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-list a[aria-current="page"] {
  color: #fff;
  background: var(--green);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(46, 110, 78, 0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(242, 101, 34, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(242, 101, 34, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-light);
  flex-shrink: 0;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle-text {
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}

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

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

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
    background: rgba(18, 41, 51, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(5, 20, 27, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    pointer-events: none;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .nav-list a {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav-cta {
    display: flex;
    justify-content: center;
    padding: 13px 16px;
    margin-top: 4px;
  }
}

/* ---------- Typography Helpers ---------- */

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

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 28px;
  margin-right: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--orange), var(--green));
  vertical-align: -3px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Panels ---------- */

.panel {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--light);
}

.panel--green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}

.panel--blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.panel--teal {
  background: linear-gradient(135deg, var(--teal) 0%, #0A4653 100%);
}

.panel--wine {
  background: linear-gradient(135deg, var(--wine) 0%, #5C2036 100%);
}

.panel--purple {
  background: linear-gradient(135deg, var(--purple) 0%, #433557 100%);
}

.panel--diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px);
  pointer-events: none;
}

.panel--diagonal > .container {
  position: relative;
  z-index: 1;
}

.panel--green .section-title,
.panel--blue .section-title,
.panel--teal .section-title,
.panel--wine .section-title,
.panel--purple .section-title {
  color: #fff;
}

.panel--green .section-desc,
.panel--blue .section-desc,
.panel--teal .section-desc,
.panel--wine .section-desc,
.panel--purple .section-desc {
  color: rgba(255, 255, 255, 0.76);
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 110, 78, 0.25);
}

.card--tilt {
  transform: rotate(-0.6deg);
}

.card--tilt:hover {
  transform: rotate(0deg) translateY(-4px);
}

.card--split {
  border-left: 4px solid var(--orange);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--green);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.breadcrumb-sep {
  color: rgba(107, 107, 107, 0.45);
}

/* ---------- Image Frame Placeholder ---------- */

.img-frame {
  position: relative;
  display: block;
  min-height: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 55%, var(--green-deep) 100%);
  box-shadow: var(--shadow-md);
}

.img-frame::before,
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.img-frame::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(242, 101, 34, 0.28), transparent 50%);
}

.img-frame::after {
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 23px);
}

.img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }

/* ---------- Table of Contents ---------- */

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.toc-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.toc-list {
  display: grid;
  gap: 4px;
}

.toc-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.toc-list a:hover {
  color: var(--green);
  background: rgba(46, 110, 78, 0.08);
}

.toc-list a[aria-current="location"] {
  color: var(--green);
  background: rgba(46, 110, 78, 0.10);
  border-left-color: var(--orange);
  font-weight: 700;
  padding-left: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, 0.82);
}

.footer-wave {
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.footer-wave-svg {
  display: block;
  width: 100%;
  height: 44px;
}

.footer-wave-back { fill: var(--teal); }
.footer-wave-front { fill: var(--green); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding: 56px 0 44px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.footer-brand-link::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.18);
}

.footer-about {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 340px;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  border: 1px dashed rgba(242, 101, 34, 0.55);
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

.footer-trust::before {
  content: "✓";
  font-weight: 900;
  color: var(--orange);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

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

.footer-list--contact {
  gap: 14px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.footer-list a:hover {
  color: #fff;
  padding-left: 6px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-all;
}

.contact-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--orange);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

@media (max-width: 600px) {
  .footer-wave-svg {
    height: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Back to Top ---------- */

.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 110, 78, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s,
    background-color 0.2s ease;
}

.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--teal);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 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-behavior: auto !important;
  }
}
