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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --rule:2px solid #000000;
  --hair:1px solid rgba(0,0,0,.16);
  --mute:rgba(0,0,0,.62);
  --pad:clamp(16px,4vw,48px);
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.012em;
  padding-bottom:126px;
  overflow-x:hidden;
}

img{max-width:100%}
h1,h2,h3,h4{letter-spacing:-.02em}
a{color:inherit}

/* 顶部报头 */
.masthead{
  display:flex;
  align-items:center;
  padding:0 var(--pad);
  border-bottom:var(--rule);
  background:var(--paper);
}
.masthead a{
  display:inline-flex;
  align-items:center;
  min-height:50px;
  font-weight:700;
  font-size:17px;
  letter-spacing:.1em;
  text-decoration:none;
}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  min-height:70vh;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
}
.hero-media{
  position:absolute;
  inset:-10% 0;
  z-index:0;
}
.hero-media img{
  display:block;
  width:100%;
  height:120%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.08);
  will-change:transform;
  transform:scale(1.04);
}
.hero-veil{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(205deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.52) 46%,rgba(0,0,0,.93) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-end;
  text-align:right;
  gap:16px;
  min-height:70vh;
  padding:clamp(18px,5vw,64px);
}
.hero-badge{
  margin:0;
  padding:6px 14px;
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  font-size:16px;
  font-weight:500;
  letter-spacing:.22em;
}
.hero h1{
  margin:0;
  max-width:16ch;
  font-size:clamp(32px,7.4vw,92px);
  line-height:1.03;
  font-weight:700;
}
.hero-lede{
  margin:0;
  max-width:46ch;
  font-size:17px;
  line-height:1.62;
  color:rgba(255,255,255,.84);
}

/* 版心与左栏 */
.wrap{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:clamp(24px,4vw,56px) var(--pad);
}

.rail{
  position:sticky;
  top:20px;
  padding-top:12px;
  border-top:6px solid var(--ink);
}
.rail-title{
  margin:0 0 6px;
  font-size:17px;
  font-weight:700;
  letter-spacing:.26em;
}
.rail hr{
  margin:0 0 12px;
  border:0;
  border-top:var(--rule);
}
.rail ul{
  list-style:none;
  margin:0;
  padding:0;
}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:2px 0;
  border-bottom:var(--hair);
  font-size:16px;
  text-decoration:none;
}
.rail a:hover,
.rail a:focus-visible{
  padding-left:9px;
  background:var(--ink);
  color:var(--paper);
}

/* 正文 */
.stage{min-width:0}
.sheet{max-width:820px}
.sheet article{
  padding:clamp(26px,4vw,46px) 0;
  border-top:var(--rule);
  scroll-margin-top:20px;
}
.sheet article:first-child{
  padding-top:0;
  border-top:0;
}
.sheet h2{
  margin:0 0 12px;
  font-size:clamp(25px,3.4vw,40px);
  line-height:1.12;
  font-weight:700;
}
.sheet h2 + hr{
  width:72px;
  margin:0 0 22px;
  border:0;
  border-top:8px solid var(--ink);
}
.sheet h3{
  margin:30px 0 10px;
  font-size:21px;
  line-height:1.3;
}
.sheet hr{
  margin:26px 0;
  border:0;
  border-top:var(--rule);
}
.sheet p{margin:0 0 18px}
.sheet a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.sheet ul,.sheet ol{
  margin:0 0 18px;
  padding-left:1.35em;
}
.sheet li{margin:0 0 8px}
.sheet figure{margin:30px 0}
.sheet figure img{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
  filter:grayscale(1);
}
.sheet figcaption{
  margin-top:8px;
  font-size:16px;
  color:var(--mute);
  line-height:1.5;
}
.sheet blockquote{
  margin:32px 0;
  padding:6px 0 6px 22px;
  border-left:8px solid var(--ink);
  font-size:1.2em;
  font-weight:500;
  line-height:1.42;
}
.sheet blockquote p:last-child{margin:0}
.sheet article > p:first-of-type::first-letter{
  float:left;
  padding:8px 12px 0 0;
  font-size:4.4em;
  line-height:.78;
  font-weight:700;
}

/* 页脚 */
.colophon{
  margin-top:clamp(20px,4vw,44px);
  padding:clamp(24px,4vw,48px) var(--pad) 30px;
  border-top:8px solid var(--ink);
  text-align:center;
}
.colophon-mark a{
  display:inline-block;
  font-size:clamp(38px,11vw,132px);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.045em;
  text-decoration:none;
}
.colophon-fine{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 26px;
  max-width:560px;
  margin:clamp(16px,3vw,26px) auto 0;
  padding-top:14px;
  border-top:var(--rule);
  font-size:16px;
  color:var(--mute);
}
.colophon-fine p{margin:0}
.colophon-fine a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--ink);
}

/* 底部固定条 */
.dock{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));
  background:var(--ink);
  color:var(--paper);
}
.dock-nav{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:1240px;
  margin:0 auto;
}
.dock-nav ul{
  display:flex;
  gap:2px;
  flex:1 1 0;
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}
.dock-nav ul.left{justify-content:flex-end}
.dock-nav ul.right{justify-content:flex-start}
.dock a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 11px;
  border-radius:10px;
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
}
.dock a::before{
  content:"";
  flex:0 0 auto;
  width:7px;
  height:7px;
  margin-right:8px;
  border:2px solid currentColor;
  border-radius:2px;
  opacity:.72;
}
.dock a:hover,
.dock a:focus-visible{background:rgba(255,255,255,.18)}
.dock-brand{
  padding:0 14px !important;
  font-weight:700;
  letter-spacing:.02em;
}
.dock-brand::before{display:none}
.dock .right li:last-child a{
  background:var(--paper);
  color:var(--ink);
  font-weight:500;
}
.dock .right li:last-child a:hover{background:rgba(255,255,255,.82)}

/* 动效 */
[data-reveal]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
[data-reveal].is-in{
  opacity:1;
  transform:none;
}

/* 移动端 */
@media (max-width:880px){
  body{padding-bottom:206px}

  .hero{min-height:70vh}
  .hero-lede{font-size:16px}

  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
  }
  .rail{
    position:static;
    padding-top:10px;
  }
  .rail ul{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
  }
  .rail li{flex:0 0 auto}
  .rail a{
    min-height:44px;
    padding:0 14px;
    border-bottom:0;
    border-radius:10px;
    background:var(--ink);
    color:var(--paper);
    font-size:16px;
    white-space:nowrap;
  }
  .rail a:hover,
  .rail a:focus-visible{padding-left:14px}

  .colophon-mark a{letter-spacing:-.03em}

  .dock{padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px))}
  .dock-nav{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:2px;
  }
  .dock-nav ul{display:contents}
  .dock a{
    flex-direction:column;
    justify-content:center;
    gap:4px;
    padding:6px 2px;
    min-height:48px;
    border-radius:10px;
    text-align:center;
    white-space:normal;
    line-height:1.26;
  }
  .dock a::before{margin:0}
  .dock-brand{
    grid-column:1 / -1;
    order:-1;
    flex-direction:row;
    min-height:44px;
    padding:0 !important;
    border-bottom:1px solid rgba(255,255,255,.28);
    border-radius:0;
  }
}

@media (min-width:1000px){
  .sheet article > p{
    column-count:2;
    column-gap:2.6rem;
    column-rule:1px solid rgba(0,0,0,.16);
  }
  .sheet article > p:first-of-type{
    column-span:none;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal]{opacity:1;transform:none;transition:none}
  .hero-media img{transform:none !important}
}

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