/* ============================================================
   天行体育 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / header / footer / 基础组件
   ============================================================ */

/* ---------- 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,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img,svg{max-width:100%;height:auto}
button{font:inherit;color:inherit}
a{color:var(--tx-ice)}

/* ---------- 2. Tokens ---------- */
:root{
  --tx-indigo:#0B1B3A;
  --tx-deck:#16305A;
  --tx-ice:#1F7AE0;
  --tx-frost:#7FD3F7;
  --tx-snow:#EAF4FC;
  --tx-white:#FFFFFF;
  --tx-orange:#FF6A1A;
  --tx-red:#D8324B;
  --tx-rail:#8FA3BF;
  --tx-ink:#0E1726;

  --tx-sans:system-ui,"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --tx-mono:ui-monospace,"DIN Alternate","JetBrains Mono",Menlo,Consolas,monospace;

  --tx-cut:14px;
  --tx-cut-lg:28px;
  --tx-gutter:clamp(16px,3vw,40px);
  --tx-wide:1440px;
  --tx-ease:cubic-bezier(.22,.61,.36,1);
  --tx-nav-bp:1024px;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--tx-snow);
  color:var(--tx-ink);
  font-family:var(--tx-sans);
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
main{flex:1 0 auto}

/* ---------- 3. 中文排版与文字组件 ---------- */
.tx-display{
  font-size:clamp(2.5rem,7vw,5.5rem);
  line-height:.98;
  letter-spacing:-.02em;
  font-weight:800;
}
.tx-title{
  font-size:clamp(1.5rem,3.2vw,2.75rem);
  line-height:1.12;
  letter-spacing:-.02em;
  font-weight:800;
}
.tx-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family:var(--tx-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--tx-ice);
}
.tx-eyebrow::before{
  content:"";
  width:18px;height:2px;
  background:currentColor;
  flex:0 0 auto;
}
.tx-lede{
  font-size:clamp(1.0625rem,1.5vw,1.25rem);
  line-height:1.72;
  color:rgba(14,23,38,.78);
  max-width:34em;
}
.tx-numeric{
  font-family:var(--tx-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
}
.tx-rule{
  height:1px;
  border:0;
  margin-block:clamp(20px,3vw,36px);
  background:repeating-linear-gradient(90deg,currentColor 0 8px,transparent 8px 18px);
  opacity:.35;
}

/* ---------- 4. 结构容器与网格 ---------- */
.tx-shell{
  width:100%;
  max-width:var(--tx-wide);
  margin-inline:auto;
  padding-inline:var(--tx-gutter);
}
.tx-section{padding-block:clamp(48px,7vw,96px)}
.tx-section--tight{padding-block:clamp(28px,4vw,48px)}
.tx-section--snow{background:var(--tx-snow);color:var(--tx-ink)}
.tx-section--deep{background:var(--tx-indigo);color:var(--tx-snow)}
.tx-section--deck{background:var(--tx-deck);color:var(--tx-snow)}
.tx-section--deep .tx-lede,
.tx-section--deck .tx-lede{color:rgba(234,244,252,.8)}
.tx-section--deep .tx-eyebrow,
.tx-section--deck .tx-eyebrow{color:var(--tx-frost)}

.tx-grid{display:grid;gap:clamp(16px,2vw,28px)}
.tx-grid--rail{grid-template-columns:280px minmax(0,1fr) 320px}
.tx-grid--2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.tx-grid--cards{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

@media (max-width:1439px){
  .tx-grid--rail{grid-template-columns:232px minmax(0,1fr)}
}
@media (max-width:960px){
  .tx-grid--rail{grid-template-columns:1fr}
}

/* ---------- 5. 面包屑 ---------- */
.tx-crumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.55em;
  font-family:var(--tx-mono);
  font-size:11.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(14,23,38,.62);
}
.tx-crumbs a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .18s var(--tx-ease),color .18s var(--tx-ease);
}
.tx-crumbs a:hover{color:var(--tx-ice);border-bottom-color:currentColor}
.tx-crumbs__sep{opacity:.45}
.tx-section--deep .tx-crumbs,
.tx-section--deck .tx-crumbs{color:rgba(234,244,252,.7)}
.tx-section--deep .tx-crumbs a:hover,
.tx-section--deck .tx-crumbs a:hover{color:var(--tx-frost)}

/* ---------- 6. 面板 / 标签 / 徽标 ---------- */
.tx-panel{
  --tx-cut-local:var(--tx-cut);
  position:relative;
  background:var(--tx-white);
  border:1px solid rgba(143,163,191,.45);
  padding:clamp(18px,2.4vw,28px);
  clip-path:polygon(
    var(--tx-cut-local) 0,100% 0,
    100% calc(100% - var(--tx-cut-local)),
    calc(100% - var(--tx-cut-local)) 100%,0 100%,
    0 var(--tx-cut-local)
  );
}
.tx-panel--deep{
  background:var(--tx-deck);
  color:var(--tx-snow);
  border-color:rgba(127,211,247,.28);
}
.tx-panel--lg{--tx-cut-local:var(--tx-cut-lg)}

.tx-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  font-family:var(--tx-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--tx-ice);
  border:1px solid currentColor;
  border-radius:999px;
  line-height:1.5;
}
.tx-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 9px;
  font-family:var(--tx-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  background:var(--tx-orange);
  color:var(--tx-indigo);
  font-weight:700;
  border-radius:2px;
}

/* ---------- 7. 正文 ---------- */
.tx-prose{
  max-width:36em;
  font-size:clamp(1rem,1.1vw,1.0625rem);
  line-height:1.8;
  color:var(--tx-ink);
}
.tx-prose > * + *{margin-top:1.1em}
.tx-prose h2{
  font-size:clamp(1.25rem,2vw,1.625rem);
  line-height:1.3;
  font-weight:800;
  letter-spacing:-.01em;
  margin-top:1.8em;
}
.tx-prose h3{
  font-size:1.0625rem;
  font-weight:700;
  margin-top:1.5em;
}
.tx-prose ul,.tx-prose ol{list-style:disc;padding-left:1.3em}
.tx-prose ol{list-style:decimal}
.tx-prose li + li{margin-top:.45em}
.tx-prose a{color:var(--tx-ice);text-underline-offset:3px}
.tx-section--deep .tx-prose,
.tx-section--deck .tx-prose{color:rgba(234,244,252,.88)}
.tx-section--deep .tx-prose a,
.tx-section--deck .tx-prose a{color:var(--tx-frost)}

/* ---------- 8. 图片容器基础规则 ---------- */
.tx-figure{
  position:relative;
  display:block;
  margin:0;
  overflow:hidden;
  background:var(--tx-deck);
  border:1px solid rgba(143,163,191,.4);
  isolation:isolate;
}
.tx-figure img,
.tx-figure svg,
.tx-figure picture{display:block;width:100%;height:100%;object-fit:cover}
.tx-figure::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(90deg,rgba(127,211,247,.14) 0 1px,transparent 1px 72px),
    repeating-linear-gradient(0deg,rgba(127,211,247,.1) 0 1px,transparent 1px 72px);
}
.tx-figure--21x9{aspect-ratio:21/9}
.tx-figure--16x9{aspect-ratio:16/9}
.tx-figure--4x3{aspect-ratio:4/3}
.tx-figure--1x1{aspect-ratio:1/1}
.tx-figure__caption{
  position:absolute;
  left:0;bottom:0;
  z-index:2;
  padding:8px 12px;
  background:rgba(11,27,58,.88);
  color:var(--tx-snow);
  font-family:var(--tx-mono);
  font-size:10.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* ---------- 9. 章节索引轴 ---------- */
.tx-axis{
  display:grid;
  gap:2px;
  padding-left:14px;
  border-left:1px solid rgba(143,163,191,.55);
  font-family:var(--tx-mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.tx-axis__link{
  display:block;
  padding:6px 0;
  color:inherit;
  text-decoration:none;
  opacity:.55;
  transition:opacity .18s var(--tx-ease),color .18s var(--tx-ease);
}
.tx-axis__link:hover{opacity:.9}
.tx-axis__link[data-active="true"]{opacity:1;color:var(--tx-orange);font-weight:700}

/* ---------- 10. Skip link ---------- */
.tx-skip{
  position:absolute;
  left:50%;
  top:0;
  transform:translate(-50%,-140%);
  z-index:200;
  padding:10px 22px;
  background:var(--tx-orange);
  color:var(--tx-indigo);
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-decoration:none;
  border-radius:0 0 4px 4px;
  transition:transform .18s var(--tx-ease);
}
.tx-skip:focus{transform:translate(-50%,0)}

/* ---------- 11. Header ---------- */
.tx-header{
  position:sticky;
  top:0;
  z-index:90;
  background:linear-gradient(180deg,#0B1B3A 0%,#0A1832 100%);
  color:var(--tx-snow);
  border-bottom:1px solid rgba(143,163,191,.32);
  box-shadow:0 14px 34px -26px rgba(11,27,58,.95);
}

.tx-tickrail{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(10px,2vw,32px);
  padding:6px var(--tx-gutter) 8px;
  font-family:var(--tx-mono);
  font-size:10.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(127,211,247,.72);
  white-space:nowrap;
  overflow:hidden;
  border-bottom:1px solid rgba(143,163,191,.2);
  background-image:repeating-linear-gradient(90deg,rgba(143,163,191,.55) 0 1px,transparent 1px 14px);
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:100% 5px;
}
.tx-tickrail__coord{
  display:inline-block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tx-tickrail__coord:nth-child(2){color:rgba(143,163,191,.8)}

.tx-header__bar{
  display:flex;
  align-items:center;
  gap:clamp(10px,2vw,28px);
  max-width:1680px;
  margin-inline:auto;
  padding:12px var(--tx-gutter);
  transition:padding .22s var(--tx-ease);
}
.tx-header[data-compact="true"] .tx-tickrail{display:none}
.tx-header[data-compact="true"] .tx-header__bar{padding-block:8px}

.tx-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  color:var(--tx-snow);
  text-decoration:none;
}
.tx-brand__mark{
  display:inline-flex;
  align-items:center;
  font-size:20px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1;
  color:var(--tx-white);
}
.tx-brand__mark::before{
  content:"";
  width:9px;
  height:9px;
  margin-right:9px;
  background:var(--tx-orange);
  clip-path:polygon(0 0,100% 0,100% 100%,38% 100%);
}
.tx-brand__season{
  font-family:var(--tx-mono);
  font-size:10.5px;
  letter-spacing:.12em;
  padding:3px 7px;
  border:1px solid rgba(127,211,247,.45);
  border-radius:2px;
  color:var(--tx-frost);
  line-height:1.4;
}

.tx-nav{flex:1 1 auto;display:flex;justify-content:flex-end;min-width:0}
.tx-nav__list{
  display:flex;
  align-items:center;
  gap:clamp(8px,1.6vw,24px);
  flex-wrap:wrap;
  justify-content:flex-end;
}
.tx-nav__link{
  position:relative;
  display:inline-block;
  padding:6px 2px;
  color:rgba(234,244,252,.82);
  font-size:14px;
  font-weight:500;
  letter-spacing:.06em;
  text-decoration:none;
  transition:color .18s var(--tx-ease);
}
.tx-nav__link::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:var(--tx-orange);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .22s var(--tx-ease);
}
.tx-nav__link:hover{color:var(--tx-white)}
.tx-nav__link:hover::after{transform:scaleX(1)}
.tx-nav__link[aria-current="page"]{color:var(--tx-white);font-weight:700}
.tx-nav__link[aria-current="page"]::after{transform:scaleX(1)}

.tx-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

/* ---------- 12. 按钮 ---------- */
.tx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 16px;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.25;
  text-decoration:none;
  text-align:center;
  border:1px solid transparent;
  border-radius:2px;
  background:transparent;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  transition:background-color .18s var(--tx-ease),color .18s var(--tx-ease),
             border-color .18s var(--tx-ease),transform .18s var(--tx-ease);
}
.tx-btn:active{transform:translateY(1px)}
.tx-btn--brand{
  background:var(--tx-orange);
  color:#0B1B3A;
  border-color:var(--tx-orange);
}
.tx-btn--brand:hover{background:#FF8236;border-color:#FF8236;color:#0B1B3A}
.tx-btn--ghost{
  border-color:rgba(127,211,247,.45);
  color:var(--tx-snow);
}
.tx-btn--ghost:hover{background:rgba(31,122,224,.22);border-color:var(--tx-frost);color:var(--tx-white)}
.tx-btn--toggle{
  border-color:rgba(143,163,191,.42);
  color:rgba(234,244,252,.86);
}
.tx-btn--toggle::before{
  content:"";
  width:8px;height:8px;
  border-radius:1px;
  background:var(--tx-rail);
  transition:background-color .18s var(--tx-ease),box-shadow .18s var(--tx-ease);
}
.tx-btn--toggle:hover{border-color:rgba(127,211,247,.7);color:var(--tx-white)}
.tx-btn--toggle[aria-pressed="true"]{
  border-color:var(--tx-orange);
  color:var(--tx-white);
}
.tx-btn--toggle[aria-pressed="true"]::before{
  background:var(--tx-orange);
  box-shadow:0 0 0 3px rgba(255,106,26,.24);
}

/* ---------- 13. 移动导航按钮 ---------- */
.tx-nav-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:44px;
  height:40px;
  padding:0;
  border:1px solid rgba(127,211,247,.45);
  border-radius:2px;
  background:rgba(22,48,90,.65);
  cursor:pointer;
}
.tx-nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--tx-snow);
  transition:transform .2s var(--tx-ease),opacity .2s var(--tx-ease);
}
.tx-header[data-open="true"] .tx-nav-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.tx-header[data-open="true"] .tx-nav-toggle span:nth-child(2){opacity:0}
.tx-header[data-open="true"] .tx-nav-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- 14. 滚动进度 ---------- */
.tx-progress{
  height:3px;
  background:rgba(143,163,191,.2);
  overflow:hidden;
}
.tx-progress__bar{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--tx-frost) 0%,var(--tx-ice) 55%,var(--tx-orange) 100%);
  transition:width .08s linear;
}

/* ---------- 15. Footer ---------- */
.tx-footer{
  position:relative;
  margin-top:auto;
  background:var(--tx-indigo);
  color:rgba(234,244,252,.74);
  font-size:14px;
  line-height:1.7;
}
.tx-footer__edge{
  height:6px;
  background:
    repeating-linear-gradient(135deg,var(--tx-orange) 0 12px,transparent 12px 26px),
    repeating-linear-gradient(135deg,var(--tx-ice) 0 6px,transparent 6px 26px),
    var(--tx-deck);
}
.tx-footer__grid{
  max-width:var(--tx-wide);
  margin-inline:auto;
  display:grid;
  grid-template-columns:1.5fr 1fr 1.5fr 1fr;
  gap:clamp(24px,3vw,48px);
  padding:clamp(36px,5vw,64px) var(--tx-gutter) clamp(24px,4vw,44px);
}
.tx-footer__col{min-width:0}
.tx-footer__brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:21px;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--tx-white);
  line-height:1.3;
}
.tx-footer__brand::before{
  content:"";
  width:9px;height:9px;
  background:var(--tx-orange);
  clip-path:polygon(0 0,100% 0,100% 100%,38% 100%);
  flex:0 0 auto;
}
.tx-footer__tagline{
  margin-top:14px;
  max-width:26em;
  color:rgba(234,244,252,.66);
}
.tx-footer__title{
  font-family:var(--tx-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--tx-frost);
  padding-bottom:10px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(143,163,191,.3);
}
.tx-footer__list{display:grid;gap:9px}
.tx-footer__row{display:grid;gap:2px}
.tx-footer__label{
  font-family:var(--tx-mono);
  font-size:10.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(143,163,191,.92);
}
.tx-footer__value{
  color:var(--tx-snow);
  overflow-wrap:anywhere;
}
.tx-footer__link{
  color:rgba(234,244,252,.82);
  text-decoration:none;
  transition:color .18s var(--tx-ease);
}
.tx-footer__link:hover{color:var(--tx-white);text-decoration:underline;text-underline-offset:4px}
.tx-footer__bottom{
  max-width:var(--tx-wide);
  margin-inline:auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 24px;
  padding:18px var(--tx-gutter) 26px;
  border-top:1px solid rgba(143,163,191,.25);
}
.tx-footer__meta{
  font-family:var(--tx-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  color:rgba(143,163,191,.88);
}

/* ---------- 16. 返回顶部 ---------- */
.tx-top{
  position:fixed;
  right:clamp(14px,2vw,28px);
  bottom:clamp(14px,2vw,28px);
  z-index:95;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid rgba(127,211,247,.5);
  border-radius:2px;
  background:rgba(11,27,58,.94);
  color:var(--tx-snow);
  font-family:var(--tx-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .22s var(--tx-ease),transform .22s var(--tx-ease),
             visibility .22s var(--tx-ease),border-color .18s var(--tx-ease);
}
.tx-top[data-visible="true"]{opacity:1;visibility:visible;transform:none}
.tx-top:hover{border-color:var(--tx-orange);color:var(--tx-white)}

/* ---------- 17. 焦点可见性 ---------- */
:where(a,button,[tabindex]):focus-visible{
  outline:2px solid var(--tx-ice);
  outline-offset:3px;
  border-radius:2px;
}
.tx-header :where(a,button):focus-visible,
.tx-footer :where(a,button):focus-visible,
.tx-top:focus-visible{
  outline-color:var(--tx-frost);
}

/* ---------- 18. 大屏模式 ---------- */
html[data-bigscreen="on"]{font-size:18px}
html[data-bigscreen="on"] .tx-shell{max-width:1680px}

/* ---------- 19. 滚动显现 ---------- */
html.tx-js [data-reveal]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .3s var(--tx-ease),transform .3s var(--tx-ease);
}
html.tx-js [data-reveal="in"]{opacity:1;transform:none}

/* ---------- 20. 响应式 ---------- */
@media (max-width:1100px){
  .tx-header .tx-btn--ghost{display:none}
}
@media (max-width:1024px){
  .tx-nav-toggle{display:inline-flex}
  .tx-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:block;
    max-height:calc(100vh - 64px);
    overflow-y:auto;
    padding:8px var(--tx-gutter) 22px;
    background:#101F3D;
    border-bottom:1px solid rgba(143,163,191,.35);
    box-shadow:0 26px 44px -22px rgba(0,0,0,.72);
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:opacity .2s var(--tx-ease),transform .2s var(--tx-ease),visibility .2s var(--tx-ease);
  }
  .tx-header[data-open="true"] .tx-nav{
    opacity:1;
    visibility:visible;
    transform:none;
  }
  .tx-nav__list{flex-direction:column;align-items:stretch;gap:0}
  .tx-nav__list li{border-bottom:1px solid rgba(143,163,191,.22)}
  .tx-nav__list li:last-child{border-bottom:0}
  .tx-nav__link{display:block;padding:14px 2px;font-size:15px}
  .tx-nav__link::after{display:none}
  .tx-nav__link[aria-current="page"]{color:var(--tx-orange)}
  body.tx-nav-open{overflow:hidden}
  .tx-footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .tx-tickrail__coord:nth-child(2){display:none}
  .tx-brand__mark{font-size:18px}
  .tx-btn--toggle{padding:8px 11px;font-size:12px}
  .tx-btn--brand{padding:8px 12px;font-size:12px}
}
@media (max-width:560px){
  .tx-tickrail__coord:nth-child(3){display:none}
  .tx-footer__grid{grid-template-columns:1fr}
  .tx-footer__bottom{flex-direction:column}
}

/* ---------- 21. 降低动效 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  html.tx-js [data-reveal]{
    opacity:1 !important;
    transform:none !important;
  }
}
