/* ============================================================
   慧眼时空数据应用平台 — 全局样式
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a6cf6;
  --primary-light: #3b82f6;
  --primary-dark: #1251c0;
  --secondary: #0ea5e9;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --mid: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1e293b;
  --text2: #475569;
  --text3: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26,108,246,0.08);
  --shadow-md: 0 8px 40px rgba(26,108,246,0.14);
  --nav-h: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }
svg { display: block; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,108,246,0.25); border-radius: 3px; }

/* ============================================================
   SPLASH / AUTH
   ============================================================ */
.splash-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.splash-overlay.active { opacity: 1; pointer-events: all; }
.splash-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1e3d 0%, #0a2a5e 40%, #0d3b7a 70%, #0a1929 100%);
}
.splash-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a6cf6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.splash-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.splash-logo {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.splash-logo h1 { font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: 2px; }
.splash-logo p { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px; padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 8px; border-radius: 6px;
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--primary); color: #fff; font-weight: 600;
}

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,108,246,0.25);
}
.form-group select option { background: #1e293b; color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
}
.cb-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.cb-item input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; }

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(26,108,246,0.4);
  transition: all 0.2s; letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(26,108,246,0.5); }
.btn-primary.full { width: 100%; }

.auth-hint { font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ============================================================
   TOP NAV
   ============================================================ */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; gap: 0;
  background: rgba(15,30,61,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,108,246,0.2);
  padding: 0 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  margin-right: 40px;
}
.brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 2px; }
.brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-left: 4px; }

.nav-menu { display: flex; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.nav-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #fff; background: rgba(26,108,246,0.15); }
.nav-item.active { color: #fff; background: rgba(26,108,246,0.25); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 10px rgba(26,108,246,0.4);
}
.btn-logout {
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6); font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.page-container { margin-top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); }
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-hero {
  background: linear-gradient(135deg, #0f1e3d 0%, #0a2a5e 50%, #0d3b7a 100%);
  padding: 48px 40px 36px;
  position: relative; overflow: hidden;
}
.dash-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,108,246,0.15) 0%, transparent 70%);
}
.dash-hero-content { position: relative; z-index: 1; }
.dash-hero h2 { font-size: 1.8rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.dash-hero p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.dash-hero-actions { display: flex; gap: 12px; margin-top: 24px; }

.btn-outline-light {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85); font-size: 0.87rem;
  border-radius: var(--radius-sm); transition: all 0.2s;
}
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.dash-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 28px 40px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-info h3 { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-info p { font-size: 0.8rem; color: var(--text2); margin-top: 4px; }
.stat-info .stat-change { font-size: 0.75rem; color: var(--success); margin-top: 3px; }

.dash-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
  padding: 0 40px 40px;
}
.dash-section { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.section-header h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.section-body { padding: 20px 24px; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.task-item:hover { border-color: var(--primary); background: rgba(26,108,246,0.04); }
.task-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.task-thumb svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task-info { flex: 1; }
.task-info h5 { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.task-info p { font-size: 0.77rem; color: var(--text3); margin-top: 2px; }
.task-status {
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
}
.status-done { background: rgba(16,185,129,0.12); color: var(--success); }
.status-progress { background: rgba(245,158,11,0.12); color: var(--warning); }
.status-pending { background: rgba(148,163,184,0.12); color: var(--muted); }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link {
  padding: 16px; border-radius: var(--radius-sm);
  text-align: center; cursor: pointer; transition: all 0.2s;
  border: 1px solid var(--border); background: var(--bg);
}
.quick-link:hover { border-color: var(--primary); background: rgba(26,108,246,0.04); }
.quick-link .ql-icon { font-size: 1.8rem; margin-bottom: 6px; }
.quick-link p { font-size: 0.8rem; color: var(--text2); font-weight: 500; }

/* ============================================================
   ANALYSIS PAGE
   ============================================================ */
.analysis-layout {
  display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - var(--nav-h));
}
.analysis-sidebar {
  background: var(--card); border-right: 1px solid var(--border);
  padding: 24px 20px; overflow-y: auto;
}
.sidebar-title { font-size: 0.78rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; margin-top: 24px; }
.sidebar-title:first-child { margin-top: 0; }

.element-group { margin-bottom: 8px; }
.element-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer; font-size: 0.85rem; font-weight: 600;
  color: var(--text);
}
.element-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 4px; }
.element-tag {
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.78rem; cursor: pointer;
  border: 1px solid var(--border); color: var(--text2);
  transition: all 0.2s;
}
.element-tag:hover, .element-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.time-selector { display: flex; flex-direction: column; gap: 10px; }
.time-item { display: flex; flex-direction: column; gap: 4px; }
.time-item label { font-size: 0.78rem; color: var(--text3); font-weight: 500; }
.time-item input[type=date] {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem;
  color: var(--text); width: 100%;
}
.time-item input[type=date]:focus { outline: none; border-color: var(--primary); }

.region-input {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem;
  color: var(--text); width: 100%;
}
.region-input:focus { outline: none; border-color: var(--primary); }

.btn-analyze {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(26,108,246,0.3);
  transition: all 0.2s; margin-top: 20px;
}
.btn-analyze:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(26,108,246,0.4); }

.analysis-main { padding: 24px; overflow-y: auto; }
.image-compare-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.img-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--dark2);
  position: relative;
}
.img-frame-header {
  padding: 10px 16px; background: rgba(15,30,61,0.9);
  display: flex; align-items: center; justify-content: space-between;
}
.img-frame-header span { font-size: 0.8rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.img-frame-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
}
.badge-t1 { background: rgba(14,165,233,0.25); color: var(--secondary); }
.badge-t2 { background: rgba(16,185,129,0.25); color: var(--success); }
.img-placeholder {
  height: 300px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: rgba(255,255,255,0.3);
}
.img-placeholder svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.img-placeholder p { font-size: 0.82rem; }
.demo-img { width: 100%; height: 300px; object-fit: cover; display: block; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 20px;
}
.chart-card h5 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.chart-card canvas { max-height: 220px; }

.change-table {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 24px;
}
.change-table table { width: 100%; border-collapse: collapse; }
.change-table th {
  padding: 12px 16px; text-align: left;
  font-size: 0.8rem; font-weight: 600; color: var(--text2);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.change-table td {
  padding: 12px 16px; font-size: 0.85rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.change-table tr:last-child td { border-bottom: none; }
.change-table tr:hover td { background: rgba(26,108,246,0.03); }
.change-pct { font-weight: 700; }
.pct-up { color: var(--danger); }
.pct-down { color: var(--success); }

.action-bar { display: flex; gap: 12px; }
.btn-secondary {
  padding: 10px 20px;
  border: 1px solid var(--border); color: var(--text2);
  border-radius: var(--radius-sm); font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-report {
  padding: 10px 22px;
  background: var(--success); color: #fff;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-report:hover { background: #059669; }

/* ============================================================
   AGENT PAGE
   ============================================================ */
.agent-layout {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-h));
}
.agent-sidebar {
  background: var(--dark2); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 16px; display: flex; flex-direction: column;
}
.agent-sidebar-title { font-size: 0.75rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; margin-top: 20px; }
.agent-sidebar-title:first-child { margin-top: 0; }
.history-item {
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
  color: rgba(255,255,255,0.6); font-size: 0.82rem;
  display: flex; align-items: flex-start; gap: 8px;
}
.history-item:hover, .history-item.active { background: rgba(26,108,246,0.15); color: #fff; }
.history-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }

.prompt-examples { display: flex; flex-direction: column; gap: 6px; }
.prompt-ex {
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55); font-size: 0.78rem;
  cursor: pointer; transition: all 0.2s; line-height: 1.4;
}
.prompt-ex:hover { border-color: var(--primary); color: #fff; background: rgba(26,108,246,0.1); }

.agent-chat { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h)); background: #f8fafc; }
.chat-header {
  padding: 16px 28px;
  background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chat-header-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
}
.chat-header-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.chat-header-info h4 { font-size: 0.92rem; font-weight: 600; }
.chat-header-info p { font-size: 0.77rem; color: var(--text3); }
.chat-status { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.status-dot.thinking { animation: pulse 1.2s infinite; }
.chat-status span { font-size: 0.78rem; color: var(--text3); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.chat-messages { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; gap: 12px; max-width: 80%; }
.msg.user { flex-direction: row-reverse; align-self: flex-end; }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.msg.ai .msg-avatar { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.msg.user .msg-avatar { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; }
.msg-body { display: flex; flex-direction: column; gap: 4px; }
.msg-bubble {
  padding: 12px 16px; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.6;
}
.msg.ai .msg-bubble {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-bottom-right-radius: 4px;
}
.msg-time { font-size: 0.7rem; color: var(--text3); }
.msg.user .msg-time { text-align: right; }

.msg-result-card {
  margin-top: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.result-header {
  padding: 12px 16px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: space-between;
}
.result-header h5 { font-size: 0.85rem; color: #fff; font-weight: 600; }
.result-body { padding: 16px; }
.result-body p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }
.result-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-xs {
  padding: 5px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; transition: all 0.2s;
}
.btn-xs.primary { background: var(--primary); color: #fff; }
.btn-xs.outline { border: 1px solid var(--border); color: var(--text2); }
.btn-xs:hover { opacity: 0.85; }

.chat-input-area {
  padding: 16px 28px;
  background: var(--card); border-top: 1px solid var(--border);
}
.input-box {
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 12px; transition: border-color 0.2s;
}
.input-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,108,246,0.1); }
.chat-textarea {
  flex: 1; border: none; background: transparent; resize: none;
  font-size: 0.88rem; color: var(--text); line-height: 1.5;
  max-height: 100px; min-height: 24px; outline: none;
  font-family: inherit;
}
.chat-textarea::placeholder { color: var(--text3); }
.btn-send {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-send:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(26,108,246,0.4); }
.btn-send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.input-hint { font-size: 0.73rem; color: var(--text3); margin-top: 6px; padding: 0 4px; }

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resources-page { padding: 32px 40px; }
.page-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.page-subtitle { font-size: 0.88rem; color: var(--text2); margin-bottom: 28px; }
.resource-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; width: fit-content; }
.res-tab { padding: 8px 20px; border-radius: 7px; font-size: 0.85rem; color: var(--text2); transition: all 0.2s; font-weight: 500; }
.res-tab.active { background: var(--primary); color: #fff; }
.res-tab:hover:not(.active) { background: var(--bg); }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(26,108,246,0.3); }
.res-card-header {
  height: 120px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.res-card-icon { width: 52px; height: 52px; }
.res-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.badge-free { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-demo { background: rgba(14,165,233,0.15); color: var(--secondary); }
.badge-paid { background: rgba(245,158,11,0.15); color: var(--warning); }
.res-card-body { padding: 18px 20px; }
.res-card-body h5 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.res-card-body p { font-size: 0.78rem; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.res-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.res-tag { padding: 3px 9px; border-radius: 20px; font-size: 0.72rem; background: rgba(26,108,246,0.08); color: var(--primary); font-weight: 500; }
.res-card-footer { display: flex; align-items: center; justify-content: space-between; }
.res-btn { padding: 7px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; transition: all 0.2s; }
.res-btn.primary { background: var(--primary); color: #fff; }
.res-btn.outline { border: 1px solid var(--border); color: var(--text2); }
.res-btn:hover { opacity: 0.85; }
.res-score { display: flex; align-items: center; gap: 3px; color: var(--warning); font-size: 0.75rem; }

/* ============================================================
   PROCUREMENT PAGE
   ============================================================ */
.procurement-page { padding: 32px 40px; }
.proc-banner {
  background: linear-gradient(135deg, #0f1e3d, #0a2a5e);
  border-radius: var(--radius); padding: 36px 40px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.proc-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,108,246,0.2), transparent 70%);
}
.proc-banner h2 { font-size: 1.4rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.proc-banner p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 520px; line-height: 1.6; }
.proc-form-area {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 32px;
}
.proc-form {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 28px;
}
.proc-form h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 20px; }
.proc-form .form-group label { color: var(--text2); font-size: 0.83rem; }
.proc-form .form-group input,
.proc-form .form-group select,
.proc-form .form-group textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text); font-size: 0.87rem; width: 100%;
}
.proc-form .form-group input:focus,
.proc-form .form-group select:focus,
.proc-form .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,108,246,0.1);
}
.proc-form textarea { resize: vertical; min-height: 90px; }

.proc-quote-panel {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.proc-quote-panel h4 { font-size: 1rem; font-weight: 600; color: var(--text); }
.quote-item {
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.quote-item h6 { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.quote-item p { font-size: 0.78rem; color: var(--text2); }
.quote-item .quote-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.quote-item .quote-note { font-size: 0.72rem; color: var(--text3); }
.quote-empty {
  text-align: center; padding: 32px;
  color: var(--text3); font-size: 0.85rem;
}
.quote-empty svg { width: 48px; height: 48px; fill: none; stroke: var(--text3); stroke-width: 1.5; margin: 0 auto 12px; }

.proc-submit-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(26,108,246,0.3);
  transition: all 0.2s; margin-top: 8px; width: 100%;
}
.proc-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(26,108,246,0.4); }

.proc-orders { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.proc-orders table { width: 100%; border-collapse: collapse; }
.proc-orders th { padding: 12px 20px; text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--text2); background: var(--bg); border-bottom: 1px solid var(--border); }
.proc-orders td { padding: 14px 20px; font-size: 0.85rem; color: var(--text); border-bottom: 1px solid var(--border); }
.proc-orders tr:last-child td { border-bottom: none; }
.order-status { padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.os-pending { background: rgba(245,158,11,0.12); color: var(--warning); }
.os-quoted { background: rgba(26,108,246,0.12); color: var(--primary); }
.os-confirmed { background: rgba(16,185,129,0.12); color: var(--success); }

/* ============================================================
   REPORT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  width: 800px; max-width: 95vw; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text3); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; padding: 28px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.report-section { margin-bottom: 24px; }
.report-section h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.report-section p { font-size: 0.85rem; color: var(--text2); line-height: 1.8; }
.report-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.meta-item { padding: 14px; background: var(--bg); border-radius: var(--radius-sm); }
.meta-item label { font-size: 0.72rem; color: var(--text3); display: block; margin-bottom: 4px; }
.meta-item span { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 24px; border-radius: 10px;
  background: var(--dark2); color: #fff;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999; opacity: 0; transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ============================================================
   TYPING ANIMATION
   ============================================================ */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text3);
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:scale(0.8)} 40%{transform:scale(1.2)} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .analysis-layout { grid-template-columns: 1fr; }
  .analysis-sidebar { display: none; }
  .agent-layout { grid-template-columns: 1fr; }
  .agent-sidebar { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .proc-form-area { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV BADGE
   ============================================================ */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  margin-left: 2px; flex-shrink: 0;
}

/* ============================================================
   项目成果展示页
   ============================================================ */
.results-page { }
.results-hero {
  background: linear-gradient(135deg, #0f1e3d 0%, #0a2a5e 50%, #0d3b7a 100%);
  padding: 40px 40px 0; position: relative; overflow: hidden;
}
.results-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(26,108,246,0.15) 0%, transparent 70%);
}
.results-hero-inner { position: relative; z-index: 1; }
.results-hero h2 { font-size: 1.6rem; color: #fff; font-weight: 700; margin-bottom: 6px; }
.results-hero p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 600px; }
.results-stats-bar {
  display: flex; gap: 40px; position: relative; z-index: 1;
  margin-top: 24px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.results-stat { text-align: center; }
.results-stat strong { display: block; font-size: 1.6rem; color: #fff; font-weight: 700; }
.results-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.results-body { padding: 24px 40px 40px; }
.results-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; width: fit-content;
}
.results-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 7px;
  font-size: 0.85rem; color: var(--text2); transition: all 0.2s; font-weight: 500;
}
.results-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.results-tab.active { background: var(--primary); color: #fff; }
.results-tab:hover:not(.active) { background: var(--bg); }
.tab-count {
  background: rgba(26,108,246,0.12); color: var(--primary);
  border-radius: 10px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700;
}
.results-tab.active .tab-count { background: rgba(255,255,255,0.2); color: #fff; }

.result-filter-bar {
  display: flex; gap: 10px; margin-bottom: 16px; align-items: center;
}
.result-search {
  flex: 1; max-width: 320px; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text); background: var(--card);
}
.result-search:focus { outline: none; border-color: var(--primary); }
.result-filter-sel {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text2);
  background: var(--card);
}

/* Reports list */
.reports-list { display: flex; flex-direction: column; gap: 14px; }
.report-item-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: stretch; overflow: hidden;
  transition: all 0.2s;
}
.report-item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ric-left {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 18px; background: var(--bg); min-width: 80px;
}
.ric-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ric-meta { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.ric-id { font-size: 0.68rem; color: var(--text3); font-weight: 600; }
.ric-date { font-size: 0.68rem; color: var(--text3); }
.ric-body { flex: 1; padding: 18px 20px; }
.ric-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ric-attrs {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.77rem; color: var(--text3); margin-bottom: 10px;
}
.ric-summary { font-size: 0.83rem; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.ric-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ric-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 16px; justify-content: center;
}

/* Maps grid */
.maps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.map-result-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: all 0.2s;
}
.map-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.map-preview-thumb {
  height: 140px; position: relative; overflow: hidden;
}
.map-preview-label {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.map-res-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(26,108,246,0.8); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
}
.map-card-body { padding: 16px 18px; }
.map-card-body h5 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.map-attrs { display: flex; gap: 10px; font-size: 0.75rem; color: var(--text3); margin-bottom: 8px; }
.map-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.6; }
.map-card-actions { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }

/* Apps grid */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-result-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column;
}
.app-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.app-card-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.app-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.app-status-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; margin-top: 3px; }
.app-online { color: var(--success); }
.app-demo { color: var(--warning); }
.app-card-body { padding: 14px 16px; flex: 1; }
.app-card-body h5 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.app-card-body p { font-size: 0.78rem; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.app-features { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.app-feature-tag { padding: 3px 8px; border-radius: 20px; font-size: 0.7rem; background: rgba(26,108,246,0.07); color: var(--primary); font-weight: 500; }
.app-users { font-size: 0.75rem; color: var(--text3); }
.app-card-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ============================================================
   项目规划页
   ============================================================ */
.planning-page { padding: 32px 40px 60px; }
.plan-header { margin-bottom: 28px; }
.plan-header h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.plan-header p { font-size: 0.88rem; color: var(--text2); }

.plan-stepper {
  display: flex; align-items: center; margin-bottom: 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 24px;
  box-shadow: var(--shadow); overflow-x: auto;
}
.plan-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
  background: var(--bg); border: 2px solid var(--border);
  color: var(--text3); transition: all 0.2s;
}
.plan-step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(26,108,246,0.35); }
.plan-step.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; font-size: 0.8rem; }
.plan-step span { font-size: 0.75rem; color: var(--text3); white-space: nowrap; font-weight: 500; }
.plan-step.active span { color: var(--primary); font-weight: 700; }
.plan-step.done span { color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 20px; min-width: 20px; transition: background 0.2s; }
.step-line.done { background: var(--success); }

.plan-body { }
.plan-form-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 28px 32px; min-height: 340px; margin-bottom: 20px;
}
.plan-step-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.plan-step-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 22px; }
.plan-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-fg { }
.plan-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.87rem; color: var(--text); background: var(--bg);
  font-family: inherit; transition: border-color 0.2s;
}
.plan-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,108,246,0.1); }
.plan-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-radio {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); cursor: pointer;
  font-size: 0.83rem; color: var(--text2); transition: all 0.2s;
  background: var(--bg);
}
.plan-radio input { accent-color: var(--primary); }
.plan-radio:has(input:checked) { border-color: var(--primary); background: rgba(26,108,246,0.06); color: var(--primary); }

.plan-element-groups { display: flex; flex-direction: column; gap: 16px; }
.plan-elem-group { }
.plan-elem-cat { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.plan-elem-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-elem-tag {
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; cursor: pointer;
  border: 1px solid var(--border); color: var(--text2);
  transition: all 0.2s; background: var(--bg);
}
.plan-elem-tag:hover { border-color: var(--primary); color: var(--primary); }
.plan-elem-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.plan-resource-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.plan-res-card {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer; transition: all 0.2s;
  background: var(--bg); position: relative;
}
.plan-res-card:hover { border-color: var(--primary); background: rgba(26,108,246,0.03); }
.plan-res-card.selected { border-color: var(--primary); background: rgba(26,108,246,0.06); }
.plan-res-card.unavailable { background: rgba(245,158,11,0.03); }
.plan-res-card.unavailable.selected { border-color: var(--warning); background: rgba(245,158,11,0.08); }
.plan-res-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.plan-res-avail { font-size: 0.7rem; font-weight: 700; }
.avail-yes { color: var(--success); }
.avail-no { color: var(--warning); }
.plan-res-check { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.plan-res-name { font-size: 0.83rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.plan-res-attrs { font-size: 0.72rem; color: var(--text3); margin-bottom: 8px; }
.plan-res-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-res-tip { font-size: 0.7rem; color: var(--warning); margin-top: 6px; }
.plan-res-add-card {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; text-align: center;
  color: var(--text3); font-size: 0.8rem; min-height: 120px;
}
.plan-res-add-card:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,108,246,0.03); }
.plan-res-add-card span { font-size: 0.72rem; color: var(--text3); }
.plan-res-add-card:hover span { color: var(--primary); }

.plan-need-form {
  margin-top: 16px; padding: 20px 24px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
}
.plan-need-form h5 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.plan-needs-summary {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
}
.plan-needs-summary h6 { font-size: 0.82rem; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.plan-need-item { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid rgba(16,185,129,0.1); }
.plan-need-item:last-child { border-bottom: none; }
.plan-need-item span { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.plan-need-item small { font-size: 0.72rem; color: var(--text3); }

.plan-output-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-output-card {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.plan-output-card:hover { border-color: var(--primary); background: rgba(26,108,246,0.03); }
.plan-output-card.selected { border-color: var(--primary); background: rgba(26,108,246,0.08); }
.plan-output-icon { font-size: 2rem; margin-bottom: 8px; }
.plan-output-card h6 { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.plan-output-card p { font-size: 0.72rem; color: var(--text3); line-height: 1.4; }

.plan-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.step-indicator { font-size: 0.82rem; color: var(--text3); font-weight: 500; }

/* Plan step 6 summary */
.plan-summary-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.plan-summary-section {
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 16px 20px;
}
.plan-summary-section h5 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.plan-summary-row { display: flex; gap: 12px; padding: 5px 0; font-size: 0.83rem; border-bottom: 1px solid var(--border); }
.plan-summary-row:last-child { border-bottom: none; }
.plan-summary-row label { width: 90px; color: var(--text3); flex-shrink: 0; font-size: 0.78rem; padding-top: 1px; }
.plan-summary-row span { color: var(--text); }
.plan-summary-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.plan-cart-notice {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(26,108,246,0.05); border: 1px solid rgba(26,108,246,0.2);
  gap: 16px;
}
.plan-cart-notice-left { display: flex; align-items: center; gap: 14px; }
.plan-cart-icon { font-size: 1.6rem; flex-shrink: 0; }
.plan-cart-notice strong { font-size: 0.9rem; color: var(--text); display: block; margin-bottom: 3px; }
.plan-cart-notice p { font-size: 0.78rem; color: var(--text2); }

/* ============================================================
   采购页新增：规划清单区
   ============================================================ */
.proc-cart-section {
  background: var(--card); border-radius: var(--radius);
  border: 2px solid rgba(26,108,246,0.2);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 24px;
}
.proc-cart-list { padding: 0 20px; }
.proc-cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.proc-cart-item:last-child { border-bottom: none; }
.proc-cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.proc-cart-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700;
  background: rgba(26,108,246,0.1); color: var(--primary);
  width: fit-content; margin-bottom: 2px;
}
.proc-cart-item-info strong { font-size: 0.88rem; color: var(--text); }
.proc-cart-desc { font-size: 0.78rem; color: var(--text2); }
.proc-cart-item-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.proc-cart-note { padding: 16px 20px; background: var(--bg); border-top: 1px solid var(--border); }
.proc-cart-global-note {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; font-family: inherit; resize: vertical; min-height: 70px;
  color: var(--text); background: var(--card);
}
.proc-cart-global-note:focus { outline: none; border-color: var(--primary); }

