/* BlueLM AIGC 实践手册样式 */
:root {
  --primary: #415fff;
  --primary-dark: #2f4bdb;
  --primary-light: #eef1ff;
  --accent: #00c9a7;
  --warning: #ff9f43;
  --danger: #ff6b6b;
  --success: #2ecc71;
  --text: #1a1f36;
  --text-muted: #5a6278;
  --border: #e4e8f0;
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --sidebar-width: 280px;
  --header-height: 64px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(65, 95, 255, 0.08);
  --code-bg: #1e2433;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

/* 顶部导航 */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #6b8cff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.progress-wrap {
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
  display: none;
}

@media (min-width: 900px) {
  .progress-wrap {
    display: block;
  }
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

@media (max-width: 899px) {
  .menu-toggle {
    display: block;
  }
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0;
  z-index: 900;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

@media (max-width: 899px) {
  .sidebar {
    box-shadow: var(--shadow);
  }
}

.nav-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

.nav-link--section {
  padding-left: 42px;
  font-size: 13px;
}

.nav-link--sub {
  padding-left: 50px;
  font-size: 13px;
  position: relative;
}

.nav-link--sub::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transform: translateY(-50%);
  transition: background 0.2s;
}

.nav-link--sub:hover::before,
.nav-link--sub.active::before {
  background: var(--primary);
}

.nav-label {
  line-height: 1.4;
}

.nav-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.nav-link.active .nav-badge,
.nav-link--module:hover .nav-badge {
  background: var(--primary);
  color: white;
}

/* 主内容 */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 32px 40px 80px;
  max-width: 960px;
}

@media (max-width: 899px) {
  .main-content {
    margin-left: 0;
    padding: 24px 20px 60px;
  }
}

/* 封面 */
.hero {
  background: linear-gradient(135deg, #415fff 0%, #6b8cff 50%, #00c9a7 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-qr-card {
  justify-self: end;
  width: 210px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
}

.hero-qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 720px;
  line-height: 1.65;
}

.hero-no-break {
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  font-size: 14px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 22px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-qr-card {
    justify-self: center;
    width: min(100%, 240px);
  }
}

/* 章节 */
.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #6b8cff);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

.subsection {
  margin-bottom: 36px;
}

.subsection h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsection h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.subsection h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

/* 卡片 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 超参数讲解块（教学用） */
.param-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 24px;
}

.param-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
}

.param-item h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.param-item h4 .param-en {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.param-item h4 .param-default {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.param-item p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.param-item p:last-child {
  margin-bottom: 0;
}

.param-item .param-tip {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 步骤列表 */
.steps {
  counter-reset: step-counter;
  list-style: none;
}

.step-item {
  counter-increment: step-counter;
  position: relative;
  padding: 20px 20px 20px 64px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.step-item.done {
  border-color: var(--success);
  background: #f0fdf4;
}

.step-item.done::before {
  content: "✓";
  background: var(--success);
  color: white;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-check {
  flex-shrink: 0;
}

.step-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.step-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.step-content p:last-child {
  margin-bottom: 0;
}

/* 提示框 */
.callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.5;
  margin-top: 1px;
}

.callout-body {
  flex: 1;
  min-width: 0;
  line-height: 1.65;
}

.callout-title {
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
}

.callout-body p {
  margin: 0;
}

.callout-list {
  margin: 0;
  padding-left: 1.25em;
}

.callout-list li + li {
  margin-top: 6px;
}

.callout strong {
  font-weight: 700;
}

/* 数据集下载 */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eef1ff 0%, #f0fdf9 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  margin: 16px 0;
}

.download-card-body {
  flex: 1;
  min-width: 0;
}

.download-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.download-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-card-meta {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-card-meta li + li {
  margin-top: 2px;
}

.download-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .download-card {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn {
    justify-content: center;
  }
}

.callout-info {
  background: #eef1ff;
  border-left: 4px solid var(--primary);
  color: #2f4bdb;
}

.callout-warning {
  background: #fff8ee;
  border-left: 4px solid var(--warning);
  color: #b36b00;
}

.callout-success {
  background: #eefbf3;
  border-left: 4px solid var(--success);
  color: #1a7a3a;
}

.callout-danger {
  background: #fff0f0;
  border-left: 4px solid var(--danger);
  color: #c0392b;
}

/* 代码块 */
.code-block {
  position: relative;
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a3142;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a3142;
  padding: 8px 16px;
  font-size: 12px;
  color: #8892a8;
}

.code-lang {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #c8d0e0;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.copy-btn.copied {
  background: var(--success);
  color: white;
}

.code-block pre {
  background: var(--code-bg);
  color: #e8ecf4;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.code-block code {
  font-family: var(--font-mono);
}

/* 行内代码 */
:not(pre) > code {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: var(--primary-light);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fafbff;
}

/* 图示 */
.figure {
  margin: 24px 0;
  text-align: center;
}

.figure img,
.figure svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figure-caption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

.diagram-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  overflow-x: auto;
}

/* 架构流程 */
.flow-roadmap {
  margin: 20px 0;
}

.flow-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.flow-node {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  min-width: 140px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flow-node small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.flow-node.highlight small {
  color: rgba(255, 255, 255, 0.85);
}

.section-header h2 .tag {
  vertical-align: middle;
  margin-left: 8px;
}

a.flow-node:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.flow-node.highlight {
  background: linear-gradient(135deg, var(--primary), #6b8cff);
  color: white;
  border-color: transparent;
}

.flow-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.flow-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .flow-main {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-branch {
    width: 100%;
  }
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #e8f8ef; color: #1a7a3a; }
.tag-orange { background: #fff3e0; color: #b36b00; }
.tag-purple { background: #f0ebff; color: #6b3fa0; }

/* 两列布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* 清单 */
.checklist {
  list-style: none;
}

.checklist li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "☐";
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* 章节翻页 */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 8px;
}

.page-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-nav-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.page-nav-link.next {
  text-align: right;
  grid-column: 2;
}

.page-nav-dir {
  font-size: 12px;
  color: var(--text-muted);
}

.page-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

@media (max-width: 700px) {
  .page-nav {
    grid-template-columns: 1fr;
  }

  .page-nav-link.next {
    grid-column: 1;
    text-align: left;
  }
}

/* 页脚 */
.footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

/* 打印样式 */
@media print {
  .sidebar, .top-header, .menu-toggle, .copy-btn, .step-check, .page-nav {
    display: none !important;
  }
  .main-content {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }
  .hero {
    background: var(--primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .hero-qr-card {
    width: 180px;
    break-inside: avoid;
  }
}

/* 模型微调平台 API 前端测试台 */
.sft-tester {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 20px 0 24px;
  box-shadow: var(--shadow);
}

.sft-tester-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 700px) {
  .sft-tester-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.sft-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.sft-field input,
.sft-field select,
.sft-field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
}

.sft-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.sft-field input:focus,
.sft-field select:focus,
.sft-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 95, 255, 0.12);
}

.sft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.sft-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.sft-btn-primary {
  background: var(--primary);
  color: #fff;
}

.sft-btn-primary:hover {
  background: var(--primary-dark);
}

.sft-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sft-btn-ghost {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sft-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.sft-check input {
  width: 16px;
  height: 16px;
}

.sft-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sft-status.is-ok { color: #1a7a3a; font-weight: 600; }
.sft-status.is-error { color: #c0392b; font-weight: 600; }
.sft-status.is-pending { color: var(--primary); }

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

.sft-result h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.sft-answer {
  background: var(--code-bg);
  color: #e8ecf5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  max-height: 420px;
  overflow: auto;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  white-space: pre-wrap;
}

.sft-answer:empty {
  display: none;
}

.sft-reply {
  background: var(--primary-light);
  border: 1px solid #d7deff;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 48px;
  white-space: pre-wrap;
}
