/* ============================================================
   天博体育赛场 · 共享站点样式 /assets/site.css
   ============================================================ */

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

* { margin: 0; }

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

body { min-height: 100vh; }

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

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

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

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

input,
textarea,
select { font: inherit; }

/* 2. 设计变量 */
:root {
  --ink: #050A09;
  --deep: #071A16;
  --panel: #0E2A24;
  --cyan: #00E5FF;
  --glass: #9BF6FF;
  --whistle: #FF5A1F;
  --paper: #F4F7F5;
  --grey: #A9B8B3;
  --card-yellow: #FFD23F;
  --card-red: #FF3B4E;

  --line: rgba(155, 246, 255, 0.16);
  --line-soft: rgba(155, 246, 255, 0.09);
  --line-strong: rgba(0, 229, 255, 0.38);
  --glass-fill: rgba(155, 246, 255, 0.07);
  --deep-blur: rgba(7, 26, 22, 0.94);

  --font-display: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-4: clamp(44px, 7.2vw, 104px);
  --step-3: clamp(32px, 4.4vw, 60px);
  --step-2: clamp(24px, 2.6vw, 34px);
  --step-1: clamp(18px, 1.7vw, 22px);
  --step-0: clamp(16px, 1.05vw, 17px);
  --step--1: clamp(12px, 1vw, 13px);
  --step--2: 11px;

  --gutter: clamp(16px, 3vw, 40px);
  --shell: 1320px;
  --radius: 3px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. 页面基座 */
body {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(0, 229, 255, 0.13), transparent 62%),
    radial-gradient(900px 480px at 4% 4%, rgba(255, 90, 31, 0.07), transparent 60%),
    var(--deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

/* 4. 通用容器与文字组件 */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1em; }

.prose p { color: rgba(244, 247, 245, 0.86); }

.lead {
  font-size: var(--step-1);
  line-height: 1.65;
  color: rgba(244, 247, 245, 0.9);
  max-width: 56ch;
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glass);
}

.section-title {
  font-size: var(--step-3);
  color: var(--paper);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, 0.12) 45%, transparent);
  opacity: 0.55;
}

/* 5. 面板 / 网格 / 堆叠 */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 40px);
}

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

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

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

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

/* 6. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary {
  background: var(--whistle);
  color: var(--ink);
  box-shadow: 0 10px 28px -16px rgba(255, 90, 31, 0.95);
}

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

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(155, 246, 255, 0.32);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--glass-fill);
}

/* 7. 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--glass-fill);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass);
  white-space: nowrap;
}

/* 8. 面包屑 */
.breadcrumbs { margin-bottom: clamp(12px, 2vw, 20px); }

.breadcrumbs > ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  color: var(--grey);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(155, 246, 255, 0.4);
}

.breadcrumbs a {
  color: var(--glass);
  transition: color 0.18s var(--ease);
}

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

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

/* 9. 横向轨道 */
.track {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 14px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.track::-webkit-scrollbar { height: 6px; }

.track::-webkit-scrollbar-track {
  background: rgba(155, 246, 255, 0.08);
  border-radius: 99px;
}

.track::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.45);
  border-radius: 99px;
}

.track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.track.is-dragging * { pointer-events: none; }

.track-item {
  flex: 0 0 clamp(232px, 27vw, 336px);
  scroll-snap-align: start;
}

/* 10. 媒体容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(0, 229, 255, 0.14), transparent 55%),
    var(--deep);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.12), transparent 46%);
}

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

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

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* 11. 头部：紧凑命令栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, var(--deep-blur), rgba(7, 26, 22, 0.8));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, 0.95);
}

.header-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(9px, 1.4vw, 15px) var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 28px);
  min-height: var(--header-h);
}

.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px 2px;
  border-radius: 2px;
}

.brand-pulse {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  flex: 0 0 auto;
}

.brand-pulse i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--cyan);
  transition: height 0.24s var(--ease), background 0.24s var(--ease);
}

.brand-pulse i:nth-child(1) { height: 9px; }
.brand-pulse i:nth-child(2) { height: 21px; background: var(--whistle); }
.brand-pulse i:nth-child(3) { height: 14px; }
.brand-pulse i:nth-child(4) { height: 18px; background: rgba(0, 229, 255, 0.6); }

.brand-mark:hover .brand-pulse i:nth-child(1) { height: 18px; }
.brand-mark:hover .brand-pulse i:nth-child(3) { height: 9px; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.3;
  color: var(--grey);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 20px);
  min-width: 0;
}

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 2px;
  color: var(--grey);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 1px;
  height: 3px;
  background: var(--whistle);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: var(--glass-fill);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(155, 246, 255, 0.5);
  transition: color 0.18s var(--ease);
}

.nav-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 90, 31, 0.08);
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link[aria-current="page"] .nav-index { color: var(--whistle); }

.nav-cta {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13.5px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(155, 246, 255, 0.3);
  border-radius: 2px;
  background: var(--glass-fill);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(155, 246, 255, 0.12);
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--glass);
}

.site-header[data-open] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.site-header[data-open] .nav-toggle { border-color: var(--whistle); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(155, 246, 255, 0.12);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--whistle));
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* 12. 页脚：看台层 */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  background: linear-gradient(180deg, #061612 0%, #04100D 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--whistle) 78%, transparent);
  opacity: 0.6;
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.footer-kicker {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glass);
}

.footer-brand-name {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.footer-intro {
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--grey);
}

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

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

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glass);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--grey);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  width: 12px;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(0, 229, 255, 0.55);
  transition: background 0.18s var(--ease), width 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  transform: translateX(2px);
}

.footer-link:hover::before {
  width: 18px;
  background: var(--whistle);
}

.footer-contact {
  margin-top: clamp(30px, 4.6vw, 54px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  gap: 16px clamp(20px, 3vw, 40px);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-item--wide { grid-column: span 2; }

.contact-key {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(155, 246, 255, 0.62);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 70ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-bottom {
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12.5px;
  color: var(--grey);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(169, 184, 179, 0.92);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 13. 平板与移动端导航 */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px var(--gutter) 24px;
    background: rgba(6, 22, 18, 0.98);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 1);
    max-height: calc(100vh - var(--header-h) - 12px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

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

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

  .nav-item { display: block; }

  .nav-link {
    padding: 14px 4px 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 20px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center top;
    transition: transform 0.26s var(--ease);
  }

  .nav-link[aria-current="page"] {
    background: rgba(255, 90, 31, 0.12);
  }

  .nav-link[aria-current="page"]::after {
    transform: translateY(-50%) scaleY(1);
  }

  .nav-label { font-size: 15px; }

  .nav-cta {
    width: 100%;
    padding: 13px 18px;
    font-size: 14.5px;
  }
}

/* 14. 平板内容层 */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }

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

  .contact-item--wide { grid-column: 1 / -1; }
}

/* 15. 手机 */
@media (max-width: 620px) {
  :root { --header-h: 62px; }

  .brand-tag { display: none; }

  .brand-name { font-size: 17px; letter-spacing: 0.05em; }

  .brand-pulse { height: 19px; }

  .brand-pulse i:nth-child(2) { height: 19px; }

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

  .footer-col-title { margin-bottom: 10px; }

  .footer-intro { font-size: 14px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .track-item { flex: 0 0 78%; }

  .breadcrumbs > ol { font-size: 11px; }
}

/* 16. 减少动效 */
@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;
    scroll-behavior: auto !important;
  }

  .track { scroll-behavior: auto; }
}
