:root {
  --bg: #efe5d6;
  --card: rgba(255, 251, 246, 0.86);
  --card-strong: rgba(255, 252, 248, 0.96);
  --line: rgba(111, 75, 35, 0.16);
  --text: #2f2218;
  --muted: #6b5642;
  --gold: #a37a43;
  --gold-deep: #7e5d2d;
  --shadow: 0 24px 55px rgba(74, 43, 12, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: linear-gradient(180deg, rgba(250, 243, 232, 0.97), rgba(245, 235, 221, 0.97)), var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.72), rgba(244, 230, 207, 0.72)),
    url('/assets/meixin-web/web-7.jpg') center/cover no-repeat;
  opacity: 0.14;
}

body::after {
  background: radial-gradient(circle at top left, rgba(162, 118, 62, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(94, 70, 39, 0.12), transparent 28%),
    url('/assets/meixin-web/web-2.jpg') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 28px;
  padding: 34px 36px;
}

.hero h1,
.panel-heading h2,
.subpanel-head h3,
.reply-copy h4,
.reply-section h4 {
  margin: 0;
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.brand-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
}

.brand-title {
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.brand-domain {
  display: inline-block;
  margin: 10px 0 0;
  color: var(--gold);
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.12em;
  text-decoration: none;
  font-weight: 600;
}

.brand-domain:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.site-footer-contact .brand-domain {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero-tool-name {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 28px;
  text-align: center;
}

.site-footer-brand {
  margin: 0 0 8px;
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

.site-footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer-contact a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-contact a:hover {
  text-decoration: underline;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-chips,
.chip-row,
.reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips span,
.panel-badge,
.chip,
.reply-meta span,
.recommendation-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(163, 122, 67, 0.2);
  background: rgba(255, 251, 245, 0.86);
  color: var(--gold-deep);
}

.hero-chips span,
.chip {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.hero-meta {
  display: grid;
  gap: 16px;
}

.mini-stat,
.stat-card,
.template-card,
.check-card,
.intent-card,
.message-card,
.faq-card,
.result-card,
.bullet-card,
.reply-copy,
.info-card,
.scroll-card,
.recommendation-card {
  border-radius: var(--radius-lg);
  background: var(--card-strong);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mini-stat {
  padding: 18px 20px;
}

.mini-label,
.stat-label,
.stat-note,
.panel-heading p,
.subpanel-head p,
.field span,
.faq-follow,
.message-top span,
.inline-code,
.check-title,
.series-kicker {
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.stat-card {
  padding: 22px 24px;
}

.stat-value {
  display: block;
  margin: 10px 0 8px;
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.showcase-panel {
  min-height: 690px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.panel-heading,
.subpanel-head,
.message-top,
.reply-lead,
.recommendation-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-heading > *,
.subpanel-head > *,
.message-top > *,
.reply-lead > *,
.recommendation-top > * {
  min-width: 0;
}

.faq-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.faq-top > * {
  min-width: 0;
}

.panel-heading p,
.subpanel-head p,
.template-card p,
.check-card p,
.intent-card p,
.message-card p,
.faq-answer,
.result-card p,
.bullet-card,
.reply-copy p,
.recommendation-card p,
.panel-footer-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.panel-badge {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.series-wall {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  flex: 1;
  min-height: 0;
  grid-auto-rows: minmax(220px, 1fr);
  align-content: stretch;
}

.series-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 34px rgba(45, 24, 7, 0.16);
}

.series-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 16, 6, 0.04) 0%, rgba(30, 16, 6, 0.12) 44%, rgba(30, 16, 6, 0.74) 100%);
}

.series-overlay {
  position: absolute;
  inset: auto 16px 16px;
  color: #fffaf2;
  display: grid;
  gap: 6px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding-right: 8px;
}

.series-kicker {
  color: rgba(255, 243, 225, 0.85);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.series-overlay strong {
  font-size: 18px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  overflow-wrap: anywhere;
}

.series-overlay span:last-child {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 246, 236, 0.92);
  overflow-wrap: anywhere;
}

.template-stack,
.checklist-stack,
.bullet-stack,
.intent-grid,
.application-grid,
.message-list,
.faq-grid,
.search-results {
  display: grid;
  gap: 14px;
}

.template-stack {
  margin-top: 18px;
}

.panel-footer-note {
  margin-top: auto;
  padding-top: 16px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.workspace-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.workspace-panel-body {
  margin-top: 18px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workspace-panel-body > .subpanel {
  margin-top: 0;
}

.knowledge-panel-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
  min-height: 0;
}

.reply-panel {
  height: auto;
  align-self: start;
  min-height: 0;
}

.reply-panel-body {
  overflow: visible;
  padding-right: 0;
}

.knowledge-panel-body::-webkit-scrollbar,
.faq-grid::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
  width: 10px;
}

.knowledge-panel-body::-webkit-scrollbar-thumb,
.faq-grid::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb {
  background: rgba(126, 93, 45, 0.26);
  border-radius: 999px;
  border: 2px solid rgba(255, 252, 248, 0.92);
}

.knowledge-panel-body::-webkit-scrollbar-track,
.faq-grid::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track {
  background: rgba(255, 251, 246, 0.48);
  border-radius: 999px;
}

.subpanel {
  margin-top: 18px;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

.split-subpanel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: auto;
}

.scroll-card,
.info-card,
.reply-copy,
.recommendation-card {
  padding: 18px;
}

.template-card,
.check-card,
.intent-card,
.message-card,
.faq-card,
.result-card,
.bullet-card,
.reply-copy,
.info-card,
.recommendation-card {
  padding: 18px 20px;
}

.template-card h3,
.check-card strong,
.intent-card strong,
.message-card strong,
.faq-card strong,
.result-card strong,
.reply-copy h4,
.recommendation-top strong,
.reply-lead strong {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.template-card p,
.check-card p,
.intent-card p,
.message-card p,
.faq-answer,
.result-card p,
.bullet-card,
.reply-copy p,
.recommendation-card p,
.panel-footer-note,
.reply-follow {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.template-card,
.check-card,
.intent-card,
.message-card,
.faq-card,
.result-card,
.bullet-card,
.reply-copy,
.recommendation-card,
.info-card,
.scroll-card {
  min-width: 0;
}

.template-card,
.check-card,
.intent-card,
.message-card,
.faq-card,
.result-card,
.reply-copy,
.recommendation-card {
  display: grid;
  align-content: start;
  gap: 6px;
}

.reply-copy p,
.result-card p {
  white-space: pre-wrap;
}

.scroll-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.faq-grid,
.search-results {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 252, 248, 0.9));
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(111, 75, 35, 0.18);
  background: rgba(255, 253, 250, 0.96);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  line-height: 1.7;
}

textarea {
  resize: none;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 8px;
}

.button {
  min-height: 48px;
  border-radius: 18px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #b28a50, #8b6535);
  color: #fffaf4;
}

.button-secondary {
  background: rgba(255, 252, 248, 0.92);
  color: var(--text);
  border-color: rgba(111, 75, 35, 0.16);
}

.button-accent {
  background: linear-gradient(135deg, #4a7c59, #2d5a3d);
  color: #f0faf2;
}

.button-accent:hover {
  background: linear-gradient(135deg, #5a8f6b, #3a6b4a);
}

.chip {
  cursor: pointer;
}

.reply-output {
  margin-top: 14px;
  min-height: 520px;
}

.reply-shell,
.reply-section,
.config-form {
  display: grid;
  gap: 14px;
}

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

.config-grid-span,
.full-span {
  grid-column: 1 / -1;
}

.classification-block {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid var(--line);
}

.classification-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.classification-head strong {
  font-size: 15px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.4;
}

.classification-head span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.classification-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.classification-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(178, 138, 80, 0.15), rgba(139, 101, 53, 0.08));
  border: 1px solid rgba(163, 122, 67, 0.22);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.faq-top strong {
  min-width: 0;
  padding-right: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.faq-top span {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(178, 138, 80, 0.10);
  border: 1px solid rgba(163, 122, 67, 0.18);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.faq-card {
  gap: 10px;
}

.faq-question-en {
  margin: 2px 0 0;
  color: var(--gold-deep);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

.faq-answer {
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}

.faq-follow {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.faq-follow span {
  color: var(--gold-deep);
  font-weight: 700;
}

.starter-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.starter-card-head {
  display: grid;
  gap: 6px;
}

.starter-card-head strong {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

.starter-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.starter-template-list {
  display: grid;
  gap: 10px;
}

.starter-template {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.92);
  border: 1px solid rgba(163, 122, 67, 0.14);
}

.starter-template-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(178, 138, 80, 0.12);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-template p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

.reply-lead {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(245, 234, 215, 0.92));
  border: 1px solid var(--line);
}

.reply-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reply-meta span,
.recommendation-rank {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.recommendation-grid,
.split-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.recommendation-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.recommendation-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.recommendation-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.recommendation-points,
.recommendation-pitch {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.recommendation-points strong,
.recommendation-pitch strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.recommendation-points ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.recommendation-points li,
.recommendation-pitch p {
  margin-top: 8px;
  line-height: 1.75;
  color: var(--text);
}

.world-clock-grid {
  display: grid;
  gap: 12px;
}

.world-region-group {
  display: grid;
  gap: 12px;
}

.world-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.world-region-head strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

.world-region-head span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.world-region-grid {
  display: grid;
  gap: 12px;
}

.world-clock-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.94);
}

.world-clock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.world-clock-top strong {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.world-time {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.world-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.world-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.world-badge.is-open {
  background: rgba(67, 148, 92, 0.12);
  color: #2d7a47;
  border: 1px solid rgba(67, 148, 92, 0.18);
}

.world-badge.is-near {
  background: rgba(178, 138, 80, 0.12);
  color: var(--gold-deep);
  border: 1px solid rgba(178, 138, 80, 0.2);
}

.world-badge.is-off {
  background: rgba(111, 75, 35, 0.08);
  color: var(--muted);
  border: 1px solid rgba(111, 75, 35, 0.12);
}

.compact {
  gap: 10px;
}

.compact-card {
  padding: 14px 16px;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.92);
  border: 1px dashed rgba(111, 75, 35, 0.2);
  color: var(--muted);
  line-height: 1.8;
}

.caution-box {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(143, 72, 30, 0.08);
  border: 1px solid rgba(143, 72, 30, 0.18);
  color: #7a3e18;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .hero,
  .stat-grid,
  .showcase-grid,
  .workspace-grid,
  .split-subpanel,
  .recommendation-grid,
  .split-two,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .showcase-panel,
  .workspace-panel {
    min-height: auto;
    height: auto;
  }

  .workspace-panel-body,
  .knowledge-panel-body,
  .reply-panel-body {
    overflow: visible;
    padding-right: 0;
    flex: initial;
    max-height: none !important;
  }
}

/* ============================================================
   Agent 面板样式
   ============================================================ */

.agent-section {
  margin: 28px 0;
}

.agent-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 18px 0;
  border: 1px solid var(--line);
  border-bottom: none;
}

.agent-tab {
  padding: 12px 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}

.agent-tab:hover {
  color: var(--text);
  background: rgba(163, 122, 67, 0.08);
}

.agent-tab.active {
  color: var(--gold-deep);
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--card-strong);
}

.agent-panel {
  display: none;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 28px;
}

.agent-panel.active {
  display: block;
}

.agent-body {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

.agent-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
}

.agent-input-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.agent-input-actions .button {
  flex: 1;
  min-width: 140px;
}

/* 串联工作流分步结果 */
.workflow-step {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.workflow-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(226, 210, 172, 0.14);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  cursor: default;
}

.workflow-step-head .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

.workflow-step-body {
  padding: 14px 16px;
}

.agent-input textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.agent-input textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(163, 122, 67, 0.12);
}

.agent-result {
  flex: 2;
  min-width: 0;
}

.agent-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 2px dashed var(--line);
  border-radius: 12px;
}

.agent-error {
  padding: 16px;
  background: rgba(200, 60, 40, 0.08);
  border: 1px solid rgba(200, 60, 40, 0.25);
  border-radius: 10px;
  color: #a33;
  font-size: 14px;
}

/* 询盘解析结果 */
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.result-card-head {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
}

.parse-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 13px;
}

.parse-table th,
.parse-table td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.parse-table th {
  background: rgba(163, 122, 67, 0.08);
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.result-section {
  margin-top: 14px;
}

.result-section h4 {
  font-size: 13px;
  color: var(--gold-deep);
  margin: 0 0 8px;
}

.result-section ul {
  margin: 0;
  padding-left: 18px;
}

.result-section li {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--muted);
}

.draft-reply-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  position: relative;
}

.draft-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}

.draft-text p {
  margin: 0 0 8px;
}

.copy-draft-btn {
  margin-top: 10px;
  font-size: 12px;
}

.button-small {
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: var(--card);
  color: var(--gold-deep);
  cursor: pointer;
  font-weight: 600;
}

.button-small:hover {
  background: var(--gold);
  color: #fff;
}

.result-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

/* 产品匹配 */
.product-match-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.match-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.match-header strong {
  font-size: 15px;
}

.match-code {
  background: var(--gold);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.match-score {
  margin-left: auto;
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
}

.match-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.match-meta span {
  white-space: nowrap;
}

.match-stock-note {
  font-size: 12px;
  color: #b55;
  background: rgba(200, 140, 40, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
}

.match-reasons h5,
.match-cautions h5,
.match-alts h5 {
  font-size: 12px;
  margin: 8px 0 4px;
  color: var(--text);
}

.match-reasons ul,
.match-cautions ul,
.match-alts ul {
  margin: 0;
  padding-left: 16px;
}

.match-reasons li {
  font-size: 12px;
  color: #3a7d44;
  margin-bottom: 2px;
}

.match-cautions li {
  font-size: 12px;
  color: #b55;
  margin-bottom: 2px;
}

.match-alts li {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* 产品详情展开 */
.product-detail-expand {
  margin-top: 12px;
  padding: 14px;
  background: rgba(226, 210, 172, 0.08);
  border: 1px solid rgba(111, 75, 35, 0.12);
  border-radius: 10px;
  animation: detailSlideIn 0.2s ease;
}

@keyframes detailSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-field span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-field strong {
  font-size: 13px;
  color: var(--text);
}

.detail-field.detail-full {
  grid-column: 1 / -1;
}

.detail-field.detail-note {
  background: rgba(200, 140, 40, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #b55;
}

.detail-field.detail-note strong {
  font-size: 12px;
  color: #b55;
  font-weight: 400;
}

.product-match-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.product-match-card:hover {
  box-shadow: 0 2px 12px rgba(111, 75, 35, 0.08);
}

/* 报价辅助 */
.quotation-layout {
  flex-direction: column;
}

.quotation-top {
  display: flex;
  gap: 20px;
}

.quotation-top .agent-input {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
}

.quotation-top .agent-result {
  flex: 2;
  min-width: 0;
}

.quotation-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quotation-bottom .subpanel-head {
  margin-bottom: 10px;
}

.scenario-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.scenario-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.scenario-chip small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.scenario-chip:hover {
  border-color: var(--gold);
  background: rgba(163, 122, 67, 0.05);
}

/* 业务陪练 */
.training-layout {
  display: flex;
  gap: 20px;
}

.training-left {
  flex: 3;
  min-width: 0;
}

.training-coach {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.92), rgba(243, 232, 214, 0.72)),
    radial-gradient(circle at top right, rgba(163, 122, 67, 0.14), transparent 42%);
}

.training-coach-head {
  margin-bottom: 0;
}

.training-coach-head p,
.training-input-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.training-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.training-coach-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(163, 122, 67, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(78, 57, 28, 0.05);
}

.training-coach-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.training-coach-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.training-right {
  flex: 2;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
  align-self: flex-start;
}

.buyer-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.buyer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.buyer-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(163, 122, 67, 0.1);
}

.buyer-card.selected {
  border-color: var(--gold-deep);
  background: rgba(163, 122, 67, 0.08);
  box-shadow: 0 4px 16px rgba(163, 122, 67, 0.15);
}

.buyer-card-head {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.buyer-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.buyer-card small {
  font-size: 11px;
  color: var(--muted);
}

.buyer-card .translate-tools {
  margin-top: 8px;
}

.diff-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.diff-easy { background: #d4edda; color: #2d6a4f; }
.diff-medium { background: #fff3cd; color: #856404; }
.diff-hard { background: #f8d7da; color: #721c24; }

.training-chat {
  max-height: 400px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.buyer {
  background: rgba(163, 122, 67, 0.08);
  border: 1px solid rgba(163, 122, 67, 0.15);
  align-self: flex-start;
}

.chat-bubble.sales {
  background: rgba(60, 120, 180, 0.06);
  border: 1px solid rgba(60, 120, 180, 0.15);
  align-self: flex-end;
}

.chat-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.chat-hint {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.translate-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.translate-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(163, 122, 67, 0.06);
}

.translate-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.translate-btn[data-collapsed-label="译"] {
  display: inline-grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.translate-tools {
  min-width: 0;
}

.site-translation-anchor {
  position: relative;
}

.site-translate-tools {
  min-height: 0;
}

.site-translate-tools .translate-btn,
.field-translate-tools .translate-btn {
  background: rgba(255, 251, 245, 0.82);
  color: var(--gold-deep);
}

.site-translate-tools .translate-btn {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  margin-top: 0;
  box-shadow: 0 8px 18px rgba(62, 40, 18, 0.12);
}

.site-translate-tools .translation-result {
  margin-bottom: 34px;
}

.field-translate-tools {
  margin: 0 0 10px;
}

.field-translate-tools .translate-btn {
  margin-top: 0;
}

.field-translate-tools .translation-result {
  margin-bottom: 4px;
}

.agent-input > .field-translate-tools,
.reply-composer .field-translate-tools {
  align-self: flex-start;
}

.translation-result {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(163, 122, 67, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}

.translation-result[hidden] {
  display: none;
}

.training-right textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.training-right textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(163, 122, 67, 0.12);
}

.training-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.training-action-row .button {
  min-height: 42px;
}

.training-eval {
  max-height: 350px;
  overflow-y: auto;
}

.eval-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.eval-score {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.eval-translate {
  margin: -4px 0 12px;
}

.eval-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.eval-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 45px;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
}

.eval-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.eval-bar-track {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.eval-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}

.eval-bar-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.eval-bar-note {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--muted);
}

.eval-strengths,
.eval-weaknesses {
  margin-top: 8px;
}

.eval-strengths h4 { color: #3a7d44; font-size: 13px; margin: 0 0 4px; }
.eval-weaknesses h4 { color: #b55; font-size: 13px; margin: 0 0 4px; }

.eval-strengths ul,
.eval-weaknesses ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}

.eval-strengths li { color: #3a7d44; margin-bottom: 2px; }
.eval-weaknesses li { color: #b55; margin-bottom: 2px; }

.eval-suggestion {
  margin-top: 12px;
  padding: 10px;
  background: rgba(163, 122, 67, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.eval-trend {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .agent-body {
    flex-direction: column;
  }

  .agent-input {
    max-width: 100%;
  }

  .training-layout {
    flex-direction: column;
  }

  .buyer-type-grid {
    grid-template-columns: 1fr;
  }
}
