/* 文枢 — project page. Paper and ink green, one seal red for what is urgent. No external fonts, frameworks or CDNs. */
:root {
  --paper: #f4f1e8;
  --paper-2: #ebe6d8;
  --white: #fffdf7;
  --ink: #1d2823;
  --muted: #6f7a72;
  --line: #e0ddd1;
  --green: #234f41;
  --green-deep: #1a3d32;
  --green-pale: #e5ede1;
  --lime: #c9dd8f;
  --hl: #e9d27a;
  --pen: #b8442c;
  --seal: #b8442c;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --wrap: min(1180px, calc(100vw - 48px));
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
code { font: 0.86em var(--mono); background: #ecebe1; padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 3px solid #8cae78; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.nw { white-space: nowrap; }
@media (max-width: 1020px) { .hero .nw { white-space: normal; } }
mark {
  color: inherit; background: linear-gradient(transparent 58%, var(--hl) 58% 90%, transparent 90%);
  padding: 0 .06em;
}
.u { background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); }
.eyebrow { font: 13px var(--mono); letter-spacing: .28em; text-transform: uppercase; color: #7f9375; margin: 0 0 18px; }
.hand { font-family: var(--hand); color: var(--pen); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 24px; border-radius: 12px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 24px #28574530; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn small { font-weight: 400; opacity: .75; font-size: 13px; }
.btn:hover { color: #fff; background: var(--green-deep); transform: translateY(-1px); box-shadow: 0 14px 30px #28574540; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px #b9cbb0; }
.btn-ghost:hover { background: var(--green-pale); color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-small { padding: 8px 16px; font-size: 14px; box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2)); background: #f7f6efe8;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.2px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* Hero: a page from a notebook */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center;
  padding: 72px max(24px, calc((100vw - 1180px) / 2)) 96px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 calc(max(24px, (100vw - 1180px) / 2) - 28px), #ecd3c8 0 calc(max(24px, (100vw - 1180px) / 2) - 26px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 39px, #e9e6da 39px 40px);
}
.hero h1 { font: 600 clamp(34px, 3.6vw, 52px)/1.32 var(--serif); letter-spacing: -1.5px; margin-bottom: 26px; }
.lede { font-size: 19px; color: #4d584f; max-width: 34em; }
.lede strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.meta li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--white); border-radius: 30px; padding: 3px 12px; }
.hero-shots { position: relative; margin: 0; aspect-ratio: 1.22; }
.shot { position: absolute; width: 88%; border-radius: 14px; border: 1px solid #dcdfd3; box-shadow: 0 40px 90px #1d33281f, 0 6px 18px #1d33280f; }
.shot-back { right: 0; top: 0; transform: rotate(2.5deg); opacity: .92; }
.shot-front { left: 0; bottom: 4%; transform: rotate(-1.5deg); }
.hero-shots figcaption { position: absolute; right: 4%; bottom: -34px; font-size: 20px; transform: rotate(-2deg); }

/* Film */
.film {
  width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px; align-items: center;
  background: var(--green-deep); color: #eef1e6; border-radius: 28px; padding: 48px;
  box-shadow: 0 40px 100px #1f463733;
}
.film h2 { font: 600 clamp(30px, 3.4vw, 44px)/1.35 var(--serif); margin-bottom: 18px; }
.film mark { background: linear-gradient(transparent 60%, #d0e49266 60% 92%, transparent 92%); }
.film .eyebrow { color: #a9c39a; }
.film p { color: #c9d4c3; }
.film .fine { font-size: 13px; line-height: 1.8; margin-top: 22px; color: #9fb19a; }
.film .fine a { color: #d0e492; }
.film-frame { border-radius: 16px; overflow: hidden; background: #0f1f19; box-shadow: 0 20px 60px #0008; }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* Sections */
.section { width: var(--wrap); margin: 0 auto; padding: 120px 0 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font: 600 clamp(32px, 4vw, 50px)/1.3 var(--serif); letter-spacing: -1px; margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: s; }
.steps li { border-top: 2px solid #cfd9c6; padding-top: 22px; }
.steps li:first-child { border-top-color: var(--green); }
.steps .k { font: 40px/1 var(--serif); color: #b2c0a8; }
.steps li:first-child .k { color: var(--green); }
.steps h3 { font-size: 26px; margin-top: 14px; }
.steps .en { font: 12px var(--mono); letter-spacing: .25em; text-transform: uppercase; color: #8a9683; margin: 2px 0 12px; }
.steps p { font-size: 15px; color: var(--muted); }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.pipeline li {
  position: relative; background: var(--white); border: 1px solid var(--line); padding: 22px 22px 24px;
  margin-right: 26px; border-radius: 14px; min-height: 150px;
}
.pipeline li::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: #9fb093; font-size: 20px; }
.pipeline li:last-child { margin-right: 0; }
.pipeline li:last-child::after { content: none; }
.pipeline b { display: block; font-size: 17px; margin-bottom: 8px; }
.pipeline span { font-size: 14px; color: var(--muted); line-height: 1.7; display: block; }
.pipeline .end { background: var(--green); border-color: var(--green); }
.pipeline .end b, .pipeline .end span { color: #fff; }
.pipeline .end span { opacity: .8; }

.views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.view { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .2s, box-shadow .2s; }
.view:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #2b3a2a14; }
.view .glyph { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-pale); color: var(--green); font-size: 22px; margin-bottom: 18px; }
.view h3 { font-size: 21px; margin-bottom: 10px; }
.view p { font-size: 15px; color: var(--muted); margin: 0; }
.codex { margin-top: 44px; padding: 30px 32px; border-radius: var(--radius); background: var(--paper-2); border: 1px dashed #cfd6c5; }
.codex .eyebrow { margin-bottom: 16px; }
.codex code { background: #e3e8da; }
.bubbles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bubbles li { background: #d9ecc9; border-radius: 16px 16px 4px 16px; padding: 10px 18px; font-size: 16px; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-grid > div { border-left: 3px solid var(--lime); padding: 4px 0 4px 20px; }
.trust-grid h3 { font-size: 19px; margin-bottom: 10px; }
.trust-grid p { font-size: 15px; color: var(--muted); }
.trust-grid strong { color: var(--ink); }

.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; min-width: 0; }
.card h3 { font-size: 22px; margin-bottom: 18px; }
.card h3 small { font: 13px var(--sans); color: var(--muted); margin-left: 8px; font-weight: 400; }
.card p { font-size: 15px; color: var(--muted); margin-top: 18px; }
.numbered { padding-left: 1.3em; margin: 0 0 16px; font-size: 15px; }
.numbered li { margin-bottom: 8px; }
.code { position: relative; background: #1f2a25; border-radius: 12px; }
.code pre { margin: 0; padding: 44px 20px 18px; overflow-x: auto; }
.code code { background: none; padding: 0; color: #e4ecdc; font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; }
.copy {
  position: absolute; top: 10px; right: 10px; font: 12px var(--sans); color: #cfdcc6; background: #ffffff14;
  border: 1px solid #ffffff22; border-radius: 7px; padding: 4px 10px; cursor: pointer;
}
.copy:hover { background: #ffffff26; }
.reqs { margin-top: 26px; padding: 30px 32px; border-radius: 20px; background: var(--green-pale); }
.reqs h3 { font-size: 19px; margin-bottom: 12px; }
.reqs ul { margin: 0 0 16px; padding-left: 1.2em; font-size: 15px; columns: 2; column-gap: 40px; }
.reqs li { margin-bottom: 6px; break-inside: avoid; }
.reqs p { font-size: 14px; color: var(--muted); margin: 0; }

.footer { width: var(--wrap); margin: 130px auto 0; padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 14px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand b { display: block; color: var(--ink); font-size: 16px; }
.footer p { margin: 0; line-height: 1.9; }

/* Reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2), .js .views .reveal:nth-child(2), .js .trust-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3), .js .views .reveal:nth-child(3), .js .trust-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4), .js .views .reveal:nth-child(4), .js .trust-grid .reveal:nth-child(4) { transition-delay: .24s; }
.js .steps .reveal:nth-child(5), .js .trust-grid .reveal:nth-child(5) { transition-delay: .32s; }
.js .trust-grid .reveal:nth-child(6) { transition-delay: .4s; }
.hero-copy > * { animation: rise .8s both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-shots { animation: rise 1s .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-shots { max-width: 640px; }
  .film { grid-template-columns: 1fr; padding: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: 1fr; gap: 26px; }
  .pipeline li { margin-right: 0; min-height: 0; }
  .pipeline li::after { content: "↓"; right: auto; left: 28px; top: auto; bottom: -26px; transform: none; }
  .views { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding-bottom: 72px; }
  .steps, .views, .trust-grid { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
  .film { border-radius: 20px; padding: 24px; }
  .card, .reqs, .codex { padding: 24px 20px; }
  .reqs ul { columns: 1; }
}

/* ---------- 文枢 (2026-11-12) ---------- */
.seal { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--green); color: #f4f1e8;
  font: 700 18px/1 var(--serif); transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.seal.big { width: 44px; height: 44px; font-size: 25px; border-radius: 10px; }
.brand .seal + span { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; }
.hero-board { margin: 0; position: relative; }
.hero-board .shot { position: relative; width: 100%; border-radius: 14px; box-shadow: 0 40px 90px #1d282326, 0 6px 18px #1d282314; transform: rotate(-1.2deg); }
.hero-board figcaption { position: absolute; right: 10px; bottom: -36px; font-size: 18px; transform: rotate(-2deg); }
.problem { text-align: center; }
.problem .nums { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); margin-bottom: 30px; flex-wrap: wrap; }
.problem .nums div { display: flex; flex-direction: column; align-items: center; max-width: 220px; }
.problem .nums b { font: 700 clamp(56px, 8vw, 96px)/1 var(--serif); color: var(--green); }
.problem .nums .hot b { color: var(--seal); }
.problem .nums span { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.problem .nums i { font-style: normal; font-size: 40px; color: #c7cbbf; padding-bottom: 44px; }
.problem h2 { font: 600 clamp(26px, 3.2vw, 38px)/1.5 var(--serif); }
.problem .fine { font-size: 13px; color: var(--muted); margin-top: 16px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps.three { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.ticks b { color: var(--ink); margin-right: 8px; }
.mock { margin: 0; padding: 34px; border-radius: 22px; background: linear-gradient(160deg, #ebe6d8, #e3ddcc); position: relative; }
.notif { border-radius: 16px; background: #fcfbf7; box-shadow: 0 22px 50px #1d282329, 0 0 0 1px #1d28230f; padding: 14px 16px; font-size: 14px; }
.notif .tp { display: flex; gap: 12px; } .notif .tp > div { flex: 1; }
.notif .ic { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--green); color: #f4f1e8; display: grid; place-items: center; font: 700 21px var(--serif); }
.notif .ap { display: flex; justify-content: space-between; font-size: 12px; color: #8a8f88; }
.notif .t { font-weight: 650; font-size: 15.5px; } .notif .su { font-size: 13px; color: var(--seal); font-weight: 600; }
.notif .bt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.notif .bt span { text-align: center; background: #ecebe3; border-radius: 8px; padding: 6px 0; font-size: 13px; font-weight: 600; }
.notif .rp { display: flex; gap: 6px; margin-top: 8px; }
.notif .rp span:first-child { flex: 1; border: 1.5px solid var(--green); border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 14px; }
.notif .rp span:last-child { background: var(--green); color: #fff; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.down { text-align: center; font: 600 15px var(--sans); color: var(--green); margin: 14px 0; }
.prop { border: 1.5px dashed #9fbf8f; background: #f1f6ec; border-radius: 14px; padding: 13px 16px; }
.prop .k { font-size: 12.5px; color: var(--muted); } .prop .v { font-size: 18px; font-weight: 650; color: var(--green); margin: 4px 0 10px; }
.prop .b { display: flex; gap: 8px; } .prop .b span { padding: 5px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--green); color: #fff; }
.prop .b span.n { background: #e4e7df; color: var(--muted); }
.mock figcaption { margin-top: 18px; font-size: 16px; }
.stages { display: grid; gap: 10px; margin: 8px 0 30px; }
.stages > div { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.stages .dots { display: flex; gap: 6px; } .stages .dots i { width: 14px; height: 14px; border-radius: 50%; background: #cfd4c9; }
.stages .go .dots i { background: var(--seal); box-shadow: 0 0 0 4px #b8442c22; }
.stages b { font-weight: 500; } .stages em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 15px; }
.stages .go em { color: var(--seal); }
.trust-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .trust-grid.two { grid-template-columns: 1fr; } }
.legacy { max-width: 860px; opacity: .92; border-top: 1px solid var(--line); }
.legacy h2 { font: 600 24px/1.5 var(--serif); margin-bottom: 12px; }
.legacy p { color: var(--muted); font-size: 15.5px; }
.hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
@media (max-width: 1020px) { .hero { grid-template-columns: 1fr; } }
