/* ====== 移动端基础重置 ====== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #667eea;
  --primary-dark: #5a6fd6;
  --gradient: linear-gradient(135deg, #667eea, #764ba2);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --text: #333;
  --text-light: #888;
  --bg: #f5f6fa;
  --card-bg: #fff;
  --border: #eef0f5;
  --danger: #e74c3c;
  --warning: #f39c12;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 56px; /* navbar height on mobile */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ====== 移动端导航栏 ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand i { font-size: 20px; }

/* 移动端导航滚动条 */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px;
  flex: 1;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  white-space: nowrap;
  padding: 6px 10px;
  border: none;
  background: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-tab i { margin-right: 3px; font-size: 12px; }
.nav-tab.active {
  color: var(--primary);
  background: rgba(102,126,234,0.08);
  font-weight: 600;
}
.nav-tab:hover { color: var(--primary); }

/* 下拉菜单移动端适配 */
.nav-dropdown { position: relative; flex-shrink: 0; }
.dropdown-arrow { font-size: 8px; margin-left: 2px; }
.dropdown-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 999;
  padding: 6px 0;
  max-height: 60vh;
  overflow-y: auto;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  color: #444;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.dropdown-item:active { background: #f5f6ff; }
.dropdown-item i { width: 20px; color: #8899aa; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* ====== 页面容器 (移动端适配) ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

.page {
  display: none;
}
.page.active { display: block; }

.page-header {
  margin-bottom: 16px;
}
.page-header h1 {
  font-size: 20px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header h1 i { color: var(--primary); }
.page-header p {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* ====== Hero区域 (移动端适配) ====== */
.hero {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 24px 20px;
  color: white;
  margin-bottom: 16px;
}
.hero h1 { font-size: 22px; margin: 0 0 8px; line-height: 1.3; }
.hero p { font-size: 13px; opacity: 0.9; line-height: 1.5; margin: 0 0 16px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-icon { font-size: 20px; margin-bottom: 4px; }
.stat-number { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* ====== 功能卡片网格 ====== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.feature-card:active { transform: scale(0.97); }
.feature-card i { font-size: 24px; color: var(--primary); margin-bottom: 6px; }
.feature-card h3 { font-size: 13px; margin: 0 0 3px; }
.feature-card p { font-size: 11px; color: var(--text-light); margin: 0; }

/* ====== Card组件 ====== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* ====== 聊天区域 (移动端适配) ====== */
.chat-section {
  margin: 20px 0;
}
.chat-section-header {
  text-align: center;
  margin-bottom: 12px;
}
.chat-section-header h2 { font-size: 18px; margin: 0 0 4px; }
.chat-section-header h2 i { color: var(--primary); }
.chat-section-header p { font-size: 12px; color: var(--text-light); margin: 0; }
.main-chat-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.main-chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fc;
}
.chat-message { margin-bottom: 10px; display: flex; }
.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }
.chat-msg-content {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.chat-message.bot .chat-msg-content {
  background: white;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-bottom-left-radius: 3px;
}
.chat-message.user .chat-msg-content {
  background: var(--gradient);
  color: white;
  border-bottom-right-radius: 3px;
}
.main-chat-input-area {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.main-chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
}
.main-chat-input:focus { border-color: var(--primary); }
.main-chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ====== FAQ ====== */
.faq-list { margin-top: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  background: white;
}
.faq-q i { transition: transform 0.2s; color: var(--text-light); font-size: 12px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.faq-item.open .faq-a { padding: 12px 14px; max-height: 500px; }

/* ====== 浮动聊天机器人 ====== */
.chatbot-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4);
  z-index: 9999;
  transition: all 0.3s;
}
.chatbot-fab.hidden { display: none; }
.fab-tooltip { display: none; }
.chatbot-hint { display: none; }

.chatbot-window {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: white;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.chatbot-window.open { transform: translateY(0); }

.chatbot-header {
  background: var(--gradient);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.chatbot-header .chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fc;
}
.chatbot-message { margin-bottom: 10px; display: flex; }
.chatbot-message.user { justify-content: flex-end; }
.chatbot-message.bot { justify-content: flex-start; }
.chatbot-message .msg-content {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.chatbot-message.user .msg-content { background: var(--gradient); color: white; border-bottom-right-radius: 3px; }
.chatbot-message.bot .msg-content { background: white; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-bottom-left-radius: 3px; }
.chatbot-input-area {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.chatbot-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
}
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.chatbot-hot { padding: 10px 12px; }
.hot-title { font-size: 12px; color: #888; margin-bottom: 6px; }
.hot-q-btn {
  border: 1px solid var(--primary);
  background: rgba(102,126,234,0.06);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  margin: 3px;
}
.hot-q-btn:active { background: var(--primary); color: white; }

/* ====== 平板+桌面端适配 ====== */

/* ===== Page Title & Desc ===== */
.page-title {
  font-size: 20px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title i { color: #1a237e; }
.page-desc {
  color: #888;
  font-size: 13px;
  margin: 0 0 10px;
}

/* ===== Learning Center ===== */
.learn-section { margin-bottom: 16px; }
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.learn-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #eef0f5;
  cursor: pointer;
  transition: all .2s;
}
.learn-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.exam-question {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.exam-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  margin: 4px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.exam-option:hover {
  border-color: #1a237e;
  background: #f0f0ff;
}
.exam-option.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
}
.exam-option.wrong {
  border-color: #c62828;
  background: #fce4ec;
}

/* ===== Chat Knowledge Base ===== */
.kb-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f5f6fa;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
}
.kb-category:hover { background: #eef0f5; }

/* ===== Data Cards ===== */
.data-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.followup-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  body { padding-top: 64px; }
  .navbar { height: 64px; padding: 0 24px; }
  .nav-brand { font-size: 18px; }
  .nav-tab { padding: 8px 14px; font-size: 13px; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 180px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-height: none;
  }
  .container { padding: 24px; }
  .hero { padding: 40px 36px; border-radius: 16px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 16px; }
  .stat-card { padding: 20px; }
  .stat-icon { font-size: 28px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    left: auto;
    top: auto;
    width: 380px;
    height: 560px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.3s;
  }
  .chatbot-window.open { transform: scale(1); opacity: 1; }
  .chatbot-header { padding: 16px 20px; padding-top: 16px; }
  .chatbot-fab { bottom: 28px; right: 24px; width: 56px; height: 56px; }
  .chatbot-fab:hover { transform: scale(1.1); }
  .fab-tooltip { display: block; position: absolute; right: 64px; top: 50%; transform: translateY(-50%); background: #333; color: white; padding: 4px 10px; border-radius: 4px; font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
  .fab-tooltip::after { content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-left-color: #333; }
  .chatbot-fab:hover .fab-tooltip { opacity: 1; }
  .chatbot-hint { display: block; position: fixed; bottom: 90px; right: 24px; background: var(--gradient); color: white; padding: 10px 16px; border-radius: 16px; font-size: 13px; box-shadow: 0 4px 12px rgba(102,126,234,0.3); z-index: 9997; opacity: 0; transform: translateY(10px); transition: all 0.5s; }
  .chatbot-hint.show { opacity: 1; transform: translateY(0); }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 14px; }
}
/* ====== 步骤进度条 ====== */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s;
}
.step-item.active { opacity: 1; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s;
}
.step-item.active .step-num {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.step-label { font-size: 10px; color: #888; white-space: nowrap; }
.step-line {
  width: 20px; height: 2px;
  background: #e0e0e0;
  flex-shrink: 0;
}
.step-item.active + .step-line { background: var(--primary); }

/* ====== 步骤内容 ====== */
.step-content { display: none; }
.step-content.active { display: block; }

/* ====== 表单控件 ====== */
.form-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.form-textarea:focus { border-color: var(--primary); }
.form-select {
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  background: white;
  width: 100%;
}
.input-group {
  display: flex;
  gap: 8px;
}

/* ====== 上传区域 ====== */
.upload-area {
  border: 2px dashed #ddd;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--primary); background: rgba(102,126,234,0.03); }

/* ====== 声音卡片 ====== */
.voice-card {
  border: 2px solid #eef0f5;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.voice-card i { font-size: 24px; color: #8899aa; }
.voice-card.active, .voice-card:hover { border-color: var(--primary); background: rgba(102,126,234,0.05); }
.voice-card.active i, .voice-card:hover i { color: var(--primary); }

/* ====== 合成摘要 ====== */
.synth-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.synth-item {
  background: #f8f9fc;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #666;
}
.synth-item i { color: var(--primary); margin-right: 4px; }

/* ====== 进度条 ====== */
.progress-bar {
  height: 8px;
  background: #eef0f5;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

/* ====== BGM选择 ====== */
.bgm-list { display: flex; gap: 6px; flex-wrap: wrap; }
.bgm-item {
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.bgm-item.active, .bgm-item:hover { border-color: var(--primary); color: var(--primary); background: rgba(102,126,234,0.05); }

/* ====== 步骤导航 ====== */
.step-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px 0;
}
.btn-nav {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-nav:hover { border-color: var(--primary); color: var(--primary); }
.step-indicator { font-size: 13px; color: #888; }

/* ====== 群发助手 ====== */
.broadcast-form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #444; }
.tag-select { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-btn {
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}
.tag-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.tag-btn:hover { border-color: var(--primary); }
.broadcast-preview {
  background: #f8f9fc;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  color: #666;
  max-height: 200px;
  overflow-y: auto;
}
.broadcast-preview .msg-bubble {
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ====== 法规数据库 ====== */
.law-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.law-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.law-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.law-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(102,126,234,0.08); }
.law-title { font-size: 14px; font-weight: 600; color: #333; }
.law-meta { font-size: 12px; color: #888; margin: 4px 0; }
.law-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.law-tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: #eef0f5; color: #888; }
.law-tag.level-national { background: #fef2f2; color: #e74c3c; }
.law-tag.level-province { background: #fffbeb; color: #d97706; }

@media (min-width: 768px) {
  .step-progress { gap: 0; }
  .step-line { width: 40px; }
  .step-num { width: 32px; height: 32px; font-size: 13px; }
  .step-label { font-size: 11px; }
  .synth-summary { grid-template-columns: repeat(4, 1fr); }
}
/* Toast */
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
#toast.show { opacity: 1; }
#toast.error { background: #e74c3c; }
#toast.success { background: #27ae60; }

@media (hover: hover) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media print {
  .navbar,.nav-actions,.page-actions,.btn-primary,.btn-outline,.btn-sm{display:none!important}
  body{padding-top:0;background:#fff}
  .page{display:block!important}
  .card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}
}
/* ====== 面包屑导航 ====== */
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #bbb; margin: 0 4px; }

/* ====== 卡片标题 ====== */
.card-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card-title i { color: var(--primary); }

/* ====== 结果表格 ====== */
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result-table th, .result-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef0f5; }
.result-table th { background: #f8f9fc; font-weight: 600; color: #555; font-size: 12px; }
.result-table tr:last-child td { border-bottom: none; }
.result-table tr:hover td { background: #fafbff; }

/* ====== 对比表格 ====== */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 8px 10px; text-align: center; border: 1px solid #eef0f5; }
.compare-table th { background: #1a237e; color: #fff; font-weight: 600; font-size: 12px; }
.compare-table tr:nth-child(even) td { background: #f8f9fc; }

/* ====== 按钮变体 ====== */
.btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; background: var(--gradient); color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; background: transparent; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-outline:hover { background: rgba(102,126,234,0.05); }
.btn-sm { display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; background: #f0f0f5; color: #555; border: none; border-radius: 6px; font-size: 11px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.btn-sm:hover { background: #e0e0ea; }

/* ====== 英雄区域 ====== */
.hero { text-align: center; padding: 30px 16px; background: var(--gradient); border-radius: var(--radius); color: #fff; margin-bottom: 16px; }
.hero h1 { font-size: 20px; margin: 0 0 8px; color: #fff; }
.hero p { font-size: 13px; opacity: 0.9; margin: 0; line-height: 1.6; color: rgba(255,255,255,0.9); }

/* ====== 社保工具表单 ====== */
.form-grid { display: grid; gap: 4px; max-width: 520px; margin: 0 auto; }
.form-grid .form-input, .form-grid .form-select { width: 100%; }
.form-grid .btn-primary { margin-top: 8px; }

/* ====== 省份列表 ====== */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.province-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.province-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.province-card h4 { margin: 0 0 6px; font-size: 15px; }
.region-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eef1ff; color: var(--primary); font-size: 11px; }
.salary-info { margin-top: 8px; font-size: 12px; color: var(--text-light); line-height: 1.5; }
.region-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.region-btn { padding: 5px 12px; border: 1px solid #e0e0e0; border-radius: 14px; background: #fff; font-size: 12px; cursor: pointer; color: #555; font-family: inherit; }
.region-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ====== 结果区 ====== */
.flex-plan-highlight { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.flex-plan-highlight h4 { margin: 0 0 8px; color: #059669; font-size: 15px; }
.flex-plan-highlight p { margin: 4px 0; font-size: 13px; line-height: 1.6; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.compare-checks label { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }

/* ====== 省份详情弹窗 ====== */
.modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.45); padding: 20px 12px; overflow-y: auto; }
.modal.show { display: block; }
.modal-content { position: relative; background: #fff; border-radius: var(--radius); max-width: 640px; margin: 0 auto; padding: 20px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: none; border-radius: 50%; background: #f0f0f5; color: #666; font-size: 14px; cursor: pointer; }
.modal-close:hover { background: #e0e0ea; }

/* ====== 产品中心 ====== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.product-card { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.product-card h4 { margin: 0 0 2px; font-size: 15px; padding-right: 60px; }
.product-cat-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; background: #f5f6fa; border-radius: 10px; padding: 2px 8px; }
.product-price { font-size: 17px; font-weight: 700; color: var(--danger); margin: 4px 0 2px; }
.product-price-note { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.product-tag { display: inline-block; font-size: 11px; background: #fff3e0; color: #e67e22; border-radius: 10px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.product-brief { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-top: 6px; }
.product-more { font-size: 11px; color: var(--primary); margin-top: 8px; }
.product-detail-title { margin: 16px 0 8px; color: #444; font-size: 14px; }
.product-detail-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: #555; }
.product-internal-note { margin-top: 20px; padding: 10px 12px; background: #f8f9fc; border-radius: 8px; font-size: 12px; color: #999; text-align: center; }

/* ====== 登录墙 ====== */
.login-wall { display: none; }
.login-wall.show { display: flex; position: fixed; inset: 0; z-index: 500; background: var(--gradient); align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border-radius: 16px; padding: 28px 24px; width: 100%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.login-brand { text-align: center; font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.login-tab { flex: 1; padding: 9px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; color: #666; font-family: inherit; }
.login-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.login-box .form-input { width: 100%; }
.login-submit { width: 100%; margin-top: 4px; }
.login-hint { font-size: 12px; color: #999; text-align: center; margin: 12px 0 0; line-height: 1.6; }

/* ====== 客户管理 ====== */
.crm-customer-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: box-shadow 0.15s; }
.crm-customer-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.crm-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.crm-row2 { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #888; margin-top: 6px; }
.intent-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.intent-high { background: #fef2f2; color: #e74c3c; }
.intent-mid { background: #fff7e6; color: #f39c12; }
.intent-low { background: #f0f4ff; color: #667eea; }
.status-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #f5f6fa; color: #666; }
.status-dealt { background: #f0fdf4; color: #27ae60; }
.status-lost { background: #f5f5f5; color: #aaa; }
.owner-tag { font-size: 11px; color: #999; margin-left: auto; }
.crm-note { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #666; margin-bottom: 12px; }
.crm-quick-edit { display: flex; gap: 8px; margin-bottom: 4px; }
.crm-quick-edit .form-select { flex: 1; }
.crm-section-title { margin: 18px 0 8px; font-size: 14px; color: #444; }
.crm-deal-form { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-deal-form .form-select { flex: 2; min-width: 150px; }
.crm-deal-form .form-input { flex: 1; min-width: 110px; }
.crm-followups { margin-top: 8px; }
.crm-followup-item { border-left: 3px solid var(--primary); background: #f8f9fc; border-radius: 0 8px 8px 0; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.crm-followup-meta { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ====== 跟进提醒 ====== */
.reminder-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.reminder-chip { font-size: 12px; padding: 5px 12px; border-radius: 14px; cursor: pointer; font-weight: 600; }
.reminder-group h3 { font-size: 14px; margin: 0 0 10px; }
.reminder-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fafbfd; border: 1px solid var(--border); border-left: 3px solid #ccc; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 13px; transition: box-shadow 0.15s; }
.reminder-item:hover { box-shadow: var(--shadow); }
.reminder-overdue { border-left-color: #e74c3c; }
.reminder-today { border-left-color: #f39c12; }
.reminder-upcoming { border-left-color: #667eea; }
.reminder-none { border-left-color: #ccc; }

/* ====== 成交漏斗 ====== */
.funnel-stage { display: flex; align-items: center; margin-bottom: 10px; }
.funnel-bar { color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 120px; }
.funnel-rate { font-size: 12px; color: #888; margin-left: 10px; flex-shrink: 0; }

/* ====== 学习中心 ====== */
/* 知识库 */
.learn-kb-cat h3 { font-size: 15px; margin: 0 0 10px; }
.learn-kb-item { border-top: 1px solid var(--border); }
.learn-kb-item:first-of-type { border-top: none; }
.learn-kb-q { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-size: 14px; font-weight: 500; }
.learn-kb-q i { color: #bbb; transition: transform 0.2s; flex-shrink: 0; }
.learn-kb-a { padding: 0 2px 14px; font-size: 13px; color: #666; line-height: 1.8; }
/* 政策解读 */
.learn-policy-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.learn-policy-tag { font-size: 11px; background: #eef1ff; color: var(--primary); border-radius: 10px; padding: 2px 10px; }
.learn-policy-date { font-size: 12px; color: #aaa; }
.learn-policy h3 { font-size: 16px; margin: 0 0 10px; }
.learn-policy-p { font-size: 13px; color: #555; line-height: 1.9; margin: 6px 0; }
/* 题库 */
.learn-exam-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; line-height: 1.6; }
.learn-exam-opt { display: block; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; transition: background 0.15s; }
.learn-exam-opt:hover { background: #f8f9fc; }
.learn-exam-opt.exam-correct { background: #f0fdf4; border-color: #86efac; color: #059669; font-weight: 600; }
.learn-exam-opt.exam-wrong { background: #fef2f2; border-color: #fca5a5; color: #e74c3c; }
.learn-exam-explain { font-size: 12px; color: #666; line-height: 1.7; margin-top: 8px; padding: 8px 12px; background: #f8f9fc; border-radius: 8px; }
.learn-exam-score { font-size: 18px; font-weight: 700; margin-top: 4px; }
/* 学习路线 */
.learn-path-stage { border-left: 4px solid var(--primary); }
.learn-path-stage h3 { font-size: 15px; margin: 0 0 4px; }
.learn-path-desc { font-size: 13px; color: #888; margin: 0 0 10px; }
.learn-path-tasks { margin: 0; padding-left: 18px; font-size: 13px; line-height: 2; color: #555; }
/* 培训课程 */
.learn-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.learn-course-badge { display: inline-block; font-size: 11px; background: #fff3e0; color: #e67e22; border-radius: 10px; padding: 2px 10px; margin-bottom: 8px; }
.learn-course h4 { font-size: 14px; margin: 0 0 8px; line-height: 1.5; }
.learn-course-points { margin: 0 0 10px; padding-left: 16px; font-size: 12px; color: #777; line-height: 1.9; }
.learn-course-hot { grid-column: 1 / -1; border: 1px solid #ffd9a8; position: relative; }
.learn-course-hotmark { position: absolute; top: 14px; right: 14px; font-size: 11px; color: #e67e22; font-weight: 700; }
.learn-course-body { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 4px; }
.learn-course-body h5 { font-size: 14px; color: var(--primary); margin: 14px 0 6px; }
.learn-course-body p { font-size: 13px; color: #555; line-height: 1.9; margin: 6px 0; }

/* ====== 营销中心 ====== */
/* 海报生成 */
.poster-canvas-wrap { text-align: center; margin-top: 12px; }
.poster-canvas-wrap canvas { width: 100%; max-width: 300px; height: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
/* 链接管理 */
.link-box { display: flex; gap: 8px; margin-top: 6px; }
.link-box .form-input { flex: 1; font-size: 12px; color: #555; background: #f8f9fc; }
.link-box .btn-primary { flex-shrink: 0; white-space: nowrap; }

/* ====== 微信运营 + 合规中心 ====== */
.ops-note { background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #b8860b; line-height: 1.6; margin-bottom: 14px; }
.ops-cat { font-size: 15px; margin: 0 0 12px; color: #444; }
.ops-cat-danger { color: #c0392b; }
/* 话术 */
.ops-script { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.ops-script-scene { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.ops-script-text { font-size: 13px; color: #555; line-height: 1.8; white-space: pre-wrap; margin-bottom: 10px; }
.ops-copy-btn { background: #eef1ff; color: var(--primary); }
/* 朋友圈 + 短视频选题 */
.ops-section-h { font-size: 15px; color: #444; margin: 0 0 12px; }
.ops-moments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ops-topic-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ops-topic-head h4 { font-size: 15px; margin: 0; }
.ops-topic-num { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ops-topic-hook { font-size: 13px; color: #333; background: #f0f4ff; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 10px 12px; margin-bottom: 8px; line-height: 1.7; }
.ops-topic-points { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: #555; line-height: 1.9; }
.ops-topic-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #888; }
.ops-moment-theme { display: inline-block; font-size: 11px; background: #eef1ff; color: var(--primary); border-radius: 10px; padding: 2px 10px; margin-bottom: 10px; }
.ops-moment-text { font-size: 13px; color: #444; line-height: 1.9; }
.ops-moment-img { font-size: 12px; color: #999; margin: 10px 0; padding: 6px 10px; background: #f8f9fc; border-radius: 6px; }
/* 政策时间线 */
.ops-timeline { position: relative; padding-left: 8px; }
.ops-tl-item { position: relative; padding-left: 22px; }
.ops-tl-dot { position: absolute; left: 0; top: 20px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #eee; }
.ops-tl-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 26px; bottom: -6px; width: 2px; background: #eee; }
.ops-tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ops-tl-tag { font-size: 11px; color: #fff; border-radius: 10px; padding: 2px 10px; }
.ops-tl-date { font-size: 12px; color: #aaa; }
.ops-tl-card h4 { font-size: 15px; margin: 0 0 6px; }
.ops-tl-card p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }
/* 合规自查 */
.ops-check-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; font-size: 13px; color: #555; line-height: 1.6; cursor: pointer; border-bottom: 1px solid #f5f5f8; }
.ops-check-item input { margin-top: 3px; flex-shrink: 0; }
.ops-check-result { margin-top: 10px; font-size: 13px; font-weight: 600; color: #888; }
.ops-banned { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-banned-word { font-size: 13px; background: #fef2f2; color: #e74c3c; border: 1px solid #fca5a5; border-radius: 6px; padding: 4px 12px; }
.ops-scan-result { margin-top: 10px; font-size: 13px; color: #999; padding: 10px 12px; border-radius: 8px; background: #f8f9fc; }
.ops-scan-bad { background: #fef2f2; color: #e74c3c; }
.ops-scan-ok { background: #f0fdf4; color: #27ae60; }

/* ====== 素材库/收藏/群发/法规/审查（fill批次） ====== */
.fill-fav-btn { background: #fff7e6; color: #e67e22; }
.fill-fav-btn.faved { background: #e67e22; color: #fff; }
.fill-fav-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fill-card-text { font-size: 13px; line-height: 2; background: #f8f9fc; border-radius: 8px; padding: 10px 12px; }
.fill-bc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding: 10px 0; }
.fill-bc-msg { font-size: 13px; color: #555; line-height: 1.7; margin-top: 4px; }
.fill-law-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fill-law-level { font-size: 11px; background: var(--gradient); color: #fff; border-radius: 10px; padding: 2px 10px; font-weight: 600; }
.law-tag-mini { font-size: 11px; background: #f0f4ff; color: var(--primary); border-radius: 10px; padding: 2px 8px; }
.fill-law h4 { font-size: 15px; margin: 0 0 4px; }
.fill-law-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.fill-law-brief { font-size: 13px; color: #555; line-height: 1.8; margin: 0 0 8px; }
.fill-law-use { font-size: 13px; color: #0a6e46; background: #f0fdf4; border-radius: 8px; padding: 8px 12px; line-height: 1.7; }
.fill-check-block { border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px; }
.fill-check-block strong { display: block; margin-bottom: 6px; }
.fill-check-high { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.fill-check-mid { background: #fff7e6; border: 1px solid #fcd34d; color: #92600a; }
.fill-check-low { background: #f0f4ff; border: 1px solid #c7d2fe; color: #3b4ba0; }
.fill-check-item { padding: 4px 0; line-height: 1.7; }

/* ====== 数据中心 ====== */
.dc-bars { display: flex; flex-direction: column; gap: 8px; }
.dc-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dc-bar-label { flex: 0 0 84px; color: #555; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-bar-track { flex: 1; background: #f0f0f5; border-radius: 6px; height: 18px; overflow: hidden; }
.dc-bar-fill { display: block; height: 100%; border-radius: 6px; transition: width 0.3s; }
.dc-bar-val { flex: 0 0 40px; color: #888; font-weight: 600; }

/* ====== AI客服 ====== */
.dc-chat { display: flex; flex-direction: column; height: 60vh; min-height: 380px; }
.dc-chat-msgs { flex: 1; overflow-y: auto; padding: 4px 2px; }
.dc-msg { display: flex; margin-bottom: 10px; }
.dc-msg-user { justify-content: flex-end; }
.dc-msg-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.dc-msg-bot .dc-msg-bubble { background: #f5f6fa; color: #333; border-top-left-radius: 4px; }
.dc-msg-user .dc-msg-bubble { background: var(--gradient); color: #fff; border-top-right-radius: 4px; }
.dc-chat-hot { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.dc-hot-q { font-size: 12px; background: #eef1ff; color: var(--primary); border-radius: 14px; padding: 4px 12px; cursor: pointer; }
.dc-chat-input { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dc-chat-input .form-input { flex: 1; }

/* ====== 评估报告 ====== */
.report-doc { max-width: 640px; margin: 0 auto; }
.report-head { text-align: center; margin-bottom: 16px; }
.report-head h2 { font-size: 20px; margin: 0 0 4px; }
.report-head p { color: #888; font-size: 13px; margin: 0; }
.report-advice { background: #f0f4ff; border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.report-advice h4 { margin: 0 0 6px; font-size: 14px; color: var(--primary); }
.report-advice p { margin: 0; font-size: 13px; color: #555; line-height: 1.8; }
.report-foot { margin-top: 14px; font-size: 12px; color: #999; line-height: 1.8; border-top: 1px dashed var(--border); padding-top: 10px; }
.report-actions { text-align: center; margin-top: 14px; }
@media print {
  body * { visibility: hidden; }
  #reportDoc, #reportDoc * { visibility: visible; }
  #reportDoc { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: none; }
  .report-actions { display: none !important; }
}
