/* ==========  AI原生银行 · 交互Demo 样式  ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #F5F7FB 0%, #E8EDF5 100%);
  min-height: 100vh;
  color: #1A1F36;
  overflow-x: auto;
}
.hidden { display: none !important; }

/* === 顶部 === */
.app-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #185FA5 0%, #6B5BD6 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(24, 95, 165, 0.18);
}
.logo { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.logo span { font-size: 11px; opacity: 0.75; margin-left: 6px; font-weight: 400; }
.tag { background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 10px; font-size: 11px; }
.scene { margin-left: auto; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.scene-dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* === 控制栏 === */
.controlbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #EEF1F6;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.ctrl-btn {
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
  background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff;
}
.ctrl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107, 91, 214, 0.3); }
.ctrl-btn.outline { background: #fff; color: #185FA5; border: 1px solid #D1DAE8; }
.ctrl-btn.outline:hover { background: #F5F7FB; }
.ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.step-indicator { display: flex; gap: 4px; margin-left: 16px; }
.step-dot {
  width: 24px; height: 4px; background: #E5E7EB; border-radius: 2px; transition: all 0.3s;
}
.step-dot.active { background: linear-gradient(90deg, #185FA5, #6B5BD6); width: 36px; }
.step-dot.done { background: #0F6E56; }
.step-label { margin-left: auto; font-size: 12px; color: #6B7280; font-weight: 500; }

/* === 舞台 === */
.stage {
  display: flex; gap: 24px;
  padding: 24px;
  align-items: flex-start;
  min-width: 1400px;
}

/* === 手机壳 === */
.phone {
  width: 380px; flex-shrink: 0;
  background: #1F2937;
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.35), 0 0 0 2px #374151;
  position: relative;
}
.phone-label {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: #6B7280; font-weight: 600; white-space: nowrap;
}
.notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #1F2937; border-radius: 0 0 14px 14px; z-index: 30;
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 22px 4px;
  font-size: 12px; color: #fff; font-weight: 600;
  background: #1F2937;
}
.phone-screen {
  background: #F5F7FB;
  border-radius: 28px;
  height: 720px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* C端导航 */
.cnav {
  background: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #EEF1F6;
}
.cnav-back { font-size: 18px; color: #185FA5; cursor: pointer; }
.cnav-title { flex: 1; }
.cnav-name { font-size: 14px; font-weight: 700; color: #1A1F36; }
.cnav-sub { font-size: 10px; color: #9CA3AF; margin-top: 2px; }
.transfer-btn {
  background: #F5F7FB; padding: 6px 10px; border-radius: 12px; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.transfer-btn.flash { background: #FEE2E2; animation: flash 0.6s 3; }
@keyframes flash { 50% { background: #FCA5A5; transform: scale(1.05); } }

/* 首页 */
.home-screen { flex: 1; overflow-y: auto; padding: 14px; }
.home-greet { padding: 4px 4px 14px; }
.greet-hi { font-size: 13px; color: #6B7280; }
.greet-name { font-size: 22px; font-weight: 700; background: linear-gradient(90deg, #185FA5, #6B5BD6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-top: 2px; }
.greet-tip { font-size: 11px; color: #6B7280; margin-top: 6px; }

.health-card {
  background: linear-gradient(135deg, #185FA5 0%, #6B5BD6 100%);
  color: #fff; padding: 16px; border-radius: 16px;
  margin-bottom: 14px; box-shadow: 0 8px 20px rgba(107, 91, 214, 0.25);
}
.health-row { display: flex; justify-content: space-between; align-items: flex-end; }
.health-score { font-size: 36px; font-weight: 700; line-height: 1; }
.health-lbl { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.health-trend { font-size: 11px; opacity: 0.85; }
.health-bar { display: flex; height: 6px; background: rgba(255,255,255,0.2); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.hb-seg { height: 100%; }

.feed-title { font-size: 12px; font-weight: 700; color: #1A1F36; margin: 6px 4px 10px; }
.feed-card {
  display: flex; gap: 10px; padding: 12px;
  background: #fff; border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer; transition: all 0.2s;
}
.feed-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.feed-card.highlight {
  border: 1.5px solid #6B5BD6;
  background: linear-gradient(135deg, #F0EDFB 0%, #fff 60%);
  animation: glow 2.4s infinite;
}
@keyframes glow { 0%,100%{box-shadow:0 2px 6px rgba(107,91,214,0.15)} 50%{box-shadow:0 6px 18px rgba(107,91,214,0.4)} }
.feed-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #6B5BD6, #185FA5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.feed-icon.blue { background: linear-gradient(135deg, #3B82F6, #185FA5); }
.feed-icon.green { background: linear-gradient(135deg, #10B981, #0F6E56); }
.feed-icon.amber { background: linear-gradient(135deg, #F59E0B, #BA7517); }
.feed-c { flex: 1; min-width: 0; }
.feed-h { font-size: 13px; font-weight: 600; color: #1A1F36; }
.feed-d { font-size: 11px; color: #6B7280; margin-top: 4px; line-height: 1.5; }
.feed-cta {
  display: inline-block; margin-top: 8px;
  padding: 4px 10px; background: #6B5BD6; color: #fff;
  font-size: 11px; border-radius: 8px; font-weight: 600;
}

/* 对话视图 */
.chat-screen {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: #F5F7FB;
}
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.55;
  animation: bubbleIn 0.32s ease;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai {
  align-self: flex-start; background: #fff; color: #1A1F36;
  border-bottom-left-radius: 4px; border: 1px solid #EEF1F6;
}
.bubble.thinking {
  align-self: flex-start; background: #F0EDFB; color: #534AB7;
  border-bottom-left-radius: 4px; padding: 12px 14px;
  font-size: 12px;
}
.thinking-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.thinking-spinner {
  width: 12px; height: 12px; border: 2px solid #D1C7F0; border-top-color: #6B5BD6;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.thinking-row.done .thinking-spinner { border: none; background: transparent; }
.thinking-row.done .thinking-spinner::before { content: '✓'; color: #0F6E56; font-weight: bold; }
.tool-tag {
  display: inline-block; background: #fff; color: #6B5BD6;
  padding: 2px 8px; border-radius: 6px; font-size: 11px;
  border: 1px solid #D1C7F0; margin: 2px;
}
.plan-card {
  background: #fff; border-radius: 14px; padding: 14px;
  border: 1px solid #EEF1F6;
  align-self: stretch;
  animation: bubbleIn 0.4s ease;
}
.plan-h { font-size: 13px; font-weight: 700; color: #185FA5; margin-bottom: 8px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-cell {
  background: linear-gradient(135deg, #F5F7FB, #fff);
  padding: 8px 10px; border-radius: 10px; border: 1px solid #EEF1F6;
}
.plan-cell .pl-l { font-size: 10px; color: #6B7280; }
.plan-cell .pl-v { font-size: 13px; font-weight: 700; color: #1A1F36; margin-top: 2px; }
.plan-cell.hl .pl-v { color: #6B5BD6; }
.plan-actions { display: flex; gap: 6px; margin-top: 10px; }
.plan-btn { flex: 1; padding: 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; text-align: center; cursor: pointer; }
.plan-btn.primary { background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; }
.plan-btn.outline { background: #fff; color: #185FA5; border: 1px solid #D1DAE8; }

/* 输入区 */
.input-area {
  display: flex; gap: 8px; padding: 8px 14px 12px;
  background: #fff; border-top: 1px solid #EEF1F6;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F5F7FB; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #6B7280; cursor: pointer;
}
.icon-btn.send { background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; }
.input-box {
  flex: 1; height: 36px; border-radius: 18px; background: #F5F7FB;
  display: flex; align-items: center; padding: 0 14px;
  font-size: 12px; color: #9CA3AF;
}

/* 反诈弹窗 */
.fraud-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 50;
  display: none; align-items: center; justify-content: center; padding: 20px;
  border-radius: 28px;
}
.fraud-overlay.show { display: flex; animation: bubbleIn 0.3s ease; }
.fraud-modal {
  background: #fff; border-radius: 18px; padding: 22px 18px;
  border-top: 4px solid #DC2626; max-width: 320px;
}
.fraud-icon { font-size: 36px; text-align: center; margin-bottom: 10px; }
.fraud-h { text-align: center; font-size: 16px; font-weight: 700; color: #DC2626; }
.fraud-s { text-align: center; font-size: 12px; color: #6B7280; margin: 6px 0 14px; }
.fraud-list { background: #FEF2F2; padding: 10px; border-radius: 10px; font-size: 11.5px; color: #991B1B; line-height: 1.7; }
.action-row { display: flex; gap: 8px; margin-top: 14px; }
.btn { flex: 1; padding: 9px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; }
.btn-outline { background: #fff; color: #185FA5; border: 1px solid #D1DAE8; }

/* === RM 端 PC 框架 === */
.pc-frame {
  flex: 1; min-width: 880px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.18);
  overflow: hidden;
  position: relative;
}
.pc-label { position: absolute; top: -28px; left: 0; font-size: 11px; color: #6B7280; font-weight: 600; }
.pc-bar {
  background: #E5E7EB; padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
}
.pc-dot { width: 11px; height: 11px; border-radius: 50%; }
.pc-dot.r { background: #EF4444; } .pc-dot.y { background: #F59E0B; } .pc-dot.g { background: #10B981; }
.pc-url {
  flex: 1; background: #fff; border-radius: 6px; padding: 4px 12px;
  font-size: 11px; color: #6B7280; margin-left: 12px; max-width: 380px;
}
.rm-app { display: flex; height: 728px; }
.rm-side {
  width: 200px; background: #1A1F36; color: #B8C5D6;
  padding: 18px 0; display: flex; flex-direction: column;
}
.rm-logo { padding: 0 18px 18px; font-size: 14px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rm-logo span { font-size: 10px; opacity: 0.6; font-weight: 400; }
.rm-menu { flex: 1; padding-top: 12px; }
.rm-mi {
  padding: 10px 18px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.rm-mi:hover { background: rgba(255,255,255,0.05); }
.rm-mi.active { background: rgba(107,91,214,0.18); color: #fff; border-left-color: #6B5BD6; }
.rm-mi .ico { font-size: 14px; }
.rm-user {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.rm-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, #185FA5, #6B5BD6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }

.rm-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.rm-top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid #EEF1F6; background: #fff;
}
.rm-top h1 { font-size: 17px; font-weight: 700; color: #1A1F36; }
.rm-search {
  flex: 1; max-width: 480px; background: #F5F7FB; border-radius: 8px;
  padding: 7px 12px; font-size: 12px; color: #6B7280;
}
.rm-bell { position: relative; font-size: 18px; cursor: pointer; }
.badge {
  position: absolute; top: -4px; right: -8px;
  background: #DC2626; color: #fff;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.rm-content { flex: 1; padding: 20px 22px; overflow-y: auto; }

/* 工作台 KPI */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-card { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #EEF1F6; }
.kpi-l { font-size: 11px; color: #6B7280; }
.kpi-v { font-size: 24px; font-weight: 700; color: #1A1F36; margin-top: 6px; }
.kpi-t { font-size: 11px; color: #6B7280; margin-top: 4px; }
.kpi-t.warn { color: #BA7517; }

.alert-section { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #EEF1F6; margin-bottom: 14px; }
.sec-h {
  font-size: 13px; font-weight: 700; color: #1A1F36; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ai-tag { background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 10px; }
.alert-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; cursor: pointer;
  transition: all 0.2s;
}
.alert-row:hover { transform: translateX(2px); }
.alert-row.opp { background: #F0FDF4; border-left: 3px solid #10B981; }
.alert-row.churn { background: #FFFBEB; border-left: 3px solid #F59E0B; }
.alert-row.risk { background: #FEF2F2; border-left: 3px solid #DC2626; }
.alert-row.glow-it { animation: warnPulse 1.5s 2; }
@keyframes warnPulse { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 0 4px rgba(16,185,129,0.3)} }
.alert-icon { font-size: 18px; }
.alert-c { flex: 1; }
.alert-h { font-size: 12.5px; font-weight: 600; color: #1A1F36; }
.alert-d { font-size: 11px; color: #6B7280; margin-top: 2px; }
.alert-score { background: #fff; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #185FA5; }

.tag {
  display: inline-block; background: #F5F7FB; color: #6B7280;
  padding: 2px 8px; border-radius: 6px; font-size: 10px; margin-right: 4px;
}
.tag.green { background: #ECFDF5; color: #0F6E56; }

/* C360 */
.cust-head {
  display: flex; gap: 16px; padding: 18px;
  background: linear-gradient(135deg, #F0EDFB 0%, #fff 60%);
  border-radius: 14px; margin-bottom: 14px;
  border: 1px solid #EEF1F6;
}
.cust-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.cust-name { font-size: 17px; font-weight: 700; color: #1A1F36; }
.cust-meta { font-size: 12px; color: #6B7280; margin-top: 4px; }
.cust-tags { margin-top: 8px; }

.ai-story-card {
  background: linear-gradient(135deg, #F0EDFB, #E8EDF5);
  padding: 14px 16px; border-radius: 12px; margin-bottom: 14px;
  border-left: 4px solid #6B5BD6;
}
.story-title { font-size: 12.5px; font-weight: 700; color: #534AB7; margin-bottom: 6px; }
.story-body { font-size: 12px; line-height: 1.7; color: #1A1F36; }

.c360 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c360-card { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid #EEF1F6; }
.asset-pie { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pie-svg { width: 110px; height: 110px; flex-shrink: 0; }
.pie-legend { flex: 1; font-size: 11px; line-height: 1.9; }
.pl-d { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.timeline-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px dashed #EEF1F6;
  font-size: 12px;
}
.timeline-item:last-child { border-bottom: none; }
.tl-date { color: #9CA3AF; font-size: 11px; min-width: 40px; }
.tl-tag { background: #F0EDFB; color: #534AB7; padding: 1px 6px; border-radius: 4px; font-size: 10px; }
.tl-text { flex: 1; }

/* Copilot 见客副驾驶 */
.copilot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; height: 100%; }
.live-card { background: #fff; border-radius: 12px; border: 1px solid #EEF1F6; padding: 14px; display: flex; flex-direction: column; }
.live-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #EEF1F6; }
.rec-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #DC2626; font-weight: 600; }
.rec-dot { width: 8px; height: 8px; background: #DC2626; border-radius: 50%; animation: pulse 1.2s infinite; }

.transcript {
  flex: 1; overflow-y: auto; padding-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.tr-item { display: flex; gap: 10px; animation: bubbleIn 0.3s ease; }
.tr-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.tr-avatar.cust { background: linear-gradient(135deg, #6B5BD6, #185FA5); }
.tr-avatar.rm { background: linear-gradient(135deg, #0F6E56, #10B981); }
.tr-body { flex: 1; }
.tr-name { font-size: 11px; color: #6B7280; font-weight: 600; }
.tr-text { font-size: 12.5px; line-height: 1.6; color: #1A1F36; margin-top: 2px; }
.tr-text.warn { background: #FEF2F2; padding: 6px 10px; border-radius: 8px; border-left: 3px solid #DC2626; }

.copilot-side { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.cop-card { background: #fff; padding: 12px 14px; border-radius: 10px; border: 1px solid #EEF1F6; }
.cop-card.warn-card {
  background: #FEF2F2; border-color: #FCA5A5; border-left: 4px solid #DC2626;
  animation: warnPop 0.5s ease;
}
@keyframes warnPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cop-h { font-size: 12px; font-weight: 700; color: #1A1F36; margin-bottom: 8px; }
.cop-card.warn-card .cop-h { color: #991B1B; }
.cop-body { font-size: 11.5px; line-height: 1.65; color: #444; }
.cop-suggest {
  background: #fff; padding: 8px 10px; border-radius: 6px; margin-top: 8px;
  font-size: 11.5px; line-height: 1.6; color: #1A1F36;
  border-left: 3px solid #6B5BD6;
}
.product-card-side .pc-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  font-size: 11.5px; border-bottom: 1px dashed #EEF1F6;
}
.product-card-side .pc-row:last-child { border-bottom: none; }

/* 智能尽调 */
.dd-progress { background: #fff; border-radius: 12px; padding: 16px 18px; border: 1px solid #EEF1F6; margin-bottom: 14px; }
.dd-comp { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #EEF1F6; }
.dd-logo {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #BA7517, #F59E0B); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.dd-cname { font-size: 15px; font-weight: 700; color: #1A1F36; }
.dd-cmeta { font-size: 11px; color: #6B7280; margin-top: 4px; }
.dd-cmeta span { margin-right: 10px; }
.dd-score { margin-left: auto; text-align: center; }
.dd-score-num { font-size: 28px; font-weight: 700; color: #BA7517; line-height: 1; }
.dd-score-lbl { font-size: 11px; color: #6B7280; margin-top: 4px; }

.dd-steps { display: flex; gap: 8px; }
.dd-step {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  background: #F5F7FB; border: 1px solid #EEF1F6;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #9CA3AF; transition: all 0.3s;
}
.dd-step.active {
  background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff; border-color: transparent;
  animation: pulse 1.5s infinite;
}
.dd-step.done { background: #ECFDF5; color: #0F6E56; border-color: #A7F3D0; }
.ds-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.dd-step.active .ds-icon { background: rgba(255,255,255,0.4); }
.dd-step.done .ds-icon { background: #0F6E56; color: #fff; }

.dd-report { background: #fff; border-radius: 12px; padding: 22px 26px; border: 1px solid #EEF1F6; }
.dd-rh { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid #185FA5; margin-bottom: 16px; }
.dd-rh h2 { font-size: 17px; color: #1A1F36; }
.dd-rh-sub { font-size: 11px; color: #6B7280; margin-top: 4px; }
.dd-stamp {
  background: #F0EDFB; color: #534AB7; padding: 4px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600;
}
.dd-section { margin-bottom: 14px; animation: bubbleIn 0.4s ease; }
.dd-section h3 { font-size: 13px; color: #185FA5; margin-bottom: 8px; padding-left: 8px; border-left: 3px solid #185FA5; }
.dd-section p, .dd-section li { font-size: 12.5px; line-height: 1.7; color: #1A1F36; }
.dd-section ul { padding-left: 18px; margin-top: 4px; }
.dd-section .risk-tag { color: #DC2626; font-weight: 600; }
.cite { color: #185FA5; font-size: 10px; vertical-align: super; cursor: pointer; }

/* 转人工 Toast */
.escalate-toast {
  position: absolute; bottom: 20px; right: 20px;
  background: linear-gradient(135deg, #185FA5, #6B5BD6); color: #fff;
  padding: 12px 16px; border-radius: 10px; max-width: 320px;
  box-shadow: 0 12px 30px rgba(107,91,214,0.4);
  display: none; animation: slideInRight 0.4s ease;
}
@keyframes slideInRight { from { transform: translateX(120%); } to { transform: translateX(0); } }
.escalate-toast.show { display: block; }
.et-h { font-size: 13px; font-weight: 700; }
.et-d { font-size: 11px; opacity: 0.92; margin-top: 4px; line-height: 1.5; }

/* 字幕 */
.subtitle-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(26, 31, 54, 0.92); color: #fff;
  padding: 10px 22px; border-radius: 24px;
  font-size: 13px; max-width: 60%; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 200;
  display: none;
}
.subtitle-bar.show { display: block; animation: bubbleIn 0.3s ease; }

/* ==========================================================
   演示资料包 · 抽屉式面板（Docs Drawer）
   ========================================================== */

/* 顶部入口按钮 */
.docs-entry {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
  backdrop-filter: blur(6px);
}
.docs-entry:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }

/* 遮罩 */
.docs-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.docs-mask.show { opacity: 1; pointer-events: auto; }

/* 抽屉本体 */
.docs-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 900px; max-width: 92vw; height: 100vh;
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
  z-index: 999;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.docs-drawer.show { transform: translateX(0); }

/* 抽屉头部 */
.docs-head {
  display: flex; align-items: center;
  padding: 18px 24px;
  background: linear-gradient(90deg, #185FA5 0%, #6B5BD6 100%);
  color: #fff;
  flex-shrink: 0;
}
.docs-title { font-size: 17px; font-weight: 700; }
.docs-sub {
  font-size: 11.5px; font-weight: 400; opacity: 0.78;
  margin-left: 10px; padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.3);
}
.docs-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.docs-close:hover { background: rgba(255,255,255,0.32); }

/* Tab 栏 */
.docs-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  background: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
  overflow-x: auto;
}
.docs-tab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.docs-tab:hover { color: #185FA5; }
.docs-tab.active {
  color: #185FA5;
  border-bottom-color: #6B5BD6;
  background: #fff;
}

/* 主体 */
.docs-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background: #FAFBFD;
}
.docs-pane { display: none; }
.docs-pane.active { display: block; animation: paneIn 0.3s ease; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 工具条 */
.pane-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEF1F6;
}
.pane-title { font-size: 16px; font-weight: 700; color: #1A1F36; }
.pane-actions { display: flex; gap: 8px; align-items: center; }
.pane-hint { font-size: 12px; color: #9CA3AF; }
.pane-btn {
  background: #fff;
  border: 1px solid #D1DAE8;
  color: #185FA5;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.18s;
}
.pane-btn:hover { background: #F5F7FB; border-color: #185FA5; }

/* ====== 总览 ====== */
.ov-hero {
  background: linear-gradient(135deg, #185FA5 0%, #6B5BD6 100%);
  color: #fff;
  padding: 22px 24px;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(107, 91, 214, 0.22);
}
.ov-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  margin-bottom: 10px;
}
.ov-hero-h { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ov-hero-d { font-size: 13px; line-height: 1.7; opacity: 0.92; }
.ov-hero-d b { color: #FFE8B0; }

.ov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ov-card {
  background: #fff;
  border: 1px solid #EEF1F6;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ov-card:hover {
  border-color: #6B5BD6;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(107, 91, 214, 0.15);
}
.ov-card.highlight {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFEFD6 100%);
  border-color: #F2C078;
  cursor: default;
}
.ov-card.highlight:hover { transform: none; box-shadow: none; }
.ov-ico { font-size: 28px; margin-bottom: 8px; }
.ov-h { font-size: 15px; font-weight: 700; color: #1A1F36; margin-bottom: 6px; }
.ov-d { font-size: 12.5px; color: #6B7280; line-height: 1.6; margin-bottom: 10px; }
.ov-cta { font-size: 12px; color: #6B5BD6; font-weight: 600; }
.ov-card.highlight .ov-cta { color: #BA7517; }

/* ====== Markdown 文档样式 ====== */
.md-content {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  border: 1px solid #EEF1F6;
  font-size: 13.5px;
  line-height: 1.75;
  color: #1F2937;
}
.md-content h1 {
  font-size: 22px;
  border-bottom: 2px solid #185FA5;
  padding-bottom: 10px;
  margin: 0 0 16px;
  color: #185FA5;
}
.md-content h2 {
  font-size: 17px;
  margin: 26px 0 12px;
  padding-left: 10px;
  border-left: 3px solid #6B5BD6;
  color: #1A1F36;
}
.md-content h3 {
  font-size: 15px;
  margin: 20px 0 10px;
  color: #185FA5;
}
.md-content h4 { font-size: 14px; margin: 16px 0 8px; color: #1A1F36; }
.md-content p { margin: 8px 0; }
.md-content ul, .md-content ol { padding-left: 22px; margin: 8px 0; }
.md-content li { margin: 4px 0; }
.md-content code {
  background: #F1F4F9;
  color: #C2410C;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.md-content pre {
  background: #1A1F36;
  color: #E5E7EB;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.6;
}
.md-content pre code {
  background: transparent;
  color: #E5E7EB;
  padding: 0;
}
.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12.5px;
}
.md-content th, .md-content td {
  border: 1px solid #E5E7EB;
  padding: 8px 12px;
  text-align: left;
}
.md-content th { background: #F5F7FB; font-weight: 600; color: #185FA5; }
.md-content tr:nth-child(even) td { background: #FAFBFD; }
.md-content blockquote {
  border-left: 4px solid #6B5BD6;
  background: #F5F3FF;
  padding: 8px 14px;
  margin: 12px 0;
  color: #534AB7;
  border-radius: 0 6px 6px 0;
}
.md-content hr { border: none; border-top: 1px dashed #D1DAE8; margin: 20px 0; }
.md-content a { color: #185FA5; text-decoration: none; border-bottom: 1px dashed #185FA5; }
.md-content a:hover { color: #6B5BD6; }

/* ====== Mock 数据 ====== */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mock-card {
  background: #fff;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; align-items: center; gap: 12px;
}
.mock-card:hover {
  border-color: #185FA5;
  box-shadow: 0 6px 16px rgba(24, 95, 165, 0.1);
}
.mock-ico {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #185FA5, #6B5BD6);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mock-info { flex: 1; min-width: 0; }
.mock-name { font-size: 13px; font-weight: 600; color: #1A1F36; margin-bottom: 3px; }
.mock-desc { font-size: 11.5px; color: #6B7280; }
.mock-size {
  font-size: 11px; color: #9CA3AF;
  background: #F5F7FB;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
}

.mock-viewer { animation: paneIn 0.25s; }
.mv-head {
  display: flex; align-items: center;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  border: 1px solid #EEF1F6;
  border-bottom: none;
}
.mv-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #185FA5;
  font-family: 'SF Mono', Menlo, monospace;
}
.mv-actions { margin-left: auto; display: flex; gap: 8px; }
.mv-body {
  background: #1A1F36;
  color: #E5E7EB;
  padding: 18px 20px;
  border-radius: 0 0 10px 10px;
  margin: 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  max-height: 65vh;
  overflow-y: auto;
}
/* 极简 JSON 着色 */
.mv-body .k { color: #93C5FD; }
.mv-body .s { color: #FCD34D; }
.mv-body .n { color: #FCA5A5; }
.mv-body .b { color: #C4B5FD; }

/* ====== 原型卡 ====== */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.proto-card {
  background: #fff;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
  position: relative;
}
.proto-card:hover {
  border-color: #6B5BD6;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(107, 91, 214, 0.15);
}
.proto-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}
.proto-tag.c { background: #DBEAFE; color: #1D4ED8; }
.proto-tag.r { background: #EDE9FE; color: #6D28D9; }
.proto-num {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: #9CA3AF;
}
.proto-h { font-size: 15px; font-weight: 700; color: #1A1F36; margin: 8px 0 4px; }
.proto-d { font-size: 12px; color: #6B7280; line-height: 1.55; }

/* ============== v1.2: iframe 嵌入文档 ============== */
.doc-frame-wrap {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 520px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.doc-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}
