/* ============================================================
   开云体育入口 · 共享样式 /assets/site.css
   深空蓝底 · 破晓橙强调 · 青训绿数据 · 暖纸白叙事区
   ============================================================ */

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

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

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

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

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

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

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

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

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

hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink:          #0B1F3A;   /* 深空蓝 */
  --ink-night:    #071427;   /* 夜纹蓝 */
  --ink-board:    #12294A;   /* 战术板蓝 */
  --dawn:         #FF6B35;   /* 破晓橙 */
  --amber:        #FFB347;   /* 熔金橙 */
  --pitch:        #2ECC71;   /* 青训绿 */
  --paper:        #F5EDE1;   /* 暖纸白 */
  --carbon:       #101010;   /* 墨黑 */
  --mist:         #93A4BD;   /* 雾灰蓝 */
  --alert:        #E5484D;   /* 警示红 */

  --text-on-dark: #E8EEF7;
  --text-dim:     #93A4BD;
  --line:         rgba(147, 164, 189, 0.22);
  --line-soft:    rgba(147, 164, 189, 0.14);
  --glass:        rgba(18, 41, 74, 0.55);
  --glass-deep:   rgba(7, 20, 39, 0.9);

  /* 排版 */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-head);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 度量 */
  --shell: 1240px;
  --header-h: 78px;
  --cut: 24px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --shadow-card: 0 22px 48px -34px rgba(0, 0, 0, 0.9);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-dark);
  background-color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: inherit;
}

h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; letter-spacing: -0.01em; }
h5 { font-size: 15px; letter-spacing: 0; }

p { line-height: 1.7; }

strong { font-weight: 800; }

::selection { background: var(--dawn); color: #1A0800; }

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--dawn);
  color: #1A0800;
  font-weight: 800;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--glass-deep);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.site-header[data-scrolled] {
  background-color: rgba(7, 20, 39, 0.97);
  box-shadow: 0 18px 34px -30px #000;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dawn), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-split {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  transition: min-height 0.24s var(--ease);
}

/* 品牌 */
.header-brand { display: flex; align-items: center; min-width: 0; }

.brand-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 16px;
  min-width: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 5px;
  background: var(--dawn);
  transform: skewX(-12deg);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--mist);
  white-space: nowrap;
}
.brand-mark:hover .brand-name { color: var(--dawn); }

/* 导航 */
.header-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.3vw, 22px);
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--dawn);
  transition: right 0.24s var(--ease);
}
.nav-link:hover { color: var(--amber); }
.nav-link:hover::after { right: 0; background: var(--amber); }

.nav-link[aria-current="page"] { color: var(--dawn); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--dawn); }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}
.nav-link:hover .nav-idx { color: var(--amber); }
.nav-link[aria-current="page"] .nav-idx { color: var(--amber); }

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* 移动菜单开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--dawn); color: var(--dawn); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--dawn);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle-bars i:nth-child(1) { width: 100%; }
.nav-toggle-bars i:nth-child(2) { width: 68%; }
.nav-toggle-bars i:nth-child(3) { width: 100%; }

.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background-color: var(--ink-night);
  color: var(--text-on-dark);
}

.footer-slice {
  height: 12px;
  background: linear-gradient(90deg,
    var(--dawn) 0 20%,
    var(--amber) 20% 31%,
    var(--pitch) 31% 38%,
    var(--ink-board) 38% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.footer-inner {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(0, 2.1fr) minmax(220px, 1.3fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(38px, 5vw, 72px) 0 clamp(26px, 3.5vw, 40px);
}

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.footer-brand-tag {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-link:hover { color: var(--dawn); border-bottom-color: var(--dawn); }

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

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  word-break: break-word;
}
.footer-contact-note {
  font-size: 13px;
  color: var(--mist);
}
.footer-address {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}
.footer-contact .btn { margin-top: 10px; }

.footer-legal {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-legal-copy { color: var(--mist); }
.footer-legal-icp { color: var(--mist); }

/* ---------- 7. 布局容器 ---------- */
.container {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.container--wide   { width: min(1480px, 100% - 32px); margin-inline: auto; }

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }

/* 分区底色 */
.zone-ink { background-color: var(--ink); color: var(--text-on-dark); }
.zone-night { background-color: var(--ink-night); color: var(--text-on-dark); }
.zone-paper { background-color: var(--paper); color: var(--carbon); }

.zone-paper .section-lead,
.zone-paper .eyebrow + p { color: rgba(16, 16, 16, 0.68); }

.glass {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}

.cut-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* ---------- 8. 左右分屏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.rail {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

/* ---------- 9. 标题组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dawn);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--dawn);
  transform: skewX(-24deg);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  font-size: clamp(26px, 3.4vw, 36px);
}

.section-lead {
  margin-top: 12px;
  max-width: 64ch;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- 10. 网格与卡片 ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); }

.card {
  position: relative;
  background-color: var(--ink-board);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: rgba(255, 107, 53, 0.5); }

.card--glass {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.card--paper {
  background-color: var(--paper);
  color: var(--carbon);
  border-color: rgba(16, 16, 16, 0.12);
  box-shadow: 0 20px 40px -34px rgba(0, 0, 0, 0.55);
}
.card--accent { border-top: 3px solid var(--dawn); }

.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}
.card--paper .card-text { color: rgba(16, 16, 16, 0.7); }

/* ---------- 11. 标签与数据数字 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.tag--dawn { color: var(--dawn); border-color: rgba(255, 107, 53, 0.45); background-color: rgba(255, 107, 53, 0.1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 179, 71, 0.45); background-color: rgba(255, 179, 71, 0.1); }
.tag--pitch { color: var(--pitch); border-color: rgba(46, 204, 113, 0.42); background-color: rgba(46, 204, 113, 0.1); }

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.data-num .unit {
  margin-left: 0.1em;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--mist);
}

/* ---------- 12. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--primary { background-color: var(--dawn); color: #1A0800; }
.btn--primary:hover { background-color: var(--amber); transform: translateY(-2px); }
.btn--pitch { background-color: var(--pitch); color: #04220F; }
.btn--pitch:hover { background-color: var(--amber); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(147, 164, 189, 0.4);
  background-color: rgba(18, 41, 74, 0.4);
  color: var(--text-on-dark);
}
.btn--ghost:hover { border-color: var(--dawn); color: var(--dawn); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 13. 面包屑与正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: rgba(147, 164, 189, 0.5);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--dawn); }
.breadcrumb [aria-current="page"] { color: var(--text-on-dark); }

.prose { max-width: 68ch; color: inherit; }
.prose > * + * { margin-top: 1.05em; }
.prose p { font-size: 17px; line-height: 1.78; color: inherit; }
.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.4em; }
.prose ul { display: flex; flex-direction: column; gap: 8px; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background-color: var(--dawn);
}
.zone-paper .prose { color: var(--carbon); }

/* ---------- 14. 图文容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-image: linear-gradient(135deg, var(--ink-board), var(--ink-night));
  background-color: var(--ink-board);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(7, 20, 39, 0) 42%, rgba(7, 20, 39, 0.78));
  pointer-events: none;
}
.media-frame--plain::after { display: none; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- 15. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(18, 41, 74, 0.5);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.filter-chip:hover { color: var(--text-on-dark); border-color: var(--amber); }
.filter-chip[aria-pressed="true"] {
  background-color: var(--pitch);
  border-color: var(--pitch);
  color: #04220F;
  font-weight: 700;
}

[data-filter-item][hidden] { display: none !important; }

[data-filter-status] {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 16. 入场动效 ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
html.js-ready [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式 ---------- */
@media (min-width: 901px) {
  .site-header[data-scrolled] .header-split { min-height: 62px; }
    .site-header[data-scrolled] .brand-tag { opacity: 0.75; }
}

@media (max-width: 1080px) {
  .nav-list { gap: 8px; }
  .nav-link { font-size: 14px; }
  .nav-link .nav-idx { display: none; }
}

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

  .header-split { grid-template-columns: auto 1fr auto; }

  .header-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    bottom: 0;
    width: min(360px, 88vw);
    padding: 22px 22px 48px;
    background-color: rgba(7, 20, 39, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .site-header[data-open] .header-nav {
    transform: none;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .nav-item { width: 100%; }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 15px 6px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }
  .nav-link .nav-idx { display: inline; font-size: 11px; }
  .nav-link[aria-current="page"] {
    color: var(--dawn);
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--dawn);
  }

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

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

  .split { grid-template-columns: 1fr; }
  .rail { position: static; top: auto; }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .nav-toggle-label { display: none; }
  .header-cta { padding: 10px 14px; font-size: 13px; }
  .header-split { gap: 10px; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 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;
  }
  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .header-progress { transition: none !important; }
}
