@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #d9d9d9;
  --soft: #f2f2f2;
  --mute: #4d4d4d;
  --pad: clamp(16px, 4vw, 44px);
}

*,
*::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: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .012em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* 顶部细条 */
.thinbar {
  background: var(--ink);
  color: var(--paper);
  padding: 7px var(--pad);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.thinbar p {
  margin: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.topnav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px calc(var(--pad) + 56px) 8px var(--pad);
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.brand {
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .16em;
  padding: 10px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.menu {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-l { grid-column: 1; justify-content: flex-end; }
.menu-r { grid-column: 3; justify-content: flex-start; }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.menu a:hover,
.menu a:focus-visible { border-bottom-color: var(--ink); }

.burger {
  position: absolute;
  right: clamp(8px, 2vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  z-index: 95;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .28s ease, opacity .2s ease, background .2s ease;
}

/* 遮罩菜单 */
.topnav.open {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 0;
  padding: 92px var(--pad) 44px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
  overflow-y: auto;
  z-index: 90;
}
.topnav.open .brand {
  grid-column: 1;
  color: var(--paper);
  justify-self: start;
  order: -1;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--paper);
}
.topnav.open .menu {
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  grid-column: 1;
  justify-content: flex-start;
}
.topnav.open .menu a {
  width: 100%;
  min-height: 60px;
  color: var(--paper);
  font-size: clamp(21px, 5vw, 33px);
  letter-spacing: .02em;
  border-bottom: 1px solid #3a3a3a;
  padding: 8px 0;
}
.topnav.open .menu a:hover { border-bottom-color: var(--paper); }
.topnav.open .burger {
  background: var(--ink);
  border-color: var(--paper);
}
.topnav.open .burger span { background: var(--paper); }
.topnav.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topnav.open .burger span:nth-child(2) { opacity: 0; }
.topnav.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 首屏 */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(26px, 5vw, 60px) var(--pad) clamp(44px, 7vw, 88px);
  border-bottom: 3px solid var(--ink);
}
.collage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
}
.cut {
  position: absolute;
  margin: 0;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
}
.cut-a { inset: 0 20% 28% 0; transform: rotate(-2.4deg); }
.cut-b { inset: 34% 0 0 24%; transform: rotate(2deg); }
.cut-img { width: 100%; height: 100%; object-fit: cover; }
.blank {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #000 0 12px, #fff 12px 24px);
}
.hero-txt {
  grid-column: 2;
  text-align: right;
}
.hero-txt h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 700;
}
.deck {
  margin: 0 0 0 auto;
  max-width: 42ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.72;
  color: #222;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.stamp {
  position: absolute;
  left: var(--pad);
  bottom: clamp(20px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .34em;
  transform: rotate(-4deg);
  z-index: 3;
}

/* 主体 */
main {
  display: grid;
  grid-template-columns: minmax(168px, 232px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 62px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 68px) var(--pad) 72px;
  align-items: start;
}

.side {
  position: sticky;
  top: 88px;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.side small {
  display: block;
  font-size: 16px;
  letter-spacing: .34em;
  color: var(--mute);
  line-height: 1.3;
}
.side h2 {
  margin: 4px 0 14px;
  font-size: 21px;
  letter-spacing: .14em;
  font-weight: 700;
}
.side ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}
.side li a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 44px;
  padding: 9px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.side li a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  font-size: 16px;
  font-weight: 600;
  color: var(--mute);
  flex: 0 0 auto;
}
.side li a:hover { background: var(--soft); }

/* 正文 */
.sheet {
  counter-reset: sec;
  min-width: 0;
}
.sheet > section {
  position: relative;
  scroll-margin-top: 96px;
  margin: 0 0 clamp(34px, 5vw, 60px);
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.sheet > section::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 1px 10px;
  line-height: 1.5;
}
.sheet h2 {
  margin: 0 0 18px;
  padding-right: 62px;
  font-size: clamp(24px, 3.2vw, 37px);
  line-height: 1.16;
  letter-spacing: -.018em;
  font-weight: 700;
}
.sheet h3 {
  margin: 1.7em 0 .6em;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.sheet p {
  margin: 0 0 1.05em;
  max-width: 66ch;
  line-height: 1.82;
}
.sheet > section:first-of-type > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .82;
  font-weight: 700;
  padding: .04em .12em 0 0;
}
.sheet a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.sheet ul,
.sheet ol { padding-left: 1.25em; margin: 0 0 1.2em; max-width: 66ch; }
.sheet li { margin: .35em 0; line-height: 1.75; }
.sheet blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 7px solid var(--ink);
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.45;
  letter-spacing: -.01em;
  font-weight: 500;
  max-width: 46ch;
}
.sheet blockquote p { max-width: none; margin: 0 0 .5em; }
.sheet blockquote p:last-child { margin-bottom: 0; }
.sheet figure { margin: 1.6em 0; }
.sheet figure img { width: 100%; border: 2px solid var(--ink); }
.sheet figcaption {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--mute);
  line-height: 1.6;
}
.sheet iframe,
.sheet video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 3px solid var(--ink);
  display: block;
  margin: 1.4em 0;
  background: var(--ink);
}
.sheet hr { border: 0; border-top: 2px solid var(--ink); margin: 2em 0; }
.sheet code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 16px;
  background: var(--soft);
  padding: 1px 5px;
}
.sheet table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* 页脚 */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(34px, 5vw, 68px) var(--pad) 22px;
  display: grid;
  grid-template-columns: 1.5fr .75fr .75fr .85fr;
  gap: clamp(20px, 4vw, 52px);
  margin-top: 24px;
}
.site-foot a { color: var(--paper); }
.mega {
  display: block;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--paper);
}
.foot-col ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #383838;
  width: 100%;
}
.foot-col a:hover { border-bottom-color: var(--paper); }
.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--paper);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .12em;
}
.totop:hover { background: var(--paper); color: var(--ink); }
.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #3a3a3a;
  padding-top: 16px;
  margin-top: 8px;
  font-size: 16px;
}
.foot-base p { margin: 0; }
.foot-mini {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-mini a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
}

/* 滚动出现 */
.js [data-reveal],
.js .hero-txt,
.js .collage,
.js .sheet > section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js .in {
  opacity: 1;
  transform: none;
}

/* 窄屏 */
@media (max-width: 900px) {
  .menu { display: none; }
  .topnav.open .menu { display: flex; }
  .topnav { grid-template-columns: 1fr auto 1fr; padding-left: 14px; }
  .brand { font-size: 19px; letter-spacing: .12em; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 26px;
  }
  .hero-txt {
    grid-column: 1;
    text-align: left;
    order: 1;
  }
  .deck { margin-left: 0; max-width: none; }
  .collage {
    order: 2;
    aspect-ratio: 16 / 13;
    max-height: none;
    margin-top: 10px;
  }
  .stamp {
    position: static;
    order: 3;
    display: inline-block;
    justify-self: start;
    margin-top: 18px;
    transform: rotate(-2deg);
  }
  main {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }
  .side { position: static; }
  .side ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .site-foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-top { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  body { font-size: 17px; }
  .sheet h2 { padding-right: 54px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js .hero-txt,
  .js .collage,
  .js .sheet > section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .burger span { transition: none; }
}

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