/* 一句 OneJot 官网 · 全暗影棚首页（.page-home）+ 浅/深自适应文档页（隐私/支持/404） */
:root {
  --bg: #FAFBF9;
  --bg-alt: #F1F5F2;
  --surface: #FFFFFF;
  --surface-tint: rgba(250, 251, 249, 0.84);
  --forest: #0F3A2A;
  --forest-hi: #17523C;
  --forest-deep: #09241A;
  --mint: #6EE7A8;
  --signal: #30CF79;
  --accent: #135A3E;
  --accent-ink: #0B3826;
  --accent-soft: rgba(19, 90, 62, 0.08);
  --text: #0E1712;
  --text-2: #4A5A52;
  --text-3: #6C7D74;
  --rule: rgba(15, 58, 42, 0.10);
  --rule-strong: rgba(15, 58, 42, 0.22);
  --btn-bg: #0F3A2A;
  --btn-text: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(15, 58, 42, 0.05);
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080C0A;
    --bg-alt: #0E1511;
    --surface: #131B17;
    --surface-tint: rgba(8, 12, 10, 0.82);
    --accent: #6EE7A8;
    --accent-ink: #A3F3C9;
    --accent-soft: rgba(110, 231, 168, 0.12);
    --text: #F0F5F2;
    --text-2: #9FB0A7;
    --text-3: #83978C;
    --rule: rgba(255, 255, 255, 0.10);
    --rule-strong: rgba(110, 231, 168, 0.30);
    --btn-bg: #6EE7A8;
    --btn-text: #0A291D;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.30);
    color-scheme: dark;
  }
}

/* 首页锁定全暗影棚态（与全部短片底色 #071109 无缝融合） */
:root.page-home.page-home,
:root[data-theme="dark"] {
  --bg: #071109;
  --bg-alt: #0B170F;
  --surface: #121D16;
  --surface-tint: rgba(7, 17, 9, 0.72);
  --accent: #6EE7A8;
  --accent-ink: #A3F3C9;
  --accent-soft: rgba(110, 231, 168, 0.12);
  --text: #F3F8F5;
  --text-2: #9EB0A6;
  --text-3: #758B7E;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.20);
  --btn-bg: #6EE7A8;
  --btn-text: #0A291D;
  --shadow-sm: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 2px 7px;
  border-radius: 6px;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 100;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 14px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ========== 顶栏 ========== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-tint);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: #0F3A2A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 10px rgba(0, 0, 0, 0.25);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-name span { font-size: 14.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.site-nav a {
  color: var(--text-2); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 12px; border-radius: 999px; font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
@media (max-width: 640px) {
  .site-nav .nav-optional { display: none; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
a.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--btn-bg); color: var(--btn-text); }
a.btn-dark:hover { color: var(--btn-text); opacity: 0.88; transform: translateY(-1px); }

.btn-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-sm);
  cursor: default;
  user-select: none;
}
.btn-soon-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(48, 207, 121, 0.20);
  flex: none;
}
.btn-ghost { background: transparent; border-color: var(--rule-strong); color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ========== 第一幕 · 首屏满屏影棚 ========== */
.hero {
  position: relative;
  min-height: clamp(620px, calc(92vh - var(--header-h)), 860px);
  display: flex;
  align-items: center;
  background: #071109;
  color: var(--text);
  padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 8vw, 108px);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}
.hero-copy {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  pointer-events: auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--mint);
  letter-spacing: 0.04em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(110, 231, 168, 0.60);
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.11;
  font-weight: 800;
  letter-spacing: -0.032em;
}
.hero h1 .period {
  display: inline-block;
  width: 0.21em; height: 0.21em;
  border-radius: 50%;
  background: var(--mint);
  margin-left: 0.12em;
  vertical-align: baseline;
  transform: translateY(-0.04em);
  box-shadow: 0 0 16px rgba(110, 231, 168, 0.45);
}
.lead {
  font-size: clamp(16.5px, 1.45vw, 19px);
  color: var(--text-2);
  line-height: 1.72;
  max-width: 30em;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.fineprint { font-size: 13px; color: var(--text-3); }

/* 首屏右侧影棚短片 */
.hero-stage {
  position: absolute;
  right: max(0px, calc((100vw - 1340px) / 2));
  top: 50%;
  width: min(64vw, 960px);
  aspect-ratio: 16 / 9;
  translate: 0 -50%;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 52% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 52% at 52% 50%, #000 62%, transparent 100%);
}
.hero-stage .media-ctrl { right: 10%; bottom: 8%; pointer-events: auto; }

/* 首屏底部呼吸导视细线 */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(110, 231, 168, 0), rgba(110, 231, 168, 0.65));
  z-index: 2;
  opacity: 0.75;
}

/* 窄屏首屏：文字在上，手腕短片在下，调整 object-position 让末帧表盘稳稳居中 */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 40px 0 18px; }
  .hero-copy { max-width: 560px; }
  .hero-stage {
    position: relative;
    right: auto; top: auto; translate: none;
    width: min(100%, 520px);
    aspect-ratio: 4 / 3;
    margin: 14px auto 0;
  }
  .hero-media { object-position: 56% 50%; }
  .hero-stage .media-ctrl { right: 16px; bottom: 14px; }
  .scroll-cue { display: none; }
}

/* ========== 通用暗场幕次 ========== */
.act {
  padding: clamp(80px, 10vw, 136px) 0;
  position: relative;
  border-top: 1px solid var(--rule);
  background: #071109;
}
.act-alt {
  background:
    radial-gradient(ellipse 68% 260px at 50% 0, rgba(48, 207, 121, 0.055), rgba(48, 207, 121, 0) 100%),
    #071109;
}
.act-head {
  max-width: 700px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.act-head-left { margin-left: 0; text-align: left; align-items: flex-start; }
.kicker { font-size: 13.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.act-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.act-head p { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); line-height: 1.72; max-width: 34em; text-wrap: balance; }
.act-head-left p { text-wrap: pretty; }

/* ========== 第二幕 · 分段切换器与 16:9 剧场 ========== */
.seg {
  display: flex; width: fit-content; margin: 0 auto 28px; padding: 5px; gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.seg button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600;
  min-height: 40px; padding: 0 22px; border-radius: 999px;
  color: var(--text-2); background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] {
  color: #072316;
  background: var(--mint);
  box-shadow: 0 6px 20px rgba(110, 231, 168, 0.26);
}

.theater {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: transparent;
}
.theater-wide {
  max-width: 100%;
}
.theater-panel { position: absolute; inset: 0; margin: 0; cursor: pointer; }
.theater-panel[hidden] { display: none; }
/* 无边框融入暗场画布：四边极柔羽化，手表与手机直接浮在网页暗场上 */
.theater-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}
/* 第三幕双设备高挑 iPhone：上下仅微羽化 1.5%，完整保留手机上下轮廓 */
.theater-wide .theater-media {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 1.5%, #000 98.5%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 1.5%, #000 98.5%, transparent 100%);
}

/* 剧场底边居中极简进度细线（无外框，呼应「一条线」） */
.theater-progress {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 120px;
  margin-left: -60px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(48, 207, 121, 0.50), var(--mint));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 2;
}

/* 短片控件：重播 / 暂停 */
.media-still { display: none; }
.media-ctrl { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.media-btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  color: #F3F8F5; background: rgba(14, 24, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.media-btn:hover { background: rgba(24, 42, 31, 0.85); border-color: rgba(110, 231, 168, 0.42); color: var(--mint); }
.media-btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  [data-media] video, .theater-progress { display: none; }
  [data-media] .media-still { display: block; }
  .media-ctrl { display: none; }
  .theater-panel { cursor: default; }
}

/* 第二幕三列注脚 */
.notes3 {
  list-style: none; margin: clamp(36px, 4vw, 56px) auto 0; padding: 0; max-width: 960px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px;
}
.notes3 li { padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.notes3 h3 { font-size: 17px; font-weight: 700; }
.notes3 p { font-size: 15px; color: var(--text-2); line-height: 1.7; }
@media (max-width: 820px) { .notes3 { grid-template-columns: 1fr; } }

/* ========== 第三幕 · 时间轴与支持说明 ========== */
.timeline {
  list-style: none; margin: clamp(40px, 4.5vw, 60px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px;
}
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; gap: 28px; } }
.timeline li {
  position: relative; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.timeline li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 28px; height: 2px; border-radius: 999px; background: var(--mint);
}
.step-no {
  font-size: 36px; font-weight: 300; line-height: 1;
  color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
  margin-bottom: 8px; opacity: 0.72;
}
.timeline li h3 { font-size: 19px; font-weight: 700; }
.timeline li p { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 24em; }

/* ========== 第三幕下半 · 一源三路：同一句写进 flomo / Notion / Obsidian ========== */
.sync {
  display: grid;
  grid-template-columns: minmax(228px, 296px) clamp(64px, 8vw, 112px) minmax(0, 1fr);
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.sync-source {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(110, 231, 168, 0.11), transparent 62%),
    linear-gradient(180deg, #101C15, #0A130D);
  border: 1px solid rgba(110, 231, 168, 0.24);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.02), 0 28px 64px rgba(0, 0, 0, 0.50);
  display: flex; flex-direction: column; gap: 12px;
}
/* 源卡片右侧发光接点 */
.sync-source::after {
  content: "";
  position: absolute;
  right: -4px; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(110, 231, 168, 0.85);
  transform: translateY(-50%);
}
.sync-from { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; }
.sync-live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(48, 207, 121, 0.16); }
.sync-said { font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; line-height: 1.38; letter-spacing: -0.015em; color: #F5FAF7; }
.sync-wave-line {
  width: 48px; height: 2.5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), rgba(110, 231, 168, 0.35));
  margin-top: 2px;
}
.sync-foot-line { font-size: 12.5px; color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 关键：显式 align-self: stretch，确保 SVG 连线高度严格贴合右侧三卡总高 */
.sync-wires { display: block; align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.sync-wires path { fill: none; vector-effect: non-scaling-stroke; }
.sync-wires .wire { stroke: rgba(255, 255, 255, 0.13); stroke-width: 1.5; }
.sync-wires .wire-pulse { stroke: var(--mint); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(110, 231, 168, 0.90)); stroke-linecap: round; stroke-dasharray: 0 100; opacity: 0; }
.sync-trunk { display: none; }

.sync-dests {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-rows: 1fr; gap: 14px;
}
.sync-dest {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.28fr); gap: 18px 22px; align-items: center;
  padding: 18px 18px 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
/* 目标卡片左侧精致接点 */
.sync-dest::before {
  content: "";
  position: absolute;
  left: -4px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.dest-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dest-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dest-name { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; color: #F5FAF7; letter-spacing: -0.01em; }
.dest-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dest-dot.is-flomo { background: #30CF79; }
.dest-dot.is-notion { background: #EDEDEA; }
.dest-dot.is-obsidian { background: #9B7BF0; }
.dest-state {
  font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  color: rgba(235, 240, 237, 0.62); background: rgba(255, 255, 255, 0.07);
}
.dest-state.is-on { color: var(--mint); background: rgba(110, 231, 168, 0.13); }
.dest-meta p { font-size: 13.5px; color: var(--text-2); line-height: 1.62; }

/* 各家落地样子：统一暗场质感，与全暗影棚和谐共融 */
.mock {
  border-radius: 14px; padding: 13px 15px; font-size: 13.5px; line-height: 1.6;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.mock p { margin: 0; }
.mock-new { transition: background-color 0.5s ease, color 0.5s ease; border-radius: 7px; }
.mock-flomo {
  background: #131D17;
  color: #EEF4F0;
  border: 1px solid rgba(48, 207, 121, 0.22);
}
.mock-flomo .mock-time { font-size: 11.5px; color: #7C9285; }
.mock-flomo .mock-new { padding: 4px 8px; margin: -4px -8px; }
.mock-flomo .mock-foot { font-size: 12px; color: #7C9285; }
.mock-flomo .mock-tag { color: #30CF79; background: rgba(48, 207, 121, 0.15); padding: 1px 7px; border-radius: 5px; font-weight: 600; }

.mock-notion { background: #181818; color: #E6E6E3; border: 1px solid rgba(255, 255, 255, 0.09); gap: 0; padding: 6px 0; }
.mock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 6px 14px; }
.mock-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row span:last-child { color: #8F8F8B; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mock-th { font-size: 12px; color: #8F8F8B; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mock-row + .mock-row:not(.mock-th) { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.mock-th + .mock-row { border-top: 0; }
.mock-notion .mock-new { border-radius: 0; }
.mock-old { opacity: 0.48; }

.mock-md { background: #1A1A21; color: #DCDDDE; border: 1px solid rgba(155, 123, 240, 0.20); font-size: 13px; }
.mock-file { font-size: 11.5px; color: #8E8C9A; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-md b { font-weight: 600; color: #B9A6F5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.mock-md .mock-new { padding: 4px 8px; margin: -4px -8px; }
.mock-md .mock-foot { color: #8E8C9A; font-size: 12px; }

.sync-note { margin-top: 32px; text-align: center; font-size: 14px; color: var(--text-3); }

/* 循环：信号沿线依次送达三家，送达那家的新一行与左侧接点亮一下（9 秒一轮） */
.js .sync.is-in .wire-pulse { animation: sync-pulse 9s linear infinite; }
.js .sync.is-in .p2 { animation-delay: 3s; }
.js .sync.is-in .p3 { animation-delay: 6s; }
.js .sync.is-in .sync-dest { animation: sync-land 9s ease infinite; }
.js .sync.is-in .sync-dest::before { animation: sync-node 9s ease infinite; }
.js .sync.is-in .sync-dest .mock-new { animation: sync-row 9s ease infinite; }
.js .sync.is-in .d2, .js .sync.is-in .d2::before, .js .sync.is-in .d2 .mock-new { animation-delay: 3s; }
.js .sync.is-in .d3, .js .sync.is-in .d3::before, .js .sync.is-in .d3 .mock-new { animation-delay: 6s; }
.js .sync.is-in .sync-dest, .js .sync.is-in .sync-dest::before, .js .sync.is-in .mock-new, .js .sync.is-in .wire-pulse { animation-fill-mode: backwards; }
@keyframes sync-pulse {
  0% { stroke-dasharray: 0 100; stroke-dashoffset: 0; opacity: 0; }
  1% { stroke-dasharray: 2 100; stroke-dashoffset: 0; opacity: 1; }
  5% { stroke-dasharray: 22 100; stroke-dashoffset: 0; opacity: 1; }
  12% { stroke-dasharray: 22 100; stroke-dashoffset: -80; opacity: 1; }
  14%, 100% { stroke-dasharray: 2 100; stroke-dashoffset: -100; opacity: 0; }
}
@keyframes sync-land {
  0%, 12% { border-color: rgba(255, 255, 255, 0.08); background-color: rgba(255, 255, 255, 0.025); }
  15%, 30% { border-color: rgba(110, 231, 168, 0.38); background-color: rgba(110, 231, 168, 0.05); }
  40%, 100% { border-color: rgba(255, 255, 255, 0.08); background-color: rgba(255, 255, 255, 0.025); }
}
@keyframes sync-node {
  0%, 12% { background-color: rgba(255, 255, 255, 0.24); box-shadow: none; }
  15%, 30% { background-color: #6EE7A8; box-shadow: 0 0 10px rgba(110, 231, 168, 0.90); }
  40%, 100% { background-color: rgba(255, 255, 255, 0.24); box-shadow: none; }
}
@keyframes sync-row {
  0%, 12% { background-color: rgba(48, 207, 121, 0); }
  15%, 30% { background-color: rgba(48, 207, 121, 0.16); }
  42%, 100% { background-color: rgba(48, 207, 121, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .sync.is-in .wire-pulse, .js .sync.is-in .sync-dest, .js .sync.is-in .sync-dest::before, .js .sync.is-in .mock-new { animation: none; }
}

@media (max-width: 900px) {
  .sync { grid-template-columns: 1fr; max-width: 560px; }
  .sync-source::after, .sync-dest::before { display: none; }
  .sync-wires { display: none; }
  .sync-trunk {
    display: block; justify-self: center; width: 1.5px; height: 40px;
    background: linear-gradient(180deg, rgba(110, 231, 168, 0.55), rgba(255, 255, 255, 0.10));
  }
  .sync-source { border-radius: 26px; }
}
@media (max-width: 560px) {
  .sync-dests { grid-auto-rows: auto; }
  .sync-dest { grid-template-columns: 1fr; padding: 18px; }
}

/* ========== 第四幕 · 左视频右交互的非对称双栏剧场 ========== */
.entry-split {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .entry-split { grid-template-columns: 1fr; gap: 20px; }
}
.theater-split {
  max-width: none;
  margin: 0;
  width: 100%;
}

.entry-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.pick-card {
  position: relative;
  appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 24px 24px 24px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pick-card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background-color 0.2s ease;
}
.pick-card:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.pick-card[aria-selected="true"] {
  background: rgba(110, 231, 168, 0.075);
  border-color: rgba(110, 231, 168, 0.34);
}
.pick-card[aria-selected="true"]::before { background: var(--mint); }
.pick-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  color: var(--mint);
  background: rgba(110, 231, 168, 0.12);
  padding: 3px 10px; border-radius: 999px;
}
.pick-tag.is-ultra {
  color: #FF945E;
  background: rgba(255, 138, 76, 0.14);
}
.pick-card strong { font-size: 18.5px; font-weight: 700; color: #F5FAF7; }
.pick-card span:last-child { font-size: 14.5px; color: var(--text-2); line-height: 1.65; }

/* 其余 4 种方式：清爽 4 列（窄屏 2 列 / 1 列） */
.entries-more {
  margin-top: clamp(44px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 32px;
}
@media (max-width: 960px) { .entries-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .entries-more { grid-template-columns: 1fr; gap: 26px; } }
.entry-item {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.entry-icon {
  width: 22px; height: 22px;
  stroke: var(--accent); fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 6px;
}
.entry-item h3 { font-size: 17px; font-weight: 700; }
.entry-item p { font-size: 14.5px; color: var(--text-2); line-height: 1.68; }

/* ========== 第四幕下半 · 2×2 暗色玻璃精密兜底卡片 ========== */
.guard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .guard-grid { grid-template-columns: 1fr; } }
.guard {
  position: relative; border-radius: 22px; padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 10px;
}
.guard::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}
.guard h3 { font-size: 19px; font-weight: 700; }
.guard p { font-size: 15px; color: var(--text-2); line-height: 1.72; margin-bottom: 10px; }

.ui-frag {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 13px 16px; border-radius: 15px;
  background: #121915; border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
}
.ui-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; flex: none; }
.ui-wave i { width: 2.5px; border-radius: 999px; background: var(--signal); display: block; opacity: 0.9; }
.ui-wave i:nth-child(1) { height: 6px; }
.ui-wave i:nth-child(2) { height: 15px; }
.ui-wave i:nth-child(3) { height: 10px; }
.ui-wave i:nth-child(4) { height: 18px; }
.ui-wave i:nth-child(5) { height: 8px; }
.ui-text { color: rgba(235, 240, 237, 0.68); margin-right: auto; }
.ui-text-warn { color: #FBBF24; font-weight: 600; }
.ui-chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ui-chip-warn { color: rgba(235, 240, 237, 0.70); background: rgba(255, 255, 255, 0.08); }
.ui-chip-ok { color: var(--mint); background: rgba(110, 231, 168, 0.12); }
.ui-code { background: rgba(255, 255, 255, 0.07); color: #F3F8F5; font-size: 13px; margin-right: auto; }
.ui-button { color: #30CF79; font-weight: 600; white-space: nowrap; }
.ui-warn-dot { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; flex: none; }
.ui-ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #30CF79; flex: none; }
.ui-link { color: var(--mint); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ui-link:hover { color: var(--accent-ink); }

/* 滚入微浮现 */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity 0.65s ease, translate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* ========== 页脚 ========== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--text-3);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  justify-content: space-between; align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--accent); }
.site-footer a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-footer .icp { flex-basis: 100%; font-size: 13px; min-height: 0; color: var(--text-3); }

/* ========== 隐私政策文档页 ========== */
.doc-page { padding-top: 48px; padding-bottom: 96px; }
@media (max-width: 640px) { .doc-page { padding-top: 32px; padding-bottom: 64px; } }
.doc-layout { display: grid; grid-template-columns: 224px minmax(0, 740px); gap: 28px 56px; align-items: start; }
.doc-header { grid-column: 2; display: flex; flex-direction: column; gap: 10px; }
.doc-header h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.doc-header p { color: var(--text-2); font-size: 15px; }

.toc {
  grid-column: 1; grid-row: 1 / span 2;
  position: sticky; top: calc(var(--header-h) + 32px);
  font-size: 14px; display: flex; flex-direction: column;
  border-left: 1px solid var(--rule); padding-left: 16px;
}
.toc strong { color: var(--text-3); font-size: 12.5px; letter-spacing: 0.04em; padding-bottom: 8px; }
.toc a { color: var(--text-2); text-decoration: none; padding: 5px 0; line-height: 1.45; }
.toc a:hover { color: var(--accent); }

.doc-body { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.doc-body section { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc-body section:first-of-type { border-top: 0; padding-top: 0; }
.doc-body h2 { font-size: 21px; font-weight: 700; }
.doc-body ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 9px; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-header, .toc, .doc-body { grid-column: 1; grid-row: auto; }
  .toc {
    position: static; border-left: 0;
    background: var(--bg-alt); border-radius: 18px; padding: 18px 20px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px;
  }
  .toc strong { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .toc { grid-template-columns: 1fr; } }

.summary {
  display: grid; gap: 16px 28px; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px 0 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
@media (max-width: 560px) { .summary { grid-template-columns: 1fr; } }
.summary div { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.summary strong { font-size: 15.5px; color: var(--accent); }
.summary span { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.callout { background: var(--bg-alt); border-left: 3px solid var(--mint); border-radius: 0 14px 14px 0; padding: 16px 20px; font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; color: var(--text-2); font-size: 13.5px; background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { table { font-size: 13px; } th, td { padding: 10px 10px; } }

/* ========== 技术支持页 ========== */
.support-top {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 48px; align-items: stretch; padding-top: 48px; margin-bottom: 56px;
}
@media (max-width: 820px) { .support-top { grid-template-columns: 1fr; padding-top: 32px; margin-bottom: 40px; } }
.support-top > div:first-child { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.support-top h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.support-top p { font-size: 16.5px; color: var(--text-2); max-width: 34em; line-height: 1.7; }

.contact-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(110, 231, 168, 0.18), transparent 50%),
    linear-gradient(145deg, var(--forest-hi), var(--forest));
  color: #FFFFFF; border-radius: 24px; padding: 28px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-card-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--mint); }
.contact-card a {
  color: #FFFFFF; font-size: 20px; font-weight: 700; word-break: break-all;
  text-decoration: underline; text-decoration-color: rgba(110, 231, 168, 0.50); text-underline-offset: 4px;
}
.contact-card a:hover { color: var(--mint); text-decoration-color: var(--mint); }
.contact-card p { font-size: 13.5px; color: rgba(217, 247, 228, 0.86); line-height: 1.68; }

.faq { display: flex; flex-direction: column; gap: 40px; max-width: 820px; padding-bottom: 96px; }
.faq-group { display: flex; flex-direction: column; }
.faq-group-title { font-size: 13.5px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 16px 0; transition: color 0.18s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 22px; font-weight: 300; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p { padding: 0 0 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; max-width: 44em; }
.faq details p + p { margin-top: -10px; }

/* ========== 404 ========== */
.not-found {
  min-height: 62vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 16px; padding: 64px 0;
}
.not-found-code { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.not-found h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.not-found p { color: var(--text-2); font-size: 16.5px; }
