/* =========================================================
   EMC体育中国站 · 共享样式表 /assets/site.css
   夜场蓝黑底 + 荧光青 / 电光橙双强调色
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  color-scheme: dark;

  --ink: #070c14;
  --ink-2: #0b131c;
  --surface: #101a24;
  --line: #1e2c38;
  --muted: #8794a1;
  --white: #f5f8fa;

  --cyan: #29f0d0;
  --cyan-soft: rgba(41, 240, 208, 0.14);
  --cyan-edge: rgba(41, 240, 208, 0.5);
  --orange: #ff7a1a;
  --orange-deep: #1a0e04;

  --moss: #5e7a66;
  --clay: #a96a4c;
  --paper: #e9e2d6;
  --paper-ink: #101a24;

  --font-display: "Archivo Narrow", "Oswald", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: Inter, "Noto Sans SC", system-ui, -apple-system, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 74px;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 240ms;

  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

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

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

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

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

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

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

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

/* ---------- 3. 中文排版基线 ---------- */
body {
  background-color: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.004em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
  color: var(--white);
}

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

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.main-offset {
  padding-top: calc(var(--header-h) + 28px);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

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

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

/* ---------- 5. 页头：悬浮胶囊浮岛 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 130;
  transform: translate(-50%, -180%);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--ink);
}

.header-rail {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter) 0;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 44, 56, 0.9);
  background: rgba(16, 26, 36, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), padding var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-condensed .header-shell {
  padding-block: 5px;
  background: rgba(7, 12, 20, 0.88);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.site-header.is-condensed .header-rail {
  padding-top: 8px;
}

/* 品牌浮岛 */
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

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

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: conic-gradient(
    from 210deg,
    var(--cyan),
    var(--moss),
    var(--orange),
    var(--cyan)
  );
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: var(--ink);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* 栏目胶囊 */
.nav-capsule {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #c3cdd6;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: var(--cyan-soft);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  font-weight: 600;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--dur) var(--ease);
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.site-header[data-open] .nav-toggle-bars {
  background: transparent;
}

.site-header[data-open] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动进度刻度 */
.scroll-progress {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

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

.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: #5ff5dd;
  color: var(--ink);
}

.btn--accent {
  background: var(--orange);
  color: var(--orange-deep);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: #ff9243;
  color: var(--orange-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ---------- 7. 索引与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.index-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  background: rgba(94, 122, 102, 0.24);
  color: #a9c4af;
}

.tag--clay {
  background: rgba(169, 106, 76, 0.22);
  color: #d6a184;
}

.accent-rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan) 18%,
    var(--line) 18%,
    var(--line) 100%
  );
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--cyan-edge);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.card__title a {
  color: inherit;
}

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

.card__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 9. 图片 / 视觉容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #101a24 0%, #0b131c 55%, #0f222a 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(41, 240, 208, 0.06) 0 1px,
    rgba(41, 240, 208, 0) 1px 4px
  );
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.media-frame--3x4 {
  aspect-ratio: 3 / 4;
}

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  padding-top: 10px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs-list a {
  color: var(--muted);
}

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

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

/* ---------- 11. 阅读区与正文 ---------- */
.reading-surface {
  padding: clamp(24px, 4vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--paper-ink);
}

.reading-surface h2,
.reading-surface h3,
.reading-surface h4 {
  color: var(--paper-ink);
}

.reading-surface a {
  color: #0e5c50;
  text-decoration: underline;
}

.reading-surface a:hover {
  color: #8a3d0b;
}

.prose {
  max-width: 42em;
}

.prose p {
  font-size: 16.5px;
  line-height: 1.78;
}

.prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: clamp(22px, 2.6vw, 32px);
}

.prose h3 {
  margin: 1.4em 0 0.5em;
  font-size: 20px;
}

/* ---------- 12. 可展开内容组 ---------- */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.disclosure:hover {
  border-color: rgba(41, 240, 208, 0.32);
}

.disclosure[data-open] {
  border-color: var(--cyan-edge);
}

.disclosure + .disclosure {
  margin-top: 12px;
}

.disclosure-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}

.disclosure-toggle:hover {
  color: var(--cyan);
}

.disclosure-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.disclosure[data-open] .disclosure-toggle::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.disclosure[data-open] .disclosure-panel {
  grid-template-rows: 1fr;
}

.disclosure-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 13. 显现动效 ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background: radial-gradient(
      120% 140% at 88% 0%,
      rgba(41, 240, 208, 0.07),
      rgba(41, 240, 208, 0) 55%
    ),
    var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan) 18%,
    var(--line) 18%,
    var(--line) 100%
  );
}

.footer-shell {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) 24px;
}

.footer-tick {
  position: absolute;
  top: 0;
  right: var(--gutter);
  width: 1px;
  height: clamp(60px, 14vw, 180px);
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(41, 240, 208, 0) 100%);
  opacity: 0.75;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-note {
  max-width: 46ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 48px);
}

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

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9c4ce;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cyan);
}

.footer-list--plain li {
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9c4ce;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-icp {
  color: #6f7d8a;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }

  .nav-link {
    padding: 9px 11px;
    font-size: 13.5px;
  }
}

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

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

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .header-rail {
    padding-top: 10px;
  }

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

  .nav-capsule {
    position: fixed;
    top: calc(var(--header-h) + 14px);
    left: var(--gutter);
    right: var(--gutter);
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(11, 19, 28, 0.97);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }

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

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

  .nav-link {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
}

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

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-top {
    align-items: flex-start;
  }

  .footer-tick {
    height: 72px;
  }

  .disclosure-toggle {
    font-size: 16px;
    padding: 16px;
  }

  .disclosure-inner {
    padding-inline: 16px;
  }
}

/* ---------- 16. 降低动效偏好 ---------- */
@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;
  }

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