/* ================================================================
   AI 数据分析后台 — 暖调精致风格
   设计方向：温暖人文，专业而不冰冷，婚恋行业特质
   ================================================================ */

/* ===== CSS 变量 ===== */
:root {
  --bg:        #f9f6f3;
  --surface:   #ffffff;
  --sidebar:   #1f1b19;
  --sidebar-hover: #2d2724;
  --sidebar-active: #e06038;
  --primary:   #e06038;
  --primary-hover: #c94e28;
  --primary-light: #fff0eb;
  --text:      #1e1a18;
  --text-secondary: #8c817c;
  --text-muted: #b8afaa;
  --border:    #e7e1dc;
  --border-light: #f2ede9;
  --shadow-sm: 0 1px 2px rgba(30,26,24,0.04), 0 2px 8px rgba(30,26,24,0.05);
  --shadow-md: 0 2px 4px rgba(30,26,24,0.04), 0 6px 20px rgba(30,26,24,0.08);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --font:      "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* 状态色 */
  --success-bg: #ecfdf5;
  --success-text: #059669;
  --warning-bg: #fffbeb;
  --warning-text: #d97706;
  --error-bg: #fef2f2;
  --error-text: #dc2626;
  --info-bg: #eff6ff;
  --info-text: #2563eb;
}

/* ===== 全局 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }
.layout--hidden { display: none; }

/* ===== 侧边栏 ===== */
.sidebar {
  position: fixed; left: 0; top: 0; width: 220px; height: 100vh;
  background: var(--sidebar); color: #fff;
  display: flex; flex-direction: column; z-index: 100;
}

.sidebar__header {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar__title {
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  color: #f0e8e4;
}

.sidebar__nav-scroll {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}

.sidebar__nav {
  display: flex; flex-direction: column; padding: 10px 0;
}

.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; color: #b8aeaa; text-decoration: none;
  font-size: 13.5px; font-weight: 450;
  transition: all var(--transition);
  margin: 0 8px; border-radius: var(--radius-sm);
}

.sidebar__link:hover {
  color: #f0e8e4; background: var(--sidebar-hover);
}

.sidebar__link--active {
  color: #fff; background: var(--sidebar-active);
  font-weight: 550;
  box-shadow: 0 2px 8px rgba(224,96,56,0.35);
}

.sidebar__icon {
  font-size: 11px; width: 18px; text-align: center;
  opacity: 0.7; flex-shrink: 0;
}
.sidebar__link--active .sidebar__icon { opacity: 1; }

/* 数据视图切换 */
.sidebar__scope {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar__scope-label {
  font-size: 10px; color: #8c807a; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.6px;
}

.sidebar__scope-select {
  width: 100%; padding: 6px 8px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: #141110; color: #d5cec9; font-size: 12px;
  cursor: pointer; outline: none; font-family: var(--font);
}
.sidebar__scope-select:focus { border-color: var(--primary); }
.sidebar__scope-select option {
  background: #1f1b19; color: #d5cec9;
}

/* ===== 主内容区 ===== */
.main {
  margin-left: 220px; flex: 1;
  padding: 28px 36px 40px; overflow-y: auto; min-height: 100vh;
}

/* ===== 页面切换 ===== */
.page { display: none; }
.page--active { display: block; }

.page__header { margin-bottom: 26px; }

.page__title {
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}

.page__desc {
  color: var(--text-secondary); margin-top: 4px; font-size: 13.5px;
}

.page__subheader { margin-bottom: 18px; }

.page__subtitle {
  font-size: 16px; font-weight: 650; color: var(--text);
}

/* ===== 统计卡片 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px; margin-bottom: 24px;
}

.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 20px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card__label {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 8px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card__value {
  font-size: 28px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }

.form-group__label {
  display: block; font-size: 12.5px; font-weight: 550;
  margin-bottom: 6px; color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-group__input,
.form-group__select,
.form-group__textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text); background: #fefcfb;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font);
}

.form-group__input:focus,
.form-group__select:focus,
.form-group__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224,96,56,0.1);
}

.form-group__textarea { resize: vertical; }

.form-group input[type="file"] { font-size: 13px; color: var(--text-secondary); }
.form-group input[type="file"]::file-selector-button {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #faf7f5; color: var(--text); font-size: 12.5px;
  cursor: pointer; margin-right: 8px; transition: background var(--transition);
  font-family: var(--font);
}
.form-group input[type="file"]::file-selector-button:hover {
  background: var(--border-light);
}

.form-row { display: flex; gap: 12px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: var(--surface); color: var(--text);
  transition: all var(--transition); font-family: var(--font);
  letter-spacing: 0.01em;
}

.btn:hover { background: #faf7f5; border-color: #d8d0ca; }

.btn--primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(224,96,56,0.25);
}

.btn--primary:hover {
  background: var(--primary-hover); border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(224,96,56,0.35);
}

.btn--edit { color: var(--primary); border-color: #ffd9ce; }
.btn--edit:hover { background: var(--primary-light); }

.btn--danger { color: var(--error-text); border-color: #fecaca; }
.btn--danger:hover { background: var(--error-bg); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== 标签页 ===== */
.settings-tabs {
  display: flex; gap: 0; margin-bottom: 22px;
  border-bottom: 2px solid var(--border-light);
}

.settings-tab {
  padding: 10px 18px; border: none; background: none;
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
  font-family: var(--font);
}

.settings-tab:hover { color: var(--primary); }

.settings-tab--active {
  color: var(--primary); border-bottom-color: var(--primary);
  font-weight: 600;
}

.settings-panel { display: none; }
.settings-panel--active { display: block; }

/* ===== 表格 ===== */
.table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.table th, .table td {
  padding: 11px 16px; text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: #faf7f5; font-weight: 600; font-size: 12px;
  color: var(--text-secondary); letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fefcfb; }

.table__empty {
  text-align: center; color: var(--text-muted); padding: 36px 16px;
  font-size: 13.5px;
}

.datasource__toolbar { margin-bottom: 16px; }

/* ===== 弹窗 ===== */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
}

.modal--open {
  display: flex; align-items: center; justify-content: center;
}

.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(30,26,24,0.45);
  backdrop-filter: blur(2px);
}

.modal__content {
  position: relative; background: var(--surface);
  border-radius: var(--radius-lg); width: 480px; max-width: 90vw;
  box-shadow: 0 12px 48px rgba(30,26,24,0.18);
  overflow: hidden;
}

.modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--border-light);
}

.modal__header h3 { font-size: 16px; font-weight: 650; color: var(--text); }

.modal__close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-secondary); line-height: 1;
  transition: color var(--transition);
}
.modal__close:hover { color: var(--text); }

.modal__body { padding: 20px 22px; }
.modal__footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 22px; border-top: 1px solid var(--border-light);
  background: #fdfbfa;
}

/* ===== 辅助 ===== */
.text-muted { color: var(--text-muted); }

/* ===== AI 分析区域 ===== */
.analysis__form {
  background: var(--surface); padding: 22px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 16px; border: 1px solid var(--border-light);
}

.analysis__result {
  background: var(--surface); padding: 22px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.analysis__result-title {
  font-size: 15px; font-weight: 650; margin-bottom: 12px;
  color: var(--text);
}

/* ===== 复选框标签 ===== */
.checkbox-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 16px; font-size: 12px; cursor: pointer;
  background: var(--surface); transition: all var(--transition);
  user-select: none; font-weight: 450;
}
.checkbox-label:hover {
  border-color: var(--primary); background: var(--primary-light);
}
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }

/* ===== 跟单批注 ===== */
.docnotes__config {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--border-light);
}

.docnotes__config-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 13.5px;
  user-select: none; transition: background var(--transition);
}
.docnotes__config-header:hover { background: #fdfbfa; }

.docnotes__config-arrow {
  transition: transform var(--transition); font-size: 11px;
  color: var(--text-secondary);
}
.docnotes__config-arrow--open { transform: rotate(180deg); }

.docnotes__config-body {
  padding: 0 20px 18px; border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.docnotes__toolbar {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.docnotes__list {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  overflow: hidden;
}

.docnotes__list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  background: #fdfbfa;
}

.docnotes__list-title {
  font-weight: 650; font-size: 13.5px; color: var(--text);
}

/* 跟单记录条目（紧凑列表） */
.docnotes__item {
  display: flex; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid var(--border-light); gap: 10px;
  cursor: pointer; transition: background var(--transition);
}
.docnotes__item:hover { background: #fdfbfa; }

.docnotes__item--selected {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}
.docnotes__item--selected:hover { background: var(--primary-light); }

.docnotes__item-check { display: flex; align-items: center; }
.docnotes__item-check input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer;
}

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

.docnotes__item-header {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.docnotes__item-user {
  font-weight: 600; font-size: 13px; color: var(--text);
}

.docnotes__item-id { font-size: 11px; color: var(--text-muted); }

.docnotes__item-admin {
  font-size: 11px; color: var(--text-secondary);
  background: #f5f1ee; padding: 1px 7px; border-radius: 8px;
}

.docnotes__item-time { font-size: 11px; color: var(--text-muted); }

.docnotes__item-voice {
  font-size: 12px; color: var(--primary);
}
.docnotes__voice-play {
  cursor: pointer; transition: transform 0.15s;
}
.docnotes__voice-play:hover {
  transform: scale(1.2); color: var(--primary-hover);
}

/* 状态标签 */
.docnotes__status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 3px 10px; border-radius: 10px;
  font-weight: 600;
}

.docnotes__status--pending { background: #e8e2dc; color: #5c524b; }
.docnotes__status--processing { background: #dbeafe; color: #1d4ed8; }
.docnotes__status--done { background: #d1fae5; color: #047857; }
.docnotes__status--error { background: #fee2e2; color: #b91c1c; }

.docnotes__batch-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--primary-light);
  border-bottom: 1px solid #ffd9ce; font-size: 13px;
}

/* 筛选按钮 */
.docnotes__filter {
  display: flex; gap: 4px; padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #fdfbfa;
}

.docnotes__filter-btn {
  padding: 3px 12px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; cursor: pointer; background: var(--surface);
  color: var(--text-secondary); transition: all var(--transition);
  font-family: var(--font);
}
.docnotes__filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.docnotes__filter-btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  font-weight: 500;
}
.docnotes__filter-btn--active:hover { background: var(--primary-hover); }

/* 上传状态 */
.docnotes__upload-badge {
  display: inline-flex; align-items: center; font-size: 12px;
  padding: 2px 9px; border-radius: 8px; font-weight: 600; line-height: 1.5;
}
.docnotes__upload-badge--done { background: #d1fae5; color: #047857; }
.docnotes__upload-badge--pending { background: #fef3c7; color: #b45309; }

/* 左右分栏 */
.docnotes__split { display: flex; gap: 16px; align-items: stretch; }
.docnotes__left {
  flex: 1; max-height: calc(100vh - 240px); overflow-y: auto;
}
.docnotes__right { flex: 1; min-width: 0; display: flex; }

.docnotes__detail {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
}
.docnotes__detail--empty {
  align-items: center; justify-content: center; min-height: 200px;
}

.docnotes__detail-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap; background: #fdfbfa;
}

.docnotes__detail-user { font-weight: 650; font-size: 15px; color: var(--text); }
.docnotes__detail-id { font-size: 12px; color: var(--text-muted); }
.docnotes__detail-admin {
  font-size: 11px; color: var(--text-secondary);
  background: #f5f1ee; padding: 1px 8px; border-radius: 8px;
}
.docnotes__detail-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.docnotes__detail-content {
  padding: 14px 16px; font-size: 13px; color: var(--text);
  line-height: 1.7; max-height: 200px; overflow-y: auto;
  border-bottom: 1px solid var(--border-light);
  background: #fefcfb; word-break: break-all;
}

.docnotes__detail-actions {
  display: flex; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}

.docnotes__detail-note {
  padding: 14px 16px; font-size: 13px; line-height: 1.6;
  color: var(--warning-text); white-space: pre-wrap; word-break: break-all;
  overflow-y: auto; flex: 1;
}

/* 详情面板内隐藏的旧类（保留兼容） */
.docnotes__item-content,
.docnotes__item-actions,
.docnotes__item-note { display: none; }

/* ===== 徽章 ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}
.badge--active { background: #d1fae5; color: #047857; }
.badge--error { background: #fee2e2; color: #b91c1c; }
.badge--inactive { background: #e8e2dc; color: #5c524b; }

/* ===== 批注日志 ===== */
.docnotes__log-item {
  padding: 13px 20px; border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.docnotes__log-item:last-child { border-bottom: none; }

.docnotes__log-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.docnotes__log-header > span:first-child {
  font-weight: 600; color: var(--text);
}
.docnotes__log-source {
  font-size: 11px; color: var(--text-secondary);
  background: #f5f1ee; padding: 1px 8px; border-radius: 8px;
}
.docnotes__log-time { font-size: 11px; color: var(--text-muted); }
.docnotes__log-note {
  font-size: 13px; color: var(--text); line-height: 1.5;
  white-space: pre-wrap; word-break: break-all;
}

/* ===== 登录覆盖层 ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: linear-gradient(135deg, #f6f2ef 0%, #efe9e4 100%);
  display: none; align-items: center; justify-content: center;
}
.login-overlay--visible { display: flex; }

.login-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 38px 34px; width: 400px; max-width: 92vw;
  box-shadow: 0 12px 48px rgba(30,26,24,0.12);
  border: 1px solid var(--border-light);
}

.login-box h2 {
  font-size: 20px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}

.login-error {
  color: var(--error-text); font-size: 12.5px;
  margin-bottom: 12px; min-height: 20px;
}

/* ===== 控预测 ===== */
.forecast__config {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--border-light);
}

.forecast__config-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; font-weight: 600; font-size: 13.5px;
  user-select: none;
}

.forecast__toolbar {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.forecast__split { display: flex; gap: 16px; align-items: stretch; }
.forecast__left {
  flex: 1; max-height: calc(100vh - 240px); overflow-y: auto;
}
.forecast__list {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  overflow: hidden;
}
.forecast__list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  background: #fdfbfa;
}
.forecast__list-title { font-weight: 650; font-size: 13.5px; }
.forecast__right { flex: 1; min-width: 0; display: flex; }

.forecast__detail {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
}
.forecast__detail--empty {
  align-items: center; justify-content: center; min-height: 200px;
}

.forecast__detail-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid var(--border-light); flex-wrap: wrap;
  background: #fdfbfa;
}
.forecast__detail-user { font-weight: 650; font-size: 15px; color: var(--text); }
.forecast__detail-id { font-size: 12px; color: var(--text-muted); }
.forecast__detail-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.forecast__detail-actions {
  display: flex; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}

.forecast__detail-profile {
  padding: 14px 16px; font-size: 13px; color: var(--text);
  line-height: 1.6; background: #fefcfb;
  border-bottom: 1px solid var(--border-light);
}

.forecast__detail-empty { padding: 40px 16px; text-align: center; }

.forecast__detail-analysis {
  padding: 14px 16px; font-size: 13px; line-height: 1.6;
  overflow-y: auto; flex: 1;
}

/* 控预测 - 列表条目 */
.forecast__item {
  display: flex; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid var(--border-light); gap: 10px;
  cursor: pointer; transition: background var(--transition);
}
.forecast__item:hover { background: #fdfbfa; }

.forecast__item--selected {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}
.forecast__item--selected:hover { background: var(--primary-light); }

.forecast__item-body { flex: 1; min-width: 0; }
.forecast__item-header {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.forecast__item-user { font-weight: 600; font-size: 13px; color: var(--text); }
.forecast__item-id { font-size: 11px; color: var(--text-muted); }
.forecast__item-time { font-size: 11px; color: var(--text-muted); }

/* 控预测 - 筛选按钮 */
.forecast__filter {
  display: flex; gap: 4px; padding: 8px 16px;
  border-bottom: 1px solid var(--border-light); background: #fdfbfa;
}
.forecast__filter-btn {
  padding: 3px 12px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; cursor: pointer; background: var(--surface);
  color: var(--text-secondary); transition: all var(--transition);
  font-family: var(--font);
}
.forecast__filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.forecast__filter-btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  font-weight: 500;
}
.forecast__filter-btn--active:hover { background: var(--primary-hover); }

/* 控预测 - 状态 */
.forecast__status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 3px 10px; border-radius: 10px; font-weight: 600;
}
.forecast__status--pending { background: #e8e2dc; color: #5c524b; }
.forecast__status--processing { background: #dbeafe; color: #1d4ed8; }
.forecast__status--done { background: #d1fae5; color: #047857; }
.forecast__status--error { background: #fee2e2; color: #b91c1c; }

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page--active {
  animation: fadeInUp 0.25s ease-out;
}

.card {
  animation: fadeInUp 0.3s ease-out both;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.14s; }
.card:nth-child(5) { animation-delay: 0.18s; }
.card:nth-child(6) { animation-delay: 0.22s; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #d5cec9; border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #b8afaa; }

.sidebar__nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}
.sidebar__nav-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}
