/* ============================================================
   安博体育站 · 共享样式表 /assets/site.css
   负责：reset、设计令牌、中文排版、头部、页脚、按钮、
        面包屑、正文容器、网格、图片容器与基础组件
   ============================================================ */

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

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

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 { display: block; max-width: 100%; }

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --night:      #0A1A2F;
  --night-2:    #0d2138;
  --teal:       #0E3B3E;
  --teal-2:     #12484b;
  --wine:       #5E1B2E;
  --indigo:     #241C4C;
  --orange:     #FF6A2B;
  --grass:      #2FBF71;
  --ice:        #7FD4F0;
  --yellow:     #FFD24A;
  --cream:      #F2F5F7;
  --mist:       #C7D3DD;
  --stroke:     #16324F;

  --shell-w: 1240px;
  --gutter: 40px;

  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow",
                  "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-ui:      "Inter", "Helvetica Neue", Arial,
                  "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial,
                  "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:    ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --cut: 28px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

p { max-width: 68ch; }

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

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

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

/* ---------- 4. 容器与网格 ---------- */
.shell {
  width: min(100% - var(--gutter), var(--shell-w));
  margin-inline: auto;
}

.section { padding-block: 64px; }

.section + .section { border-top: 1px solid var(--stroke); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 28px;
}

/* 展签式小标：短竖线 + 小号短语 */
.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
}

.exhibit-label::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--orange);
  flex: none;
}

.divider {
  height: 1px;
  background: var(--stroke);
  border: 0;
  margin: 0;
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--yellow);
  color: var(--night);
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
  transition: top .2s var(--ease);
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--night);
  border-bottom: 1px solid var(--stroke);
}

/* 6.1 上层条带 */
.header-strip {
  background: var(--indigo);
  border-bottom: 1px solid var(--stroke);
}

.header-strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 40px;
  padding-block: 6px;
}

.header-strip__pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .18);
}

.header-strip__text {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

.header-strip__actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-link {
  display: inline-block;
  padding: 4px 11px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ice);
  border: 1px solid rgba(127, 212, 240, .35);
  border-radius: 3px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.ghost-link:hover {
  background: rgba(127, 212, 240, .14);
  border-color: var(--ice);
}

.ghost-link--warm {
  color: var(--yellow);
  border-color: rgba(255, 210, 74, .42);
}

.ghost-link--warm:hover {
  background: rgba(255, 210, 74, .16);
  border-color: var(--yellow);
}

/* 6.2 品牌牌面层 */
.header-deck__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
}

.brand__mark {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
}

.brand--footer .brand__name { font-size: 20px; }

/* 6.3 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--stroke);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav-toggle:hover { border-color: var(--ice); background: rgba(127, 212, 240, .08); }

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { font-weight: 700; }

/* 6.4 栏目层 */
.primary-nav {
  background: var(--night-2);
  border-top: 1px solid var(--stroke);
}

.primary-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.primary-nav__list a {
  position: relative;
  display: block;
  padding: 9px 15px;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .05em;
  color: var(--mist);
  border-radius: 3px;
  transition: color .2s var(--ease);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}

.primary-nav__list a:hover { color: var(--cream); }
.primary-nav__list a:hover::after { transform: scaleX(1); }

.primary-nav__list a[aria-current="page"] {
  background: var(--yellow);
  color: var(--night);
  font-weight: 700;
}

.primary-nav__list a[aria-current="page"]::after { display: none; }

.primary-nav__cta { margin-left: auto; }

/* 6.5 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--grass), var(--yellow) 55%, var(--orange));
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #180602;
}

.btn--primary:hover { background: #ff8a58; transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--ice);
  color: var(--ice);
}

.btn--ghost:hover { background: rgba(127, 212, 240, .14); }

.btn--cut {
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 16px) 100%, 0 100%);
}

/* ---------- 8. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.crumb a { color: var(--mist); border-bottom: 1px solid transparent; transition: color .2s var(--ease); }
.crumb a:hover { color: var(--ice); border-bottom-color: var(--ice); }

.crumb__sep { color: var(--stroke); }

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

/* ---------- 9. 正文容器 ---------- */
.prose {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
}

.prose p + p { margin-top: 18px; }
.prose p { max-width: none; }

.prose a {
  color: var(--ice);
  border-bottom: 1px solid rgba(127, 212, 240, .45);
}

.prose a:hover { border-bottom-color: var(--ice); }

.lede {
  font-size: 20px;
  line-height: 1.7;
  color: var(--cream);
  max-width: 620px;
}

.text-mist { color: var(--mist); }

/* ---------- 10. 切角面板 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--night-2);
  border: 1px solid var(--stroke);
}

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

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

.panel--wine { background: var(--wine); border-color: rgba(242, 245, 247, .16); }
.panel--teal { background: var(--teal); border-color: rgba(127, 212, 240, .2); }
.panel--indigo { background: var(--indigo); border-color: rgba(127, 212, 240, .18); }

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--teal) 0%, var(--night) 72%);
  border: 1px solid var(--stroke);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 212, 240, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 240, .09) 1px, transparent 1px);
  background-size: 38px 38px;
}

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

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

/* ---------- 12. 细线时间轴 ---------- */
.time-axis {
  position: relative;
  padding-left: 26px;
}

.time-axis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--ice), rgba(127, 212, 240, .1));
}

.time-axis__node {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}

.time-axis__node[data-active] { transform: rotate(45deg) scale(1.15); }

/* ---------- 13. 入场动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}

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

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 120px;
  color: var(--cream);
  background: linear-gradient(180deg, var(--teal) 0%, #0b2f31 100%);
  border-top: 1px solid rgba(127, 212, 240, .25);
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}

.footer-frame {
  position: relative;
  display: grid;
  gap: 36px;
  padding-block: 60px 42px;
}

.footer-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--ice), rgba(127, 212, 240, 0));
  opacity: .55;
}

.footer-lead { padding-left: 20px; }

.footer-lead__note {
  margin-top: 20px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-lead__icp {
  margin-top: 16px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--yellow);
}

.footer-cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  padding-left: 20px;
}

.footer-col__title {
  position: relative;
  margin-bottom: 16px;
  padding-left: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ice);
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 3px;
  background: var(--orange);
}

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

.footer-col__list a {
  font-size: 15px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.footer-col__list--plain li {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  word-break: break-word;
}

.footer-col__hint {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(199, 211, 221, .78);
}

.footer-base {
  border-top: 1px solid rgba(127, 212, 240, .18);
  background: rgba(10, 26, 47, .42);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
  font-size: 13px;
  color: var(--mist);
}

.footer-base__copy { max-width: none; font-family: var(--font-mono); letter-spacing: .05em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: var(--mist);
  border-bottom: 1px solid rgba(199, 211, 221, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-legal a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ---------- 15. 平板 ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .section { padding-block: 52px; }
  .primary-nav__list a { padding-inline: 12px; }
}

/* ---------- 16. 移动端 ---------- */
@media (max-width: 900px) {
  :root { --gutter: 28px; --cut: 22px; }

  .header-strip__inner { padding-block: 8px; }
  .header-strip__actions { margin-left: 0; width: 100%; }

  .header-deck__inner { padding-block: 12px; }

  .brand__mark { width: 38px; height: 38px; font-size: 19px; }
  .brand__name { font-size: 19px; letter-spacing: .08em; }
  .brand__tag { font-size: 11px; letter-spacing: .12em; }

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

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 55;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-block: 12px 18px;
    background: var(--teal);
    border-top: 1px solid var(--stroke);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
  }

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

  .primary-nav__inner { display: block; min-height: 0; }

  .primary-nav__list { flex-direction: column; gap: 0; }

  .primary-nav__list a {
    padding: 13px 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(22, 50, 79, .8);
    border-radius: 0;
  }

  .primary-nav__list a::after { display: none; }

  .primary-nav__list a[aria-current="page"] { border-bottom-color: transparent; }

  .primary-nav__cta { margin: 16px 16px 0; }

  .primary-nav__cta .btn { width: 100%; }

  .footer-frame { padding-block: 44px 34px; gap: 30px; }
  .footer-lead,
  .footer-cols { padding-left: 16px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { margin-top: 88px; }
}

/* ---------- 17. 小屏 ---------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .section { padding-block: 40px; }
  .panel { padding: 18px; }
  .footer-base__inner { justify-content: flex-start; }
  .header-strip__text { font-size: 12px; }
  .ghost-link { font-size: 12px; padding: 4px 9px; }
}

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

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

  .btn--primary:hover { transform: none; }
}
