@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#1B2A41;
  --ink2:#23374F;
  --paper:#F4EDE4;
  --paper2:#E3D6C6;
  --brick:#B03A2E;
  --line:#C9B9A6;
  --serif:'EB Garamond','Crimson Text',Georgia,'Songti SC','Noto Serif SC',serif;
  --sans:system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --maxw:1180px;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
}

img{display:block;max-width:100%;height:auto}
p{margin:0 0 1em}
a{color:inherit}
:focus-visible{outline:3px solid var(--brick);outline-offset:3px}
.hat :focus-visible,.foot :focus-visible{outline-color:var(--paper)}

.skip{
  position:absolute;
  left:14px;
  top:-70px;
  z-index:80;
  display:inline-block;
  padding:12px 18px;
  background:var(--brick);
  color:#fff;
  text-decoration:none;
  border-radius:0 0 10px 10px;
  transition:top .18s ease;
}
.skip:focus{top:0}

/* 顶部 */
.hat{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--ink);
  color:var(--paper);
  border-bottom:4px solid var(--brick);
}

.tick{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0;
  padding:7px 16px;
  background:var(--brick);
  color:var(--paper);
  font-size:14px;
  line-height:1.5;
  letter-spacing:.18em;
}
.tickDot{width:8px;height:8px;background:var(--paper);border-radius:50%}

.dock{padding:10px 20px}

.nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  max-width:var(--maxw);
  margin:0 auto;
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.pills.left{justify-content:flex-end}
.pills.right{justify-content:flex-start}
.pills a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border:1px solid rgba(244,237,228,.45);
  border-radius:999px;
  color:var(--paper);
  text-decoration:none;
  font-size:14px;
  line-height:1.5;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.pills a:hover,.pills a:focus-visible,.pills a[aria-current]{
  background:var(--brick);
  border-color:var(--brick);
  color:#fff;
}

.mark{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:6px 12px;
  border-top:2px solid var(--brick);
  border-bottom:2px solid var(--brick);
  color:var(--paper);
  text-decoration:none;
  font-family:var(--serif);
  font-size:22px;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.3;
  white-space:nowrap;
}
.markImg{width:34px;height:34px;object-fit:contain}

.strip{
  background:var(--ink2);
  border-top:1px solid rgba(244,237,228,.15);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
.stripList{
  display:flex;
  width:max-content;
  min-width:100%;
  margin:0;
  padding:0 10px;
  list-style:none;
}
.stripList a{
  display:block;
  padding:12px 14px;
  min-height:44px;
  color:var(--paper2);
  font-size:14px;
  line-height:1.5;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:3px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}
.stripList a:hover,.stripList a:focus-visible,.stripList a[aria-current]{
  color:#fff;
  border-bottom-color:var(--brick);
}

/* 主体 */
.stage{display:block}
.paper{display:block}

.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:100vh;
  padding:72px 20px;
  background:var(--ink);
  color:var(--paper);
}

.heroNo{
  position:absolute;
  right:-1vw;
  bottom:-6vh;
  z-index:1;
  font-family:var(--serif);
  font-weight:800;
  font-size:clamp(120px,26vw,320px);
  line-height:.9;
  color:rgba(244,237,228,.08);
  pointer-events:none;
  user-select:none;
}

.heroGrid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  align-items:center;
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
}

.heroArt{
  margin:0;
  aspect-ratio:4/5;
  max-height:70vh;
  border:2px solid var(--brick);
  border-radius:10px;
  overflow:hidden;
  background:var(--brick);
}
.heroImg{width:100%;height:100%;object-fit:cover}
.heroFill{display:block;width:100%;height:100%;min-height:220px;background:var(--brick)}

.heroCopy{text-align:left}
.heroCopy::before{
  content:"";
  display:block;
  width:64px;
  height:6px;
  margin-bottom:22px;
  background:var(--brick);
}

.heroTitle{
  margin:0 0 18px;
  font-family:var(--serif);
  font-weight:800;
  font-size:clamp(32px,5.2vw,68px);
  line-height:1.14;
  letter-spacing:.01em;
}
.heroLead{
  max-width:34em;
  margin:0;
  color:var(--paper2);
  font-size:clamp(16px,1.5vw,19px);
  line-height:1.8;
}

.cols{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  align-items:start;
  max-width:var(--maxw);
  margin:0 auto;
  padding:56px 20px 80px;
}

.side{
  position:sticky;
  top:180px;
  padding-left:16px;
  border-left:4px solid var(--brick);
}
.sideTitle{
  margin:0 0 2px;
  font-family:var(--serif);
  font-size:21px;
  line-height:1.3;
  letter-spacing:.08em;
}
.subtitle{
  margin:0 0 14px;
  color:#6C6153;
  font-size:14px;
  line-height:1.5;
}
.toc{
  display:grid;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.toc a{
  display:block;
  min-height:40px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-size:15px;
  line-height:1.5;
  text-decoration:none;
  transition:color .15s ease,padding-left .15s ease;
}
.toc a:hover,.toc a:focus-visible,.toc a[aria-current]{
  color:var(--brick);
  padding-left:6px;
}

.body{min-width:0}
.body section{padding-bottom:10px}
.body > section + section{
  margin-top:36px;
  padding-top:36px;
  border-top:2px solid var(--line);
}
.body h2{
  margin:0 0 14px;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(26px,3.4vw,36px);
  line-height:1.24;
}
.body h3{
  margin:26px 0 10px;
  font-family:var(--serif);
  font-weight:700;
  font-size:21px;
  line-height:1.35;
}
.body h2 + p,.body h3 + p{margin-top:0}
.body ul,.body ol{margin:0 0 1.1em;padding-left:1.35em}
.body li{margin-bottom:.4em}
.body a{color:var(--brick);text-decoration:underline;text-underline-offset:3px}
.body a:hover{color:var(--ink)}
.body blockquote{
  margin:1.4em 0;
  padding:14px 18px;
  border-left:6px solid var(--brick);
  background:#EFE4D6;
}
.body blockquote p:last-child{margin-bottom:0}
.body strong{font-weight:700}
.body hr{border:0;border-top:2px solid var(--line);margin:28px 0}

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

/* 页脚 */
.foot{
  background:var(--ink);
  color:var(--paper);
  border-top:6px solid var(--brick);
  padding:48px 20px 24px;
}
.footWrap{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
  max-width:var(--maxw);
  margin:0 auto;
}
.fBrand{
  margin:0 0 6px;
  font-family:var(--serif);
  font-size:20px;
  font-weight:700;
  letter-spacing:.06em;
  color:#fff;
}
.fTag{margin:0;color:var(--paper2);font-size:14px;letter-spacing:.16em}
.fHead{
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(244,237,228,.25);
  font-family:var(--serif);
  font-size:16px;
  letter-spacing:.14em;
  color:#fff;
}
.fcol ul{margin:0;padding:0;list-style:none}
.fcol a{
  display:inline-block;
  min-height:40px;
  line-height:40px;
  color:var(--paper2);
  font-size:15px;
  text-decoration:none;
  transition:color .15s ease;
}
.fcol a:hover,.fcol a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:3px}
address{
  font-style:normal;
  color:var(--paper2);
  font-size:15px;
  line-height:1.9;
  overflow-wrap:anywhere;
}
.copyright{
  max-width:var(--maxw);
  margin:32px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(244,237,228,.25);
  font-size:14px;
  color:var(--paper2);
}

/* 回到顶部 */
.top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:var(--brick);
  color:#fff;
  font-family:var(--sans);
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease,visibility .18s ease,background .18s ease;
}
.top:hover{background:#933026}
.top.showing{opacity:1;visibility:visible}

/* 入场 */
@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:none}
  }
  .pills li,.stripList li{animation:rise .42s ease both}
  .pills li:nth-child(2),.stripList li:nth-child(2){animation-delay:.05s}
  .pills li:nth-child(3),.stripList li:nth-child(3){animation-delay:.1s}
  .pills li:nth-child(4),.stripList li:nth-child(4){animation-delay:.15s}
  .pills li:nth-child(5),.stripList li:nth-child(5){animation-delay:.2s}
  .stripList li:nth-child(6){animation-delay:.25s}
  .stripList li:nth-child(7){animation-delay:.3s}
  .toc li{animation:rise .4s ease both}
  .toc li:nth-child(2){animation-delay:.04s}
  .toc li:nth-child(3){animation-delay:.08s}
  .toc li:nth-child(4){animation-delay:.12s}
  .toc li:nth-child(5){animation-delay:.16s}
  .toc li:nth-child(6){animation-delay:.2s}
  .toc li:nth-child(7){animation-delay:.24s}
}

@media (max-width:980px){
  .nav{grid-template-columns:1fr;justify-items:center;gap:10px}
  .mark{order:1;font-size:20px}
  .pills.left{order:2;justify-content:center}
  .pills.right{order:3;justify-content:center}
  .pills a{font-size:14px;padding:0 12px}
}

@media (max-width:860px){
  .hero{min-height:auto;padding:36px 18px 48px}
  .heroGrid{grid-template-columns:1fr;gap:22px}
  .heroArt{aspect-ratio:16/9;max-height:none}
  .heroCopy::before{width:48px;height:5px;margin-bottom:16px}
  .cols{grid-template-columns:1fr;gap:30px;padding:34px 18px 56px}
  .side{position:static;padding:0;border-left:0;border-top:4px solid var(--brick);padding-top:14px}
  .toc{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .footWrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  section[id]{scroll-margin-top:150px}
}

@media (max-width:520px){
  body{font-size:16px}
  .tick{font-size:13px;letter-spacing:.12em;padding:6px 12px}
  .dock{padding:8px 12px}
  .pills{gap:5px}
  .pills a{min-height:40px;padding:0 10px;font-size:13.5px}
  .stripList a{min-height:40px;padding:10px 12px;font-size:13.5px}
  .footWrap{grid-template-columns:1fr}
  .toc{grid-template-columns:1fr}
  .top{right:12px;bottom:12px}
}

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