@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root{
  --paper:#ffffff;
  --gray:#f5f5f5;
  --ink:#1f1f1f;
  --line:#e4e4e4;
  --mute:#6b6b6b;
  --tile-radius:10px;
  --box-radius:18px;
  --shadow:0 4px 6px rgba(0,0,0,.05);
  --lift:0 12px 24px rgba(0,0,0,.08);
  --dur:.28s;
}

*{box-sizing:border-box;}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--gray);
  color:var(--ink);
  font-family:Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:400;
}

img{display:block;max-width:100%;height:auto;}
a{color:inherit;}
h1,h2,h3,h4{margin:0;font-weight:700;line-height:1.25;letter-spacing:-.01em;}
p{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
button,input{font-family:inherit;font-size:16px;}

:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

/* ---------- 页头：品牌独占一行，菜单平铺在下一行 ---------- */
.site-head{
  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.head-row{
  max-width:1180px;
  margin:0 auto;
  padding:14px 16px 4px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
}

.brandmark{
  width:34px;height:34px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid var(--line);
}

.brand-name{
  font-size:20px;
  font-weight:700;
  letter-spacing:.02em;
}

.head-bar{
  max-width:1180px;
  margin:0 auto;
  padding:2px 12px 12px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
}

.menu{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  flex:1 1 auto;
  min-width:0;
}

.menu-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 11px;
  border-radius:10px;
  text-decoration:none;
  font-size:16px;
  color:var(--ink);
  transition:background var(--dur) ease,transform var(--dur) ease;
}

.menu-link:hover{background:var(--gray);transform:translateY(-1px);}

.menu-num{
  font-size:13px;
  color:var(--mute);
  font-variant-numeric:tabular-nums;
  letter-spacing:.04em;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  transition:opacity var(--dur) ease,transform var(--dur) ease;
}

.cta:hover{opacity:.86;transform:translateY(-1px);}

@media (min-width:900px){
  .site-head{position:sticky;top:0;z-index:30;}
  .head-row{padding-top:18px;}
  .head-bar{padding-bottom:14px;}
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:26px 16px 34px;
}

.hero-num{
  position:absolute;
  left:-8px;
  top:50%;
  transform:translateY(-50%);
  font-size:clamp(140px,27vw,300px);
  font-weight:700;
  line-height:.78;
  letter-spacing:-.06em;
  color:#ededed;
  pointer-events:none;
  user-select:none;
}

.hero-inner{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
}

.hero-copy{
  flex:1 1 auto;
  min-width:0;
  text-align:right;
}

.hero-title{
  font-size:clamp(28px,4.6vw,52px);
  letter-spacing:-.02em;
}

.hero-figure{
  flex:0 0 auto;
  width:84px;
}

.hero-figure img{
  border-radius:14px;
  box-shadow:var(--shadow);
}

@media (min-width:900px){
  .hero{
    min-height:70vh;
    display:flex;
    align-items:center;
    padding:40px 24px 48px;
  }
  .hero-figure{width:150px;}
  .hero-inner{gap:32px;}
}

/* ---------- 主区域：内容左、侧栏右 ---------- */
.page{
  max-width:1180px;
  margin:0 auto;
  padding:20px 16px 44px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start;
}

@media (min-width:900px){
  .page{
    grid-template-columns:minmax(0,1fr) 288px;
    gap:24px;
    padding:30px 24px 56px;
  }
}

.sheet{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
  align-content:start;
  min-width:0;
}

.sheet > section{
  grid-column:1 / -1;
  min-width:0;
  background:var(--paper);
  border-radius:var(--tile-radius);
  border-bottom:3px solid var(--ink);
  box-shadow:var(--shadow);
  padding:22px 18px;
  transition:transform var(--dur) ease,box-shadow var(--dur) ease;
}

.sheet > section:hover{
  transform:translateY(-3px) scale(1.008);
  box-shadow:var(--lift);
}

.sheet > section h2{
  font-size:clamp(20px,2.4vw,26px);
  margin-bottom:10px;
}

.sheet > section h3{
  font-size:18px;
  margin:18px 0 8px;
}

.sheet > section p{margin:0 0 14px;}
.sheet > section p:last-child{margin-bottom:0;}

.sheet > section ul,
.sheet > section ol{
  margin:0 0 14px;
  padding-left:1.15em;
  list-style:disc;
}

.sheet > section ol{list-style:decimal;}
.sheet > section li{margin:6px 0;}

.sheet > section a{
  text-decoration:underline;
  text-underline-offset:3px;
}

.sheet > section figure{margin:0 0 14px;}
.sheet > section figure img{border-radius:8px;}
.sheet > section blockquote{
  margin:0 0 14px;
  padding:10px 14px;
  background:var(--gray);
  border-left:3px solid var(--ink);
  border-radius:0 8px 8px 0;
}
.sheet > section blockquote p:last-child{margin-bottom:0;}

@media (min-width:900px){
  .sheet > section:nth-of-type(3n+2){grid-column:span 7;}
  .sheet > section:nth-of-type(3n+3){grid-column:span 5;}
  section[id]{scroll-margin-top:134px;}
}

.lead{
  padding:24px 18px 26px;
}

.lead h2{
  font-size:clamp(22px,3vw,32px);
  letter-spacing:-.02em;
}

.subtitle{
  margin-top:8px;
  max-width:56ch;
  color:var(--mute);
  font-size:16px;
  line-height:1.65;
}

@media (min-width:900px){
  .lead{padding:30px 26px 32px;}
  .subtitle{font-size:17px;}
}

/* ---------- 右侧栏 ---------- */
.rail{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--box-radius);
  box-shadow:var(--shadow);
  padding:16px 14px 18px;
  min-width:0;
}

.rail-title{
  font-size:16px;
  font-weight:500;
  letter-spacing:.16em;
  color:var(--mute);
}

.rail-list{
  margin-top:10px;
  display:grid;
  gap:2px;
}

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:3px 8px;
  border-radius:8px;
  border-left:2px solid transparent;
  text-decoration:none;
  font-size:16px;
  transition:background var(--dur) ease,border-color var(--dur) ease;
}

.rail-list a span{
  font-size:13px;
  color:var(--mute);
  font-variant-numeric:tabular-nums;
}

.rail-list a:hover{
  background:var(--gray);
  border-left-color:var(--ink);
}

@media (min-width:900px){
  .rail{position:sticky;top:132px;}
}

/* ---------- 页脚 ---------- */
.site-foot{
  background:var(--ink);
  color:#fff;
  margin-top:8px;
}

.foot-row{
  max-width:1180px;
  margin:0 auto;
  padding:26px 16px 30px;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px 26px;
}

.foot-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-weight:700;
  text-decoration:none;
}

.foot-brand img{
  width:28px;height:28px;
  border-radius:8px;
  object-fit:cover;
}

.foot-nav dl{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0 14px;
  margin:0;
}

.foot-nav dt{
  color:#a3a3a3;
  font-size:16px;
  margin-right:2px;
}

.foot-nav dd{
  margin:0;
  display:inline-flex;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  font-size:16px;
  transition:border-color var(--dur) ease;
}

.foot-nav a:hover{border-bottom-color:#fff;}

.foot-form{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.foot-form input{
  width:170px;
  min-height:44px;
  padding:0 13px;
  border-radius:10px;
  border:1px solid #3b3b3b;
  background:#2b2b2b;
  color:#fff;
}

.foot-form input::placeholder{color:#a3a3a3;}

.foot-form button{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font-weight:500;
  cursor:pointer;
  transition:opacity var(--dur) ease;
}

.foot-form button:hover{opacity:.85;}

.copy{
  flex:1 1 auto;
  text-align:center;
  color:#a3a3a3;
  font-size:16px;
  align-self:center;
}

@media (min-width:900px){
  .foot-row{padding:30px 24px 34px;align-items:center;}
  .copy{flex:0 0 auto;}
}

/* ---------- 入场 ---------- */
@media (prefers-reduced-motion:no-preference){
  .sheet > section{animation:rise .5s cubic-bezier(.22,.7,.3,1) both;}
  .sheet > section:nth-child(2){animation-delay:.05s;}
  .sheet > section:nth-child(3){animation-delay:.1s;}
  .sheet > section:nth-child(4){animation-delay:.15s;}
  .sheet > section:nth-child(5){animation-delay:.2s;}
  .sheet > section:nth-child(6){animation-delay:.25s;}
  .sheet > section:nth-child(7){animation-delay:.3s;}
  .sheet > section:nth-child(8){animation-delay:.35s;}
}

@keyframes rise{
  from{opacity:0;translate:0 14px;}
  to{opacity:1;translate:0 0;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .sheet > section:hover{transform:none;}
  .menu-link:hover,
  .cta:hover{transform:none;}
}

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