/* ============================================================
   BSPORTS · 共享样式表  /assets/site.css
   夜场墨绿 + 荧光青 + 比分暖橙 / 切角面板 / 等宽数字
   ============================================================ */

:root {
  --ink: #071613;
  --ink-deep: #04100e;
  --panel: #0e2620;
  --panel-2: #10443a;
  --cyan: #2fe3c8;
  --cyan-dim: #1b8f81;
  --orange: #ff8a3d;
  --orange-soft: #ffc08a;
  --text: #e8f1ee;
  --muted: #9db6b0;
  --up: #4cd07d;
  --down: #ff5f6d;
  --line: rgba(47, 227, 200, 0.18);
  --line-soft: rgba(232, 241, 238, 0.1);
  --font-display: "Barlow Condensed", "Alibaba PuHuiTi", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo,
    Consolas, "Courier New", monospace;
  --font-body: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 44px);
  --cut: 14px;
  --r-fast: 150ms;
  --r-base: 240ms;
  --r-slow: 400ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--ink);
  background-image: radial-gradient(
      1100px 640px at 8% -12%,
      rgba(16, 68, 58, 0.9),
      transparent 60%
    ),
    radial-gradient(
      820px 480px at 104% 4%,
      rgba(27, 143, 129, 0.28),
      transparent 58%
    ),
    linear-gradient(rgba(47, 227, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 227, 200, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #081b17 0%, #061311 42%, #040f0d 100%);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

[id] {
  scroll-margin-top: 118px;
}

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

/* ---------- 排版基线 ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: var(--text);
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--orange-soft);
}

strong {
  color: #f4fffb;
  font-weight: 700;
}

::selection {
  background: rgba(47, 227, 200, 0.32);
  color: #02100d;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top var(--r-base) var(--ease);
}

.skip-link:focus {
  top: 10px;
  color: #04120f;
}

/* ---------- 布局容器 ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(30px, 5vw, 66px);
}

.section__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 227, 200, 0));
}

.section__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__title {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.01em;
}

.section__desc {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(
    180deg,
    rgba(7, 22, 19, 0.98),
    rgba(7, 22, 19, 0.88)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  border-bottom: 1px solid rgba(47, 227, 200, 0.14);
  background: linear-gradient(
    90deg,
    rgba(16, 68, 58, 0.6),
    rgba(7, 22, 19, 0.2) 58%,
    rgba(16, 68, 58, 0.4)
  );
}

.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  transition: min-height var(--r-base) var(--ease);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
}

.brand__note {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: opacity var(--r-base) var(--ease), max-width var(--r-base) var(--ease);
}

.rail-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.rail-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 227, 200, 0.14);
  animation: bsp-pulse 2.4s var(--ease) infinite;
}

@keyframes bsp-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(47, 227, 200, 0.14);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(47, 227, 200, 0.06);
  }
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(47, 227, 200, 0.06);
  border: 1px solid rgba(47, 227, 200, 0.28);
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color var(--r-fast) var(--ease),
    border-color var(--r-fast) var(--ease), color var(--r-fast) var(--ease);
}

.rail-chip:hover {
  background: rgba(47, 227, 200, 0.16);
  border-color: var(--cyan);
  color: #c7fcf2;
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04120f;
  background: linear-gradient(100deg, var(--cyan), #6ff0dc);
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: filter var(--r-fast) var(--ease);
}

.rail-cta:hover {
  filter: brightness(1.1);
  color: #04120f;
}

.header-deck {
  position: relative;
}

.header-deck__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--r-fast) var(--ease),
    background-color var(--r-fast) var(--ease);
}

.nav__link:hover {
  color: #c7fcf2;
  background: rgba(47, 227, 200, 0.08);
}

.nav__link[aria-current="page"] {
  color: #c7fcf2;
  background: linear-gradient(
    180deg,
    rgba(47, 227, 200, 0.2),
    rgba(47, 227, 200, 0.04)
  );
  box-shadow: inset 0 -2px 0 var(--cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.deck-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  order: 2;
}

.nav-toggle {
  order: 3;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(47, 227, 200, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color var(--r-fast) var(--ease),
    border-color var(--r-fast) var(--ease);
}

.nav-toggle:hover {
  background: rgba(47, 227, 200, 0.16);
  border-color: rgba(47, 227, 200, 0.45);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform var(--r-fast) var(--ease), opacity var(--r-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(47, 227, 200, 0.1);
  overflow: hidden;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.site-header[data-scrolled] .header-rail__inner {
  min-height: 34px;
}

.site-header[data-scrolled] .brand__note {
  opacity: 0;
  max-width: 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(14, 38, 32, 0.92),
    rgba(4, 16, 14, 0.98) 72%
  );
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    135deg,
    var(--cyan) 0 10px,
    rgba(47, 227, 200, 0.12) 10px 20px
  );
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)) 1.35fr;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(36px, 5vw, 62px) clamp(26px, 3vw, 40px);
}

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

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--orange-soft);
}

.footer-tagline {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

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

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col__title::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 227, 200, 0));
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--r-fast) var(--ease), transform var(--r-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--orange-soft);
  transform: translateX(3px);
}

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

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 13.5px;
}

.contact-list__key {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list__val {
  display: block;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}

.footer-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
}

.footer-legal__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--r-fast) var(--ease);
}

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

.footer-legal__meta {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-icp {
  color: var(--cyan-dim);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter var(--r-fast) var(--ease),
    background-color var(--r-fast) var(--ease),
    border-color var(--r-fast) var(--ease), color var(--r-fast) var(--ease),
    transform var(--r-base) var(--ease);
}

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

.btn--primary {
  background: linear-gradient(100deg, var(--cyan), #6ff0dc);
  color: #04120f;
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: #04120f;
}

.btn--ghost {
  background: rgba(47, 227, 200, 0.06);
  border-color: rgba(47, 227, 200, 0.42);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: rgba(47, 227, 200, 0.14);
  border-color: var(--cyan);
  color: #c7fcf2;
}

.btn--warm {
  background: linear-gradient(100deg, var(--orange), var(--orange-soft));
  color: #2a0f00;
}

.btn--warm:hover {
  filter: brightness(1.06);
  color: #2a0f00;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--cyan-dim);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--r-fast) var(--ease);
}

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

/* ---------- 长文容器 ---------- */
.prose {
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: #c7fcf2;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--cyan-dim);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
}

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

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

/* ---------- 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(160deg, rgba(14, 38, 32, 0.94), rgba(9, 26, 22, 0.9));
  border: 1px solid var(--line);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.panel--interactive {
  transition: border-color var(--r-base) var(--ease), transform var(--r-base) var(--ease);
}

.panel--interactive:hover {
  border-color: rgba(47, 227, 200, 0.45);
  transform: translateY(-2px);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.panel__body {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- 主题筛选 ---------- */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  padding: 9px 15px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(14, 38, 32, 0.72);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: color var(--r-fast) var(--ease),
    background-color var(--r-fast) var(--ease),
    border-color var(--r-fast) var(--ease);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(47, 227, 200, 0.42);
}

.chip[aria-pressed="true"] {
  color: #c7fcf2;
  background: rgba(47, 227, 200, 0.16);
  border-color: var(--cyan);
}

[data-filtered-out] {
  display: none !important;
}

.filter-empty {
  display: none;
  padding: 22px;
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.filter-empty[data-empty-on] {
  display: block;
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(47, 227, 200, 0.06));
}

.timeline__item {
  position: relative;
  padding-left: 28px;
  padding-block: 9px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 9px;
  height: 9px;
  background: var(--panel);
  border: 1px solid var(--cyan-dim);
  transform: rotate(45deg);
  transition: background-color var(--r-base) var(--ease),
    border-color var(--r-base) var(--ease), box-shadow var(--r-base) var(--ease);
}

.timeline__item[data-active]::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 200, 0.16);
}

.timeline__node {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--r-fast) var(--ease);
}

.timeline__item[data-active] .timeline__node,
.timeline__node:hover {
  color: var(--cyan);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--panel), var(--panel-2));
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

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

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.media-frame--3x4 {
  aspect-ratio: 3 / 4;
}

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

.media-frame__placeholder {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 241, 238, 0.5);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(47, 227, 200, 0.07) 0 12px,
    transparent 12px 24px
  );
}

/* ---------- 数据强调 ---------- */
.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(47, 227, 200, 0.1);
  border: 1px solid rgba(47, 227, 200, 0.28);
}

.tag--warm {
  color: var(--orange);
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.36);
}

.tag--up {
  color: var(--up);
  background: rgba(76, 208, 125, 0.12);
  border-color: rgba(76, 208, 125, 0.34);
}

.tag--down {
  color: var(--down);
  background: rgba(255, 95, 109, 0.12);
  border-color: rgba(255, 95, 109, 0.34);
}

/* ---------- 入场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--r-slow) var(--ease), transform var(--r-slow) var(--ease);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-identity,
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: 0 0 auto;
    padding: 10px var(--gutter) 18px;
    background: linear-gradient(180deg, rgba(9, 26, 22, 0.99), rgba(6, 18, 16, 0.99));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    transition: opacity var(--r-base) var(--ease),
      transform var(--r-base) var(--ease), visibility var(--r-base) var(--ease);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav__link,
  .nav__link[aria-current="page"] {
    clip-path: none;
    box-shadow: none;
    padding: 13px 14px;
    font-size: 15px;
    border-left: 2px solid rgba(47, 227, 200, 0.14);
    background: none;
  }

  .nav__link:hover {
    background: rgba(47, 227, 200, 0.08);
  }

  .nav__link[aria-current="page"] {
    color: #c7fcf2;
    border-left-color: var(--cyan);
    background: linear-gradient(90deg, rgba(47, 227, 200, 0.18), rgba(47, 227, 200, 0));
  }

  .deck-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  .rail-status,
  .rail-chip {
    display: none;
  }

  .brand__note {
    display: none;
  }

  .header-deck__inner {
    min-height: 52px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-identity,
  .footer-contact {
    grid-column: auto;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal__meta {
    line-height: 1.7;
  }
}

/* ---------- 减弱动效 ---------- */
@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;
    transform: none;
  }

  .btn:hover,
  .panel--interactive:hover,
  .footer-links a:hover {
    transform: none;
  }
}
