/* 三栏：对话列表 / 聊天 / 成品。窄屏时后两栏变成抽屉。 */

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #eff1ee;
  --border: #e3e6e1;
  --text: #14171a;
  --text-dim: #667069;
  --accent: #07c160;      /* 微信绿，客户一眼知道这是干嘛的 */
  --accent-ink: #ffffff;
  --accent-soft: rgba(7,193,96,.10);   /* 悬停/高亮的浅底 */
  --danger: #c0392b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 3px rgba(20,30,25,.06), 0 8px 24px rgba(20,30,25,.05);
  --shadow-lg: 0 2px 8px rgba(20,30,25,.07), 0 24px 60px rgba(20,30,25,.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --surface: #1c1e24;
    --surface-2: #24272e;
    --border: #31353d;
    --text: #eceef2;
    --text-dim: #939aa4;
    --accent: #17c96a;
    --accent-ink: #06210f;
    --accent-soft: rgba(23,201,106,.13);
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 10px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
/* dvh 而不是 vh/100%：手机浏览器的地址栏会伸缩，用 vh 会让输入框被顶到屏幕外。
   先写 100% 给不认识 dvh 的老浏览器兜底。 */
html, body { height: 100%; height: 100dvh; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; }

/* ---------------- 品牌标识 ---------------- */
.lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lockup svg { flex: 0 0 auto; border-radius: 11px;
              box-shadow: 0 2px 8px rgba(7,193,96,.28); }
.lockup-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.22; }
.lockup-name { font-weight: 700; letter-spacing: .02em; }
.lockup-sub { font-size: 11px; color: var(--text-dim); letter-spacing: .06em;
              white-space: nowrap; }
.lockup-sm .lockup-name { font-size: 16px; }
.lockup-lg .lockup-name { font-size: 25px; }
.lockup-lg .lockup-sub { font-size: 12px; margin-top: 3px; }

/* ---------------- 登录 ---------------- */
/* 两栏：左边讲清楚这是什么，右边让人进去。窄屏收成一栏，插画和卖点让位给表单。 */
.gate {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 520px at 10% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(760px 480px at 106% 110%, var(--accent-soft), transparent 62%),
    var(--bg);
}
.gate-card {
  width: min(880px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
}
.gate-hero {
  padding: 40px 34px; border-right: 1px solid var(--border);
  background: linear-gradient(158deg, var(--accent-soft), transparent 68%);
}
.gate-tagline { margin: 20px 0 0; font-size: 15px; line-height: 1.75; color: var(--text-dim); }
.banner-art { width: 100%; height: auto; margin: 20px 0 2px; display: block; }
.bnr-frame { stroke: var(--border); stroke-width: 1.5; }
.bnr-card { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.bnr-cover { fill: var(--accent); opacity: .82; }
.bnr-line { fill: var(--text-dim); opacity: .5; }
.bnr-line.dim { opacity: .26; }
.bnr-arrow { stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round;
             stroke-linejoin: round; fill: none; opacity: .42; }
.bnr-ring { stroke: var(--border); stroke-width: 3; fill: none; }
.bnr-ring-lit { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; }
.gate-points { list-style: none; margin: 16px 0 0; padding: 0; }
.gate-points li { position: relative; padding-left: 21px; margin: 9px 0;
                  font-size: 13.5px; color: var(--text-dim); }
.gate-points li::before {
  content: ""; position: absolute; left: 3px; top: .6em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.gate-form { padding: 40px 34px; display: flex; flex-direction: column;
             justify-content: center; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px;
        border-radius: 10px; margin-bottom: 20px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--text-dim);
       padding: 8px; border-radius: 7px; }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
#auth-form label { display: block; font-size: 13px; color: var(--text-dim);
                   margin-bottom: 14px; }
#auth-form input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font: inherit;
}
#auth-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.primary {
  width: 100%; border: 0; border-radius: 9px; padding: 11px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.primary:disabled { opacity: .5; cursor: default; }
.error { color: var(--danger); font-size: 13px; margin-bottom: 12px; }

/* ---------------- 布局 ---------------- */
/* grid-template-rows 必须显式给 minmax(0,1fr)：默认的 auto 行会被内容撑高，
   于是整页跟着滚，三栏各自的 overflow 就全废了。 */
.app {
  display: grid; grid-template-columns: 264px minmax(0,1fr) 400px;
  grid-template-rows: minmax(0, 1fr); height: 100%; overflow: hidden;
}

.sidebar {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--surface); border-right: 1px solid var(--border);
  min-width: 0; min-height: 0;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between;
                gap: 8px; }
#close-sidebar { display: none; }
.new-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 11px; padding: 11px 12px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.new-btn .plus { color: var(--accent); font-weight: 700; }
.new-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.conv-item {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px;
  color: var(--text-dim); font-size: 14px; border: 0; background: transparent;
  width: 100%; text-align: left;
}
.conv-item:hover { background: var(--surface-2); color: var(--text); }
.conv-item.active { background: var(--surface-2); color: var(--text); font-weight: 500; }
.conv-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-del { opacity: 0; border: 0; background: transparent; color: var(--text-dim);
            padding: 0 2px; }
.conv-item:hover .conv-del { opacity: 1; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between;
                border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; }
.user-email { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis;
              white-space: nowrap; }
.link-btn { border: 0; background: transparent; color: var(--text-dim);
            text-decoration: underline; font-size: 13px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.topbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface);
  position: relative; z-index: 2;
}
.topbar-title { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis;
                white-space: nowrap; }
.icon-btn { border: 0; background: transparent; color: var(--text-dim);
            font-size: 16px; padding: 4px 8px; border-radius: 7px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
#open-sidebar, #open-panel { display: none; }

/* ---------------- 聊天 ---------------- */
.chat { flex: 1; overflow-y: auto; padding: 24px 16px 8px;
        display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 680px; width: 100%; margin: 0 auto; display: flex; gap: 12px; }
.msg .who { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid;
            place-items: center; font-size: 13px; background: var(--surface-2); }
.msg.user .who { background: var(--accent); color: var(--accent-ink); }
.msg .body { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.msg.pending .body { color: var(--text-dim); }

.empty { max-width: 680px; margin: 8vh auto 0; text-align: center; }
.empty-mark { display: inline-flex; margin-bottom: 18px; }
.empty-mark svg { border-radius: 16px; box-shadow: 0 6px 22px rgba(7,193,96,.26); }
.empty h1 { font-size: 26px; margin: 0 0 12px; letter-spacing: -.01em; }
.empty p { color: var(--text-dim); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 7px 14px; font-size: 13px;
}
.chip { transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent);
              background: var(--accent-soft); }

/* 底部 padding 里加 safe-area：不加的话 iPhone 的横条会压住输入框 */
.composer {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  max-width: 712px; width: 100%; margin: 0 auto;
}
.composer textarea {
  flex: 1; resize: none; max-height: 200px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  color: var(--text); font: inherit; line-height: 1.5;
}
.composer textarea:focus { outline: none; border-color: var(--accent); }
.send-btn {
  flex: 0 0 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 18px;
}
.send-btn:disabled { opacity: .4; cursor: default; }

/* ---------------- 成品面板 ---------------- */
.panel { display: flex; flex-direction: column; background: var(--surface);
         border-left: 1px solid var(--border); min-width: 0; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between;
              padding: 12px 16px; border-bottom: 1px solid var(--border);
              font-weight: 500; }
#close-panel { display: none; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px; display: flex;
              flex-direction: column; gap: 16px; }
.panel-empty { color: var(--text-dim); font-size: 13px; text-align: center;
               margin-top: 40px; }

/* flex-shrink:0 —— 面板是纵向 flex 容器，不锁死的话卡片会被压扁，
   最先受害的是固定高度的预览 iframe。 */
.card { border: 1px solid var(--border); border-radius: var(--radius);
        background: var(--bg); padding: 14px; flex-shrink: 0; }
.card h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .04em;
           text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.brief-row { display: flex; gap: 8px; font-size: 13px; padding: 4px 0;
             border-bottom: 1px dashed var(--border); }
.brief-row:last-child { border-bottom: 0; }
.brief-row b { flex: 0 0 68px; color: var(--text-dim); font-weight: 500; }
.brief-row div { flex: 1; min-width: 0; word-break: break-word; }
.brief-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 9px; padding: 9px 14px; font-size: 14px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--accent); border-color: var(--accent);
             color: var(--accent-ink); font-weight: 600; }
.btn.solid:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.grow { flex: 1; }

.prog { display: flex; flex-direction: column; gap: 6px; max-height: 260px;
        overflow-y: auto; font-size: 13px; }
.prog-line { display: flex; gap: 8px; color: var(--text-dim); }
.prog-line.step { color: var(--text); font-weight: 500; }
.prog-line .dot { flex: 0 0 6px; height: 6px; border-radius: 50%;
                  background: var(--border); margin-top: 8px; }
.prog-line.step .dot { background: var(--accent); }
.spinner {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-line { font-size: 13px; color: var(--text-dim); }
.fail { color: var(--danger); font-size: 13px; white-space: pre-wrap; }

.preview-frame {
  width: 100%; height: 520px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff;
}
.metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.metric { font-size: 12px; background: var(--surface-2); border-radius: 999px;
          padding: 3px 10px; color: var(--text-dim); }
.concern { font-size: 13px; color: var(--text-dim); margin: 6px 0; }

/* ---------------- 付款弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; background: rgba(10,14,12,.62); backdrop-filter: blur(3px);
  overflow-y: auto;
}
.modal {
  position: relative; width: min(400px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.modal-x { position: absolute; top: 12px; right: 14px; border: 0;
           background: transparent; color: var(--text-dim); font-size: 16px; }
.modal h2 { margin: 0 0 8px; font-size: 19px; }
.modal-sub { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-dim); }
.modal-price { margin: 16px 0 4px; font-size: 30px; font-weight: 800; color: var(--accent); }
.modal-steps { text-align: left; margin: 14px 0 18px; padding-left: 20px;
               font-size: 13.5px; color: var(--text-dim); line-height: 1.9; }
.modal-contact { margin-bottom: 18px; }
.modal-qr { width: 168px; height: 168px; border-radius: 10px; background: #fff;
            padding: 8px; display: block; margin: 0 auto 8px; }
.modal-form { display: flex; gap: 8px; }
.modal-form input {
  flex: 1; min-width: 0; padding: 11px 12px; font-size: 16px; letter-spacing: .06em;
  text-align: center; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.modal-form input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 420px) { .modal { padding: 24px 18px; } .modal-qr { width: 150px; height: 150px; } }

/* 发码面板 */
.admin-modal { text-align: left; }
.admin-modal h2, .admin-modal .modal-sub { text-align: left; }
.admin-stats { margin: 14px 0 12px; padding: 10px 12px; border-radius: 10px;
               background: var(--surface-2); font-size: 13px; color: var(--text-dim); }
.admin-form { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; }
.admin-form input {
  min-width: 0; padding: 10px 11px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.admin-form input:focus { outline: none; border-color: var(--accent); }
.admin-out { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.code-row {
  border: 1px dashed var(--border); background: var(--bg); color: var(--text);
  border-radius: 9px; padding: 11px; font-size: 16px; letter-spacing: .1em;
  font-weight: 600; text-align: center; font-family: ui-monospace, monospace;
}
.code-row:hover { border-color: var(--accent); color: var(--accent);
                  border-style: solid; background: var(--accent-soft); }

/* ---------------- 试读 ---------------- */
.preview-badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---------------- 封面 ---------------- */
.cover-card { border-radius: 8px; overflow: hidden; background: #fff;
              box-shadow: var(--shadow); }
.cover-shot { position: relative; line-height: 0; }
.cover-shot img { width: 100%; display: block; }
/* 微信发布后标题排在封面图下面（白底黑字），不是叠在图上。照这个还原，
   客户在面板里看到的就是消息流里的真实样子。 */
.cover-title {
  padding: 12px 14px; background: #fff; color: #1a1a1a;
  font-size: 15px; line-height: 1.45; font-weight: 500; text-align: left;
}

/* ---------------- 耗时拆解 ---------------- */
.timings { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.timings summary { font-size: 13px; color: var(--text-dim); cursor: pointer;
                   list-style: none; }
.timings summary::-webkit-details-marker { display: none; }
.timings summary::before { content: '▸ '; }
.timings[open] summary::before { content: '▾ '; }
.timings summary:hover { color: var(--text); }
.timing-row { display: flex; align-items: center; gap: 8px; font-size: 12px;
              margin-top: 7px; color: var(--text-dim); }
.timing-no { flex: 0 0 26px; font-variant-numeric: tabular-nums; opacity: .6; }
.timing-label { flex: 0 0 96px; overflow: hidden; text-overflow: ellipsis;
                white-space: nowrap; color: var(--text); }
.timing-track { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; }
.timing-bar { display: block; height: 100%; border-radius: 3px; background: var(--border); }
.timing-bar.hot { background: var(--accent); }
.timing-val { flex: 0 0 60px; text-align: right; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; z-index: 50; box-shadow: var(--shadow);
}

/* ---------------- 窄屏 ---------------- */
/* 平板：登录卡收成一栏，主界面成品栏变抽屉 */
@media (max-width: 880px) {
  .gate-card { grid-template-columns: minmax(0, 1fr); }
  .gate-hero { border-right: 0; border-bottom: 1px solid var(--border);
               padding: 34px 28px 28px; }
  .gate-form { padding: 28px; }
}

@media (max-width: 1080px) {
  .app { grid-template-columns: 240px minmax(0,1fr); }
  .panel {
    position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); z-index: 20;
    box-shadow: var(--shadow); transform: translateX(100%); transition: transform .2s;
  }
  .panel.open { transform: none; }
  #close-panel, #open-panel { display: block; }
}
@media (max-width: 760px) {
  /* 手机上登录页只留标识 + 一句话 + 表单：插画和卖点会把输入框顶到屏幕外，
     而来的人是要登录的，不是来看介绍的 */
  .gate { padding: 16px; }
  .gate-card { border-radius: 18px; }
  .gate-hero { padding: 26px 22px 20px; }
  .banner-art, .gate-points { display: none; }
  .gate-tagline { margin-top: 14px; font-size: 14px; }
  .gate-tagline br { display: none; }
  .lockup-lg .lockup-name { font-size: 21px; }

  /* iOS 在输入框字号 <16px 时会强行缩放整个页面，看起来像页面自己跳了一下 */
  .composer textarea { font-size: 16px; }
  .topbar { padding-top: calc(12px + env(safe-area-inset-top)); }
  .sidebar { padding-top: calc(16px + env(safe-area-inset-top)); }
  .empty { margin-top: 12vh; }
  .empty h1 { font-size: 22px; }
  .chip { font-size: 14px; padding: 9px 16px; }   /* 触摸目标够大 */
  .btn { padding: 11px 16px; }
  .panel-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .app { grid-template-columns: minmax(0,1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 85%); z-index: 30;
    transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  #close-sidebar, #open-sidebar { display: block; }
  .panel { width: 100%; }
  .preview-frame { height: 60vh; }
}

/* 开源署名。MIT 协议的硬性要求，所以不能是「点开才看得到」的形态，
   但也不该抢主视觉——压到最小字号、最低对比度，在那儿就行。 */
.credit {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim, #9a9a94);
}
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--fg, #333); }

/* 侧栏的次级工具入口。比「新建文章」弱一级：它是配套工具，不是主流程。 */
.tool-btn {
  width: 100%;
  margin: 8px 0 4px;
  padding: 9px 12px;
  border: 1px solid var(--line, #e3e3e0);
  border-radius: 9px;
  background: transparent;
  color: var(--dim, #6d6d68);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.tool-btn:hover { background: var(--soft, #f4f4f2); color: var(--fg, #2a2a28); }

/* 封面工具 */
.cover-modal { max-width: 560px; }
.cover-preview {
  margin: 16px 0 4px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft, #f4f4f2);
  aspect-ratio: 900 / 383;          /* 公众号封面固定 2.35:1，先占好位不跳版 */
  display: flex; align-items: center; justify-content: center;
}
.cover-preview img { width: 100%; display: block; }
.cover-preview .hint { color: var(--dim, #9a9a94); font-size: 13px; padding: 0 20px;
                       text-align: center; line-height: 1.7; }
.cover-styles { display: flex; gap: 8px; margin: 12px 0 4px; }
.cover-styles button {
  flex: 1; padding: 8px 6px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line, #e3e3e0); background: transparent; color: inherit;
}
.cover-styles button.on { border-color: #C9A961; background: #FAF7F0; color: #8a6d1f; }
.cover-copy { font-size: 12.5px; color: var(--dim, #9a9a94); margin: 10px 0 0;
              line-height: 1.7; }

/* 弹窗里的输入行和按钮行。之前只有付款弹窗，用不着这两个类。 */
.field { display: block; margin: 14px 0 0; font-size: 13px; color: var(--dim, #6d6d68); }
.field input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line, #e3e3e0); border-radius: 9px;
  background: var(--bg, #fff); color: var(--fg, #2a2a28);
  font-size: 14.5px; box-sizing: border-box;
}
.field input:focus { outline: none; border-color: #C9A961; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.modal-actions .btn { text-decoration: none; }

/* ================================ 开屏落地页
   客户第一反应是「我自己拿豆包写一篇不就完了」。这一段负责回答它。
   跟着登录卡片一起滚动——先让人能登录，想看再往下翻。 */

.gate-scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 22px auto 0; padding: 10px 18px;
  color: var(--dim, #8a8a85); font-size: 13.5px; cursor: pointer;
  animation: gate-bob 2.4s ease-in-out infinite;
}
.gate-scroll-hint:hover { color: var(--fg, #2a2a28); }
@keyframes gate-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(4px) } }
@media (prefers-reduced-motion: reduce) { .gate-scroll-hint { animation: none } }

#landing { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }

.ld { margin: 72px 0 0; }
.ld-h {
  margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.4;
  color: var(--fg, #1c1c1c);
}
.ld-sub { margin: 0 0 26px; font-size: 15px; line-height: 1.8; color: var(--dim, #8a8a85); }
.ld-cap { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: var(--dim, #9a9a94); }
.ld-note {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 12px;
  background: var(--soft, #f4f4f2); font-size: 13.5px; line-height: 1.85;
  color: var(--dim, #6d6d68);
}
.ld-note.ld-honest { border-left: 3px solid #C9A961; }
.ld-why { margin: 4px 0 0; font-size: 13px; line-height: 1.75; color: #a9a9a2; }

/* 对比表。三列：维度 / 直接问 AI / 笔间 */
.ld-table { border: 1px solid var(--line, #e5e5e2); border-radius: 14px; overflow: hidden; }
.ld-row {
  display: grid; grid-template-columns: 92px 1fr 1fr;
  gap: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.7;
  border-top: 1px solid var(--line, #e5e5e2);
}
.ld-row:first-child { border-top: 0; }
.ld-head { background: var(--soft, #f4f4f2); font-weight: 600; font-size: 13px;
           color: var(--dim, #8a8a85); }
.ld-head .on { color: #1c1c1c; }
.ld-k { color: var(--dim, #8a8a85); font-size: 13px; }
.ld-a { color: #a9a9a2; }
.ld-b { color: var(--fg, #1c1c1c); font-weight: 500; }

/* 六步流水线 */
.ld-steps { list-style: none; margin: 0; padding: 0; }
.ld-steps li { display: flex; gap: 16px; padding: 18px 0;
               border-top: 1px solid var(--line, #e5e5e2); }
.ld-steps li:first-child { border-top: 0; padding-top: 0; }
.ld-n { flex: none; width: 38px; height: 38px; border-radius: 10px;
        background: #1C1C1C; color: #C9A961; font-weight: 700; font-size: 14px;
        display: flex; align-items: center; justify-content: center; }
.ld-steps h3 { margin: 6px 0 4px; font-size: 16.5px; font-weight: 700; }
.ld-steps p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--dim, #6d6d68); }

/* 配图样张 */
.ld-cover { margin: 0 0 30px; }
.ld-cover img { width: 100%; border-radius: 12px; display: block; }
/* align-items:start —— 不然矮的那张会被同行的高图拉齐，底下空一大块 */
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
           align-items: start; }
.ld-fig { margin: 0; padding: 16px; border: 1px solid var(--line, #e5e5e2);
          border-radius: 12px; overflow: hidden; background: #fff; }
.ld-fig svg { width: 100%; height: auto; display: block; }

/* 三层评分 */
.ld-layers { display: grid; gap: 12px; }
.ld-layer { padding: 16px 18px; border: 1px solid var(--line, #e5e5e2); border-radius: 12px; }
.ld-layer-top { display: flex; align-items: baseline; justify-content: space-between; }
.ld-layer h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ld-layer-top span { font-size: 13px; font-weight: 700; color: #C9A961; }
.ld-layer p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--dim, #6d6d68); }

@media (max-width: 760px) {
  #landing { padding: 0 16px 60px; }
  .ld { margin-top: 52px; }
  .ld-h { font-size: 21px; }
  /* 窄屏放不下三列。改成上下堆叠，并用标签点明哪行是谁 */
  .ld-row { grid-template-columns: 1fr; gap: 6px; }
  .ld-head { display: none; }
  .ld-k { font-weight: 700; color: var(--fg, #1c1c1c); font-size: 14px; }
  .ld-a::before { content: "直接问 AI："; color: #c4c4be; }
  .ld-b::before { content: "笔间："; color: #C9A961; font-weight: 600; }
  .ld-grid { grid-template-columns: 1fr; }
}
