:root {
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #17211e;
  --muted: #68726e;
  --line: #d9dedb;
  --green: #174f42;
  --green-soft: #dfeae6;
  --coral: #e45d45;
  --violet: #4f4669;
  --gold: #d7a12f;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
  height: 64px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 246, .95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 4px;
  font-family: "STSong", "Songti SC", serif;
}

.mode { color: var(--muted); font-size: 13px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #2d9b65; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.topbar-link:hover { color: var(--green); }
.topbar-link-primary { color: var(--green); font-weight: 600; }
.topbar-user { color: var(--ink); font-size: 13px; }
.topbar-form { display: inline; margin: 0; padding: 0; }
.topbar-button { padding: 6px 0; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }

.steps {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.step { position: relative; display: flex; align-items: center; gap: 9px; color: #98a09d; font-size: 13px; }
.step::after { content: ""; position: absolute; right: 16px; width: 30%; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 12px/1 ui-monospace, monospace; }
.step b { font-weight: 500; }
.step.active { color: var(--green); }
.step.active span { color: white; border-color: var(--green); background: var(--green); }
.step.done { color: var(--ink); }
.step.done span { color: var(--green); border-color: var(--green); }

.workspace { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.capture-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); }
.workspace-head { padding: 66px 56px; border-right: 1px solid var(--line); background: linear-gradient(145deg, #eef4f1, #f9f7f2); }
.eyebrow { margin: 0 0 18px; color: var(--coral); font: 700 11px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: 1.6px; }
h1 { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: 48px; line-height: 1.22; font-weight: 600; letter-spacing: 0; }
.lede { margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

.capture-form, .editor-form { padding: 40px; }
.recorder { min-height: 205px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed #b8c4bf; background: #fbfcfb; }
.record-button { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--coral); cursor: pointer; box-shadow: 0 0 0 8px rgba(228, 93, 69, .12); }
.record-icon { display: block; width: 18px; height: 18px; margin: auto; border-radius: 50%; background: currentColor; }
.recording .record-icon { border-radius: 2px; transform: scale(.72); }
.recorder p { margin: 5px 0 0; font-size: 14px; }
.recorder input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.record-hint { color: var(--muted); font-size: 12px; }
.fallback-input { margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fallback-input summary, .advanced-edit summary { padding: 15px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.fallback-input .field { margin-top: 4px; }
.advanced-edit { margin-bottom: 20px; }
.wave { height: 28px; display: flex; align-items: center; gap: 3px; opacity: 0; }
.wave i { width: 2px; height: 5px; background: var(--coral); }
.recording .wave { opacity: 1; }
.recording .wave i { animation: wave .8s ease-in-out infinite alternate; }
.recording .wave i:nth-child(3n) { animation-delay: .2s; }
.recording .wave i:nth-child(4n) { animation-delay: .4s; }
@keyframes wave { to { height: 26px; } }

.or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #959d9a; font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field { display: grid; gap: 9px; margin-bottom: 22px; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field textarea, .field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: #fbfcfb;
  line-height: 1.7;
  resize: vertical;
}
.field textarea:focus, .field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 79, 66, .1); }

.primary-button, .secondary-button, .text-button, .icon-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { padding: 0 20px; border: 1px solid var(--green); color: white; background: var(--green); }
.primary-button svg { width: 19px; }
.primary-button:hover { background: #0f4035; }
.primary-button:disabled { cursor: not-allowed; opacity: .38; }
.secondary-button { padding: 0 17px; border: 1px solid var(--line); color: var(--ink); background: white; }
.secondary-button svg { width: 18px; }
.text-button { padding: 0 6px; border: 0; color: var(--muted); background: transparent; }
.icon-button { width: 42px; padding: 0; border: 1px solid var(--line); background: white; }
.icon-button svg { width: 20px; }

.recent { margin-top: 44px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font: 600 20px/1.2 "STSong", "Songti SC", serif; }
.section-heading span { color: var(--muted); font-size: 12px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { min-height: 58px; display: grid; grid-template-columns: 100px 1fr 110px 20px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.article-row time, .article-row span { color: var(--muted); font-size: 12px; }
.article-row strong { font-size: 14px; font-weight: 500; }
.article-row svg { width: 17px; color: var(--muted); }

.centered, .result-layout { min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; text-align: center; }
.centered .primary-button { margin-top: 28px; }
.processing-mark { height: 60px; display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.processing-mark span { width: 8px; height: 22px; background: var(--green); animation: wave .7s ease-in-out infinite alternate; }
.processing-mark span:nth-child(2) { height: 42px; animation-delay: .2s; }
.processing-mark span:nth-child(3) { height: 30px; animation-delay: .4s; }
.progress-track { width: min(460px, 100%); height: 5px; margin-top: 32px; overflow: hidden; border-radius: 3px; background: var(--green-soft); }
.progress-track span { display: block; width: 8%; height: 100%; background: var(--green); transition: width .6s ease; }
.processing-note { margin-top: 15px; color: var(--muted); font-size: 12px; }
.processing-error { max-width: 520px; margin-top: 20px; padding: 12px 14px; color: #9e3427; background: #fff0ed; border-radius: 4px; }

.editor-layout { display: grid; grid-template-columns: 330px 1fr; }
.editor-note { padding: 54px 40px; border-right: 1px solid var(--line); background: #f1f5f3; }
.editor-note h1 { font-size: 38px; }
.editor-note > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.editor-note audio { width: 100%; margin-top: 24px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.article-editor { padding: 38px; }
.article-tools, .cover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.article-tools h1, .cover-heading h1 { font-size: 38px; }
.article-grid { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); }
.article-grid .editor-form { border-right: 1px solid var(--line); }
.article-preview { max-height: 720px; overflow-y: auto; padding: 48px 42px; }
.article-preview h2 { margin: 0; font: 700 29px/1.35 "PingFang SC", sans-serif; }
.preview-label { margin-bottom: 34px; color: var(--muted); font: 11px/1 ui-monospace, monospace; }
.preview-meta { margin: 13px 0 35px; color: #8b9390; font-size: 13px; }
#preview-content { color: #303633; font-size: 16px; line-height: 1.9; }
#preview-content h2 { margin: 34px 0 14px; font-size: 21px; }
#preview-content blockquote { margin: 26px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.article-grid.preview-focus { grid-template-columns: 0 1fr; }
.article-grid.preview-focus .editor-form { overflow: hidden; padding: 0; opacity: 0; }
.revision-box { margin-top: 20px; padding: 20px; border: 1px solid var(--line); background: #f6f8f7; }
.revision-box form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.revision-box .field { margin: 0; }
.sticky-actions { margin-top: 26px; }

.cover-workspace { padding: 46px; }
.cover-heading .lede { margin-top: 12px; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cover-option { margin: 0; }
.cover-option button { position: relative; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; overflow: hidden; }
.cover-option img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover-index { position: absolute; left: 12px; bottom: 12px; padding: 5px 7px; color: white; background: rgba(23, 33, 30, .72); font: 11px/1 ui-monospace, monospace; }
.select-mark { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: none; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.select-mark svg { width: 16px; }
.cover-option.selected button { border-color: var(--green); }
.cover-option.selected .select-mark { display: grid; }
.cover-workspace .sticky-actions { padding-top: 28px; border-top: 1px solid var(--line); }

.result-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; color: white; background: var(--green); font-size: 28px; }
.result-mark svg { width: 30px; }
.result-mark.failed { background: var(--coral); }
.result-data { width: min(620px, 100%); margin: 40px 0; border-top: 1px solid var(--line); text-align: left; }
.result-data div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.result-data dt { color: var(--muted); font-size: 13px; }
.result-data dd { margin: 0; overflow-wrap: anywhere; }
.result-actions { display: flex; align-items: center; gap: 20px; }
.error-copy, .form-error { color: #9e3427; }
.toast-stack { position: fixed; top: 76px; right: 24px; z-index: 10; }
.toast { max-width: 380px; padding: 13px 16px; color: white; border-radius: 4px; background: var(--green); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.toast.error { background: #9e3427; }

@media (max-width: 820px) {
  .topbar { padding: 0 18px; }
  .shell { padding: 0 14px 56px; }
  .steps { min-height: 64px; }
  .step { justify-content: center; }
  .step b, .step::after { display: none; }
  .capture-layout, .editor-layout { grid-template-columns: 1fr; }
  .workspace-head, .editor-note { padding: 34px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: 38px; }
  .capture-form, .editor-form { padding: 24px; }
  .article-editor, .cover-workspace { padding: 24px 18px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid .editor-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .article-preview { padding: 36px 24px; max-height: none; }
  .article-tools h1, .cover-heading h1 { font-size: 32px; }
  .revision-box form { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-heading { align-items: flex-end; }
  .article-row { grid-template-columns: 65px 1fr 18px; gap: 10px; }
  .article-row span { display: none; }
  .centered, .result-layout { min-height: 430px; padding: 44px 22px; }
  .sticky-actions { align-items: stretch; }
  .sticky-actions .primary-button { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ===== 聊天对话框 ===== */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  background: var(--surface);
  border: none;
  border-radius: 0;
}

/* 当聊天框激活时，覆盖 .shell 的外边距 */
.chat-shell { margin-top: 0 !important; }
.shell:has(.chat-shell) { padding: 0; max-width: none; }

.chat-header {
  flex-shrink: 0;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #eef4f1, #f9f7f2);
}

.chat-header h1 {
  font-size: 32px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chat-messages:empty { display: flex; }
.chat-messages:empty::after {
  content: "输入文字后，润色结果会出现在这里";
  margin: auto;
  color: #b8c4bf;
  font-size: 14px;
  text-align: center;
  max-width: 260px;
  line-height: 1.6;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-label {
  font: 700 11px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 4px;
}

.msg-user { align-items: flex-end; }
.msg-user .msg-label { color: var(--green); }
.msg-assistant { align-items: flex-start; }

.msg-bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-user .msg-bubble {
  background: var(--green);
  color: white;
  border-bottom-right-radius: 4px;
}

.msg-assistant .msg-bubble {
  background: #f0f3f0;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

/* 文章卡片预览 */
.article-card { padding: 20px; }
.article-card .preview-label {
  margin-bottom: 20px;
  color: var(--muted);
  font: 11px/1 ui-monospace, monospace;
  letter-spacing: 1px;
}
.article-card .preview-title {
  margin: 0 0 6px;
  font: 700 22px/1.35 "PingFang SC", sans-serif;
}
.article-card .preview-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.article-card .preview-digest {
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid #dde0de;
  border-bottom: 1px solid #dde0de;
  color: #4f5a56;
  font-size: 13px;
  line-height: 1.6;
}
.article-card .preview-body {
  font-size: 15px;
  line-height: 1.9;
  color: #303633;
}
.article-card .preview-body h2 {
  margin: 24px 0 10px;
  font-size: 18px;
}
.article-card .preview-body blockquote {
  margin: 18px 0;
  padding: 3px 0 3px 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}
.article-card .preview-cover {
  width: 100%;
  margin-top: 18px;
  border-radius: 5px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-card-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dde0de;
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-card-actions .primary-button { min-height: 42px; font-size: 14px; }
.article-card-actions .text-button { font-size: 14px; }

/* 底部输入区 */
.chat-composer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.composer-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.composer-input-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.composer-input-wrap textarea {
  width: 100%;
  min-height: 44px;
  max-height: 200px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f4f6f4;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.composer-input-wrap textarea:focus {
  border-color: var(--green);
  background: white;
}

.composer-submit {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--green);
  cursor: pointer;
  transition: opacity .15s;
}
.composer-submit:disabled { opacity: .4; cursor: default; }
.composer-submit svg { width: 18px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chat-error {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: #fef0ef;
  color: #9e3427;
  border-radius: 6px;
  font-size: 14px;
}

.msg-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fef0ef;
  color: #9e3427;
  border-left: 3px solid #e45d45;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

/* ── 慢慢说：宣传页 ─────────────────────────────────────── */
.landing {
  min-height: calc(100dvh - 64px - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.landing-hero { max-width: 720px; }
.landing-title {
  margin: 14px 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 96px;
  letter-spacing: 6px;
  line-height: 1;
}
.landing-tagline {
  margin: 0 0 24px;
  color: var(--coral);
  font: 600 14px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 4px;
}
.landing-lede {
  margin: 0 auto 32px;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.landing-cta {
  display: inline-block;
  min-height: 56px;
  padding: 0 36px;
  line-height: 56px;
  border-radius: 4px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 2px;
}
.landing-cta:hover { background: #0f4035; }
.landing-secondary {
  display: inline-block;
  margin-left: 16px;
  color: var(--muted);
  font-size: 14px;
}
.landing-features {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 980px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: left;
}
.feature h3 { margin: 12px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 50%;
  font: 600 14px/1 ui-monospace, monospace;
}

/* ── 慢慢说：登录 / 注册 ───────────────────────────────── */
.auth-shell {
  min-height: calc(100dvh - 64px - 80px);
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 36px;
}
.auth-title { margin: 8px 0 4px; font-size: 30px; }
.auth-lede { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form input { width: 100%; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fef0ef;
  color: #9e3427;
  border-radius: 4px;
  font-size: 13px;
}
.auth-field-error { color: #9e3427; }
.auth-help { color: var(--muted); }
.auth-switch {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-switch a { color: var(--green); text-decoration: none; }

/* ── 慢慢说：聊天（口述）页 ────────────────────────────── */
.chat-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  min-height: calc(100dvh - 64px - 80px);
}
.chat-top { display: flex; flex-direction: column; gap: 8px; }
.chat-helper { margin: 0; color: var(--muted); font-size: 13px; }
.chat-transcript {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  font-family: inherit;
}
.chat-middle { display: flex; }
.assistant-bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--green-soft);
  border-radius: 6px;
  width: 100%;
}
.assistant-avatar {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-weight: 700;
}
.assistant-text strong { display: block; margin-bottom: 4px; color: var(--ink); }
.assistant-text p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.chat-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.chat-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}
.hidden-form { display: none; }

/* 麦克风按钮 */
.mic-button {
  position: relative;
  width: 156px;
  height: 156px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.mic-rings { position: absolute; inset: 0; }
.mic-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--coral);
  opacity: 0.2;
  animation: mic-pulse 2.4s ease-out infinite;
}
.mic-rings span:nth-child(2) { animation-delay: .8s; }
.mic-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes mic-pulse {
  0%   { transform: scale(.6); opacity: .55; }
  100% { transform: scale(1.15); opacity: 0; }
}
.mic-core {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  box-shadow: 0 12px 30px rgba(228, 93, 69, .25);
  transition: transform .12s ease;
}
.mic-button:active .mic-core,
.mic-button.recording .mic-core {
  transform: scale(1.08);
  background: #c64832;
}
.mic-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: white;
  display: block;
}
.mic-button.recording .mic-icon { border-radius: 6px; }
.mic-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.mic-hint { margin: 32px 0 0; color: var(--muted); font-size: 13px; }

/* ── 慢慢说：预览页 ───────────────────────────────────── */
.preview-shell { max-width: 880px; margin: 0 auto; padding: 40px 16px; }
.preview-header { margin-bottom: 24px; }
.preview-header h1 { margin: 6px 0 0; font-size: 32px; }
.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.preview-title { margin: 24px 0 6px; font-size: 28px; }
.preview-subtitle { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.preview-digest { margin: 0 0 18px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.preview-body { font-size: 16px; line-height: 1.9; color: var(--ink); }
.preview-body p { margin: 0 0 12px; }
.preview-warn { padding: 12px 14px; background: #fef0ef; color: #9e3427; border-radius: 4px; }
.preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.preview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.cover-tile { position: relative; }
.cover-tile button {
  width: 100%;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.cover-tile button img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.cover-tile.selected button { border-color: var(--green); }
.cover-tile .cover-index {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, .55);
  color: white;
  border-radius: 99px;
  font: 600 12px/1.6 ui-monospace, monospace;
}
.cover-tile .cover-mark {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
}
.cover-tile .cover-mark svg { width: 16px; stroke-width: 3; }
.cover-regen { margin-bottom: 16px; }

/* ── 慢慢说：成功页 ───────────────────────────────────── */
.done-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 16px;
  text-align: center;
}
.done-mark {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
}
.done-mark svg { width: 40px; stroke-width: 3; }
.done-shell h1 { margin: 8px 0; font-size: 32px; }
.done-data {
  margin: 32px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.done-data > div { display: grid; grid-template-columns: 100px 1fr; padding: 12px 0; }
.done-data dt { color: var(--muted); font-size: 13px; }
.done-data dd { margin: 0; font-size: 14px; }
.done-actions { display: flex; gap: 12px; justify-content: center; }

/* ── 慢慢说：历史页 ───────────────────────────────────── */
.history-shell { max-width: 880px; margin: 0 auto; padding: 40px 16px; }
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.history-header h1 { margin: 6px 0 0; font-size: 28px; }
.history-new { padding: 0 18px; }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.history-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
}
.history-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.history-cover-empty {
  display: grid; place-items: center;
  color: white;
  background: var(--green);
  font-family: "STSong", "Songti SC", serif;
  font-size: 28px;
}
.history-meta { min-width: 0; }
.history-title { margin: 0; font-size: 18px; }
.history-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.history-info { margin: 6px 0 0; color: var(--muted); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.status-pill {
  padding: 2px 8px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 99px;
  font-size: 11px;
}
.status-pill.status-failed { background: #fef0ef; color: #9e3427; }
.status-pill.status-organizing,
.status-pill.status-organizing { background: #fff5e1; color: #a37000; }
.history-empty { color: var(--muted); }

/* 移动端适配 */
@media (max-width: 720px) {
  .chat-shell { height: calc(100dvh - 64px); }
  .chat-header { padding: 22px 16px 18px; }
  .chat-header h1 { font-size: 28px; }
  .chat-messages { padding: 16px 12px; }
  .msg-bubble { max-width: 92%; font-size: 14px; }
  .article-card { padding: 16px; }
  .article-card .preview-title { font-size: 19px; }
  .composer-input-wrap textarea { font-size: 16px; }
}

/* 暗色模式剪裁 */
