/* ==========================================================================
   长镜 · 首页样式
   骨架沿用 Laper：左侧固定导航、白色内容框、两侧斜纹底、分区之间一条斜纹带。
   配色是我们自己的：清冷蓝灰 + 唯一的钴蓝，标题用锋利的宋体。
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f5f0e8;
  --paper: #ffffff;
  --panel: #efe9df;
  --hover: rgba(34, 31, 28, 0.055);
  --line: rgba(34, 31, 28, 0.1);
  --line-strong: rgba(34, 31, 28, 0.2);
  --frame-line: #e0d8ca;

  --ink: #24201d;
  --ink-2: #3d3833;
  --muted: #6b635a;
  --faint: #9a9086;

  --accent: #c8391f;
  --accent-deep: #a82e18;
  --accent-ink: #ffffff;
  --accent-soft: rgba(200, 57, 31, 0.1);

  --hatch: repeating-linear-gradient(135deg, rgba(200, 57, 31, 0.16) 0 1px, transparent 1px 7px);
  --grid: linear-gradient(rgba(34, 31, 28, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 31, 28, 0.07) 1px, transparent 1px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --serif: "Times New Roman", "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --mono: "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;

  --nav: 240px;
  --page: 928px;
  --gutter: 44px;
}

* {
  box-sizing: border-box;
}

/* The icon sprite is an <svg hidden>; the UA [hidden] rule does not reach SVG elements, so it would take 150px at the top. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 15px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "tnum";
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--hatch);
  -webkit-font-smoothing: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(200, 57, 31, 0.35);
  outline-offset: 2px;
}

::selection {
  background: rgba(200, 57, 31, 0.16);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Frame: fixed nav + bordered page
   -------------------------------------------------------------------------- */
.site {
  display: grid;
  grid-template-columns: var(--nav) minmax(0, var(--page));
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  padding: 16px 0 0;
}

.nav {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 16px);
  padding: 20px 16px 0;
  border: 1px solid var(--frame-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  overflow-y: auto;
  scrollbar-width: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 22px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mark {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.footer .mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.links a:hover {
  background: var(--hover);
  color: var(--ink);
}

.spacer {
  flex: 1;
}

.nav-foot {
  margin: 0 -16px;
  border-top: 1px solid var(--frame-line);
}

.thumb {
  position: relative;
  display: block;
  margin: 16px;
  overflow: hidden;
  border: 1px solid var(--frame-line);
  border-radius: 8px;
  background: var(--panel);
  aspect-ratio: 16 / 10;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  opacity: 0.9;
}

.thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 26, 34, 0.55);
  color: #fff;
  transform: translate(-50%, -50%);
}

.thumb .play .icon {
  fill: currentColor;
  stroke: none;
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

/* the thumbnail opens the workspace (no video), so no play button: a fade and a clear label instead */
.thumb .play {
  display: none;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--panel) 92%, transparent));
  pointer-events: none;
}

.thumb-label {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border: 1px solid var(--frame-line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.thumb-label::after {
  content: " →";
  color: var(--accent, #c8391f);
}

.thumb:hover .thumb-label {
  border-color: var(--accent, #c8391f);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.nav-row .btn {
  flex: 1;
  min-height: 32px;
}

.nav-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--frame-line);
}

.nav-cells span {
  padding: 10px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.nav-cells span + span {
  border-left: 1px solid var(--frame-line);
}

.page {
  min-width: 0;
  border: 1px solid var(--frame-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn:hover {
  background: var(--panel);
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn.pill {
  border-radius: 999px;
  padding: 0 18px;
}

.btn.link {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 0 6px;
}

.btn.link:hover {
  color: var(--accent);
  background: transparent;
}

/* --------------------------------------------------------------------------
   News bar + hero
   -------------------------------------------------------------------------- */
.news {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--frame-line);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 13px;
}

.news .tag {
  color: var(--accent);
  font-weight: 600;
}

.news .icon {
  width: 14px;
  height: 14px;
}

.hero {
  position: relative;
  padding: 96px var(--gutter) 72px;
  text-align: center;
  background-image: radial-gradient(60% 55% at 50% 30%, rgba(200, 57, 31, 0.07), transparent 70%);
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.hero .lead {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.prompt {
  position: relative;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.04), 0 24px 60px -30px rgba(34, 31, 28, 0.35);
  text-align: left;
}

.prompt-field {
  position: relative;
  display: block;
}

.prompt textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 4px 2px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.prompt textarea::placeholder {
  color: var(--faint);
}

.typewriter-layer {
  position: absolute;
  inset: 4px 2px;
  pointer-events: none;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  opacity: 0;
}

.prompt.is-typing .typewriter-layer {
  opacity: 1;
}

.prompt.is-typing textarea::placeholder {
  color: transparent;
}

.typing-caret {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.chip:hover {
  background: var(--panel);
}

.chip select {
  appearance: none;
  padding-right: 18px;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 500;
  cursor: pointer;
}

.chip .caret {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.send:hover {
  background: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Bands and grids
   -------------------------------------------------------------------------- */
.band {
  height: 14px;
  border-top: 1px solid var(--frame-line);
  border-bottom: 1px solid var(--frame-line);
  background-image: var(--hatch);
}

.grid {
  display: grid;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid > .cell {
  padding: 26px 24px;
  border-right: 1px solid var(--frame-line);
  border-bottom: 1px solid var(--frame-line);
}

.grid.cols-2 > .cell:nth-child(2n),
.grid.cols-3 > .cell:nth-child(3n),
.grid.cols-4 > .cell:nth-child(4n) {
  border-right: 0;
}

.grid > .cell h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.grid > .cell p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.strip > .cell {
  padding: 22px 24px 24px;
  border-bottom: 0;
}

.strip > .cell h3 {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Showcase
   -------------------------------------------------------------------------- */
.showcase {
  padding: 36px var(--gutter) 40px;
  background-image: radial-gradient(70% 60% at 50% 0%, rgba(200, 57, 31, 0.08), transparent 70%);
}

.frame {
  overflow: hidden;
  border: 1px solid var(--frame-line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.05), 0 40px 80px -40px rgba(34, 31, 28, 0.45);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 48px var(--gutter) 36px;
  border-bottom: 1px solid var(--frame-line);
}

.section-head h2 {
  max-width: 520px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  color: var(--accent);
}

.section-head p {
  max-width: 540px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-head .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 8px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.section-head.center h2 {
  max-width: none;
}

.section-head.split {
  align-items: flex-start;
}

.section-head.split p {
  max-width: 460px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Feature cards with dotted-border screenshots
   -------------------------------------------------------------------------- */
.cards > .cell {
  padding: 32px 36px 36px;
}

.shot {
  display: block;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: var(--pos, 0 0);
  border: 1px solid var(--frame-line);
}

.shot.tall img {
  aspect-ratio: 4 / 3;
}

.text-cells > .cell {
  min-height: 200px;
  padding: 30px 36px;
}

.text-cells > .cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.cards > .cell p br,
.text-cells > .cell p br,
.section-head p br,
.hero .lead br {
  display: none;
}

@media (min-width: 900px) {
  .section-head p br,
  .hero .lead br {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   Formats + statement card
   -------------------------------------------------------------------------- */
.formats-grid > .cell {
  padding: 28px 28px 30px;
  border-bottom: 0;
}

.format img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--frame-line);
  border-radius: 6px;
  filter: saturate(0.6) contrast(1.02);
}

.format h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rules {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.rules li span:first-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 3px;
}

.rules li span:last-child {
  color: var(--ink-2);
}

.statement {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 -1px;
  border: 1px solid var(--frame-line) !important;
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: 28px 28px;
  box-shadow: 0 20px 50px -30px rgba(34, 31, 28, 0.4);
}

.statement .brand-word {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.statement p {
  margin-top: 28px;
  color: var(--ink) !important;
  font-size: 15.5px !important;
  line-height: 1.9 !important;
}

.statement mark {
  padding: 1px 4px;
  background: var(--accent);
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.statement .who {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Doctor
   -------------------------------------------------------------------------- */
.doctor-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.doctor-left {
  border-right: 1px solid var(--frame-line);
}

.doctor-intro {
  padding: 40px 36px 36px;
  border-bottom: 1px solid var(--frame-line);
}

.doctor-intro h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.doctor-intro p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.doctor-intro p br {
  display: none;
}

.acc {
  border-bottom: 1px solid var(--frame-line);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 36px;
  list-style: none;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary:hover {
  background: var(--hover);
}

.acc .plus {
  position: relative;
  width: 12px;
  height: 12px;
}

.acc .plus::before,
.acc .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
}

.acc .plus::before {
  width: 12px;
  height: 1.5px;
}

.acc .plus::after {
  width: 1.5px;
  height: 12px;
  transition: transform 140ms ease;
}

.acc[open] .plus::after {
  transform: rotate(90deg);
}

.acc p {
  padding: 0 36px 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.doctor-right {
  padding: 24px;
  background-image: radial-gradient(70% 60% at 50% 50%, rgba(200, 57, 31, 0.06), transparent 70%);
}

/* --------------------------------------------------------------------------
   Small cards (exports)
   -------------------------------------------------------------------------- */
.small-cards {
  gap: 14px;
  padding: 28px var(--gutter) 36px;
}

.small-cards > .cell,
.grid.small-cards > .cell:nth-child(4n),
.grid.small-cards > .cell:nth-child(2n) {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}

.small-cards > .cell h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.small-cards > .cell p {
  font-size: 12.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Guide cards (stages) and doc cards: grid paper + line art
   -------------------------------------------------------------------------- */
.guide-cards,
.doc-cards {
  gap: 16px;
  padding: 28px var(--gutter) 44px;
}

.guide-cards > .cell,
.doc-cards > .cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px 24px 26px;
  border: 1px solid var(--frame-line);
  border-radius: 4px;
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: 24px 24px;
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.04), 0 14px 30px -22px rgba(34, 31, 28, 0.35);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.guide-cards > .cell:hover,
.doc-cards > .cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.04), 0 20px 36px -22px rgba(34, 31, 28, 0.45);
}

.guide-cards .eyebrow {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.guide-cards .eyebrow b {
  font-weight: 500;
  color: var(--faint);
}

.art {
  width: 120px;
  height: 80px;
  margin: 14px 0 10px auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.guide-cards > .cell h3,
.doc-cards > .cell h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-cards > .cell p,
.doc-cards > .cell p {
  font-size: 13.5px;
}

.thumb-art {
  display: block;
  margin: -10px -12px 16px;
  padding: 10px;
  border: 1px solid var(--frame-line);
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: 18px 18px;
}

.thumb-art svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.doc-cards .meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Letter
   -------------------------------------------------------------------------- */
.letter {
  padding: 56px var(--gutter) 60px;
  background-image: radial-gradient(60% 50% at 50% 0%, rgba(200, 57, 31, 0.05), transparent 70%);
}

.paper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 48px 40px;
  border: 1px solid var(--frame-line);
  background: var(--paper);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.6), 0 0 0 11px var(--frame-line), 0 30px 60px -36px rgba(34, 31, 28, 0.45);
}

.paper .eyebrow {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.paper h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  color: var(--accent);
}

.paper .to {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.seal {
  position: absolute;
  top: 44px;
  right: 48px;
  width: 104px;
  height: 104px;
  opacity: 0.5;
}

.seal svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.seal svg path {
  stroke: none;
}

.seal text {
  fill: var(--accent);
  stroke: none;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.seal text.small {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.paper .body {
  max-width: 600px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.paper .body p {
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
}

.paper .sign {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.paper .sign .name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 24px;
  padding: 44px var(--gutter) 40px;
  border-top: 1px solid var(--frame-line);
  font-size: 13px;
  color: var(--muted);
}

.footer .brand {
  padding: 0 0 8px;
  font-size: 16px;
}

.footer h4 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 6px;
}

.footer a:hover {
  color: var(--accent);
}

.footer .copy {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  :root {
    --nav: 220px;
    --gutter: 32px;
  }
}

@media (max-width: 1024px) {
  .site {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .nav {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--frame-line);
  }

  .brand {
    padding: 0 8px 0 0;
  }

  .links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  .links a {
    padding: 6px 8px;
    font-size: 14px;
  }

  .nav-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 10px;
  }

  .thumb,
  .nav-cells {
    display: none;
  }

  .nav-row {
    padding: 0;
  }

  .page {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero {
    padding: 64px var(--gutter) 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .doctor-body {
    grid-template-columns: 1fr;
  }

  .doctor-left {
    border-right: 0;
    border-bottom: 1px solid var(--frame-line);
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-4 > .cell:nth-child(4n) {
    border-right: 1px solid var(--frame-line);
  }

  .grid.cols-4 > .cell:nth-child(2n) {
    border-right: 0;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .grid > .cell,
  .grid.cols-4 > .cell:nth-child(4n) {
    border-right: 0;
  }

  .strip > .cell {
    border-bottom: 1px solid var(--frame-line);
  }

  .text-cells > .cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--frame-line);
  }

  .section-head {
    flex-direction: column;
    gap: 16px;
  }

  .prompt-bar {
    flex-wrap: wrap;
  }

  .paper {
    padding: 28px 20px;
  }

  .seal {
    display: none;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Round 2 (docs/HOME_REVAMP.md): readable script card, 原文 → 剧本 demo, closing CTA,
   mobile top bar, balanced headings
   ========================================================================== */

h1,
h2,
.hero .lead,
.section-head p {
  text-wrap: balance;
}

.news {
  min-width: 0;
}

.news .tag {
  flex: none;
  white-space: nowrap;
}

.news .news-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 1. the product shot, with a script page you can actually read */
.stage-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--frame-line);
  border-radius: 10px;
  background: var(--panel);
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0.5;
  filter: saturate(0.8);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 45%, #000 40%, transparent 100%);
}

.script-card {
  position: relative;
  width: min(540px, calc(100% - 32px));
  margin: 40px 0;
  padding: 26px 34px 20px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(34, 31, 28, 0.06), 0 2px 4px rgba(34, 31, 28, 0.04), 0 36px 70px -30px rgba(34, 31, 28, 0.45);
}

.script-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(200, 57, 31, 0.32);
  border-radius: 10px;
  pointer-events: none;
}

.sc-head,
.sc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.sc-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sc-timing {
  color: var(--accent);
}

.sc-timing i {
  margin: 0 4px;
  font-style: normal;
  color: var(--faint);
}

.sc-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sc-block {
  position: relative;
  padding-left: 52px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.sc-block i {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 36px;
  color: var(--faint);
  font: normal 10.5px/1.4 var(--sans);
  letter-spacing: 0.08em;
}

.sc-block + .sc-block {
  margin-top: 6px;
}

.sc-block.scene p {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sc-block.character p,
.sc-block.paren p,
.sc-block.dialogue p {
  text-align: center;
}

.sc-block.character p {
  font-weight: 600;
  font-size: 14px;
}

.sc-block.paren p {
  color: var(--muted);
  font-size: 14px;
}

.sc-block.character + .sc-block,
.sc-block.paren + .sc-block {
  margin-top: 0;
}

.sc-block.hook p {
  padding: 4px 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---- 2. 原文 → 剧本 */
.adapt-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.08fr);
  border-bottom: 1px solid var(--frame-line);
}

.adapt-source,
.adapt-script {
  padding: 32px 32px 36px;
}

.adapt .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.adapt-source {
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(200, 57, 31, 0.08) 31px 32px);
  background-position: 0 58px;
}

.adapt-source p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 32px;
  color: var(--ink-2);
  text-indent: 2em;
}

.adapt-arrow {
  position: relative;
  border-left: 1px solid var(--frame-line);
  border-right: 1px solid var(--frame-line);
  background-image: var(--hatch);
}

.adapt-arrow span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 6px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}

.adapt-lines {
  min-height: 420px;
}

.adapt-lines .sc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
}

.adapt-lines .sc + .sc {
  margin-top: 6px;
}

.adapt-lines .scene {
  font-weight: 600;
}

.adapt-lines .character,
.adapt-lines .paren,
.adapt-lines .dialogue {
  text-align: center;
}

.adapt-lines .character {
  margin-top: 12px !important;
  font-weight: 600;
  font-size: 13.5px;
}

.adapt-lines .character + .sc,
.adapt-lines .paren + .sc {
  margin-top: 0;
}

.adapt-lines .paren {
  color: var(--muted);
  font-size: 13.5px;
}

.adapt-lines .hook {
  margin-top: 12px !important;
  padding: 4px 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* typing state: lines appear one by one, the current one types */
.adapt-script.is-typing .sc {
  visibility: hidden;
}

.adapt-script.is-typing .sc.is-shown {
  visibility: visible;
}

.adapt-script .sc.is-current::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.adapt-stats {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.adapt-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.adapt-stats b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---- 3. closing call to action */
.cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 88px var(--gutter) 96px;
  text-align: center;
  background-image:
    radial-gradient(38% 50% at 22% 40%, rgba(200, 57, 31, 0.06), transparent 70%),
    radial-gradient(34% 46% at 50% 8%, rgba(200, 57, 31, 0.07), transparent 70%),
    radial-gradient(36% 50% at 82% 78%, rgba(200, 57, 31, 0.05), transparent 70%);
}

.cta-mark {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--frame-line), 0 18px 40px -22px rgba(34, 31, 28, 0.45);
}

.cta h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.cta p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.cta-actions .btn {
  min-height: 42px;
  padding: 0 20px;
}

/* ---- 5. mobile: the side nav becomes a 52px top bar with a drawer */
.nav-menu,
.nav-cta {
  display: none;
}

@media (max-width: 1024px) {
  .adapt-body {
    grid-template-columns: 1fr;
  }

  .adapt-arrow {
    height: 44px;
    border: 0;
    border-top: 1px solid var(--frame-line);
    border-bottom: 1px solid var(--frame-line);
  }

  .adapt-arrow span {
    writing-mode: horizontal-tb;
    padding: 3px 12px;
  }

  .adapt-lines {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: nowrap;
    min-height: 52px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .nav .brand {
    gap: 8px;
    padding: 0;
    font-size: 20px;
  }

  .nav .brand .mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .nav-cta {
    display: inline-flex;
    min-height: 32px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-menu {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--paper);
  }

  .nav-menu .icon {
    width: 18px;
    height: 18px;
  }

  .nav .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 12px 12px;
    border-bottom: 1px solid var(--frame-line);
    background: var(--paper);
    box-shadow: 0 20px 30px -24px rgba(34, 31, 28, 0.35);
  }

  .nav.is-open .links {
    display: flex;
  }

  .nav .links a {
    padding: 11px 8px;
    font-size: 16px;
  }

  .nav .nav-foot,
  .nav .spacer {
    display: none;
  }

  .stage-frame {
    min-height: 0;
    background: var(--paper);
  }

  .stage-bg {
    display: none;
  }

  .script-card {
    width: 100%;
    margin: 0;
    padding: 20px 18px 16px;
    box-shadow: none;
  }

  .script-card::before {
    display: none;
  }

  .sc-block {
    padding-left: 40px;
    font-size: 15px;
  }

  .adapt-source,
  .adapt-script {
    padding: 24px 16px 28px;
  }

  .adapt-stats {
    flex-wrap: wrap;
  }

  .cta {
    padding: 64px var(--gutter) 72px;
  }

  .cta-mark {
    width: 80px;
    height: 80px;
  }

  .cta h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adapt-script .sc.is-current::after {
    animation: none;
  }
}

/* ---- 4. doc reader (doc.html) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
}

.read-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 672px) 180px;
  justify-content: center;
  gap: 32px;
  padding: 56px var(--gutter) 72px;
}

.doc .eyebrow,
.doc-toc .eyebrow,
.doc-more .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.doc h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
}

.doc-meta {
  display: flex;
  gap: 10px;
  margin: 14px 0 28px !important;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.doc-meta span + span::before {
  content: "·";
  margin-right: 10px;
}

.doc h2 {
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  scroll-margin-top: 24px;
}

.doc h3 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 600;
  scroll-margin-top: 24px;
}

.doc h4 {
  margin: 20px 0 8px;
  font-size: 14.5px;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  margin: 10px 0 14px;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 4px;
}

.doc li ul {
  margin: 4px 0 0;
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200, 57, 31, 0.35);
  text-underline-offset: 3px;
}

.doc code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.86em;
}

.doc pre {
  margin: 14px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--panel);
}

.doc pre code {
  padding: 0;
  background: none;
}

.doc blockquote {
  margin: 16px 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line-strong);
}

.doc blockquote.doc-summary {
  padding: 18px 22px;
  border: 1px solid rgba(200, 57, 31, 0.2);
  border-radius: 12px;
  background: rgba(200, 57, 31, 0.05);
}

.doc blockquote p {
  font-size: 14.5px;
}

.doc hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-table {
  margin: 16px 0;
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}

.doc th,
.doc td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  border-bottom: 2px solid var(--line-strong);
  background: var(--panel);
  font-weight: 600;
  white-space: nowrap;
}

.doc-loading {
  color: var(--faint);
}

.doc-toc {
  position: sticky;
  top: 40px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.doc-toc a {
  padding: 5px 0 5px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.doc-toc a:hover {
  border-left-color: var(--accent);
  color: var(--accent);
}

.doc-more {
  padding: 28px var(--gutter) 36px;
}

.doc-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-more-links a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.doc-more-links a:hover,
.doc-more-links a.is-current {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-footer {
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .doc-shell {
    grid-template-columns: minmax(0, 672px);
  }

  .doc-toc {
    display: none;
  }
}

@media (max-width: 720px) {
  .doc-shell {
    padding: 36px var(--gutter) 48px;
  }

  .doc h1 {
    font-size: 30px;
  }
}

/* ==========================================================================
   Identity v2 (preview): the geometric 长 with a cinnabar first stroke, warm paper,
   ink text. The lockup follows the reference: heavy 黑体 长镜 over lowercase oner.
   ========================================================================== */
.mark {
  border-radius: 0;
}

.brand-text {
  display: grid;
  line-height: 1;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", var(--sans);
}

.brand-text b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  font-family: "Avenir Next", "Futura", "Century Gothic", var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer .brand-text b {
  font-size: 18px;
}

.footer .brand-text small {
  font-size: 12.5px;
}

.cta-mark {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .nav .brand-text b {
    font-size: 18px;
  }

  .nav .brand-text small {
    font-size: 12px;
  }
}

/* Ink headings; cinnabar stays an accent (links, the update tag, buttons, small marks). */
.hero h1,
.section-head h2,
.cta h2 {
  color: var(--ink);
}

/* Final logo (assets/oner-logo-assets): the lockup is one image; the mark carries the viewfinder corners. */
.brand-logo {
  display: block;
  width: auto;
  height: 58px;
}

.nav .brand {
  padding: 0 4px 20px;
}

.footer .brand-logo {
  height: 44px;
}

@media (max-width: 720px) {
  .nav .brand-logo {
    height: 36px;
  }

  .nav .brand {
    padding: 0;
  }
}

/* ==========================================================================
   Round 2 (质感): lighter headings, layered hero, filled statement card,
   footer mark, one-time entrance motion. See docs/HOME_REVAMP.md 第二轮.
   ========================================================================== */

/* ---- lighter headings */
.hero h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.32;
}

.hero .lead {
  line-height: 1.9;
}

.section-head h2,
.paper h2 {
  font-size: 26px;
  font-weight: 500;
}

.grid > .cell h3,
.doc-cards > .cell h3,
.doctor-intro h3 {
  font-weight: 500;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 26px;
  }

  .section-head h2,
  .paper h2 {
    font-size: 23px;
  }
}

/* ---- hero layers: dot grid, three faint warm glows, side fades into the paper */
.hero {
  isolation: isolate;
  background-image:
    radial-gradient(34% 42% at 18% 46%, rgba(200, 57, 31, 0.055), transparent 70%),
    radial-gradient(40% 46% at 52% 6%, rgba(214, 120, 60, 0.07), transparent 72%),
    radial-gradient(32% 40% at 86% 84%, rgba(200, 57, 31, 0.045), transparent 70%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background-image: radial-gradient(rgba(36, 32, 29, 0.16) 1px, transparent 1.2px);
  background-size: 7px 7px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 85% at 50% 40%, #000 30%, transparent 78%);
}

.hero::after {
  background: linear-gradient(90deg, var(--paper), transparent 20%, transparent 80%, var(--paper));
}

/* ---- statement card: what all three formats share, under the team note */
.statement .who {
  margin-top: 18px;
  padding-top: 0;
}

.statement .shared {
  margin-top: auto;
  padding: 16px 16px 6px;
  border: 1px solid var(--frame-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
}

.statement .shared-title {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.statement .shared ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.statement .shared li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}

.statement .shared li span:first-child {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.statement .shared li span:last-child {
  color: var(--ink-2);
}

@media (max-width: 1024px) {
  .statement .shared {
    margin-top: 24px;
  }
}

/* ---- footer: a large faint outline of the mark, drawn once when the footer enters */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer-mark {
  position: absolute;
  right: -64px;
  bottom: -64px;
  z-index: -1;
  width: 300px;
  height: 300px;
  opacity: 0.11;
  pointer-events: none;
}

.footer-mark path {
  fill: none;
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.footer-mark .fm-frame,
.footer-mark .fm-ink {
  stroke: #24201d;
}

.footer-mark .fm-red {
  stroke: #d63d26;
  stroke-width: 1.6;
}

@media (max-width: 720px) {
  .footer-mark {
    width: 220px;
    height: 220px;
    right: -40px;
    bottom: -40px;
  }
}

/* ---- landing reading progress (same bar as doc.html) */
.read-progress i {
  transition: none;
}

/* ---- entrance motion: only when <html> has .has-motion (JS on, no reduced motion) */
/* The wipe runs on a pseudo-element: a clipped target has no visible area, so the
   observer would never see the band itself enter. */
.has-motion .band {
  position: relative;
  border-color: transparent;
  background-image: none;
}

.has-motion .band::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--frame-line);
  border-bottom: 1px solid var(--frame-line);
  background-image: var(--hatch);
  clip-path: inset(0 100% 0 0);
}

.has-motion .band.is-in::before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-motion [data-reveal] {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
}

.has-motion [data-reveal].is-in {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    filter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

/* Line art in stage cards and doc cards draws itself once its card is in. */
.has-motion [data-reveal] .art *,
.has-motion [data-reveal] .thumb-art path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.has-motion [data-reveal].is-in .art *,
.has-motion [data-reveal].is-in .thumb-art path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--reveal-delay, 0ms) + 200ms);
}

.has-motion .footer-mark path {
  stroke-dashoffset: 1;
}

.has-motion .footer.is-in .footer-mark path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-motion .footer.is-in .footer-mark .fm-ink {
  transition-delay: 0.35s;
}

.has-motion .footer.is-in .footer-mark .fm-red {
  transition-delay: 1.1s;
}

@media (prefers-reduced-motion: reduce) {
  .has-motion .band::before,
  .has-motion [data-reveal],
  .has-motion .footer-mark path,
  .has-motion [data-reveal] .art *,
  .has-motion [data-reveal] .thumb-art path {
    clip-path: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Round 3 (docs/REMAINING_ALL.md 二、三): fixed hatched strips, grid lines drawn
   once, one screenshot frame, paired section actions, 长镜不做什么, 中文 / EN switch,
   and the new site pages (博客 / 案例 / 价格, English counterparts).
   ========================================================================== */

/* ---- fixed hatched strips at the top and bottom of the viewport (desktop frame only) */
@media (min-width: 1025px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    z-index: 30;
    height: 12px;
    background-color: var(--bg);
    background-image: var(--hatch);
    pointer-events: none;
  }

  body::before {
    top: 0;
    border-bottom: 1px solid var(--frame-line);
  }

  body::after {
    bottom: 0;
    border-top: 1px solid var(--frame-line);
  }

  .site {
    padding-bottom: 13px;
  }

  .nav {
    height: calc(100vh - 16px - 13px);
  }
}

/* ---- grid separators drawn line by line (only with .has-motion; home.js adds .draw-lines / .lines-in) */
.has-motion .draw-lines > .cell:not(.statement) {
  position: relative;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.has-motion .draw-lines > .cell:not(.statement)::before,
.has-motion .draw-lines > .cell:not(.statement)::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* right edge: inherits the cell's own border width (0 on the last column), drawn top → bottom */
.has-motion .draw-lines > .cell:not(.statement)::before {
  top: 0;
  right: -1px;
  bottom: -1px;
  width: 0;
  border-right: inherit;
  border-right-color: var(--frame-line);
  clip-path: inset(0 0 100% 0);
}

/* bottom edge: drawn left → right */
.has-motion .draw-lines > .cell:not(.statement)::after {
  left: 0;
  right: -1px;
  bottom: -1px;
  height: 0;
  border-bottom: inherit;
  border-bottom-color: var(--frame-line);
  clip-path: inset(0 100% 0 0);
}

.has-motion .draw-lines.lines-in > .cell:not(.statement)::before,
.has-motion .draw-lines.lines-in > .cell:not(.statement)::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--line-delay, 0ms);
}

.has-motion .draw-lines.lines-in > .cell:not(.statement)::after {
  transition-delay: calc(var(--line-delay, 0ms) + 160ms);
}

@media (prefers-reduced-motion: reduce) {
  .has-motion .draw-lines > .cell:not(.statement)::before,
  .has-motion .draw-lines > .cell:not(.statement)::after {
    clip-path: none !important;
    transition: none !important;
  }
}

/* ---- one screenshot frame everywhere: 1px dashed + 6px padding */
.stage-frame {
  padding: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  background-clip: padding-box;
}

.stage-bg {
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border: 1px solid var(--frame-line);
}

.stage-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--panel);
  z-index: -1;
}

.stage-frame {
  isolation: isolate;
}

.format img {
  padding: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
}

/* ---- section heads: actions always "text link →" + "outline pill →" */
.section-head .actions {
  flex-wrap: wrap;
}

.section-head.center .actions {
  justify-content: center;
  padding-top: 18px;
}

.section-head.split .actions {
  margin-top: 16px;
  padding-top: 0;
}

@media (max-width: 720px) {
  .section-head .actions {
    padding-top: 0;
  }
}

/* ---- 长镜不做什么 */
.nope-grid > .cell {
  padding: 26px 22px 28px;
  border-bottom: 0;
}

.nope-no,
.step-no {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.nope-grid > .cell h3 {
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 1024px) {
  .nope-grid > .cell {
    border-bottom: 1px solid var(--frame-line);
  }
}

/* ---- nav: site pages after a hairline, current page, 中文 / EN switch */
.links-sep {
  height: 1px;
  margin: 8px 8px;
  background: var(--frame-line);
}

.links a[aria-current="page"] {
  color: var(--accent);
}

a.lang {
  transition: border-color 120ms ease, color 120ms ease;
}

a.lang:hover {
  border-color: var(--accent);
}

.lang span {
  color: var(--faint);
}

.lang .is-on {
  color: var(--ink);
  font-weight: 600;
}

.lang .sep {
  margin: 0 1px;
}

.lang-mini {
  display: none;
}

@media (max-width: 1024px) {
  .links-sep {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    align-self: center;
  }
}

@media (max-width: 720px) {
  .links-sep {
    width: auto;
    height: 1px;
    margin: 6px 8px;
  }

  .nav .lang-mini {
    display: inline-flex;
    min-height: 32px;
    margin-left: auto;
    padding: 0 9px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
  }

  .nav .lang-mini + .nav-cta {
    margin-left: 6px;
  }
}

/* ---- English pages */
:lang(en) .adapt-source p,
.adapt-source p:lang(en) {
  text-indent: 0;
}

.hero-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}

/* ---- site pages: page head */
.page-head {
  position: relative;
  padding: 72px var(--gutter) 52px;
  background-image:
    radial-gradient(40% 60% at 15% 30%, rgba(200, 57, 31, 0.05), transparent 70%),
    radial-gradient(36% 50% at 85% 80%, rgba(214, 120, 60, 0.05), transparent 72%);
}

.page-head .eyebrow,
.case-tag,
.case .eyebrow,
.scope-label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.page-head h1 {
  max-width: 720px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
}

.page-head .lead {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.case-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.case-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13.5px;
}

.case-index a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.case-index b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

/* ---- blog index */
.blog-cards > .cell {
  min-height: 0;
}

.post-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.blog-cards > .cell h3 {
  font-size: 19px;
}

/* ---- cases */
.case-tag {
  margin-bottom: 10px;
}

.case-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--frame-line);
}

.case-step {
  min-width: 0;
  padding: 32px var(--gutter) 36px;
}

.case-step + .case-step {
  border-left: 1px solid var(--frame-line);
}

.case-step.adapt-source {
  padding-left: var(--gutter);
}

.case-script .adapt-lines,
.case-flow .adapt-lines {
  min-height: 0;
}

.case-card {
  width: 100%;
  margin: 12px 0 0;
  padding: 22px 22px 18px;
}

.case-card .sc-block {
  padding-left: 46px;
  font-size: 15px;
}

.sheet {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.sheet dt,
.sheet dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
}

.sheet dt {
  padding-right: 12px;
  color: var(--faint);
  font-size: 12px;
}

.sheet dd {
  color: var(--ink-2);
}

.sheet .is-key {
  color: var(--accent-deep);
}

.sheet dd.is-key {
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}

.mono-dd {
  font-family: var(--mono);
  font-size: 12px !important;
}

.concepts {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: concept;
}

.concepts li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--frame-line);
  border-radius: 6px;
  counter-increment: concept;
}

.concepts li + li {
  margin-top: 10px;
}

.concepts li::before {
  content: counter(concept, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.concepts b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.concepts span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.concepts em {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11.5px;
  font-style: normal;
}

.concepts .is-picked {
  border-color: var(--accent);
  box-shadow: 0 14px 30px -24px rgba(34, 31, 28, 0.5);
}

.concepts .is-picked::before {
  color: var(--accent);
}

.case-shots {
  padding: 32px var(--gutter) 40px;
}

.table-wrap {
  overflow-x: auto;
  padding: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
}

.shot-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.shot-table th,
.shot-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.shot-table th {
  background: var(--panel);
  border-bottom: 2px solid var(--line-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.shot-table td:first-child,
.shot-table td:nth-child(3) {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.shot-table td:nth-child(2) {
  white-space: nowrap;
}

.shot-table tbody tr:last-child td {
  border-bottom: 0;
}

.case-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.case-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-checks li {
  padding: 12px 14px;
  border: 1px solid var(--frame-line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.case-checks b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---- pricing */
.price-big {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.scope-grid > .cell {
  padding: 30px 36px 34px;
  border-bottom: 0;
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.scope-list li::before {
  position: absolute;
  left: 2px;
  top: 10px;
  font-family: var(--mono);
  font-size: 13px;
}

.scope-list.yes li::before {
  content: "✓";
  color: var(--accent);
}

.scope-list.no li::before {
  content: "—";
  color: var(--faint);
}

.scope-list.no li {
  color: var(--muted);
}

.steps > .cell {
  min-height: 0;
}

.faq-list {
  padding: 8px var(--gutter) 40px;
}

.faq-list .acc:last-child {
  border-bottom: 0;
}

/* ---- doc reader: language note and English title for posts */
.doc-lang-note {
  display: inline-block;
  margin: -6px 0 22px;
  padding: 4px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.doc-en-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}

.doc-en-summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---- responsive for the new pages */
@media (max-width: 1024px) {
  .case-checks {
    grid-template-columns: 1fr;
  }

  .scope-grid > .cell:first-child {
    border-bottom: 1px solid var(--frame-line);
  }
}

@media (max-width: 860px) {
  .case-flow {
    grid-template-columns: 1fr;
  }

  .case-step + .case-step {
    border-left: 0;
    border-top: 1px solid var(--frame-line);
  }
}

@media (max-width: 720px) {
  .page-head {
    padding: 44px var(--gutter) 36px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .case-step,
  .case-shots {
    padding: 24px var(--gutter) 28px;
  }

  .case-card {
    padding: 18px 14px 14px;
  }

  .case-card .sc-block {
    padding-left: 40px;
  }

  .sheet {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .scope-grid > .cell {
    padding: 24px var(--gutter) 26px;
  }

  .scope-grid > .cell:first-child {
    border-bottom: 1px solid var(--frame-line);
  }

  .price-big {
    font-size: 28px;
  }
}

/* promo cut table: time is the 2nd column, picture the 3rd */
.shot-table.promo td:nth-child(3) {
  color: inherit;
  font: inherit;
  white-space: normal;
}

.shot-table.promo td:nth-child(2) {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

/* the 中文 / EN switch never wraps inside the nav row */
.lang {
  flex: none;
  white-space: nowrap;
}

.case-step.adapt-source .eyebrow {
  margin-bottom: 16px;
}

.nav-row .btn {
  min-width: 0;
  padding: 0 10px;
}

/* ---- 创作记录认证页 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.verify-box {
  padding: 28px 32px 32px;
}

.verify-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.verify-field {
  display: grid;
  gap: 6px;
  flex: 1 1 280px;
  font-size: 13px;
  color: var(--muted);
}

.verify-field input {
  font: 500 16px/1.4 var(--mono, ui-monospace, Menlo, monospace);
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.verify-field input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.verify-or {
  align-self: center;
  color: var(--faint);
  font-size: 13px;
}

.verify-file {
  position: relative;
  cursor: pointer;
}

.verify-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.verify-result {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
}

.verify-result.is-verified {
  border-color: #37806a;
}

.verify-result.is-partial {
  border-color: #a4731c;
}

.verify-result.is-invalid {
  border-color: var(--accent);
}

.verify-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.verify-verdict strong {
  font-family: var(--serif, serif);
  font-size: 24px;
  color: var(--ink);
}

.is-verified .verify-verdict strong { color: #2f6e5b; }
.is-partial .verify-verdict strong { color: #8c6216; }
.is-invalid .verify-verdict strong { color: var(--accent-deep); }

.verify-id code {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.verify-checks {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.verify-checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 6px;
  font-size: 14px;
}

.verify-checks .mark {
  font-weight: 600;
}

.verify-checks .ok .mark { color: #2f6e5b; }
.verify-checks .no .mark { color: var(--accent-deep); }

.verify-checks small {
  display: block;
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.verify-checks b {
  font-weight: 500;
}

.verify-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.verify-facts dt {
  color: var(--muted);
}

.verify-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.verify-facts code {
  font-size: 12px;
}

.verify-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .verify-box {
    padding: 20px 16px 24px;
  }

  .verify-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .verify-facts dd {
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   Pricing page: billing toggle, plan grid, episode meter (pricing.html / pricing-en.html)
   ========================================================================== */
.billing-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.billing-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.billing-save {
  color: var(--accent);
  font-size: 11.5px;
}

.billing-toggle button[aria-pressed="true"] .billing-save {
  color: #ff7658;
}

.plan-grid .y {
  display: none;
}

.plan-grid[data-billing="year"] .m {
  display: none;
}

.plan-grid[data-billing="year"] .y {
  display: inline;
}

.plan-grid > .cell.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 22px 26px;
}

.plan.is-rec {
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--accent);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.grid > .cell.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.plan-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.grid > .cell .plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 18px;
  color: var(--ink);
  line-height: 1.1;
}

.plan-amt {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.plan.is-rec .plan-amt {
  color: var(--accent);
}

.plan-per {
  color: var(--muted);
  font-size: 13px;
}

.grid > .cell .plan-note {
  min-height: 1.75em;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12.5px;
}

.grid > .cell .plan-pitch {
  min-height: 5em;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.plan-limits {
  flex: 1 0 auto;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.plan-limits li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.plan-limits b {
  flex: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.plan-cta {
  width: 100%;
}

.plan-foot {
  margin: 0;
  padding: 18px var(--gutter) 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.meter-eg {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.75;
}

.grid > .cell p.meter-eg {
  color: var(--ink-2);
}

.faq-list .acc p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .plans .section-head {
    flex-direction: column;
    gap: 16px;
  }

  .plans .section-head .actions {
    padding-top: 0;
  }

  .plan-grid > .cell.plan {
    border-bottom: 1px solid var(--frame-line);
  }

  .grid > .cell .plan-pitch {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .plan-grid > .cell.plan {
    padding: 24px var(--gutter) 24px;
  }

  .plan-amt {
    font-size: 30px;
  }
}

/* ==========================================================================
   Legal pages: terms / privacy (terms.html, privacy.html and -en)
   ========================================================================== */
.legal-stamp {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.legal {
  max-width: 760px;
  padding: 24px var(--gutter) 56px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.legal h2 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Five plan tiers: 5 across on wide screens, then 3, 2, 1. Cells keep a right rule and the grid
   clips the last column's, so the borders stay right at every column count. */
.grid.plan-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.grid.plan-grid > .cell.plan {
  border-right: 1px solid var(--frame-line);
  margin-right: -1px;
  padding: 26px 18px 24px;
}

@media (max-width: 1360px) {
  .grid.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid.plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid.plan-grid {
    grid-template-columns: 1fr;
  }

  .grid.plan-grid > .cell.plan {
    padding: 24px var(--gutter);
  }
}

/* ───────────── 片段：分享页与片段页 ───────────── */
.share-wrap { padding: 36px 32px 40px; }
.share-status, .clips-status { margin: 0; color: var(--muted); }
.share-status a { color: var(--accent); }
.share-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 36px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.04), 0 18px 40px -28px rgba(34, 31, 28, 0.35);
}
.clip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.clip-format { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; }
.clip-caption { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); }
.clip-script { padding: 18px 0 6px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.clip-script p { margin: 0 0 10px; overflow-wrap: anywhere; }
.clip-script .b-scene { font-weight: 700; color: var(--ink); }
.clip-script .b-character { margin: 14px 0 0; text-align: center; font-weight: 700; color: var(--ink); }
.clip-script .b-parenthetical { margin: 0; text-align: center; color: var(--muted); }
.clip-script .b-dialogue { max-width: 30em; margin: 0 auto 10px; text-align: center; }
.clip-script .b-vo { font-style: italic; }
.clip-script .b-sfx, .clip-script .b-note { color: var(--muted); font-size: 14px; }
.clip-script .b-transition { text-align: right; color: var(--muted); }
.clip-script .b-hook { color: var(--accent-deep); font-weight: 600; }
.clip-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.clip-foot p { margin: 0 0 6px; }
.clip-credit strong { color: var(--ink); }
.clip-cert { display: inline-block; margin-top: 4px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; text-decoration: none; }
.clip-cert.is-ok { border-color: #37806a; color: #37806a; }
.clip-cert:hover { background: var(--hover); }
.clip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.clip-actions .clip-report { margin-left: auto; color: var(--muted); }
.clip-actions [aria-pressed="true"] { border-color: var(--accent); color: var(--accent-deep); }
.clip-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.clip-note a { color: var(--accent); }
.clip-report-form { margin-top: 12px; }
.clip-report-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 14px; }
.share-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; }
.share-cta h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.share-cta p { margin: 0; max-width: 34em; color: var(--muted); }
.share-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.clips { padding: 28px 32px 36px; }
.clips-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.clips-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.clips-tabs button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.clips-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.clip-tile { display: flex; flex-direction: column; padding: 18px 20px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.clip-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.clip-tile-top { display: flex; justify-content: space-between; gap: 8px; }
.clip-badge { flex: none; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }
.clip-tile .clip-caption { font-size: 16px; margin-bottom: 10px; }
.clip-tile .clip-script { flex: 1; padding-top: 12px; font-size: 13px; line-height: 1.65; max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.clip-tile .clip-script p { margin-bottom: 6px; }
.clip-tile-foot { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.clip-tile-foot strong { color: var(--ink); }
.clips-more { display: block; margin: 20px auto 0; }

@media (max-width: 720px) {
  .share-wrap, .clips { padding: 20px 16px 28px; }
  .share-card { padding: 22px 18px 20px; }
  .share-cta { padding: 22px 16px; }
}

/* 博客：插图与行动按钮 */
.doc .doc-figure { margin: 24px 0; }
.doc .doc-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); }
.doc .doc-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.doc .doc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.doc .doc-cta a { text-decoration: none; }

/* 博客：连载 */
.blog-series { padding: 28px 32px 32px; }
.series-head { max-width: 46em; margin-bottom: 18px; }
.series-head h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: 24px; }
.series-head p { margin: 0; color: var(--muted); line-height: 1.75; }
.series-head strong { color: var(--ink); }
.blog-cards > .cell.is-soon { opacity: 0.62; }
.blog-cards > .cell.is-soon .meta span:first-child { color: var(--accent-deep); }
@media (max-width: 720px) { .blog-series { padding: 22px 16px 26px; } }

/* 博客：剧本卡片（初稿 / 改稿） */
.doc .doc-script { margin: 22px 0; padding: 18px 24px 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.doc .doc-script figcaption { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--accent-deep); }
.doc .doc-script .clip-script { padding-top: 10px; }
.doc .doc-script .clip-script p { margin: 0 0 8px; font-size: 15px; line-height: 1.75; }
.doc .doc-script .clip-script .b-character { margin-top: 12px; margin-bottom: 0; }
.doc .doc-script .clip-script .b-parenthetical { margin-bottom: 0; }
.doc .doc-script .is-cut { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(200, 57, 31, 0.55); }
.doc .doc-script .is-new { margin-left: -8px; margin-right: -8px; padding: 2px 8px; border-radius: 4px; background: rgba(200, 57, 31, 0.08); }
@media (max-width: 720px) { .doc .doc-script { padding: 14px 14px 4px; } }
.doc .doc-script .b-dialogue.is-new, .doc .doc-script .b-character.is-new { margin-left: auto; margin-right: auto; }

/* keep compound words such as "live-action" on one line */
.nowrap {
  white-space: nowrap;
}
