/* ========================================
   副业建议生成器 - 样式表
   ======================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ----------------------------------------
   基础重置
   ---------------------------------------- */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------
   容器布局
   ---------------------------------------- */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}

/* ----------------------------------------
   页头
   ---------------------------------------- */

.header {
  text-align: center;
  padding: 24px 0 32px;
}

.header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ----------------------------------------
   主内容区
   ---------------------------------------- */

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----------------------------------------
   问卷卡片
   ---------------------------------------- */

.questionnaire {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.question {
  margin-bottom: 24px;
}

.question:last-of-type {
  margin-bottom: 0;
}

.question-text {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-body);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.option:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
}

.option input[type="radio"] {
  display: none;
}

.option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.option:has(input:checked) .option-text {
  color: var(--primary);
  font-weight: 500;
}

.option-text {
  font-size: 14px;
  color: var(--text-primary);
  transition: color 0.2s;
}

/* ----------------------------------------
   表单按钮
   ---------------------------------------- */

.form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-text:hover {
  opacity: 0.8;
}

/* ----------------------------------------
   结果区域
   ---------------------------------------- */

.result-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  gap: 12px;
  flex-wrap: nowrap;
}

.result-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-left: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--success));
  border-radius: 2px;
}

.btn-reset {
  color: var(--primary);
  font-size: 14px;
  padding: 6px 12px;
  background: var(--bg-body);
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-reset:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

/* ========================================
   结果内容区域 - 核心样式
   ======================================== */

.result-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ----------------------------------------
   标题层级 - 增强视觉权重
   ---------------------------------------- */

/* 一级标题 - 主章节（如"1. 副业建议结论"）*/
.result-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-left: 5px solid var(--primary);
  border-radius: 0 10px 10px 0;
  line-height: 1.4;
  position: relative;
}

.result-content h2:first-child {
  margin-top: 0;
}

/* 二级标题 - 阶段标题（如"【准备期：第 1 周】"）*/
.result-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
  border-left: 4px solid var(--success);
  border-radius: 6px;
  line-height: 1.5;
}

/* 三级标题 - 日程/风险标题（如"Day 1-2：xxx"、"风险 1：xxx"）*/
.result-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--warning);
  line-height: 1.5;
}

/* 四级标题 */
.result-content h5,
.result-content h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 16px 0 10px;
}

/* ----------------------------------------
   段落样式 - 增加呼吸感
   ---------------------------------------- */

.result-content p {
  margin-bottom: 16px;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* ----------------------------------------
   文字强调 - 突出关键内容
   ---------------------------------------- */

.result-content strong {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 55%, rgba(37, 99, 235, 0.12) 55%);
  padding: 0 2px;
}

.result-content em {
  color: var(--success);
  font-style: normal;
  font-weight: 500;
}

/* 核心结论高亮 */
.result-content .highlight-result {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  margin: 8px 0;
}

/* 金额高亮 */
.result-content .price {
  color: #dc2626;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 55%, rgba(220, 38, 38, 0.1) 55%);
  padding: 0 2px;
}

/* 小标题样式（以冒号结尾且字数小于20的段落） */
.result-content .mini-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  margin: 18px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
  padding: 8px 12px;
  border-radius: 4px;
}

/* ----------------------------------------
   引用块
   ---------------------------------------- */

.result-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid var(--success);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.result-content blockquote p {
  margin-bottom: 10px;
}

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

/* ----------------------------------------
   列表样式 - 清晰层级
   ---------------------------------------- */

.result-content ul,
.result-content ol {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

/* 无序列表 - 一级 */
.result-content ul > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.85;
  min-height: 24px;
}

.result-content ul > li::before {
  content: '●';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--primary);
  font-size: 10px;
  line-height: 1.9;
}

/* 有序列表 - 一级 */
.result-content ol {
  counter-reset: ol-counter;
}

.result-content ol > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.85;
  counter-increment: ol-counter;
  min-height: 24px;
}

.result-content ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 4px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 嵌套列表 - 二级 */
.result-content li > ul,
.result-content li > ol {
  margin: 10px 0 8px;
}

.result-content li > ul > li {
  padding-left: 20px;
}

.result-content li > ul > li::before {
  content: '○';
  color: var(--success);
  font-size: 9px;
  left: 3px;
}

.result-content li > ol > li::before {
  width: 18px;
  height: 18px;
  font-size: 10px;
  background: var(--success);
}

/* 嵌套列表 - 三级 */
.result-content li > ul > li > ul > li::before {
  content: '·';
  color: var(--text-secondary);
  font-size: 14px;
}

.result-content li p {
  margin-bottom: 8px;
}

/* ----------------------------------------
   代码块
   ---------------------------------------- */

.result-content code {
  font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.88em;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 2px 6px;
  border-radius: 4px;
  color: #be185d;
}

.result-content pre {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}

.result-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ----------------------------------------
   表格
   ---------------------------------------- */

.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
}

.markdown-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.markdown-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.markdown-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.65;
  vertical-align: top;
}

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

.markdown-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

/* ----------------------------------------
   分隔线
   ---------------------------------------- */

.result-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
  margin: 28px 0;
  border-radius: 2px;
}

/* 分隔装饰 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 16px;
  gap: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 80px;
}

.divider-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 50%;
}

/* ----------------------------------------
   代码块
   ---------------------------------------- */

.result-content code {
  font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.88em;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 2px 6px;
  border-radius: 4px;
  color: #be185d;
}

.result-content pre {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}

.result-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ----------------------------------------
   表格
   ---------------------------------------- */

.table-wrapper {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
}

.markdown-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.markdown-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.markdown-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.6;
  vertical-align: top;
}

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

.markdown-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

/* ----------------------------------------
   分隔线
   ---------------------------------------- */

.result-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
  margin: 24px 0;
  border-radius: 2px;
}

/* 分隔装饰 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 16px;
  gap: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 80px;
}

.divider-dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 50%;
}

/* ----------------------------------------
   进度条
   ---------------------------------------- */

.progress-container {
  padding: 0 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 4px;
  transition: width 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  display: block;
}

.progress-text span {
  color: var(--primary);
  font-weight: 600;
}

/* ----------------------------------------
   加载动画
   ---------------------------------------- */

.streaming-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 40px 20px;
}

.streaming-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.streaming-indicator .dot:nth-child(1) { animation-delay: 0s; }
.streaming-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.streaming-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ----------------------------------------
   历史记录区域
   ---------------------------------------- */

.history-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.history-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.btn-clear {
  color: var(--danger);
  font-size: 13px;
}

.btn-clear:hover {
  text-decoration: underline;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
}

.history-item {
  padding: 12px 14px;
  background: var(--bg-body);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.history-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.history-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.history-item-time {
  font-size: 12px;
  color: var(--text-muted);
}

.history-item-preview {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.history-item-delete {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.history-item-delete:hover {
  opacity: 1;
}

/* ----------------------------------------
   页脚
   ---------------------------------------- */

.footer {
  text-align: center;
  padding: 32px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ----------------------------------------
   动画效果
   ---------------------------------------- */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* ========================================
   响应式设计 - 移动端优化
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 16px 12px 32px;
  }

  .header {
    padding: 20px 0 24px;
  }

  .header h1 {
    font-size: 22px;
  }

  .questionnaire,
  .result-section,
  .history-section {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .result-section {
    margin: 0 -12px;
    border-radius: 0;
  }

  /* 结果内容 - 平板 */
  .result-content {
    font-size: 15px;
    line-height: 1.85;
  }

  .result-content h2 {
    font-size: 17px;
    margin: 28px 0 16px;
    padding: 12px 16px;
  }

  .result-content h3 {
    font-size: 15px;
    margin: 22px 0 12px;
    padding: 8px 12px;
  }

  .result-content h4 {
    font-size: 14px;
    margin: 18px 0 10px;
  }

  .result-content p {
    margin-bottom: 14px;
    line-height: 1.85;
  }

  .result-content ul > li,
  .result-content ol > li {
    margin-bottom: 10px;
    line-height: 1.8;
  }

  .result-content blockquote {
    padding: 14px 16px;
    font-size: 13px;
    margin: 18px 0;
  }

  .table-wrapper {
    margin: 16px -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .markdown-table {
    font-size: 13px;
  }

  .markdown-table th,
  .markdown-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }

  .questionnaire,
  .history-section {
    padding: 18px 14px;
  }

  .result-section {
    padding: 18px 14px;
    margin: 0 -12px;
  }

  .question {
    margin-bottom: 20px;
  }

  .question-text {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .option {
    padding: 12px 14px;
    min-height: 48px;
  }

  .option-text {
    font-size: 13px;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* 结果内容 - 手机 */
  .result-content {
    font-size: 14px;
    line-height: 1.8;
  }

  .result-content h2 {
    font-size: 16px;
    margin: 24px 0 14px;
    padding: 10px 14px;
    border-left-width: 4px;
  }

  .result-content h3 {
    font-size: 14px;
    margin: 20px 0 12px;
    padding: 8px 12px;
  }

  .result-content h4 {
    font-size: 13px;
    margin: 16px 0 10px;
    padding-left: 10px;
    border-left-width: 3px;
  }

  .result-content p {
    margin-bottom: 12px;
    line-height: 1.8;
    text-align: left;
  }

  .result-content ul > li {
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.75;
  }

  .result-content ul > li::before {
    left: 4px;
    top: 0;
  }

  .result-content ol > li {
    padding-left: 26px;
    margin-bottom: 8px;
  }

  .result-content ol > li::before {
    width: 18px;
    height: 18px;
    font-size: 10px;
    left: 2px;
    top: 2px;
  }

  .result-content blockquote {
    padding: 12px 14px;
    font-size: 12px;
    margin: 16px 0;
  }

  .result-content code {
    font-size: 0.85em;
  }

  .result-content pre {
    padding: 12px;
    font-size: 12px;
  }

  .result-content .highlight-result {
    font-size: 14px;
    padding: 6px 12px;
  }

  .result-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .result-header h2 {
    font-size: 16px;
    padding-left: 10px;
  }

  .result-header h2::before {
    height: 16px;
    width: 3px;
  }

  .btn-reset {
    font-size: 12px;
    padding: 5px 10px;
  }

  .history-item-title {
    max-width: 200px;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 12px 10px 28px;
  }

  .header {
    padding: 16px 0 20px;
  }

  .header h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 13px;
  }

  .questionnaire,
  .result-section,
  .history-section {
    padding: 16px 12px;
  }

  .result-section {
    margin: 0 -10px;
  }

  /* 结果内容 - 小屏手机 */
  .result-content {
    font-size: 13px;
    line-height: 1.75;
  }

  .result-content h2 {
    font-size: 15px;
    margin: 22px 0 12px;
    padding: 8px 12px;
    border-left-width: 4px;
  }

  .result-content h3 {
    font-size: 13px;
    margin: 18px 0 10px;
    padding: 6px 10px;
  }

  .result-content h4 {
    font-size: 12px;
    margin: 14px 0 8px;
    padding-left: 8px;
    border-left-width: 2px;
  }

  .result-content p {
    margin-bottom: 10px;
    line-height: 1.75;
  }

  .result-content ul,
  .result-content ol {
    margin: 12px 0;
  }

  .result-content ul > li,
  .result-content ol > li {
    margin-bottom: 6px;
    line-height: 1.7;
  }

  .result-content blockquote {
    padding: 10px 12px;
    font-size: 11px;
  }

  .markdown-table {
    font-size: 12px;
  }

  .markdown-table th,
  .markdown-table td {
    padding: 8px 10px;
  }
}
