/* ============================================================
   新宝体育 / 共享外壳样式  /assets/site.css
   深空蓝黑 · 冰城冷蓝 · 极光青 · 信号橙
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --void:        #05101F;
  --ice:         #0B2B4A;
  --panel-blue:  #123C63;
  --aurora:      #35E0C6;
  --aurora-deep: #1B9E8F;
  --signal:      #FF7A1A;
  --snow:        #E9F3FA;
  --steel:       #A8BFD4;
  --slate:       #6E879E;
  --teal-edge:   #0E4F55;

  --line-soft:   rgba(168, 191, 212, .18);
  --line-ice:    rgba(53, 224, 198, .22);

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

  --gutter:    clamp(18px, 6vw, 96px);
  --shell-max: 1280px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill:      999px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shade: 0 26px 60px -34px rgba(2, 8, 16, .92);
  --read-progress: 0;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--snow);
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(233, 243, 250, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 243, 250, .032) 1px, transparent 1px),
    radial-gradient(130% 90% at 10% -12%, rgba(27, 158, 143, .18), transparent 55%),
    radial-gradient(115% 80% at 96% 4%, rgba(18, 60, 99, .78), transparent 62%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--aurora); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; color: var(--snow); }
::selection { background: var(--aurora); color: #04211d; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 容器与基础排版工具 ---------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 84px); }

.section--tint {
  background: linear-gradient(180deg, rgba(11, 43, 74, .78), rgba(5, 16, 31, 0));
}

.stack { display: grid; gap: clamp(14px, 2vw, 26px); }

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aurora);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .85;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--snow);
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--steel);
}

.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-ice), transparent);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 22px;
  border-radius: var(--pill);
  background: var(--aurora);
  color: #04211d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shade);
  transition: transform .22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 悬浮胶囊头部 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.site-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aurora), var(--aurora-deep) 46%, var(--signal));
  transform: scaleX(var(--read-progress));
  transform-origin: 0 50%;
  opacity: .9;
  pointer-events: none;
}

.head-rail {
  position: relative;
  pointer-events: auto;
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 8px 10px 8px 14px;
  border-radius: var(--pill);
  background: linear-gradient(115deg, rgba(18, 60, 99, .92), rgba(11, 43, 74, .82));
  border: 1px solid var(--line-ice);
  box-shadow: var(--shade), inset 0 1px 0 rgba(233, 243, 250, .1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.site-head[data-scrolled="true"] .head-rail {
  padding-block: 5px;
  background: linear-gradient(115deg, rgba(18, 60, 99, .97), rgba(5, 16, 31, .93));
  box-shadow: 0 16px 38px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(233, 243, 250, .08);
}

/* 品牌 */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: var(--pill);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--aurora), var(--teal-edge) 72%);
  color: #04161b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: inset 0 0 0 1px rgba(233, 243, 250, .16);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate);
  white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.site-head[data-scrolled="true"] .brand-tag { display: none; }

/* 导航浮岛 */

.nav-pod {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--pill);
  color: var(--steel);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aurora);
  opacity: 0;
  transform: translate(-50%, 4px) scale(.4);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--snow); background: rgba(53, 224, 198, .1); }

.nav-link[aria-current="page"] { color: var(--snow); }
.nav-link[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 头部行动区 */

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

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-signal {
  background: var(--signal);
  color: #1a0b02;
  box-shadow: 0 12px 26px -16px rgba(255, 122, 26, .95);
}
.btn-signal:hover { background: #ff8c3d; }

.btn-ghost {
  background: rgba(53, 224, 198, .08);
  border-color: rgba(53, 224, 198, .34);
  color: var(--aurora);
}
.btn-ghost:hover { background: rgba(53, 224, 198, .17); border-color: var(--aurora); }

.btn-solid {
  background: var(--aurora);
  color: #04211d;
}
.btn-solid:hover { background: #52efd8; }

/* 移动端开关 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: rgba(233, 243, 250, .06);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--line-ice); background: rgba(53, 224, 198, .12); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 16px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--aurora);
  transition: transform .25s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 页脚 ---------- */

.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(40px, 6vw, 78px) 0 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 43, 74, .92), rgba(5, 16, 31, .99)),
    var(--void);
  border-top: 1px solid var(--line-ice);
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora), var(--signal), transparent);
  opacity: .7;
}

.foot-glow {
  position: absolute;
  top: -54%;
  right: -16%;
  width: min(760px, 100vw);
  height: min(760px, 100vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 158, 143, .3), transparent 62%);
  filter: blur(16px);
  pointer-events: none;
}

.foot-shell {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
}

.foot-word {
  margin: 0 0 clamp(18px, 3vw, 34px);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: .84;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(180deg, rgba(233, 243, 250, .17), rgba(53, 224, 198, .06));
  -webkit-background-clip: text;
  background-clip: text;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.foot-id { display: flex; align-items: center; gap: 14px; }

.brand-mark--lg {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 17px;
  font-size: 16px;
}

.foot-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
}
.foot-line {
  margin: 4px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
}

.foot-ways { display: flex; flex-wrap: wrap; gap: 10px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(28px, 4vw, 48px) 0;
}

.foot-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}

.foot-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-link {
  color: var(--steel);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-link:hover,
.foot-link:focus-visible { color: var(--aurora); border-bottom-color: rgba(53, 224, 198, .5); }

.foot-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--steel);
}
.foot-contact li { display: flex; gap: 12px; align-items: baseline; }

.foot-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--slate);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--slate);
}
.foot-sep {
  width: 1px;
  height: 11px;
  background: var(--line-soft);
}
.foot-region { color: var(--slate); }

/* ---------- 正文基础组件 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--slate);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate);
  opacity: .55;
}
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--aurora); }
.crumbs [aria-current="page"] { color: var(--snow); }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 60, 99, .74), rgba(9, 30, 52, .62));
  border: 1px solid rgba(53, 224, 198, .16);
  box-shadow: var(--shade);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel--flat {
  background: rgba(11, 43, 74, .5);
  box-shadow: none;
  backdrop-filter: none;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title {
  margin: 0;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.25;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: rgba(233, 243, 250, .04);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { color: var(--snow); border-color: rgba(53, 224, 198, .45); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--aurora);
  border-color: var(--aurora);
  color: #04211d;
  font-weight: 600;
}
.chip[aria-pressed="true"]:hover { transform: none; }

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

.filter-empty {
  padding: 22px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-md);
  color: var(--slate);
  font-size: 14px;
  text-align: center;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 224, 198, .14);
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(53, 224, 198, .16), transparent 58%),
    linear-gradient(145deg, var(--ice), var(--void) 62%, var(--teal-edge));
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(233, 243, 250, .055) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: .5;
}
.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--snap { aspect-ratio: 21 / 9; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(53, 224, 198, .3);
  border-radius: var(--pill);
  background: rgba(9, 30, 52, .94);
  color: var(--aurora);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: var(--shade);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(53, 224, 198, .14); }

/* ---------- 滚动显现 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1160px) {
  .head-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-pod {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    padding: 10px;
    border-radius: 24px;
    background: rgba(9, 30, 52, .97);
    border: 1px solid rgba(53, 224, 198, .24);
    box-shadow: var(--shade);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav-pod[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(53, 224, 198, .13);
    color: var(--aurora);
  }
  .nav-link:hover { background: rgba(53, 224, 198, .1); }
}

@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col--contact { grid-column: span 2; }
}

@media (max-width: 900px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

@media (max-width: 760px) {
  .brand-tag { display: none; }
  .foot-top { align-items: flex-start; }
  .foot-word { font-size: clamp(2.8rem, 15vw, 6rem); }
}

@media (max-width: 560px) {
  .head-actions .btn-signal { display: none; }
  .site-head { padding-top: 8px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col--contact { grid-column: span 1; }
  .foot-sep { display: none; }
  .foot-bar { gap: 6px; }
  .to-top { padding: 9px 14px; font-size: 12px; }
}

/* ---------- 动效与无障碍降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .chip:hover, .brand:hover .brand-mark { transform: none; }
  .site-head::before { transition: none; }
}
