@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box}

:root{
  --ink:#1f1f1f;
  --paper:#ffffff;
  --ash:#f5f5f5;
  --line:#e4e4e4;
  --mute:#6c6c6c;
  --shadow:0 4px 6px rgba(0,0,0,.06);
  --shadow-lg:0 12px 26px rgba(0,0,0,.09);
  --font:"Space Grotesk",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

body{
  margin:0;
  background:var(--ash);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}
img{max-width:100%}
p{margin:0 0 12px}
ul,ol{margin:0;padding:0;list-style:none}

main section[id]{scroll-margin-top:104px}

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

/* 顶部：品牌居中，菜单分列两侧 */
.masthead{padding:14px 16px 10px}

.rail{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  max-width:1120px;
  margin:0 auto;
}

.rail ol{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.rail-a{justify-content:flex-end}
.rail-b{justify-content:flex-start}

.rail ol a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.01em;
  transition:background .2s ease,box-shadow .2s ease;
}

.rail ol a:hover{background:var(--paper);box-shadow:var(--shadow)}

.brand{
  justify-self:center;
  padding:10px 16px;
  border-radius:999px;
  font-size:clamp(17px,2.3vw,22px);
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  white-space:nowrap;
  background:var(--ink);
  color:var(--paper);
}

/* 二级粘性锚点条 */
.bar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,.95);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.bar ol{
  display:flex;
  gap:6px;
  max-width:1120px;
  margin:0 auto;
  padding:8px 16px;
  overflow-x:auto;
}

.bar a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 15px;
  border-radius:999px;
  background:var(--ash);
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.bar a:hover{background:var(--ink);color:var(--paper);transform:scale(1.03)}

/* 主体网格：正文 + 右侧栏 */
.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:16px;
  max-width:1120px;
  margin:0 auto;
  padding:16px;
  align-items:start;
}

.stage{min-width:0}

.board{
  background:var(--paper);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:18px;
}

.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  min-height:45vh;
  padding:28px 18px;
  text-align:center;
  overflow:hidden;
  border-radius:18px;
  background-color:var(--ash);
  background-image:radial-gradient(rgba(31,31,31,.13) 1px,transparent 1px);
  background-size:18px 18px;
}

.hero-copy{max-width:34ch;margin:0 auto}

.hero h1{
  margin:0;
  font-size:clamp(28px,6.2vw,50px);
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.02em;
}

.hero-sub{margin:12px 0 0;color:var(--mute);font-size:16px}

.hero-media{
  width:100%;
  max-width:520px;
  height:clamp(120px,22vh,200px);
  margin:16px auto 0;
  border-radius:14px;
  overflow:hidden;
}

.hero-shot{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}

/* 正文分区卡片 */
.board > section{
  margin-top:16px;
  padding:20px 18px;
  border-radius:18px;
  background:var(--ash);
  transition:transform .25s ease,box-shadow .25s ease;
}

.board > section:hover{transform:scale(1.012);box-shadow:var(--shadow)}

.board h2,.board h3{
  margin:0 0 10px;
  font-size:clamp(20px,3.4vw,26px);
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.01em;
}

.board h2 > span,.board h3 > span{
  display:inline-block;
  padding-bottom:2px;
  border-bottom:3px solid var(--ink);
}

.board h3{font-size:clamp(18px,3vw,21px)}
.board p,.board li{font-size:16px}
.board ul,.board ol{padding-left:0;margin:0 0 12px}
.board li{margin:6px 0;padding-left:18px;position:relative}
.board ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ink);
}

.board ol{counter-reset:n}
.board ol li{counter-increment:n;padding-left:24px}
.board ol li::before{
  content:counter(n,decimal-leading-zero);
  position:absolute;
  left:0;
  top:0;
  font-weight:700;
  font-size:14px;
  color:var(--mute);
}

.board a:not([class]){
  border-bottom:1px solid var(--ink);
  font-weight:600;
}

.board a:not([class]):hover{background:var(--paper)}
.board strong{font-weight:700}

/* 右侧栏 */
.side{
  position:sticky;
  top:72px;
  display:grid;
  gap:16px;
  align-content:start;
}

.tile{
  background:var(--paper);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:16px;
  transition:transform .24s ease,box-shadow .24s ease;
}

.tile:hover{transform:scale(1.02);box-shadow:var(--shadow-lg)}

.tile-h{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.04em;
}

.tile-h span{
  display:inline-block;
  padding-bottom:2px;
  border-bottom:3px solid var(--ink);
}

.jump{display:grid;gap:2px}

.jump a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:12px;
  font-size:16px;
  font-weight:500;
  transition:background .2s ease,transform .2s ease;
}

.jump a:hover{background:var(--ash);transform:translateX(2px)}

.tile-top{padding:14px 16px}
.tile-top .tile-h{margin:0}
.tile-top .tile-h span{border-color:var(--mute)}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:32px;
  padding:26px max(16px,calc((100vw - 1120px)/2));
  background:var(--paper);
  border-top:1px solid var(--line);
}

.foot-top{
  grid-column:1/-1;
  padding:20px;
  border-radius:18px;
  background:var(--ash);
}

.foot-h{
  margin:0 0 12px;
  font-size:clamp(19px,3vw,24px);
  font-weight:700;
  letter-spacing:.02em;
}

.foot-h span{
  display:inline-block;
  padding-bottom:2px;
  border-bottom:3px solid var(--ink);
}

.sub{display:flex;flex-wrap:wrap;gap:10px}

.sub input{
  flex:1 1 200px;
  min-height:44px;
  padding:10px 16px;
  font-family:inherit;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
}

.sub input::placeholder{color:var(--mute)}

.sub button{
  min-height:44px;
  padding:10px 26px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--paper);
  background:var(--ink);
  border:0;
  border-radius:999px;
  cursor:pointer;
  transition:transform .2s ease,opacity .2s ease;
}

.sub button:hover{transform:scale(1.04);opacity:.9}

.foot-col ul{display:grid;gap:2px}

.foot-col a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:16px;
  font-weight:500;
  color:var(--mute);
}

.foot-col a:hover{color:var(--ink)}

.foot-bar{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.foot-bar p{margin:0;font-size:16px;color:var(--mute);letter-spacing:.04em}

.foot-bar a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 16px;
  border-radius:999px;
  background:var(--ash);
  font-size:16px;
  font-weight:600;
}

.foot-bar a:hover{background:var(--ink);color:var(--paper)}

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

@media (max-width:880px){
  .rail{grid-template-columns:1fr}
  .brand{order:-1;justify-self:center}
  .rail-a,.rail-b{justify-content:center}
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static;top:auto;grid-template-columns:1fr 1fr;order:2}
  .tile-top{display:flex;align-items:center}
  .board{padding:14px}
  .hero{min-height:42vh;padding:22px 14px}
  .bar ol{padding:8px 12px}
  .foot{grid-template-columns:1fr}
}

@media (max-width:520px){
  .side{grid-template-columns:1fr}
  .board > section{padding:16px 14px}
  .foot{padding:20px 14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .hero-shot{transform:none !important}
}

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