:root {
  --paper: #f7f4ef;
  --paper-2: #ebe5dc;
  --ink: #23211f;
  --muted: #7c7770;
  --quiet: #b4ada4;
  --line: #d9d1c6;
  --line-dark: #8c867d;
  --accent: #c85f3e;
  --accent-2: #2f6c68;
  --panel: #fffdf9;
  --shadow: 0 24px 70px rgba(38, 34, 28, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(35, 33, 31, 0.035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(35, 33, 31, 0.025) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1440px, calc(100vw - 80px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid rgba(217, 209, 198, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 174px;
}

.brand-main {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
}

.brand-sub {
  display: block;
  margin-top: 7px;
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.34em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  color: #5e5953;
  font-size: 16px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--ink);
  background: var(--panel);
  color: var(--ink);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 150px;
}

.text-button {
  color: #6f6961;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  color: #6f6961;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.account-trigger:hover {
  color: var(--ink);
}

.account-caret {
  font-size: 10px;
  transition: transform 0.15s ease;
}

.account-menu.open .account-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 168px;
  display: none;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 30;
}

.account-menu.open .account-dropdown {
  display: flex;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: var(--paper-2);
}

.account-dropdown form {
  margin: 0;
}

.dark-button,
.light-button,
.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.dark-button {
  background: var(--ink);
  color: #fffdf9;
}

.dark-button:hover {
  background: #000;
}

.light-button,
.line-button {
  background: transparent;
  color: var(--ink);
}

.light-button:hover,
.line-button:hover {
  background: var(--panel);
}

.chat-apply {
  width: 100%;
}

.chat-apply:disabled,
.chat-apply:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.hero {
  padding: 82px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 72px;
  align-items: center;
}

.kicker {
  color: var(--quiet);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0.34em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 28px 0 26px;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 1.08;
  font-weight: 500;
}

.hero h1 span {
  display: inline;
}

.hero-copy {
  max-width: 640px;
  color: #69635d;
  font-size: 22px;
  line-height: 1.85;
}

.hero-copy span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.workflow-preview {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 34px;
}

.preview-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.preview-title strong {
  display: block;
  font-size: 24px;
}

.preview-title span {
  display: block;
  margin-top: 8px;
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.34em;
}

.doc-stage {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 16px;
  margin-top: 24px;
}

.doc-page,
.doc-side {
  min-height: 280px;
  border: 1px solid var(--line);
  background:
    linear-gradient(#e8e1d8 1px, transparent 1px) 0 36px / 100% 36px,
    #fbfaf7;
  padding: 22px;
}

.doc-side {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
}

.mini-page {
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.doc-line {
  height: 10px;
  background: #d8d0c5;
  margin-bottom: 14px;
}

.doc-line.short {
  width: 58%;
}

.doc-line.mid {
  width: 76%;
}

.doc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 12px;
}

.flow-strip {
  padding: 0 0 64px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.flow-card {
  min-height: 210px;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.flow-card:last-child {
  border-right: 0;
}

.flow-card:hover {
  background: rgba(255, 253, 249, 0.72);
  transform: translateY(-2px);
}

.flow-index {
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 16px;
}

.flow-card h2 {
  margin: 22px 0 12px;
  font-size: 25px;
  font-weight: 500;
}

.flow-card p {
  margin: 0;
  color: #777069;
  font-size: 17px;
  line-height: 1.65;
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(217, 209, 198, 0.9);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: 44px;
  margin-bottom: 34px;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.12;
  font-weight: 500;
}

.section-heading p {
  max-width: 780px;
  color: #6f6961;
  font-size: 18px;
  line-height: 1.82;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 12px 40px rgba(38, 34, 28, 0.045);
}

.panel-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.panel-header span,
.panel-label {
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.panel-body {
  padding: 20px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #5e5953;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffdf9;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.editor-shell {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(235, 229, 220, 0.32);
}

.tool {
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: #514c46;
  cursor: pointer;
}

.tool:hover {
  border-color: var(--ink);
}

.editor-content {
  flex: 1;
  padding: 28px;
  background: #fffdf9;
}

.document-title {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.document-title h2 {
  margin: 0 0 9px;
  font-size: 30px;
  font-weight: 500;
}

.document-title p {
  margin: 0;
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.28em;
}

.editable-doc {
  min-height: 470px;
  color: #34312e;
  font-size: 17px;
  line-height: 1.9;
}

.editable-doc h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.editable-doc ul {
  padding-left: 22px;
}

.chat-list {
  display: grid;
  gap: 14px;
}

.message {
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: #5f5952;
  font-size: 15px;
  line-height: 1.6;
}

.message.user {
  border-color: rgba(200, 95, 62, 0.45);
  background: rgba(200, 95, 62, 0.07);
  color: #44352e;
}

.addition-preview {
  margin-top: 10px;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid var(--accent-2, #2f6c68);
  background: rgba(47, 108, 104, 0.06);
  color: #3c4744;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

.addition-preview::before {
  content: "建议新增：";
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2, #2f6c68);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-input {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 142px;
  border: 1px dashed var(--line-dark);
  background: rgba(255, 253, 249, 0.75);
  text-align: center;
  color: #6f6961;
  line-height: 1.7;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.source-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: #5f5952;
}

.text-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 22px;
}

.chapter-list {
  display: grid;
  gap: 8px;
}

.chapter-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.chapter-item.active {
  border-color: var(--ink);
}

.chapter-no {
  color: var(--quiet);
  font-family: Georgia, serif;
}

.layout-board {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 620px;
}

.page-map {
  border-right: 1px solid var(--line);
  padding: 24px;
  background: #f9f6f1;
}

.a3-page {
  aspect-ratio: 1.414 / 1;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 14px;
}

.a3-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 10px;
}

.a3-block {
  border: 1px solid #e7dfd4;
  background: linear-gradient(135deg, #f4efe8, #fffdf9);
}

.text-preview {
  padding: 32px;
  background: #fffdf9;
}

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

.download-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  padding: 30px;
}

.download-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 24px;
}

.download-card h2 {
  margin: 28px 0 12px;
  font-size: 34px;
  font-weight: 500;
}

.download-card p {
  color: #6f6961;
  font-size: 17px;
  line-height: 1.75;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  color: #817a72;
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #f9f6f1;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.doc-app {
  min-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(35, 33, 31, 0.03) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--paper);
}

.workspace-mode .doc-app {
  min-height: 100vh;
  height: 100vh;
}

.doc-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  overflow-x: auto;
}

.doc-btn {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.doc-btn:hover,
.doc-btn.editing {
  border-color: var(--ink);
}

.doc-btn.editing {
  background: var(--ink);
  color: var(--paper);
}

.doc-project {
  color: #b07a1e;
  font-size: 15px;
  white-space: nowrap;
}

.doc-status {
  color: var(--accent-2);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.doc-spacer {
  flex: 1 0 18px;
}

.peer-list {
  display: inline-flex;
  align-items: center;
}

.peer {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #5fa8d6;
  color: white;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 10px;
}

.peer.self {
  margin-left: 0;
  background: #e8a33d;
  outline: 1px solid var(--ink);
}

.doc-workbench {
  flex: 1;
  min-height: 0;
  display: flex;
  border-bottom: 1px solid var(--line);
}

.outline-pane {
  width: 40%;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f7f5f0;
  box-shadow: inset 3px 0 0 #b07a1e;
}

.outline-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.pane-label {
  color: var(--muted);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 12px;
}

.mini-action {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.mini-action:hover {
  border-color: var(--ink);
}

.code-editor {
  flex: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  overflow: auto;
  background: #f7f5f0;
  color: #1b1b19;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 22px;
}

.line-no {
  min-height: 22px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  background: #f0ede4;
  color: #a8a69c;
  text-align: right;
  user-select: none;
}

.code-editor pre {
  min-height: 22px;
  margin: 0;
  padding: 0 12px;
  white-space: pre-wrap;
}

.code-editor pre:nth-of-type(3),
.code-editor pre:nth-of-type(8) {
  color: #a8a69c;
  font-style: italic;
}

.code-editor pre:nth-of-type(4),
.code-editor pre:nth-of-type(5),
.code-editor pre:nth-of-type(6),
.code-editor pre:nth-of-type(7) {
  color: #2f6f9e;
}

.code-editor pre:nth-of-type(10),
.code-editor pre:nth-of-type(13),
.code-editor pre:nth-of-type(15),
.code-editor pre:nth-of-type(20) {
  color: #9a6a14;
  font-weight: 600;
}

.splitter {
  width: 6px;
  flex: 0 0 6px;
  background: var(--line);
}

.preview-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  background: #eceae2;
}

.preview-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.preview-hud,
.preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #8d877f;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 12px;
}

.preview-foot {
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 18px;
}

.deck-preview {
  width: min(100%, 920px);
  aspect-ratio: 1.414 / 1;
  margin: auto;
  border: 1px solid #d5cbbd;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(35, 33, 31, 0.12);
  padding: 34px;
}

.deck-meta {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 12px;
}

.deck-title-block {
  margin-top: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.deck-title-block small {
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
}

.deck-title-block h2 {
  margin: 10px 0 0;
  font-size: 40px;
  font-weight: 500;
}

.deck-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
  height: 42%;
}

.deck-image {
  border: 1px solid #e0d8ce;
  background:
    linear-gradient(135deg, rgba(200, 95, 62, 0.08), rgba(47, 108, 104, 0.08)),
    #f5f0e9;
}

.deck-image.large {
  grid-row: 1 / span 2;
}

.caption-lines {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.caption-lines span {
  height: 9px;
  width: 78%;
  background: #d8d0c5;
}

.caption-lines .short {
  width: 46%;
}

.doc-footer-compact {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .shell {
    width: min(100% - 44px, 1040px);
  }

  .header-inner {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-grid,
  .workspace-layout,
  .text-workbench {
    grid-template-columns: 1fr;
  }

  .workflow-preview {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 48px);
    max-width: 640px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    min-width: 132px;
  }

  .brand-main {
    font-size: 22px;
  }

  .account-actions {
    display: none;
  }

  .account-actions .dark-button {
    width: auto;
    min-height: 42px;
    padding: 0 18px;
  }

  .nav-link {
    padding: 0 12px;
    font-size: 15px;
  }

  .main-nav {
    flex: 0 0 100%;
  }

  .hero {
    padding: 48px 0 42px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.18;
    overflow-wrap: break-word;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero h1 span {
    display: block;
  }

  .hero-copy,
  .section-heading p {
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-copy span {
    display: block;
  }

  .workflow-preview {
    width: 100%;
    overflow: hidden;
    padding: 18px;
  }

  .preview-title {
    flex-direction: column;
  }

  .preview-title strong {
    font-size: 22px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .dark-button,
  .light-button,
  .line-button {
    width: 100%;
  }

  .doc-stage,
  .flow-grid,
  .section-heading,
  .layout-board,
  .download-grid,
  .field.two {
    grid-template-columns: 1fr;
  }

  .flow-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-card:last-child {
    border-bottom: 0;
  }

  .page-map {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    flex-direction: column;
  }

  .account-actions .dark-button {
    width: auto;
    min-height: 42px;
    padding: 0 18px;
  }
}

/* ———— 线上版补充样式(工作台页/项目选择页专用, 原型 styles.css 之外) ———— */
.ws-textarea {
  width: 100%;
  min-height: 470px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #34312e;
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  font-size: 16px;
  line-height: 1.9;
  resize: vertical;
}

.key-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.key-status.ok {
  border-color: rgba(47, 108, 104, 0.4);
  background: rgba(47, 108, 104, 0.06);
  color: #2f6c68;
}

.key-status.warn {
  border-color: rgba(200, 95, 62, 0.45);
  background: rgba(200, 95, 62, 0.07);
  color: #a3542d;
}

.key-status.info {
  border-color: rgba(24, 95, 165, 0.35);
  background: rgba(24, 95, 165, 0.05);
  color: #185fa5;
}

.key-status a {
  text-decoration: underline;
}

.status-line {
  min-height: 20px;
  margin-top: 12px;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.source-item {
  cursor: pointer;
}

.source-item.active {
  border-color: var(--ink);
}

.source-item .del {
  border: 0;
  background: none;
  color: var(--quiet);
  cursor: pointer;
}

.source-item .del:hover {
  color: #c85f3e;
}

.chat-scroll {
  max-height: 430px;
  overflow: auto;
}

.req {
  color: #c85f3e;
}

.picker-list {
  display: grid;
  gap: 12px;
}

.picker-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.picker-item:hover {
  border-color: var(--ink);
}

.picker-item .nm {
  font-size: 19px;
}

.picker-item .meta {
  color: var(--quiet);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
}

.step-links a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* 后台耗时操作的「进行中」反馈对话框(生成分析/大纲、AI 对话等) */
.busy-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 33, 31, 0.28);
  backdrop-filter: blur(2px);
}

.busy-box {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(520px, 84vw);
  padding: 22px 30px;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  font-family: "Heiti SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.busy-spin {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-dark);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: busyspin 0.8s linear infinite;
}

@keyframes busyspin {
  to { transform: rotate(360deg); }
}
