/* ============================================================
   AI小融 · 贷款分析匹配智能体 —— 界面样式（深空霓虹 / 玻璃拟态）
   设计语言：
     · 深空底色 + 三层极光光晕 + HUD 网格
     · 玻璃拟态面板（半透明 + 描边 + 内高光）
     · 青色→蓝→紫 渐变作为唯一强调色，霓虹辉光点缀
     · 数字类内容统一等宽字体（tabular-nums），强化"数据感"
   ============================================================ */

:root {
  /* ---------- 深空底色 ---------- */
  --bg-0: #04060d;
  --bg-1: #070c17;
  --bg-2: #0a1120;

  /* ---------- 玻璃与描边 ---------- */
  --glass: rgba(140, 175, 255, 0.055);
  --glass-2: rgba(140, 175, 255, 0.10);
  --glass-3: rgba(140, 175, 255, 0.16);
  --stroke: rgba(140, 175, 255, 0.16);
  --stroke-strong: rgba(140, 175, 255, 0.30);

  /* ---------- 文本 ---------- */
  --text: #e9efff;
  --text-sub: #a9b7d8;
  --muted: #6d7c9d;

  /* ---------- 霓虹色 ---------- */
  --cyan: #22d3ee;
  --blue: #4f7cff;
  --violet: #a855f7;
  --mint: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --grad: linear-gradient(120deg, #22d3ee 0%, #4f7cff 48%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(79, 124, 255, 0.16) 48%, rgba(168, 85, 247, 0.16));

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --glow-blue: 0 0 26px rgba(79, 124, 255, 0.38);
  --shadow-panel: 0 18px 50px rgba(2, 6, 18, 0.55);

  /* ---------- Element Plus 变量覆写（整体转深色） ---------- */
  --el-color-primary: #4f7cff;
  --el-color-primary-light-3: rgba(79, 124, 255, 0.70);
  --el-color-primary-light-5: rgba(79, 124, 255, 0.50);
  --el-color-primary-light-7: rgba(79, 124, 255, 0.28);
  --el-color-primary-light-8: rgba(79, 124, 255, 0.20);
  --el-color-primary-light-9: rgba(79, 124, 255, 0.12);
  --el-color-primary-dark-2: #6d93ff;

  --el-color-success: #34d399;
  --el-color-success-light-3: rgba(52, 211, 153, 0.65);
  --el-color-success-light-5: rgba(52, 211, 153, 0.45);
  --el-color-success-light-7: rgba(52, 211, 153, 0.26);
  --el-color-success-light-8: rgba(52, 211, 153, 0.18);
  --el-color-success-light-9: rgba(52, 211, 153, 0.12);

  --el-color-warning: #fbbf24;
  --el-color-warning-light-3: rgba(251, 191, 36, 0.65);
  --el-color-warning-light-5: rgba(251, 191, 36, 0.45);
  --el-color-warning-light-7: rgba(251, 191, 36, 0.26);
  --el-color-warning-light-8: rgba(251, 191, 36, 0.18);
  --el-color-warning-light-9: rgba(251, 191, 36, 0.12);

  --el-color-danger: #fb7185;
  --el-color-danger-light-3: rgba(251, 113, 133, 0.65);
  --el-color-danger-light-5: rgba(251, 113, 133, 0.45);
  --el-color-danger-light-7: rgba(251, 113, 133, 0.26);
  --el-color-danger-light-8: rgba(251, 113, 133, 0.18);
  --el-color-danger-light-9: rgba(251, 113, 133, 0.12);

  --el-color-error: #fb7185;
  --el-color-error-light-3: rgba(251, 113, 133, 0.65);
  --el-color-error-light-5: rgba(251, 113, 133, 0.45);
  --el-color-error-light-7: rgba(251, 113, 133, 0.26);
  --el-color-error-light-8: rgba(251, 113, 133, 0.18);
  --el-color-error-light-9: rgba(251, 113, 133, 0.12);

  --el-color-info: #8ea3c8;
  --el-color-info-light-3: rgba(142, 163, 200, 0.6);
  --el-color-info-light-5: rgba(142, 163, 200, 0.4);
  --el-color-info-light-7: rgba(142, 163, 200, 0.24);
  --el-color-info-light-8: rgba(142, 163, 200, 0.16);
  --el-color-info-light-9: rgba(142, 163, 200, 0.10);

  --el-bg-color: rgba(12, 18, 34, 0.72);
  --el-bg-color-overlay: #0d1425;
  --el-bg-color-page: var(--bg-0);
  --el-text-color-primary: var(--text);
  --el-text-color-regular: #c6d1ee;
  --el-text-color-secondary: var(--text-sub);
  --el-text-color-placeholder: var(--muted);
  --el-text-color-disabled: #5a6484;
  --el-border-color: var(--stroke);
  --el-border-color-light: rgba(140, 175, 255, 0.13);
  --el-border-color-lighter: rgba(140, 175, 255, 0.09);
  --el-border-color-extra-light: rgba(140, 175, 255, 0.06);
  --el-border-color-dark: var(--stroke-strong);
  --el-border-color-darker: rgba(140, 175, 255, 0.38);
  --el-fill-color: rgba(140, 175, 255, 0.09);
  --el-fill-color-light: rgba(140, 175, 255, 0.06);
  --el-fill-color-lighter: rgba(140, 175, 255, 0.04);
  --el-fill-color-extra-light: rgba(140, 175, 255, 0.03);
  --el-fill-color-dark: rgba(140, 175, 255, 0.14);
  --el-fill-color-darker: rgba(140, 175, 255, 0.18);
  --el-fill-color-blank: transparent;
  --el-mask-color: rgba(4, 6, 13, 0.82);
  --el-box-shadow: var(--shadow-panel);

  --el-table-bg-color: transparent;
  --el-table-tr-bg-color: transparent;
  --el-table-header-bg-color: rgba(140, 175, 255, 0.07);
  --el-table-header-text-color: var(--text-sub);
  --el-table-border-color: rgba(140, 175, 255, 0.12);
  --el-table-row-hover-bg-color: rgba(79, 124, 255, 0.12);
}

* { box-sizing: border-box; }

[v-cloak] { display: none; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* 底色：深空垂直渐变 */
body {
  background:
    radial-gradient(120% 80% at 50% -10%, #131c33 0%, rgba(7, 12, 23, 0) 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #03040a 100%);
  background-attachment: fixed;
}

/* ---------------- 背景装饰层：极光 + HUD 网格 ---------------- */
.fx-aurora,
.fx-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fx-aurora { overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb-a {
  width: 380px; height: 380px;
  top: -120px; left: -80px;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0) 68%);
  animation: drift 22s ease-in-out infinite;
}

.orb-b {
  width: 460px; height: 460px;
  top: 12%; right: -160px;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.75), rgba(168, 85, 247, 0) 70%);
  animation: drift 28s ease-in-out infinite reverse;
}

.orb-c {
  width: 420px; height: 420px;
  bottom: -180px; left: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 124, 255, 0.7), rgba(79, 124, 255, 0) 70%);
  animation: drift 34s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(46px, 34px, 0) scale(1.08); }
  66% { transform: translate3d(-38px, 52px, 0) scale(0.94); }
}

.fx-grid {
  background-image:
    linear-gradient(rgba(140, 175, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(115% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
  mask-image: radial-gradient(115% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
}

#app { position: relative; z-index: 1; }

a { color: #7ea6ff; text-decoration: none; }
a:hover { text-decoration: none; color: #a8c4ff; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0.2px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden-input { display: none; }

/* 通用：数字等宽 + 霓虹渐变文字 */
.num, .slot-value, .metric strong, .debt-item strong, .report-cell strong,
.product-facts strong, .deduction-row strong, .typing-text, .bubble-time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.86), rgba(8, 13, 26, 0.62));
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.75), rgba(168, 85, 247, 0.75), transparent);
  opacity: 0.55;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #050a16;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(79, 124, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.9), rgba(79, 124, 255, 0.2), rgba(168, 85, 247, 0.9), rgba(34, 211, 238, 0.9));
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
  animation: spin 7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand-text h1 {
  font-size: 18px;
  letter-spacing: 0.4px;
  background: linear-gradient(100deg, #ffffff 10%, #9fd9ff 55%, #cbb6ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted); }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-actions .link { font-size: 13px; color: var(--text-sub); }
.topbar-actions .link:hover { color: var(--cyan); }

/* 顶部状态标签：玻璃胶囊 + 呼吸灯 */
.topbar-actions .el-tag {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-sub);
  font-weight: 500;
}

.topbar-actions .el-tag--success {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.topbar-actions .el-tag--primary {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  color: #7fe6f7;
}

.topbar-actions .el-tag--warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

/* ---------------- 布局 ---------------- */
.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}

/* 玻璃面板 + HUD 四角 */
.panel {
  position: relative;
  background: linear-gradient(165deg, rgba(140, 175, 255, 0.085), rgba(140, 175, 255, 0.028) 45%, rgba(6, 10, 22, 0.5));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.35), rgba(255, 255, 255, 0) 35%, rgba(168, 85, 247, 0.28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-head h3 {
  font-size: 14px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h3::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow-cyan);
}

.panel-head .muted { font-family: var(--mono); font-size: 12px; color: #7ea6ff; }

/* ---------------- 对话面板 ---------------- */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  min-height: 560px;
  overflow: hidden;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 10px;
  scroll-behavior: smooth;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(140, 175, 255, 0.10) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 100%);
}

.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(168, 85, 247, 0.5));
  border-radius: 3px;
}

.msg-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
  animation: riseIn 0.42s cubic-bezier(0.22, 0.85, 0.3, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}

.msg-row.user { flex-direction: row-reverse; }

.avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--mono);
}

.avatar.assistant {
  color: #04121a;
  background: linear-gradient(135deg, #22d3ee, #6ee7ff 55%, #a855f7);
  box-shadow: var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: coreGlow 3.4s ease-in-out infinite;
}

@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 28px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
}

.avatar.user {
  color: #051024;
  background: linear-gradient(135deg, #a5b8ff, #dfe6ff);
  box-shadow: 0 6px 18px rgba(140, 175, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bubble-wrap { max-width: 76%; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.msg-row.user .bubble-wrap { align-items: flex-end; }

.bubble {
  padding: 11px 15px;
  border-radius: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13.6px;
  line-height: 1.68;
}

.bubble.assistant {
  position: relative;
  background: linear-gradient(160deg, rgba(140, 175, 255, 0.13), rgba(140, 175, 255, 0.045));
  border: 1px solid var(--stroke);
  border-top-left-radius: 6px;
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(2, 6, 18, 0.35);
}

.bubble.assistant::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(168, 85, 247, 0.35));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}

.bubble.user {
  background: linear-gradient(135deg, #2b6cf6 0%, #4f7cff 45%, #8b5cf6 105%);
  border: 1px solid rgba(160, 195, 255, 0.4);
  color: #f4f8ff;
  border-top-right-radius: 6px;
  box-shadow: 0 10px 26px rgba(56, 92, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bubble.card {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.12));
  border: 1px solid var(--stroke-strong);
  border-left: 2px solid transparent;
  box-shadow: 0 12px 30px rgba(2, 6, 18, 0.45), var(--glow-blue);
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  background: linear-gradient(100deg, #8ef0ff, #b9c8ff 55%, #e0c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-body { font-size: 13px; color: var(--text-sub); max-height: 260px; overflow-y: auto; }
.card-action { margin-top: 10px; }

.file-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-line span:last-child { min-width: 0; overflow-wrap: anywhere; }

.file-icon {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(5, 10, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #eaf3ff;
}

.bubble.assistant .file-icon {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: #7fe6f7;
}

.bubble-time { font-size: 10.5px; color: var(--muted); padding: 0 4px; letter-spacing: 0.3px; }

.bubble.typing { display: flex; align-items: center; gap: 6px; color: var(--text-sub); }

.typing-text { margin-left: 4px; font-size: 12px; color: #7fe6f7; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
  animation: bounce 1.2s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.16s; background: #7cb0ff; box-shadow: 0 0 10px rgba(124, 176, 255, 0.85); }
.dot:nth-child(3) { animation-delay: 0.32s; background: #a855f7; box-shadow: 0 0 10px rgba(168, 85, 247, 0.85); }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.65) translateY(0); opacity: 0.55; }
  40% { transform: scale(1) translateY(-3px); opacity: 1; }
}

/* ---------------- 输入区 ---------------- */
.chat-footer {
  border-top: 1px solid var(--stroke);
  padding: 12px 20px 14px;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.5), rgba(8, 13, 26, 0.85));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.quick-replies .el-button + .el-button { margin-left: 0; }

/* 快捷回复：玻璃芯片 */
.quick-replies .el-button {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--glass-2);
  color: #cfe0ff;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.quick-replies .el-button:hover {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.14);
  color: #d7f7ff;
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.warnings { margin-bottom: 8px; }

.warning-line {
  font-size: 12px;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-left: 2px solid #fbbf24;
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  margin-bottom: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.composer { display: flex; align-items: flex-end; gap: 10px; }
.composer .el-textarea { flex: 1; }
.composer-actions { display: flex; flex-direction: column; gap: 8px; }

.disclaimer { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------------- Element Plus 组件：深色玻璃化 ---------------- */
.el-textarea__inner,
.el-input__wrapper {
  background: rgba(6, 10, 22, 0.55) !important;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: none !important;
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.el-textarea__inner::placeholder,
.el-input__inner::placeholder { color: var(--muted); }

.el-textarea__inner:hover,
.el-input__wrapper:hover { border-color: rgba(34, 211, 238, 0.42); }

.el-textarea__inner:focus,
.el-input__wrapper.is-focus {
  border-color: rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), var(--glow-cyan) !important;
}

.el-input__count,
.el-input .el-input__count-inner {
  background: transparent !important;
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 11px;
}

.el-button {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.el-button--primary {
  background: linear-gradient(120deg, #2b6cf6, #4f7cff 55%, #8b5cf6) !important;
  border: 1px solid rgba(160, 195, 255, 0.35) !important;
  color: #f6f9ff !important;
  box-shadow: 0 10px 26px rgba(56, 92, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.el-button--primary:hover {
  box-shadow: 0 12px 30px rgba(56, 92, 220, 0.5), 0 0 22px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.el-button--default,
.el-button.is-plain {
  background: var(--glass-2) !important;
  border: 1px solid var(--stroke-strong) !important;
  color: #cfe0ff !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.el-button--default:hover,
.el-button.is-plain:hover {
  background: rgba(34, 211, 238, 0.14) !important;
  border-color: rgba(34, 211, 238, 0.6) !important;
  color: #d8f8ff !important;
  box-shadow: var(--glow-cyan);
}

.el-button.is-disabled,
.el-button.is-disabled:hover {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.el-progress-bar__outer { background-color: rgba(140, 175, 255, 0.12) !important; }

.el-progress-bar__inner {
  background-image: linear-gradient(90deg, #22d3ee, #4f7cff 55%, #a855f7) !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
}

.el-progress--dashboard .el-progress__text,
.el-progress--circle .el-progress__text {
  color: var(--text) !important;
  font-family: var(--mono);
  font-weight: 700;
}

/* 表格 */
.el-table {
  background: transparent !important;
  color: var(--text-sub);
  --el-table-border-color: rgba(140, 175, 255, 0.12);
}

.el-table th.el-table__cell {
  background: rgba(140, 175, 255, 0.07) !important;
  color: #a9b7d8 !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.el-table td.el-table__cell,
.el-table th.el-table__cell { border-bottom: 1px solid rgba(140, 175, 255, 0.10) !important; }

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: rgba(140, 175, 255, 0.035) !important;
}

.el-table tr:hover > td.el-table__cell { background: rgba(79, 124, 255, 0.12) !important; }

.el-table::before, .el-table__inner-wrapper::before { background-color: transparent !important; }

/* 折叠面板 */
.el-collapse {
  --el-collapse-border-color: rgba(140, 175, 255, 0.12);
  --el-collapse-header-bg-color: transparent;
  --el-collapse-content-bg-color: transparent;
  border: none;
}

.el-collapse-item__header {
  background: transparent !important;
  color: var(--text-sub);
  border-bottom: 1px dashed rgba(140, 175, 255, 0.14) !important;
  font-size: 13px;
}

.el-collapse-item__header:hover { color: #7fe6f7; }
.el-collapse-item__wrap { background: transparent !important; border-bottom-color: rgba(140, 175, 255, 0.12) !important; }
.el-collapse-item__content { color: var(--text-sub); padding-bottom: 12px; }

.el-collapse-item__arrow { color: var(--muted); }

/* 标签 */
.el-tag {
  border-radius: 999px;
  border-width: 1px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 500;
}

/* 加载态 */
.el-loading-mask { background-color: rgba(4, 6, 13, 0.6) !important; }
.el-loading-spinner .path { stroke: #22d3ee; }

/* ---------------- 右侧面板 ---------------- */
.side-panel { display: flex; flex-direction: column; gap: 18px; }

.progress-panel, .credit-panel, .placeholder, .table-panel, .side-panel .panel { padding: 18px; }

.slot-list { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }

.slot-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(140, 175, 255, 0.10);
}

.slot-list li:last-child { border-bottom: none; }

.slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: rgba(140, 175, 255, 0.22);
  border: 1px solid rgba(140, 175, 255, 0.35);
}

.slot-list li.done .slot-dot {
  background: #34d399;
  border-color: #6ee7b7;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
}

.slot-label { color: var(--text-sub); flex: 1; }
.slot-value { color: var(--muted); font-size: 12px; }
.slot-list li.done .slot-value { color: #bfe8ff; font-weight: 600; }

.missing-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.ok-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* ---------------- 信用报告 ---------------- */
.gauge-wrap { display: flex; align-items: center; gap: 14px; }
.gauge { width: 168px; height: 150px; flex: 0 0 168px; }
.gauge-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.metric { display: flex; flex-direction: column; }
.metric label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.3px; }
.metric strong { font-size: 19px; font-weight: 700; color: #e9efff; }
.metric strong.good { color: #34d399; text-shadow: 0 0 16px rgba(52, 211, 153, 0.5); }
.metric strong.warn { color: #fbbf24; text-shadow: 0 0 16px rgba(251, 191, 36, 0.45); }
.metric strong.bad { color: #fb7185; text-shadow: 0 0 16px rgba(251, 113, 133, 0.45); }
.metric span { font-size: 11.5px; color: var(--muted); }

.debt-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  background: rgba(140, 175, 255, 0.055);
  border: 1px solid rgba(140, 175, 255, 0.10);
  border-radius: var(--radius-md);
}

.debt-item { display: flex; justify-content: space-between; font-size: 12.5px; }
.debt-item span { color: var(--text-sub); }
.debt-item strong { color: #dbe6ff; }

.section-title {
  font-size: 12.5px;
  font-weight: 600;
  margin: 14px 0 6px;
  padding-left: 8px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #22d3ee, #a855f7) 1;
  letter-spacing: 0.4px;
  color: #cfe0ff;
}

.section-title.risk { border-image: linear-gradient(180deg, #fb7185, #fbbf24) 1; }
.section-title.good { border-image: linear-gradient(180deg, #34d399, #22d3ee) 1; }

.bullet-list { list-style: none; margin: 0; padding: 0; }

.bullet-list li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 12.8px;
  color: var(--text-sub);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.bullet-list.risk li::before { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.8); }
.bullet-list.good li::before { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.bullet-list.small li { font-size: 12px; }

.deduction-table { margin-top: 6px; }

.deduction-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(140, 175, 255, 0.10);
  color: var(--text-sub);
}

.deduction-row strong { color: #fda4af; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.report-cell {
  background: rgba(140, 175, 255, 0.055);
  border: 1px solid rgba(140, 175, 255, 0.10);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.report-cell label { font-size: 11.5px; color: var(--muted); }
.report-cell strong { font-size: 13.5px; color: #e3ebff; }

.placeholder h3 { font-size: 15px; margin-bottom: 8px; color: #dbe6ff; }

.steps { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--text-sub); }
.steps li { margin-bottom: 6px; }
.steps li::marker { color: #22d3ee; }

/* ---------------- 推荐产品 ---------------- */
.result-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head { display: flex; align-items: baseline; gap: 12px; }

.section-head h2 {
  font-size: 19px;
  letter-spacing: 0.4px;
  background: linear-gradient(100deg, #ffffff, #9fd9ff 60%, #cbb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  background: linear-gradient(162deg, rgba(140, 175, 255, 0.10), rgba(140, 175, 255, 0.03) 50%, rgba(6, 10, 22, 0.5));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 18px;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-panel);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-panel), var(--glow-cyan);
}

.product-card:hover::after { opacity: 1; animation: sweep 0.9s ease; }

@keyframes sweep {
  from { left: -40%; }
  to { left: 120%; }
}

.product-rank {
  position: absolute;
  top: 14px;
  right: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: #7fe6f7;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bank { font-size: 12.5px; color: var(--muted); }

.product-name {
  font-size: 17.5px;
  font-weight: 700;
  margin: 2px 0 6px;
  color: #eef4ff;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(140, 175, 255, 0.055);
  border: 1px solid rgba(140, 175, 255, 0.10);
  border-radius: var(--radius-md);
}

.product-facts div { display: flex; flex-direction: column; }
.product-facts label { font-size: 11.5px; color: var(--muted); }
.product-facts strong { font-size: 13px; color: #dce7ff; }

.reasons { margin: 0; padding-left: 18px; font-size: 12.6px; color: var(--text-sub); }
.reasons li { margin-bottom: 4px; }
.reasons li::marker { color: #a855f7; }

.special-req {
  margin-top: 12px;
  font-size: 12.2px;
  color: #fcd9a0;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.tag-label { font-weight: 600; margin-right: 6px; }

.empty-match h3 { font-size: 15px; margin-bottom: 10px; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(140, 175, 255, 0.10); }
.checklist li:last-child { border-bottom: none; }
.checklist p { margin: 0; }
.checklist strong { color: #e3ebff; font-weight: 600; }

.checkbox {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 0 8px rgba(34, 211, 238, 0.22);
}

/* ---------------- 页脚 ---------------- */
.page-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .chat-panel { height: auto; min-height: 520px; max-height: 78vh; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .result-section { padding: 12px 16px 20px; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand-text p { display: none; }
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 15px; }
  .topbar-actions { width: 100%; gap: 8px; flex-wrap: wrap; }
  .topbar-actions .el-tag { height: 24px; font-size: 11px; }
  .composer .el-textarea { min-width: 0; }
  .layout, .chat-panel, .side-panel, .result-section, .panel { min-width: 0; max-width: 100%; }
  .bubble { font-size: 14px; padding: 11px 14px; }
  .gauge-wrap { flex-wrap: wrap; gap: 12px; }
  .gauge { width: 140px; flex: 0 0 140px; height: 132px; }
  .gauge-side { flex: 1 1 160px; min-width: 0; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-rank { display: none; }
  .report-grid, .debt-breakdown, .product-facts { grid-template-columns: minmax(0, 1fr); }

  /* 手机端：对话区占满视口，快捷回复横向滑动 */
  .layout { padding: 12px 12px 4px; }
  .chat-panel { height: calc(100vh - 190px); height: calc(100dvh - 190px); min-height: 420px; max-height: none; }
  .chat-scroll { padding: 16px 12px 8px; }
  .msg-row { gap: 8px; }
  .avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
  .bubble-wrap { max-width: 82%; }
  .bubble { overflow-wrap: anywhere; }
  .bubble.typing { flex-wrap: wrap; }

  .quick-replies {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quick-replies::-webkit-scrollbar { display: none; }
  .quick-replies .el-button { flex: 0 0 auto; }

  .chat-footer { padding: 10px 14px 12px; }
  .composer { flex-direction: column; align-items: stretch; }
  .composer-actions { flex-direction: row; justify-content: flex-end; }
  .composer-actions .el-button { flex: 1; }
  .result-section { padding: 12px 12px 20px; }
  .product-card { padding: 16px; }
}

/* 超窄屏（小尺寸手机）额外兜底，避免内容溢出被裁切 */
@media (max-width: 400px) {
  .layout { padding: 10px 10px 4px; }
  .chat-panel { height: calc(100vh - 176px); height: calc(100dvh - 176px); min-height: 360px; }
  .chat-scroll { padding: 14px 10px 8px; }
  .bubble-wrap { max-width: 88%; }
  .bubble { font-size: 13.4px; padding: 10px 12px; }
  .chat-footer { padding: 10px 10px 12px; }
  .composer-actions .el-button { padding-left: 10px; padding-right: 10px; }
  .gauge { width: 124px; flex: 0 0 124px; height: 118px; }
  .page-footer { padding: 8px 12px 24px; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .orb, .brand-mark::after, .avatar.assistant, .msg-row, .product-card::after, .dot {
    animation: none !important;
  }
  .product-card { transition: none; }
}
