@import url('https://fonts.googleapis.com/css2?family=Chakra Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

:root{
  --ink:#1f1f1f;
  --ink-soft:#4d4d52;
  --paper:#ffffff;
  --wash:#f5f5f7;
  --line:#e6e6ea;
  --edge:#1f1f1f;
  --r:18px;
  --shadow:0 3px 6px rgba(20,20,25,.05),0 14px 30px rgba(20,20,25,.07);
  --shadow-lift:0 8px 16px rgba(20,20,25,.09),0 26px 50px rgba(20,20,25,.12);
  --font:"Chakra Petch","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --display:"Russo One","Chakra Petch","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--wash);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
p{margin:0 0 1em}
h1,h2,h3{
  font-family:var(--display);
  font-weight:700;
  line-height:1.25;
  margin:0;
  letter-spacing:.01em;
}
small{
  display:block;
  font-size:13px;
  line-height:1.5;
  letter-spacing:.16em;
  color:#8e8e94;
  margin-bottom:6px;
}
:focus-visible{outline:2.5px solid var(--edge);outline-offset:2px;border-radius:6px}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
}
.top-bar{
  max-width:1320px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.brand{
  order:1;
  flex:1 1 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:6px 4px;
  font-family:var(--display);
  font-size:20px;
  letter-spacing:.05em;
  white-space:nowrap;
}
.brand .logo{height:30px;width:auto}
.brand .mark{height:26px;width:26px;border-radius:8px}

.seek{
  order:3;
  flex:1 0 100%;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:48px;
  padding:4px 5px 4px 16px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--shadow);
}
.seek input{
  flex:1 1 auto;
  min-width:0;
  min-height:40px;
  border:0;
  background:transparent;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  outline:none;
}
.seek input::-webkit-search-cancel-button{-webkit-appearance:none}
.seek button{
  flex:0 0 auto;
  min-height:40px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font:inherit;
  font-size:16px;
  cursor:pointer;
  transition:background .2s ease;
}
.seek button:hover{background:#3a3a3f}

.fold{order:2;position:relative}
.fold > summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border:1.5px solid var(--edge);
  border-radius:999px;
  background:var(--paper);
  font-size:16px;
  cursor:pointer;
  user-select:none;
}
.fold > summary::-webkit-details-marker{display:none}
.fold > summary::before{
  content:"";
  width:16px;
  height:12px;
  background:
    linear-gradient(var(--ink),var(--ink)) 0 0/16px 2px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 5px/16px 2px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 10px/16px 2px no-repeat;
}
.fold[open] > summary{background:var(--ink);color:#fff}
.fold[open] > summary::before{
  background:
    linear-gradient(#fff,#fff) 0 0/16px 2px no-repeat,
    linear-gradient(#fff,#fff) 0 5px/16px 2px no-repeat,
    linear-gradient(#fff,#fff) 0 10px/16px 2px no-repeat;
}

.fold > menu{
  display:none;
  list-style:none;
  margin:0;
  padding:0;
}
.fold[open] > menu{
  display:flex;
  flex-direction:column;
  gap:2px;
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:min(288px,76vw);
  padding:8px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow-lift);
}
.fold > menu li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 12px;
  border-radius:12px;
  font-size:16px;
}
.fold > menu li a:hover,
.fold > menu li a:focus-visible{background:var(--wash)}

/* ---------- 主区 ---------- */
.sheet{
  max-width:1180px;
  margin:0 auto;
  padding:18px 16px 56px;
}
.sheet > .hero,
.grid-body{max-width:100%}

.hero{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  align-content:center;
  min-height:44vh;
  padding:8px 0 4px;
}
.hero-art{
  position:relative;
  overflow:hidden;
  min-height:170px;
  border:1.5px solid var(--edge);
  border-radius:var(--r);
  background-color:#fff;
  background-image:radial-gradient(rgba(31,31,31,.17) 1.2px,transparent 1.3px);
  background-size:14px 14px;
  box-shadow:var(--shadow);
}
.hero-art img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.06);
  will-change:transform;
}
.hero-art.is-empty{
  background-image:
    radial-gradient(rgba(31,31,31,.17) 1.2px,transparent 1.3px),
    linear-gradient(135deg,#fdfdfd,#f2f2f4);
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  padding:24px 20px;
  text-align:center;
  background:var(--paper);
  border:1.5px solid var(--edge);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}
.hero-copy h1{
  font-size:clamp(26px,6.4vw,40px);
  letter-spacing:.01em;
}
.hero-copy .lede{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
}

.grid-body{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:22px;
}
.stream{
  display:grid;
  gap:16px;
  min-width:0;
}
.stream > section{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:24px 20px;
  box-shadow:var(--shadow);
  scroll-margin-top:92px;
  transition:box-shadow .3s ease,transform .3s ease;
}
.stream > section:hover{box-shadow:var(--shadow-lift)}
.stream > section h2{
  position:relative;
  margin:0 0 12px;
  padding-left:15px;
  font-size:22px;
}
.stream > section h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.24em;
  bottom:.24em;
  width:4px;
  border-radius:2px;
  background:var(--ink);
}
.stream > section h3{
  margin:20px 0 8px;
  font-size:19px;
}
.stream > section p:last-child,
.stream > section ul:last-child,
.stream > section ol:last-child{margin-bottom:0}
.stream > section ul,
.stream > section ol{padding-left:1.35em;margin:0 0 1em}
.stream > section li{margin:.3em 0}
.stream > section blockquote{
  margin:0 0 1em;
  padding:12px 16px;
  border-left:4px solid var(--edge);
  border-radius:0 12px 12px 0;
  background:var(--wash);
}
.stream > section blockquote p:last-child{margin-bottom:0}
.stream > section img{border-radius:12px;margin:0 0 1em}
.stream > section table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1em;
  font-size:16px;
}
.stream > section th,
.stream > section td{
  border:1px solid var(--line);
  padding:8px 10px;
  text-align:left;
}

/* ---------- 侧栏 ---------- */
.side{
  background:var(--paper);
  border:1.5px solid var(--edge);
  border-radius:var(--r);
  padding:20px 16px;
  box-shadow:var(--shadow);
}
.side small{margin-bottom:2px}
.side h2{margin:0 0 12px;font-size:19px}
.side ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.side li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 10px;
  border-radius:12px;
  font-size:16px;
  color:var(--ink-soft);
  transition:background .2s ease,color .2s ease;
}
.side li a:hover{background:var(--wash);color:var(--ink)}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:14px;
  background:var(--paper);
  border-top:1px solid var(--line);
}
.foot-in{
  max-width:1180px;
  margin:0 auto;
  padding:32px 16px 14px;
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}
.foot dl{margin:0}
.foot dt{
  font-family:var(--display);
  font-size:13px;
  letter-spacing:.18em;
  color:#8e8e94;
  margin-bottom:6px;
}
.foot dd{margin:0}
.foot dd a{
  display:flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--ink-soft);
}
.foot dd a:hover{color:var(--ink);text-decoration:underline}
.copy{
  max-width:1180px;
  margin:0 auto;
  padding:6px 16px 28px;
  font-size:16px;
  color:#8e8e94;
}

/* ---------- 回到顶部 ---------- */
.to-top{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:70;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1.5px solid var(--edge);
  border-radius:50%;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--display);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--shadow-lift);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
}
.to-top.on{opacity:1;pointer-events:auto}
.to-top:hover{transform:translateY(-2px)}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion:no-preference){
  .js .stream > section{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .55s ease,transform .55s ease,box-shadow .3s ease;
  }
  .js .stream > section.is-in{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art img{transform:none}
}

/* ---------- 宽度断点 ---------- */
@media (min-width:900px){
  .top-bar{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:16px;
    padding:12px 24px;
  }
  .seek{
    order:0;
    grid-column:1;
    justify-self:start;
    flex:0 1 260px;
    width:260px;
    min-height:44px;
  }
  .seek input{min-height:36px}
  .seek button{min-height:36px}
  .brand{order:0;grid-column:2;flex:0 0 auto;justify-content:center}
  .fold{order:0;grid-column:3;justify-self:end}
  .fold > summary{display:none}
  .fold[open] > menu{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:2px;
    min-width:0;
    padding:0;
    background:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .fold > menu li a{
    min-height:40px;
    padding:6px 8px;
    border-radius:999px;
    font-size:16px;
    white-space:nowrap;
  }
}

@media (min-width:860px){
  .hero{
    grid-template-columns:1.05fr .95fr;
    align-items:stretch;
    gap:18px;
    min-height:45vh;
    padding:12px 0 6px;
  }
  .hero-art{min-height:240px}
  .hero-copy{padding:32px 26px}
}

@media (min-width:980px){
  .grid-body{
    grid-template-columns:minmax(0,1fr) 288px;
    align-items:start;
    gap:18px;
  }
  .side{position:sticky;top:96px}
  .stream > section{padding:28px 26px}
}

@media (min-width:720px){
  .foot-in{grid-template-columns:repeat(3,1fr);gap:26px}
  .sheet{padding:22px 24px 64px}
  .foot-in{padding-left:24px;padding-right:24px}
  .copy{padding-left:24px;padding-right:24px}
}

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