/* ===================================================================
   ME体育方 · 中文专区 —— 全站共享样式 /assets/site.css
   夜场墨绿底 + 蓝图网格 + 青柠高亮 + 琥珀数据
   =================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #07130F;
  --field: #0E2A22;
  --stand: #123A2E;
  --lime: #C6F24E;
  --lime-dim: #8FBF2E;
  --amber: #F2A93B;
  --amber-soft: #FFD79A;
  --red: #E2453C;
  --paper: #F4F7F2;
  --mist: #A9BDB2;
  --cool: #4FC3D9;

  --line: rgba(79, 195, 217, .16);
  --line-strong: rgba(79, 195, 217, .34);
  --line-soft: rgba(79, 195, 217, .09);
  --line-lime: rgba(198, 242, 78, .38);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1280px;
  --gutter: 24px;
  --sec-gap: clamp(64px, 9vw, 112px);
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(90rem 50rem at 78% -12%, rgba(198, 242, 78, .07), transparent 62%),
    radial-gradient(60rem 40rem at -10% 30%, rgba(79, 195, 217, .05), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

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

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

/* ---------- 3. 排版工具 ---------- */
.t-display {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.03em;
}
.t-section {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.t-card {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.t-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
  text-transform: uppercase;
}
.numeric {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.01em;
}
.rail-label {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mist);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- 4. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-gap); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.grid { display: grid; gap: 24px; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

/* ---------- 5. 编号章节头 ---------- */
.sec-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 26px);
  margin-bottom: clamp(24px, 3vw, 42px);
}
.sec-num {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.05em;
  color: var(--lime);
}
@supports (-webkit-text-stroke: 1px #000) {
  .sec-num { color: transparent; -webkit-text-stroke: 1px var(--lime); }
}
.sec-body { min-width: 0; padding-top: 6px; }
.sec-title { margin-bottom: 10px; }
.sec-lead {
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(18, 58, 46, .55);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .08em;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { border-color: var(--lime); color: var(--lime); }
.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary:hover { background: var(--lime-dim); border-color: var(--lime-dim); color: var(--ink); }
.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}
.btn--amber:hover { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--ink); }
.btn--ghost { background: transparent; }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(18, 58, 46, .5);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
  white-space: nowrap;
}
.tag--lime { color: var(--lime); border-color: var(--line-lime); }
.tag--amber { color: var(--amber); border-color: rgba(242, 169, 59, .45); }
.tag--video { color: var(--cool); border-color: rgba(79, 195, 217, .48); }
.tag--score { color: var(--red); border-color: rgba(226, 69, 60, .5); }

/* ---------- 8. 面板 ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 58, 46, .72), rgba(14, 42, 34, .88));
  padding: clamp(20px, 3vw, 30px);
}
.panel--flat { background: rgba(14, 42, 34, .62); }
.panel--lime {
  border-color: var(--line-lime);
  box-shadow: 0 0 0 1px rgba(198, 242, 78, .07), 0 30px 70px -50px rgba(198, 242, 78, .75);
}

/* ---------- 9. 数据指标 ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}
.stat-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
}

/* ---------- 10. 面包屑 ---------- */
.crumbs { padding-block: 22px; }
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
}
.crumbs-item { display: flex; align-items: center; }
.crumbs-item + .crumbs-item::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}
.crumbs-link { color: var(--mist); transition: color .18s ease; }
.crumbs-link:hover { color: var(--lime); }
.crumbs-current { color: var(--paper); }

/* ---------- 11. 正文 ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }
.prose h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.prose h3 {
  margin: 1.8em 0 .6em;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prose ul { margin-bottom: 1.2em; }
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .92em;
  width: 10px;
  height: 1px;
  background: var(--lime);
}
.prose a {
  color: var(--lime);
  border-bottom: 1px solid var(--line-lime);
}
.prose strong { color: var(--paper); font-weight: 700; }

/* ---------- 12. 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(18, 58, 46, .95), rgba(7, 19, 15, .95));
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.img-frame img,
.img-frame picture,
.img-frame picture img,
.img-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0) 38%, rgba(7, 19, 15, .78) 100%);
  pointer-events: none;
  z-index: 1;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--plain::after { display: none; }
.img-frame__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--paper);
}

/* ---------- 13. 筛选协议 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(7, 19, 15, .62);
}
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.filter-btn:hover { color: var(--paper); background: rgba(198, 242, 78, .1); }
.filter-btn[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
[data-filter-item].is-hidden { display: none; }

/* ---------- 14. 显现动画 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s ease-out, transform .24s ease-out;
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  padding: 12px 24px;
  border-radius: var(--pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transform: translate(-50%, -180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ===================================================================
   头部
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 19, 15, .98) 0%, rgba(7, 19, 15, .9) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.site-header::before { left: 10px; }
.site-header::after { right: 10px; }

.sh-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(79, 195, 217, .12);
  overflow: hidden;
}
.sh-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--amber));
}

.sh-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 16px;
  transition: padding .22s ease;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sh-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.sh-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sh-brand-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--paper);
  white-space: nowrap;
}
.sh-brand-tag {
  max-height: 20px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--mist);
  transition: max-height .22s ease, opacity .22s ease;
}

.sh-status {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--mist);
  text-align: right;
}
.sh-status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .16);
}

.sh-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.sh-action {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(18, 58, 46, .5);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.sh-action:hover {
  color: var(--paper);
  border-color: var(--lime);
  background: rgba(198, 242, 78, .1);
}
.sh-action--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.sh-action--primary:hover {
  background: var(--lime-dim);
  border-color: var(--lime-dim);
  color: var(--ink);
}

.sh-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(18, 58, 46, .5);
  color: var(--mist);
  font-size: 12px;
  letter-spacing: .14em;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.sh-toggle:hover { color: var(--paper); border-color: var(--lime); }
.sh-toggle[aria-expanded="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.sh-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.sh-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.sh-toggle-bars i:last-child { width: 10px; }
.sh-toggle-text { font-weight: 700; }

.sh-navbar { border-top: 1px solid var(--line); }
.sh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.sh-nav { display: flex; flex-wrap: wrap; }
.sh-nav li { display: flex; }
.sh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--mist);
  transition: color .18s ease, background-color .18s ease;
}
.sh-nav li:first-child .sh-nav-link { border-left: 1px solid var(--line); }
.sh-nav-link:hover { color: var(--paper); background: rgba(198, 242, 78, .07); }
.sh-nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.sh-nav-num {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--lime);
}
.sh-nav-link[aria-current="page"] .sh-nav-num { color: rgba(7, 19, 15, .55); }
.sh-nav-note {
  padding-right: 6px;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--mist);
}

/* 头部滚动收窄 */
.site-header[data-compact] .sh-top-inner { padding-block: 8px; }
.site-header[data-compact] .sh-brand-tag {
  max-height: 0;
  opacity: 0;
}

/* ===================================================================
   页脚
   =================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 128px);
  background:
    radial-gradient(80rem 30rem at 50% 0%, rgba(198, 242, 78, .05), transparent 62%),
    linear-gradient(180deg, rgba(14, 42, 34, .94), rgba(7, 19, 15, .99));
  border-top: 1px solid var(--line-strong);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--amber) 52%, var(--cool) 100%);
  opacity: .9;
}

.sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px 36px;
  padding-block: 72px 48px;
}
.sf-brand-name {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.sf-brand-note {
  max-width: 34ch;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}
.sf-col-title {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--amber);
  text-transform: uppercase;
}
.sf-links { display: flex; flex-direction: column; gap: 2px; }
.sf-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--mist);
  transition: color .18s ease, transform .18s ease;
}
.sf-link:hover { color: var(--lime); transform: translateX(4px); }

.sf-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sf-contact-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--amber);
}
.sf-contact-link {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.sf-contact-link:hover { color: var(--lime); border-color: var(--lime); }
.sf-contact-addr {
  font-size: 13px;
  color: var(--mist);
}
.sf-contact-note {
  flex: 1 1 100%;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--mist);
}

.sf-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 46px;
}
.sf-legal {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}
.sf-sign {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--lime);
}

/* ===================================================================
   响应式
   =================================================================== */
@media (max-width: 1180px) {
  .sh-status { display: none; }
}

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

@media (max-width: 960px) {
  html { scroll-padding-top: 108px; }

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

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

  .sh-navbar { border-top: 1px solid var(--line-strong); }
  .sh-nav-inner { border-left: 0; border-right: 0; }
  .sh-nav { flex-direction: column; width: 100%; }
  .sh-nav li { display: block; }
  .sh-nav-link {
    width: 100%;
    padding: 16px 18px;
    border-right: 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    letter-spacing: .1em;
  }
  .sh-nav li:first-child .sh-nav-link { border-left: 0; border-top: 0; }
  .sh-nav-link[aria-current="page"] { padding-left: 24px; }
  .sh-nav-note { display: none; }

  .grid--7-5,
  .grid--8-4,
  .grid--5-7 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --radius-lg: 22px; }

  body { font-size: 16px; }

  .sh-top-inner { padding-block: 12px; gap: 10px 14px; }
  .sh-brand-name { font-size: 15px; white-space: normal; }
  .sh-brand-tag { display: none; }
  .sh-brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 11px; }
  .sh-actions {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .sh-actions::-webkit-scrollbar { display: none; }
  .sh-action { flex: 0 0 auto; padding: 8px 14px; font-size: 11px; }

  .filter-bar { border-radius: var(--radius); }

  .sf-grid { grid-template-columns: 1fr; padding-block: 48px 32px; gap: 32px; }
  .sf-brand-note { max-width: none; }
  .sf-contact { gap: 12px 24px; padding-block: 22px; }
  .sf-base { padding-block: 20px 36px; }
}

/* ===================================================================
   减弱动画
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
