/* ==========================================================
   顺发体育平台 · Site Kit / 全站共享样式
   ========================================================== */

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

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

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

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

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

/* ---------- 2. CSS 变量 ---------- */
:root {
  --green-deep: #1F4A38;
  --green-light: #4A7C63;
  --metal-gray: #7A8492;
  --stone-gray: #3C444C;
  --vibrant-orange: #E86A33;
  --sand-gold: #C99F55;
  --terracotta: #B46A4E;
  --cream: #F5F1EA;
  --white: #FFFFFF;
  --dark-green: #152E24;

  --font-head: Impact, "Arial Black", "Noto Sans SC Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --container-w: 1200px;
  --container-pad: 24px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--stone-gray);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin-bottom: 1em;
  line-height: 1.85;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--green-deep);
}

h1 {
  font-size: clamp(40px, 6vw, 56px);
}

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 24px);
}

h4 {
  font-size: 18px;
}

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

a {
  transition: color 0.18s ease;
}

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

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

/* ---------- 4. 布局基础 ---------- */
.site-container {
  width: min(100% - var(--container-pad) * 2, var(--container-w));
  margin-inline: auto;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--container-pad);
}

.site-grid__main {
  grid-column: span 8;
}

.site-grid__aside {
  grid-column: span 4;
}

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--vibrant-orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn--outline {
  border-color: var(--green-light);
  color: var(--green-deep);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--white);
}

.card {
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--green-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vibrant-orange);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--vibrant-orange);
  border-radius: 2px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--green-deep);
  margin-bottom: 18px;
}

.section-heading__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--metal-gray);
}

.breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--metal-gray);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--green-light);
}

.breadcrumb__item a {
  color: var(--green-deep);
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--stone-gray);
  font-weight: 700;
}

.page-hero {
  position: relative;
  padding: 52px 0 38px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--green-light);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 110px;
  height: 5px;
  background: linear-gradient(90deg, var(--vibrant-orange), var(--sand-gold));
  border-radius: 5px;
}

.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.page-hero__lead {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone-gray);
}

.editorial-note {
  background: var(--cream);
  border-left: 4px solid var(--vibrant-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone-gray);
  margin: 28px 0;
}

.side-note {
  background: var(--white);
  border: 1px solid var(--green-light);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone-gray);
  margin: 24px 0;
}

.side-note__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--dark-green) 100%);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0 22%, transparent 22% 100%),
    repeating-linear-gradient(48deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 16px);
}

.media-frame::after {
  content: "SF·IMAGE";
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--sand-gold);
  background: rgba(21, 46, 36, 0.75);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- 6. 无障碍跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3000;
  background: var(--vibrant-orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 0 0 var(--radius-md) 0;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

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

/* ---------- 7. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vibrant-orange) 0 40%, var(--sand-gold) 40% 70%, var(--terracotta) 70% 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 2000;
  pointer-events: none;
  transition: transform 0.12s ease-out;
}

/* ---------- 8. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--green-deep);
  color: var(--white);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(245deg, rgba(255, 255, 255, 0.05) 0, transparent 55%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 12px;
  width: 420px;
  height: 34px;
  background: linear-gradient(90deg, var(--vibrant-orange), var(--sand-gold) 55%, var(--terracotta));
  transform: skewX(-16deg);
  border-radius: 18px 6px 6px 18px;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.site-header__topbar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__toprow {
  width: min(100% - var(--container-pad) * 2, var(--container-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.site-header__brand:hover {
  color: var(--white);
}

.site-header__brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vibrant-orange) 0 50%, var(--sand-gold) 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(21, 46, 36, 0.35);
}

.site-header__brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--white);
  transform: translate(-38%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-header__brand-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.site-header__digest {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.site-header__navbar {
  position: relative;
  z-index: 1;
}

.site-header__navrow {
  width: min(100% - var(--container-pad) * 2, var(--container-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 18px;
}

/* ---------- 9. 主栏目导航 ---------- */
.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nav-item;
}

.site-nav__item {
  counter-increment: nav-item;
}

.site-nav__link {
  display: flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.site-nav__link::before {
  content: counter(nav-item, decimal-leading-zero) " / ";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--sand-gold);
  margin-right: 6px;
  letter-spacing: 0.04em;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(201, 159, 85, 0.5);
}

.site-nav__link:active {
  transform: scale(0.96);
}

.site-nav__link[aria-current="page"] {
  background: var(--vibrant-orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 106, 51, 0.3);
}

.site-nav__link[aria-current="page"]::before {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 10. 移动端导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sand-gold);
}

.nav-toggle__box {
  position: relative;
  width: 26px;
  height: 20px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 1px;
}

.nav-toggle__bar:nth-child(2) {
  top: 9px;
}

.nav-toggle__bar:nth-child(3) {
  top: 17px;
}

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

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--dark-green);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 5px;
  background: linear-gradient(90deg, var(--vibrant-orange) 0 28%, var(--sand-gold) 28% 65%, var(--terracotta) 65% 100%);
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 4px 4px 0;
}

.site-footer__inner {
  width: min(100% - var(--container-pad) * 2, var(--container-w));
  margin-inline: auto;
  padding-top: 56px;
  padding-bottom: 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.75fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.site-footer__brand:hover {
  color: var(--white);
}

.site-footer__brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vibrant-orange) 0 50%, var(--sand-gold) 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(21, 46, 36, 0.35);
}

.site-footer__brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--white);
  transform: translate(-38%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__name {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.site-footer__slogan {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-gold);
}

.site-footer__note {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__heading {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}

.site-footer__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 16px;
  border-radius: 3px;
  background: var(--vibrant-orange);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease;
}

.site-footer__nav a:hover {
  color: var(--sand-gold);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact-item {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--metal-gray);
  padding-top: 2px;
}

.site-footer__contact-value {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer__copyright,
.site-footer__icp {
  margin: 0;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-grid__main {
    grid-column: span 12;
  }

  .site-grid__aside {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  .site-header__digest {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .site-header__brand-mark::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }

  .site-header__brand-name {
    font-size: 17px;
  }

  .site-header__brand-tag {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .site-header__navbar:not([data-open]) {
    display: none;
  }

  .site-header__navrow {
    padding-top: 2px;
    padding-bottom: 14px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .site-nav__link::before {
    margin-right: 8px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__inner {
    padding-top: 44px;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .page-hero {
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 18px;
  }

  .site-header__toprow {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-footer {
    margin-top: 48px;
  }
}

/* 移动端横向 / 矮屏：导航可滚动 */
@media (max-height: 520px) and (max-width: 767px) {
  .site-nav[data-open] {
    max-height: 76vh;
    overflow-y: auto;
  }
}

/* ---------- 13. 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .scroll-progress {
    transition: none;
  }
}

/* 深色环境的焦点样式 */
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--sand-gold);
}
