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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --wash:#f3f2ee;
  --line:rgba(0,0,0,.16);
  --line-soft:rgba(0,0,0,.08);
  --shadow:0 22px 44px -30px rgba(0,0,0,.6), 0 1px 0 rgba(0,0,0,.05);
  --hand:'Amatic SC','Cabin',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --body:'Cabin',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --shell:1160px;
}

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

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

body{
  margin:0;
  background:var(--wash);
  background-image:repeating-linear-gradient(0deg,var(--line-soft) 0 1px,transparent 1px 6px);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.72;
  letter-spacing:.008em;
}

img{max-width:100%;height:auto;display:block;}
h1,h2,h3,h4{font-weight:700;line-height:1.22;letter-spacing:-.015em;margin:0;}
p{margin:0 0 1.05em;}
a{color:var(--ink);}
ul,ol{margin:0 0 1.05em;padding-left:1.35em;}
li{margin:.28em 0;}
small{font-size:1rem;}
figure{margin:1.4em 0;}
blockquote{
  margin:1.6em 0;
  padding:.2em 0 .2em 1.2em;
  border-left:5px solid var(--ink);
  font-size:1.06em;
  font-style:italic;
}
blockquote p:last-child{margin-bottom:0;}
figcaption{font-size:1rem;letter-spacing:.08em;padding-top:.5em;border-top:1px solid var(--line);margin-top:.5em;}
hr{border:0;border-top:1px solid var(--line);margin:2em 0;}
table{width:100%;border-collapse:collapse;font-size:1rem;}
th,td{border-bottom:1px solid var(--line);padding:.6em .4em;text-align:left;vertical-align:top;}

::selection{background:var(--ink);color:var(--paper);}

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

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:50;
  background:var(--ink);
  color:var(--paper);
  padding:.75em 1.2em;
  text-decoration:none;
}
.skip:focus{left:.6rem;top:.6rem;}

/* ---------- 报头 ---------- */
.masthead{background:var(--paper);border-bottom:3px solid var(--ink);}

.strip{
  margin:0;
  padding:.42rem 1.1rem;
  background:var(--ink);
  color:var(--paper);
  text-align:center;
  font-size:1rem;
  letter-spacing:.3em;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.strip span{display:inline-block;}

.brandrow{
  display:flex;
  align-items:center;
  gap:1rem;
  max-width:var(--shell);
  margin:0 auto;
  padding:1.1rem 1.2rem .7rem;
}
.brand{
  font-family:var(--hand);
  font-size:2.5rem;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.05;
  text-decoration:none;
  white-space:nowrap;
}
.brandrule{flex:1;height:2px;background:var(--ink);opacity:.9;}

.menu{border-top:1px solid var(--line);}
.menu ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:0 1.35rem;
  max-width:var(--shell);
  margin:0 auto;
  padding:.35rem 1.2rem;
}
.menu a{
  display:inline-block;
  padding:.62rem 0;
  font-size:1rem;
  letter-spacing:.05em;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.menu a:hover,
.menu a.on{border-bottom-color:var(--ink);}
.menu a.on{font-weight:600;}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:stretch;
  min-height:70vh;
  background:var(--paper);
  border-bottom:3px solid var(--ink);
  overflow:hidden;
}

.hero-fig{
  margin:0;
  position:relative;
  overflow:hidden;
  background:var(--ink);
  border-right:3px solid var(--ink);
}
.hero-fig img{
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.06);
  will-change:transform;
  transform:scale(1.06);
}

.hero-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:1.5rem;
  padding:4.2rem 3rem;
  text-align:right;
}
.hero-copy h1{
  font-size:clamp(2.2rem,4.6vw,3.9rem);
  line-height:1.08;
  letter-spacing:-.03em;
  max-width:14em;
  overflow-wrap:anywhere;
}
.slash{
  display:block;
  width:min(300px,74%);
  height:14px;
  background:var(--ink);
  transform:skewX(-20deg);
}

/* ---------- 主体骨架 ---------- */
.shell{
  display:grid;
  grid-template-columns:238px minmax(0,1fr);
  gap:2.6rem;
  align-items:start;
  max-width:var(--shell);
  margin:0 auto;
  padding:2.9rem 1.2rem 3.6rem;
}

/* 侧栏 */
.rail{
  position:sticky;
  top:1.2rem;
  border-top:6px solid var(--ink);
  padding-top:.9rem;
}
.rail small{
  display:block;
  letter-spacing:.32em;
  opacity:.7;
  line-height:1.6;
}
.rail h2{
  font-size:1.6rem;
  margin:.15rem 0 .9rem;
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
}
.rail-list li{
  counter-increment:rail;
  margin:0;
  border-top:1px solid var(--line);
}
.rail-list li:last-child{border-bottom:1px solid var(--line);}
.rail-list a{
  display:block;
  padding:.62rem 0;
  text-decoration:none;
  font-size:1rem;
  line-height:1.7;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--hand);
  font-size:1.1rem;
  letter-spacing:.1em;
  margin-right:.55rem;
  opacity:.6;
}
.rail-list a:hover{background:var(--ink);color:var(--paper);}

/* 正文纸面 */
.sheet{min-width:0;}

.sheet > article{
  background:var(--paper);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:2.1rem 1.7rem 1.5rem;
  scroll-margin-top:1.4rem;
}
.sheet > article + article{margin-top:2.1rem;}
.sheet > article::before{
  content:"";
  display:block;
  width:56px;
  height:6px;
  background:var(--ink);
  margin-bottom:1.25rem;
}
.sheet > article:target{outline:3px solid var(--ink);outline-offset:4px;}

.sheet small{
  display:block;
  letter-spacing:.3em;
  opacity:.68;
  margin-bottom:.2rem;
}
.sheet h2{
  font-size:clamp(1.45rem,2.4vw,1.95rem);
  margin:0 0 .85rem;
  padding-bottom:.55rem;
  border-bottom:1px solid var(--line);
}
.sheet h3{font-size:1.22rem;margin:1.5em 0 .55em;}
.sheet h4{font-size:1.06rem;margin:1.3em 0 .5em;}

.sheet > article p{max-width:62ch;}
.sheet > article img{border-radius:12px;}

.sheet > article:first-of-type p:first-of-type::first-letter{
  float:left;
  font-size:3.5em;
  line-height:.78;
  font-weight:700;
  padding:.05em .12em 0 0;
}

.sheet > article a{border-bottom:1px solid var(--line);text-decoration:none;}
.sheet > article a:hover{border-bottom-color:var(--ink);}

/* ---------- 页脚 ---------- */
.colophon{
  background:var(--ink);
  color:var(--paper);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.6rem 2rem;
  padding:2.6rem 1.4rem 1.2rem;
  border-top:6px solid var(--ink);
}
.colophon dl{margin:0;}
.colophon dt{
  font-size:1rem;
  letter-spacing:.28em;
  opacity:.62;
  margin-bottom:.5rem;
  line-height:1.6;
}
.colophon dd{
  margin:0;
  font-size:1rem;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.colophon a{
  color:var(--paper);
  text-decoration:none;
  display:inline-block;
  padding:.45rem 0;
  border-bottom:1px solid rgba(255,255,255,.32);
}
.colophon dd a{display:block;}
.colophon a:hover{border-bottom-color:var(--paper);}

.bfoot{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.6rem 1.4rem;
  border-top:1px solid rgba(255,255,255,.28);
  margin-top:.6rem;
  padding-top:1rem;
  font-size:1rem;
}
.bfoot p{margin:0;}
.bfoot a{display:inline-block;padding:.4rem 0;}

/* ---------- 动效 ---------- */
.js-reveal{opacity:0;transform:translateY(20px);}
.js-reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .7s ease, transform .8s cubic-bezier(.2,.72,.28,1);
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .js-reveal{opacity:1;transform:none;}
  .hero-fig img{transform:none;}
  .rail{position:static;}
}

/* ---------- 断点 ---------- */
@media (min-width:1024px){
  .sheet > article p{column-count:2;column-gap:2.4rem;}
  .sheet > article p:first-of-type{column-count:1;}
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;min-height:0;}
  .hero-copy{
    order:-1;
    align-items:flex-end;
    padding:2.2rem 1.3rem 1.8rem;
    border-bottom:3px solid var(--ink);
  }
  .hero-copy h1{font-size:clamp(1.9rem,7vw,2.9rem);}
  .hero-fig{max-height:44vh;border-right:0;}
  .hero-fig img{height:44vh;min-height:0;}
  .shell{grid-template-columns:1fr;gap:1.7rem;padding:1.9rem 1rem 2.6rem;}
  .rail{position:static;border-top-width:5px;}
  .rail h2{font-size:1.4rem;margin-bottom:.6rem;}
  .rail-list{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem;}
  .rail-list li:nth-last-child(2){border-bottom:1px solid var(--line);}
  .sheet > article{padding:1.6rem 1.15rem 1.1rem;}
  .brandrow{padding:1rem .95rem .6rem;}
  .brand{font-size:2.1rem;}
  .menu ol{padding:.3rem .95rem;gap:0 1.1rem;}
  .menu a{padding:.55rem 0;}
  .strip{letter-spacing:.2em;padding:.4rem .95rem;}
}

@media (max-width:620px){
  .colophon{grid-template-columns:1fr 1fr;gap:1.4rem 1.2rem;padding:2rem 1rem 1rem;}
  .colophon .fcol:nth-child(3){grid-column:1 / -1;}
  .bfoot{font-size:1rem;}
}

@media (max-width:400px){
  body{font-size:17px;}
  .sheet > article:first-of-type p:first-of-type::first-letter{font-size:3em;}
}

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