/* ============================================================
   曼贝赛事 / MANBETX — 共享站点样式
   0. 变量  1. 重置  2. 中文排版  3. 通用组件
   4. 悬浮胶囊头部  5. 档案式页脚  6. 响应式与动效降级
   ============================================================ */

/* ---------- 0. 变量 ---------- */
:root {
  --ink-900: #071A2F;
  --ink-800: #0B2545;
  --ink-700: #123A5E;
  --cyan-400: #28E0D0;
  --violet-500: #7B61FF;
  --orange-500: #FF9A3D;
  --paper-100: #F2F0EA;
  --black-900: #101820;
  --gray-400: #8A9BB0;
  --mint-450: #3DDC97;

  --line-soft: rgba(138, 155, 176, 0.26);
  --line-cyan: rgba(40, 224, 208, 0.30);
  --glass: rgba(18, 58, 94, 0.82);

  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-float: 0 22px 50px -28px rgba(0, 0, 0, 0.90);
  --ease: cubic-bezier(0.22, 0.68, 0.30, 1);
}

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

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(40, 224, 208, 0.30); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 4px rgba(40, 224, 208, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 2. 中文排版与页面底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: var(--paper-100);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 560px at 84% -10%, rgba(123, 97, 255, 0.20), transparent 68%),
    radial-gradient(820px 520px at 6% 2%, rgba(40, 224, 208, 0.13), transparent 70%),
    linear-gradient(to right, rgba(138, 155, 176, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 155, 176, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.012em;
}

h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { max-width: 44em; }
strong, b { font-weight: 700; }

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.6em;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cyan-400);
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

/* ---------- 3. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }

/* 面包屑 */
.breadcrumb { margin: clamp(14px, 2vw, 22px) 0; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.breadcrumb-list a { color: var(--gray-400); transition: color 0.18s var(--ease); }
.breadcrumb-list a:hover { color: var(--cyan-400); }
.breadcrumb-sep { color: rgba(138, 155, 176, 0.52); }
.breadcrumb-list [aria-current="page"] { color: var(--paper-100); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--cyan-400);
  color: var(--ink-900);
  box-shadow: 0 16px 34px -20px rgba(40, 224, 208, 0.95);
}
.btn--primary:hover { background: #5AEFE2; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-cyan);
  color: var(--paper-100);
}
.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
  background: rgba(40, 224, 208, 0.08);
}

/* 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-lg);
  background: rgba(18, 58, 94, 0.55);
  border: 1px solid var(--line-soft);
  transition: transform 0.20s var(--ease), border-color 0.20s var(--ease), box-shadow 0.20s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-cyan);
  box-shadow: 0 26px 50px -32px rgba(40, 224, 208, 0.70);
}
.card--paper {
  background: linear-gradient(180deg, #F7F5F0 0%, #EDEAE2 100%);
  color: var(--black-900);
  border: 1px solid rgba(16, 24, 32, 0.14);
  box-shadow: 6px 6px 0 rgba(7, 26, 47, 0.35), 0 18px 40px -28px rgba(0, 0, 0, 0.80);
}
.card--paper h2, .card--paper h3, .card--paper h4 { color: var(--black-900); }
.card--paper p { color: #2C3742; }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  white-space: nowrap;
}
.tag--violet {
  background: rgba(123, 97, 255, 0.18);
  border-color: rgba(123, 97, 255, 0.50);
  color: #C9BEFF;
}
.tag--orange {
  background: rgba(255, 154, 61, 0.14);
  border-color: rgba(255, 154, 61, 0.55);
  color: #FFC189;
}
.tag--mint {
  background: rgba(61, 220, 151, 0.14);
  border-color: rgba(61, 220, 151, 0.45);
  color: var(--mint-450);
}

/* 图片容器基础规则（页面阶段放入 img 即可） */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-cyan);
  background:
    linear-gradient(140deg, rgba(40, 224, 208, 0.10), rgba(123, 97, 255, 0.15) 55%, rgba(7, 26, 47, 0.92)),
    var(--ink-800);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.70) contrast(1.06) brightness(0.90);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.70;
  background:
    repeating-linear-gradient(to bottom, rgba(7, 26, 47, 0.22) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(7, 26, 47, 0) 40%, rgba(7, 26, 47, 0.55) 100%);
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 4. 悬浮胶囊头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform 0.20s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(7, 26, 47, 0.95) 0%, rgba(7, 26, 47, 0.74) 62%, rgba(7, 26, 47, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-shell {
  max-width: var(--shell);
  margin: 0 auto;
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--line-cyan);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 品牌锁标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 6px;
  border-radius: var(--radius-pill);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cyan-400) 0%, var(--violet-500) 100%);
  color: var(--ink-900);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px -10px rgba(40, 224, 208, 0.90);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper-100);
}
.brand-sub {
  margin-top: 2px;
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

/* 主导航 */
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-list a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(242, 240, 234, 0.74);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-list a:hover {
  color: var(--cyan-400);
  background: rgba(40, 224, 208, 0.10);
}
.nav-list a[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan-400);
  box-shadow: 0 10px 24px -14px rgba(40, 224, 208, 0.95);
}
.nav-list a:focus-visible { outline-offset: 2px; }

/* 移动浮岛按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid var(--line-cyan);
  background: rgba(7, 26, 47, 0.55);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 阅读进度细条 */
.scroll-meter {
  height: 2px;
  margin: 9px 3px 0;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(138, 155, 176, 0.18);
}
.scroll-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-400) 0%, var(--violet-500) 70%, var(--orange-500) 100%);
  transition: width 0.12s linear;
}

/* 快速入口芯片带 */
.quick-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0 2px;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(61, 220, 151, 0.10);
  border: 1px solid rgba(61, 220, 151, 0.34);
  color: var(--mint-450);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-450);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}
.quick-bar-label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.quick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: rgba(242, 240, 234, 0.62);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.quick-chip:hover {
  color: var(--cyan-400);
  border-color: var(--line-cyan);
  background: rgba(40, 224, 208, 0.08);
}

/* ---------- 5. 档案式页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(44px, 6vw, 76px) var(--gutter) 26px;
  color: var(--paper-100);
  background:
    radial-gradient(720px 340px at 88% 0%, rgba(123, 97, 255, 0.18), transparent 68%),
    linear-gradient(180deg, #061627 0%, #030C16 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--violet-500), transparent);
  opacity: 0.55;
}

.footer-grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.5fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34ch;
}
.footer-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper-100);
  max-width: none;
}
.footer-lockup span {
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--cyan-400);
}
.footer-tagline {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(123, 97, 255, 0.16);
  border: 1px solid rgba(123, 97, 255, 0.45);
  color: #C9BEFF;
  font-size: 11px;
  letter-spacing: 0.22em;
  max-width: none;
}
.footer-summary {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--gray-400);
}
.footer-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -18px rgba(40, 224, 208, 0.95);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.footer-cta:hover {
  transform: translateY(-2px);
  background: #5AEFE2;
  box-shadow: 0 20px 38px -18px rgba(40, 224, 208, 0.95);
}

.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--cyan-400);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(242, 240, 234, 0.72);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-links a:hover { color: var(--cyan-400); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; max-width: none; }
.contact-label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.contact-value {
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-100);
  word-break: break-word;
}
.contact-note {
  padding-left: 10px;
  border-left: 2px solid rgba(255, 154, 61, 0.60);
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray-400);
  max-width: 30ch;
}

.footer-bottom {
  max-width: var(--shell);
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}
.footer-legal { max-width: none; margin: 0; }
.footer-icp { max-width: none; margin: 0; color: var(--gray-400); }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr; }
  .footer-contact { grid-column: 1 / -1; }
  .contact-note { max-width: 46ch; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; margin-left: 0; }
  .site-header[data-open="true"] .primary-nav {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(11, 37, 69, 0.98);
    border: 1px solid var(--line-cyan);
    box-shadow: 0 30px 60px -30px #000000;
  }
  .site-header[data-open="true"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-header[data-open="true"] .nav-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-header { padding: 10px var(--gutter) 8px; }
  .nav-capsule { gap: 10px; padding: 7px 8px 7px 10px; }
  .brand-name { font-size: 14px; }
  .quick-bar-label { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .media-frame { aspect-ratio: 4 / 3; }
}

/* ---------- 7. 进入动效与降级 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .footer-cta:hover, .footer-links a:hover { transform: none; }
  .footer-links a:hover { padding-left: 0; }
}
