*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;overflow-x:clip;background:#fff;color:#000;font-family:"Lexend","Source Sans 3",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:1.0625rem;line-height:1.7;letter-spacing:-.01em}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
p{margin:0 0 1.1em}
h1,h2,h3,h4{margin:0;font-weight:800;line-height:1.04;letter-spacing:-.04em}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid #000;outline-offset:3px}

/* 顶部：品牌行在上，菜单行在下 */
.masthead{position:sticky;top:0;z-index:30;background:#fff;border-bottom:2px solid #000;padding:.7rem clamp(1rem,4vw,3.5rem) .4rem}
.brandrow{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.mark{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;font-size:clamp(1.3rem,2.6vw,1.9rem);font-weight:900;letter-spacing:-.06em}
.mark-img{width:38px;height:38px;border-radius:12px;background:#000;object-fit:contain}
.seek{display:flex;align-items:center;gap:.4rem;background:#f1f1f1;border-radius:28px;padding:.2rem .3rem .2rem .95rem;min-height:44px}
.seek input{width:clamp(5rem,16vw,11rem);min-width:0;min-height:40px;border:0;background:transparent;font-size:1rem}
.seek button{min-height:40px;border:0;border-radius:24px;background:#000;color:#fff;padding:.4rem 1rem;font-weight:600;cursor:pointer;transition:background .2s ease}
.seek button:hover{background:#333}
.menurow{display:flex;gap:.2rem;margin-top:.35rem;overflow-x:auto;scrollbar-width:none}
.menurow::-webkit-scrollbar{display:none}
.menu-link{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .8rem;border-radius:22px;font-size:.98rem;font-weight:500;white-space:nowrap;transition:background .2s ease,color .2s ease}
.menu-link:hover{background:#000;color:#fff}

/* 主体：左侧栏 + 内容 */
.stage{display:grid;grid-template-columns:210px minmax(0,1fr);gap:clamp(1rem,3vw,3rem);max-width:1500px;margin:0 auto;padding:clamp(1.2rem,3.5vw,3rem) clamp(1rem,4vw,3.5rem) 0}
.rail{position:sticky;top:9.5rem;align-self:start}
.rail-title{font-size:.78rem;font-weight:700;letter-spacing:.2em;margin-bottom:.7rem}
.rail-title span{display:inline-block;border-bottom:2px solid #000;padding-bottom:.15rem}
.rail-link{display:flex;align-items:center;min-height:44px;padding:.35rem .8rem;border-radius:22px;font-size:.95rem;font-weight:500;transition:background .2s ease,color .2s ease,transform .2s ease}
.rail-link:hover{background:#000;color:#fff;transform:translateX(2px)}
.rail-link.on{background:#000;color:#fff}
main{min-width:0}

/* 首屏 */
.hero{display:flex;min-height:100vh;padding:clamp(1rem,3vw,3rem) 0 clamp(2.5rem,7vw,6rem)}
.hero-card{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;gap:clamp(1.4rem,4vw,3rem)}
.badge{position:absolute;top:0;right:0;background:#000;color:#fff;border-radius:28px;padding:.55rem 1.1rem;font-size:.85rem;font-weight:600}
.hero-title{font-size:clamp(2.1rem,7.6vw,5.6rem);font-weight:900;letter-spacing:-.055em;line-height:.96;max-width:17ch;text-wrap:balance}
.hero-media{overflow:hidden;border-radius:28px;background:#f1f1f1}
.hero-img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.hero-media:hover .hero-img{transform:scale(1.04)}

/* 正文 */
.body-block{padding-bottom:clamp(3rem,8vw,8rem)}
.prose{max-width:70ch;font-size:1.06rem;line-height:1.8}
.prose section[id]{scroll-margin-top:9rem;padding-block:clamp(1.6rem,4vw,3rem)}
.prose section + section{border-top:2px solid #000}
.prose h2{font-size:clamp(1.7rem,4.6vw,3rem);font-weight:900;margin-bottom:.75rem}
.prose h3{font-size:clamp(1.2rem,2.4vw,1.6rem);font-weight:700;margin:1.6rem 0 .6rem}
.prose h2 > span,.prose h3 > span{display:inline}
.prose a{font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.prose ul{margin:0 0 1.2em;padding-left:1.2em;list-style:disc}
.prose ol{margin:0 0 1.2em;padding-left:1.4em}
.prose li{margin:.35em 0}
.prose img,.prose figure{margin:1.3rem 0;border-radius:28px;overflow:hidden}
.prose figcaption{font-size:.9rem;color:#5a5a5a;margin-top:.5rem}
.prose blockquote{margin:1.4rem 0;padding:1.2rem 1.4rem;background:#f2f2f2;border-radius:28px;font-weight:500}
.prose table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;font-size:.98rem}
.prose th,.prose td{border-bottom:1px solid #000;padding:.6rem;text-align:left}
.prose code{font-size:.95em}
.seek-hit{background:#000;color:#fff;border-radius:10px;padding:.1em .2em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.seek-empty{animation:shake .35s ease}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* 页脚：两栏 + 居中底栏 */
.foot{margin-top:1rem;background:#000;color:#fff;border-radius:28px 28px 0 0;padding:clamp(2rem,6vw,4.5rem) clamp(1rem,4vw,3.5rem) clamp(1.5rem,4vw,2.5rem)}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;max-width:1200px;margin:0 auto}
.foot-addr{font-style:normal}
.foot-name{display:block;margin-bottom:.6rem;font-size:clamp(1.6rem,4vw,2.4rem);font-weight:900;letter-spacing:-.05em}
.foot-desc{max-width:38ch;color:#cfcfcf}
.foot-title{font-size:.78rem;font-weight:700;letter-spacing:.2em;margin-bottom:.7rem}
.foot-title span{display:inline-block;border-bottom:2px solid #fff;padding-bottom:.15rem}
.foot-col ul{display:flex;flex-direction:column;gap:.2rem}
.foot-col a{display:inline-flex;align-items:center;min-height:44px;padding:.25rem 0;border-bottom:1px solid #333;transition:border-color .2s ease}
.foot-col a:hover{border-color:#fff}
.foot-base{display:flex;flex-direction:column;align-items:center;gap:.6rem;max-width:1200px;margin:2.5rem auto 0;padding-top:1.2rem;border-top:1px solid #333;font-size:.9rem;color:#bdbdbd;text-align:center}
.totop{display:inline-flex;align-items:center;min-height:44px;padding:0 .95rem;border-radius:22px;background:#1d1d1d;color:#fff;transition:background .2s ease}
.totop:hover{background:#333}

/* 滚动显现 */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.on{opacity:1;transform:none}

@media (max-width:880px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;top:auto;margin-bottom:.6rem}
  .rail ul{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;padding-bottom:.3rem}
  .rail ul::-webkit-scrollbar{display:none}
  .rail-link{white-space:nowrap;background:#f4f4f4}
  .hero{min-height:auto}
  .hero-card{justify-content:flex-start}
  .badge{position:static;align-self:flex-start}
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:1.6rem}
}
@media (max-width:520px){
  .brandrow{gap:.6rem}
  .seek{flex:1}
  .seek input{width:100%}
  .hero-title{font-size:clamp(1.95rem,9.5vw,2.6rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

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