/* ==========================================================================
   谈球吧CN球员数据 — 全站共享样式表  /assets/site.css
   1 Reset  2 变量  3 排版工具  4 焦点  5 跳转链接  6 页头
   7 导航与抽屉  8 抽屉开关  9 滚动进度  10 按钮  11 页脚
   12 布局容器  13 卡片与标签  14 面包屑  15 图片容器  16 动效  17 响应式
   ========================================================================== */

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F4EFE2;
  --paper-2: #EAE3D2;
  --paper-3: #E1D8C4;
  --green: #0E3B32;
  --green-deep: #08251F;
  --cyan: #3FE0C8;
  --cyan-deep: #1FA796;
  --amber: #F0A03C;
  --brick: #D2492A;
  --ink: #1C1613;
  --sage: #7E918A;
  --glass: rgba(255, 255, 255, 0.62);
  --mist: #DCEFE8;
  --slate: #202A28;

  --line: rgba(28, 22, 19, 0.15);
  --line-strong: rgba(28, 22, 19, 0.34);
  --line-light: rgba(244, 239, 226, 0.16);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-text: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > #main-content { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

strong { font-weight: 700; }

.u-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.u-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

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

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

/* ---------- 4. 焦点 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

.site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--cyan);
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -110px;
  left: var(--gutter);
  z-index: 300;
  padding: 13px 22px;
  background-color: var(--green);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(244, 239, 226, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  min-height: var(--header-h);
  transition: min-height 0.28s var(--ease);
}

.site-header.is-condensed .site-header__inner {
  min-height: 60px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 4px 0;
}

.brand__mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  background-color: var(--green);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  color: var(--green);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--sage);
}

.site-header.is-condensed .brand__sub {
  display: none;
}

/* 页头右侧按钮与状态 */
.header-cta {
  flex: none;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(14, 59, 50, 0.26);
  background-image: linear-gradient(90deg, rgba(63, 224, 200, 0.24), rgba(63, 224, 200, 0));
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--green);
  white-space: nowrap;
  transition: opacity 0.24s var(--ease);
}

.header-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  background-color: var(--cyan);
  animation: headerPulse 2.6s var(--ease) infinite;
}

.header-status__value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.site-header.is-condensed .header-status {
  opacity: 0;
  pointer-events: none;
}

@keyframes headerPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 224, 200, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(63, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 224, 200, 0); }
}

/* ---------- 7. 导航 ---------- */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: navCount;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: rgba(14, 59, 50, 0.82);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--green);
  background-color: rgba(14, 59, 50, 0.06);
}

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

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background-color: var(--cyan);
}

.site-nav__foot {
  display: none;
}

.site-nav__meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(126, 145, 138, 0.95);
}

/* ---------- 8. 抽屉开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(14, 59, 50, 0.3);
  color: var(--green);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--green);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle__round {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- 9. 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 62%, var(--amber) 100%);
  pointer-events: none;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn--solid {
  background-color: var(--green);
  color: var(--paper);
}

.btn--solid:hover {
  background-color: var(--cyan);
  color: var(--green-deep);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--green);
}

.btn--ghost:hover {
  border-color: var(--green);
  background-color: var(--green);
  color: var(--paper);
}

.btn--cyan {
  background-color: var(--cyan);
  color: var(--green-deep);
}

.btn--cyan:hover {
  background-color: var(--paper);
  color: var(--green);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: clamp(48px, 7vw, 88px);
  background-color: var(--green-deep);
  color: rgba(244, 239, 226, 0.82);
  border-top: 2px solid var(--cyan);
}

.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.35fr;
  gap: clamp(24px, 3vw, 52px);
}

.footer-col {
  min-width: 0;
}

.footer-col--brand {
  padding-right: clamp(0px, 2vw, 32px);
}

.site-footer .brand__mark {
  background-color: var(--cyan);
}

.site-footer .brand__mark::after {
  background-color: var(--green-deep);
}

.site-footer .brand__name {
  color: var(--paper);
}

.site-footer .brand__sub {
  color: rgba(126, 145, 138, 0.95);
}

.footer-col__desc {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 239, 226, 0.66);
}

.footer-col__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(63, 224, 200, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(244, 239, 226, 0.78);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact li + li {
  margin-top: 16px;
}

.footer-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer-contact__value {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.footer-data {
  display: grid;
  gap: 0;
}

.footer-data__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(244, 239, 226, 0.18);
}

.footer-data__row:first-child {
  padding-top: 0;
}

.footer-data__key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sage);
}

.footer-data__val {
  margin: 0;
  text-align: right;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cyan);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(126, 145, 138, 0.95);
}

.footer-base__icp a {
  border-bottom: 1px solid rgba(63, 224, 200, 0.4);
  transition: color 0.2s var(--ease);
}

.footer-base__icp a:hover {
  color: var(--cyan);
}

/* ---------- 12. 布局容器 ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - (var(--gutter) * 2), 760px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.section--tight {
  padding-block: clamp(32px, 5vw, 64px);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brick);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.04;
  color: var(--green);
}

/* ---------- 13. 卡片与标签 ---------- */
.card {
  padding: clamp(20px, 3vw, 34px);
  background-color: var(--paper-2);
  border: 1px solid var(--line);
}

.card--glass {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.card--panel {
  background-color: var(--slate);
  border-color: rgba(63, 224, 200, 0.3);
  color: rgba(244, 239, 226, 0.86);
}

.card--panel .u-label,
.card--panel .u-eyebrow {
  color: rgba(126, 145, 138, 0.95);
}

.card--amber {
  background-color: var(--amber);
  border-color: transparent;
  color: var(--green-deep);
}

.card--mist {
  background-color: var(--mist);
  border-color: rgba(31, 167, 150, 0.35);
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.module-tag--rotation {
  color: var(--cyan-deep);
  background-color: rgba(220, 239, 232, 0.7);
}

.module-tag--stoppage {
  color: #8A5410;
  background-color: rgba(240, 160, 60, 0.2);
}

.module-tag--panel {
  color: var(--cyan);
  background-color: rgba(32, 42, 40, 0.92);
}

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

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

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

.breadcrumb__sep {
  color: rgba(126, 145, 138, 0.6);
}

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

/* ---------- 15. 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background-color: var(--green-deep);
  isolation: isolate;
}

.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(63, 224, 200, 0.55);
  pointer-events: none;
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--3x4  { aspect-ratio: 3 / 4; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--21x9 { aspect-ratio: 21 / 9; }

.figure__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 10px 14px;
  background-color: rgba(8, 37, 31, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 226, 0.92);
}

/* ---------- 16. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease) var(--reveal-delay, 0s),
    transform 0.55s var(--ease) var(--reveal-delay, 0s);
}

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

[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.24s var(--ease) var(--reveal-delay, 0s);
}

[data-reveal="clip"].is-inview {
  clip-path: inset(0 0 0 0);
}

html.nav-locked {
  overflow: hidden;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1280px) {
  .header-status__label { display: none; }
}

@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    width: min(86vw, 380px);
    margin: 0;
    padding: calc(var(--header-h) + 20px) clamp(22px, 6vw, 34px) 44px;
    display: flex;
    flex-direction: column;
    background-color: var(--green-deep);
    border-right: 1px solid rgba(63, 224, 200, 0.26);
    overflow-y: auto;
    transform: translateX(-101%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0s linear 0.34s;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.34s var(--ease), visibility 0s linear 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navDrawer;
  }

  .site-nav__link {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(244, 239, 226, 0.14);
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0.1em;
    color: rgba(244, 239, 226, 0.86);
  }

  .site-nav__link::before {
    content: counter(navDrawer, decimal-leading-zero);
    counter-increment: navDrawer;
    display: inline-block;
    margin-right: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--sage);
    vertical-align: 3px;
  }

  .site-nav__link:hover {
    color: var(--cyan);
    background-color: transparent;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--cyan);
  }

  .site-nav__link[aria-current="page"]::after {
    left: 4px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 20px;
    transform: translateY(-50%);
  }

  .site-nav__foot {
    display: block;
    margin-top: auto;
    padding-top: 34px;
  }

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

  .header-cta,
  .header-status {
    display: none;
  }

  .site-header__inner {
    gap: 12px;
  }
}

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

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

@media (max-width: 900px) {
  .grid--12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

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

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-data__row {
    flex-direction: column;
    gap: 4px;
  }

  .footer-data__val {
    text-align: left;
  }

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

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

  .brand__sub {
    display: none;
  }
}

/* ---------- 18. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal="clip"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .header-status__dot {
    animation: none;
  }
}
