/* ==========================================================================
   竹外馆官网（zhuwai.cc）设计系统
   灵感融合：Granola × Daylight Computer × Things 3 × Bear × Readwise / Heptabase
   调性：当代人文暖纸书房 · 极致留白 · 思源宋体书卷秩序 · 沉静微动效
   ========================================================================== */

:root {
  /* 宣纸与光影 */
  --paper: #f7f6f0;
  --paper-warm: #f2efe6;
  --paper-card: #fcfbf8;
  --paper-elevated: #ffffff;
  --paper-tint: #eef3ef;

  /* 墨色层级 */
  --ink: #1c211e;
  --ink-secondary: #4e5852;
  --ink-muted: #7a837d;
  --ink-faint: #a1a9a3;

  /* 竹青主色与朱砂点睛（克制使用） */
  --bamboo: #2b5441;
  --bamboo-hover: #214233;
  --bamboo-soft: rgba(43, 84, 65, 0.08);
  --bamboo-line: rgba(43, 84, 65, 0.22);
  --cinnabar: #b84a39;
  --cinnabar-soft: rgba(184, 74, 57, 0.09);
  --amber-bg: #faf2df;
  --amber-border: rgba(176, 128, 48, 0.34);
  --amber-ink: #845916;

  /* 细线与漫反射投影 */
  --hairline: rgba(28, 33, 30, 0.085);
  --hairline-strong: rgba(28, 33, 30, 0.15);
  --shadow-paper: 0 1px 2px rgba(28, 33, 30, 0.04), 0 10px 30px -12px rgba(28, 33, 30, 0.07);
  --shadow-stage: 0 2px 6px rgba(28, 33, 30, 0.04), 0 26px 70px -22px rgba(24, 32, 27, 0.14), 0 0 0 1px rgba(28, 33, 30, 0.075);
  --shadow-slice: 0 12px 34px -10px rgba(24, 32, 27, 0.14), 0 2px 6px rgba(24, 32, 27, 0.05), 0 0 0 1px rgba(28, 33, 30, 0.07);

  /* 字体栈：思源宋体优先 + 系统宋体即时无闪烁兜底 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'Source Han Serif SC', 'Noto Serif CJK SC', 'SimSun', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* 圆角与节奏 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);

  /* 版心 */
  --container-wide: 1120px;
  --container-reading: 980px;
  --container-narrow: 760px;

  /* 兼容子页脚本可能读取的旧变量别名 */
  --zw-sub: var(--ink-secondary);
}

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

/* 确保原生 hidden 属性不被任意组件 display 覆盖 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* Daylight 式自然日光顶部柔和光晕 + 极微弱宣纸纸纤维质感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 84% 52% at 50% -8%, rgba(235, 223, 196, 0.62), rgba(247, 246, 240, 0) 70%),
    radial-gradient(ellipse 46% 36% at 86% 18%, rgba(214, 228, 219, 0.34), rgba(247, 246, 240, 0) 68%),
    radial-gradient(ellipse 40% 34% at 12% 48%, rgba(236, 227, 206, 0.32), rgba(247, 246, 240, 0) 72%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

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

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

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

/* 通用容器 */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.container-reading {
  max-width: var(--container-reading);
}

.container.narrow {
  max-width: var(--container-narrow);
}

/* 沉静滚动显现（Readwise / Daylight 节奏） */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 680ms var(--ease-calm), transform 680ms var(--ease-calm);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   顶部极简导航（Granola 式隐退浮顶）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 240, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 280ms var(--ease-calm), background-color 280ms var(--ease-calm);
}

.site-header.is-scrolled {
  background: rgba(247, 246, 240, 0.9);
  border-bottom-color: var(--hairline);
}

.nav-bar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bamboo);
  color: #f7f6f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  box-shadow: 0 2px 6px rgba(43, 84, 65, 0.2);
}

/* 朱砂微印点睛 */
.brand-mark::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cinnabar);
  border: 1.5px solid var(--paper);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
  padding-left: 10px;
  border-left: 1px solid var(--hairline-strong);
  letter-spacing: 0;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 200ms ease;
}

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

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--bamboo);
  border-radius: 2px;
}

.nav-cta {
  padding: 8px 16px !important;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f6f0 !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 220ms ease, transform 220ms var(--ease-calm);
}

.nav-cta:hover {
  background: var(--bamboo);
  transform: translateY(-1px);
}

/* ==========================================================================
   按钮体系（克制、实体纸感）
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 240ms var(--ease-calm),
    border-color 240ms var(--ease-calm),
    color 240ms var(--ease-calm),
    transform 240ms var(--ease-calm),
    box-shadow 240ms var(--ease-calm);
}

.btn:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-1.5px);
}

.btn:active:not(:disabled):not(.is-disabled) {
  transform: translateY(0);
}

.btn-primary {
  background: var(--bamboo);
  color: #f8f7f2;
  box-shadow: 0 6px 18px -6px rgba(43, 84, 65, 0.45);
}

.btn-primary:hover:not(:disabled) {
  background: var(--bamboo-hover);
  box-shadow: 0 10px 24px -8px rgba(43, 84, 65, 0.52);
}

.btn-paper {
  background: var(--paper-card);
  color: var(--ink);
  border-color: var(--hairline-strong);
  box-shadow: 0 1px 2px rgba(28, 33, 30, 0.04);
}

.btn-paper:hover:not(:disabled) {
  background: var(--paper-elevated);
  border-color: rgba(28, 33, 30, 0.26);
}

.btn-soft {
  background: var(--bamboo-soft);
  color: var(--bamboo);
  border-color: transparent;
}

.btn-soft:hover:not(:disabled) {
  background: rgba(43, 84, 65, 0.14);
}

.btn-danger {
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  border-color: rgba(184, 74, 57, 0.22);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(184, 74, 57, 0.16);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   第 1 段：Granola × Daylight 大留白居中首屏
   ========================================================================== */
.hero {
  padding: 82px 0 36px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-secondary);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--cinnabar);
  box-shadow: 0 0 0 4px rgba(184, 74, 57, 0.12);
}

.hero-title {
  margin: 0 auto 22px;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--bamboo);
}

.hero-lead {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--ink-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-footnote {
  font-size: 13px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   第 2 段：整幅 Obsidian 沉浸书房实机舞台（Granola 大窗 + Bear 丝滑切屏）
   ========================================================================== */
.stage-section {
  padding: 20px 0 96px;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* Bear 风格平滑切换胶囊栏 */
.scene-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(28, 33, 30, 0.045);
  border: 1px solid var(--hairline);
}

.scene-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--paper-elevated);
  box-shadow: 0 2px 8px rgba(28, 33, 30, 0.08), 0 0 0 1px rgba(28, 33, 30, 0.04);
  transition: transform 360ms var(--ease-calm), width 360ms var(--ease-calm);
  pointer-events: none;
}

.scene-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 220ms ease;
}

.scene-tab:hover {
  color: var(--ink);
}

.scene-tab.is-active {
  color: var(--ink);
}

.scene-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cinnabar);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 240ms ease, transform 240ms var(--ease-calm);
}

.scene-tab.is-active .scene-tab-dot {
  opacity: 1;
  transform: scale(1);
}

.video-toggle-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--bamboo-line);
  background: var(--paper-card);
  color: var(--bamboo);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 200ms ease;
}

.video-toggle-btn:hover {
  background: var(--bamboo-soft);
}

/* 宽幅 Obsidian 窗口外壳 */
.obsidian-window {
  background: var(--paper-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  position: relative;
}

.obsidian-titlebar {
  height: 44px;
  padding: 0 18px;
  background: #f3f2ec;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
  background: rgba(28, 33, 30, 0.14);
}

.window-dots i:nth-child(1) { background: rgba(184, 74, 57, 0.42); }
.window-dots i:nth-child(2) { background: rgba(196, 152, 62, 0.42); }
.window-dots i:nth-child(3) { background: rgba(43, 84, 65, 0.42); }

.window-path {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--bamboo);
}

.window-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bamboo);
}

/* 预留短视频浮层 */
.stage-video-wrap {
  background: #141816;
  aspect-ratio: 16 / 9;
  position: relative;
}

.stage-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 双栏主画布：左笔记 + 右竹外馆侧栏 */
.obsidian-body {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 396px);
  min-height: 604px;
}

/* 左栏：Obsidian 书房笔记 */
.note-pane {
  background: #fbfaf6;
  border-right: 1px solid var(--hairline);
  padding: 36px 46px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.note-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(28, 33, 30, 0.05);
  color: var(--ink-secondary);
}

.note-doc-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.note-scene-block {
  display: none;
  animation: gentleFade 380ms var(--ease-calm);
}

.note-scene-block.is-active {
  display: block;
}

@keyframes gentleFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #363e39;
}

.note-quote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 2.5px solid var(--bamboo);
  background: rgba(43, 84, 65, 0.045);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.note-live-sync {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--bamboo-line);
  background: rgba(43, 84, 65, 0.045);
  font-size: 13.5px;
  color: var(--bamboo);
  transition: all 320ms var(--ease-calm);
}

.note-live-sync.is-updated {
  border-style: solid;
  background: #edf4ef;
  box-shadow: 0 4px 16px -8px rgba(43, 84, 65, 0.25);
}

.note-live-sync strong {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* Diff 模拟高亮（配合改库审批场景） */
.note-diff-box {
  margin-top: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13.5px;
}

.note-diff-head {
  padding: 8px 14px;
  background: #f3f1ea;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.note-diff-del {
  padding: 10px 14px;
  background: rgba(184, 74, 57, 0.065);
  color: #8c372a;
  text-decoration: line-through;
}

.note-diff-add {
  padding: 10px 14px;
  background: rgba(43, 84, 65, 0.075);
  color: #1f4534;
}

/* 目录树列表（配合参考资料挂载场景） */
.note-ref-tree {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.note-ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--paper-elevated);
  font-size: 13.5px;
}

.note-ref-item.is-selected {
  border-color: var(--bamboo-line);
  background: #f1f6f3;
}

.note-ref-badge {
  font-size: 12px;
  color: var(--bamboo);
}

.note-footer-bar {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* 右栏：竹外馆真实侧边栏舞台 */
.sidebar-pane {
  background: #f6f7f3;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.sidebar-scene {
  display: none;
  flex: 1;
  flex-direction: column;
  animation: gentleFade 360ms var(--ease-calm);
}

.sidebar-scene.is-active {
  display: flex;
}

/* 场景 1：像素级还原竹外馆真机亮色圆桌交互区 */
.zw-app-header {
  padding: 14px 18px 11px;
  background: #fbfbf8;
  border-bottom: 1px solid rgba(28, 33, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zw-app-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.zw-app-hint {
  font-size: 11.5px;
  color: var(--bamboo);
  background: var(--bamboo-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.zw-app-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.zw-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.zw-session-title {
  font-weight: 600;
  color: var(--ink);
}

.zw-session-actions {
  display: inline-flex;
  gap: 10px;
  font-size: 12px;
  color: var(--bamboo);
}

/* 成员来源小条（告别 [1][2] 编号） */
.zw-advice-mini {
  background: #fbfbf8;
  border: 1px solid rgba(28, 33, 30, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.zw-advice-mini p {
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.5;
}

.zw-sources-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.zw-sources-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zw-sources-row i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6c7771;
  display: inline-block;
}

/* 标志性暖琥珀「待我决定」决策卡 -> 拍板后变为竹青已拍板卡 */
.zw-decide-card {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 13px;
  padding: 12px 13px;
  transition: background-color 340ms var(--ease-calm), border-color 340ms var(--ease-calm);
}

.zw-decide-card.is-resolved {
  background: #ebf4ee;
  border-color: rgba(43, 84, 65, 0.3);
}

.zw-decide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber-ink);
  margin-bottom: 7px;
}

.zw-decide-card.is-resolved .zw-decide-head {
  color: var(--bamboo);
}

.zw-decide-q {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.zw-option-list {
  display: grid;
  gap: 6px;
}

.zw-option-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(28, 33, 30, 0.11);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 180ms var(--ease-calm);
}

.zw-option-btn:hover {
  border-color: var(--bamboo);
  background: #ffffff;
  transform: translateX(2px);
}

.zw-option-btn.is-picked {
  border-color: var(--bamboo);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--bamboo);
}

.zw-option-key {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(28, 33, 30, 0.06);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zw-option-btn.is-picked .zw-option-key {
  background: var(--bamboo);
  color: #ffffff;
}

.zw-resolved-actions {
  margin-top: 9px;
  display: flex;
  gap: 8px;
}

.zw-fill-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(43, 84, 65, 0.28);
  background: #ffffff;
  color: var(--bamboo);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.zw-fill-btn:hover {
  background: var(--bamboo);
  color: #ffffff;
}

.zw-reset-btn {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
}

/* 底部输入框模拟区 */
.zw-composer {
  margin-top: auto;
  background: #ffffff;
  border: 1px solid rgba(28, 33, 30, 0.14);
  border-radius: 13px;
  padding: 10px 12px;
}

.zw-composer-text {
  min-height: 44px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 8px;
  white-space: pre-line;
}

.zw-composer-text.has-draft {
  color: var(--ink);
}

.zw-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zw-model-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3ee;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.zw-send-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: var(--bamboo);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.zw-real-compare {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--hairline);
  background: #f2f3ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.zw-link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--bamboo);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 场景 2 / 3 / 4：高清真机侧栏画框（自动裁去底部测试状态红图标，呈现极致洁净切片） */
.real-shot-pane {
  padding: 16px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.shot-frame {
  width: 100%;
  max-width: 328px;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfbf8;
  box-shadow: var(--shadow-slice);
  cursor: zoom-in;
  position: relative;
  transition: transform 320ms var(--ease-calm), box-shadow 320ms var(--ease-calm);
}

.shot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(24, 32, 27, 0.18), 0 0 0 1px rgba(43, 84, 65, 0.22);
}

/* 优雅裁去窄栏截图最底端 4.6% 的测试环境同步角标条 */
.shot-frame.crop-status-bar img {
  width: 100%;
  height: auto;
  margin-bottom: -4.8%;
}

.shot-caption {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

/* ==========================================================================
   通用章节版头（极度克制的书房编辑排版）
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-divided {
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.is-left {
  margin-left: 0;
  text-align: left;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bamboo);
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.82;
  color: var(--ink-secondary);
}

/* ==========================================================================
   第 3 段：大卖点聚光灯——多 AI 圆桌决策闭环（Heptabase / Readwise 三联叠卡）
   ========================================================================== */
.roundtable-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 56px;
  align-items: center;
}

.step-nav {
  display: grid;
  gap: 8px;
}

.step-card {
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 280ms var(--ease-calm), border-color 280ms var(--ease-calm), box-shadow 280ms var(--ease-calm);
}

.step-card:hover {
  background: rgba(252, 251, 248, 0.72);
}

.step-card.is-active {
  background: var(--paper-card);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-paper);
}

.step-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2.5px;
  border-radius: 4px;
  background: var(--bamboo);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 280ms var(--ease-calm), transform 280ms var(--ease-calm);
}

.step-card.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card.is-active .step-num {
  color: var(--bamboo);
}

.step-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* 右侧：Heptabase 式高克重真机叠卡翻阅舞台 */
.deck-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 610px;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(235, 228, 211, 0.56), rgba(247, 246, 240, 0) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-card {
  position: absolute;
  width: 300px;
  border-radius: 18px;
  background: #fbfbf8;
  border: 1px solid rgba(28, 33, 30, 0.1);
  box-shadow: 0 22px 54px -18px rgba(24, 32, 27, 0.18), 0 2px 6px rgba(24, 32, 27, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 560ms var(--ease-calm),
    opacity 460ms var(--ease-calm),
    box-shadow 460ms var(--ease-calm),
    filter 460ms var(--ease-calm);
}

.deck-card img {
  width: 100%;
  height: auto;
  margin-bottom: -4.8%;
}

.deck-card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.92);
  border: 1px solid rgba(28, 33, 30, 0.08);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  backdrop-filter: blur(8px);
}

/* 4 层叠卡位置状态由 data-pos 控制 */
.deck-card[data-pos="0"] {
  z-index: 4;
  transform: translate3d(-18px, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
  filter: none;
  cursor: zoom-in;
}

.deck-card[data-pos="1"] {
  z-index: 3;
  transform: translate3d(68px, 14px, 0) scale(0.91) rotate(2.6deg);
  opacity: 0.84;
  filter: saturate(0.86);
}

.deck-card[data-pos="2"] {
  z-index: 2;
  transform: translate3d(118px, 28px, 0) scale(0.82) rotate(5deg);
  opacity: 0.52;
  filter: saturate(0.75);
}

.deck-card[data-pos="3"] {
  z-index: 1;
  transform: translate3d(-72px, 24px, 0) scale(0.84) rotate(-3.5deg);
  opacity: 0.42;
  filter: saturate(0.75);
}

.deck-card[data-pos="1"]:hover,
.deck-card[data-pos="2"]:hover,
.deck-card[data-pos="3"]:hover {
  opacity: 0.96;
}

.deck-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   第 4 段：四大核心卖点纸感 Bento 画廊（Things 3 切片质感）
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bento-card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 34px 0;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 360ms var(--ease-calm), border-color 300ms ease, box-shadow 360ms var(--ease-calm);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 18px 42px -20px rgba(24, 32, 27, 0.14);
}

.bento-copy {
  margin-bottom: 26px;
}

.bento-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bamboo);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.bento-label.is-cinnabar {
  color: var(--cinnabar);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.bento-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--ink-secondary);
}

/* 卡片底部纸台切片展示区 */
.bento-visual {
  margin: 0 -10px;
  padding: 22px 22px 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #f2f0e8 0%, #ebe8de 100%);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 288px;
}

.bento-slice {
  width: 286px;
  max-height: 278px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #fbfbf8;
  box-shadow: 0 -2px 24px -6px rgba(24, 32, 27, 0.14), 0 0 0 1px rgba(28, 33, 30, 0.08);
  cursor: zoom-in;
  transition: transform 420ms var(--ease-calm);
}

.bento-card:hover .bento-slice {
  transform: translateY(-5px);
}

.bento-slice img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本机 Agent 协同纸本架构卡 */
.agent-diagram {
  width: 100%;
  padding-bottom: 22px;
  display: grid;
  gap: 12px;
}

.agent-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-chip {
  background: var(--paper-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(28, 33, 30, 0.03);
}

.agent-chip strong {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.agent-chip strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bamboo);
}

.agent-chip span {
  font-size: 12px;
  color: var(--ink-muted);
}

.agent-bridge {
  background: var(--bamboo);
  color: #f7f6f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 13.5px;
}

.agent-bridge strong {
  font-weight: 600;
  line-height: 1.4;
}

.agent-bridge span {
  opacity: 0.86;
  font-size: 12.5px;
  line-height: 1.45;
}

/* Things 3 式底部 3 栏工程信任细线带 */
.trust-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.trust-cell {
  padding: 28px 26px;
}

.trust-cell + .trust-cell {
  border-left: 1px solid var(--hairline);
}

.trust-cell h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.trust-cell p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.trust-cell a {
  color: var(--bamboo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   第 5 段：一键获取与体面买断区（Things 3 极简克制高转化）
   ========================================================================== */
.download-box {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px 42px;
  box-shadow: var(--shadow-paper);
}

.download-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.download-detected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--bamboo);
  margin-bottom: 8px;
}

.download-hero-row h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
}

.download-hero-row p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.download-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.install-step {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.install-step strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 4px;
}

.install-step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--bamboo);
  margin-bottom: 4px;
  display: block;
}

.all-packages-details {
  padding-top: 20px;
}

.all-packages-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease;
}

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

.all-packages-details summary:hover {
  color: var(--bamboo);
}

.pkg-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pkg-item {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.pkg-item.is-recommended {
  border-color: var(--bamboo-line);
  background: #f2f7f4;
}

.pkg-os {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.pkg-arch {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 体面买断定价卡片（Things 3 审美：无廉价促销感） */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.is-featured {
  background: var(--paper-elevated);
  border-color: var(--bamboo-line);
  box-shadow: 0 20px 46px -22px rgba(43, 84, 65, 0.2), 0 0 0 1px rgba(43, 84, 65, 0.14);
}

.price-card.is-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2.5px;
  border-radius: 0 0 4px 4px;
  background: var(--bamboo);
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.price-tier {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--cinnabar);
}

.price-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cinnabar);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.price-original {
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: line-through;
}

.price-desc {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  min-height: 44px;
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.55;
}

.price-list li::before {
  content: '✓';
  color: var(--bamboo);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

.pricing-footnote {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.pricing-footnote a {
  color: var(--bamboo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 爱发电创作者认证与独立支持声明条（温和融入纸面，方便审核核验） */
.creator-note {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.creator-note strong {
  color: var(--ink);
}

/* ==========================================================================
   第 6 段：极细 1px 线 FAQ 手风琴 + 极简书房页脚
   ========================================================================== */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color 200ms ease;
}

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

.faq-item summary:hover {
  color: var(--bamboo);
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: transform 280ms var(--ease-calm);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--bamboo);
}

.faq-answer {
  padding: 0 28px 22px 4px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-secondary);
}

.faq-answer a {
  color: var(--bamboo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 书房落款页脚 */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 54px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

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

/* ==========================================================================
   高清真机灯箱（点击任意切片 1:1 放大欣赏）
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 21, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-calm);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #fbfbf8;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  max-height: calc(90vh - 70px);
}

.lightbox-img-wrap img {
  max-height: calc(90vh - 70px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-img-wrap.crop-status-bar img {
  margin-bottom: -4.4%;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #f4f3ed;
  font-size: 13.5px;
}

.lightbox-close {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   子页专用组件（devices.html 与 archive.html 共用，全站风格浑然一体）
   ========================================================================== */
.card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-paper);
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.code-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--paper-elevated);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.code-input:focus {
  border-color: var(--bamboo);
  box-shadow: 0 0 0 3px var(--bamboo-soft);
}

.status-banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
}

.status-banner.is-ok {
  background: #edf5ef;
  color: var(--bamboo);
  border: 1px solid rgba(43, 84, 65, 0.2);
}

.status-banner.is-warn {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-border);
}

.status-banner.is-error {
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  border: 1px solid rgba(184, 74, 57, 0.24);
}

.summary-grid {
  margin: 24px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-cell {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.summary-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.device-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.device-row {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--paper-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.device-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.device-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.callout {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.callout-soft {
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
}

/* ==========================================================================
   响应式适配（笔记本 / 平板 / 390px 手机端）
   ========================================================================== */
@media (max-width: 1020px) {
  .obsidian-body {
    grid-template-columns: 1fr;
  }

  .note-pane {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 28px 26px;
  }

  .roundtable-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .deck-stage {
    height: 550px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 58px 0 26px;
  }

  .section {
    padding: 68px 0;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-hide-sm {
    display: none;
  }

  .bento-grid,
  .trust-strip,
  .install-steps,
  .pkg-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .trust-cell {
    padding: 20px 4px;
  }

  .trust-cell + .trust-cell {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .download-box {
    padding: 26px 22px;
  }

  .deck-stage {
    height: 510px;
  }

  .deck-card {
    width: 260px;
  }

  .deck-card[data-pos="1"] {
    transform: translate3d(38px, 12px, 0) scale(0.91) rotate(2deg);
  }

  .deck-card[data-pos="2"] {
    transform: translate3d(64px, 22px, 0) scale(0.83) rotate(4deg);
  }

  .deck-card[data-pos="3"] {
    transform: translate3d(-36px, 18px, 0) scale(0.84) rotate(-2.5deg);
  }

  .form-row {
    flex-direction: column;
  }

  .scene-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .scene-tab {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.28;
  }

  .hero-eyebrow {
    font-size: 12px;
  }
}
