/* ============================================================
   天博克罗地亚·中国 — 共享外壳样式 /assets/site.css
   1 reset  2 变量  3 基础排版  4 头部  5 页脚  6 通用组件
   7 图片容器  8 动效与无障碍
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, 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%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

/* ---------- 2. 变量 ---------- */
:root {
  --c-red: #E4002B;
  --c-red-deep: #8A0018;
  --c-navy: #0B1B33;
  --c-navy-2: #14294A;
  --c-cool: #F4F6F9;
  --c-white: #FFFFFF;
  --c-cyan: #00E5D0;
  --c-steel: #7C8CA3;
  --c-line: #A8B4C4;
  --c-red-lift: #FF5A6E;

  --f-display: "Oswald", "Bebas Neue", "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fs-xs: 14px;
  --fs-sm: 17px;
  --fs-md: 21px;
  --fs-lg: 28px;
  --fs-xl: 40px;
  --fs-2xl: 64px;
  --fs-3xl: 96px;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --h-bar: 76px;
  --h-bar-sm: 60px;

  --dur: 200ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hard: 6px 6px 0 rgba(11, 27, 51, .18);

  --checker: repeating-conic-gradient(var(--c-red) 0 25%, var(--c-white) 0 50%);
  --checker-size: 16px 16px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--c-cool);
  color: var(--c-navy);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 1.85;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.tb-nav-open { overflow: hidden; }
::selection { background: var(--c-red); color: var(--c-white); }

.tb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.tb-section { padding: clamp(48px, 7vw, 96px) 0; }
.tb-section--tight { padding: clamp(28px, 4vw, 56px) 0; }
.tb-main { display: block; }
.tb-main--offset { padding-top: var(--h-bar); }
.tb-main:focus { outline: none; }

.tb-h2, .tb-h3, .tb-h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--c-navy);
}
.tb-h2 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 18px; }
.tb-h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.tb-h4 { font-size: var(--fs-sm); margin-bottom: 10px; letter-spacing: 0; }
.tb-h2--light, .tb-h3--light, .tb-h4--light { color: var(--c-cool); }

.tb-lead { font-size: var(--fs-md); line-height: 1.7; color: var(--c-navy-2); max-width: 720px; }
.tb-lead--light { color: rgba(244, 246, 249, .86); }
.tb-prose { max-width: 720px; font-size: var(--fs-sm); line-height: 1.85; }
.tb-prose p { margin: 0 0 1.1em; }
.tb-prose h3 { margin: 1.6em 0 .6em; }
.tb-muted { color: var(--c-steel); }
.tb-small { font-size: var(--fs-xs); line-height: 1.7; color: var(--c-steel); }
.tb-mono, .tb-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.tb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  color: var(--c-red);
  margin-bottom: 16px;
}
.tb-kicker::before { content: ""; width: 28px; height: 3px; background: var(--c-red); flex: 0 0 auto; }
.tb-kicker--dark { color: var(--c-cyan); }
.tb-kicker--dark::before { background: var(--c-cyan); }

/* ---------- 4. 头部 ---------- */
.tb-skip {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 400;
  transform: translateY(-200%);
  background: var(--c-cyan);
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  transition: transform var(--dur) var(--ease);
}
.tb-skip:focus { transform: translateY(0); }

.tb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  color: var(--c-cool);
  background: linear-gradient(180deg, rgba(11, 27, 51, .82) 0%, rgba(11, 27, 51, .38) 62%, rgba(11, 27, 51, 0) 100%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tb-header[data-scrolled] {
  background: var(--c-navy);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .28);
  border-bottom: 2px solid var(--c-red);
}

.tb-header__rail {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px var(--gutter);
  max-height: 44px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.25;
  letter-spacing: .14em;
  color: var(--c-steel);
  border-bottom: 1px solid rgba(168, 180, 196, .22);
  transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.tb-header[data-scrolled] .tb-header__rail {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-color: transparent;
}
.tb-rail__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tb-rail__item--end { margin-left: auto; color: var(--c-red-lift); }
.tb-rail__live { width: 8px; height: 8px; background: var(--c-cyan); flex: 0 0 auto; animation: tb-pulse 2.4s var(--ease) infinite; }
@keyframes tb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.tb-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--h-bar);
  transition: height var(--dur) var(--ease);
}
.tb-header[data-scrolled] .tb-header__bar { height: var(--h-bar-sm); }

.tb-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.tb-brand__mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 2px solid var(--c-white);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
}
.tb-checker { background-image: var(--checker); background-size: var(--checker-size); background-color: var(--c-white); }
.tb-brand__text { display: flex; flex-direction: column; }
.tb-brand__line {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-white);
}
.tb-brand__slogan {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  letter-spacing: .22em;
  color: var(--c-steel);
}

.tb-nav { margin-left: auto; display: flex; align-items: center; }
.tb-nav__list { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 20px); }
.tb-nav__link {
  position: relative;
  display: block;
  padding: 12px 4px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1;
  letter-spacing: .12em;
  color: var(--c-cool);
  opacity: .78;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tb-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.tb-nav__link:hover { opacity: 1; }
.tb-nav__link:hover::after { transform: scaleX(1); }
.tb-nav__link[aria-current="page"] { opacity: 1; color: var(--c-white); }
.tb-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--c-red-lift); }
.tb-nav__cta { display: none; }
.tb-nav__meta { display: none; }

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

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 2px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tb-btn--outline { border-color: var(--c-cyan); color: var(--c-cyan); }
.tb-btn--outline:hover { background: var(--c-cyan); color: var(--c-navy); }
.tb-btn--primary { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }
.tb-btn--primary:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); }
.tb-btn--ghost { border-color: rgba(168, 180, 196, .55); color: var(--c-cool); }
.tb-btn--ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.tb-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 2px solid rgba(168, 180, 196, .5);
  border-radius: 2px;
  color: var(--c-cool);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tb-nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.tb-nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.tb-nav-toggle__bars i { display: block; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.tb-header[data-open] .tb-nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tb-header[data-open] .tb-nav-toggle__bars i:nth-child(2) { opacity: 0; }
.tb-header[data-open] .tb-nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. 页脚 ---------- */
.tb-footer {
  background: var(--c-navy);
  color: var(--c-cool);
  margin-top: clamp(48px, 8vw, 120px);
}
.tb-footer__checker {
  height: 14px;
  background-image: var(--checker);
  background-size: var(--checker-size);
}
.tb-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tb-footer__mark { display: inline-flex; align-items: center; gap: 12px; }
.tb-footer__name {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-white);
}
.tb-footer__slogan {
  margin: 12px 0 22px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .24em;
  color: var(--c-red-lift);
}
.tb-footer__contact { display: grid; gap: 10px; }
.tb-footer__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tb-footer__ctitle {
  flex: 0 0 76px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  color: var(--c-steel);
}
.tb-footer__cvalue { font-size: var(--fs-xs); line-height: 1.7; color: rgba(244, 246, 249, .86); }

.tb-copy {
  display: inline-block;
  padding: 5px 9px;
  background: transparent;
  border: 2px solid rgba(168, 180, 196, .45);
  border-radius: 2px;
  color: var(--c-cyan);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tb-copy:hover { border-color: var(--c-cyan); background: rgba(0, 229, 208, .1); }
.tb-copy[data-copied="true"] { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-navy); }
.tb-copy[data-copied="false"] { border-color: var(--c-red-lift); color: var(--c-red-lift); }

.tb-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.tb-footer__coltitle {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(168, 180, 196, .28);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--c-red-lift);
}
.tb-footer__list { display: grid; gap: 2px; }
.tb-footer__link {
  display: inline-block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  color: rgba(244, 246, 249, .84);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tb-footer__link:hover { color: var(--c-cyan); transform: translateX(4px); }

.tb-footer__legal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 34px;
  border-top: 1px solid rgba(168, 180, 196, .25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--c-steel);
}
.tb-footer__legal-link { color: rgba(244, 246, 249, .82); transition: color var(--dur) var(--ease); }
.tb-footer__legal-link:hover { color: var(--c-cyan); }
.tb-footer__icp { margin-left: auto; color: var(--c-steel); }

/* ---------- 6. 通用组件 ---------- */
.tb-grid { display: grid; gap: clamp(16px, 2vw, 32px); }
.tb-grid--7-5 { grid-template-columns: 7fr 5fr; }
.tb-grid--5-7 { grid-template-columns: 5fr 7fr; }
.tb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-grid--split { align-items: start; }
.tb-sticky { position: sticky; top: calc(var(--h-bar) + 20px); }

.tb-panel {
  background: var(--c-white);
  border: 2px solid var(--c-line);
  border-radius: 2px;
  padding: clamp(16px, 2.4vw, 28px);
}
.tb-panel--dark { background: var(--c-navy-2); border-color: rgba(168, 180, 196, .38); color: var(--c-cool); }
.tb-panel--dark .tb-h3, .tb-panel--dark .tb-h2 { color: var(--c-cool); }
.tb-panel--accent { border-left: 8px solid var(--c-red); }
.tb-panel--hard { box-shadow: var(--hard); }

.tb-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.tb-score__num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-red);
}
.tb-score__label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  color: var(--c-steel);
}
.tb-panel--dark .tb-score, .tb-dark .tb-score { border-color: rgba(168, 180, 196, .38); }
.tb-panel--dark .tb-score__num, .tb-dark .tb-score__num { color: var(--c-cyan); }

.tb-checker-band { height: 12px; background-image: var(--checker); background-size: var(--checker-size); }
.tb-slash {
  height: clamp(28px, 5vw, 60px);
  background: var(--c-navy);
  clip-path: polygon(0 0, 100% 34%, 100% 100%, 0 66%);
}
.tb-slash--red { background: var(--c-red); }
.tb-slash--thin { height: 10px; background: var(--c-red); clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 40%); }

.tb-tag {
  display: inline-block;
  padding: 4px 9px;
  background: var(--c-navy);
  color: var(--c-cool);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
}
.tb-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: transparent;
  border: 2px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--c-navy);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tb-pill:hover { border-color: var(--c-cyan); }
.tb-pill[aria-pressed="true"], .tb-pill.is-active { border-color: var(--c-cyan); color: var(--c-navy); background: rgba(0, 229, 208, .16); }

.tb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-steel); }
.tb-crumbs__item::after { content: "/"; margin-left: 8px; color: var(--c-line); }
.tb-crumbs__item:last-child::after { content: ""; margin: 0; }
.tb-crumbs a { color: var(--c-navy-2); }
.tb-crumbs a:hover { color: var(--c-red); }
.tb-crumbs [aria-current="page"] { color: var(--c-red); }

.tb-toc { display: grid; gap: 2px; border-left: 2px solid var(--c-line); }
.tb-toc__link {
  display: block;
  padding: 8px 12px;
  border-left: 3px solid transparent;
  margin-left: -2px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-steel);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tb-toc__link:hover { color: var(--c-navy); }
.tb-toc__link.is-active { color: var(--c-navy); border-left-color: var(--c-red); background: rgba(0, 229, 208, .12); }

.tb-acc {
  border: 2px solid var(--c-line);
  border-radius: 2px;
  background: var(--c-white);
  margin-bottom: 12px;
}
.tb-acc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(14px, 2vw, 22px);
  font-family: var(--f-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.tb-acc__title::-webkit-details-marker { display: none; }
.tb-acc__title::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: var(--fs-md);
  color: var(--c-red);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tb-acc[open] { border-color: var(--c-navy); }
.tb-acc[open] .tb-acc__title::after { content: "–"; color: var(--c-cyan); }
.tb-acc__body { padding: 0 clamp(14px, 2vw, 22px) 20px; font-size: var(--fs-sm); }

/* ---------- 7. 图片容器 ---------- */
.tb-img {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-navy-2);
  border: 2px solid var(--c-line);
  border-radius: 2px;
}
.tb-img img { width: 100%; height: 100%; object-fit: cover; }
.tb-img--16x9 { aspect-ratio: 16 / 9; }
.tb-img--4x3 { aspect-ratio: 4 / 3; }
.tb-img--1x1 { aspect-ratio: 1 / 1; }
.tb-img--tall { aspect-ratio: 3 / 4; }
.tb-img--wide { aspect-ratio: 21 / 9; }
.tb-img--slant { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.tb-img--hard { box-shadow: var(--hard); }
.tb-img__tag {
  position: absolute;
  top: 0; left: 0;
  padding: 8px 12px;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
}
.tb-img__checker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-image: var(--checker);
  background-size: var(--checker-size);
}
.tb-img__caption {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0), rgba(11, 27, 51, .9));
  color: var(--c-cool);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* ---------- 8. 动效、进度、返回顶部与无障碍 ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.tb-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 240;
  background: rgba(11, 27, 51, .25);
  pointer-events: none;
}
.tb-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red-lift) 55%, var(--c-cyan) 100%);
}

.tb-totop {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--c-navy);
  border: 2px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-cool);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) linear, border-color var(--dur) var(--ease);
}
.tb-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.tb-totop:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.tb-totop__arrow { color: var(--c-cyan); font-size: var(--fs-sm); line-height: 1; }

.tb-dark { background: var(--c-navy); color: var(--c-cool); }
.tb-dark .tb-kicker { color: var(--c-cyan); }
.tb-dark .tb-kicker::before { background: var(--c-cyan); }
.tb-dark .tb-muted, .tb-dark .tb-small { color: rgba(168, 180, 196, .92); }
.tb-light { background: var(--c-cool); }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .tb-header__actions .tb-btn--ghost { display: none; }
}
@media (max-width: 1080px) {
  :root { --h-bar: 64px; }
  .tb-nav-toggle { display: inline-flex; margin-left: auto; }
  .tb-header__actions { display: none; }
  .tb-header[data-open] { background: var(--c-navy); }
  .tb-header[data-open] .tb-header__rail { opacity: 0; }

  .tb-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    margin: 0;
    display: block;
    padding: calc(var(--h-bar) + 28px) var(--gutter) 56px;
    background: var(--c-navy);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%);
    transform: translateY(-104%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 240ms var(--ease), visibility 240ms linear;
  }
  .tb-nav[data-open] { transform: translateY(0); visibility: visible; }
  .tb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 2px solid rgba(168, 180, 196, .3);
  }
  .tb-nav__item { border-bottom: 2px solid rgba(168, 180, 196, .16); }
  .tb-nav__link {
    padding: 18px 2px;
    font-family: var(--f-display);
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: 0;
    opacity: 1;
  }
  .tb-nav__link::after { bottom: 12px; height: 3px; }
  .tb-nav__link[aria-current="page"] { color: var(--c-cyan); }
  .tb-nav__cta { display: grid; gap: 12px; margin-top: 28px; }
  .tb-nav__cta .tb-btn { width: 100%; padding: 14px 16px; }
  .tb-nav__meta { display: block; margin-top: 32px; padding-top: 20px; border-top: 1px dashed rgba(168, 180, 196, .35); }
  .tb-nav__metatitle {
    margin-bottom: 12px;
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    letter-spacing: .18em;
    color: var(--c-red-lift);
  }
  .tb-nav__meta .tb-copy { display: block; width: 100%; margin-bottom: 10px; text-align: left; }
  .tb-nav__metaline { font-size: var(--fs-xs); color: var(--c-steel); }
}
@media (max-width: 960px) {
  .tb-grid--7-5, .tb-grid--5-7, .tb-grid--2, .tb-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .tb-sticky { position: static; top: auto; }
  .tb-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .tb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tb-brand__slogan { display: none; }
  .tb-header__rail { display: none; }
  .tb-brand__line { font-size: var(--fs-sm); }
  .tb-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .tb-footer__legal { flex-direction: column; align-items: flex-start; }
  .tb-footer__icp { margin-left: 0; }
  .tb-nav-toggle__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tb-nav { transition: none; }
}
