/* Murmo Notes：全站共用的一份样式。只用系统字体，不加载任何外部资源。
   版式和配色是 Manus 2026-10-11 的第一稿（docs/website/manus/2026-10-11-v2-first-draft/），
   N003 接稿时改了示意图（照真界面）、深色下写死的颜色、中文排版，补了问答、404 和打印的样式。 */

:root {
  color-scheme: light dark;
  --canvas: #fbfaf7;
  --surface: #ffffff;
  --soft: #f1f0eb;
  --ink: #1b1b19;
  --muted: #595852;
  --quiet: #706f68;
  --line: #d8d6cf;
  --line-strong: #bcbab2;
  --accent: #a52f23;
  --accent-dark: #772117;
  --highlight: #f3dc76;
  --watch-ink: #060606;
  --watch-muted: #b4b4bb;
  --watch-red: #ff5c53;
  --watch-yellow: #ffb93e;
  --watch-blue: #5faeff;
  --ui-canvas: #f2f2f7;
  --ui-surface: #ffffff;
  --ui-ink: #17171a;
  --ui-muted: #5f6066;
  --ui-line: #d7d7dd;
  --ui-link: #075fc5;
  --ui-ok: #18713a;
  --star-bg: #fff3d5;
  --star-ink: #7a4a00;
  --bell-bg: #e2efff;
  --bell-ink: #075fc5;
  --device: #171716;
  --device-edge: transparent;
  --shadow: 0 1.5rem 4.5rem rgb(26 25 21 / 0.12);
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-pad: clamp(1.25rem, 5vw, 5.5rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: clamp(5.5rem, 10vw, 10rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121311;
    --surface: #1b1c1a;
    --soft: #222421;
    --ink: #f5f3ee;
    --muted: #ccc9c2;
    --quiet: #aba8a0;
    --line: #3b3c38;
    --line-strong: #5b5c56;
    --accent: #ff7567;
    --accent-dark: #ffc2ba;
    --highlight: #6d5710;
    --ui-canvas: #000000;
    --ui-surface: #1c1c1e;
    --ui-ink: #f5f5f7;
    --ui-muted: #b3b3ba;
    --ui-line: #38383d;
    --ui-link: #69b0ff;
    --ui-ok: #6ede8b;
    --star-bg: #3c2a0f;
    --star-ink: #ffb93e;
    --bell-bg: #0d2d4d;
    --bell-ink: #5faeff;
    --device-edge: #3b3c38;
    --shadow: 0 1.5rem 4.5rem rgb(0 0 0 / 0.32);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.shell {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  flex: none;
  border-radius: 0.42rem;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem clamp(0.85rem, 2.4vw, 1.75rem);
}

.brand-cn {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav a,
.footer-nav a {
  padding-block: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 0.9fr);
  align-items: center;
  gap: clamp(3.5rem, 9vw, 10rem);
  padding-block: clamp(4.5rem, 9vw, 9rem) var(--space-8);
}

.hero-copy {
  min-width: 0;
}

.app-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.app-signature img {
  flex: none;
  border-radius: 0.58rem;
}

.hero h1 {
  max-width: 10.5em;
  margin-top: var(--space-5);
  font-size: clamp(2.625rem, 6.8vw, 6.3rem);
}

.hero h1 span,
.section-heading h2 span {
  display: block;
  color: var(--quiet);
}

.hero-lede {
  max-width: 38rem;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.development-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.development-status::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.quiet-link {
  display: inline-block;
  margin-top: var(--space-4);
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.quiet-link span {
  margin-left: 0.25rem;
  color: var(--accent-dark);
}

.hero-figure {
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

.device-constellation {
  position: relative;
  width: 100%;
  min-height: 30rem;
  font-size: 1rem;
}

.phone-device,
.watch-device {
  background: var(--device);
  box-shadow: 0 0 0 1px var(--device-edge), var(--shadow);
}

.phone-device {
  position: absolute;
  top: 0;
  right: 0;
  width: 16.25em;
  height: 29.4em;
  padding: 0.5em;
  border-radius: 2.65em;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.18em;
  background: var(--ui-canvas);
  color: var(--ui-ink);
  font-family: var(--font-round);
}

.phone-island {
  position: absolute;
  top: 0.62em;
  left: 50%;
  width: 4.8em;
  height: 1.32em;
  transform: translateX(-50%);
  border-radius: 99rem;
  background: #000;
}

.phone-status {
  padding: 0.95em 1.9em 0;
  font-size: 0.64em;
  font-weight: 650;
}

.phone-title {
  padding: 1.15em 0.7em 0.2em;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.phone-list {
  padding: 0.1em 0.85em;
}

.phone-entry {
  display: grid;
  gap: 0.35em;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--ui-line);
  font-size: 0.71em;
  line-height: 1.4;
}

.phone-entry-meta {
  display: flex;
  gap: 0.7em;
  color: var(--ui-muted);
  font-size: 0.9em;
}

.phone-entry strong {
  font-weight: 600;
}

.phone-entry-muted {
  opacity: 0.54;
}

.record-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65em;
  padding: 0.52em 0.9em 1.12em;
  border-radius: 1.65em 1.65em 0 0;
  background: var(--ui-surface);
  box-shadow: 0 -0.55em 1.5em rgb(0 0 0 / 0.13);
}

.sheet-handle {
  width: 2.25em;
  height: 0.28em;
  border-radius: 99rem;
  background: var(--ui-line);
}

.sheet-time {
  margin-top: 0.1em;
  color: var(--watch-red);
  font-size: 1.65em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.sheet-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  width: 100%;
}

.sheet-control {
  display: flex;
  min-height: 3.25em;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: 0.85em;
  font-size: 0.7em;
  font-weight: 700;
}

.sheet-control svg,
.watch-action svg,
.note-symbol svg,
.transcript-hint svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sheet-highlight,
.note-star {
  background: var(--star-bg);
  color: var(--star-ink);
}

.sheet-remind,
.note-bell {
  background: var(--bell-bg);
  color: var(--bell-ink);
}

.sheet-links {
  display: flex;
  gap: 2.6em;
  color: var(--ui-link);
  font-family: var(--font-sans);
  font-size: 0.63em;
  font-weight: 600;
}

.record-sheet small {
  color: var(--ui-muted);
  font-family: var(--font-sans);
  font-size: 0.5em;
  line-height: 1.3;
  text-align: center;
}

.watch-device {
  position: absolute;
  z-index: 1;
  bottom: 0.8rem;
  left: 0;
  width: 11.4em;
  height: 13.7em;
  padding: 0.55em;
  border-radius: 3.15em;
}

.watch-device::after {
  position: absolute;
  top: 3.65em;
  right: -0.35em;
  width: 0.38em;
  height: 1.6em;
  border-radius: 0 0.22em 0.22em 0;
  background: #171716;
  content: "";
}

.watch-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0.85em 0.55em 0.62em;
  border-radius: 2.6em;
  background: var(--watch-ink);
  color: #fff;
  font-family: var(--font-round);
}

.watch-time {
  align-self: flex-end;
  margin-right: 0.55em;
  font-size: 0.63em;
  font-weight: 700;
}

.record-stop {
  display: grid;
  flex: none;
  width: 4em;
  height: 4em;
  place-items: center;
  margin-top: 0.35em;
  border-radius: 50%;
  background: var(--watch-red);
}

.record-stop span {
  width: 1.25em;
  height: 1.25em;
  border-radius: 0.2em;
  background: #fff;
}

.record-sheet .record-stop {
  width: 3.7em;
  height: 3.7em;
  margin-top: 0;
}

.record-sheet .record-stop span {
  width: 1.1em;
  height: 1.1em;
}

.watch-timer-row {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  margin-top: 0.3em;
  line-height: 1.5;
}

.watch-timer {
  color: var(--watch-red);
  font-size: 1.05em;
  font-variant-numeric: tabular-nums;
}

.watch-cancel {
  color: var(--watch-muted);
  font-size: 0.62em;
}

.watch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35em;
  width: 100%;
  margin-top: auto;
}

.watch-action {
  display: grid;
  min-height: 3.6em;
  place-items: center;
  gap: 0.16em;
  border-radius: 99rem;
  font-size: 0.59em;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.watch-highlight {
  background: #3c2a0f;
  color: var(--watch-yellow);
}

.watch-remind {
  background: #0d2d4d;
  color: var(--watch-blue);
}

.hero-figure figcaption,
.transcript-figure figcaption {
  margin-top: 1rem;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hero-figure figcaption {
  text-align: right;
}

/* 浅灰底上 --quiet 的对比不到 4.5，这里用深一级的灰 */
.transcript-figure figcaption {
  color: var(--muted);
}

.section {
  padding-block: var(--space-8);
}

.section-rule {
  border-top: 1px solid var(--line);
}

.soft-surface {
  background: var(--soft);
}

.section-heading {
  min-width: 0;
}

.section-heading-wide {
  max-width: 51rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 16em;
  margin-top: var(--space-3);
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 38rem;
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 1.0625rem;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(3.5rem, 7vw, 6.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  padding: 1.7rem clamp(1.25rem, 3vw, 2.5rem) 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.step-list li + li {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.step-number,
.principle-index {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.step-list h3,
.recording-notes h3,
.principle-grid h3,
.scope-note h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.step-list p,
.recording-notes p,
.principle-grid p,
.scope-note p,
.detail-list dd,
.spec-list dd {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.recording-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(17rem, 0.95fr) minmax(0, 0.7fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.recording-heading h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.transcript-figure {
  width: 100%;
}

.transcript-device {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 1.4rem;
  background: var(--ui-canvas);
  box-shadow: var(--shadow);
  color: var(--ui-ink);
  font-family: var(--font-round);
}

.transcript-topbar {
  padding: 1rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--ui-line);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.ui-section {
  padding: 1rem 1.35rem 0.4rem;
  color: var(--ui-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 650;
}

.ui-group {
  margin: 0 0.7rem;
  border: 1px solid var(--ui-line);
  border-radius: 0.95rem;
  background: var(--ui-surface);
}

.ui-group:last-child {
  margin-bottom: 0.8rem;
}

.transcript-body {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.transcript-body mark {
  padding: 0.05em 0.12em;
  border-radius: 0.18em;
  background: var(--highlight);
  color: var(--ui-ink);
}

.transcript-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.5;
}

.transcript-hint svg {
  margin-top: 0.12rem;
  color: var(--star-ink);
  fill: currentColor;
}

.event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.9rem 1rem 0.8rem;
  font-family: var(--font-sans);
}

.event-row > svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--ui-link);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.event-row strong,
.event-detail {
  display: block;
}

.event-row strong {
  font-size: 0.78rem;
}

.event-detail {
  margin-top: 0.2rem;
  color: var(--ui-muted);
  font-size: 0.67rem;
}

.event-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  font-size: 0.67rem;
  font-weight: 650;
}

.event-status span:first-child {
  color: var(--ui-ok);
}

.event-status span:last-child {
  color: var(--ui-link);
}

.recording-notes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.recording-notes article {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.note-symbol {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-family: var(--font-round);
  font-size: 1rem;
}

.recording-notes .recording-note {
  margin-top: 0;
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.principle-grid article {
  min-width: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.principle-grid h3 {
  margin-top: 2rem;
}

.scope-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 58rem;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.scope-note p {
  margin-top: 0;
}

.fine-details {
  border-top: 1px solid var(--line);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.detail-list div {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.detail-list dt,
.spec-list dt {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.device-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(19rem, 1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.device-summary .section-heading h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.spec-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.spec-list dd {
  margin-top: 0;
  color: var(--ink);
}

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem 2rem;
  align-items: center;
}

.footer-grid p {
  grid-column: 1 / -1;
  max-width: 43rem;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Shared long-form page typography for privacy, support and Chinese pages. */

.document-shell {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--page-pad) clamp(5rem, 10vw, 9rem);
}

.document-header {
  max-width: 43rem;
}

.document-header h1,
.document h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.document-lede {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.document {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.document > * + * {
  margin-top: 1.2rem;
}

.document h2 {
  margin-top: clamp(3.75rem, 8vw, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.document h3 {
  margin-top: 2rem;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.document p,
.document ul,
.document ol {
  margin-top: 1rem;
}

.document ul,
.document ol {
  padding-left: 1.25rem;
}

.document li + li {
  margin-top: 0.55rem;
}

.document li::marker {
  color: var(--accent-dark);
}

.document strong {
  color: var(--ink);
  font-weight: 700;
}

.document a {
  color: var(--ink);
  font-weight: 600;
}

.document blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.document table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.document th,
.document td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.document th {
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document td:first-child {
  color: var(--ink);
  font-weight: 650;
}

html:lang(zh) .document,
.document:lang(zh) {
  line-height: 1.85;
}

.document small {
  color: var(--quiet);
  font-size: 0.8125rem;
}

/* 支持页的问答：点问题展开。不用脚本，用浏览器自带的 details。 */

.faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  color: var(--quiet);
  font-weight: 400;
  content: "+";
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > :not(summary) {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

/* 中文：标题不收紧字距，行高放开一点；中文没有大小写，眉题不拉开字距。 */

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

html:lang(zh) .eyebrow {
  letter-spacing: 0.04em;
}

html:lang(zh) .hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
}

html:lang(zh) .section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
}

html:lang(zh) .document h2 {
  line-height: 1.3;
}

@media (max-width: 66rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure {
    justify-self: center;
    margin-top: 1rem;
  }

  .recording-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
  }

  .recording-heading {
    grid-column: 1 / -1;
    max-width: 41rem;
  }

  .recording-notes {
    align-self: start;
  }

  .device-summary-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .step-list,
  .principle-grid,
  .recording-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list li + li {
    border-left: 0;
    padding-left: 0;
  }

  .step-list li {
    padding-right: 0;
  }

  .recording-heading {
    grid-column: auto;
  }

  .transcript-figure {
    max-width: 32rem;
  }

  .scope-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-note p {
    margin-top: -0.5rem;
  }

  .detail-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30rem) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-block: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  /* 窄屏：两个设备按屏宽一起缩小，并排放得下，手表不盖住手机上的按钮 */
  .device-constellation {
    width: 28.4em;
    max-width: 100%;
    min-height: 30em;
    margin-inline: auto;
    font-size: min(0.82rem, calc((100vw - 2.5rem) / 28.4));
  }

  .watch-device {
    bottom: 0;
  }

  .hero-figure figcaption {
    text-align: center;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  html:lang(zh) .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  html:lang(zh) .section-heading h2 {
    font-size: clamp(1.9rem, 9.5vw, 2.5rem);
  }

  .spec-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .document th,
  .document td {
    display: block;
    padding: 0.3rem 0;
    border: 0;
  }

  .document thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .document tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .document td:first-child {
    margin-bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    --canvas: #ffffff;
    --surface: #ffffff;
    --soft: #ffffff;
    --ink: #000000;
    --muted: #222222;
    --quiet: #444444;
    --line: #bbbbbb;
    --line-strong: #888888;
    --accent-dark: #000000;
  }

  .site-nav,
  .footer-nav,
  .skip-link,
  .faq summary::after {
    display: none;
  }

  .document-shell {
    padding-block: 1.5rem;
  }

  .document h2 {
    margin-top: 2rem;
    break-after: avoid;
  }

  .document a {
    text-decoration: underline;
  }
}
