:root{
  --red:#FF4D3D;
  --red-deep:#E23A28;
  --ink:#0F172A;
  --paper:#F5F2EB;
  --white:#FFFFFF;
  --line:rgba(15,23,42,.14);
  --rail:272px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.68;
  font-weight:400;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.2em}
li{margin:0 0 .45em}
h1,h2,h3,h4{font-weight:800;line-height:1.14;letter-spacing:-.02em;margin:0 0 .45em}
strong{font-weight:700}

.skip{
  position:fixed;top:0;left:0;z-index:70;
  transform:translateY(-130%);
  background:var(--red);color:#fff;
  padding:12px 20px;text-decoration:none;font-weight:700;
  transition:transform .16s ease;
}
.skip:focus{transform:none}

/* 左侧固定竖排导航 */
.masthead{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:26px 20px 20px;
  background:var(--ink);
  color:var(--paper);
  overflow-y:auto;
}
.brand{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:0 0 14px;
  text-decoration:none;
  border-bottom:2px solid rgba(245,242,235,.18);
}
.brand-mark{
  flex:none;
  display:grid;place-items:center;
  width:40px;height:40px;
  background:var(--red);color:#fff;
  border-radius:4px;
  font-weight:800;font-size:18px;letter-spacing:-.03em;
}
.brand-name{font-weight:800;font-size:22px;letter-spacing:-.03em;color:#fff}

.nav{min-width:0}
.nav p{display:flex;flex-direction:column;gap:2px;margin:0}
.nav-link{
  display:flex;align-items:center;gap:10px;
  min-height:44px;
  padding:8px 10px;
  font-size:16px;font-weight:600;
  text-decoration:none;
  color:rgba(245,242,235,.86);
  border-left:3px solid transparent;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.nav-mark{flex:none;width:8px;height:8px;background:rgba(245,242,235,.38);transition:background .16s ease}
.nav-link:hover,.nav-link:focus-visible{background:rgba(245,242,235,.09);color:#fff;border-left-color:var(--red)}
.nav-link:hover .nav-mark,.nav-link:focus-visible .nav-mark,.nav-link.is-on .nav-mark{background:var(--red)}
.nav-link.is-on{color:#fff;border-left-color:var(--red)}

.contact{
  margin-top:auto;
  display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:50px;padding:12px 16px;
  background:var(--red);color:#fff;
  font-size:16px;font-weight:800;text-decoration:none;
  border-radius:4px;
  transition:opacity .16s ease;
}
.contact:hover{opacity:.86}
.contact-dot{width:9px;height:9px;border-radius:50%;background:#fff}

main{margin-left:var(--rail)}
.wrap{padding:0}

/* Hero：纯文字超大标题 + 点阵底纹 */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;align-items:flex-end;
  background:var(--ink);
  color:var(--paper);
  padding:110px 6vw 60px;
}
.hero::before{
  content:"";
  position:absolute;z-index:0;
  top:0;right:0;bottom:0;
  width:min(58%,560px);
  background-image:radial-gradient(var(--red) 1.7px,transparent 1.8px);
  background-size:20px 20px;
  opacity:.8;
}
.hero::after{
  content:"";
  position:absolute;z-index:0;
  left:0;bottom:0;
  width:100%;height:6px;
  background:var(--red);
}
.hero-in{position:relative;z-index:1;max-width:980px}
.hero-h1{
  margin:0;
  font-size:clamp(42px,7.2vw,102px);
  line-height:.96;
  letter-spacing:-.045em;
  font-weight:800;
  color:var(--paper);
  text-wrap:balance;
}
.hero-lede{
  margin:22px 0 0;
  max-width:46ch;
  font-size:18px;
  line-height:1.6;
  color:rgba(245,242,235,.82);
}
.ticker{
  display:flex;flex-wrap:wrap;gap:6px 18px;
  margin:30px 0 0;
  padding-top:16px;
  border-top:1px solid rgba(245,242,235,.24);
  font-size:16px;font-weight:700;
  color:var(--red);
}
.ticker span{opacity:.34;animation:tick 7s linear infinite;animation-delay:calc(var(--i) * 1s)}
@keyframes tick{
  0%,11%{opacity:1}
  18%,100%{opacity:.34}
}

/* 主栅格：aside 在内容左侧 */
.cols{
  display:grid;
  grid-template-columns:252px minmax(0,1fr);
  gap:32px;
  align-items:start;
  padding:44px 6vw 80px;
}
.rail{
  position:sticky;top:32px;
  background:var(--white);
  border-radius:28px;
  padding:26px 22px;
}
.rail-h2{margin:0 0 .18em;font-size:20px;letter-spacing:-.03em}
.rail .subtitle{
  margin:0 0 14px;
  font-size:16px;
  color:rgba(15,23,42,.58);
  font-weight:600;
}
.rail-nav p{display:flex;flex-direction:column;margin:0}
.rail-nav a{
  display:flex;align-items:center;
  min-height:40px;
  padding:6px 0 6px 12px;
  font-size:16px;font-weight:600;
  text-decoration:none;
  color:rgba(15,23,42,.82);
  border-left:2px solid rgba(15,23,42,.12);
  transition:color .16s ease,border-color .16s ease;
}
.rail-nav a:hover{color:var(--red-deep);border-left-color:var(--red)}
.rail-top{
  margin:16px 0 0;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:16px;font-weight:700;
}
.rail-top a{text-decoration:none;color:var(--red-deep)}
.rail-top a:hover{text-decoration:underline}

/* 正文卡片 */
.prose > section{
  background:var(--white);
  border-radius:28px;
  padding:clamp(24px,3.2vw,46px);
  margin:0 0 24px;
  scroll-margin-top:28px;
}
.prose > section:nth-child(even){background:var(--ink);color:var(--paper)}
.prose > section > :last-child{margin-bottom:0}
.prose h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.03em}
.prose h3{font-size:20px;margin-top:1.4em}
.prose p,.prose li{font-size:17px;line-height:1.78}
.prose a{color:var(--red-deep);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{opacity:.78}
.prose > section:nth-child(even) a{color:var(--red)}
.prose blockquote{
  margin:0 0 1em;
  padding:4px 0 4px 18px;
  border-left:4px solid var(--red);
  font-weight:600;
}
.prose img{border-radius:12px;margin:0 0 1em}
.prose hr{border:0;height:2px;background:var(--line);margin:2em 0}

/* 单行极简页脚 */
.foot{
  display:flex;flex-wrap:wrap;
  align-items:center;justify-content:center;
  gap:6px 26px;
  padding:20px 6vw;
  background:var(--ink);
  color:var(--paper);
  margin-left:var(--rail);
}
.foot section{margin:0;min-width:0}
.foot a{
  display:inline-flex;align-items:center;
  min-height:40px;
  padding:6px 2px;
  font-size:16px;
  text-decoration:none;
  color:rgba(245,242,235,.84);
  transition:color .16s ease;
}
.foot a:hover{color:var(--red)}
.foot-brand a{font-weight:800;color:#fff}
.foot-nav p{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0;justify-content:center}
.foot-base p{
  margin:0;
  font-size:16px;
  color:rgba(245,242,235,.56);
}

@media (max-width:900px){
  .masthead{
    position:sticky;
    inset:0 0 auto 0;
    width:auto;
    flex-direction:row;flex-wrap:wrap;align-items:center;
    gap:8px 12px;
    padding:10px 16px;
    overflow:visible;
  }
  .brand{border-bottom:0;padding:0;flex:none}
  .brand-mark{width:34px;height:34px;font-size:16px}
  .brand-name{font-size:19px}
  .nav{order:3;width:100%;min-width:0}
  .nav p{
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .nav p::-webkit-scrollbar{display:none}
  .nav-link{
    white-space:nowrap;
    border-left:0;
    border-bottom:3px solid transparent;
    padding:8px 10px;
  }
  .nav-link:hover,.nav-link:focus-visible,.nav-link.is-on{border-left-color:transparent;border-bottom-color:var(--red)}
  .contact{margin-left:auto;margin-top:0;min-height:44px;padding:8px 16px}
  main{margin-left:0}
  .foot{margin-left:0;gap:4px 18px;padding:18px 16px}
  .hero{min-height:0;align-items:flex-start;padding:58px 20px 36px}
  .hero::before{width:64%;opacity:.6}
  .hero-lede{font-size:17px;margin-top:18px}
  .ticker{margin-top:22px;padding-top:14px}
  .cols{grid-template-columns:1fr;gap:22px;padding:24px 16px 56px}
  .rail{position:static;border-radius:20px;padding:20px 18px}
  .prose > section{border-radius:20px;padding:24px 18px;scroll-margin-top:132px}
  .prose p,.prose li{font-size:17px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ticker span{animation:none;opacity:1}
  .rv{transition:none}
  .skip{transition:none}
}

/* 滚动显现（由 app.js 加类，无脚本时默认可见） */
.rv{will-change:opacity,transform}
.rv:not(.in){opacity:0;transform:translateY(18px)}
.rv{transition:opacity .5s ease,transform .5s ease}

button[aria-expanded]{min-width:44px;min-height:44px}
