/* ============================================================
   中欧体育 · e-zhongoutiyu.com.cn
   /assets/site.css — 共享外壳样式
   设计语言：北境竞技档案室
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0A0E13;
  --night: #12212E;
  --ice: #7FD4F2;
  --ice-deep: #0E3A52;
  --orange: #FF6A1A;
  --green: #2FD08A;
  --red: #E8433F;
  --metal: #8A99A6;
  --frost: #DFF1F8;
  --paper: #F5F7F8;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-head);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --s1: 12px;
  --s2: 14px;
  --s3: 16px;
  --s4: 20px;
  --s5: 28px;
  --s6: 40px;
  --s7: 64px;
  --s8: 88px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shell: 1180px;
  --rule: 1px solid rgba(138, 153, 166, 0.24);
  --rule-ice: 1px solid rgba(127, 212, 242, 0.3);
  --hard: 8px 8px 0 rgba(14, 58, 82, 0.55);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--s3);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--paper);
}
h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(28px, 4.4vw, 64px); }
h3 { font-size: clamp(20px, 2.6vw, 40px); }
h4 { font-size: var(--s5); line-height: 1.15; letter-spacing: -0.02em; }
h5 { font-size: var(--s4); line-height: 1.2; letter-spacing: -0.01em; }
h6 { font-size: var(--s3); font-weight: 700; line-height: 1.35; letter-spacing: 0; }

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

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--paper); }

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

ul, ol, dl { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 0.35em; }

button { font: inherit; color: inherit; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: var(--rule); margin: 2em 0; }

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

/* ---------- 3. 焦点与跳转 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--s2);
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ice);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

#main-content { display: block; scroll-margin-top: 130px; }

/* ---------- 4. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 3px solid var(--ice-deep);
  box-shadow: 0 12px 0 -8px rgba(127, 212, 242, 0.22);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 3.4vw, 40px);
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--metal);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.masthead__tools--end { justify-content: flex-end; }

.tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(127, 212, 242, 0.32);
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.tool:hover,
.tool:focus-visible {
  background: var(--ice-deep);
  border-color: var(--ice);
  color: var(--paper);
}

.tool__dot { display: block; width: 7px; height: 7px; flex: none; }
.tool__dot--orange { background: var(--orange); }
.tool__dot--green { background: var(--green); }
.tool__dot--red { background: var(--red); }

.masthead__season {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.masthead__season-label { letter-spacing: 0.2em; }
.masthead__track {
  display: block;
  width: clamp(64px, 12vw, 140px);
  height: 4px;
  background: var(--ice-deep);
  overflow: hidden;
}
.masthead__track-fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--ice) 0%, var(--green) 100%);
  transition: width 240ms var(--ease);
}
.masthead__season-round { color: var(--ice); letter-spacing: 0.08em; }

.masthead__plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(16px, 2.6vw, 30px) 16px clamp(8px, 1.2vw, 14px);
  text-align: center;
  transition: padding 200ms var(--ease);
}

.masthead__brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-shadow: 6px 6px 0 rgba(14, 58, 82, 0.85);
  transition: font-size 200ms var(--ease), color 160ms var(--ease), text-shadow 200ms var(--ease);
}
.masthead__brand:hover {
  color: var(--ice);
  text-shadow: 6px 6px 0 rgba(255, 106, 26, 0.32);
}

.masthead__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--metal);
  transition: opacity 160ms var(--ease);
}

.masthead.is-condensed .masthead__plate {
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  padding: 8px 16px 6px;
}
.masthead.is-condensed .masthead__brand {
  font-size: clamp(20px, 2.6vw, 34px);
  text-shadow: 3px 3px 0 rgba(14, 58, 82, 0.9);
}
.masthead.is-condensed .masthead__kicker { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: var(--ice-deep);
  border: 0;
  border-top: var(--rule-ice);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.22em;
  cursor: pointer;
}
.nav-toggle__icon { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__icon i { display: block; height: 2px; background: var(--ice); }
.nav-toggle__text { line-height: 1; }

.masthead__nav {
  background: var(--ink);
  border-top: var(--rule-ice);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.6vw, 34px);
  margin: 0;
  padding: 0 clamp(14px, 3.4vw, 40px);
  list-style: none;
}
.nav__item { margin: 0; }

.nav__link {
  position: relative;
  display: block;
  padding: 15px 2px 17px;
  font-family: var(--font-head);
  font-size: var(--s2);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--frost);
  transition: color 140ms var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease);
}
.nav__link:hover { color: var(--ice); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ice); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

@keyframes zh-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(10, 14, 19, 0.92);
  border: 2px solid var(--ice);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(14, 58, 82, 0.75);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  background: linear-gradient(180deg, #0A0E13 0%, #0E1620 100%);
  border-top: 3px solid var(--ice);
  color: var(--metal);
  font-family: var(--font-mono);
  font-size: var(--s1);
  letter-spacing: 0.03em;
}

.site-foot__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 40px) 24px;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.5fr;
  gap: clamp(22px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid rgba(127, 212, 242, 0.28);
}

.site-foot__block { min-width: 0; }

.site-foot__brand {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.site-foot__note {
  margin: 0;
  max-width: 30em;
  font-family: var(--font-body);
  font-size: var(--s2);
  line-height: 1.8;
  color: var(--metal);
}

.site-foot__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(127, 212, 242, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ice);
}

.site-foot__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--s2);
}
.site-foot__list li { margin: 0; }
.site-foot__list a {
  color: var(--metal);
  transition: color 140ms var(--ease);
}
.site-foot__list a:hover { color: var(--ice); }

.site-foot__list--mono {
  gap: 11px;
  font-family: var(--font-mono);
  font-size: var(--s1);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.site-foot__key {
  display: inline-block;
  min-width: 3.6em;
  margin-right: 8px;
  color: var(--ice-deep);
  color: rgba(127, 212, 242, 0.85);
  letter-spacing: 0.16em;
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
}
.site-foot__icp,
.site-foot__copy {
  margin: 0;
  font-size: var(--s1);
  letter-spacing: 0.1em;
  color: var(--metal);
}
.site-foot__icp { color: var(--frost); }

/* ---------- 7. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.container--wide { max-width: 1440px; }

.main { display: block; }

.grid { display: grid; gap: clamp(16px, 2.6vw, 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)); }
.grid--5x7 { grid-template-columns: 5fr 7fr; }

.breath { height: clamp(48px, 8vw, 120px); }

/* ---------- 8. 表面与文案 ---------- */
.surface {
  padding: clamp(18px, 2.6vw, 28px);
  background: var(--night);
  border: 1px solid rgba(127, 212, 242, 0.2);
  box-shadow: var(--hard);
}
.surface--ink {
  background: var(--ink);
  border-color: rgba(138, 153, 166, 0.28);
}
.surface--paper {
  background: var(--frost);
  border: 3px solid var(--ink);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(127, 212, 242, 0.35);
}
.surface--paper :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); }
.surface--paper a { color: var(--ice-deep); }
.surface--paper a:hover { color: var(--ink); }

.prose { max-width: 640px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--orange);
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--orange);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--s2);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(127, 212, 242, 0.4);
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 140ms var(--ease), color 140ms var(--ease);
}
.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(127, 212, 242, 0.55);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(127, 212, 242, 0.45);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ice);
  color: var(--ice);
  box-shadow: 4px 4px 0 rgba(14, 58, 82, 0.9);
}
.btn--ghost:hover {
  background: var(--ice-deep);
  color: var(--paper);
  box-shadow: 6px 6px 0 rgba(14, 58, 82, 1);
}

.btn--pass {
  background: var(--green);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--sm { padding: 9px 16px; font-size: var(--s1); }

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--s1);
  letter-spacing: 0.1em;
  color: var(--metal);
}
.crumbs li { margin: 0; }
.crumbs a { color: var(--ice); }
.crumbs a:hover { color: var(--paper); }
.crumbs__sep { color: var(--ice-deep); }

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--night) 0%, var(--ice-deep) 100%);
  border: 3px solid var(--ink);
  box-shadow: var(--hard);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(127, 212, 242, 0.13) 0 1px,
    transparent 1px 44px
  );
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- 12. 数据脉冲 ---------- */
@keyframes zh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.84); }
}
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  animation: zh-pulse 1.6s var(--ease) infinite;
}
.pulse--orange { background: var(--orange); }
.pulse--green { background: var(--green); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5x7 { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .masthead__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 10px 14px;
  }
  .masthead__season { order: -1; width: 100%; justify-content: center; }

  .masthead__plate { padding: 14px 14px 8px; }
  .masthead__brand { font-size: clamp(30px, 11vw, 46px); text-shadow: 4px 4px 0 rgba(14, 58, 82, 0.9); }

  .masthead.is-condensed .masthead__plate { flex-direction: row; padding: 7px 14px 6px; }

  .nav-toggle { display: flex; }

  .masthead__nav { display: none; }
  .masthead__nav[data-open] {
    display: block;
    animation: zh-drop 200ms var(--ease);
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }
  .nav__item { border-bottom: var(--rule); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link {
    padding: 15px 22px;
    font-size: 15px;
    letter-spacing: 0.14em;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--ice-deep); }
  .nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--orange);
  }

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

  .site-foot__legal { flex-direction: column; align-items: flex-start; }
  .to-top { width: 44px; height: 44px; font-size: 16px; }
}

@media (max-width: 599px) {
  .site-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .masthead__season-label { display: none; }
  .container { padding-inline: 16px; }
}

/* ---------- 14. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .pulse { animation: none; opacity: 1; transform: none; }
  .to-top { transform: none; }
  .btn:hover { transform: none; }
  .masthead__nav[data-open] { animation: none; }
}
