/* ==========================================================================
   三升体育 · 共享样式表 /assets/site.css
   战术板报头 —— 非对称编辑部版式的公共外壳
   ========================================================================== */

/* --- 1. 重置 ------------------------------------------------------------ */
*,
*::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, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

a { color: inherit; }

hr { border: 0; }

/* --- 2. 变量 ------------------------------------------------------------ */
:root {
  --deep:        #0A2B22;
  --deep-mid:    #12452F;
  --deep-lift:   #0D3529;
  --cyan:        #35F2C4;
  --blue:        #2F6BFF;
  --gold:        #F2C14E;
  --mist:        #E8F3EE;
  --ink:         #0E1513;
  --slate:       #5C6E67;
  --gridline:    #1E4A3A;
  --coral:       #FF6B5A;

  --line:        rgba(53, 242, 196, 0.24);
  --line-soft:   rgba(232, 243, 238, 0.12);
  --line-dark:   rgba(14, 21, 19, 0.12);

  --font-display: "Oswald", "Barlow Condensed", "HarmonyOS Sans SC",
                  "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
                  "Microsoft YaHei", system-ui, sans-serif;
  --font-heading: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:    "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
                  Consolas, "Liberation Mono", monospace;

  --maxw:   1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 4px;

  --shadow-soft: 0 1px 2px rgba(4, 20, 15, 0.28);
  --shadow-lift: 0 14px 32px rgba(4, 20, 15, 0.38);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 3. 中文排版基座 ---------------------------------------------------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--mist);
  background-color: var(--deep);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, rgba(53, 242, 196, 0.09), transparent 62%),
    radial-gradient(980px 520px at 102% -4%, rgba(47, 107, 255, 0.08), transparent 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p + p { margin-top: 1.2em; }

strong, b { font-weight: 700; }

code, kbd, samp, .num, [data-num] {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(53, 242, 196, 0.28);
  color: #ffffff;
}

/* --- 4. 可达性 ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 400;
  transform: translate(-50%, -140%);
  display: inline-block;
  padding: 12px 22px;
  background: var(--cyan);
  color: #04231b;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible,
.skip-link:focus {
  transform: translate(-50%, 0);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  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;
}

/* --- 5. 头部：报头 + 栏目索引条 ----------------------------------------- */
.site-header {
  position: relative;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(53, 242, 196, 0.07), rgba(53, 242, 196, 0) 62%),
    var(--deep);
  border-bottom: 1px solid var(--gridline);
  color: var(--mist);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 74, 58, 0.62) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 74, 58, 0.62) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.42;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.25rem);
  padding-block: 18px 16px;
  flex-wrap: wrap;
}

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--mist);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  background: rgba(53, 242, 196, 0.08);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.brand__tagline {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(232, 243, 238, 0.5);
}

/* 报头状态标识 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(232, 243, 238, 0.55);
  white-space: nowrap;
}

.header-meta__live {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 196, 0.16);
}

.header-meta__text { display: inline-block; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(53, 242, 196, 0.05);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(53, 242, 196, 0.12); }

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-toggle__label { display: inline-block; }

/* 栏目索引条 */
.header-nav {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gridline);
  background: rgba(10, 43, 34, 0.62);
}

.header-inner--nav { padding-inline: 0; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.site-nav__list > li + li { border-left: 1px solid var(--gridline); }

.site-nav__list a {
  position: relative;
  display: block;
  padding: 13px clamp(12px, 2.4vw, 28px);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(232, 243, 238, 0.76);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav__list a:hover {
  color: var(--cyan);
  background: rgba(53, 242, 196, 0.07);
}

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

.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 242, 196, 0.5);
}

/* --- 6. 页脚 ------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(180deg, rgba(53, 242, 196, 0.05), rgba(53, 242, 196, 0) 40%),
    #071f19;
  border-top: 1px solid var(--gridline);
  color: rgba(232, 243, 238, 0.78);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 74, 58, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 74, 58, 0.5) 1px, transparent 1px);
  background-size: 108px 108px;
  opacity: 0.3;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand--footer .brand__mark {
  border-color: rgba(53, 242, 196, 0.7);
  background: rgba(53, 242, 196, 0.06);
}

.footer-lede {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 243, 238, 0.62);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}

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

.footer-col__list a {
  font-size: 15px;
  color: rgba(232, 243, 238, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-col__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--line);
}

.footer-contact {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact__label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px clamp(1rem, 3vw, 2.5rem);
}

.footer-contact__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  align-items: baseline;
}

.footer-contact__key {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.footer-contact__val {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(232, 243, 238, 0.88);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(232, 243, 238, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(232, 243, 238, 0.46);
}

.footer-legal,
.footer-copy { margin: 0; }

/* --- 7. 通用按钮 -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--gold);
  color: #1c1403;
}

.btn--solid:hover { background: #ffd469; }

.btn--ghost {
  border-color: var(--line);
  background: rgba(53, 242, 196, 0.05);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: rgba(53, 242, 196, 0.14);
  border-color: var(--cyan);
}

.btn--blue {
  background: var(--blue);
  color: #ffffff;
}

.btn--blue:hover { background: #4b80ff; }

/* --- 8. 容器与编辑部节奏组件 ------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.section-heading h2 { margin: 0; }

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(232, 243, 238, 0.72);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gridline), transparent);
}

.note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--slate);
}

/* 面包屑 */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(232, 243, 238, 0.5);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gridline);
}

.breadcrumb a {
  color: rgba(232, 243, 238, 0.72);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

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

/* --- 9. 网格、卡片、标签 ------------------------------------------------ */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--deep-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow-lift);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  white-space: nowrap;
}

.tag--gold {
  border-color: rgba(242, 193, 78, 0.5);
  color: var(--gold);
}

.tag--blue {
  border-color: rgba(47, 107, 255, 0.5);
  color: #8fadff;
}

/* --- 10. 图片容器基础规则 ---------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--deep-mid) 0%, var(--deep) 58%, #06190f 100%);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(53, 242, 196, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 242, 196, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media--wide   { aspect-ratio: 21 / 9; }
.media--tall   { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 16px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(232, 243, 238, 0.82);
  background: linear-gradient(180deg, transparent, rgba(4, 20, 15, 0.86));
}

/* --- 11. 滚动交互（由 JS 注入） ---------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 200;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--deep-mid);
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s var(--ease), background-color 0.18s var(--ease);
}

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

.to-top:hover { background: var(--deep-lift); }

/* --- 12. 显现动效 ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --- 13. 响应式 -------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

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

  .header-cta { margin-left: auto; }

  .header-meta { display: none; }

  .header-inner--nav { padding-inline: 0; }

  .site-nav { display: none; }

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

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

  .site-nav__list > li + li {
    border-left: 0;
    border-top: 1px solid var(--gridline);
  }

  .site-nav__list a { padding: 15px var(--gutter); }

  .site-nav__list a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

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

  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .masthead {
    padding-block: 14px;
    gap: 12px;
  }

  .brand__mark { width: 38px; height: 38px; font-size: 12px; }
  .brand__name { font-size: 18px; }
  .brand__tagline { letter-spacing: 0.22em; font-size: 10.5px; }

  .header-cta { display: none; }

  .footer-contact__list { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* --- 14. 动效克制 ------------------------------------------------------ */
@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;
  }

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

  .btn:hover,
  .card:hover { transform: none; }
}
