/* ==========================================================
   亚虎品牌站 · 共享样式 /assets/site.css
   沙色底 / 冷青分区 / 琥珀行动色 · 轨道—卡片—档案夹三级构件
   ========================================================== */

/* ---------- 1. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0}
img,picture,video,canvas,svg{display:block;max-width:100%}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}

/* ---------- 2. Tokens ---------- */
:root{
  --sand-050:#F7F0E4;
  --sand-100:#EFE3D0;
  --sand-300:#D9C1A0;
  --sand-600:#8A6B47;
  --ink-900:#1B1A17;
  --teal-700:#14524F;
  --teal-500:#1F7A73;
  --teal-050:#E3EDEA;
  --amber-500:#C9862B;
  --amber-300:#E7B25F;
  --gray-500:#6E6A60;
  --glass:rgba(255,255,255,.55);

  --font-display:"Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body:var(--font-display);
  --font-mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;

  --w-wide:1320px;
  --w-page:1120px;
  --w-read:68ch;
  --line:1px solid var(--sand-300);
  --radius:6px;
  --shadow-soft:0 10px 30px rgba(27,26,23,.08);
  --ease:cubic-bezier(.4,0,.2,1);
}

/* ---------- 3. 中文排版 ---------- */
body{
  background:var(--sand-050);
  color:var(--ink-900);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.012em;
  color:var(--ink-900);
  text-wrap:balance;
}
h1{font-size:clamp(2rem,5vw,3.6rem)}
h2{font-size:clamp(1.375rem,2.4vw,1.75rem);line-height:1.32}
h3{font-size:1.125rem;line-height:1.42}
h4{font-size:1rem;line-height:1.45;font-weight:700}
p{line-height:1.75}
small{font-size:.8125rem;line-height:1.6}
strong{font-weight:700}
::selection{background:var(--amber-300);color:var(--ink-900)}
a{text-decoration-thickness:1px;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--teal-500);outline-offset:2px;border-radius:3px}

/* ---------- 4. 布局工具 ---------- */
.wrap{width:min(100% - 2.5rem,var(--w-page));margin-inline:auto}
.wrap--wide{width:min(100% - 2rem,var(--w-wide));margin-inline:auto}
.main{padding-top:clamp(1.5rem,4vw,3rem)}
#main-content{scroll-margin-top:5.5rem}
.section{padding-block:clamp(2rem,5vw,3.5rem)}
.section--tight{padding-block:clamp(1.25rem,3vw,2rem)}
.stack{display:flex;flex-direction:column;gap:1rem}
.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.u-mono{
  font-family:var(--font-mono);
  font-size:.8125rem;
  letter-spacing:.08em;
  color:var(--sand-600);
}
.u-read{max-width:var(--w-read)}

/* ---------- 5. 索引标签 ---------- */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family:var(--font-mono);
  font-size:.8125rem;
  letter-spacing:.08em;
  color:var(--sand-600);
}
.kicker::before{
  content:"";
  width:1.5rem;
  height:1px;
  background:var(--sand-300);
  flex:none;
}

/* ---------- 6. 标签 ---------- */
.tag{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.15rem .5rem;
  border:1px solid var(--sand-300);
  border-radius:3px;
  background:var(--sand-050);
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.08em;
  line-height:1.6;
  color:var(--sand-600);
  text-decoration:none;
  transition:background .2s,color .2s,border-color .2s;
}
.tag--amber{background:var(--amber-500);border-color:var(--amber-500);color:var(--ink-900)}
.tag--amber:hover{background:var(--amber-300);border-color:var(--amber-300)}
.tag--teal{background:var(--teal-050);border-color:var(--teal-050);color:var(--teal-700)}

/* ---------- 7. 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.7rem 1.15rem;
  border:1px solid transparent;
  border-radius:4px;
  font-family:var(--font-display);
  font-size:.9375rem;
  font-weight:700;
  line-height:1.3;
  text-decoration:none;
  color:var(--ink-900);
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease),transform .2s var(--ease);
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:var(--amber-500);color:var(--ink-900)}
.btn--primary:hover{background:var(--amber-300)}
.btn--ghost{background:transparent;border-color:var(--sand-300);color:var(--ink-900)}
.btn--ghost:hover{border-color:var(--teal-500);color:var(--teal-700)}
.btn--teal{background:var(--teal-700);color:var(--teal-050)}
.btn--teal:hover{background:var(--teal-500)}

/* ---------- 8. 面包屑 ---------- */
.crumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
  padding-block:.25rem;
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.06em;
  color:var(--sand-600);
}
.crumbs li{display:inline-flex;align-items:center;gap:.45rem}
.crumbs li+li::before{content:"/";color:var(--sand-300)}
.crumbs a{text-decoration:none;color:var(--sand-600)}
.crumbs a:hover{color:var(--teal-700)}
.crumbs [aria-current]{color:var(--ink-900)}

/* ---------- 9. 章节头 ---------- */
.section-head{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.4rem 1rem;
  padding-bottom:.7rem;
  margin-bottom:1.5rem;
  border-bottom:var(--line);
}
.section-head::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:64px;
  height:3px;
  background:var(--teal-700);
}
.section-head__title{
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(1.25rem,2.2vw,1.5rem);
  line-height:1.3;
  letter-spacing:-.01em;
}
.section-head__meta{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:var(--sand-600);
}

/* ---------- 10. 网格与卡片 ---------- */
.grid{display:grid;gap:1.25rem}
.grid--split{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);align-items:start}
.grid--auto{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

.card{
  position:relative;
  display:block;
  padding:1.15rem 1.25rem;
  border:var(--line);
  border-radius:var(--radius);
  background:var(--sand-100);
  color:var(--ink-900);
  text-decoration:none;
  transition:transform .2s var(--ease),border-color .2s var(--ease),background .2s var(--ease);
}
.card:hover{transform:translateY(-2px);border-color:var(--sand-600)}
.card--offset{margin-top:1.5rem}
.card__meta{
  display:block;
  margin-bottom:.4rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:var(--sand-600);
}
.card__title{
  margin-bottom:.4rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.42;
}
.card__text{font-size:.9375rem;line-height:1.7;color:var(--gray-500)}

/* ---------- 11. 视觉容器（页面阶段放图） ---------- */
.media{
  position:relative;
  overflow:hidden;
  border:var(--line);
  border-radius:var(--radius);
  background:var(--sand-100);
  aspect-ratio:16/10;
}
.media > img,.media > picture > img{width:100%;height:100%;object-fit:cover;display:block}
.media--slant{clip-path:polygon(0 0,100% 0,100% 94%,0 100%)}
.media--wide{aspect-ratio:21/9}
.media__label{
  position:absolute;
  left:0;
  bottom:0;
  padding:.28rem .6rem;
  background:var(--teal-700);
  color:var(--teal-050);
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  line-height:1.6;
}
.media__caption{
  margin-top:.5rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.08em;
  line-height:1.6;
  color:var(--sand-600);
}

/* ---------- 12. 左侧索引轨（玻璃层） ---------- */
.rail{
  position:sticky;
  top:6rem;
  display:flex;
  flex-direction:column;
  gap:.15rem;
  padding:.9rem;
  border:var(--line);
  border-radius:8px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.rail__label{
  margin-bottom:.45rem;
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.14em;
  color:var(--sand-600);
}
.rail__link{
  display:block;
  padding:.4rem .55rem;
  border-left:3px solid var(--sand-300);
  font-size:.875rem;
  line-height:1.5;
  color:var(--ink-900);
  text-decoration:none;
  transition:border-color .2s var(--ease),color .2s var(--ease),background .2s var(--ease);
}
.rail__link:hover{border-left-color:var(--teal-500);color:var(--teal-700)}
.rail__link[aria-current]{border-left-color:var(--teal-500);color:var(--teal-700);background:var(--teal-050)}

/* ---------- 13. 色块分区 ---------- */
.surface{
  padding:clamp(1.25rem,3vw,2rem);
  border-radius:8px;
  background:var(--teal-700);
  color:var(--teal-050);
}
.surface h2,.surface h3,.surface h4{color:var(--teal-050)}
.surface a{color:var(--amber-300)}
.surface .kicker{color:var(--teal-050)}
.surface .kicker::before{background:var(--amber-300)}
.surface--sand{background:var(--sand-100);color:var(--ink-900)}
.surface--sand h2,.surface--sand h3,.surface--sand h4{color:var(--ink-900)}
.surface--sand a{color:var(--teal-700)}
.surface--sand .kicker{color:var(--sand-600)}
.surface--sand .kicker::before{background:var(--sand-300)}

/* ---------- 14. 页头 ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(247,240,228,.86);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
  border-bottom:var(--line);
  transition:box-shadow .22s var(--ease),background .22s var(--ease);
}
.site-header[data-scrolled="true"]{
  background:rgba(247,240,228,.95);
  box-shadow:0 8px 24px rgba(27,26,23,.08);
}
.header-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  transform:scaleX(0);
  transform-origin:0 50%;
  background:linear-gradient(90deg,var(--teal-500),var(--amber-500));
  pointer-events:none;
  transition:transform .12s linear;
}
.header-inner{
  width:min(100% - 2rem,var(--w-wide));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding-block:.7rem;
  transition:padding-block .22s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner{padding-block:.42rem}

.skip-link{
  position:absolute;
  left:.75rem;
  top:-4rem;
  z-index:120;
  padding:.6rem 1rem;
  border-radius:4px;
  background:var(--ink-900);
  color:var(--sand-050);
  font-size:.875rem;
  text-decoration:none;
  transition:top .18s var(--ease);
}
.skip-link:focus{top:.75rem}

.brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.32rem .75rem .32rem .34rem;
  border:var(--line);
  border-radius:6px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  text-decoration:none;
  min-width:0;
  transition:border-color .22s var(--ease),background .22s var(--ease);
}
.brand:hover{border-color:var(--teal-500);background:rgba(255,255,255,.75)}
.brand__mark{
  position:relative;
  width:38px;
  height:38px;
  flex:none;
  overflow:hidden;
  border:1px solid var(--sand-300);
  border-radius:6px 6px 6px 14px;
  background:var(--sand-050);
}
.brand__mark::before{
  content:"";
  position:absolute;
  left:-8%;
  right:-8%;
  bottom:-10%;
  height:72%;
  background:var(--teal-700);
  clip-path:polygon(0 100%,26% 30%,43% 62%,66% 6%,100% 100%);
}
.brand__mark::after{
  content:"";
  position:absolute;
  top:7px;
  right:8px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--amber-500);
}
.brand__text{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.brand__name{
  font-family:var(--font-display);
  font-weight:900;
  font-size:1.0625rem;
  letter-spacing:.02em;
  color:var(--ink-900);
  white-space:nowrap;
}
.brand__sub{
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:var(--sand-600);
  white-space:nowrap;
}
.brand__status{
  padding:.16rem .45rem;
  border:1px dashed var(--amber-500);
  border-radius:2px;
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.08em;
  line-height:1.6;
  color:var(--sand-600);
  white-space:nowrap;
}

.nav-rail{display:flex;align-items:center}
.nav-rail__list{display:flex;align-items:center;gap:.15rem}
.nav-rail__link{
  position:relative;
  display:inline-flex;
  align-items:baseline;
  gap:.4rem;
  padding:.45rem .6rem .7rem;
  border-radius:4px;
  font-size:.9375rem;
  font-weight:500;
  line-height:1.4;
  color:var(--ink-900);
  text-decoration:none;
  transition:color .22s var(--ease),background .22s var(--ease);
}
.nav-rail__num{
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.08em;
  color:var(--sand-600);
  transition:color .22s var(--ease);
}
.nav-rail__link::after{
  content:"";
  position:absolute;
  left:.6rem;
  right:.6rem;
  bottom:.34rem;
  height:2px;
  background:var(--amber-500);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .22s var(--ease),background .22s var(--ease);
}
.nav-rail__link:hover{color:var(--teal-700)}
.nav-rail__link:hover .nav-rail__num{color:var(--teal-500)}
.nav-rail__link:hover::after{transform:scaleX(1)}
.nav-rail__link[aria-current="page"]{color:var(--teal-700);background:var(--teal-050)}
.nav-rail__link[aria-current="page"] .nav-rail__num{color:var(--teal-500)}
.nav-rail__link[aria-current="page"]::after{transform:scaleX(1);background:var(--teal-500)}

.nav-toggle{
  display:none;
  align-items:center;
  gap:.5rem;
  padding:.5rem .7rem;
  border:1px solid var(--sand-300);
  border-radius:5px;
  background:var(--sand-100);
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  color:var(--ink-900);
  transition:border-color .2s var(--ease),background .2s var(--ease);
}
.nav-toggle:hover{border-color:var(--teal-500)}
.nav-toggle__bars{display:inline-flex;flex-direction:column;gap:3px;width:16px;flex:none}
.nav-toggle__bars i{display:block;height:2px;border-radius:2px;background:var(--ink-900);transition:transform .22s var(--ease),opacity .22s 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)}
.nav-toggle__text{line-height:1}

/* ---------- 15. 页脚 ---------- */
.site-footer{
  position:relative;
  margin-top:clamp(3rem,7vw,6rem);
  padding-bottom:1.5rem;
  background:var(--teal-700);
  color:var(--teal-050);
  overflow:hidden;
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:repeating-linear-gradient(90deg,var(--amber-300) 0 2px,transparent 2px 14px);
  opacity:.6;
}
.footer-inner{
  width:min(100% - 2.5rem,var(--w-wide));
  margin-inline:auto;
  padding-top:clamp(2rem,5vw,3.25rem);
}
.footer-entries{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:1rem;
  margin-bottom:clamp(2rem,4vw,3rem);
}
.footer-entries > :nth-child(2){margin-top:1.5rem}
.footer-entry{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  padding:1rem 1.15rem;
  border:1px solid rgba(227,237,234,.28);
  border-radius:6px;
  background:rgba(227,237,234,.06);
  color:var(--teal-050);
  text-decoration:none;
  transition:border-color .22s var(--ease),background .22s var(--ease),transform .22s var(--ease);
}
.footer-entry:hover{
  border-color:var(--amber-300);
  background:rgba(227,237,234,.12);
  transform:translateY(-2px);
}
.footer-entry__kicker{
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.12em;
  color:var(--amber-300);
}
.footer-entry__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1rem;
  line-height:1.45;
  color:#FFFFFF;
}
.footer-entry__cta{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.06em;
  color:var(--teal-050);
}
.footer-body{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(110px,.8fr));
  gap:2rem 1.5rem;
  padding-bottom:1.75rem;
  border-bottom:1px solid rgba(227,237,234,.18);
}
.footer-brand__name{
  font-family:var(--font-display);
  font-weight:900;
  font-size:1.25rem;
  line-height:1.3;
  letter-spacing:.02em;
  color:#FFFFFF;
}
.footer-brand__sub{
  margin-top:.3rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.1em;
  line-height:1.7;
  color:rgba(227,237,234,.72);
}
.footer-brand__note{
  margin-top:.9rem;
  max-width:26ch;
  font-size:.875rem;
  line-height:1.75;
  color:rgba(227,237,234,.76);
}
.footer-col__title{
  margin-bottom:.7rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.14em;
  color:var(--amber-300);
}
.footer-col__list{display:flex;flex-direction:column;gap:.1rem}
.footer-col__list a{
  display:inline-block;
  padding-block:.15rem;
  font-size:.9375rem;
  line-height:1.7;
  color:var(--teal-050);
  text-decoration:none;
  background-image:linear-gradient(var(--amber-300),var(--amber-300));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0 1px;
  transition:background-size .22s var(--ease),color .22s var(--ease);
}
.footer-col__list a:hover{color:#FFFFFF;background-size:100% 1px}
.footer-contact{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:.9rem 2rem;
  padding-block:1.5rem;
  border-bottom:1px solid rgba(227,237,234,.18);
}
.footer-contact__item{font-size:.875rem;line-height:1.7}
.footer-contact__label{
  display:block;
  margin-bottom:.15rem;
  font-family:var(--font-mono);
  font-size:.625rem;
  letter-spacing:.14em;
  color:var(--amber-300);
}
.footer-contact__value{color:rgba(227,237,234,.92);word-break:break-word}
.footer-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1.5rem;
  padding-top:1.25rem;
  font-family:var(--font-mono);
  font-size:.6875rem;
  letter-spacing:.06em;
  line-height:1.7;
  color:rgba(227,237,234,.62);
}
.footer-base__item{margin:0}
.footer-base__legal{color:rgba(227,237,234,.82)}

/* ---------- 16. 回到顶部 ---------- */
.to-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:75;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid rgba(227,237,234,.45);
  border-radius:50%;
  background:var(--teal-700);
  color:var(--teal-050);
  font-family:var(--font-mono);
  font-size:1rem;
  line-height:1;
  box-shadow:0 6px 18px rgba(27,26,23,.22);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .22s var(--ease),transform .22s var(--ease),background .22s var(--ease);
}
.to-top[data-visible="true"]{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:var(--teal-500)}

/* ---------- 17. 响应式 ---------- */
@media (max-width:1180px){
  .brand__status{display:none}
}
@media (max-width:1080px){
  .nav-rail__link{padding:.45rem .48rem .7rem;font-size:.875rem}
  .nav-rail__link::after{left:.48rem;right:.48rem}
  .nav-rail__num{font-size:.5625rem}
}
@media (max-width:900px){
  .nav-toggle{display:inline-flex}
  .nav-rail{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    z-index:100;
    display:block;
    max-height:78vh;
    overflow-y:auto;
    padding:1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom,0px));
    border-top:1px solid var(--sand-300);
    border-radius:14px 14px 0 0;
    background:var(--sand-100);
    box-shadow:0 -18px 40px rgba(27,26,23,.18);
    transform:translateY(110%);
    transition:transform .28s var(--ease);
  }
  .nav-rail[data-open="true"]{transform:translateY(0)}
  .nav-rail__list{flex-direction:column;align-items:stretch;gap:0}
  .nav-rail__link{
    display:flex;
    padding:.75rem .6rem;
    border-radius:0;
    border-bottom:1px solid var(--sand-300);
    font-size:1rem;
  }
  .nav-rail__link::after{display:none}
  .nav-rail__link[aria-current="page"]{background:transparent;box-shadow:inset 3px 0 0 var(--teal-500)}
  .nav-rail__num{font-size:.6875rem}
  body.is-nav-open{overflow:hidden}
  body.is-nav-open::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:80;
    background:rgba(27,26,23,.34);
  }
  .grid--split{grid-template-columns:minmax(0,1fr)}
  .rail{
    position:static;
    flex-direction:row;
    align-items:stretch;
    gap:.4rem;
    overflow-x:auto;
    padding:.55rem;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    background:var(--sand-100);
  }
  .rail__label{display:none}
  .rail__link{
    flex:none;
    border-left:0;
    border-bottom:3px solid var(--sand-300);
    padding:.35rem .5rem;
    white-space:nowrap;
    font-size:.8125rem;
  }
  .rail__link:hover{border-bottom-color:var(--teal-500)}
  .rail__link[aria-current]{border-bottom-color:var(--teal-500);background:transparent}
  .footer-body{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.75rem 1.25rem}
  .footer-brand{grid-column:1 / -1}
}
@media (max-width:720px){
  .header-inner{gap:.75rem}
  .brand{padding:.28rem .55rem .28rem .3rem;gap:.5rem}
  .brand__mark{width:32px;height:32px}
  .brand__name{font-size:.9375rem}
  .brand__sub{font-size:.5625rem;letter-spacing:.06em}
  .section-head__meta{margin-left:0;width:100%}
  .footer-entries{grid-template-columns:minmax(0,1fr)}
  .footer-entries > :nth-child(2){margin-top:0}
  .footer-base{flex-direction:column;align-items:flex-start}
}
@media (max-width:560px){
  .wrap{width:min(100% - 1.75rem,var(--w-page))}
  .wrap--wide{width:min(100% - 1.25rem,var(--w-wide))}
  .footer-inner{width:min(100% - 1.75rem,var(--w-wide))}
  .card{padding:1rem}
  .card--offset{margin-top:0}
  .btn{width:100%}
  .footer-body{grid-template-columns:minmax(0,1fr)}
  .media--wide{aspect-ratio:16/9}
}

/* ---------- 18. 减弱动效 ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .card:hover,.btn:hover,.footer-entry:hover{transform:none}
  .to-top{transform:none}
  .header-progress{transition:none}
}
