/* KeKe 刻刻 — marketing site, shared styles
 * 纸色底 + 墨黑 + 朱印红
 */

:root {
  /* Paper field */
  --paper:        #EFEAE0;
  --paper-deep:   #E6DFD0;
  --paper-soft:   #F6F2E9;
  --paper-edge:   #D5CDB8;

  /* Ink */
  --ink:          #1A1814;
  --ink-2:        #3A352E;
  --ink-3:        #6E665A;
  --ink-4:        #9C9588;
  --ink-line:     rgba(26,24,20,0.12);
  --ink-line-2:   rgba(26,24,20,0.20);

  /* Cinnabar 朱印红 */
  --vermilion:    #B8392E;
  --vermilion-2:  #D04A3D;
  --vermilion-3:  #8E2A22;
  --vermilion-soft:rgba(184,57,46,0.10);

  --ok:           #5A8C6E;

  /* Typography */
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-1: 4px; --r-2: 8px; --r-3: 14px; --r-4: 22px; --r-pill: 999px;

  --shadow-card: 0 0 0 0.5px rgba(26,24,20,0.06), 0 2px 4px rgba(26,24,20,0.04), 0 24px 50px -28px rgba(26,24,20,0.30);
  --shadow-device: 0 2px 6px rgba(26,24,20,0.10), 0 40px 80px -36px rgba(26,24,20,0.48);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { 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(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain */
body.grain {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26,24,20,0.022) 1px, transparent 0),
    radial-gradient(circle at 13px 9px, rgba(26,24,20,0.016) 1px, transparent 0);
  background-size: 14px 14px, 22px 22px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Type primitives ---- */
.serif { font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; }
.mono  { font-family: var(--mono); font-feature-settings: "tnum"; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermilion);
  font-weight: 500;
}
.eyebrow.muted { color: var(--ink-4); }

h1, h2, h3 { font-family: var(--serif); font-weight: 900; letter-spacing: -0.025em; margin: 0; line-height: 1.04; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

/* ---- Cinnabar seal mark ---- */
.seal {
  display: inline-grid;
  place-items: center;
  background: var(--vermilion);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-3deg);
  position: relative;
  flex: none;
}
.seal::before {
  /* worn corner chips */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--paper) 0 1.5px, transparent 1.5px) top left / 7px 7px no-repeat,
    linear-gradient(-45deg, var(--paper) 0 1.5px, transparent 1.5px) bottom right / 6px 6px no-repeat;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 0.5px solid var(--ink-line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .seal { width: 30px; height: 30px; font-size: 20px; border-radius: 2px; }
.brand .seal span { transform: translateY(0.5px); }
.brand .word { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: -0.04em; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  padding: 4px 0; position: relative; transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--vermilion); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav a:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header-tools { margin-left: 8px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; padding: 3px;
  background: rgba(26,24,20,0.06);
  border-radius: var(--r-pill);
  border: 0.5px solid var(--ink-line);
}
.lang-toggle button {
  appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-3); padding: 5px 11px; border-radius: var(--r-pill);
  transition: background .15s, color .15s;
}
.lang-toggle button.active {
  background: var(--paper-soft); color: var(--ink);
  box-shadow: 0 0 0 0.5px var(--ink-line-2), 0 1px 2px rgba(26,24,20,0.06);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--r-pill); cursor: pointer;
  padding: 13px 24px; transition: transform .12s ease, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 10px 24px -10px rgba(26,24,20,0.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 0.5px solid var(--ink-line-2); }
.btn-ghost:hover { background: rgba(26,24,20,0.04); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 11px 20px 11px 17px;
  transition: transform .12s, box-shadow .2s; cursor: pointer;
  position: relative;
}
.appstore:hover { box-shadow: 0 14px 30px -12px rgba(26,24,20,0.55); }
.appstore:active { transform: scale(0.98); }
.appstore svg { flex: none; }
.appstore .as-text { display: grid; line-height: 1.15; text-align: left; }
.appstore .as-small { font-size: 11px; opacity: 0.8; font-weight: 500; letter-spacing: 0.02em; }
.appstore .as-big { font-size: 19px; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }
.appstore .as-badge {
  position: absolute; top: -9px; right: -9px;
  background: var(--vermilion); color: var(--paper);
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: var(--r-pill);
  transform: rotate(-3deg);
  box-shadow: 0 4px 10px -4px rgba(184,57,46,0.6);
}

/* ---- Device frame ---- */
.device {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 1170 / 2532;
  background: #0d0c0a;
  border-radius: 44px;
  padding: 9px;
  box-shadow: var(--shadow-device);
  position: relative;
}
.device::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 44px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 2px rgba(0,0,0,0.5);
  pointer-events: none;
}
.device .screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background-color: var(--paper);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- Footer ---- */
.site-footer {
  border-top: 0.5px solid var(--ink-line);
  background: var(--paper-deep);
  padding: 56px 0 40px;
  margin-top: 0;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start;
}
.footer-brand { max-width: 280px; }
.footer-brand .row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .seal { width: 26px; height: 26px; font-size: 17px; border-radius: 2px; }
.footer-brand .word { font-family: var(--serif); font-weight: 900; font-size: 19px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; margin: 0; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; margin: 0 0 16px;
}
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--vermilion); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 0.5px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Lang visibility ---- */
[data-lang-only="en"] { display: none; }
html[lang="en"] [data-lang-only="en"] { display: revert; }
html[lang="en"] [data-lang-only="zh"] { display: none; }

/* Mobile nav hide */
@media (max-width: 860px) {
  .nav { display: none; }
}

/* ---- Striped placeholder ---- */
.placeholder {
  background:
    repeating-linear-gradient(45deg, var(--paper-edge) 0 8px, transparent 8px 16px),
    var(--paper-soft);
  border: 0.5px solid var(--ink-line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-4); text-transform: uppercase;
}

/* ---- Legal / doc pages ---- */
.doc {
  max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 100px;
}
.doc .eyebrow { margin-bottom: 14px; display: block; }
.doc h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 14px; }
.doc .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); margin-bottom: 44px; }
.doc h2 { font-size: 23px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; font-family: var(--sans); font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { font-weight: 700; color: var(--ink); }
.doc .lead { font-size: 18.5px; color: var(--ink); line-height: 1.7; }
.doc a.inline { color: var(--vermilion); border-bottom: 1px solid var(--vermilion-soft); }
.doc-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 30px;
}
.doc-back:hover { color: var(--vermilion); }
.callout {
  background: var(--paper-soft); border: 0.5px solid var(--ink-line);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--r-2); padding: 18px 22px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ============ HERO ============ */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 8.2vw, 92px); line-height: 0.98; }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.6;
  max-width: 30em; margin: 26px 0 34px; text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-meta { margin-top: 28px; font-size: 12.5px; color: var(--ink-4); letter-spacing: 0.02em; }

.hero-device { position: relative; display: grid; place-items: center; }
.hero-device .device { transform: rotate(1.4deg); }
.hero-chop {
  position: absolute; left: -6%; bottom: 4%;
  width: 76px; height: 76px; display: grid; place-items: center;
  background: var(--vermilion); color: var(--paper);
  font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1;
  transform: rotate(-7deg); border-radius: 3px;
  box-shadow: 0 16px 30px -14px rgba(184,57,46,0.6);
}
.hero-chop span { transform: translateY(2px); }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-title { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; text-wrap: balance; }

/* ============ FEATURES ============ */
.features { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.feature-row {
  display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(32px, 6vw, 88px);
  align-items: center; padding: clamp(28px, 4vw, 48px) 0;
}
.feature-row.reverse { grid-template-columns: 0.82fr 1fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-device { order: 1; }
.feature-device { display: grid; place-items: center; }
.feature-device .device { --w: 290px; }
.feat-num { font-size: 13px; color: var(--vermilion); font-weight: 600; letter-spacing: 0.04em; margin: 0 0 18px; }
.feat-num span:first-child { font-size: 15px; }
.feature-text h3 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.08; margin-bottom: 20px; }
.feat-body { color: var(--ink-2); font-size: 17.5px; line-height: 1.66; max-width: 30em; margin: 0 0 26px; text-wrap: pretty; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; }
.chips li {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  background: var(--paper-deep); border: 0.5px solid var(--ink-line);
  padding: 7px 13px; border-radius: var(--r-pill);
}

/* ============ SCENES ============ */
.scenes { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-deep); border-block: 0.5px solid var(--ink-line); }
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene-card {
  background: var(--paper-soft); border: 0.5px solid var(--ink-line);
  border-radius: var(--r-3); padding: 28px 24px 26px;
  box-shadow: var(--shadow-card);
}
.scene-chop {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--vermilion); color: var(--paper);
  font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1;
  border-radius: 3px; transform: rotate(-3deg); margin-bottom: 22px;
}
.scene-chop span { transform: translateY(1px); }
.scene-card h4 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.scene-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; margin: 0; text-wrap: pretty; }

/* ============ STEPS ============ */
.steps { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 52px); }
.step { position: relative; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.step-num { font-size: 13px; color: var(--vermilion); font-weight: 600; letter-spacing: 0.1em; display: block; margin-bottom: 16px; }
.step h4 { font-family: var(--serif); font-weight: 900; font-size: 26px; margin: 0 0 12px; }
.step p { color: var(--ink-2); font-size: 16px; line-height: 1.62; margin: 0; max-width: 22em; text-wrap: pretty; }

/* ============ PRIVACY ============ */
.privacy { background: var(--ink); color: var(--paper); padding: clamp(60px, 9vw, 110px) 0; }
.privacy-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.privacy .eyebrow { color: var(--vermilion-2); margin-bottom: 18px; display: block; }
.privacy h2 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.08; color: var(--paper); margin-bottom: 22px; text-wrap: balance; }
.privacy-sub { color: rgba(239,234,224,0.72); font-size: 17.5px; line-height: 1.66; max-width: 32em; margin: 0 0 30px; text-wrap: pretty; }
.btn-ghost.on-ink { color: var(--paper); border-color: rgba(239,234,224,0.28); }
.btn-ghost.on-ink:hover { background: rgba(239,234,224,0.08); }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.privacy-list li {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(18px, 2.4vw, 23px); font-family: var(--serif); font-weight: 700;
  padding: 18px 0; border-bottom: 0.5px solid rgba(239,234,224,0.14);
}
.privacy-list li:first-child { border-top: 0.5px solid rgba(239,234,224,0.14); }
.privacy-list .dot { width: 8px; height: 8px; background: var(--vermilion-2); border-radius: 50%; flex: none; transform: rotate(45deg); }

/* ============ FAQ ============ */
.faq { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.faq-list { border-top: 0.5px solid var(--ink-line); }
.faq details { border-bottom: 0.5px solid var(--ink-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 2.4vw, 23px);
  letter-spacing: -0.01em; color: var(--ink); transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--vermilion); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 26px; color: var(--ink-3); transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; color: var(--vermilion); }
.faq-a { padding: 0 60px 28px 0; }
.faq-a p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; margin: 0; max-width: 50em; }

/* ============ DOWNLOAD ============ */
.download { padding: clamp(64px, 10vw, 128px) 0; background: var(--paper-soft); border-top: 0.5px solid var(--ink-line); }
.download-inner { text-align: center; display: grid; justify-items: center; }
.seal.big { width: 64px; height: 64px; font-size: 40px; border-radius: 4px; margin-bottom: 30px; }
.seal.big span { transform: translateY(2px); }
.download h2 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 18px; }
.download p { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 26em; margin: 0 0 36px; text-wrap: pretty; }
.dl-meta { margin-top: 24px; font-size: 12.5px; color: var(--ink-4); letter-spacing: 0.04em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-device { order: -1; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-row .feature-text, .feature-row.reverse .feature-text { order: 1; }
  .feature-row .feature-device, .feature-row.reverse .feature-device { order: 2; }
  .feature-text { text-align: center; }
  .feat-body { margin-inline: auto; }
  .chips { justify-content: center; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; gap: 40px; }
  .step-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .scene-grid { grid-template-columns: 1fr; }
  .hero-chop { width: 60px; height: 60px; font-size: 36px; }
}

/* ============ PAIN HOOK ============ */
.pain { padding: clamp(40px, 6vw, 76px) 0 clamp(8px, 2vw, 20px); }
.pain-inner {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.pain .eyebrow { margin-bottom: 14px; display: block; }
.pain h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; max-width: 8em; }
.pain-body { color: var(--ink-2); font-size: clamp(17px, 1.9vw, 20px); line-height: 1.74; text-wrap: pretty; }
.pain-body strong { color: var(--ink); font-weight: 700; }
.pain-body .turn {
  display: block; margin-top: 22px; padding-top: 22px;
  border-top: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.4;
}

/* feature illustration panels (replace repeated phone frames) */
.feat-illus { display: grid; place-items: center; }
.ba-feature {
  --ar: 4 / 5; width: min(100%, 360px);
  border-radius: var(--r-3); box-shadow: var(--shadow-card);
}
.a4-mock {
  width: min(100%, 360px); aspect-ratio: 210 / 297;
  background: var(--paper-soft); border: 0.5px solid var(--ink-line);
  border-radius: var(--r-2); box-shadow: var(--shadow-card);
  position: relative; padding: 26px 22px 22px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.a4-mock::before {
  content: "A4 · 21.0 × 29.7 cm"; position: absolute; top: 8px; left: 22px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-4);
}
.a4-cell {
  position: relative; background: #fff; border: 0.5px solid var(--ink-line);
  display: grid; place-items: center; overflow: hidden; border-radius: 2px;
}
.a4-cell img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.a4-cell::after {
  content: attr(data-size); position: absolute; bottom: 5px; right: 5px;
  font-family: var(--mono); font-size: 8.5px; color: var(--ink-3);
  background: var(--paper-soft); padding: 1px 5px; border-radius: var(--r-pill);
  border: 0.5px solid var(--ink-line);
}
.a4-cell.span2 { grid-column: span 2; }

/* ============ COMPARE SLIDER (before/after) ============ */
.ba {
  position: relative; aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden; background: var(--ink); user-select: none;
  border-radius: inherit; touch-action: pan-y; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--paper); transform: translateX(-1px);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25); pointer-events: none;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 38px; height: 38px; transform: translate(-50%, -50%);
  background: var(--paper); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 0 0 0.5px var(--ink-line);
  display: grid; place-items: center; pointer-events: none;
}
.ba .ba-knob::before {
  content: "‹ ›"; font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--ink-2); letter-spacing: -1px;
}
.ba .ba-tag {
  position: absolute; bottom: 12px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.ba .ba-tag.is-before { left: 12px; background: rgba(26,24,20,0.62); color: var(--paper); }
.ba .ba-tag.is-after  { right: 12px; background: rgba(246,242,233,0.85); color: var(--ink); }

/* ============ STYLES MODULE (一张图三种刻法) ============ */
.styles { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper-deep); border-block: 0.5px solid var(--ink-line); }
.styles-grid {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 4vw, 52px); align-items: start;
}
.style-source { position: relative; }
.style-source figure {
  margin: 0; border-radius: var(--r-3); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--ink);
}
.style-source img { width: 100%; display: block; }
.style-source figcaption {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(246,242,233,0.9); color: var(--ink); padding: 6px 12px; border-radius: var(--r-pill);
}
.style-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.style-card {
  background: var(--paper-soft); border: 0.5px solid var(--ink-line);
  border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.style-card .sc-img { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 0.5px solid var(--ink-line); }
.style-card .sc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.style-card .sc-body { padding: 16px 18px 18px; }
.style-card .sc-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; flex-wrap: wrap; }
.style-card .sc-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.style-card .sc-en { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.style-card .sc-desc { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; margin: 0; text-wrap: pretty; }
.style-card.smart { background: var(--ink); color: var(--paper); justify-content: center; }
.style-card.smart .sc-body { padding: 22px 20px; }
.style-card.smart .sc-name { color: var(--paper); }
.style-card.smart .sc-en { color: var(--vermilion-2); }
.style-card.smart .sc-desc { color: rgba(239,234,224,0.74); font-size: 14px; }
.style-card.smart .smart-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border: 1.5px solid var(--vermilion-2); border-radius: 50%;
  color: var(--vermilion-2); font-family: var(--serif); font-weight: 900; font-size: 20px;
}

/* ============ GALLERY (任意图都能转) ============ */
.gallery { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.ba-card {
  background: var(--paper-soft); border: 0.5px solid var(--ink-line);
  border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-card);
}
.ba-card .ba { border-radius: 0; }
.ba-cap { padding: 16px 18px 18px; }
.ba-cap .row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ba-cap .subject { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.ba-cap .style-chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--vermilion); background: var(--vermilion-soft);
  padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.ba-cap p { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; margin: 0; text-wrap: pretty; }

/* ============ SUBSCRIBE ============ */
.subscribe { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 460px; margin: 0 auto; }
.subscribe form { display: flex; gap: 10px; width: 100%; }
.subscribe input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 0.5px solid var(--ink-line-2); border-radius: var(--r-pill);
  padding: 13px 20px; transition: border-color .15s, box-shadow .15s;
}
.subscribe input[type="email"]:focus {
  outline: none; border-color: var(--vermilion);
  box-shadow: 0 0 0 3px var(--vermilion-soft);
}
.subscribe .btn { flex: none; }
.subscribe .sub-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.02em; }
.subscribe .sub-ok {
  display: none; font-size: 15px; color: var(--ok); font-weight: 600;
  align-items: center; gap: 8px;
}
.subscribe.sent form { display: none; }
.subscribe.sent .sub-ok { display: flex; }

.badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.appstore.disabled, .appstore.gplay { opacity: 0.92; }
.appstore.gplay { background: var(--ink-2); }
.appstore.is-soon { cursor: default; }
.appstore.is-soon:hover { box-shadow: none; }
.appstore.is-soon:active { transform: none; }

/* ============ MORE RESPONSIVE ============ */
@media (max-width: 940px) {
  .pain-inner { grid-template-columns: 1fr; gap: 8px; }
  .styles-grid { grid-template-columns: 1fr; gap: 32px; }
  .style-source { max-width: 460px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .style-cards { grid-template-columns: 1fr 1fr; }
  .subscribe form { flex-direction: column; }
  .subscribe .btn { width: 100%; justify-content: center; }
}
