/* ============================================================
   LITHO 2.0 · 石版印刷 × 数字档案 × 中文文字 × 原生 App
   Paper + Ink 为主；朱砂只给编号、印章、状态。
   动画只有四种：显现、模糊到清晰、翻版、墨扩散。
   ============================================================ */

:root{
  color-scheme: light;

  --paper:     #F4F1E9;
  --paper-hi:  #FBF9F4;
  --paper-lo:  #E9E4D8;
  --ink:       #171614;
  --ink-2:     #45423C;   /* 正文次级，8:1 on paper */
  --stone:     #8A867D;   /* 只给标签与装饰，不给正文 */
  --stone-lo:  #C9C4B8;
  --vermilion: #A33B2B;

  --rule:      rgba(23,22,20,.14);
  --rule-hi:   rgba(23,22,20,.38);
  --rule-inv:  rgba(244,241,233,.16);

  --serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --serif-en: "Instrument Serif", "Cormorant Garamond", "Iowan Old Style", Georgia, var(--serif-cn);
  --sans: Inter, Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: 16px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.7,.1,1);

  /* 纸上墨点 */
  --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .086 0 0 0 0 .078 0 0 0 1.5 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* 石上白点 */
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .945 0 0 0 0 .91 0 0 0 1.2 -.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* 石面的云状肌理 */
  --stone-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .945 0 0 0 0 .91 0 0 0 .38 -.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  /* 拓印：字面上的缺墨 */
  --rub-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.2' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}
@media (min-width: 720px){ :root{ --gutter: 32px; } }
@media (min-width: 1100px){ :root{ --gutter: 56px; } }

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* 整页一层极淡的纸纹 */
body::after{
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain-ink); opacity: .22;
}
img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4,p,figure,blockquote,dl,dd,ol,ul{ margin: 0; }
ol,ul{ padding: 0; list-style: none; }
::selection{ background: var(--ink); color: var(--paper); }
:focus-visible{ outline: 2px solid var(--vermilion); outline-offset: 3px; }

.wrap{ max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono{ font-family: var(--mono); }
.skip{ position: absolute; left: -999px; }
.skip:focus{ left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* ---------- 小标签 ---------- */
.label{
  font-family: var(--mono); font-size: 11px; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}
.no{ color: var(--vermilion); }

/* ---------- 顶栏 ---------- */
.top{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(8px); backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-inner{ display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand{ display: inline-flex; align-items: center; gap: 10px; }
.brand-seal{
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif-cn); font-weight: 900; font-size: 16px; line-height: 1;
}
/* 字标与 App 图标同一份几何（design/brand/make_icon.swift 产出的 glyph-inline.svg）。 */
.brand-seal svg{ width: 100%; height: 100%; display: block; }
.brand-word{ font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .32em; }
.top-nav{ display: flex; align-items: center; gap: 4px; }
.top-nav a{
  font-size: 14px; padding: 8px 10px; color: var(--ink-2);
  transition: color .2s;
}
.top-nav a:hover{ color: var(--ink); }
.top-nav .hide-s{ display: none; }
.top-nav .top-get{
  margin-left: 6px; padding: 7px 14px; color: var(--paper); background: var(--ink);
  font-weight: 600;
}
.top-nav .top-get:hover{ color: var(--paper); background: var(--ink-2); }
@media (min-width: 720px){ .top-nav .hide-s{ display: inline-block; } }

/* ---------- 按钮：墨扩散 ---------- */
.btn{
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1.5px solid var(--ink);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  transition: color .35s var(--ease);
}
.btn small{ font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; opacity: .7; }
.btn::before{
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%,-50%) scale(0); transition: transform .55s var(--ease);
}
.btn-ink{ background: var(--ink); color: var(--paper); }
.btn-ink::before{ background: var(--ink-2); }
.btn-line{ color: var(--ink); }
.btn-line::before{ background: var(--ink); }
.btn:hover::before{ transform: translate(-50%,-50%) scale(1); }
.btn-line:hover{ color: var(--paper); }

/* ---------- 版块 ---------- */
.sec{ position: relative; padding-block: 88px; border-top: 1px solid var(--rule); }
@media (min-width: 1100px){ .sec{ padding-block: 140px; } }

.sec-head{ display: grid; gap: 18px; margin-bottom: 48px; }
.sec-mark{ display: flex; align-items: center; gap: 12px; }
.sec-glyph{
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--rule-hi);
  font-family: var(--serif-cn); font-size: 18px; font-weight: 600; line-height: 1;
}
.sec-title{
  font-family: var(--serif-en); font-weight: 400;
  font-size: clamp(42px, 11vw, 112px); line-height: .92; letter-spacing: -.005em;
  text-transform: uppercase;
}
.sec-sub{
  font-family: var(--serif-cn); font-weight: 600;
  font-size: clamp(22px, 5.4vw, 34px); line-height: 1.4;
}
.sec-lede{ color: var(--ink-2); max-width: 58ch; font-size: 16px; }
@media (min-width: 1100px){
  .sec-head{ grid-template-columns: 3fr 9fr; column-gap: 32px; margin-bottom: 72px; }
  .sec-head > .sec-mark{ grid-row: 1 / span 3; align-self: start; padding-top: 14px; }
  .sec-lede{ font-size: 17px; }
}

/* ---------- 显现（JS 在时才隐藏，保证无脚本可读） ---------- */
.js .rv{
  opacity: 0; filter: blur(8px); transform: translateY(12px);
  transition: opacity .9s var(--ease), filter 1.1s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .rv.in{ opacity: 1; filter: none; transform: none; }

/* ============================================================
   01 HERO
   ============================================================ */
.hero{ padding-block: 20px 72px; }
.hero-grid{ display: grid; gap: 36px; }

.hero-art{ position: relative; }
.slab{
  position: relative; container-type: inline-size; overflow: hidden;
  aspect-ratio: 5 / 4;
  background-color: var(--ink);
  background-image: var(--grain-paper), var(--stone-cloud);
  background-size: 220px, cover; background-repeat: repeat, no-repeat;
  color: var(--paper);
}
.slab::before{ /* 碑框 */
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--rule-inv); pointer-events: none;
}
.slab-glyph{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
  font-family: var(--serif-cn); font-weight: 900; line-height: 1;
  font-size: 58cqw; color: var(--paper);
  -webkit-mask-image: var(--rub-mask); mask-image: var(--rub-mask);
  -webkit-mask-size: 380px; mask-size: 380px;
}
.slab-greek{
  position: absolute; left: 26px; top: 20px;
  font-family: var(--serif-en); font-style: italic; font-size: clamp(20px, 6cqw, 34px); color: var(--stone);
}
.slab-word{
  position: absolute; left: 26px; bottom: 22px;
  font-family: var(--mono); font-size: clamp(12px, 3.4cqw, 15px); font-weight: 600; letter-spacing: .5em;
}
.slab-cap{
  position: absolute; right: 26px; bottom: 22px;
  font-family: var(--mono); font-size: clamp(10px, 2.6cqw, 12px); letter-spacing: .12em; color: var(--stone);
}
.slab-no{
  position: absolute; right: 26px; top: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--stone);
}

.hero-kicker{ display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.hero h1{
  font-family: var(--serif-cn); font-weight: 700;
  font-size: clamp(40px, 11.4vw, 98px); line-height: 1.12; letter-spacing: -.01em;
}
.hero h1 .ln{ display: block; }
.hero h1 em{ font-style: normal; color: var(--vermilion); }
.hero h1 .lat{ font-family: var(--serif-en); font-weight: 400; font-size: 1.12em; letter-spacing: 0; }
.hero-lede{ margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: 16.5px; }
.cta-row{ display: grid; gap: 10px; margin-top: 30px; }
.hero-colophon{
  display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.hero-colophon span{ padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--rule); }
.hero-colophon span:last-child{ border: 0; }

.hero-print{ display: none; }

@media (min-width: 560px){
  .cta-row{ display: flex; flex-wrap: wrap; }
}
@media (min-width: 1000px){
  .hero{ padding-block: 56px 120px; }
  .hero-grid{ grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: center; }
  .hero-copy{ grid-column: 1; grid-row: 1; }
  .hero-art{ grid-column: 2; grid-row: 1; padding-bottom: 64px; }
  .slab{ aspect-ratio: 4 / 5; width: 84%; }
  .hero-art{ padding-bottom: 120px; }
  .hero-print{
    display: block; position: absolute; right: 0; bottom: 0; width: 42%; z-index: 2;
    transform: rotate(1.6deg);
  }
}

/* 进场：石 → LITHO → linux.do → 产品 */
@media (prefers-reduced-motion: no-preference){
  .hero .slab{ animation: ink-spread 1s var(--ease) both; }
  .hero .slab-glyph{ animation: rub-in 1.1s var(--ease) .35s both; }
  .hero .slab-greek, .hero .slab-no, .hero .slab-cap{ animation: fade 0.8s ease .8s both; }
  .hero .slab-word{ animation: word-in 1s var(--ease) .7s both; }
  .hero h1 .ln{ animation: rub-in-soft .9s var(--ease) both; }
  .hero h1 .ln:nth-child(1){ animation-delay: .9s; }
  .hero h1 .ln:nth-child(2){ animation-delay: 1.02s; }
  .hero h1 .ln:nth-child(3){ animation-delay: 1.14s; }
  .hero .hero-kicker{ animation: fade .8s ease .85s both; }
  .hero .hero-lede, .hero .cta-row, .hero .hero-colophon{ animation: rub-in-soft .9s var(--ease) 1.3s both; }
  .hero .hero-print{ animation: print-up 1.1s var(--ease) 1.45s both; }
}
@keyframes ink-spread{
  from{ clip-path: circle(0% at 50% 50%); }
  to{ clip-path: circle(75% at 50% 50%); }
}
@keyframes rub-in{
  from{ opacity: 0; filter: blur(18px); }
  to{ opacity: 1; filter: none; }
}
@keyframes rub-in-soft{
  from{ opacity: 0; filter: blur(10px); transform: translateY(8px); }
  to{ opacity: 1; filter: none; transform: none; }
}
@keyframes word-in{
  from{ opacity: 0; letter-spacing: 1.1em; }
  to{ opacity: 1; letter-spacing: .5em; }
}
@keyframes fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes print-up{
  from{ opacity: 0; filter: blur(8px); transform: translateY(24px) rotate(1.6deg); }
  to{ opacity: 1; filter: none; transform: rotate(1.6deg); }
}

/* ============================================================
   印版 PLATE：截图作为一张放在纸上的印刷品
   ============================================================ */
.plate{
  position: relative;
  background: var(--paper-hi);
  padding: 12px 12px 0;
  box-shadow: 0 0 0 1px var(--rule), 0 22px 36px -30px rgba(23,22,20,.55);
}
.plate img{
  width: 100%; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule-hi);
  mix-blend-mode: multiply;
}
.plate figcaption{
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 2px 12px;
}
.plate figcaption b{ font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--vermilion); }
.plate figcaption span{ font-family: var(--serif-cn); font-size: 14px; font-weight: 600; }
/* 裁切标记 */
.crop::before, .crop::after{
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 0 solid var(--rule-hi);
}
.crop::before{ left: -9px; top: -9px; border-left-width: 1px; border-top-width: 1px; }
.crop::after{ right: -9px; bottom: -9px; border-right-width: 1px; border-bottom-width: 1px; }

/* 印版显现：自上而下过墨 */
/* 被观察的元素本身不能裁掉：Chrome 的 IntersectionObserver 会把自身 clip-path 算进去，全裁 = 永远不相交 */
.js .plate.rv{ transform: none; filter: none; transition: opacity .6s ease; transition-delay: calc(var(--d,0) * 110ms); }
.js .plate.rv > *{
  clip-path: inset(0 0 100% 0); filter: blur(6px);
  transition: clip-path 1.1s var(--ease), filter 1.3s var(--ease); transition-delay: calc(.15s + var(--d,0) * 110ms);
}
.js .plate.rv.in > *{ clip-path: inset(0 0 0 0); filter: none; }

/* ============================================================
   02 MANIFESTO
   ============================================================ */
.mani-grid{ display: grid; gap: 48px; }
.stele{
  position: relative; container-type: inline-size;
  background: var(--paper-lo);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: 28px 24px 26px;
  display: grid; justify-items: center; gap: 6px; text-align: center;
}
.stele::before{ content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
.stele-greek{ font-family: var(--serif-en); font-size: clamp(44px, 16cqw, 84px); line-height: 1; }
.stele-glyph{
  display: grid; place-items: center; width: 64cqw; aspect-ratio: 1; margin: 18px 0 16px;
  background-color: var(--ink); background-image: var(--grain-paper), var(--stone-cloud); background-size: 220px, cover; background-repeat: repeat, no-repeat;
}
.stele-glyph span{
  font-family: var(--serif-cn); font-weight: 900; font-size: 44cqw; line-height: 1; color: var(--paper);
  -webkit-mask-image: var(--rub-mask); mask-image: var(--rub-mask); -webkit-mask-size: 380px; mask-size: 380px;
  transform: translateY(-2%);
}
.stele-rom{ font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-2); }
.stele-seal{
  position: absolute; right: 22px; bottom: 60px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--vermilion); color: var(--vermilion);
  font-family: var(--serif-cn); font-weight: 900; font-size: 22px; line-height: 1;
  transform: rotate(-4deg);
}
.mani-title{ font-family: var(--serif-cn); font-weight: 700; font-size: clamp(30px, 7.6vw, 58px); line-height: 1.3; margin: 16px 0 36px; }
.mani-list{ display: grid; border-top: 1px solid var(--ink); }
.mani-item{ display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.mani-item .k{ grid-row: 1 / span 2; font-family: var(--serif-cn); font-weight: 900; font-size: 34px; line-height: 1.05; }
.mani-item h3{ font-family: var(--serif-cn); font-weight: 600; font-size: 19px; line-height: 1.5; }
.mani-item p{ color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 1000px){
  .mani-grid{ grid-template-columns: 5fr 7fr; column-gap: 80px; align-items: start; }
  .stele{ position: sticky; top: 96px; }
}

/* ============================================================
   03 THE PRINTS
   ============================================================ */
.prints-row{
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter) 28px;
  scrollbar-width: none;
}
.prints-row::-webkit-scrollbar{ display: none; }
.prints-row .plate{ scroll-snap-align: center; }
.prints-hint{ margin-top: 2px; }
.prints-wide{ display: grid; gap: 28px; margin-top: 44px; }
.prints-wide p{ color: var(--ink-2); max-width: 36ch; }
.prints-wide .note{ font-family: var(--serif-cn); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 10px 0 12px; max-width: 16em; }
@media (min-width: 720px){
  .prints-row{ grid-auto-columns: 40%; }
}
@media (min-width: 1100px){
  .prints-row{
    grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible;
    margin: 0; padding: 12px 0 0; gap: 26px;
  }
  .prints-row .plate:nth-child(even){ margin-top: 56px; }
  .prints-hint{ display: none; }
  .prints-wide{ grid-template-columns: 7fr 4fr; column-gap: 64px; align-items: end; margin-top: 88px; }
}

/* ============================================================
   04 THREE PRINCIPLES
   ============================================================ */
.pr-grid{ display: grid; border-top: 1px solid var(--ink); }
.pr{ display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.pr-mark{ grid-row: 1 / span 6; width: 64px; height: 64px; position: relative; }
.pr-mark.m-stone{ background-color: var(--ink); background-image: var(--grain-paper); background-size: 120px; }
.pr-mark.m-print{ box-shadow: inset 0 0 0 1.5px var(--ink);
  background: linear-gradient(var(--ink),var(--ink)) 12px 14px / 40px 3px no-repeat,
              linear-gradient(var(--ink),var(--ink)) 12px 24px / 40px 3px no-repeat,
              linear-gradient(var(--ink),var(--ink)) 12px 34px / 40px 3px no-repeat,
              linear-gradient(var(--ink),var(--ink)) 12px 44px / 24px 3px no-repeat; }
.pr-mark.m-native{ box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 14px; }
.pr-mark.m-native::after{ content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 22px; background: var(--ink); border-radius: 4px; }
.pr-mark.m-native::before{ content: ""; position: absolute; left: 24px; right: 24px; bottom: 9px; height: 3px; background: var(--ink); border-radius: 2px; }
.pr-top{ display: flex; gap: 12px; align-items: baseline; }
.pr-top .no{ font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.pr-top .en{ font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .32em; }
.pr h3{ font-family: var(--serif-cn); font-weight: 900; font-size: clamp(40px, 10vw, 64px); line-height: 1.1; margin: 8px 0 4px; }
.pr .sub{ font-family: var(--serif-cn); font-weight: 600; font-size: 17px; }
.pr .tech{ margin-top: 4px; }
.pr p{ color: var(--ink-2); font-size: 15.5px; margin-top: 14px; }
@media (min-width: 1000px){
  .pr-grid{ grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .pr{ grid-template-columns: 1fr; padding: 36px 32px 44px 0; border-bottom: 0; }
  .pr + .pr{ padding-left: 32px; border-left: 1px solid var(--rule); }
  .pr-mark{ grid-row: auto; margin-bottom: 28px; }
}

/* ============================================================
   05 THE PRINTING PRESS
   ============================================================ */
.press{ position: relative; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.press-bar{
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1.5px solid var(--ink);
}
.press-bar .label{ color: var(--ink-2); }
.press-line{ position: relative; padding: 12px 16px 12px; counter-reset: st; }
.press-line::before{ /* 送纸线 */
  content: ""; position: absolute; left: 36px; top: 40px; bottom: 64px; width: 1.5px; background: var(--ink);
  transform-origin: top;
}
.st{ position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px 0; }
.st-no{
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-hi); border: 1.5px solid var(--ink);
  font-family: var(--serif-en); font-size: 19px; line-height: 1;
}
.st-en{ display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.st-cn{ display: block; font-family: var(--serif-cn); font-size: 20px; font-weight: 700; line-height: 1.4; margin-top: 2px; }
.st p{ color: var(--ink-2); font-size: 14.5px; line-height: 1.65; margin-top: 6px; }
.st-body{ padding: 2px 0 0; }
/* 第 II 站就是石版 */
.st-stone .st-body{
  background-color: var(--ink); background-image: var(--grain-paper), var(--stone-cloud); background-size: 220px, cover; background-repeat: repeat, no-repeat;
  color: var(--paper); padding: 16px 16px 18px; margin-top: -2px;
}
.st-stone .st-no{ background: var(--ink); color: var(--paper); }
.st-stone p{ color: rgba(244,241,233,.74); }
.st-stone .st-en::after{ content: " · 石版"; font-family: var(--serif-cn); color: var(--stone); letter-spacing: 0; font-weight: 600; }
/* 出纸 */
.st-out .st-body{ position: relative; box-shadow: inset 0 0 0 1px var(--rule-hi); background: var(--paper); padding: 16px 64px 18px 16px; margin-top: -2px; }
.st-out .st-en{ font-size: 22px; letter-spacing: 0; }
.seal{
  display: grid; place-items: center; text-align: center;
  border: 2px solid var(--vermilion); color: var(--vermilion);
  font-family: var(--serif-cn); font-weight: 900; line-height: 1.02;
}
.st-out .seal{ position: absolute; right: 12px; top: 14px; width: 42px; height: 42px; font-size: 15px; transform: rotate(-5deg); }

@media (min-width: 1100px){
  .press-bar{ padding: 14px 24px; }
  .press-line{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 14px; padding: 36px 24px 28px; }
  .press-line::before{ left: 48px; right: 48px; top: 57px; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  .st{ grid-template-columns: 1fr; gap: 20px; padding: 0; align-content: start; }
  .st-body{ padding-top: 0; }
  .st-stone .st-body, .st-out .st-body{ margin-top: -10px; padding-top: 14px; min-height: 100%; }
  .st-out .st-body{ padding-right: 16px; }
  .st-out .seal{ position: static; margin-top: 16px; transform: rotate(-5deg); width: 46px; height: 46px; }
}

/* 印刷机动起来：送纸线走完，各站依次上墨，最后盖章 */
@media (prefers-reduced-motion: no-preference){
  .js .press .press-line::before{ transform: scaleY(0); transition: transform 1.6s var(--ease) .2s; }
  @media (min-width: 1100px){ .js .press .press-line::before{ transform: scaleX(0); } }
  .js .press.in .press-line::before{ transform: none; }
  .js .press .st{ opacity: .12; filter: blur(4px); transition: opacity .7s ease, filter .9s var(--ease); transition-delay: calc(.25s + var(--i) * .28s); }
  .js .press.in .st{ opacity: 1; filter: none; }
  .js .press .seal{ opacity: 0; transform: scale(1.5) rotate(-5deg); transition: opacity .25s ease 1.9s, transform .35s cubic-bezier(.3,1.6,.5,1) 1.9s; }
  .js .press.in .seal{ opacity: 1; transform: rotate(-5deg); }
}

/* 校样对比 */
.proofs{ display: grid; gap: 18px; margin-top: 28px; }
.proof{ position: relative; padding: 22px 20px 22px; box-shadow: inset 0 0 0 1px var(--rule-hi); }
.proof .label{ display: flex; justify-content: space-between; gap: 12px; }
.proof .path{ font-family: var(--mono); font-size: 14px; margin-top: 16px; color: var(--ink-2); }
.proof .code{ font-family: var(--serif-en); font-size: clamp(64px, 18vw, 104px); line-height: .95; margin-top: 12px; }
.proof small{ display: block; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.proof-void{ color: var(--stone); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(23,22,20,.04) 9px 10px); }
.proof-void .code{ color: var(--stone); text-decoration: line-through; text-decoration-thickness: 3px; }
.proof-void .code + small{ font-family: var(--mono); font-size: 12.5px; }
.proof-pass{ background: var(--paper-hi); box-shadow: inset 0 0 0 1.5px var(--ink); }
.proof-pass .code{ color: var(--ink); }
.proof-pass .seal{ position: absolute; right: 18px; bottom: 20px; width: 50px; height: 50px; font-size: 17px; transform: rotate(-6deg); }
@media (min-width: 720px){ .proofs{ grid-template-columns: 1fr 1fr; } }

/* ============================================================
   06 THE FOUNDATION —— 唯一一块黑底：拓本，白字黑地
   ============================================================ */
.foundation{
  background-color: var(--ink); background-image: var(--grain-paper), var(--stone-cloud); background-size: 220px, cover; background-repeat: repeat, no-repeat;
  color: var(--paper); border-top: 0;
}
.foundation .label{ color: var(--stone); }
.foundation .sec-glyph{ border-color: var(--rule-inv); }
.foundation .sec-lede{ color: rgba(244,241,233,.72); }
.found-quote{
  font-family: var(--serif-cn); font-weight: 700;
  font-size: clamp(28px, 7vw, 64px); line-height: 1.35;
  padding: 36px 0 44px; border-top: 1px solid var(--rule-inv);
}
.found-quote span{ display: block; }
.found-quote span + span{ color: var(--stone); }
.found-grid{ display: grid; border-top: 1px solid var(--rule-inv); }
.found-grid > div{ padding: 22px 0; border-bottom: 1px solid var(--rule-inv); display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; }
.found-grid .no{ grid-row: 1 / span 2; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding-top: 9px; color: #C9604E; }
.found-grid dt{ font-family: var(--serif-en); font-size: 30px; line-height: 1.15; }
.found-grid dd{ font-size: 14.5px; color: rgba(244,241,233,.72); line-height: 1.7; }
@media (min-width: 720px){
  .found-grid{ grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px){
  .found-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   07 FEATURES —— 目录
   ============================================================ */
.tabs{ display: none; }
.js .tabs{
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px){ .js .tabs{ margin-inline: 0; padding-inline: 0; } }
.tabs::-webkit-scrollbar{ display: none; }
.tab{
  flex: none; appearance: none; background: none; border: 0; cursor: pointer;
  padding: 14px 16px 13px; margin-bottom: -1px; color: var(--ink-2);
  border-bottom: 2px solid transparent; font: inherit; text-align: left;
}
.tab .label{ display: block; }
.tab .cn{ font-family: var(--serif-cn); font-weight: 700; font-size: 20px; line-height: 1.4; }
.tab[aria-selected="true"]{ color: var(--ink); border-bottom-color: var(--ink); }
.tab[aria-selected="true"] .label{ color: var(--vermilion); }
.tab:first-child{ padding-left: 0; }

.panel{ padding-top: 8px; }
.panel + .panel{ margin-top: 40px; }
.js .panel + .panel{ margin-top: 0; }
.js .panel[hidden]{ display: none; }
.panel-h{ font-family: var(--serif-cn); font-size: 24px; font-weight: 700; margin: 16px 0 4px; }
.js .panel-h{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.feat-top{ display: grid; counter-reset: f; }
.feat-top li{ counter-increment: f; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.feat-top li::before{ content: counter(f, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: 11px; color: var(--vermilion); padding-top: 6px; letter-spacing: .08em; }
.feat-top h3{ font-family: var(--serif-cn); font-size: 19px; font-weight: 700; line-height: 1.5; }
.feat-top p{ color: var(--ink-2); font-size: 15px; }
.feat-more{ margin-top: 6px; }
.feat-more summary{
  list-style: none; cursor: pointer; display: inline-flex; gap: 10px; align-items: center;
  padding: 14px 0; font-size: 14px; font-weight: 600;
}
.feat-more summary::-webkit-details-marker{ display: none; }
.feat-more summary::after{ content: "+"; font-family: var(--mono); font-weight: 400; font-size: 16px; }
.feat-more[open] summary::after{ content: "−"; }
.feat-all{ display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.feat-all li{ font-size: 13.5px; padding: 5px 10px; box-shadow: inset 0 0 0 1px var(--rule-hi); background: var(--paper-hi); }
.feat-foot{ margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.feat-foot a{ border-bottom: 1px solid var(--rule-hi); }
@media (min-width: 900px){
  .feat-top{ grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.js .panel:not([hidden]){ animation: rub-in-soft .5s var(--ease) both; }

/* ============================================================
   08 EDITIONS
   ============================================================ */
.ed-list{ border-top: 1px solid var(--ink); }
.ed a{
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.ed a::before{ /* 悬停：墨从左侧推入一条细线 */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.ed a:hover::before{ transform: none; }
.ed-house{ grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.ed-no{ font-family: var(--serif-en); font-size: clamp(48px, 13vw, 92px); line-height: 1; letter-spacing: -.01em; }
.ed-date{ align-self: end; padding-bottom: 10px; text-align: right; }
.ed-sum{ grid-column: 1 / -1; color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.ed-go{ grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.stamp{
  display: inline-block; padding: 2px 7px 1px; border: 1.5px solid var(--vermilion); color: var(--vermilion);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.5;
}
.ed-all{ display: inline-flex; margin-top: 32px; }
@media (min-width: 1000px){
  .ed a{ grid-template-columns: 2fr 3fr 2fr 5fr auto; align-items: baseline; gap: 0 28px; padding: 30px 0; }
  .ed-house{ grid-column: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .ed-no{ font-size: 64px; }
  .ed-date{ text-align: left; padding: 0; align-self: baseline; }
  .ed-sum{ grid-column: auto; }
  .ed-go{ grid-column: auto; text-align: right; margin: 0; }
}

/* ============================================================
   09 GET THE PRINT
   ============================================================ */
.get-grid{ display: grid; gap: 30px; }
.pp{
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px;
  padding: 22px 22px 22px; min-height: 340px; align-content: space-between;
  border: 2px solid var(--ink); background: var(--paper-hi);
  transition: color .45s var(--ease);
}
.pp::before{ content: ""; position: absolute; inset: 8px; border: 1px solid var(--rule-hi); pointer-events: none; transition: border-color .45s; }
.pp::after{ /* 墨从底部漫上来 */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 180%; aspect-ratio: 1; border-radius: 50%;
  background-color: var(--ink); background-image: var(--grain-paper); background-size: 220px;
  transform: translate(-50%, 100%) scale(.2); transition: transform .8s var(--ease);
}
.pp:hover, .pp:focus-visible{ color: var(--paper); }
.pp:hover::after, .pp:focus-visible::after{ transform: translate(-50%, 45%) scale(1.1); }
.pp:hover::before{ border-color: var(--rule-inv); }
.pp:hover .label, .pp:hover .pp-meta{ color: rgba(244,241,233,.7); }
.pp-top{ display: flex; justify-content: space-between; gap: 12px; }
.pp-os{ position: relative; justify-self: start; font-family: var(--serif-en); font-size: clamp(88px, 26vw, 150px); line-height: .9; margin-top: 28px; }
.pp-os::before{ /* 印版上的字是反的 */
  content: attr(data-ghost); position: absolute; inset: 0; transform: scaleX(-1) translate(-3%, 5%);
  color: transparent; -webkit-text-stroke: 1px var(--stone-lo); z-index: -1; opacity: .55; white-space: nowrap;
}
.pp-chan{ font-family: var(--serif-cn); font-weight: 700; font-size: 22px; line-height: 1.4; }
.pp-meta{ font-size: 14px; color: var(--ink-2); transition: color .45s; }
.pp-act{ display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid currentColor; font-weight: 600; }
.pp-act .arrow{ font-family: var(--mono); }
.get-note{ margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.get-note a{ border-bottom: 1px solid var(--rule-hi); }
@media (min-width: 800px){ .get-grid{ grid-template-columns: 1fr 1fr; gap: 40px; } .pp{ min-height: 420px; padding: 30px; } }

/* ============================================================
   10 FOOTER
   ============================================================ */
.foot{ border-top: 1.5px solid var(--ink); padding: 56px 0 40px; }
.foot-grid{ display: grid; gap: 32px; }
.foot-mark{ display: flex; align-items: center; gap: 14px; }
.foot-glyph{
  display: grid; place-items: center; width: 56px; height: 56px;
  background-color: var(--ink); background-image: var(--grain-paper); background-size: 120px;
  color: var(--paper); font-family: var(--serif-cn); font-weight: 900; font-size: 34px; line-height: 1;
}
.foot-word{ font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: .42em; }
.foot-rom{ margin-top: 14px; }
.foot-line{ font-family: var(--serif-cn); font-weight: 600; font-size: 20px; margin-top: 6px; }
.foot-nav{ display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a{ font-size: 14.5px; font-weight: 600; border-bottom: 1px solid transparent; }
.foot-nav a:hover{ border-bottom-color: var(--ink); }
.foot-legal{ font-size: 12.5px; color: var(--ink-2); line-height: 1.8; max-width: 70ch; }
@media (min-width: 900px){
  .foot-grid{ grid-template-columns: 5fr 7fr; align-items: end; }
  .foot-nav{ justify-content: flex-end; }
  .foot-legal{ grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); max-width: none; }
}

/* ============================================================
   移动端顺序：石 → Hero → 截图 → 原则 → 印刷机 → 地基 → …… → 下载
   名字由来挪到地基之后
   ============================================================ */
@media (max-width: 999px){
  main{ display: flex; flex-direction: column; }
  main > .hero{ order: 1; } main > #prints{ order: 2; } main > #principles{ order: 3; }
  main > #press{ order: 4; } main > #foundation{ order: 5; } main > #origin{ order: 6; }
  main > #features{ order: 7; } main > #editions{ order: 8; } main > #get{ order: 9; }
}

/* ============================================================
   EDITIONS PAGE
   ============================================================ */
.arc-head{ padding-block: 48px 40px; }
.arc-head .sec-title{ margin-top: 18px; }
.arc-head .sec-sub{ margin-top: 12px; }
.arc-head .sec-lede{ margin-top: 16px; }
.arc-grid{ display: grid; gap: 40px; padding-bottom: 96px; }
.arc-grid > *{ min-width: 0; }
.arc-index{ display: flex; gap: 6px; flex-wrap: wrap; }
.arc-index a{ font-family: var(--mono); font-size: 12.5px; padding: 5px 9px; box-shadow: inset 0 0 0 1px var(--rule-hi); background: var(--paper-hi); }
.arc-index a:hover{ background: var(--ink); color: var(--paper); }
.edition{ border-top: 1.5px solid var(--ink); padding-top: 22px; scroll-margin-top: 72px; }
.edition + .edition{ margin-top: 72px; }
.edition-head{ display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; }
.edition-head .ed-house{ grid-column: 1 / -1; }
.edition-head .ed-no{ font-size: clamp(56px, 15vw, 120px); }
.edition-intro{ margin-top: 20px; color: var(--ink-2); max-width: 62ch; }
.edition-intro + .edition-intro{ margin-top: 12px; }
.ed-items{ display: grid; margin-top: 28px; border-top: 1px solid var(--rule); counter-reset: it; }
.ed-items li{ counter-increment: it; padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; }
.ed-items li::before{ content: counter(it, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: 11px; color: var(--vermilion); padding-top: 6px; }
.ed-items h3{ font-family: var(--serif-cn); font-size: 19px; font-weight: 700; line-height: 1.5; }
.ed-items p{ font-size: 15px; color: var(--ink-2); line-height: 1.8; }
@media (min-width: 1000px){
  .arc-grid{ grid-template-columns: 3fr 9fr; column-gap: 56px; align-items: start; }
  .arc-index{ position: sticky; top: 88px; flex-direction: column; gap: 0; }
  .arc-index a{ box-shadow: none; background: none; padding: 7px 0; border-bottom: 1px solid var(--rule); }
  .arc-index a:hover{ background: none; color: var(--vermilion); }
  .ed-items{ grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- 翻版：跨页切换 ---------- */
@view-transition{ navigation: auto; }
::view-transition-old(root){ animation: vt-out .32s ease both; }
::view-transition-new(root){ animation: vt-in .5s var(--ease) both; }
@keyframes vt-out{ to{ opacity: 0; filter: blur(6px); } }
@keyframes vt-in{ from{ opacity: 0; filter: blur(8px); } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation: none !important; transition: none !important; }
  .js .rv, .js .plate.rv, .js .plate.rv > *{ opacity: 1; filter: none; transform: none; clip-path: none; }
  @view-transition{ navigation: none; }
}

/* ============================================================
   DOC PAGE（隐私政策等长文）
   ============================================================ */
.doc-meta{ display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.doc-meta span{ padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--rule); }
.doc-meta span:last-child{ border: 0; }
.doc-toc a{ display: flex; gap: 10px; font-family: var(--sans); font-size: 13.5px; }
.doc-toc .no{ font-family: var(--mono); font-size: 11px; padding-top: 2px; }
.doc{ max-width: 720px; font-size: 16px; line-height: 1.85; }
.doc-lede{
  font-family: var(--serif-cn); font-weight: 600; font-size: clamp(20px, 4.8vw, 26px); line-height: 1.6;
  padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1.5px solid var(--ink);
}
.doc-lede strong{ font-weight: 900; }
.doc h2{
  display: flex; align-items: baseline; gap: 12px; scroll-margin-top: 72px;
  font-family: var(--serif-cn); font-weight: 700; font-size: 24px; line-height: 1.4;
  margin: 56px 0 16px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.doc h2 .n{ font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--vermilion); }
.doc p{ color: var(--ink-2); }
.doc p + p, .doc ul + p, .doc p + ul, .doc ul + ul{ margin-top: 14px; }
.doc strong{ color: var(--ink); font-weight: 600; }
.doc ul{ display: grid; gap: 8px; }
.doc li{ position: relative; padding-left: 20px; color: var(--ink-2); }
.doc li::before{ content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1.5px; background: var(--ink); }
.doc a{ color: var(--ink); border-bottom: 1px solid var(--rule-hi); transition: border-color .2s; }
.doc a:hover{ border-bottom-color: var(--vermilion); }
.doc code{ font-family: var(--mono); font-size: .86em; padding: 1px 5px; background: var(--paper-lo); color: var(--ink); overflow-wrap: anywhere; }
.card{ position: relative; padding: 22px 20px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule-hi); }
.card > * + *{ margin-top: 12px; }
.card-seal::after{
  content: "印"; position: absolute; right: 14px; top: -14px;
  display: grid; place-items: center; width: 30px; height: 30px; background: var(--paper);
  border: 2px solid var(--vermilion); color: var(--vermilion);
  font-family: var(--serif-cn); font-weight: 900; font-size: 16px; line-height: 1; transform: rotate(-5deg);
}
.tbl-scroll{ overflow-x: auto; margin: 18px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); }
.doc table{ width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.doc th{ text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding: 0 14px 10px 0; border-bottom: 1.5px solid var(--ink); }
.doc td{ vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.doc td:nth-child(-n+2), .doc th:nth-child(-n+2){ white-space: nowrap; }
.cell-note{ font-size: 12px; color: var(--stone); }
@media (min-width: 720px){ .tbl-scroll{ margin-inline: 0; padding-inline: 0; } }
@media (max-width: 999px){ .doc-toc{ display: none; } }
