/* ===========================================================
   天博克罗地亚 · 赛场数据终端
   共享站点样式 /assets/site.css
   设计依据：居中刊头 / Bento 模块 / 切角 12px + 斜线 12°
   =========================================================== */

/* ---------- 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
:target { scroll-margin-top: 96px; }

/* ---------- 2. 变量 ---------- */
:root {
  --tb-ink: #0B1F3A;
  --tb-ink-2: #14356B;
  --tb-red: #C8102E;
  --tb-red-dark: #8C0A1F;
  --tb-yellow: #F2C230;
  --tb-paper: #F7F4EF;
  --tb-sand: #E6E1D8;
  --tb-black: #17181A;
  --tb-muted: #5C6B80;
  --tb-white: #FFFFFF;

  --tb-cut: 14px;
  --tb-cut-sm: 8px;
  --tb-gap: 16px;
  --tb-shell: 1200px;
  --tb-ease: cubic-bezier(.2, .7, .3, 1);

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

  --tb-checker-light:
    conic-gradient(from 90deg at 50% 50%,
      rgba(255, 255, 255, .14) 25%, transparent 0 50%,
      rgba(255, 255, 255, .14) 0 75%, transparent 0);
  --tb-checker-red:
    conic-gradient(from 90deg at 50% 50%,
      rgba(200, 16, 46, .88) 25%, rgba(247, 244, 239, .92) 0 50%,
      rgba(200, 16, 46, .88) 0 75%, rgba(247, 244, 239, .92) 0);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  font-family: var(--tb-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--tb-black);
  background-color: var(--tb-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--tb-font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-stretch: condensed;
  color: var(--tb-ink);
}
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: 20px; }
strong { font-weight: 700; }
#main-content { display: block; min-height: 50vh; }

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--tb-yellow);
  outline-offset: 3px;
}
.tb-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--tb-ink);
  background: var(--tb-yellow);
  clip-path: polygon(0 0, calc(100% - var(--tb-cut-sm)) 0, 100% var(--tb-cut-sm), 100% 100%, 0 100%);
  transition: top .18s var(--tb-ease);
}
.tb-skip:focus { top: 12px; }

/* ---------- 5. 容器 / 网格 ---------- */
.tb-shell {
  width: min(100% - 96px, var(--tb-shell));
  margin-inline: auto;
}
.tb-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--tb-gap);
}
.tb-col-3 { grid-column: span 3; }
.tb-col-4 { grid-column: span 4; }
.tb-col-5 { grid-column: span 5; }
.tb-col-6 { grid-column: span 6; }
.tb-col-8 { grid-column: span 8; }
.tb-col-12 { grid-column: span 12; }

/* ---------- 6. 章节 / 文本 ---------- */
.tb-section { padding-block: clamp(56px, 7vw, 96px); }
.tb-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 28px;
}
.tb-section__title { font-size: clamp(26px, 3.2vw, 40px); }
.tb-chapter {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--tb-red);
  font-variant-numeric: tabular-nums;
}
.tb-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--tb-muted);
}
.tb-lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.72;
  max-width: 38em;
  color: var(--tb-ink);
}
.tb-prose { max-width: 38em; }
.tb-prose p + p { margin-top: 1.05em; }
.tb-prose a {
  color: var(--tb-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tb-prose ul, .tb-prose ol { margin-top: .9em; padding-left: 1.2em; }
.tb-prose li { list-style: disc; }
.tb-num {
  font-family: var(--tb-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 7. 按钮 ---------- */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--tb-paper);
  background: var(--tb-ink);
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .2s var(--tb-ease), color .2s var(--tb-ease),
    border-color .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-btn:hover { transform: translateY(-1px); }
.tb-btn--primary { background: var(--tb-red); color: #fff; }
.tb-btn--primary:hover { background: var(--tb-red-dark); }
.tb-btn--ghost {
  background: transparent;
  border-color: rgba(11, 31, 58, .32);
  color: var(--tb-ink);
}
.tb-btn--ghost:hover {
  background: rgba(11, 31, 58, .06);
  border-color: var(--tb-ink);
}

/* ---------- 8. 面板 / 纹理 / 分隔 ---------- */
.tb-panel {
  background: var(--tb-white);
  border: 1px solid rgba(11, 31, 58, .12);
  padding: clamp(20px, 2.4vw, 28px);
}
.tb-panel--cut {
  clip-path: polygon(0 0, calc(100% - var(--tb-cut)) 0, 100% var(--tb-cut), 100% 100%, 0 100%);
}
.tb-panel--ink {
  background: var(--tb-ink);
  border-color: rgba(247, 244, 239, .16);
  color: var(--tb-paper);
}
.tb-panel--ink h2, .tb-panel--ink h3, .tb-panel--ink h4 { color: var(--tb-paper); }
.tb-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 31, 58, .12);
}
.tb-panel--ink .tb-panel__head { border-bottom-color: rgba(247, 244, 239, .18); }
.tb-checker {
  background-image: var(--tb-checker-light);
  background-size: 16px 16px;
  background-position: 0 0;
}
.tb-checker--red {
  background-image: var(--tb-checker-red);
  background-size: 12px 12px;
}
.tb-rule {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(
    102deg,
    rgba(11, 31, 58, .34) 0 6px,
    transparent 6px 14px
  );
}

/* ---------- 9. 图片容器基础规则 ---------- */
.tb-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tb-sand);
  border: 1px solid rgba(11, 31, 58, .12);
}
.tb-frame img,
.tb-frame svg,
.tb-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb-frame--16x9 { aspect-ratio: 16 / 9; }
.tb-frame--4x3 { aspect-ratio: 4 / 3; }
.tb-frame--1x1 { aspect-ratio: 1 / 1; }
.tb-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tb-cut)), calc(100% - var(--tb-cut)) 100%, 0 100%);
}
.tb-frame__checker::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22px;
  background-image: var(--tb-checker-red);
  background-size: 12px 12px;
  opacity: .9;
  pointer-events: none;
}

/* ---------- 10. 面包屑 ---------- */
.tb-crumb {
  padding-block: 16px;
  border-bottom: 1px solid var(--tb-sand);
  font-size: 12px;
  letter-spacing: .06em;
}
.tb-crumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--tb-muted);
}
.tb-crumb li { display: flex; align-items: center; }
.tb-crumb li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-right: 8px;
  background: rgba(92, 107, 128, .55);
  transform: skewX(-12deg);
}
.tb-crumb a { text-decoration: none; }
.tb-crumb a:hover { color: var(--tb-red); }
.tb-crumb [aria-current="page"] { color: var(--tb-ink); font-weight: 700; }

/* ---------- 11. 表格基础 ---------- */
.tb-table {
  width: 100%;
  font-size: 15px;
  background: var(--tb-white);
  border: 1px solid rgba(11, 31, 58, .12);
}
.tb-table caption {
  caption-side: top;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--tb-muted);
  text-align: left;
}
.tb-table th,
.tb-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--tb-sand);
  vertical-align: top;
}
.tb-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--tb-muted);
  background: var(--tb-sand);
  border-bottom: 1px solid rgba(11, 31, 58, .16);
}
.tb-table tbody tr:nth-child(even) { background: rgba(230, 225, 216, .38); }
.tb-table tbody tr:last-child td { border-bottom: 0; }
.tb-table .is-num {
  text-align: right;
  font-family: var(--tb-font-mono);
  font-variant-numeric: tabular-nums;
}
.tb-table .is-current {
  background: var(--tb-red-dark);
  color: #fff;
}
.tb-table .is-current th,
.tb-table .is-current td { color: #fff; border-bottom-color: rgba(255, 255, 255, .18); }

/* ---------- 12. 分段切换组件 ---------- */
.tb-seg { display: block; }
.tb-seg__list {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--tb-sand);
  border: 1px solid rgba(11, 31, 58, .1);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tb-seg__btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--tb-muted);
  transition: color .2s var(--tb-ease);
}
.tb-seg__btn[aria-selected="true"] { color: #fff; }
.tb-seg__btn:focus-visible { outline: 2px solid var(--tb-red); outline-offset: 2px; }
.tb-seg__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 0;
  width: 0;
  height: calc(100% - 10px);
  background: var(--tb-red);
  transition: left .24s var(--tb-ease), width .24s var(--tb-ease);
}
.tb-seg__list--instant .tb-seg__thumb { transition: none; }
.tb-seg__panel { padding-top: 20px; }
.tb-seg__panel[hidden] { display: none; }

/* ---------- 13. 头部 ---------- */
.tb-header {
  position: relative;
  background: var(--tb-ink);
  color: var(--tb-paper);
  border-bottom: 1px solid rgba(247, 244, 239, .14);
}
.tb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.tb-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--tb-red), var(--tb-yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}
.tb-header__bar {
  background: var(--tb-ink-2);
  border-bottom: 1px solid rgba(247, 244, 239, .1);
}
.tb-header__bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
}
.tb-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(247, 244, 239, .88);
}
.tb-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--tb-yellow);
  transform: skewX(-12deg);
  animation: tb-pulse 2.6s var(--tb-ease) infinite;
}
@keyframes tb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.tb-utility {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tb-utility__item { display: block; }
.tb-utility__link {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--tb-paper);
  border: 1px solid rgba(247, 244, 239, .3);
  clip-path: polygon(0 0, calc(100% - var(--tb-cut-sm)) 0, 100% var(--tb-cut-sm), 100% 100%, 0 100%);
  transition: background .2s var(--tb-ease), color .2s var(--tb-ease), border-color .2s var(--tb-ease);
}
.tb-utility__link:hover {
  background: var(--tb-red);
  border-color: var(--tb-red);
  color: #fff;
}

.tb-masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 26px 22px;
  text-align: center;
}
.tb-masthead__kicker {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  color: rgba(247, 244, 239, .5);
}
.tb-masthead__meta {
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(247, 244, 239, .62);
}
.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--tb-font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--tb-paper);
}
.tb-brand__name {
  font-size: clamp(26px, 4.4vw, 46px);
  font-stretch: condensed;
}
.tb-brand__dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--tb-red);
  transform: skewX(-12deg);
}
.tb-brand__sub {
  align-self: flex-end;
  padding-bottom: .35em;
  font-family: var(--tb-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--tb-yellow);
}
@media (min-width: 1024px) {
  .tb-masthead { padding-inline: 150px; }
  .tb-masthead::before,
  .tb-masthead::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 120px;
    height: 16px;
    transform: translateY(-50%);
    background-image: var(--tb-checker-red);
    background-size: 16px 16px;
    opacity: .55;
  }
  .tb-masthead::before { left: 0; }
  .tb-masthead::after { right: 0; }
}

.tb-navwrap {
  position: relative;
  background: var(--tb-ink);
  border-top: 1px solid rgba(247, 244, 239, .1);
}
.tb-navwrap::after {
  content: "";
  display: block;
  height: 3px;
  background-image: repeating-linear-gradient(
    102deg,
    rgba(200, 16, 46, .9) 0 10px,
    transparent 10px 20px
  );
}
.tb-navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tb-nav { width: 100%; }
.tb-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.tb-nav__item { display: block; }
.tb-nav__link {
  position: relative;
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  color: rgba(247, 244, 239, .76);
  transition: color .18s var(--tb-ease), background .18s var(--tb-ease);
}
.tb-nav__link:hover {
  color: #fff;
  background: rgba(247, 244, 239, .07);
}
.tb-nav__link[aria-current="page"] { color: #fff; }
.tb-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 3px;
  background: var(--tb-red);
  transform: skewX(-12deg);
}
.tb-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--tb-paper);
  border-bottom: 1px solid rgba(247, 244, 239, .12);
}
.tb-nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.tb-nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--tb-red);
  transform: skewX(-12deg);
  transition: background .2s var(--tb-ease), opacity .2s var(--tb-ease);
}
.tb-nav-toggle__text { display: inline-block; }
.tb-nav-toggle[aria-expanded="true"] { color: var(--tb-yellow); }
.tb-nav-toggle[aria-expanded="true"] .tb-nav-toggle__bars i { background: var(--tb-yellow); }

/* ---------- 14. 页脚 ---------- */
.tb-footer {
  background: var(--tb-ink);
  color: var(--tb-paper);
  margin-top: auto;
}
.tb-footer::before {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(
    102deg,
    var(--tb-red) 0 12px,
    var(--tb-yellow) 12px 24px
  );
}
.tb-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
}
.tb-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.tb-brand--footer .tb-brand__name { font-size: clamp(20px, 2.2vw, 28px); }
.tb-footer__tag {
  max-width: 26em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 244, 239, .72);
}
.tb-footer__update {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--tb-yellow);
}
.tb-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tb-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--tb-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--tb-yellow);
}
.tb-footer__list { font-size: 15px; }
.tb-footer__list li + li { margin-top: 10px; }
.tb-footer__list a {
  position: relative;
  text-decoration: none;
  color: rgba(247, 244, 239, .74);
  transition: color .2s var(--tb-ease);
}
.tb-footer__list a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: .62em;
  width: 8px;
  height: 1px;
  background: var(--tb-red);
  opacity: 0;
  transition: opacity .2s var(--tb-ease);
}
.tb-footer__list a:hover { color: #fff; }
.tb-footer__list a:hover::before { opacity: 1; }
.tb-footer__contact {
  padding-block: 20px;
  border-top: 1px solid rgba(247, 244, 239, .14);
}
.tb-footer__contact-line {
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(247, 244, 239, .66);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.tb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid rgba(247, 244, 239, .1);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(247, 244, 239, .52);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 900px) {
  .tb-shell { width: min(100% - 48px, var(--tb-shell)); }
  .tb-col-3, .tb-col-4, .tb-col-5, .tb-col-6, .tb-col-8 { grid-column: span 12; }
  .tb-navbar { align-items: stretch; }
  .tb-nav-toggle { display: flex; }
  .tb-nav { display: none; }
  .tb-nav[data-open="true"] { display: block; }
  .tb-nav__list {
    flex-direction: column;
    padding-bottom: 10px;
  }
  .tb-nav__item { border-top: 1px solid rgba(247, 244, 239, .1); }
  .tb-nav__link { padding: 14px 8px; }
  .tb-nav__link[aria-current="page"]::after {
    left: 8px;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }
  .tb-footer__top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .tb-shell { width: calc(100% - 32px); }
  .tb-gap, .tb-grid { gap: 12px; }
  .tb-header__bar-in {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-block: 8px;
  }
  .tb-masthead { padding-block: 20px 16px; }
  .tb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-footer__legal { justify-content: flex-start; }
  .tb-seg__btn { padding: 10px 14px; font-size: 13px; }
}

/* ---------- 16. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .tb-btn:hover { transform: none; }
  .tb-progress__bar { transition: none; }
}
