/* =============================================================
   善良的阿良AI - 全局样式表 v2.0
   ============================================================= */

/* --- CSS变量：亮/暗色主题 --- */
:root {
  --bg-primary: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-alt: #f8f9fc;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --accent-blue: #4a6cf7;
  --accent-blue-hover: #3b5de7;
  --accent-green: #22c55e;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-gradient: linear-gradient(135deg, #fbbf24, #f97316);
  --border-light: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 16px rgba(0,0,0,0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 56px;
  --bottom-nav-height: 60px;
}

[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-card: rgba(30, 30, 50, 0.96);
  --bg-card-alt: #1a1a30;
  --text-primary: #e8e8f0;
  --text-secondary: #aaa;
  --text-muted: #666;
  --border-light: #2a2a44;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 16px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  min-height: 100vh; color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

/* --- Layout --- */
.app { max-width: 900px; margin: 0 auto; padding: 0 16px 16px; }

/* --- Header --- */
.header {
  text-align: center; padding: 20px 16px 12px; color: white;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  border-radius: 0 0 24px 24px; margin: 0 -16px 16px;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.header h1 { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.header h1 span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header p { font-size: 13px; opacity: 0.7; margin-top: 4px; }
.header .tag {
  display: inline-block; background: rgba(255,255,255,0.12);
  padding: 3px 12px; border-radius: 20px; font-size: 11px;
  margin-top: 8px; color: #fbbf24;
}
.header .theme-toggle {
  position: absolute; right: 16px; top: 16px;
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.header .theme-toggle:hover { background: rgba(255,255,255,0.2); }

/* --- Cards --- */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.card:active { transform: scale(0.99); }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.card-title .badge {
  background: var(--accent-blue); color: white; font-size: 10px;
  padding: 2px 8px; border-radius: 10px; margin-left: auto;
}
.card-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm);
  border: none; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-blue); color: white; }
.btn-primary:hover { background: var(--accent-blue-hover); }
.btn-success { background: var(--accent-green); color: white; }
.btn-warning { background: var(--accent-yellow); color: white; }
.btn-danger { background: var(--accent-red); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--accent-blue); color: var(--accent-blue); }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- User Grid --- */
.user-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.user-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 20px; text-align: center; cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.user-card:hover, .user-card.active { border-color: var(--accent-blue); transform: translateY(-2px); }
.user-card .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin: 0 auto 10px;
}
.user-card .name { font-size: 16px; font-weight: 600; }
.user-card .school { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.user-card .score {
  font-size: 20px; font-weight: 700;
  margin-top: 8px; background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.user-card .rank-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* --- Chat --- */
.chat-box {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.chat-messages {
  height: 320px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 85%; padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.6;
  animation: fadeIn .3s ease;
}
.chat-msg.user { align-self: flex-end; background: var(--accent-blue); color: white; border-bottom-right-radius: 4px; }
.chat-msg.ai { align-self: flex-start; background: var(--bg-card-alt); border-bottom-left-radius: 4px; }
.chat-msg .time { font-size: 10px; opacity: 0.5; margin-top: 4px; display: block; }
.chat-input-area {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border-light); background: var(--bg-card);
}
.chat-input-area input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border-light);
  border-radius: 22px; outline: none; font-size: 14px;
  background: var(--bg-card-alt); color: var(--text-primary);
  transition: border-color .2s;
}
.chat-input-area input:focus { border-color: var(--accent-blue); }
.chat-input-area .btn { border-radius: 50%; width: 40px; height: 40px; padding: 0; }

/* --- Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card-alt) 25%, transparent 50%, var(--bg-card-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line:last-child { width: 60%; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* --- Recommendations --- */
.rec-section { margin-bottom: 20px; }
.rec-section:last-child { margin-bottom: 0; }
.rec-section h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.school-item {
  display: flex; align-items: center; padding: 10px 12px;
  background: var(--bg-card-alt); border-radius: var(--radius-sm);
  margin-bottom: 8px; gap: 12px; cursor: pointer;
  transition: background .2s;
}
.school-item:hover { background: var(--border-light); }
.school-item .rank-badge {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: white;
}
.rank-chong { background: var(--accent-red); }
.rank-wen { background: var(--accent-yellow); }
.rank-bao { background: var(--accent-green); }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; background: var(--bg-card-alt); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 16px; }
.tab {
  flex: 1; padding: 10px; text-align: center; font-size: 13px;
  font-weight: 500; border-radius: 8px; cursor: pointer;
  transition: all .2s; border: none; background: transparent; color: var(--text-secondary);
}
.tab.active { background: var(--accent-blue); color: white; }
.tab:hover:not(.active) { background: var(--border-light); }

/* --- Bottom Nav (Mobile) --- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 380px; /* desktop: avoid right brain */
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 8px 0; z-index: 200;
  backdrop-filter: blur(12px);
}
.bottom-nav-inner { display: flex; max-width: 900px; margin: 0 auto; }
.nav-item {
  flex: 1; text-align: center; padding: 4px;
  cursor: pointer; border: none; background: none;
  color: var(--text-muted); font-size: 11px;
  transition: color .2s;
}
.nav-item.active { color: var(--accent-blue); }
.nav-item .nav-icon { font-size: 22px; display: block; margin-bottom: 2px; }

/* --- Forms --- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text-secondary); }
.form-input, .form-select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  background: var(--bg-card-alt); color: var(--text-primary);
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* --- Compare Table --- */
.compare-grid { overflow-x: auto; }
.compare-grid table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-grid th, .compare-grid td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border-light); }
.compare-grid th { background: var(--bg-card-alt); font-weight: 600; position: sticky; top: 0; }
.compare-grid tr:hover td { background: var(--bg-card-alt); }

/* --- Dashboard --- */
.dashboard-chart { width: 100%; height: 300px; margin-bottom: 16px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--bg-card-alt); border-radius: var(--radius-sm);
  padding: 16px; text-align: center;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--accent-blue); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes typing { from { width: 0; } to { width: 100%; } }

/* --- Skeleton Loading --- */
.loading-pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 600px) {
  .user-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .header h1 { font-size: 18px; }
  .chat-messages { height: 240px; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-nav-height) + 8px); }
  .card { padding: 16px; }
  .btn-block-mobile { width: 100%; justify-content: center; }
}

@media (min-width: 601px) {
  .bottom-nav { display: none !important; }
  body { padding-bottom: 16px; }
}

/* --- Print --- */
@media print {
  .bottom-nav, .chat-input-area, .header .theme-toggle { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  body { background: white; color: black; }
}

/* =============================================================
   对话式首屏 + 浮动对话栏 样式
   追加在现有 style.css 之后
   ============================================================= */

/* --- 对话式首屏覆盖层 --- */
.conv-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.conv-overlay.conv-fade-out {
  opacity: 0;
  transform: scale(1.02);
}
.conv-overlay-inner {
  width: 100%; max-width: 520px;
  height: 100%; max-height: 700px;
  display: flex; flex-direction: column;
}
.conv-header {
  text-align: center; color: white;
  padding: 20px 0 12px;
  flex-shrink: 0;
}
.conv-avatar {
  font-size: 48px; margin-bottom: 8px;
  animation: conv-pulse 2s ease-in-out infinite;
}
@keyframes conv-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.conv-header h2 {
  font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.conv-subtitle { font-size: 13px; opacity: 0.6; margin-top: 4px; }

.conv-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 4px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.conv-msg { display: flex; }
.conv-msg.user { justify-content: flex-end; }
.conv-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.6;
  word-break: break-word;
}
.ai-bubble {
  background: rgba(255,255,255,0.1);
  color: #e8e8f0;
  border-bottom-left-radius: 4px;
}
.user-bubble {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-bottom-right-radius: 4px;
}

.conv-input-area {
  flex-shrink: 0;
  padding: 12px 0;
}

.conv-quick-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}
.conv-quick-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e8e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.conv-quick-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.conv-input-row {
  display: flex; gap: 8px;
}
.conv-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.conv-input-row input::placeholder { color: rgba(255,255,255,0.35); }
.conv-input-row input:focus { border-color: rgba(255,255,255,0.4); }
.conv-input-row button {
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1a1a2e;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s;
}
.conv-input-row button:active { transform: scale(0.96); }

.conv-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
}

/* 主界面隐藏（覆盖层显示时） */
.conv-overlay:not(.conv-fade-out) ~ .header,
.conv-overlay:not(.conv-fade-out) ~ .app,
.conv-overlay:not(.conv-fade-out) ~ .bottom-nav {
  display: none;
}

/* --- 浮动对话栏（桌面端右侧） --- */
.floating-chat {
  position: fixed;
  right: 20px; bottom: 90px;
  width: 360px; height: 480px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.floating-chat.fc-expanded {
  display: flex;
}
.floating-chat.fc-minimized {
  display: none;
}

.fc-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.fc-header-actions { display: flex; align-items: center; gap: 8px; }
.fc-header-badge {
  background: #ef4444; color: white;
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
}
.fc-min-btn {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.fc-min-btn:hover { background: rgba(255,255,255,0.25); }

.fc-messages {
  flex: 1; overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}

.fc-send-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fc-send-btn:active { transform: scale(0.92); }

.fc-toggle-btn {
  position: fixed;
  right: 20px; bottom: 24px;
  width: 56px; height: 56px;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 499;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.fc-toggle-btn:hover { transform: scale(1.05); }
.fc-toggle-btn:active { transform: scale(0.95); }

/* 桌面端覆盖层隐藏后自动显示浮动对话栏 */
.conv-completed .floating-chat {
  display: flex;
}
.conv-completed .fc-toggle-btn {
  display: none;
}

/* --- 响应式：移动端适配 --- */
@media (max-width: 768px) {
  .conv-overlay-inner { max-height: 100%; }
  .conv-messages { flex: 1; }
  .conv-quick-btn { font-size: 12px; padding: 6px 12px; }

  .floating-chat {
    right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 0;
    z-index: 600;
  }
  .fc-toggle-btn { display: none !important; }

  /* 移动端对话走底部Tab */
  .mobile-only { display: inline-flex !important; }
  .mobile-tab-chat { display: block; }

  .tabs .tab.mobile-only {
    display: inline-flex !important;
  }
  .nav-item.mobile-only {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}

/* --- 覆盖层消息滚动条美化 --- */
.conv-messages::-webkit-scrollbar { width: 4px; }
.conv-messages::-webkit-scrollbar-track { background: transparent; }
.conv-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.fc-messages::-webkit-scrollbar { width: 4px; }
.fc-messages::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* --- 过渡动画：从覆盖层到主界面 --- */
.conv-overlay.conv-fade-out ~ .header {
  animation: header-slide-in 0.6s ease forwards;
}
.conv-overlay.conv-fade-out ~ .app {
  animation: app-fade-in 0.8s ease forwards;
}
@keyframes header-slide-in {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes app-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================================
   交互增强样式：数据穿透 + 高亮联动 + 对比停靠栏
   ============================================================= */

/* ── 穿透弹窗 ── */
.drill-popover {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: drill-pop-in 0.2s ease-out;
}
@keyframes drill-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.drill-popover-inner { padding: 0; }
.drill-popover-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.drill-close-btn {
  background: rgba(255,255,255,0.2); border: none;
  color: white; width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.drill-tags {
  padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 4px;
}
.drill-tag {
  background: #eef2ff; color: #4a6cf7;
  padding: 2px 10px; border-radius: 12px; font-size: 12px;
}
.drill-tag-gold {
  background: #fef3c7; color: #d97706;
}
.drill-sections { padding: 0; }
.drill-section {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.drill-section:last-child { border-bottom: none; }
.drill-section-title {
  font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-primary);
}
.drill-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.drill-cell {
  text-align: center; padding: 8px;
  background: var(--bg-card-alt); border-radius: var(--radius-sm);
}
.drill-label {
  display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
}
.drill-value {
  display: block; font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.drill-value-attn { color: #4a6cf7; }
.drill-actions {
  padding: 12px 16px; display: flex; gap: 8px;
}

/* ── 高亮联动 ── */
.school-highlight {
  animation: school-glow 2s ease-in-out 2;
  outline: 2px solid #4a6cf7;
  outline-offset: 2px;
  border-radius: 12px;
}
@keyframes school-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,108,247,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(74,108,247,0.15); }
}

/* ── 对比添加按钮 ── */
.drill-add-btn {
  background: none; border: 1px dashed var(--border-light);
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 16px; color: #888;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 8px;
  transition: all 0.2s;
}
.drill-add-btn:hover {
  background: #eef2ff; border-color: #4a6cf7; color: #4a6cf7;
  transform: scale(1.1);
}

/* ── 对比停靠栏 ── */
.compare-dock {
  position: fixed; bottom: 0; left: 0; right: 380px; /* desktop: avoid right brain */
  background: var(--bg-card);
  border-top: 2px solid #4a6cf7;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 550;
  padding: 8px 16px;
  animation: dock-slide-up 0.3s ease-out;
}
@keyframes dock-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.dock-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.dock-items {
  flex: 1; display: flex; gap: 8px; flex-wrap: wrap;
  min-height: 36px;
}
.dock-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef2ff; padding: 4px 10px;
  border-radius: 20px; font-size: 13px;
  animation: dock-item-in 0.2s ease-out;
}
@keyframes dock-item-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.dock-item-name { font-weight: 600; }
.dock-item-remove {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #888; padding: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.dock-item-remove:hover { background: #ddd; color: #333; }
.dock-placeholder {
  color: var(--text-muted); font-size: 13px;
}
.dock-compare-btn {
  padding: 8px 20px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white; font-weight: 600; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.dock-compare-btn:active { transform: scale(0.96); }
.dock-compare-btn:hover { opacity: 0.9; }

.dock-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: white; font-size: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ── Toast ── */
.interaction-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1a1a2e; color: white;
  padding: 10px 24px; border-radius: 24px;
  font-size: 14px; z-index: 700;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.interaction-toast.show { opacity: 1; }

/* ── 移动端适配 ── */
@media (max-width: 768px) {
  .compare-dock { padding: 6px 12px; }
  .dock-compare-btn { font-size: 12px; padding: 6px 16px; }
  .drill-add-btn { width: 24px; height: 24px; font-size: 14px; }
  .dock-items { gap: 4px; }
  .dock-item { font-size: 12px; padding: 3px 8px; }
}
/* =============================================================
   左右脑布局 + 三明治架构
   ============================================================= */

/* ── 左右脑 Flex 容器 ── */
.brain-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 20px);
}
.brain-left {
  flex: 1;
  min-width: 0;
  padding: 0 20px 60px;
  overflow-y: auto;
}
.brain-right {
  width: 380px;
  flex-shrink: 0;
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid var(--border-light);
  background: var(--bg-card);
}

.conv-completed .brain-right {
  display: flex;
  flex-direction: column;
}

/* ── 右脑对话面板 ── */
.brain-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.brain-chat-header {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}
.brain-chat-context {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}
.brain-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card-alt);
}
.brain-chat-input {
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
}
.brain-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: var(--bg-card-alt);
  color: var(--text-primary);
}
.brain-chat-input input:focus {
  border-color: #667eea;
}
.brain-chat-input button {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.brain-chat-input button:active { transform: scale(0.96); }

/* ── 右脑消息气泡 ── */
.brain-chat .conv-msg { margin: 0; }
.brain-chat .conv-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 90%;
}
.brain-chat .ai-bubble {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px 14px 14px 4px;
}
.brain-chat .user-bubble {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 14px 14px 4px 14px;
}

/* ── 三明治架构：结论先行 ── */
.card-conclusion {
  background: linear-gradient(135deg, #fff8e1, #fffbeb);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.card-conclusion .conclusion-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #92400e;
}
.card-conclusion .conclusion-hint {
  font-size: 12px;
  color: #b45309;
  margin-top: 6px;
}

/* 数据层（默认收起） */
.card-data-layer {
  position: relative;
}
.card-data-layer .data-toggle {
  display: block;
  width: 100%;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: #667eea;
  cursor: pointer;
  background: none;
  border: none;
  border-top: 1px dashed var(--border-light);
  margin-top: 8px;
}
.card-data-layer .data-toggle:hover { color: #4a6cf7; }
.card-data-layer .data-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.card-data-layer.expanded .data-content {
  max-height: 2000px;
}

/* ── 首页三明治改造 ── */
/* 推荐卡片改为结论+数据可展开 */
.school-item-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.school-item-wrap:hover {
  box-shadow: var(--shadow-md);
}

.school-item-conclusion {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.school-item-conclusion .schoool-rank {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.school-item-conclusion .school-info { flex: 1; }
.school-item-conclusion .school-name {
  font-weight: 600;
  font-size: 15px;
}
.school-item-conclusion .school-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.school-item-conclusion .school-action-hint {
  font-size: 11px;
  color: #667eea;
  flex-shrink: 0;
}

/* ── 移动端适配 ── */
@media (max-width: 991px) {
  .brain-layout { display: block; }
  .brain-right { display: none !important; }
  .brain-left { padding: 0 12px 70px; }
  .mobile-only { display: flex !important; }
}
@media (min-width: 992px) {
  .conv-completed .brain-right { display: flex; }
  .mobile-only { display: none !important; }
}

/* ── 旧浮动对话栏禁用 ── */
.floating-chat, .fc-toggle-btn {
  display: none !important;
}

/* ── 跳过按钮（覆盖层快速入口） ── */
.conv-skip-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0 4px;
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  letter-spacing: 1px;
}
.conv-skip-btn:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}
.conv-skip-btn:active { transform: scale(0.98); }

/* ── 悬停窥探提示 ── */
.drill-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
}

/* ── 三明治架构 展开提示 ── */
.expand-hint {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 4px;
  cursor: pointer;
}
.school-item-wrap.expanded .expand-hint {
  transform: rotate(180deg);
}
.data-meta {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}
/* 两边的data-meta不同 */
.school-item-wrap .school-item {
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  margin: 0;
}

/* ============================================================
   祈福模块样式
   ============================================================ */

.bless-container {
  padding: 12px;
  max-width: 700px;
  margin: 0 auto;
}

/* 每日签文 */
.bless-daily-card {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bless-daily-inner {
  padding: 24px 20px;
  color: white;
  text-align: center;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bless-daily-date {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.bless-daily-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  margin-bottom: 10px;
}

.bless-daily-content {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 8px;
  max-width: 90%;
}

.bless-daily-source {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.bless-daily-wish {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* 功能按钮 */
.bless-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bless-action-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}

.bless-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fortune-btn { background: linear-gradient(135deg, #f59e0b, #f97316); }
.slip-btn { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.wish-btn { background: linear-gradient(135deg, #22c55e, #16a34a); }

/* 考运签卡片 */
.bless-fortune-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 3px solid;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 表单卡片 */
.bless-form-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bless-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.bless-form-field {
  margin-bottom: 10px;
}

.bless-form-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.bless-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #f9fafb;
}

.bless-input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74,108,247,0.1);
}

.bless-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7, #6366f1);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.bless-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 祈福签列表 */
.bless-section {
  margin-bottom: 20px;
}

.bless-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  padding: 0 4px;
}

.bless-slip-item {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bless-empty {
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-size: 14px;
}

.bless-loading {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
}

/* 许愿墙 */
.bless-wish-item {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}

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

.bless-wish-user {
  font-size: 13px;
  color: #4a6cf7;
  font-weight: 500;
}

.bless-wish-time {
  font-size: 11px;
  color: #aaa;
}

.bless-wish-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 6px;
}

.bless-wish-target {
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 6px;
}

.bless-wish-footer {
  display: flex;
  justify-content: flex-end;
}

.bless-wish-likes {
  font-size: 13px;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.bless-wish-likes:hover {
  background: #fef2f2;
}

/* 暗色主题适配 */
[data-theme=dark] .bless-form-card,
[data-theme=dark] .bless-fortune-card,
[data-theme=dark] .bless-wish-item {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme=dark] .bless-form-title,
[data-theme=dark] .bless-section-title {
  color: var(--text-primary);
}

[data-theme=dark] .bless-wish-text {
  color: var(--text-primary);
}

[data-theme=dark] .bless-input {
  background: #1a1a30;
  border-color: #2a2a44;
  color: var(--text-primary);
}
/* =============================================================
   善良的阿良AI - 祈福模块v2.0样式 (超完整版)
   5个区块：倒计时/今日签文/功能按钮/我的签文/许愿墙/成就
   ============================================================ */

/* 主容器 */
.bless-v2 {
  padding: 12px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 通用section卡 */
.bless-section-card {
  background: var(--bg-card, #fff);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bless-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.bsh-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.bsh-count {
  font-size: 12px;
  color: #888;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

.bsh-actions {
  display: flex;
  gap: 6px;
}

/* ===== 1. 高考倒计时 ===== */
.bless-countdown {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bless-cd-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.bless-cd-left {
  flex: 0 0 auto;
}

.bless-cd-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.bless-cd-days {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.bless-cd-days span:first-child {
  font-size: 42px;
}

.bless-cd-right {
  flex: 1;
  text-align: right;
  margin-left: 16px;
}

/* ===== 2. 今日签文 ===== */
.bless-daily-section {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bless-daily-card-v2 {
  color: white;
  padding: 20px;
  position: relative;
}

.bless-daily-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bless-daily-date {
  font-size: 12px;
  opacity: 0.9;
}

.bless-daily-tag {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
}

.bless-daily-content {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 60px;
}

.bless-daily-source {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.bless-daily-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

.bless-daily-wish {
  font-size: 13px;
  opacity: 0.9;
}

.bless-daily-actions {
  display: flex;
  gap: 6px;
}

.bless-mini-btn {
  background: rgba(255,255,255,0.25);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.bless-mini-btn:hover {
  background: rgba(255,255,255,0.4);
}

/* ===== 3. 3个功能按钮 ===== */
.bless-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.bless-action-btn {
  background: var(--bg-card, #fff);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bless-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.ba-icon {
  font-size: 28px;
  line-height: 1;
}

.ba-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ba-desc {
  font-size: 11px;
  color: #888;
}

.fortune-btn { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.slip-btn { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.wish-btn { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

/* ===== 考运签结果 ===== */
.bless-fortune-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  border: 3px solid;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.bless-fortune-header {
  color: white;
  padding: 16px;
  text-align: center;
}

.bless-fortune-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.bless-fortune-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bless-fortune-stars {
  font-size: 14px;
  letter-spacing: 2px;
}

.bless-fortune-body {
  padding: 16px;
}

.bless-fortune-msg {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
}

.bless-fortune-detail {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
  padding: 8px;
  background: #f8f9fc;
  border-radius: 10px;
}

.fortune-detail-item {
  font-size: 12px;
  color: #888;
  text-align: center;
}

.fortune-detail-item span {
  display: block;
  font-size: 14px;
  color: #4a6cf7;
  font-weight: 600;
  margin-top: 2px;
}

.bless-fortune-time {
  text-align: center;
  font-size: 11px;
  color: #aaa;
}

.bless-fortune-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.bless-fortune-actions .bless-mini-btn {
  background: #4a6cf7;
  color: white;
  flex: 1;
  padding: 6px 10px;
}

.bless-fortune-actions .bless-mini-btn:hover {
  background: #3b5de7;
}

/* ===== 通用表单 ===== */
.bless-form-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.bless-form-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.bless-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bless-form-field {
  margin-bottom: 10px;
}

.bless-form-field label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.bless-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #f9fafb;
  font-family: inherit;
}

.bless-input:focus {
  border-color: #4a6cf7;
  background: white;
  box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}

.bless-color-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.color-pill.active {
  border-color: #1e293b;
  transform: scale(1.1);
}

.bless-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.bless-submit-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7, #6366f1);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.bless-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== 4. 我的祈福签 ===== */
.bless-filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.filter-pill, .sort-pill {
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active, .sort-pill.active {
  background: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.bless-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bless-slip-card {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.bsc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.bsc-tag {
  font-size: 10px;
  background: rgba(0,0,0,0.08);
  padding: 1px 8px;
  border-radius: 8px;
}

.bsc-time {
  font-size: 10px;
  opacity: 0.7;
}

.bsc-title {
  font-size: 14px;
  font-weight: 600;
}

.bsc-body {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
  min-height: 30px;
}

.bsc-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  justify-content: flex-end;
}

.bsc-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bsc-mini-btn:hover {
  background: white;
  transform: scale(1.1);
}

/* ===== 5. 许愿墙 ===== */
.bwi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bwi-user {
  font-size: 12px;
  color: #4a6cf7;
  font-weight: 500;
}

.bwi-time {
  font-size: 11px;
  color: #aaa;
}

.bwi-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 6px;
}

.bwi-target {
  font-size: 12px;
  color: #f59e0b;
  background: #fffbeb;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.bwi-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.bwi-like-btn, .bwi-del-btn {
  background: none;
  border: 1px solid #e5e7eb;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.bwi-like-btn:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.bwi-del-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ===== 6. 成就系统 ===== */
.bless-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-mini {
  text-align: center;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 10px 4px;
  border-radius: 10px;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #4a6cf7;
  line-height: 1;
}

.stat-lab {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.bless-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bless-badge {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: help;
  transition: all 0.2s;
}

.bless-badge:hover {
  transform: scale(1.05);
}

.bb-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.bb-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.bb-progress {
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.85;
}

/* 通用空状态 */
.bless-empty {
  text-align: center;
  padding: 24px 16px;
  color: #888;
  font-size: 13px;
}

.bless-loading {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 13px;
}

/* 移动端响应式 */
@media (max-width: 600px) {
  .bless-v2 {
    padding: 8px;
  }
  .bless-section-card {
    padding: 10px;
  }
  .bless-action-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .bless-action-btn {
    padding: 10px 4px;
  }
  .ba-icon {
    font-size: 22px;
  }
  .ba-title {
    font-size: 11px;
  }
  .ba-desc {
    font-size: 9px;
  }
  .bless-cd-inner {
    padding: 12px 14px;
  }
  .bless-cd-days span:first-child {
    font-size: 32px;
  }
  .bless-form-row {
    grid-template-columns: 1fr;
  }
  .bless-stats-row, .bless-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .stat-num {
    font-size: 16px;
  }
  .bless-daily-card-v2 {
    padding: 14px;
  }
  .bless-daily-content {
    font-size: 14px;
  }
}

/* 暗色主题适配 */
[data-theme="dark"] .bless-section-card,
[data-theme="dark"] .bless-fortune-card,
[data-theme="dark"] .bless-form-card,
[data-theme="dark"] .bless-wish-item {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .bsh-title,
[data-theme="dark"] .bless-form-title,
[data-theme="dark"] .bwi-text,
[data-theme="dark"] .bless-fortune-msg {
  color: var(--text-primary);
}

[data-theme="dark"] .filter-pill, [data-theme="dark"] .sort-pill {
  background: #1a1a30;
  color: #aaa;
  border-color: #2a2a44;
}

[data-theme="dark"] .bwi-target {
  background: #1e1b0e;
  color: #fcd34d;
}

[data-theme="dark"] .stat-mini {
  background: linear-gradient(135deg, #1a1a30, #1e1b3a);
}
/* ============================================================
   祈福模块 - 真题训练样式
   ============================================================ */

/* 筛选栏 */
.bless-exam-filters {
  margin-bottom: 10px;
}

.exam-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.exam-select {
  flex: 1;
  min-width: 80px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  background: #f9fafb;
  color: #333;
  outline: none;
  font-family: inherit;
}

.exam-select:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74,108,247,0.1);
}

.exam-filter-row2 {
  display: flex;
  gap: 6px;
}

.exam-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  background: #f9fafb;
  font-family: inherit;
}

.exam-input:focus {
  border-color: #4a6cf7;
}

.exam-search-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: #4a6cf7;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.exam-search-btn:hover {
  background: #3b5de7;
}

.exam-search-btn.alt {
  background: #8b5cf6;
}

.exam-search-btn.alt:hover {
  background: #7c3aed;
}

/* 题目卡片 */
.exam-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-q-item {
  background: var(--bg-card, #fff);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.exam-q-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.exam-q-school {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.exam-q-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary, #333);
  margin-bottom: 8px;
  padding: 8px;
  background: #f8f9fc;
  border-radius: 8px;
}

.exam-q-actions {
  display: flex;
  gap: 6px;
}

.exam-ans-btn, .exam-share-btn {
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.exam-ans-btn {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.exam-ans-btn:hover {
  background: #dcfce7;
}

.exam-share-btn:hover {
  background: #f0f0f0;
}

/* 暗色主题适配 */
[data-theme="dark"] .exam-select,
[data-theme="dark"] .exam-input {
  background: #1a1a30;
  color: var(--text-primary);
  border-color: #2a2a44;
}

[data-theme="dark"] .exam-q-item {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .exam-q-text {
  background: #1a1a30;
}

[data-theme="dark"] .exam-q-school {
  color: var(--text-primary);
}

[data-theme="dark"] .exam-ans-btn {
  background: #052e16;
  border-color: #166534;
  color: #4ade80;
}

[data-theme="dark"] .exam-ans-btn:hover {
  background: #0a3d1a;
}

[data-theme="dark"] .exam-share-btn {
  background: #1a1a30;
  border-color: #2a2a44;
  color: #aaa;
}

/* 移动端 */
@media (max-width: 600px) {
  .exam-filter-group {
    gap: 4px;
  }
  .exam-select {
    min-width: 60px;
    font-size: 11px;
    padding: 5px 6px;
  }
  .exam-q-header {
    gap: 4px;
    font-size: 12px;
  }
  .exam-q-text {
    font-size: 13px;
    padding: 6px;
  }
}
/* ============================================================
   折叠/展开
   ============================================================ */
.collapsible-header {
  cursor: pointer;
  user-select: none;
}
.collapsible-header:hover {
  opacity: 0.8;
}
.collapse-icon {
  font-size: 10px;
  color: #888;
  transition: transform 0.2s;
  display: inline-block;
}
.collapsible-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.collapsible-body.expanded {
  max-height: 10000px;
}
