/* ===== 状态栏 + 顶部应用栏 ===== */
.status-bar-spacer {
  height: var(--status-bar-h);
  background: var(--dark-bg);
  flex-shrink: 0;
}

.app-bar {
  height: var(--appbar-h);
  background: linear-gradient(180deg, rgba(19, 47, 76, 0.98), rgba(10, 25, 41, 0.95));
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 100;
}

.app-bar-left { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 204, 255, 0.3);
}

.app-bar-title h1 {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #00CCFF, #0066CC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.app-bar-title p {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.app-bar-user { display: flex; align-items: center; gap: 10px; }

.user-info { text-align: right; }

.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== 卡片 ===== */
.card {
  background: var(--gradient-card);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--border-soft);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:active { transform: scale(0.99); border-color: var(--border-glow); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title-icon { color: var(--accent-blue); font-size: 16px; }

.card-subtitle { color: var(--text-gray); font-size: 11px; }

/* ===== 指标卡 ===== */
.metric-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.metric-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.metric-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.metric-card {
  text-align: center;
  padding: 14px 8px;
  background: var(--gradient-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.metric-card:active { transform: scale(0.96); }

.metric-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: pulseGlow 2s infinite;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.2;
}

.metric-label {
  color: var(--text-gray);
  font-size: 11px;
  margin-top: 4px;
}

.metric-change {
  font-size: 10px;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-block;
}

.metric-change.positive { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.metric-change.negative { background: rgba(244, 67, 54, 0.15); color: var(--danger); }

/* ===== 按钮 ===== */
.btn {
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: scale(0.95); }

.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3); }
.btn-accent { background: var(--gradient-accent); color: white; }
.btn-gold { background: var(--gradient-gold); color: #1a1a1a; font-weight: 700; }
.btn-outline { background: transparent; color: var(--accent-blue); border: 1px solid var(--accent-blue); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text-light); border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-danger { background: rgba(244, 67, 54, 0.15); color: var(--danger); }

.btn-block { width: 100%; }

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

.tag-high { background: rgba(0, 200, 83, 0.18); color: var(--success); }
.tag-medium { background: rgba(255, 152, 0, 0.18); color: var(--warning); }
.tag-low { background: rgba(244, 67, 54, 0.18); color: var(--danger); }
.tag-pending { background: rgba(0, 136, 255, 0.18); color: var(--accent-blue); }
.tag-gold { background: var(--gradient-gold-soft); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.3); }
.tag-info { background: rgba(0, 136, 255, 0.1); color: var(--accent-blue); }

/* ===== 通知栏 ===== */
.notice-bar {
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.13), rgba(0, 204, 255, 0.07));
  border: 1px solid rgba(0, 204, 255, 0.13);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.5s ease;
}

.notice-bar-icon { font-size: 20px; animation: float 2s ease-in-out infinite; }
.notice-bar-content { flex: 1; min-width: 0; }
.notice-bar-title { font-weight: 600; font-size: 13px; }
.notice-bar-desc { font-size: 11px; color: var(--text-gray); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 快捷入口 ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-item {
  padding: 12px 4px;
  background: var(--gradient-card);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: all 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

.quick-item:active { transform: scale(0.92); border-color: var(--border-glow); }

.quick-item-icon { font-size: 24px; display: block; margin-bottom: 6px; animation: float 3s ease-in-out infinite; }
.quick-item-title { font-size: 11px; font-weight: 600; }
.quick-item-desc { font-size: 9px; color: var(--text-dim); margin-top: 2px; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 16px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary-blue), var(--accent-blue));
}

.timeline-item { position: relative; padding: 8px 0 8px 16px; animation: fadeInUp 0.5s ease both; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px rgba(0, 204, 255, 0.6);
  animation: pulseGlow 2s infinite;
}

.timeline-date { font-size: 11px; color: var(--accent-blue); margin-bottom: 2px; }
.timeline-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.timeline-desc { font-size: 11px; color: var(--text-gray); }

/* ===== 洞察项 ===== */
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.13);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  border-left: 3px solid var(--accent-blue);
  transition: all 0.2s ease;
}

.insight-item:active { background: rgba(0, 136, 255, 0.08); transform: translateX(2px); }

.insight-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.insight-content { flex: 1; }
.insight-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.insight-desc { font-size: 11px; color: var(--text-gray); line-height: 1.5; }
.insight-action { font-size: 11px; color: var(--accent-blue); margin-top: 6px; }

/* ===== 项目卡 ===== */
.project-card {
  background: var(--gradient-card);
  border-radius: var(--r-sm);
  padding: 12px;
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
  animation: fadeInScale 0.4s ease both;
}

.project-card:active { transform: scale(0.98); }

.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.project-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.project-category { font-size: 10px; color: var(--accent-blue); padding: 2px 6px; background: rgba(0, 204, 255, 0.1); border-radius: 4px; }
.project-amount { font-size: 18px; font-weight: 700; color: var(--gold); margin: 8px 0; }
.project-desc { font-size: 11px; color: var(--text-gray); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); line-height: 1.5; }

/* ===== 进度条 ===== */
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-info { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text-gray); }

/* ===== 圆环进度 ===== */
.ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

/* ===== 工作流步骤 ===== */
.workflow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 14px 0;
}

.workflow-line {
  position: absolute;
  top: 27px;
  left: 35px;
  right: 35px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  background-size: 200% 200%;
  animation: flowLight 3s ease infinite;
}

.workflow-step { display: flex; flex-direction: column; align-items: center; z-index: 2; width: 70px; }
.workflow-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--accent-blue);
  font-size: 16px;
  transition: all 0.3s ease;
}

.workflow-step.active .workflow-step-icon {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 204, 255, 0.5);
  animation: pulseGlow 2s infinite;
}

.workflow-step-title { font-size: 11px; font-weight: 600; text-align: center; }
.workflow-step.active .workflow-step-title { color: var(--accent-blue); }

/* ===== 任务项 ===== */
.todo-item {
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease both;
}

.todo-item.done { opacity: 0.6; }
.todo-item.done .todo-title { text-decoration: line-through; }

.todo-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--success);
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.todo-checkbox.checked { border-color: var(--success); background: rgba(0, 200, 83, 0.2); }

.todo-content { flex: 1; min-width: 0; }
.todo-title { font-size: 13px; font-weight: 600; }
.todo-meta { font-size: 10px; color: var(--text-dim); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.todo-meta .tag { font-size: 9px; padding: 1px 5px; }

/* ===== 捐赠方卡 ===== */
.donor-card {
  padding: 14px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.donor-card:active { transform: scale(0.98); }

.donor-header { display: flex; justify-content: space-between; align-items: flex-start; }
.donor-name { font-size: 14px; font-weight: 600; }
.donor-meta { font-size: 11px; color: var(--text-gray); margin-top: 4px; }
.donor-intent { color: var(--gold); font-weight: 600; }
.donor-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.donor-handler { font-size: 10px; color: var(--text-gray); }

/* ===== AI工作台 ===== */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header-card {
  margin: 0 0 12px 0;
  padding: 14px 16px;
  background: var(--gradient-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}

.chat-header-info-title { font-size: 14px; font-weight: 600; }
.chat-header-info-desc { font-size: 10px; color: var(--text-gray); margin-top: 2px; }

.chat-progress {
  background: var(--gradient-card);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}

.chat-progress-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.chat-progress-label-left { color: var(--accent-blue); }
.chat-progress-label-right { color: var(--text-gray); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.message {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  animation: fadeInUp 0.4s ease;
}

.message.ai { align-self: flex-start; }
.message.user { align-self: flex-end; align-items: flex-end; margin-left: auto; }

.message-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
}

.message.ai .message-bubble {
  background: linear-gradient(135deg, rgba(30, 73, 118, 0.9), rgba(19, 47, 76, 0.95));
  border: 1px solid rgba(0, 136, 255, 0.15);
  border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
  background: var(--gradient-primary);
  border-bottom-right-radius: 4px;
}

.message-bubble strong { color: var(--accent-blue); }
.message-bubble em { color: var(--text-gray); font-style: normal; }

.thinking-dots { display: flex; gap: 6px; padding: 4px 0; }
.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: dotBounce 1.4s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

/* 输入区 */
.chat-input-area {
  background: var(--gradient-card);
  border-top: 1px solid var(--border-soft);
  padding: 10px 12px;
  padding-bottom: calc(10px + var(--safe-bottom));
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-light);
  font-size: 13px;
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.chat-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 10px rgba(0, 204, 255, 0.15); }
.chat-input::placeholder { color: var(--text-dim); }

.send-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.send-btn:active { transform: scale(0.9); }
.send-btn.sending { opacity: 0.6; }
.send-btn.gold { background: var(--gradient-gold); color: #1a1a1a; }

/* 引导标签 */
.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.guide-tag {
  padding: 5px 10px;
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 14px;
  font-size: 11px;
  color: var(--accent-blue);
  transition: all 0.2s ease;
  cursor: pointer;
}

.guide-tag:active { background: rgba(0, 204, 255, 0.25); transform: scale(0.95); }

/* 案例选择提示 */
.case-hint {
  font-size: 11px;
  color: var(--accent-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 结果弹窗 ===== */
.score-display {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
}

.score-item { text-align: center; animation: fadeInScale 0.5s ease both; }
.score-item:nth-child(2) { animation-delay: 0.1s; }
.score-item:nth-child(3) { animation-delay: 0.2s; }

.score-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0deg, rgba(255, 255, 255, 0.08) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  transition: background 1s ease;
  animation: pulseGlow 3s infinite;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 47, 76, 0.95), rgba(30, 73, 118, 0.9));
}

.score-number {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.score-label { font-size: 11px; color: var(--text-gray); }

.radar-wrap { width: 100%; height: 280px; margin: 16px 0; }

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  animation: fadeInUp 0.4s ease both;
}

.score-bar-label { font-size: 12px; color: var(--text-gray); width: 80px; flex-shrink: 0; }
.score-bar-track { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--gradient-accent); border-radius: 4px; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.score-bar-num { font-size: 12px; font-weight: 600; color: var(--accent-blue); width: 30px; text-align: right; }

.jia-tag {
  padding: 10px 12px;
  background: var(--gradient-jia);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  animation: fadeInUp 0.5s ease both;
}

.jia-tag-title { color: var(--gold); font-weight: 600; font-size: 11px; margin-bottom: 4px; }
.jia-tag-value { font-size: 12px; }

.strategy-item, .next-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-gray);
  animation: fadeInUp 0.4s ease both;
}

.strategy-item::before { content: '◆ '; color: var(--accent-blue); }
.next-item::before { content: '▶ '; color: var(--gold); }

/* ===== 评分卡 ===== */
.kpi-card {
  padding: 12px;
  background: var(--gradient-jia);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  margin-bottom: 8px;
}

.kpi-title { color: var(--gold); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.kpi-desc { font-size: 12px; color: var(--text-light); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  background: rgba(19, 47, 76, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 13px;
  z-index: 9999;
  animation: fadeInScale 0.2s ease;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}

/* ===== 全局弹窗 ===== */
.global-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--gradient-card);
  border-top: 1px solid var(--border-glow);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  padding-bottom: calc(20px + var(--safe-bottom));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-close {
  font-size: 22px;
  color: var(--text-gray);
  padding: 4px 10px;
  cursor: pointer;
}

.case-option {
  padding: 14px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 204, 255, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-option:active { transform: scale(0.98); border-color: var(--accent-blue); }
.case-option-name { font-size: 14px; font-weight: 600; }
.case-option-desc { font-size: 11px; color: var(--text-gray); margin-top: 4px; }
.case-option-amount { font-size: 14px; font-weight: 700; color: var(--gold); }

/* ===== 知识库列表 ===== */
.kb-item {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.kb-item:active { border-color: var(--border-glow); transform: scale(0.99); }
.kb-item-title { font-size: 13px; font-weight: 600; }
.kb-item-meta { font-size: 11px; color: var(--text-gray); margin-top: 2px; }

/* ===== 组织架构节点 ===== */
.org-node {
  padding: 10px 14px;
  background: var(--gradient-card);
  border-radius: var(--r-sm);
  border: 2px solid var(--primary-blue);
  text-align: center;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-node.primary { border-color: var(--accent-blue); background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 204, 255, 0.1)); }
.org-node:active { transform: scale(0.98); }
.org-node-title { font-size: 13px; font-weight: 600; color: var(--accent-blue); }
.org-node-sub { font-size: 10px; color: var(--text-gray); margin-top: 2px; }

/* ===== 粒子背景 ===== */
.particle-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 204, 255, 0.4);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* 工具按钮组 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tool-btn {
  padding: 14px 8px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 204, 255, 0.1));
  border: 1px solid rgba(0, 136, 255, 0.2);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:active { transform: scale(0.95); border-color: var(--border-glow); }
.tool-btn-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.tool-btn-label { font-size: 11px; font-weight: 600; }
.tool-btn-sub { font-size: 9px; color: var(--text-dim); margin-top: 2px; }

/* 切换Tab */
.tab-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--gradient-card);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border-soft);
}

.tab-toggle-item {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-toggle-item.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}
