/* === 云程 · 品牌视觉 ===
   墨黑 #1A1A1A | 朱砂红 #C0392B | 宣纸白 #FBFAF6 | 浅墨灰 #8C8A82
   字体: 思源宋体(Songti SC)标题 + system sans 正文
   气质: 东方留白，克制沉静
*/

:root {
  --ink: #1A1A1A;
  --muted: #8C8A82;
  --line: #DCD7CD;
  --paper: #FBFAF6;
  --soft: #F5F2EB;
  --accent: #C0392B;
  --accent-dark: #96281B;
  --surface: #FFFFFF;
  --blue: #1769e0;
  --blue-dark: #0f4fb0;
  --green: #0f8f72;
  --orange: #d97706;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* === main 容器 === */
main { display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }

/* === 导航 === */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  background: rgba(251,250,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--ink); letter-spacing: 2px;
}

.topbar-brand svg { height: 36px; width: auto; }

.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a {
  padding: 6px 16px; border-radius: var(--radius);
  font-size: 0.9rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.topbar-nav a:hover { color: var(--ink); background: var(--soft); }
.topbar-nav a.active { color: var(--accent); font-weight: 600; }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { background: var(--soft); }

.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline { background: transparent; border-color: var(--line); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--soft); }

.btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* === 卡片 === */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* === 表单 === */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink); background: var(--surface);
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
}
.hero h1 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 2rem; font-weight: 600; color: var(--ink);
  margin-bottom: 12px; letter-spacing: 1px;
}
.hero p {
  font-size: 1rem; color: var(--muted); max-width: 520px;
  margin: 0 auto 32px;
}

.hero-img {
  display: block; max-width: 100%; height: auto;
  margin: 0 auto; border-radius: var(--radius-lg);
}

/* === 首页 feature 卡片 === */
.features {
  padding: 48px 24px;
  max-width: 960px; margin: 0 auto;
}
.features h2 {
  text-align: center;
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--ink);
  margin-bottom: 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.feature-card h4 {
  font-size: 1rem; font-weight: 600; padding: 16px 0 8px;
}
.feature-card p {
  font-size: 0.88rem; color: var(--muted); line-height: 1.55;
}
.f-icon { font-size: 2.2rem; }

/* === 聊天三栏 === */
.chat-shell {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  height: calc(100vh - 57px);
  overflow: hidden;
}

/* 左栏: 考生画像 */
.profile-panel {
  border-right: 1px solid var(--line);
  padding: 20px;
  overflow-y: auto;
  background: var(--surface);
}
.profile-panel h2 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--ink);
}
.profile-panel label {
  display: block; margin-bottom: 3px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.profile-panel input,
.profile-panel select {
  width: 100%; padding: 8px 10px; margin-bottom: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--ink); background: var(--paper);
  outline: none;
}
.profile-panel input:focus,
.profile-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.06);
}

/* 中栏: 对话 */
.chat-panel {
  display: flex; flex-direction: column;
  min-height: 0; background: var(--paper);
}
.chat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.toolbar-actions { display: flex; align-items: center; gap: 8px; }

.mode-toggle {
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.mode-toggle:hover { border-color: var(--muted); }
.mode-toggle.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(192,57,43,0.2);
}

.quick-prompts {
  display: flex; gap: 8px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
  background: var(--surface);
}
.quick-prompts button {
  flex-shrink: 0;
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  cursor: pointer; transition: all 0.15s;
}
.quick-prompts button:hover {
  border-color: var(--accent); color: var(--accent);
}

.messages {
  flex: 1; overflow-y: auto; padding: 20px;
}
.message {
  max-width: 85%; margin-bottom: 16px; padding: 12px 16px;
  border-radius: var(--radius-lg); font-size: 0.92rem; line-height: 1.6;
}
.message.user {
  margin-left: auto;
  background: var(--soft);
  border: 1px solid var(--line);
}
.message.assistant {
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  display: flex; align-items: flex-start; gap: 10px;
}
.msg-avatar {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; font-family: 'Songti SC', serif;
}
.msg-body { flex: 1; min-width: 0; }
.msg-name { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.msg-text { white-space: pre-wrap; word-break: break-word; }

/* AI 思考动画 — 摇动省略号 */
.thinking-dots { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.thinking-dots i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: thinking-bounce 1.4s infinite ease-in-out both;
}
.thinking-dots i:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots i:nth-child(2) { animation-delay: -0.16s; }
.thinking-dots i:nth-child(3) { animation-delay: 0s; }
@keyframes thinking-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.chat-input-area {
  border-top: 1px solid var(--line);
  padding: 16px 20px; background: var(--surface);
}
.chat-input-row {
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input-row textarea {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink); background: var(--paper);
  outline: none; resize: none; min-height: 44px; max-height: 120px;
}
.chat-input-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.06);
}

/* 右栏: 实时摘要 */
.result-panel {
  border-left: 1px solid var(--line);
  padding: 20px; overflow-y: auto;
  background: var(--surface);
}
.result-panel h2 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--ink);
}
.prob-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.prob-label { font-weight: 600; }
.prob-value {
  font-family: 'Songti SC', serif; font-size: 1.1rem; font-weight: 600;
}
.timeline-item {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 0.85rem; line-height: 1.5;
}
.timeline-item strong {
  display: block; font-size: 0.88rem; color: var(--accent); margin-bottom: 4px;
}

/* === 管理后台（分页式）=== */
.admin-layout {
  display: grid; grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 57px);
}

/* 侧边栏 */
.admin-pages-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 12px; background: var(--surface);
}
.aps-section {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  text-transform: none; letter-spacing: 1px;
  padding: 4px 10px; margin-bottom: 10px;
}
.aps-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 2px; border-radius: var(--radius);
  font-size: 0.88rem; color: var(--muted); cursor: pointer;
  transition: all 0.12s; text-decoration: none;
}
.aps-item:hover { background: var(--soft); color: var(--ink); }
.aps-item.active { background: var(--soft); color: var(--accent); font-weight: 600; }
.aps-icon { font-size: 1rem; width: 22px; text-align: center; }

/* 页面主体 */
.admin-page-body { overflow-y: auto; }
.aps-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.aps-title {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0;
}
.aps-desc { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0 0; line-height: 1.4; }
.aps-actions { display: flex; gap: 8px; flex-shrink: 0; align-self: center; }

/* 旧兼容 */
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-sidebar { display: none; }
.admin-content { display: none; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-main { padding: 24px 32px; overflow-y: auto; }
.admin-main h2 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; color: var(--ink);
}
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

/* 知识库列表（鑫淼风格）*/
.kb-list-wrap { padding: 0 24px 24px; }
.kb-list-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 8px;
  cursor: pointer; background: var(--surface);
  transition: all 0.15s;
}
.kb-list-item:hover {
  border-color: var(--muted);
  box-shadow: 0 4px 12px rgba(26,26,26,0.06);
}
.kb-list-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px; background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--accent); font-weight: 600;
}
.kb-list-body { flex: 1; min-width: 0; }
.kb-list-title {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.kb-list-preview {
  font-size: 0.78rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-list-tag {
  flex-shrink: 0; font-size: 0.7rem; padding: 2px 8px;
  border-radius: 3px; background: var(--soft); color: var(--muted); font-weight: 500;
}
.kb-list-empty {
  text-align: center; padding: 48px 20px; color: var(--muted); font-size: 0.87rem;
}
.kb-list-empty-icon { font-size: 2.4rem; opacity: 0.25; margin-bottom: 8px; }

/* 知识库表单 */
.kb-form {
  background: var(--soft); padding: 20px; border-radius: var(--radius-lg);
  margin: 0 24px 16px; border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.kb-form.collapsed { padding: 0; max-height: 0; overflow: hidden; border-color: transparent; margin: 0 24px; }
.kb-form label { display: block; margin-bottom: 12px; }
.kb-form label.wide { margin-bottom: 0; }

/* === 表格 === */
table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
th {
  text-align: left; padding: 10px 12px;
  font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--line);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
tr:hover td { background: var(--soft); }

.table-action {
  padding: 2px 10px; border-radius: var(--radius);
  font-size: 0.82rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--accent);
  cursor: pointer;
}
.table-action:hover { background: var(--soft); }

/* === 登录页 === */
.login-card {
  max-width: 400px; margin: 120px auto 0;
}
.login-card h1 {
  text-align: center;
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.6rem; font-weight: 600; color: var(--ink);
  margin-bottom: 28px; letter-spacing: 2px;
}

/* === 页脚 === */
.footer {
  text-align: center; padding: 40px 24px;
  font-size: 0.82rem; color: var(--muted);
}

/* === 兼容旧class === */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer;
  transition: all 0.15s;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.full { width: 100%; }

.student-form label {
  display: block; margin-bottom: 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.student-form input,
.student-form select {
  display: block; width: 100%; padding: 8px 10px; margin-top: 3px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--ink); background: var(--paper);
  outline: none;
}
.student-form input:focus,
.student-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.06);
}

.hint-box {
  margin-top: 16px; padding: 12px;
  background: var(--soft); border-radius: var(--radius);
  font-size: 0.8rem; color: var(--muted);
}
.hint-box strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 0.85rem; }

.composer {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 16px 20px; border-top: 1px solid var(--line);
  background: var(--surface);
}
.composer textarea {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink); background: var(--paper);
  outline: none; resize: none; min-height: 44px; max-height: 120px;
  font-family: inherit;
}
.composer textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.06);
}

.toolbar-actions { display: flex; gap: 8px; }

.icon-button {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.82rem; color: var(--muted); cursor: pointer;
}
.icon-button:hover { border-color: var(--muted); color: var(--ink); }

.probability {
  display: flex; gap: 8px; margin: 16px 0;
}
.probability > div {
  flex: 1; text-align: center;
  padding: 10px 8px; border-radius: var(--radius);
  background: var(--soft);
}
.probability span {
  display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px;
}
.probability strong {
  font-family: 'Songti SC', 'Source Han Serif SC', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--accent);
}

.eyebrow {
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
  text-transform: none; letter-spacing: 0;
  margin-bottom: 4px;
}

.panel-header h1 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--ink);
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
}

/* === 首页 hero === */
.home-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1040px; margin: 0 auto; padding: 64px 24px 48px; align-items: center;
}
.hero-copy { max-width: 480px; }
.hero-copy h1 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.85rem; font-weight: 600; color: var(--ink);
  margin: 14px 0; line-height: 1.35;
}
.hero-copy .lead {
  font-size: 1rem; color: var(--muted); margin-bottom: 28px; line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; }
.hero-actions a.button.primary {
  padding: 12px 28px; font-size: 1rem; border-radius: var(--radius-lg);
}
.hero-media { position: relative; }
.hero-media svg { width: 100%; height: auto; }

.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; max-width: 1040px; margin: 0 auto; padding: 24px 24px 72px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 20px; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--muted);
  box-shadow: 0 4px 16px rgba(26,26,26,0.06);
}
.feature-card h2 {
  font-family: 'Songti SC', 'Source Han Serif SC', 'SimSun', serif;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin: 14px 0 8px;
}
.feature-card p {
  font-size: 0.88rem; color: var(--muted); line-height: 1.55;
}
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 0 auto;
  border-radius: 50%; background: linear-gradient(135deg, #FEF2F2, #FCE8E8);
  font-family: 'Songti SC', serif; font-size: 1.3rem;
  color: var(--accent); font-weight: 700;
}

/* === 登录页 === */
.login-shell {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.login-card .brand {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 24px;
  font-family: 'Songti SC', serif; font-size: 1.2rem;
  font-weight: 600; color: var(--ink);
}
.login-card h1 {
  font-family: 'Songti SC', 'Source Han Serif SC', serif;
  font-size: 1.3rem; font-weight: 600; margin-bottom: 8px;
}
.login-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.login-form label {
  display: block; margin-bottom: 16px;
  font-size: 0.85rem; font-weight: 600;
}
.login-form input {
  display: block; width: 100%; padding: 10px 14px; margin-top: 4px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink); background: var(--surface);
  outline: none;
}
.login-form input:focus { border-color: var(--accent); }
.login-error { color: var(--accent); font-size: 0.85rem; margin-top: 12px; text-align: center; }

/* === nav-button compatibility === */
.nav-button {
  padding: 4px 10px; border-radius: var(--radius);
  font-size: 0.82rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.nav-button:hover { border-color: var(--accent); color: var(--accent); }

/* === brand-mark compatibility === */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-family: 'Songti SC', serif; font-size: 0.9rem; font-weight: 700;
}

/* === 招生数据搜索 === */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-stats .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; text-align: center; }
.adm-stats .stat-card .num { font-family: 'Songti SC', serif; font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.adm-stats .stat-card .label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.adm-search-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.adm-search-bar input, .adm-search-bar select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; outline: none; background: var(--surface); }
.adm-search-bar input:focus, .adm-search-bar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,57,43,0.06); }
.adm-search-bar input { min-width: 140px; }

.adm-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 12px; }
.adm-pagination button { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: 0.82rem; color: var(--ink); }
.adm-pagination button:hover { background: var(--soft); }
.adm-pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.adm-pagination button:disabled { color: var(--muted); cursor: not-allowed; }
.adm-pagination .page-info { font-size: 0.82rem; color: var(--muted); margin: 0 8px; }

.score-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-weight: 600; font-size: 0.82rem; }
.score-red { background: #fef2f2; color: #c2410c; }
.score-orange { background: #fff7ed; color: #d97706; }
.score-blue { background: #eff6ff; color: #1769e0; }
.score-green { background: #f0fdf4; color: #0f8f72; }

.badge-df { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.72rem; background: #fef3c7; color: #92400e; margin-left: 4px; }
.badge-rec { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.72rem; background: #dbeafe; color: #1e40af; margin-left: 4px; }

/* === 响应式 === */
@media (max-width: 980px) {
  .chat-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .profile-panel { display: none; }
  .result-panel { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .home-hero { grid-template-columns: 1fr; text-align: center; padding: 48px 20px 32px; }
  .hero-copy { max-width: 100%; }
  .hero-media { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .topbar-nav a { padding: 4px 10px; font-size: 0.82rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 40px 16px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .chat-input-area { padding: 12px; }
}
