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

:root{
  --ink:#000;
  --paper:#fff;
  --rule:3px solid var(--ink);
  --head:'Outfit','Rubik',ui-sans-serif,system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --body:'Rubik',ui-sans-serif,system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

*,*::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:var(--body);
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;font-family:var(--head);font-weight:700;line-height:1.1;letter-spacing:-.03em}
blockquote{margin:0}
figure{margin:0}

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

/* 顶部细条 */
.strip{background:var(--ink);color:var(--paper)}
.strip-in{
  max-width:1280px;
  margin:0 auto;
  padding:7px 20px;
  font-size:16px;
  line-height:1.4;
  font-weight:500;
  letter-spacing:.24em;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 页头与导航 */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--paper);
  border-bottom:var(--rule);
}
.nav{
  max-width:1280px;
  margin:0 auto;
  padding:8px 20px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
}
.nav ol{display:flex;align-items:center;gap:2px}
.nav-l{justify-content:flex-end}
.nav-r{justify-content:flex-start}
.nav li{position:relative}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  border-radius:4px;
  font-size:16px;
  font-weight:600;
}
.nav a:hover,.nav a:focus-visible{background:var(--ink);color:var(--paper)}

.brand{
  grid-column:2;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border:3px solid var(--ink);
  border-radius:4px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--head);
  font-size:clamp(18px,2.4vw,24px);
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1;
}
.brand:hover,.brand:focus-visible{background:var(--paper);color:var(--ink)}

.has-sub>a::after{
  content:"";
  width:0;
  height:0;
  margin-left:7px;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
}
.nav .sub{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:176px;
  padding:6px;
  background:var(--paper);
  border:var(--rule);
  border-radius:4px;
  flex-direction:column;
  z-index:5;
}
.nav-r .sub{left:auto;right:0}
.nav .has-sub:hover>.sub,
.nav .has-sub:focus-within>.sub{display:flex}
.sub a{width:100%;justify-content:flex-start}

/* 大标题区 */
.hero{
  max-width:1280px;
  margin:0 auto;
  padding:clamp(36px,7vw,80px) 20px clamp(28px,5vw,56px);
  min-height:calc(100vh - 108px);
  min-height:calc(100svh - 108px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:clamp(16px,3vw,28px);
}
.hero h1{
  font-size:clamp(42px,10.5vw,124px);
  line-height:.94;
  letter-spacing:-.045em;
  max-width:16ch;
  overflow-wrap:break-word;
}
.hero .deck{
  max-width:38ch;
  font-size:clamp(16px,1.6vw,20px);
  line-height:1.55;
  font-weight:500;
  border-left:8px solid var(--ink);
  padding-left:14px;
}

/* 斜切色带 */
.band{
  height:clamp(34px,5vw,58px);
  background:var(--ink);
  clip-path:polygon(0 0,100% 0,100% 40%,0 100%);
}

/* 主体栅格 */
.wrap{
  max-width:1280px;
  margin:0 auto;
  padding:clamp(28px,4vw,52px) 20px clamp(40px,6vw,72px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 262px;
  gap:clamp(24px,3.5vw,52px);
  align-items:start;
}
.content{min-width:0}

/* 正文 */
.prose{counter-reset:sec}
.prose>section{
  counter-increment:sec;
  padding-block:clamp(26px,3.4vw,42px);
  border-top:2px solid var(--ink);
  scroll-margin-top:112px;
}
.prose>section:first-child{border-top:0;padding-top:0}
.prose h2{
  display:flex;
  align-items:baseline;
  gap:.5em;
  font-size:clamp(26px,3.6vw,40px);
  margin-bottom:12px;
}
.prose h2::before{
  content:counter(sec,decimal-leading-zero);
  font-size:.4em;
  font-weight:600;
  letter-spacing:.16em;
  border-bottom:2px solid var(--ink);
  padding-bottom:2px;
}
.prose h3{font-size:clamp(20px,2.2vw,26px);margin:22px 0 10px}
.prose p{margin-bottom:16px}
.prose h2+p{
  margin-bottom:18px;
  font-size:clamp(17px,1.4vw,20px);
  line-height:1.55;
  font-weight:500;
  border-left:5px solid var(--ink);
  padding-left:12px;
}
.prose ul,.prose ol{list-style:disc;padding-left:22px;margin-bottom:16px}
.prose ol{list-style:decimal}
.prose li{margin-bottom:6px}
.prose a{border-bottom:2px solid var(--ink);font-weight:500}
.prose a:hover{background:var(--ink);color:var(--paper)}
.prose blockquote{
  margin:24px 0;
  padding:20px 22px;
  border:3px solid var(--ink);
  border-radius:4px;
  font-family:var(--head);
  font-size:clamp(19px,2.2vw,24px);
  font-weight:600;
  line-height:1.35;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:24px 0}
.prose figcaption{
  margin-top:8px;
  padding-top:8px;
  border-top:2px solid var(--ink);
  font-size:16px;
}
.prose img{border:3px solid var(--ink);border-radius:4px}
.prose>section:first-child>p:first-of-type::first-letter{
  float:left;
  font-family:var(--head);
  font-weight:700;
  font-size:4.4em;
  line-height:.78;
  padding:.06em .1em 0 0;
}

/* 侧栏 */
.side{
  position:sticky;
  top:112px;
  padding:16px;
  border:3px solid var(--ink);
  border-radius:4px;
}
.side h2{font-size:24px}
.side .subtitle{
  margin:2px 0 12px;
  padding-bottom:10px;
  border-bottom:2px solid var(--ink);
  font-size:16px;
  font-weight:500;
}
.side ul{display:grid;gap:2px}
.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-radius:4px;
  font-size:16px;
  font-weight:600;
}
.side a:hover,.side a:focus-visible{background:var(--ink);color:var(--paper)}

/* 页脚 */
.foot{border-top:var(--rule);padding:clamp(30px,5vw,56px) 20px 22px}
.foot-in{
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(24px,4vw,48px);
}
address{font-style:normal}
.fb-name{
  display:block;
  font-family:var(--head);
  font-size:clamp(24px,3.6vw,34px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.03em;
}
.fb-desc{display:block;margin-top:12px;max-width:36ch;font-size:16px}
.foot-links h2{font-size:20px;margin-bottom:10px}
.foot-links ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.foot-links a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px;
  border-radius:4px;
  font-size:16px;
  font-weight:600;
}
.foot-links a:hover,.foot-links a:focus-visible{background:var(--ink);color:var(--paper)}
.copy{
  max-width:1280px;
  margin:clamp(24px,4vw,40px) auto 0;
  padding-top:16px;
  border-top:2px solid var(--ink);
  text-align:center;
  font-size:16px;
}

/* 滚动显现 */
.js [data-rev]{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}
.js [data-rev].in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-rev]{opacity:1;transform:none;transition:none}
}

@media (min-width:1180px){
  .prose>section>p{column-count:2;column-gap:34px}
}

@media (max-width:1000px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static;order:2}
}

@media (max-width:860px){
  .nav{grid-template-columns:1fr;gap:4px;padding:10px 16px}
  .brand{grid-column:1;order:-1;justify-self:center;margin-bottom:4px}
  .nav ol{flex-wrap:wrap;justify-content:center}
  .nav-l,.nav-r{justify-content:center}
  .nav .sub{
    position:static;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    min-width:0;
    margin:2px 0 8px;
    padding:4px;
    border-width:2px;
  }
  .sub a{width:auto}
  .hero{min-height:0;padding-top:34px}
  .band{height:32px}
  .foot-in{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:520px){
  .foot-links ul{grid-template-columns:minmax(0,1fr)}
  .hero h1{letter-spacing:-.03em}
  .prose h2{flex-direction:column;gap:.1em}
}

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