/* ============================================================
   355娱乐游 · 共享样式表 /assets/site.css
   区块：1 reset · 2 变量 · 3 基础排版 · 4 焦点 · 5 跳转链接
        6 滚动进度 · 7 头部轨道 · 8 悬浮胶囊与导航 · 9 页脚
        10 常驻客服条 · 11 按钮 · 12 布局与文本工具
        13 卡片/标签/表格 · 14 标签页 · 15 媒体容器 · 16 显现
        17 响应式 · 18 动效降级
   ============================================================ */

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

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

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

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

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

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

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

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

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --blue: #1B3A8C;
  --deep: #0E1B3D;
  --dusk: #3B2E63;
  --neon: #2BF0D6;
  --amber: #FFA23A;
  --paper: #F6F3EC;
  --mist: #D6D9D3;
  --ink: #121C33;
  --mint: #E4F6F2;
  --alarm: #C4452E;

  /* 尺度 */
  --rail: 92px;
  --shell: 1280px;
  --edge: clamp(16px, 3vw, 40px);
  --stack: clamp(20px, 3vw, 44px);

  /* 圆角与阴影 */
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  --shadow-soft: 0 26px 60px -42px rgba(14, 27, 61, 0.85);
  --shadow-capsule: 0 22px 48px -34px rgba(14, 27, 61, 0.9);

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-editorial: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
    Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo,
    Consolas, "Courier New", monospace;

  /* 字号阶 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 42% at 100% 0%, rgba(43, 240, 214, 0.1), transparent 68%),
    radial-gradient(48% 38% at 0% 22%, rgba(59, 46, 99, 0.08), transparent 70%);
  background-attachment: fixed;
  padding-left: var(--rail);
  padding-bottom: 76px;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--neon);
  color: var(--deep);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(43, 240, 214, 0.34);
}

.brand-rail :focus-visible,
.site-footer :focus-visible,
.service-bar :focus-visible,
.site-nav[data-open="true"] :focus-visible,
.nav-capsule :focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--neon);
  box-shadow: 0 0 0 5px rgba(43, 240, 214, 0.22);
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--deep);
  color: var(--paper);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(43, 240, 214, 0.5);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

#main-content {
  display: block;
  scroll-margin-top: 104px;
}

/* ---------- 6. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--amber));
  box-shadow: 0 0 12px rgba(43, 240, 214, 0.6);
}

/* ---------- 7. 头部：品牌轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 90;
}

.brand-rail {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(43, 240, 214, 0.2), transparent 62%),
    linear-gradient(180deg, #0E1B3D 0%, #1B3A8C 56%, #3B2E63 100%);
  color: var(--paper);
  border-right: 1px solid rgba(43, 240, 214, 0.28);
}

.brand-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(246, 243, 236, 0.08) 42.4%, transparent 43%),
    linear-gradient(115deg, transparent 58%, rgba(246, 243, 236, 0.06) 58.4%, transparent 59%);
}

.brand-rail::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -10px;
  height: 220px;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    180deg,
    rgba(43, 240, 214, 0.18) 0 1px,
    transparent 1px 13px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 72%);
  mask-image: linear-gradient(180deg, transparent, #000 72%);
}

.rail-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rail-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--deep);
  background: var(--neon);
  box-shadow:
    0 0 0 1px rgba(246, 243, 236, 0.4),
    0 16px 32px -20px rgba(43, 240, 214, 0.95);
}

.rail-brand-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.44em;
  color: var(--paper);
}

.rail-index {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rail-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 30px;
  border-radius: var(--r-pill);
}

.rail-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.42);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rail-dot:hover::before,
.rail-dot:focus-visible::before {
  background: var(--amber);
  transform: scale(1.3);
}

.rail-dot[aria-current="page"]::before {
  width: 9px;
  height: 9px;
  background: var(--neon);
  box-shadow:
    0 0 0 4px rgba(43, 240, 214, 0.2),
    0 0 12px rgba(43, 240, 214, 0.85);
}

.rail-dot-label {
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 9px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--deep);
  border: 1px solid rgba(43, 240, 214, 0.36);
  pointer-events: none;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rail-dot:hover .rail-dot-label,
.rail-dot:focus-visible .rail-dot-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.rail-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rail-version {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(246, 243, 236, 0.7);
}

.rail-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 162, 58, 0.85);
}

/* ---------- 8. 头部：悬浮胶囊与导航 ---------- */
.header-main {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(246, 243, 236, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(27, 58, 140, 0.16);
  box-shadow:
    var(--shadow-capsule),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

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

.capsule-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--deep);
  line-height: 1.2;
}

.capsule-brand-sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(18, 28, 51, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: block; }

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

.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav-link:hover {
  background: var(--mint);
  color: var(--blue);
}

.site-nav-link[aria-current="page"] {
  color: var(--blue);
  background: rgba(43, 240, 214, 0.18);
  box-shadow: inset 0 0 0 1px rgba(27, 58, 140, 0.12);
}

.site-nav-link[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 2px rgba(27, 58, 140, 0.14), 0 0 10px rgba(43, 240, 214, 0.9);
}

.site-nav-cta { display: none; }

.capsule-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--blue) 0%, var(--dusk) 78%);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(43, 240, 214, 0.42);
  box-shadow: 0 14px 30px -20px rgba(27, 58, 140, 0.95);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.capsule-cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 162, 58, 0.9);
}

.capsule-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--deep);
  color: var(--paper);
  border: 1px solid rgba(43, 240, 214, 0.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(14, 27, 61, 0.88);
  border: 1px solid rgba(43, 240, 214, 0.28);
  color: rgba(246, 243, 236, 0.94);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 14px 30px -26px rgba(14, 27, 61, 0.9);
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(43, 240, 214, 0.95);
}

/* 展开态（移动端） */
.site-header[data-open="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 104px);
  padding: clamp(36px, 5vw, 68px) 0 clamp(30px, 4vw, 52px);
  color: var(--paper);
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(43, 240, 214, 0.16), transparent 62%),
    radial-gradient(70% 60% at 94% 6%, rgba(255, 162, 58, 0.18), transparent 60%),
    linear-gradient(162deg, #0E1B3D 0%, #16264F 46%, #3B2E63 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -140px;
  height: 300px;
  pointer-events: none;
  opacity: 0.45;
  transform: rotate(-3deg);
  background: repeating-linear-gradient(
    180deg,
    rgba(43, 240, 214, 0.16) 0 1px,
    transparent 1px 18px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 68%);
  mask-image: linear-gradient(180deg, transparent, #000 68%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}

.footer-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(43, 240, 214, 0.9);
}

.footer-tagline {
  margin-top: 16px;
  max-width: 24em;
  font-family: var(--font-editorial);
  font-size: 15px;
  line-height: 1.95;
  color: rgba(246, 243, 236, 0.78);
}

.footer-version {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 1px solid rgba(255, 162, 58, 0.48);
  background: rgba(255, 162, 58, 0.1);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(43, 240, 214, 0.92);
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(43, 240, 214, 0.8);
}

.footer-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(246, 243, 236, 0.8);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-link[aria-current="page"] { color: var(--neon); }

.footer-contact {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(246, 243, 236, 0.16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}

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

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(43, 240, 214, 0.8);
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(246, 243, 236, 0.88);
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 243, 236, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: rgba(246, 243, 236, 0.66);
}

.footer-copy { margin: 0; }

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

.footer-legal-link {
  font-size: 12.5px;
  color: rgba(246, 243, 236, 0.78);
  border-bottom: 1px solid rgba(43, 240, 214, 0.35);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--neon);
  border-color: var(--neon);
}

/* ---------- 10. 常驻客服条 ---------- */
.service-bar {
  position: fixed;
  left: var(--rail);
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(14, 27, 61, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(43, 240, 214, 0.3);
  color: rgba(246, 243, 236, 0.9);
}

.service-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px var(--edge);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.service-bar-version {
  font-family: var(--font-mono);
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.service-bar-hours {
  font-family: var(--font-mono);
  color: rgba(246, 243, 236, 0.68);
  margin-right: auto;
}

.service-bar-link {
  padding: 6px 15px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.service-bar-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--dusk) 80%);
  color: var(--paper);
  border-color: rgba(43, 240, 214, 0.42);
  box-shadow: 0 16px 34px -24px rgba(27, 58, 140, 1);
}

.btn--primary:hover { filter: brightness(1.1); }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: rgba(27, 58, 140, 0.4);
}

.btn--ghost:hover {
  background: var(--mint);
  border-color: var(--blue);
}

.btn--amber {
  background: var(--amber);
  color: var(--deep);
  border-color: rgba(255, 162, 58, 0.6);
}

.btn--amber:hover { filter: brightness(1.06); }

.btn--block { width: 100%; }

/* ---------- 12. 布局与文本工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--stack);
  align-items: start;
}

.layout__main { min-width: 0; }
.layout__aside { min-width: 0; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.prose { max-width: 42em; }
.prose > * + * { margin-top: 1em; }
.prose h2,
.prose h3 { margin-top: 1.8em; }
.prose ul,
.prose ol { padding-left: 1.1em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

.measure { max-width: 42em; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--blue));
}

.lede {
  font-family: var(--font-editorial);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
  color: rgba(18, 28, 51, 0.78);
  max-width: 40em;
}

/* ---------- 13. 卡片 / 标签 / 表格 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-lg);
  background: #FFFDF8;
  border: 1px solid rgba(27, 58, 140, 0.14);
  box-shadow: var(--shadow-soft);
}

.card--mint {
  background: linear-gradient(150deg, var(--mint), #F2FBF8);
  border-color: rgba(43, 240, 214, 0.5);
}

.card--deep {
  background: linear-gradient(160deg, var(--deep), var(--dusk));
  color: var(--paper);
  border-color: rgba(43, 240, 214, 0.28);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(18, 28, 51, 0.76);
}

.card--deep .card__text { color: rgba(246, 243, 236, 0.78); }

.card__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.card--deep .card__meta { color: var(--neon); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--mint);
  color: var(--blue);
  border: 1px solid rgba(27, 58, 140, 0.16);
}

.chip--neon {
  background: rgba(43, 240, 214, 0.16);
  color: #0B5F55;
  border-color: rgba(43, 240, 214, 0.62);
}

.chip--amber {
  background: rgba(255, 162, 58, 0.16);
  color: #8A4E06;
  border-color: rgba(255, 162, 58, 0.6);
}

.data-table {
  width: 100%;
  font-size: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #FFFDF8;
  border: 1px solid rgba(27, 58, 140, 0.14);
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--mint);
  border-bottom: 1.5px solid rgba(27, 58, 140, 0.28);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  vertical-align: top;
  color: rgba(18, 28, 51, 0.88);
  border-bottom: 1px solid var(--mist);
}

.data-table tbody tr:hover td { background: rgba(43, 240, 214, 0.08); }

.data-table td.is-diff {
  background: rgba(255, 162, 58, 0.16);
  box-shadow: inset 3px 0 0 var(--amber);
  transition: background 0.4s ease;
}

.breadcrumb {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: rgba(18, 28, 51, 0.56);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb-link {
  color: rgba(18, 28, 51, 0.72);
  transition: color 0.18s ease;
}

.breadcrumb-link:hover { color: var(--blue); }

.breadcrumb-sep { color: rgba(27, 58, 140, 0.45); }

.breadcrumb-current { color: var(--blue); }

/* ---------- 14. 标签页 ---------- */
.tabs { margin-top: 8px; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--mint);
  border: 1px solid rgba(27, 58, 140, 0.12);
}

.tab {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(18, 28, 51, 0.72);
  transition: background 0.18s ease, color 0.18s ease;
}

.tab:hover { color: var(--blue); background: rgba(255, 255, 255, 0.7); }

.tab[aria-selected="true"] {
  background: var(--deep);
  color: var(--paper);
  box-shadow: 0 10px 24px -18px rgba(14, 27, 61, 1);
}

.tab[aria-selected="true"]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(43, 240, 214, 0.9);
}

.tabs__panels { margin-top: 20px; }

.tab-panel[hidden] { display: none; }

/* ---------- 15. 媒体容器（页面阶段放 SVG / 图片占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid rgba(27, 58, 140, 0.14);
  background:
    radial-gradient(80% 80% at 18% 12%, rgba(43, 240, 214, 0.32), transparent 66%),
    linear-gradient(148deg, var(--mint) 0%, #E9E6DE 58%, var(--mist) 100%);
}

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

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(18, 28, 51, 0.6);
}

/* ---------- 16. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .site-nav-link { padding: 9px 11px; font-size: 13.5px; }
  .capsule-cta { padding: 10px 15px; }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-bottom: 70px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    z-index: 90;
    background: linear-gradient(
      180deg,
      rgba(246, 243, 236, 0.98) 0%,
      rgba(246, 243, 236, 0.82) 72%,
      rgba(246, 243, 236, 0) 100%
    );
  }

  .brand-rail { display: none; }

  .scroll-progress { left: 0; }

  .header-main {
    position: static;
    display: block;
    padding: 10px 14px 8px;
    pointer-events: auto;
  }

  .nav-capsule {
    position: relative;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    border-radius: 22px;
  }

  .capsule-brand { display: flex; }
  .capsule-brand-sub { display: block; max-width: 190px; }
  .nav-toggle { display: inline-flex; }
  .capsule-cta { display: none; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(14, 27, 61, 0.99), rgba(59, 46, 99, 0.99));
    border: 1px solid rgba(43, 240, 214, 0.24);
    box-shadow: 0 34px 64px -32px rgba(14, 27, 61, 0.96);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transform-origin: 50% 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
    color: rgba(246, 243, 236, 0.92);
  }

  .site-nav-link:hover {
    background: rgba(43, 240, 214, 0.14);
    color: var(--paper);
  }

  .site-nav-link[aria-current="page"] {
    background: rgba(43, 240, 214, 0.18);
    color: var(--neon);
    box-shadow: inset 0 0 0 1px rgba(43, 240, 214, 0.3);
  }

  .site-nav-cta {
    display: block;
    margin-top: 8px;
  }

  .site-nav-cta .btn { width: 100%; }

  .status-badge {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 5px 12px;
  }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .service-bar { left: 0; }
  .service-bar-hours { width: 100%; margin-right: 0; order: 3; }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .data-table { font-size: 13px; }
  .data-table th,
  .data-table td { padding: 10px 12px; }

  .display { font-size: clamp(28px, 9vw, 44px); }
  .capsule-brand-name { font-size: 16px; }
  .capsule-brand-sub { max-width: 158px; }
}

@media (max-width: 380px) {
  .capsule-brand-sub { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 9px 12px; }
}

/* 矮屏：收紧轨道索引间距 */
@media (min-width: 1024px) and (max-height: 660px) {
  .rail-dot { height: 24px; }
  .brand-rail { padding: 16px 0; }
  .rail-brand-text { font-size: 12px; letter-spacing: 0.32em; }
}

/* ---------- 18. 动效降级 ---------- */
@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;
  }

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

  .btn:hover,
  .capsule-cta:hover,
  .service-bar-link:hover,
  .footer-link:hover {
    transform: none;
  }
}
