/* =========================================================
   山西高考志愿填报 · 阳光科技设计系统
   暖阳金 + 科技蓝青 / 明亮白玻璃 / 蓝图网格 / 柔和彩色投影
   （类名与旧版完全一致，整站通用）
   ========================================================= */
:root {
  --bg: #eef3fc;
  --text: #0f2148;          /* 深海军蓝，正式又有科技感 */
  --text-soft: #3c4d70;
  --muted: #6b7a96;
  --accent: #2563eb;        /* 科技蓝 */
  --accent-cyan: #06b6d4;   /* 青 */
  --sun: #f59e0b;           /* 暖阳金 */
  --coral: #ff7a59;         /* 暖珊瑚 */
  --accent-2: #16a34a;

  --grad-tech: linear-gradient(135deg, #2563eb 0%, #22b8cf 100%);
  --grad-sun: linear-gradient(135deg, #ffb020 0%, #ff7a59 100%);
  --grad-text: linear-gradient(120deg, #2563eb, #06b6d4 60%, #f59e0b);

  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 255, 255, 0.55);
  --line: rgba(15, 33, 72, 0.10);
  --line-strong: rgba(15, 33, 72, 0.16);
  --ring: rgba(37, 99, 235, 0.30);

  --shell: min(1180px, calc(100vw - 32px));
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px -22px rgba(37, 99, 235, 0.28), 0 8px 24px -14px rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 6px 18px -8px rgba(15, 33, 72, 0.18);
  --font: "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(255, 196, 120, 0.55) 0%, rgba(255, 196, 120, 0) 55%),
    radial-gradient(1000px 720px at -12% 112%, rgba(120, 196, 255, 0.55) 0%, rgba(120, 196, 255, 0) 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(34, 211, 238, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #eef3fc 100%);
  background-attachment: fixed;
}

a, button, input, textarea, select { font: inherit; }
.shell { width: var(--shell); margin: 0 auto; }

/* ---- 背景层：暖阳/科技光晕 + 蓝图网格 ---- */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -10; }
.bg-orb { position: fixed; z-index: -2; filter: blur(110px); opacity: 0.5; pointer-events: none; border-radius: 50%; }
.orb-a { width: 460px; height: 460px; top: -8%; right: -4%; background: radial-gradient(circle, rgba(255, 176, 32, 0.7), rgba(255, 122, 89, 0.25)); }
.orb-b { width: 520px; height: 520px; left: -10%; bottom: -6%; background: radial-gradient(circle, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.2)); }
.grid-mask {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 100%);
}

/* ---- 顶栏 ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0 18px; position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: var(--grad-tech);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.6);
}
.brand-subtitle {
  margin: 0 0 3px; font-size: 12px; letter-spacing: .12em;
  color: var(--accent); font-weight: 700; text-transform: uppercase;
}
.micro-label { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.site-header h1, .hero-panel h2, .section-head h3, .modal-card h3 { margin: 0; }
.site-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }

.top-nav { display: flex; align-items: center; gap: 8px; }
.nav-ghost {
  padding: 9px 16px; border-radius: 12px; text-decoration: none;
  color: var(--text-soft); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all .18s ease;
}
.nav-ghost:hover { background: var(--panel); border-color: var(--line); color: var(--accent); }
.current-user { cursor: default; }
.current-user:hover { background: transparent; border-color: transparent; color: var(--text-soft); }

/* ---- 卡片 ---- */
.page-stack { display: grid; gap: 22px; padding: 18px 0 44px; }
.home-stack { display: flex; flex-direction: column; gap: 34px; padding: 32px 0 56px; }
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-radius: var(--radius-xl);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.glass-subtle {
  background: var(--panel-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
}
.chat-card, .help-card, .notice-strip { padding: 28px; }
.section-head { margin-bottom: 20px; }
.section-head h3 { font-size: 20px; font-weight: 700; color: var(--text); }
.feature-shell { display: grid; gap: 16px; }
.compact-card { padding: 26px; }
.hero-panel { padding: 40px; }
.hero-panel h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.hero-text { color: var(--text-soft); line-height: 1.7; font-size: 16px; }

/* ---- 首页 Hero ---- */
.hero-home {
  padding: 76px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}
.hero-home::before {
  content: ""; position: absolute; top: 0; left: 22%; width: 56%; height: 3px;
  background: var(--grad-text); border-radius: 3px; opacity: .85;
}
.hero-home-copy { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-home-text--tribute {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.4; letter-spacing: -0.02em;
  font-weight: 800; margin: 0;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-status { color: var(--muted); font-size: 14px; }

/* ---- 进入按钮（动态渐变环）---- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes marquee { 0% { --angle: 0deg; } 100% { --angle: 360deg; } }
.hero-home-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.enter-chat-btn {
  position: relative; text-decoration: none;
  min-height: 62px; padding: 0 46px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff !important;
  background: var(--grad-tech); background-clip: padding-box;
  border: 3px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.55);
}
.enter-chat-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 3px; margin: -3px;
  background: conic-gradient(from var(--angle), #2563eb, #06b6d4, #f59e0b, #ff7a59, #2563eb);
  animation: marquee 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.enter-chat-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 50px -12px rgba(37, 99, 235, 0.6); }
.hero-home-note { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---- 知识图谱区 ---- */
.graph-board { padding: 36px; }
.graph-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr); gap: 28px; align-items: stretch; }
.graph-stage {
  position: relative; min-height: 600px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(224, 238, 255, 0.55));
  border: 1px solid var(--line); box-shadow: inset 0 2px 30px rgba(37, 99, 235, 0.05);
  overflow: hidden;
}
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.graph-lines path { fill: none; stroke: rgba(15, 33, 72, 0.14); stroke-width: 2; stroke-linecap: round; transition: all .4s ease; }
.graph-stage.is-hovered path, .graph-stage[data-active] path { opacity: 0.2; }
@keyframes flowLine { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }
.graph-stage[data-active="policy"] .line-policy,
.graph-stage[data-active="province"] .line-province,
.graph-stage[data-active="score"] .line-score,
.graph-stage[data-active="school"] .line-school,
.graph-stage[data-active="major"] .line-major,
.graph-stage[data-active="style"] .line-style,
.graph-stage[data-active="explain"] .line-core-bottom,
.graph-stage[data-active="route"] path {
  stroke-width: 3.5; stroke-dasharray: 6 6; animation: flowLine 1.5s linear infinite; opacity: 1;
}
.graph-stage[data-active="policy"] .line-policy { stroke: url(#grad-1); filter: drop-shadow(0 0 6px rgba(234,67,53,0.5)); }
.graph-stage[data-active="province"] .line-province { stroke: url(#grad-2); filter: drop-shadow(0 0 6px rgba(22,163,74,0.5)); }
.graph-stage[data-active="score"] .line-score { stroke: url(#grad-3); filter: drop-shadow(0 0 6px rgba(245,158,11,0.55)); }
.graph-stage[data-active="school"] .line-school { stroke: url(#grad-4); filter: drop-shadow(0 0 6px rgba(37,99,235,0.55)); }
.graph-stage[data-active="major"] .line-major { stroke: url(#grad-5); filter: drop-shadow(0 0 6px rgba(37,99,235,0.55)); }
.graph-stage[data-active="style"] .line-style { stroke: url(#grad-6); filter: drop-shadow(0 0 6px rgba(6,182,212,0.55)); }
.graph-stage[data-active="explain"] .line-core-bottom { stroke: url(#grad-7); filter: drop-shadow(0 0 6px rgba(255,122,89,0.55)); }
.graph-stage[data-active="route"] path { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(37,99,235,0.5)); }

.graph-node {
  position: absolute; display: flex; flex-direction: column; gap: 6px;
  min-width: 158px; padding: 14px 18px; text-align: left; border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px -14px rgba(15, 33, 72, 0.28), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; color: var(--text);
  transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: nodeFloat 6s ease-in-out infinite; overflow: hidden;
}
.graph-node::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(37, 99, 235, 0.12), transparent);
  transform: translateX(-100%); transition: 0.6s; pointer-events: none;
}
.graph-node:hover::before, .graph-node.is-active::before { transform: translateX(100%); }
.graph-node:nth-child(odd) { animation-duration: 7s; }
.graph-node:hover, .graph-node.is-active {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.05));
  box-shadow: 0 24px 44px -16px rgba(37, 99, 235, 0.45), 0 0 26px rgba(6, 182, 212, 0.18);
  color: var(--text);
}
.graph-node-core { border-color: rgba(37,99,235,0.4); background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.06)); }
.graph-node-mini { min-width: 120px; padding: 10px 14px; }
.graph-node-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.graph-node-meta { font-size: 12px; color: var(--muted); }
.graph-detail { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.graph-detail-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.graph-detail h4 { margin: 0 0 14px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.graph-detail p { margin: 0; color: var(--text-soft); line-height: 1.7; font-size: 16px; }
.graph-detail-list { margin: 22px 0 0; padding-left: 20px; color: var(--text-soft); line-height: 1.8; font-size: 15px; }
.graph-detail-list li::marker { color: var(--accent); }
.graph-head, .compact-head { margin-bottom: 18px; }

/* ---- 咨询工作台 ---- */
.notice-strip {
  padding: 16px 24px; color: var(--text-soft); font-size: 14px; text-align: center;
  background: linear-gradient(90deg, rgba(245,158,11,0.10), rgba(37,99,235,0.08));
}
.workspace-shell { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr); gap: 22px; }
.chat-main { display: flex; flex-direction: column; min-height: 680px; }
.chat-main .section-head h3, .help-card h3 { font-size: 20px; font-weight: 700; color: var(--text); }
.chat-stack { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.message-stream {
  flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 20px;
  border-radius: var(--radius-lg); overflow-y: auto; max-height: 60vh;
}
.message-stream:empty::before {
  content: "锦程志愿已就绪。在此输入您的问题进行咨询。";
  display: block; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 15px;
}
.message {
  padding: 18px 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm); max-width: 90%;
}
.message.user {
  align-self: flex-end; color: #fff;
  background: var(--grad-tech); border-color: transparent; border-bottom-right-radius: 4px;
}
.message.user .message-role { color: rgba(255,255,255,0.85); }
.message.user .message-body p { color: #fff; }
.message.assistant { align-self: flex-start; border-bottom-left-radius: 4px; }
.message.progress-message { min-width: min(520px, 100%); }
.message-role { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; display: block; }
.message-body p { margin: 0; line-height: 1.7; font-size: 16px; color: var(--text); }

.progress-card { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; padding: 2px 0; }
.progress-card::before {
  content: ""; position: absolute; inset: -40% -10%;
  background: radial-gradient(circle at 20% 40%, rgba(245,158,11,0.12), transparent 36%),
              radial-gradient(circle at 80% 65%, rgba(37,99,235,0.12), transparent 32%);
  opacity: 0.9; pointer-events: none; filter: blur(18px);
}
.progress-card::after {
  content: ""; position: absolute; inset: auto -30% -8px -30%; height: 26px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.14), transparent);
  transform: translateX(-40%); animation: progressSweep 2.6s ease-in-out infinite; pointer-events: none;
}
.progress-card-title { font-size: 15px; font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.progress-card-text { font-size: 14px; color: var(--text-soft); position: relative; z-index: 1; transition: color .35s ease, transform .35s ease, opacity .35s ease; }
.inline-progress { height: 8px; background: rgba(37,99,235,0.12); border-radius: 999px; overflow: hidden; position: relative; z-index: 1; }
.inline-progress .progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--grad-tech); transition: width .45s ease; box-shadow: 0 0 18px rgba(37,99,235,0.35); }

.chat-form { margin-top: auto; }
.composer-shell {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 24px; box-shadow: var(--shadow-sm); padding: 8px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.composer-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
textarea {
  flex: 1; min-height: 24px; max-height: 120px; background: transparent; border: none;
  padding: 12px 14px; font-size: 16px; color: var(--text); resize: none; outline: none; font-family: var(--font);
}
textarea::placeholder { color: var(--muted); }
.send-btn {
  position: relative; min-width: 44px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--grad-tech); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px -8px rgba(37,99,235,0.7);
}
.send-btn:hover { transform: scale(1.06); box-shadow: 0 12px 24px -8px rgba(37,99,235,0.8); }
.send-icon { font-size: 18px; font-weight: bold; transform: translateY(-1px); }

/* ---- 帮助/侧栏 ---- */
.help-card { display: flex; flex-direction: column; gap: 18px; }
.help-copy { display: flex; flex-direction: column; gap: 12px; }
.help-copy p {
  margin: 0; padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  color: var(--text-soft); font-size: 15px; line-height: 1.7;
}
.help-copy strong { color: var(--accent); font-weight: 700; }
.queue-panel { padding: 16px; border-radius: 16px; background: rgba(37,133,244,.06); border: 1px solid rgba(37,99,235,.25); margin-bottom: 14px; }
.queue-top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.queue-hint, .queue-modal-hint { color: var(--muted); font-size: 13px; }
.progress-track, .modal-progress-track { width: 100%; height: 8px; border-radius: 999px; background: rgba(37,99,235,.12); overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: var(--grad-tech); transition: width .3s ease; }

/* ---- 表单（admin-grid 通用：标签在上、输入框占满）---- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.admin-grid label, .stacked-field { display: flex; flex-direction: column; gap: 8px; }
.admin-grid label > span, .stacked-field > span { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.admin-grid input, .admin-grid select, .stacked-field input, .stacked-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-grid input::placeholder { color: var(--muted); }
.admin-grid input:focus, .admin-grid select:focus, .stacked-field input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.admin-grid textarea {
  width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); line-height: 1.6;
}

/* ---- 按钮 ---- */
.primary-btn:not(.enter-chat-btn):not(.send-btn) {
  padding: 12px 26px; background: var(--grad-tech); color: #fff; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 28px -12px rgba(37,99,235,0.6); transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn:not(.enter-chat-btn):not(.send-btn):hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(37,99,235,0.7); }
.primary-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.ghost-btn { padding: 11px 22px; background: var(--panel); color: var(--text); border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; text-decoration: none; font-weight: 600; }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 弹窗 ---- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 90; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 33, 72, .35); backdrop-filter: blur(10px); }
.modal-card, .queue-modal-card {
  position: relative; background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  width: min(420px, calc(100vw - 32px)); padding: 32px; text-align: center;
  border-radius: calc(var(--radius-xl) - 4px); box-shadow: var(--shadow);
}
.countdown-ring { color: var(--accent); }

/* ---- 动画 / 工具 ---- */
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4, .reveal-delay-5 {
  opacity: 0; transform: translateY(16px); animation: fadeUp .6s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.reveal-delay-3 { animation-delay: .24s; }
.reveal-delay-4 { animation-delay: .32s; }
.reveal-delay-5 { animation-delay: .40s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes nodeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progressSweep { 0% { transform: translateX(-45%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(45%); opacity: 0; } }
.hidden { display: none !important; }
.meta-stack { display: flex; flex-direction: column; gap: 6px; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .workspace-shell, .graph-layout { grid-template-columns: 1fr; }
  .chat-main, .help-card, .graph-stage { min-height: auto; }
  .graph-stage { height: 600px; }
  .message-stream { max-height: 50vh; }
}
@media (max-width: 640px) {
  .shell { width: 100%; padding: 0 12px; }
  .site-header { flex-wrap: wrap; gap: 10px; }
  .hero-home { padding: 44px 22px; }
  .hero-home-text--tribute { font-size: 26px; }
  .enter-chat-btn { font-size: 18px; padding: 0 34px; min-height: 54px; }
  .chat-card, .help-card, .graph-board { padding: 20px; }
  .message { max-width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
}

/* ===================== 精准填报页 ===================== */
.tb-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.tb-form-card { padding: 22px; position: sticky; top: 16px; }
.tb-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.tb-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-soft); }
.tb-field span { font-weight: 600; }
.tb-field input, .tb-field select {
  height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.7); color: var(--text); font-size: 15px; font-family: var(--font); outline: none;
}
.tb-field input:focus, .tb-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.tb-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.6); color: var(--text-soft); font-size: 12px; cursor: pointer; transition: .15s; }
.tb-chip:hover { border-color: var(--accent); color: var(--accent); }
.tb-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tb-submit { width: 100%; height: 48px; margin-top: 6px; }
.tb-form-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 4px 0 0; }

.tb-result-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tb-summary { padding: 18px 22px; }
.tb-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tb-summary-grid > div { display: flex; flex-direction: column; gap: 2px; }
.tb-sum-k { font-size: 12px; color: var(--muted); }
.tb-sum-v { font-size: 19px; font-weight: 700; color: var(--text); }
.tb-sum-v.hot { color: var(--coral); }
.tb-rank-source { margin-top: 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

.tb-bands { display: flex; flex-direction: column; gap: 14px; }
.tb-band { padding: 16px 18px; border-left: 4px solid var(--line-strong); }
.tb-band[data-band="冲"] { border-left-color: var(--coral); }
.tb-band[data-band="稳"] { border-left-color: var(--accent); }
.tb-band[data-band="保"] { border-left-color: var(--accent-2); }
.tb-band-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tb-band-name { font-size: 18px; font-weight: 800; padding: 2px 12px; border-radius: 10px; color: #fff; }
.band-chong { background: var(--coral); } .band-wen { background: var(--accent); }
.band-bao { background: var(--accent-2); } .band-risk { background: var(--muted); }
.tb-band-sub { font-size: 12px; color: var(--muted); }
.tb-band-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 10px; }

.tb-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: rgba(255,255,255,.55); }
.tb-item-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tb-school { font-size: 15px; font-weight: 700; color: var(--text); }
.tb-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.lv-985 { background: #fde2e2; color: #c0392b; } .lv-211 { background: #e0ecff; color: #2563eb; }
.lv-normal { background: #e9eef6; color: #5b6b86; }
.tb-loc { font-size: 12px; color: var(--muted); }
.tb-subj { font-size: 11px; color: var(--accent-cyan); margin-left: auto; }
.tb-item-rank { font-size: 12.5px; color: var(--text-soft); margin: 7px 0 6px; }
.tb-item-rank b { color: var(--text); }
.tb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tb-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #eef2f8; color: var(--muted); }
.tb-tag.tag-warn { background: #fff3e0; color: #c77700; }
.tb-tag.tag-dim { background: #f0f0f3; color: #9aa3b2; }
.tb-years { width: 100%; border-collapse: collapse; font-size: 11.5px; margin: 2px 0 8px; }
.tb-years th, .tb-years td { border: 1px solid var(--line); padding: 2px 5px; text-align: center; color: var(--text-soft); }
.tb-years th { background: rgba(37,99,235,.06); font-weight: 600; }
.tb-plan { font-size: 11.5px; color: var(--accent); margin-bottom: 6px; }
.tb-reason { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tb-item-empty { font-size: 13px; color: var(--muted); padding: 8px 2px; }

.tb-band-risk { border-left-color: var(--muted); }
.tb-band-risk summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; list-style: none; }
.tb-band-risk summary::-webkit-details-marker { display: none; }
.tb-band-risk[open] summary { margin-bottom: 12px; }

.tb-comment { padding: 18px 22px; }
.tb-comment-body { font-size: 15px; line-height: 1.85; color: var(--text); }
.tb-comment-body p { margin: 0 0 12px; }
.tb-caveats { padding: 14px 20px; font-size: 12.5px; color: var(--muted); }
.tb-caveats ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }

.tb-empty { padding: 34px 26px; border-radius: var(--radius-lg); font-size: 14px; color: var(--text-soft); line-height: 1.8; text-align: center; }
.tb-loading { display: flex; align-items: center; gap: 12px; padding: 26px; font-size: 14px; color: var(--text-soft); }
.tb-spinner { width: 20px; height: 20px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: tb-spin .8s linear infinite; flex: none; }
@keyframes tb-spin { to { transform: rotate(360deg); } }
.tb-err { color: var(--coral); }

@media (max-width: 880px) {
  .tb-layout { grid-template-columns: 1fr; }
  .tb-form-card { position: static; }
}

/* ===== 聊天页·冲稳保表格 ===== */
.chat-reco { font-size: 13px; }
.chat-reco-sum { margin-bottom: 10px; color: var(--text-soft); line-height: 1.7; }
.chat-reco-sum b { color: var(--coral); font-size: 16px; }
.chat-reco-sum .rc-src { color: var(--muted); font-size: 12px; }
.chat-reco-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.6); border-radius: 10px; overflow: hidden; }
.chat-reco-table th, .chat-reco-table td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: middle; }
.chat-reco-table th { background: rgba(37,99,235,.07); font-weight: 600; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.chat-reco-table .rc-school { font-weight: 600; color: var(--text); }
.chat-reco-table .rc-mid { color: var(--muted); font-size: 11px; margin-left: 3px; }
.chat-reco-table .rc-wave { color: #c77700; font-size: 12px; }
.rc-band { text-align: center !important; font-weight: 800; font-size: 16px; color: #fff; width: 32px; }
.rc-band.rc-chong { background: var(--coral); }
.rc-band.rc-wen { background: var(--accent); }
.rc-band.rc-bao { background: var(--accent-2); }
.chat-reco-foot { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ===== 回答里的轻量 markdown ===== */
.message-body .md-h { font-size: 15.5px; font-weight: 700; margin: 15px 0 7px; color: var(--text); letter-spacing: .2px; }
.message-body .md-ul, .message-body .md-ol { margin: 6px 0; padding-left: 22px; line-height: 1.85; }
.message-body .md-ul li, .message-body .md-ol li { margin: 3px 0; }
.message-body strong { color: var(--accent); font-weight: 700; }
.message-body code { background: rgba(37,99,235,.08); padding: 1px 5px; border-radius: 5px; font-size: 13px; color: var(--text); }
