/* ============================================================
   智慧星高报 — 首页仪表盘样式 v6
   Brand: 智慧星高报 (ZhihuiXing Gaobao)
   Design System: Data Dashboard, Professional, Clean
   Prefix: zhx- (isolated from quark.css)
   Grid base: 8px
   ============================================================ */

/* ==== ROOT: Design Tokens ==== */
.zhx-home {
  --zhx-primary: #2563EB;
  --zhx-primary-light: #EFF6FF;
  --zhx-primary-dark: #1D4ED8;
  --zhx-success: #10B981;
  --zhx-success-light: #ECFDF5;
  --zhx-warning: #F59E0B;
  --zhx-warning-light: #FFFBEB;
  --zhx-danger: #EF4444;
  --zhx-danger-light: #FEF2F2;
  --zhx-bg: #F5F6FA;
  --zhx-card-bg: #FFFFFF;
  --zhx-card-border: #E8ECF4;
  --zhx-card-shadow: 0 1px 4px rgba(0,0,0,0.04);
  --zhx-card-shadow-hover: 0 2px 12px rgba(0,0,0,0.08);
  --zhx-text-primary: #1E293B;
  --zhx-text-secondary: #475569;
  --zhx-text-tertiary: #94A3B8;
  --zhx-divider: #F1F5F9;
  --zhx-radius-lg: 16px;
  --zhx-radius-md: 12px;
  --zhx-radius-sm: 8px;
  --zhx-radius-xs: 6px;
  --zhx-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ==== PAGE CONTAINER ==== */
.zhx-home {
  background: var(--zhx-bg);
  min-height: 100vh;
}
.zhx-home-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

/* ==== SECTION TITLE ==== */
.zhx-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zhx-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.zhx-section-title .zhx-sec-icon {
  width: 18px; height: 18px;
  color: var(--zhx-primary);
  flex-shrink: 0;
}

/* =================================================================
   ROW 1: CTA CARD + TOOLBOX (2:1 ratio)
   ================================================================= */
.zhx-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* =================================================================
   CTA CARD — Full-width smart recommendation card
   ================================================================= */
.zhx-cta-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 50%, #F5F3FF 100%);
  border-radius: var(--zhx-radius-lg);
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(37,99,235,0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient accent */
.zhx-cta-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #7C3AED, #2563EB);
  border-radius: 16px 16px 0 0;
  opacity: 0.5;
  pointer-events: none;
}

/* Subtle corner decoration */
.zhx-cta-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== CTA STATE CONTAINERS ===== */
.zhx-cta-state {
  position: relative;
  z-index: 1;
}

/* ===== GUEST STATE - 未登录输入区 ===== */
.zhx-cta-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}

.zhx-cta-input-item {
  flex: 1 1 0;
  min-width: 0;
}

.zhx-cta-input-item:first-child {
  flex: 0 0 130px;
}

.zhx-cta-input-item:nth-child(2) {
  flex: 0 0 160px;
}

.zhx-cta-input-score {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

/* 分数→位次实时预览 */
.zhx-score-rank-hint {
  position: absolute;
  left: 14px;
  bottom: -20px;
  font-size: 11px;
  color: #059669;
  white-space: nowrap;
  animation: zhxRankFadeIn 0.3s ease;
}
.zhx-score-rank-hint strong {
  font-weight: 700;
  color: #047857;
}
@keyframes zhxRankFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.zhx-cta-input-item select,
.zhx-cta-input-item input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  background: #FAFBFC;
  font-size: 14px;
  color: var(--zhx-text-primary);
  cursor: pointer;
  transition: var(--zhx-transition);
  appearance: auto;
}
.zhx-cta-input-item input {
  cursor: text;
}
.zhx-cta-input-item select:hover,
.zhx-cta-input-item input:hover {
  border-color: #CBD5E1;
}
.zhx-cta-input-item select:focus,
.zhx-cta-input-item input:focus {
  outline: none;
  border-color: var(--zhx-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: #FFFFFF;
}

.zhx-cta-input-item input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

/* ===== 科目选择器 ===== */
.zhx-subject-wrap {
  position: relative;
}

.zhx-subject-display {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  background: #FAFBFC;
  font-size: 14px;
  color: var(--zhx-text-primary);
  cursor: pointer;
  transition: var(--zhx-transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.zhx-subject-display:hover {
  border-color: #CBD5E1;
}
.zhx-subject-display.active {
  border-color: var(--zhx-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: #FFFFFF;
}
.zhx-subject-display svg {
  color: #94A3B8;
  transition: transform 0.2s;
}
.zhx-subject-display.active svg {
  transform: rotate(180deg);
}

.zhx-subject-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 14px;
  min-width: 280px;
}

.zhx-subject-hint {
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
  padding: 8px 0;
}

.zhx-subject-group {
  margin-bottom: 10px;
}
.zhx-subject-group:last-child {
  margin-bottom: 0;
}
.zhx-subject-group-label {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 6px;
  font-weight: 500;
}

.zhx-subject-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zhx-subject-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 6px;
  background: #FAFBFC;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-weight: 500;
}
.zhx-subject-tag:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
}
.zhx-subject-tag.selected {
  border-color: var(--zhx-primary);
  background: var(--zhx-primary-light);
  color: var(--zhx-primary);
  font-weight: 600;
}
.zhx-subject-tag.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zhx-subject-mode-badge {
  display: inline-block;
  font-size: 11px;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ===== STATS BAR (Progress Bars) ===== */
.zhx-cta-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid var(--zhx-divider);
  position: relative;
  z-index: 1;
}

/* Guest-state stats (no divider lines, simpler) */
.zhx-cta-stats-guest {
  opacity: 0.5;
}

.zhx-cta-stat {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.zhx-cta-stat-bar-wrap {
  height: 4px;
  background: #F1F5F9;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.zhx-cta-stat-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.zhx-bar-rush {
  background: linear-gradient(90deg, #FCA5A5, #EF4444);
}

.zhx-bar-stable {
  background: linear-gradient(90deg, #FCD34D, #F59E0B);
}

.zhx-bar-safe {
  background: linear-gradient(90deg, #6EE7B7, #10B981);
}

.zhx-cta-stat-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.zhx-cta-stat-num.rush  { color: #EF4444; }
.zhx-cta-stat-num.stable { color: #F59E0B; }
.zhx-cta-stat-num.safe   { color: #10B981; }
.zhx-cta-stat-label {
  font-size: 13px;
  color: var(--zhx-text-tertiary);
  margin-top: 6px;
}
.zhx-cta-divider {
  width: 1px;
  height: 40px;
  background: var(--zhx-divider);
  flex-shrink: 0;
}

/* ===== 设置具体规则 链接 ===== */
.zhx-cta-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--zhx-text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--zhx-transition);
  white-space: nowrap;
  margin-left: auto;
  align-self: flex-end;
  font-weight: 500;
}
.zhx-cta-rules-link:hover {
  color: var(--zhx-primary);
  background: var(--zhx-primary-light);
}

.zhx-cta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.zhx-cta-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.zhx-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.zhx-cta-user-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(43,111,242,0.08), rgba(43,111,242,0.04));
  color: #2B6FF2;
  border: 1px solid rgba(43,111,242,0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.zhx-cta-user-tag:hover {
  background: rgba(43,111,242,0.12);
  border-color: rgba(43,111,242,0.25);
}
.zhx-cta-user-tag svg {
  flex-shrink: 0;
}

/* Preference selectors */
.zhx-cta-prefs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.zhx-cta-pref {
  flex: 1;
  min-width: 140px;
}

.zhx-cta-pref select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  background: #FAFBFC;
  font-size: 14px;
  color: var(--zhx-text-primary);
  cursor: pointer;
  appearance: auto;
  transition: var(--zhx-transition);
}
.zhx-cta-pref select:hover {
  border-color: #CBD5E1;
}
.zhx-cta-pref select:focus {
  outline: none;
  border-color: var(--zhx-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: #FFFFFF;
}

/* CTA Buttons */
.zhx-cta-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}

.zhx-btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2B6FF2, #1a5cd8);
  color: #FFFFFF;
  border: none;
  border-radius: var(--zhx-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(43,111,242,0.25);
  user-select: none;
}
.zhx-btn-primary-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(43,111,242,0.35);
}
.zhx-btn-primary-lg:active {
  transform: translateY(0) scale(0.98);
}

.zhx-btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #FFFFFF;
  color: #2B6FF2;
  border: 1.5px solid #2B6FF2;
  border-radius: var(--zhx-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.zhx-btn-outline-lg:hover {
  background: #EEF3FE;
  border-color: #1a5cd8;
  transform: translateY(-1px);
}

/* CTA Stats moved above — no duplicates */

/* =================================================================
   TOOLBOX CARD — 高考工具箱
   ================================================================= */
.zhx-toolbox-card {
  background: #FFFFFF;
  border-radius: var(--zhx-radius-lg);
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #E8ECF4;
  transition: box-shadow 0.2s;
}
.zhx-toolbox-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.zhx-toolbox-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zhx-text-primary);
  margin-bottom: 20px;
}
.zhx-toolbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.zhx-tb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border-radius: var(--zhx-radius-sm);
  cursor: pointer;
  transition: var(--zhx-transition);
  text-decoration: none;
}
.zhx-tb-item:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}
.zhx-tb-item:active {
  transform: translateY(0);
}

.zhx-tb-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zhx-tb-icon.bg-blue   { background: #EFF6FF; }
.zhx-tb-icon.bg-purple { background: #FAF5FF; }
.zhx-tb-icon.bg-orange { background: #FFF7ED; }
.zhx-tb-icon.bg-green  { background: #F0FDF4; }
.zhx-tb-icon.bg-red    { background: #FEF2F2; }
.zhx-tb-icon.bg-teal   { background: #F0FDFA; }
.zhx-tb-icon.bg-indigo { background: #EEF2FF; }
.zhx-tb-icon.bg-cyan   { background: #ECFEFF; }

.zhx-tb-icon svg {
  width: 20px;
  height: 20px;
}

.zhx-tb-label {
  font-size: 12px;
  color: var(--zhx-text-secondary);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* =================================================================
   ROW 2: 我的志愿表 + 我的报告 (2 columns) + 三列版本
   ================================================================= */
.zhx-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.zhx-mid-row.zhx-three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.zhx-mid-card {
  background: #FFFFFF;
  border-radius: var(--zhx-radius-lg);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #E8ECF4;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  transition: box-shadow 0.2s;
}
.zhx-mid-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.zhx-mid-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.zhx-mid-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zhx-text-primary);
}

.zhx-mid-card-more {
  font-size: 13px;
  color: var(--zhx-primary);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--zhx-transition);
}
.zhx-mid-card-more:hover {
  background: var(--zhx-primary-light);
}

/* Volunteer items */
.zhx-vol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  transition: background 0.15s;
}
.zhx-vol-item:hover {
  background: #FAFBFC;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}
.zhx-vol-item:last-child {
  border-bottom: none;
}
.zhx-vol-progress {
  flex: 1;
}
.zhx-vol-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  margin-bottom: 6px;
}
.zhx-vol-bar {
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}
.zhx-vol-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.zhx-vol-meta {
  font-size: 13px;
  color: var(--zhx-text-tertiary);
  text-align: right;
  flex-shrink: 0;
}

.zhx-vol-empty, .zhx-report-empty {
  color: var(--zhx-text-tertiary);
  font-size: 13px;
  padding: 16px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================================================================
   NEWS ROW — 最新招生信息 (horizontal scroll)
   ================================================================= */
.zhx-news-row {
  margin-bottom: 16px;
}
.zhx-news-scroll {
  background: var(--zhx-card-bg);
  border-radius: var(--zhx-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--zhx-card-shadow);
  border: 1px solid var(--zhx-card-border);
}
.zhx-news-scroll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.zhx-news-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #E2E8F0 transparent;
  padding-bottom: 4px;
}
.zhx-news-items::-webkit-scrollbar {
  height: 4px;
}
.zhx-news-items::-webkit-scrollbar-track {
  background: transparent;
}
.zhx-news-items::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 2px;
}

.zhx-news-card {
  flex: 0 0 220px;
  background: #FAFBFC;
  border-radius: var(--zhx-radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--zhx-transition);
  border: 1px solid transparent;
}
.zhx-news-card:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--zhx-card-shadow-hover);
}
.zhx-news-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zhx-news-card-date {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
}

/* =================================================================
   DATA SECTION — Generic section with tabs + content
   ================================================================= */
.zhx-data-section {
  background: #FFFFFF;
  border-radius: var(--zhx-radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #E8ECF4;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.zhx-data-section:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.zhx-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.zhx-section-extra {
  display: flex;
  gap: 0;
  background: #F1F5F9;
  border-radius: var(--zhx-radius-xs);
  padding: 2px;
}

.zhx-sort-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zhx-text-tertiary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--zhx-transition);
}
.zhx-sort-btn.active {
  background: #FFFFFF;
  color: var(--zhx-text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* TABS */
.zhx-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 20px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--zhx-divider);
}

.zhx-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--zhx-transition);
  white-space: nowrap;
  border-radius: 4px 4px 0 0;
}
.zhx-tab:hover {
  color: var(--zhx-primary);
  background: rgba(37,99,235,0.03);
}
.zhx-tab.active {
  color: var(--zhx-primary);
  border-bottom-color: var(--zhx-primary);
}

.zhx-tab-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  background: #F1F5F9;
  color: var(--zhx-text-tertiary);
}
.zhx-tab.active .zhx-tab-badge {
  background: var(--zhx-primary-light);
  color: var(--zhx-primary);
}

/* =================================================================
   SCHOOL RECOMMENDATION CARDS
   ================================================================= */
.zhx-school-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 20px;
}

.zhx-school-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #FAFBFC;
  border-radius: var(--zhx-radius-sm);
  cursor: pointer;
  transition: var(--zhx-transition);
  border: 1px solid transparent;
}
.zhx-school-card:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--zhx-card-shadow-hover);
  transform: translateY(-1px);
}

.zhx-sch-rank {
  width: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--zhx-text-tertiary);
  text-align: center;
  flex-shrink: 0;
}

.zhx-sch-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.zhx-sch-info {
  flex: 1;
  min-width: 0;
}
.zhx-sch-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zhx-sch-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.zhx-sch-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.zhx-sch-tag.rush  { background: var(--zhx-danger-light); color: #EF4444; }
.zhx-sch-tag.stable { background: var(--zhx-warning-light); color: #D97706; }
.zhx-sch-tag.safe   { background: var(--zhx-success-light); color: #059669; }

.zhx-sch-percent {
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.zhx-sch-percent.rush  { color: #EF4444; }
.zhx-sch-percent.stable { color: #D97706; }
.zhx-sch-percent.safe   { color: #10B981; }

.zhx-sch-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--zhx-text-tertiary);
  font-size: 14px;
}

/* =================================================================
   DATA TABLE (reusable)
   ================================================================= */
.zhx-data-table-wrap {
  padding: 0 20px 16px;
}

.zhx-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.zhx-data-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zhx-text-tertiary);
  border-bottom: 1px solid var(--zhx-divider);
  white-space: nowrap;
  background: #FAFBFC;
}
.zhx-data-table tbody td {
  padding: 10px 12px;
  color: var(--zhx-text-secondary);
  border-bottom: 1px solid #F8FAFC;
  white-space: nowrap;
}
.zhx-data-table tbody tr {
  transition: background 0.15s;
}
.zhx-data-table tbody tr:hover td {
  background: #FAFBFC;
}

.zhx-td-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.zhx-td-name {
  font-weight: 600;
  color: var(--zhx-text-primary);
  cursor: pointer;
  vertical-align: middle;
}
.zhx-td-name:hover {
  color: var(--zhx-primary);
}

.zhx-td-highlight {
  color: var(--zhx-primary);
  font-weight: 700;
}

.zhx-td-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.zhx-badge-green { background: var(--zhx-success-light); color: #059669; }
.zhx-badge-red   { background: var(--zhx-danger-light); color: #DC2626; }
.zhx-badge-blue  { background: var(--zhx-primary-light); color: var(--zhx-primary); }
.zhx-badge-amber { background: var(--zhx-warning-light); color: #D97706; }

/* =================================================================
   TWO-COLUMN DATA LAYOUT
   ================================================================= */
.zhx-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* =================================================================
   RANKING LIST
   ================================================================= */
.zhx-ranking-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
}

.zhx-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FAFBFC;
  border-radius: var(--zhx-radius-xs);
  cursor: pointer;
  transition: var(--zhx-transition);
  border: 1px solid transparent;
}
.zhx-rank-item:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--zhx-card-shadow-hover);
}

.zhx-rank-num {
  width: 24px;
  font-size: 14px;
  font-weight: 800;
  color: var(--zhx-primary);
  text-align: center;
  flex-shrink: 0;
}

.zhx-rank-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.zhx-rank-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zhx-rank-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--zhx-text-tertiary);
  font-size: 14px;
}

/* =================================================================
   SAME SCORE SECTION — Quark-style card grid
   ================================================================= */
.zhx-samescore-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 0;
  font-size: 14px;
  color: var(--zhx-text-secondary);
  font-weight: 600;
}
.zhx-samescore-score {
  color: var(--zhx-primary);
  font-weight: 800;
  font-size: 16px;
}

/* Same-score card grid (3 columns, Quark style) */
.zhx-same-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 20px;
}

.zhx-ss-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FAFBFC;
  border-radius: var(--zhx-radius-sm);
  cursor: pointer;
  transition: var(--zhx-transition);
  border: 1px solid transparent;
  position: relative;
}
.zhx-ss-card:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--zhx-card-shadow-hover);
  transform: translateY(-1px);
}

.zhx-ss-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.zhx-ss-info {
  flex: 1;
  min-width: 0;
}

.zhx-ss-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.zhx-ss-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.zhx-ss-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.zhx-ss-tag.rush   { background: #FEF2F2; color: #EF4444; }
.zhx-ss-tag.stable { background: #FFFBEB; color: #D97706; }
.zhx-ss-tag.safe   { background: #ECFDF5; color: #059669; }
.zhx-ss-tag.double-first { background: #FAF5FF; color: #7C3AED; }
.zhx-ss-tag.n211   { background: #EFF6FF; color: #2563EB; }
.zhx-ss-tag.n985   { background: #FEF2F2; color: #DC2626; }

.zhx-ss-pct {
  flex-shrink: 0;
  text-align: right;
}

.zhx-ss-pct-val {
  font-size: 18px;
  font-weight: 800;
}
.zhx-ss-pct-val.rush   { color: #EF4444; }
.zhx-ss-pct-val.stable { color: #D97706; }
.zhx-ss-pct-val.safe   { color: #10B981; }

.zhx-ss-pct-label {
  font-size: 10px;
  color: var(--zhx-text-tertiary);
}

/* Same-score empty state */
.zhx-same-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--zhx-text-tertiary);
  font-size: 14px;
}

/* =================================================================
   COUNTDOWN BADGE
   ================================================================= */
.zhx-cta-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.zhx-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #FEF2F2;
  color: #EF4444;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.zhx-countdown-badge strong {
  font-weight: 800;
  font-size: 16px;
}

/* Text button style */
.zhx-btn-text-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #F8FAFC;
  color: var(--zhx-text-secondary);
  border: 1px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--zhx-transition);
  user-select: none;
}
.zhx-btn-text-lg:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--zhx-text-primary);
}

/* =================================================================
   CALENDAR + VOLUNTEER ROW (2:1 ratio)
   ================================================================= */
.zhx-cal-vol-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* =================================================================
   CALENDAR CARD
   ================================================================= */
.zhx-calendar-card {
  background: var(--zhx-card-bg);
  border-radius: var(--zhx-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--zhx-card-shadow);
  border: 1px solid var(--zhx-card-border);
}
.zhx-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.zhx-cal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zhx-text-primary);
}
.zhx-cal-tabs {
  display: flex;
  gap: 2px;
  background: #F1F5F9;
  border-radius: var(--zhx-radius-xs);
  padding: 3px;
}
.zhx-cal-tab {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zhx-text-tertiary);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--zhx-transition);
  white-space: nowrap;
}
.zhx-cal-tab:hover {
  color: var(--zhx-text-secondary);
}
.zhx-cal-tab.active {
  background: #FFFFFF;
  color: var(--zhx-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.zhx-cal-body {
  max-height: 320px;
  overflow-y: auto;
}

.zhx-cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.zhx-cal-table thead th {
  text-align: left;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zhx-text-tertiary);
  border-bottom: 1px solid var(--zhx-divider);
  background: #FAFBFC;
}
.zhx-cal-table tbody td {
  padding: 7px 10px;
  color: var(--zhx-text-secondary);
  border-bottom: 1px solid #F8FAFC;
}
.zhx-cal-table tbody tr:hover td {
  background: #FAFBFC;
}

/* =================================================================
   VOLUNTEER + REPORT COLUMN
   ================================================================= */
.zhx-vol-report-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zhx-vol-card, .zhx-report-card {
  flex: 1;
  background: var(--zhx-card-bg);
  border-radius: var(--zhx-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--zhx-card-shadow);
  border: 1px solid var(--zhx-card-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* =================================================================
   HOT MAJOR GRID
   ================================================================= */
.zhx-hot-major-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 20px;
}

.zhx-major-card {
  background: #FAFBFC;
  border-radius: var(--zhx-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--zhx-transition);
  overflow: hidden;
}
.zhx-major-card:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--zhx-card-shadow-hover);
  transform: translateY(-1px);
}
.zhx-major-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.zhx-major-rank {
  width: 22px;
  font-size: 13px;
  font-weight: 800;
  color: var(--zhx-text-tertiary);
  text-align: center;
  flex-shrink: 0;
}
.zhx-major-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.zhx-major-info {
  flex: 1;
  min-width: 0;
}
.zhx-major-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zhx-major-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.zhx-major-stats {
  text-align: right;
  flex-shrink: 0;
}
.zhx-major-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--zhx-primary);
}
.zhx-major-school {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
.zhx-major-salary {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-top: 2px;
}

/* =================================================================
   NEWS + EXAM ROW (2:1 split)
   ================================================================= */
.zhx-news-exam-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Generic card header (title + more link) */
.zhx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.zhx-card-more {
  font-size: 13px;
  color: var(--zhx-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--zhx-transition);
}
.zhx-card-more:hover {
  background: var(--zhx-primary-light);
}

/* =================================================================
   NEWS LIST CARD (垂直新闻列表，夸克风格)
   ================================================================= */
.zhx-news-list-card {
  background: var(--zhx-card-bg);
  border-radius: var(--zhx-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--zhx-card-shadow);
  border: 1px solid var(--zhx-card-border);
}
.zhx-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zhx-nl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  transition: background 0.15s;
}
.zhx-nl-item:last-child {
  border-bottom: none;
}
.zhx-nl-item:hover .zhx-nl-title {
  color: var(--zhx-primary);
}
.zhx-nl-tag {
  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--zhx-primary-light);
  color: var(--zhx-primary);
  margin-top: 1px;
  white-space: nowrap;
}
.zhx-nl-tag.hot { background: #FEF2F2; color: #EF4444; }
.zhx-nl-tag.info { background: #F0FDF4; color: #059669; }
.zhx-nl-body {
  flex: 1;
  min-width: 0;
}
.zhx-nl-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--zhx-text-primary);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.zhx-nl-date {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-top: 2px;
}

/* =================================================================
   EXAM CARD (高考真题，夸克风格)
   ================================================================= */
.zhx-exam-card {
  background: var(--zhx-card-bg);
  border-radius: var(--zhx-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--zhx-card-shadow);
  border: 1px solid var(--zhx-card-border);
}
.zhx-exam-selects {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.zhx-exam-sel {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #E2E8F0;
  border-radius: var(--zhx-radius-sm);
  font-size: 13px;
  color: var(--zhx-text-primary);
  background: #FAFBFC;
  cursor: pointer;
  appearance: auto;
}
.zhx-exam-sel:focus {
  outline: none;
  border-color: var(--zhx-primary);
}
.zhx-exam-type-badge {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-bottom: 12px;
  padding: 3px 8px;
  background: #F8FAFC;
  border-radius: 4px;
  display: inline-block;
}
.zhx-exam-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zhx-exam-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F8FAFC;
}
.zhx-exam-item:last-child { border-bottom: none; }
.zhx-exam-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zhx-exam-subject {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
}
.zhx-exam-link {
  font-size: 12px;
  color: var(--zhx-primary);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--zhx-primary-light);
  text-decoration: none;
  transition: var(--zhx-transition);
  white-space: nowrap;
}
.zhx-exam-link:hover {
  background: #DBEAFE;
}
.zhx-exam-link.dim {
  color: var(--zhx-text-secondary);
  background: #F1F5F9;
}
.zhx-exam-link.dim:hover {
  background: #E2E8F0;
}

/* =================================================================
   SAME SCORE DUAL GRID (夸克风格：双列卡片)
   ================================================================= */
.zhx-same-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
  padding: 12px 20px 4px;
}
.zhx-same-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  transition: background 0.15s;
}
.zhx-same-item:hover { background: #FAFBFC; }
.zhx-same-num {
  width: 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--zhx-primary);
  text-align: center;
  flex-shrink: 0;
}
.zhx-same-num.top3 { color: #EF4444; }
.zhx-same-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
/* 真实大学logo图片模式 */
.zhx-same-logo--img {
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb;
}
.zhx-same-logo--img img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}
/* 图片加载失败降级为文字 */
.zhx-same-logo--fallback {
  border: none !important;
  background: #2563EB !important;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.zhx-same-logo--fallback img {
  display: none;
}
.zhx-same-info {
  flex: 1;
  min-width: 0;
}
.zhx-same-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zhx-same-meta {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-top: 2px;
}
.zhx-same-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--zhx-primary);
  flex-shrink: 0;
}

/* =================================================================
   DUAL TABLE WRAP (扩缩招/本地大学/本科分数线 — 双列表格)
   ================================================================= */
.zhx-dual-table-wrap {
  padding: 0 20px 4px;
}
.zhx-dual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
/* 双列布局 via flex container for 2-column table effect */
.zhx-dual-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 8px 20px 12px;
}
.zhx-dual-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  gap: 8px;
}
.zhx-dual-row-item:hover .zhx-dr-name { color: var(--zhx-primary); }
.zhx-dr-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.zhx-dr-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--zhx-primary);
  flex-shrink: 0;
}
.zhx-dr-city {
  font-size: 12px;
  color: var(--zhx-text-tertiary);
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}
.zhx-dr-change-up {
  font-size: 12px;
  font-weight: 700;
  color: #EF4444;
  flex-shrink: 0;
}
.zhx-dr-change-down {
  font-size: 12px;
  font-weight: 700;
  color: #10B981;
  flex-shrink: 0;
}
.zhx-dr-plan {
  font-size: 12px;
  color: var(--zhx-text-secondary);
  flex-shrink: 0;
}

/* Dual table header row */
.zhx-dual-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 6px 20px;
  background: #FAFBFC;
  border-top: 1px solid var(--zhx-divider);
  border-bottom: 1px solid var(--zhx-divider);
}
.zhx-dual-header-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zhx-dual-th {
  font-size: 11px;
  font-weight: 600;
  color: var(--zhx-text-tertiary);
}

/* =================================================================
   SECTION TITLE BAR (夸克风格，含"更多"链接)
   ================================================================= */
.zhx-section-title-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--zhx-text-primary);
}

/* =================================================================
   SECTION FOOTER (查看全部 link)
   ================================================================= */
.zhx-section-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 14px;
  border-top: 1px solid #F8FAFC;
  margin-top: 4px;
}
.zhx-footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--zhx-text-secondary);
  cursor: pointer;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  transition: var(--zhx-transition);
}
.zhx-footer-link:hover {
  background: #F1F5F9;
  color: var(--zhx-primary);
}

/* =================================================================
   RANKING DUAL GRID (夸克风格，双列排行榜带城市标签)
   ================================================================= */
.zhx-rank-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 8px 20px 4px;
}
.zhx-rank-dual-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F8FAFC;
  cursor: pointer;
  transition: background 0.15s;
}
.zhx-rank-dual-item:hover .zhx-rdi-name { color: var(--zhx-primary); }
.zhx-rdi-num {
  width: 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--zhx-text-tertiary);
  text-align: center;
  flex-shrink: 0;
}
.zhx-rdi-num.rank1 { color: #EF4444; }
.zhx-rdi-num.rank2 { color: #F97316; }
.zhx-rdi-num.rank3 { color: #F59E0B; }
.zhx-rdi-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.zhx-rdi-info {
  flex: 1;
  min-width: 0;
}
.zhx-rdi-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zhx-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.zhx-rdi-sub {
  font-size: 11px;
  color: var(--zhx-text-tertiary);
  margin-top: 2px;
}
.zhx-rdi-city {
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
}
/* City color tags */
.zhx-city-beijing { background: #FEF2F2; color: #EF4444; }
.zhx-city-shanghai { background: #EFF6FF; color: #2563EB; }
.zhx-city-hangzhou { background: #F0FDF4; color: #059669; }
.zhx-city-nanjing  { background: #FAF5FF; color: #7C3AED; }
.zhx-city-wuhan    { background: #FFFBEB; color: #D97706; }
.zhx-city-chengdu  { background: #FFF7ED; color: #EA580C; }
.zhx-city-xian     { background: #F8FAFC; color: #475569; }
.zhx-city-default  { background: #F1F5F9; color: #64748B; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
  .zhx-top-row { grid-template-columns: 1fr; }
  .zhx-cal-vol-row { grid-template-columns: 1fr; }
  .zhx-mid-row.zhx-three-col {
    grid-template-columns: 1fr;
  }
  .zhx-cta-card::after { display: none; }
  .zhx-school-list { grid-template-columns: repeat(2, 1fr); }
  .zhx-toolbox-grid { grid-template-columns: repeat(4, 1fr); }
  .zhx-hot-major-grid { grid-template-columns: repeat(2, 1fr); }
  .zhx-same-card-grid { grid-template-columns: repeat(2, 1fr); }
  .zhx-rank-dual-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .zhx-home-inner {
    padding: 12px 12px 40px;
  }
  .zhx-top-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .zhx-mid-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .zhx-two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .zhx-school-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .zhx-ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .zhx-toolbox-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .zhx-cta-card {
    padding: 20px 16px;
  }
  .zhx-cta-title {
    font-size: 17px;
    max-width: 100%;
  }
  .zhx-cta-prefs {
    flex-direction: column;
  }
  .zhx-cta-actions {
    flex-wrap: wrap;
  }
  .zhx-btn-primary-lg,
  .zhx-btn-outline-lg {
    flex: 1 1 auto;
    min-width: 140px;
  }
  .zhx-tabs {
    padding: 12px 12px 0;
    gap: 2px;
  }
  .zhx-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  .zhx-data-table-wrap {
    padding: 0 12px 12px;
  }
  .zhx-news-card {
    flex: 0 0 180px;
  }
  .zhx-section-top {
    padding: 12px 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .zhx-school-list {
    grid-template-columns: 1fr;
  }
  .zhx-ranking-list {
    grid-template-columns: 1fr;
  }
  .zhx-same-card-grid {
    grid-template-columns: 1fr;
  }
  .zhx-toolbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zhx-cta-card {
    padding: 16px 12px;
    border-radius: var(--zhx-radius-md);
  }
  .zhx-cta-title {
    font-size: 16px;
  }
  .zhx-cta-stat-num {
    font-size: 24px;
  }
  .zhx-cta-stat-label {
    font-size: 12px;
  }
  .zhx-cta-header {
    flex-direction: column;
    gap: 10px;
  }
  .zhx-cta-title {
    max-width: 100%;
  }
  .zhx-cta-actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .zhx-btn-primary-lg,
  .zhx-btn-outline-lg {
    width: 100%;
    justify-content: center;
  }
  .zhx-cta-inputs {
    flex-wrap: wrap;
  }
  .zhx-cta-input-item:first-child,
  .zhx-cta-input-item:nth-child(2) {
    flex: 1 1 45%;
  }
  .zhx-cta-input-score {
    flex: 1 1 100%;
  }
  .zhx-tb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .zhx-tb-icon svg {
    width: 16px;
    height: 16px;
  }
  .zhx-tb-label {
    font-size: 10px;
  }
  .zhx-news-items {
    gap: 8px;
  }
  .zhx-news-card {
    flex: 0 0 160px;
  }
}

/* ====================================================
   个人信息档案页 (Profile Page) — 参照夸克高考设计
   ==================================================== */

/* 布局 */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 28px 24px;
}

/* 卡片标题 */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.profile-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.profile-card-title svg {
  color: #2563EB;
  flex-shrink: 0;
}

.profile-card-desc {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* 必填徽章 */
.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.profile-badge-required {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* 进度条 */
.profile-pref-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-pref-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}

.profile-pref-bar-wrap {
  width: 80px;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.profile-pref-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  border-radius: 3px;
  transition: width 0.35s ease;
}

/* 表单 */
.profile-form-group {
  margin-bottom: 18px;
}

.profile-form-row {
  display: flex;
  gap: 16px;
}

.profile-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.profile-required {
  color: #DC2626;
  font-weight: 700;
}

.profile-input,
.profile-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #FAFBFC;
  font-size: 14px;
  color: #1E293B;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-input {
  cursor: text;
}

.profile-select {
  cursor: pointer;
  appearance: auto;
}

.profile-input:focus,
.profile-select:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: #FFFFFF;
}

.profile-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

.profile-input-suffix {
  position: relative;
}

.profile-input-suffix .profile-input {
  padding-right: 38px;
}

.profile-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
  pointer-events: none;
}

/* 科目选择器 */
.profile-subject-wrap {
  position: relative;
}

.profile-subject-display {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #FAFBFC;
  font-size: 14px;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-subject-display:hover {
  border-color: #CBD5E1;
}

.profile-subject-display:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.profile-subject-display span {
  color: #94A3B8;
}

.profile-subject-display span.has-value {
  color: #1E293B;
  font-weight: 500;
}

.profile-subject-panel {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 12px;
}

.profile-subject-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-subject-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.profile-subject-option:hover {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #93C5FD;
}

.profile-subject-option input[type="checkbox"] {
  accent-color: #2563EB;
  width: 16px;
  height: 16px;
}

.profile-subject-option.selected {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
  border-color: #93C5FD;
}

.profile-subject-hint {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
  padding: 12px;
}

/* 位次参考行 */
.profile-reference {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  font-size: 13px;
  color: #065F46;
}

.profile-reference svg {
  color: #059669;
  flex-shrink: 0;
}

.profile-reference strong {
  font-weight: 700;
  color: #047857;
}

/* 实时位次预估提示 */
.profile-score-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
  animation: zhxRankFadeIn 0.3s ease;
}

/* 偏好网格 */
.profile-prefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.profile-prefs-grid .profile-form-group:last-child {
  margin-bottom: 0;
}

/* 底部操作栏 */
.profile-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}

.profile-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  background: #FFFFFF;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-btn-save:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
  color: #334155;
}

.profile-btn-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.profile-btn-report:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(5,150,105,0.4);
}

.profile-btn-report:active {
  transform: translateY(0);
}

/* =================================================================
   PROFILE MODAL — 个人信息档案弹窗
   ================================================================= */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: profileOverlayIn 0.2s ease;
}
@keyframes profileOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-modal-dialog {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  animation: profileDialogIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
@keyframes profileDialogIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 标题栏 */
.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.profile-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-modal-title-row h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
}
.profile-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}
.profile-modal-close:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* 可滚动内容区 */
.profile-modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  flex: 1;
}
.profile-modal-body::-webkit-scrollbar {
  width: 5px;
}
.profile-modal-body::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 3px;
}

/* 内容区块 */
.profile-modal-section {
  background: #FAFBFC;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.profile-modal-section:last-child {
  margin-bottom: 0;
}

/* 区块标题栏 */
.profile-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.profile-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
}

/* 水平表单行 */
.profile-modal-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-modal-form-row:last-child {
  margin-bottom: 0;
}

/* 底部操作栏 */
.profile-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
  background: #FFFFFF;
}

/* ====================================================
   多选弹窗 (MultiPicker) — 参照夸克高考分类多选设计
   ==================================================== */

/* 触发器 — 替代原有 select */
.multi-picker-trigger {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #FAFBFC;
  font-size: 14px;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  gap: 8px;
  box-sizing: border-box;
}
.multi-picker-trigger:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}
.multi-picker-trigger:focus-within,
.multi-picker-trigger.active {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  background: #FFFFFF;
}
.multi-picker-placeholder {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94A3B8;
  font-size: 14px;
}
.multi-picker-placeholder.has-value {
  color: #1E293B;
}
.multi-picker-trigger svg {
  flex-shrink: 0;
  color: #94A3B8;
}

/* 遮罩层 */
.multi-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: mpFadeIn 0.2s ease;
}
@keyframes mpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 弹窗面板 — 底部弹出式 */
.multi-picker-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 70vh;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  animation: mpSlideUp 0.25s ease;
}
@keyframes mpSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* 弹窗头部 */
.multi-picker-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.multi-picker-dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
}
.multi-picker-dialog-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 22px;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.multi-picker-dialog-close:hover {
  background: #F1F5F9;
  color: #475569;
}

/* 弹窗内容区 */
.multi-picker-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.multi-picker-dialog-body::-webkit-scrollbar { width: 4px; }
.multi-picker-dialog-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

/* 分类标题 */
.multi-picker-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin: 14px 0 8px;
  padding-left: 2px;
}
.multi-picker-group-title:first-child {
  margin-top: 4px;
}

/* 选项网格 */
.multi-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 单个选项 */
.multi-picker-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  background: #FAFBFC;
}
.multi-picker-option:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #2563EB;
}
.multi-picker-option.selected {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 500;
}
.multi-picker-option input[type="checkbox"] {
  display: none;
}
.multi-picker-option .mp-check-icon {
  display: none;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.multi-picker-option.selected .mp-check-icon {
  display: block;
  color: #2563EB;
}

/* 弹窗底部 */
.multi-picker-dialog-footer {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
  background: #FFFFFF;
}
.multi-picker-btn-clear {
  flex: 1;
  height: 42px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #64748B;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.multi-picker-btn-clear:hover {
  border-color: #CBD5E1;
  color: #1E293B;
}
.multi-picker-btn-confirm {
  flex: 2;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.multi-picker-btn-confirm:hover {
  background: #1D4ED8;
}

/* 响应式 */
@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-prefs-grid {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-btn-save,
  .profile-btn-report {
    justify-content: center;
  }
}

@keyframes zhxToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ====================================================
   智能选志愿页面 V2 — 夸克高考对标设计 (2026-06-15)
   ==================================================== */

.rec-container {
  max-width: 980px; margin: 0 auto; padding: 0;
}

/* ===== 顶部信息栏（夸克风格） ===== */
.rec-top-bar {
  background: #fff; border-radius: 12px; padding: 12px 20px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 12px;
}
.rec-top-row {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.rec-top-label {
  font-size: 13px; color: #888; padding: 4px 10px;
}
.rec-top-label strong {
  color: #1a1a2e; font-weight: 700; font-size: 14px;
}
.rec-top-sep {
  color: #E5E7EB; font-size: 14px;
}
.rec-btn-edit {
  margin-left: auto;
  padding: 4px 14px; border: 1px solid #D1D5DB; border-radius: 6px;
  background: #fff; color: #666; font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.rec-btn-edit:hover {
  border-color: #1677FF; color: #1677FF; background: #F0F5FF;
}
/* 数据更新提醒 */
.rec-data-update {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 6px 12px;
  background: #FFF7E6; border-radius: 6px;
  font-size: 12px; color: #D48806;
}
.rec-data-update svg { flex-shrink: 0; }

/* ===== 标题行 + 搜索 ===== */
.rec-title-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.rec-title {
  font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0; white-space: nowrap;
}
/* 模式Tab */
.rec-mode-tabs {
  display: flex; gap: 0; background: #F1F5F9; border-radius: 8px; padding: 2px;
  flex-shrink: 0;
}
.rec-mode-tab {
  padding: 5px 14px; border: none; background: transparent;
  border-radius: 7px; font-size: 12px; color: #666; cursor: pointer;
  transition: all 0.2s;
}
.rec-mode-tab.active {
  background: #fff; color: #1677FF; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.rec-mode-tab:hover:not(.active) { color: #1677FF; }
/* 右侧区域 */
.rec-title-right {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
}
.rec-batch-select select {
  padding: 6px 28px 6px 10px; border: 1px solid #E5E7EB; border-radius: 8px;
  background: #fff; font-size: 12px; color: #444; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23999'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}
.rec-search-box {
  position: relative; width: 200px;
}
.rec-search-box input {
  width: 100%; padding: 6px 10px 6px 30px; border: 1px solid #E5E7EB; border-radius: 8px;
  background: #F9FAFB; font-size: 12px; color: #333; outline: none;
  transition: all 0.2s;
}
.rec-search-box input:focus {
  border-color: #1677FF; background: #fff; box-shadow: 0 0 0 2px rgba(22,119,255,0.08);
}
.rec-search-icon {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: #999; pointer-events: none;
}

/* ===== 统计条（夸克风格胶囊按钮） ===== */
.rec-stats-bar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.rec-stat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 20px; border: 1px solid #E8ECF1; border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s;
  min-width: 72px;
}
.rec-stat-chip:hover {
  border-color: #1677FF; box-shadow: 0 2px 8px rgba(22,119,255,0.08);
  transform: translateY(-1px);
}
.rec-stat-chip.active {
  border-color: #1677FF; background: #F0F5FF;
}
.rec-stat-num {
  font-size: 22px; font-weight: 700; line-height: 1;
}
.rec-stat-label {
  font-size: 11px; color: #888;
}
/* 颜色变量 */
.rec-stat-chip.rec-stat-rush .rec-stat-num,
.rec-stat-chip.rec-stat-rush.active .rec-stat-num { color: #F52F3B; }
.rec-stat-chip.rec-stat-stable .rec-stat-num,
.rec-stat-chip.rec-stat-stable.active .rec-stat-num { color: #FF7A00; }
.rec-stat-chip.rec-stat-safe .rec-stat-num,
.rec-stat-chip.rec-stat-safe.active .rec-stat-num { color: #00B42A; }
.rec-stat-chip.rec-stat-hard .rec-stat-num,
.rec-stat-chip.rec-stat-hard.active .rec-stat-num { color: #94A3B8; }
.rec-stat-chip.rec-stat-all .rec-stat-num,
.rec-stat-chip.rec-stat-all.active .rec-stat-num { color: #1a1a2e; }
.rec-stat-chip.rec-stat-rush.active { border-color: #F52F3B; background: #FFF5F5; }
.rec-stat-chip.rec-stat-stable.active { border-color: #FF7A00; background: #FFF8F2; }
.rec-stat-chip.rec-stat-safe.active { border-color: #00B42A; background: #F0FFF5; }
.rec-stat-chip.rec-stat-hard.active { border-color: #94A3B8; background: #F8FAFC; }

/* ===== 筛选栏 ===== */
.rec-filter-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.rec-filter-item { flex-shrink: 0; }
.rec-filter-select {
  padding: 6px 28px 6px 10px; border: 1px solid #E5E7EB; border-radius: 8px;
  background: #fff; font-size: 12px; color: #555; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23999'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}
.rec-filter-select:focus {
  outline: none; border-color: #1677FF; box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}
.rec-btn-reset {
  padding: 6px 12px; border: 1px solid #E5E7EB; border-radius: 8px;
  background: #fff; color: #888; font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.rec-btn-reset:hover { border-color: #1677FF; color: #1677FF; }

/* ===== 空状态 ===== */
.rec-empty {
  text-align: center; padding: 80px 20px;
}
.rec-empty-icon { font-size: 56px; margin-bottom: 12px; }
.rec-empty-title { font-size: 16px; font-weight: 600; color: #333; margin: 0 0 8px; }
.rec-empty-desc { font-size: 13px; color: #888; margin: 0 0 20px; }
.rec-empty-btn {
  padding: 8px 28px; border: 1px solid #1677FF; border-radius: 8px;
  background: #fff; color: #1677FF; font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.rec-empty-btn:hover { background: #F0F5FF; }

/* ===== 院校卡片（夸克风格） ===== */
.rec-school-list {
  display: flex; flex-direction: column; gap: 8px;
}
/* 单个卡片 */
.rec-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff; border: 1px solid #EEF0F4;
  border-radius: 12px; cursor: pointer; transition: all 0.15s;
  position: relative;
}
.rec-card:hover {
  border-color: #1677FF; box-shadow: 0 2px 12px rgba(22,119,255,0.06);
}
.rec-card.selected {
  border-color: #1677FF; background: #F8FAFF;
}
/* 卡片左侧：概率圈 */
.rec-card-prob {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 48px; flex-shrink: 0;
}
.rec-prob-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.rec-prob-num {
  font-size: 16px; font-weight: 800;
}
.rec-prob-word {
  font-size: 10px; font-weight: 700;
}
.rec-prob-rush { background: #FFF5F5; }
.rec-prob-rush .rec-prob-num { color: #F52F3B; }
.rec-prob-rush .rec-prob-word { color: #F52F3B; }
.rec-prob-stable { background: #FFF8F2; }
.rec-prob-stable .rec-prob-num { color: #FF7A00; }
.rec-prob-stable .rec-prob-word { color: #FF7A00; }
.rec-prob-safe { background: #F0FFF5; }
.rec-prob-safe .rec-prob-num { color: #00B42A; }
.rec-prob-safe .rec-prob-word { color: #00B42A; }
.rec-prob-hard { background: #F8FAFC; }
.rec-prob-hard .rec-prob-num { color: #94A3B8; }
.rec-prob-hard .rec-prob-word { color: #94A3B8; }

/* 卡片Logo */
.rec-card-logo-wrap {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; position: relative; background: #F3F4F6;
  display: flex; align-items: center; justify-content: center;
}
.rec-card-logo-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.rec-card-logo-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  border-radius: 50%; position: absolute; top: 0; left: 0;
}

/* 卡片信息区 */
.rec-card-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.rec-card-name-row {
  display: flex; align-items: center; gap: 8px;
}
.rec-card-name {
  font-size: 15px; font-weight: 700; color: #1a1a2e; cursor: pointer;
}
.rec-card-name:hover { color: #1677FF; }
.rec-card-low-tag {
  padding: 1px 7px; border-radius: 4px; font-size: 11px;
  background: #E0F2FE; color: #0284C7; font-weight: 500; flex-shrink: 0;
}
/* 标签链 */
.rec-card-tags {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.rec-tag-item {
  font-size: 12px; color: #666;
}
.rec-tag-dot {
  font-size: 12px; color: #CCC; margin: 0 1px;
}
.rec-tag-level {
  padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.rec-tag-l-985 { background: #FEF3C7; color: #92400E; }
.rec-tag-l-211 { background: #DBEAFE; color: #1E40AF; }
.rec-tag-l-double { background: #EDE9FE; color: #5B21B6; }
.rec-tag-l-dsyl { background: #EDE9FE; color: #5B21B6; }
.rec-tag-l-szdy { background: #E0F2FE; color: #0369A1; }
/* 详情行 */
.rec-card-detail {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.rec-detail-item {
  font-size: 11px; color: #888;
}
.rec-detail-sep {
  font-size: 11px; color: #DDD;
}
/* 往年同分去向链接 */
.rec-same-score-link {
  font-size: 11px; color: #1677FF; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: 1px;
}
.rec-same-score-link:hover { text-decoration: underline; color: #0958D9; }

/* 卡片右侧操作 */
.rec-card-right {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.rec-btn-major-group {
  padding: 7px 16px; border: 1px solid #1677FF; border-radius: 20px;
  background: #fff; color: #1677FF; font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.rec-btn-major-group:hover {
  background: #1677FF; color: #fff;
}
/* 选中勾选 */
.rec-card-check {
  width: 18px; height: 18px; border: 2px solid #D1D5DB; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; transition: all 0.2s;
  position: absolute; top: 14px; right: 14px;
}
.rec-card.selected .rec-card-check {
  background: #1677FF; border-color: #1677FF;
}

/* ===== 底部选择栏 ===== */
.rec-bottom-bar {
  position: sticky; bottom: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 20px;
  background: #fff; border-top: 1px solid #F0F0F0;
  border-radius: 0 0 12px 12px; z-index: 10;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06); margin-top: 16px;
}
.rec-bottom-left { display: flex; align-items: center; }
.rec-selected-info {
  display: flex; align-items: center; gap: 6px; color: #52C41A; font-size: 14px;
}
.rec-selected-info svg { color: #52C41A; }
.rec-selected-info strong { font-size: 18px; }
.rec-bottom-right { display: flex; align-items: center; }
.rec-btn-report {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 28px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #1677FF 0%, #0958D9 100%);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
}
.rec-btn-report:hover {
  background: linear-gradient(135deg, #0958D9 0%, #073AB5 100%);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,119,255,0.4);
}
.rec-btn-report:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

@media (max-width: 768px) {
  .rec-title-row { flex-wrap: wrap; }
  .rec-title-right { margin-left: 0; width: 100%; }
  .rec-search-box { width: 100%; }
  .rec-card { flex-wrap: wrap; }
  .rec-card-right { width: 100%; flex-direction: row; justify-content: flex-end; }
  .rec-bottom-bar { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .rec-bottom-left, .rec-bottom-right { width: 100%; justify-content: center; }
  .rec-btn-report { width: 100%; justify-content: center; }
}

/* ============================================================
   AI 智能体 样式 (WorkBuddy 风格)
   ============================================================ */

/* ============================================================
   AI 智能体 V5 — 三折面板布局 (WorkBuddy 风格)
   ============================================================ */

/* ---- 外层容器：带边框的完整面板 ---- */
.zhx-ai-v5-shell {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  margin-top: 16px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  height: calc(100vh - 200px);
  min-height: 560px;
  position: relative;
}

/* ---- 三列布局 ---- */
.zhx-ai-v5-panel {
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.3s ease;
}

/* 左侧面板 */
.zhx-ai-v5-left {
  width: 240px;
  background: #FAFBFC;
}
.zhx-ai-v5-left.collapsed {
  width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

/* 右侧面板 */
.zhx-ai-v5-right {
  width: 260px;
  background: #FAFBFC;
}
.zhx-ai-v5-right.collapsed {
  width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

/* ---- 中间主区域 ---- */
.zhx-ai-v5-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 24px 32px;
}

/* ============ 左侧面板内部 ============ */
.zhx-ai-v5-left-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 14px;
}

/* 品牌区 */
.zhx-ai-v5-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}
.zhx-ai-v5-brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.zhx-ai-v5-brand-icon svg {
  width: 100%;
  height: 100%;
}
.zhx-ai-v5-brand-text {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
}

/* 新建对话 */
.zhx-ai-v5-new-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 14px;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  color: #6366F1;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.zhx-ai-v5-new-chat:hover {
  border-color: #6366F1;
  background: #F8FAFC;
}

/* 导航 */
.zhx-ai-v5-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.zhx-ai-v5-nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 2px 6px;
}
.zhx-ai-v5-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.zhx-ai-v5-nav-item:hover {
  background: #F1F5F9;
  color: #1E293B;
}
.zhx-ai-v5-nav-item.active {
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 600;
}
.zhx-ai-v5-nav-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* 功能列表 */
.zhx-ai-v5-func-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zhx-ai-v5-func-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.zhx-ai-v5-func-item:hover {
  background: #F1F5F9;
  color: #1E293B;
}
.zhx-ai-v5-func-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 底部按钮 */
.zhx-ai-v5-left-bottom {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid #F1F5F9;
}
.zhx-ai-v5-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s;
}
.zhx-ai-v5-bottom-btn:hover {
  background: #F1F5F9;
  color: #64748B;
}

/* ============ 折叠手柄按钮 ============ */
/* 折叠手柄 — 绝对定位覆盖在面板边缘，不打断三折连续布局 */
.zhx-ai-v5-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
  padding: 0;
}
.zhx-ai-v5-toggle:hover {
  background: rgba(99, 102, 241, 0.07);
  color: #6366F1;
}
.zhx-ai-v5-toggle-left {
  left: 240px; /* 右边缘对齐左侧面板 */
}
.zhx-ai-v5-toggle-right {
  right: 260px; /* 左边缘对齐右侧面板 */
}

/* 左侧面板收起时，左折叠手柄移到最左侧 */
.zhx-ai-v5-left.collapsed ~ .zhx-ai-v5-toggle-left {
  left: 0;
}

/* ============ 中间 Hero 区（机器人+标题） ============ */
.zhx-ai-v5-hero {
  text-align: center;
  padding: 12px 0 8px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.zhx-ai-v5-mascot {
  width: 160px;
  height: 160px;
  margin: 0 auto 6px;
  position: relative;
  cursor: pointer;
}
#zhx-ai-v5-mascot canvas,
.zhx-ai-v5-mascot canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.zhx-ai-v5-title {
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px;
}
.zhx-ai-v5-subtitle {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

/* ---- 模式 Pills ---- */
.zhx-ai-v5-modes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.zhx-ai-v5-mode-pill {
  padding: 7px 18px;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  background: #FFFFFF;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.zhx-ai-v5-mode-pill:hover {
  border-color: #A5B4FC;
  color: #4F46E5;
}
.zhx-ai-v5-mode-pill.active {
  background: #4F46E5;
  border-color: #4F46E5;
  color: #FFFFFF;
  font-weight: 600;
}
.zhx-ai-v5-mode-icon {
  font-size: 14px;
}

/* ---- 功能芯片 ---- */
.zhx-ai-v5-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.zhx-ai-v5-chip {
  padding: 6px 13px;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  background: #FFFFFF;
  color: #475569;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.zhx-ai-v5-chip:hover {
  border-color: #A5B4FC;
  color: #4F46E5;
  background: #F8FAFC;
}

/* ---- 消息区 ---- */
.zhx-ai-v5-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 80px;
}

/* ---- 输入区 ---- */
.zhx-ai-v5-input-wrap {
  flex-shrink: 0;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.zhx-ai-v5-input-wrap:focus-within {
  border-color: #818CF8;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.zhx-ai-v5-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
  color: #1E293B;
  resize: none;
  min-height: 22px;
  max-height: 160px;
  font-family: inherit;
}
.zhx-ai-v5-input::placeholder {
  color: #94A3B8;
}

/* ---- 富工具栏 (V6: 自适应单行) ---- */
.zhx-ai-v5-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  gap: 8px;
  /* 核心：永不换行 */
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
}
.zhx-ai-v5-tb-left {
  display: flex;
  align-items: center;
  gap: 4px;
  /* 左侧可收缩，但内部按钮不换行；overflow:visible 允许下拉面板超出 */
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
}
.zhx-ai-v5-tb-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.zhx-ai-v5-tb-dd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.zhx-ai-v5-tb-dd.active {
  background: #EEF2FF;
  border-color: #A5B4FC;
  color: #4F46E5;
  font-weight: 600;
}
.zhx-ai-v5-tb-dd:hover {
  background: #F1F5F9;
}
.zhx-ai-v5-tb-dd.active:hover {
  background: #E0E7FF;
}
.zhx-ai-v5-tb-icon {
  font-size: 12px;
}
.zhx-ai-v5-tb-arr {
  font-size: 8px;
  opacity: 0.6;
  margin-left: 1px;
}
.zhx-ai-v5-tb-sep {
  width: 1px;
  height: 18px;
  background: #E2E8F0;
  margin: 0 4px;
}
.zhx-ai-v5-tb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #64748B;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.zhx-ai-v5-tb-item:hover {
  background: #F1F5F9;
  color: #475569;
}
.zhx-ai-v5-tb-starry {
  width: 28px;
  height: 28px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.zhx-ai-v5-tb-starry:hover {
  background: #FFF7ED;
  border-color: #FDBA74;
  color: #F97316;
}
.zhx-ai-v5-tb-act {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.zhx-ai-v5-tb-act:hover {
  background: #F1F5F9;
  color: #64748B;
}
.zhx-ai-v5-tb-send {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #4F46E5;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.zhx-ai-v5-tb-send:hover {
  background: #4338CA;
  transform: scale(1.05);
}

/* ===== V6 工具栏增强：下拉面板 / 文件上传 / 语音 / 响应式 ===== */

/* --- 下拉面板通用 --- */
.zhx-ai-v5-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  z-index: 100;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.zhx-ai-v5-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.zhx-ai-v5-dd-wrap {
  position: relative;
}
/* 下拉面板箭头 */
.zhx-ai-v5-dropdown::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  transform: rotate(45deg);
}
.zhx-ai-v5-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.zhx-ai-v5-dropdown-item:hover {
  background: #EEF2FF;
  color: #4F46E5;
}
.zhx-ai-v5-dropdown-item .dd-icon { font-size: 14px; flex-shrink: 0; }
.zhx-ai-v5-dropdown-item .dd-label { flex: 1; }
.zhx-ai-v5-dropdown-item .dd-check {
  font-size: 12px;
  color: #4F46E5;
  opacity: 0;
}
.zhx-ai-v5-dropdown-item.active .dd-check { opacity: 1; }
.zhx-ai-v5-dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 6px;
}

/* --- 模型选择下拉（Auto模式，带开关+成本+自定义）--- */
.zhx-ai-v5-model-drop {
  min-width: 260px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.zhx-ai-v5-model-drop.show {
  transform: translateX(-50%) translateY(0);
}
.zhx-ai-v5-model-drop::after { left: 50%; margin-left: -6px; }

/* Auto 下拉顶部：开关行 */
.zhx-ai-v5-auto-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 4px;
}
.zhx-ai-v5-auto-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
}
.zhx-ai-v5-auto-toggle-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-left: 4px;
  font-weight: 400;
}
.zhx-ai-v5-toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #CBD5E1;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.zhx-ai-v5-toggle-switch.on {
  background: #4F46E5;
}
.zhx-ai-v5-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.zhx-ai-v5-toggle-switch.on::after {
  transform: translateX(18px);
}

/* 模型选项（新：带成本倍数） */
.zhx-ai-v5-model-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
}
.zhx-ai-v5-model-opt:hover { background: #F1F5F9; }
.zhx-ai-v5-model-opt.active {
  background: #EEF2FF;
}
.zhx-ai-v5-model-opt .mo-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.zhx-ai-v5-model-opt .mo-name { flex: 1; font-weight: 500; color: #1E293B; }
.zhx-ai-v5-model-opt .mo-cost {
  font-size: 11px;
  color: #94A3B8;
  flex-shrink: 0;
}
.zhx-ai-v5-model-opt .mo-check {
  font-size: 12px;
  color: #4F46E5;
  opacity: 0;
  flex-shrink: 0;
}
.zhx-ai-v5-model-opt.active .mo-check { opacity: 1; }
.zhx-ai-v5-model-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #B45309;
  flex-shrink: 0;
}
.zhx-ai-v5-model-badge.free {
  background: #D1FAE5;
  color: #065F46;
}

/* Auto下拉底部：配置自定义模型 */
.zhx-ai-v5-model-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  margin-top: 4px;
  border-top: 1px solid #F1F5F9;
  font-size: 12.5px;
  color: #6366F1;
  cursor: pointer;
  border-radius: 0 0 12px 12px;
  transition: background 0.12s;
}
.zhx-ai-v5-model-custom:hover {
  background: #EEF2FF;
}
.zhx-ai-v5-model-custom .mc-icon {
  font-size: 16px;
  font-weight: 700;
}

/* --- 技能选择面板 V7（卡片式+描述+导入）--- */
.zhx-ai-v5-skill-panel {
  position: fixed;
  bottom: auto;
  right: auto;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.zhx-ai-v5-skill-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.zhx-ai-v5-sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #F1F5F9;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-radius: 14px 14px 0 0;
  z-index: 1;
}
.zhx-ai-v5-sp-title { font-size: 14px; font-weight: 600; color: #1E293B; }
.zhx-ai-v5-sp-close {
  width: 24px; height: 24px; border-radius: 6px;
  border: none; background: transparent;
  color: #94A3B8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.zhx-ai-v5-sp-close:hover { background: #F1F5F9; color: #64748B; }
.zhx-ai-v5-sp-search {
  margin: 8px 12px;
  position: relative;
}
.zhx-ai-v5-sp-search input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #F8FAFC;
  transition: all 0.2s;
  box-sizing: border-box;
}
.zhx-ai-v5-sp-search input:focus {
  border-color: #818CF8;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.zhx-ai-v5-sp-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: #94A3B8; font-size: 13px; pointer-events: none;
}
.zhx-ai-v5-sp-list { padding: 4px 10px 4px; }

/* V7 技能卡片：名称+描述 */
.zhx-ai-v5-sp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.zhx-ai-v5-sp-item:hover {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.zhx-ai-v5-sp-item.active {
  background: #EEF2FF;
  border-color: #C7D2FE;
}
.zhx-ai-v5-sp-item .sp-emoji { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.zhx-ai-v5-sp-item .sp-body { flex: 1; min-width: 0; }
.zhx-ai-v5-sp-item .sp-name {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}
.zhx-ai-v5-sp-item.active .sp-name { color: #4338CA; }
.zhx-ai-v5-sp-item .sp-desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zhx-ai-v5-sp-item .sp-check {
  font-size: 14px;
  color: #4F46E5;
  opacity: 0;
  flex-shrink: 0;
  align-self: center;
  font-weight: 700;
}
.zhx-ai-v5-sp-item.active .sp-check { opacity: 1; }

/* V7 技能面板底部：导入技能 */
.zhx-ai-v5-sp-import {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 12.5px;
  color: #6366F1;
  cursor: pointer;
  position: sticky;
  bottom: 0;
  background: #FFFFFF;
  border-radius: 0 0 14px 14px;
  font-weight: 500;
  transition: background 0.12s;
}
.zhx-ai-v5-sp-import:hover {
  background: #EEF2FF;
}
.zhx-ai-v5-sp-import .si-icon {
  font-size: 15px;
  font-weight: 700;
}

/* --- 文件上传预览区 --- */
.zhx-ai-v5-upload-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  animation: slideUp 0.2s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.zhx-ai-v5-up-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden;
}
.zhx-ai-v5-up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zhx-ai-v5-up-info { flex: 1; min-width: 0; }
.zhx-ai-v5-up-name {
  font-size: 12px; color: #334155;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zhx-ai-v5-up-size { font-size: 11px; color: #94A3B8; }
.zhx-ai-v5-up-remove {
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: #FEE2E2; color: #EF4444;
  cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.zhx-ai-v5-up-remove:hover { background: #FECACA; transform: scale(1.1); }

/* 隐藏的文件input */
.zhx-ai-v5-file-input { display: none; }

/* --- 语音录音动画 --- */
.zhx-ai-v5-tb-act.recording {
  background: #FEE2E2;
  color: #EF4444;
  animation: pulse-recording 1.2s ease-in-out infinite;
}
@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.zhx-ai-v5-voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  margin-left: 4px;
}
.zhx-ai-v5-voice-bar {
  width: 3px;
  background: #EF4444;
  border-radius: 2px;
  animation: wave 0.6s ease-in-out infinite;
}
.zhx-ai-v5-voice-bar:nth-child(2) { animation-delay: 0.1s; }
.zhx-ai-v5-voice-bar:nth-child(3) { animation-delay: 0.2s; }
.zhx-ai-v5-voice-bar:nth-child(4) { animation-delay: 0.3s; }
.zhx-ai-v5-voice-bar:nth-child(5) { animation-delay: 0.15s; }
@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* --- Toast 提示 --- */
.zhx-ai-v5-toast {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: #1E293B;
  color: #FFFFFF;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.zhx-ai-v5-toast.show { opacity: 1; }
.zhx-ai-v5-toast::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #1E293B transparent transparent transparent;
}

/* --- 响应式：工具栏自适应收缩 --- */

/* 中等屏幕：隐藏按钮文字，只保留图标+短标签 */
@media (max-width: 900px) {
  .zhx-ai-v5-tb-dd .zhx-ai-v5-tb-arr,
  .zhx-ai-v5-tb-item .zhx-ai-v5-tb-arr { display: none; }
  /* 次要按钮只显示图标 */
  .zhx-ai-v5-tb-left .zhx-ai-v5-tb-item span:not(.zhx-ai-v5-tb-icon) { display: none; }
  .zhx-ai-v5-tb-item { padding: 4px 8px; }
}

/* 小屏幕：完全隐藏次要按钮 */
@media (max-width: 720px) {
  .zhx-ai-v5-tb-sep { display: none; }
  /* 技能/数据源/权限 隐藏，收纳到 + 按钮 */
  .zhx-ai-v5-tb-left .zhx-ai-v5-tb-item { display: none; }
  .zhx-ai-v5-toolbar { gap: 4px; }
  .zhx-ai-v5-tb-dd { padding: 4px 8px; font-size: 11.5px; }
  .zhx-ai-v5-tb-dd .zhx-ai-v5-tb-icon + * { display: none; } /* 隐藏文字只保留图标 */
  .zhx-ai-v5-tb-dd .zhx-ai-v5-tb-icon { margin-right: 0; }
}

/* 超小屏：极简工具栏 */
@media (max-width: 520px) {
  .zhx-ai-v5-tb-left { gap: 2px; }
  .zhx-ai-v5-tb-dd { padding: 4px 6px; }
  .zhx-ai-v5-tb-starry { width: 26px; height: 26px; }
  .zhx-ai-v5-tb-act { width: 28px; height: 28px; }
  .zhx-ai-v5-tb-send { width: 32px; height: 32px; }
}

/* 覆盖旧的响应式规则中的 toolbar wrap */
@media (max-width: 768px) {
  .zhx-ai-v5-toolbar {
    flex-wrap: nowrap !important;
    justify-content: space-between;
  }
}
.zhx-ai-v5-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #F8FAFC;
  gap: 12px;
  flex-wrap: wrap;
}
.zhx-ai-v5-footer-ws {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #64748B;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.zhx-ai-v5-footer-ws:hover {
  border-color: #A5B4FC;
  color: #4F46E5;
}
.zhx-ai-v5-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zhx-ai-v5-footer-note {
  font-size: 11px;
  color: #94A3B8;
}
.zhx-ai-v5-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 500;
}

/* ============ 右侧面板内部 ============ */
.zhx-ai-v5-right-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  gap: 10px;
}
.zhx-ai-v5-right-section {
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}
.zhx-ai-v5-right-section:last-of-type {
  border-bottom: none;
}
.zhx-ai-v5-right-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.zhx-ai-v5-right-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.zhx-ai-v5-stat-label {
  color: #64748B;
}
.zhx-ai-v5-stat-val {
  color: #1E293B;
  font-weight: 600;
}
.zhx-ai-v5-right-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}
.zhx-ai-v5-info-label {
  color: #94A3B8;
  font-size: 12px;
}
.zhx-ai-v5-info-val {
  color: #64748B;
  font-size: 12px;
}
.zhx-ai-v5-right-action {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #475569;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.zhx-ai-v5-right-action:hover {
  border-color: #A5B4FC;
  color: #4F46E5;
  background: #F8FAFC;
}
.zhx-ai-v5-right-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  margin-top: auto;
  background: #FFFBEB;
  border-radius: 8px;
  font-size: 11.5px;
  color: #92400E;
  line-height: 1.4;
}
.zhx-ai-v5-right-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #F59E0B;
}

/* ============ 消息气泡（V5 适配） ============ */
.zhx-ai-v5-msgs .zhx-ai-msg { margin-bottom: 8px; }
.zhx-ai-v5-msgs .zhx-ai-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  animation: v5MsgIn 0.25s ease-out;
}
@keyframes v5MsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.zhx-ai-v5-msgs .zhx-ai-msg.user .zhx-ai-msg-bubble {
  background: #EEF2FF;
  color: #1E293B;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.zhx-ai-v5-msgs .zhx-ai-msg.bot .zhx-ai-msg-bubble {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

/* 思考中动画 */
.zhx-ai-v5-msgs .zhx-ai-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.zhx-ai-v5-thinking-dots {
  display: flex;
  gap: 4px;
}
.zhx-ai-v5-thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A5B4FC;
  animation: v5ThinkDot 1.4s ease-in-out infinite;
}
.zhx-ai-v5-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.zhx-ai-v5-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes v5ThinkDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* 流式光标 */
.zhx-ai-v5-streaming-cursor::after {
  content: '▍';
  animation: v5CursorBlink 0.8s infinite;
  color: #6366F1;
  font-weight: bold;
}
@keyframes v5CursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板：隐藏右侧面板 */
@media (max-width: 1024px) {
  .zhx-ai-v5-shell {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .zhx-ai-v5-right {
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
  }
  .zhx-ai-v5-toggle-right {
    display: none;
  }
  .zhx-ai-v5-left {
    width: 200px;
  }
  .zhx-ai-v5-center {
    padding: 20px 16px;
  }
}

/* 手机：隐藏左侧面板 */
@media (max-width: 768px) {
  .zhx-ai-v5-shell {
    height: calc(100vh - 120px);
    min-height: 480px;
    flex-direction: column;
  }
  .zhx-ai-v5-left {
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
  }
  .zhx-ai-v5-toggle-left {
    display: none;
  }
  .zhx-ai-v5-center {
    padding: 16px 12px;
  }
  .zhx-ai-v5-hero {
    padding: 8px 0;
  }
  .zhx-ai-v5-mascot {
    width: 72px;
    height: 72px;
  }
  .zhx-ai-v5-title {
    font-size: 18px;
  }
  .zhx-ai-v5-subtitle {
    font-size: 12px;
  }
  .zhx-ai-v5-modes {
    gap: 4px;
  }
  .zhx-ai-v5-mode-pill {
    padding: 5px 12px;
    font-size: 12px;
  }
  .zhx-ai-v5-chip {
    padding: 4px 8px;
    font-size: 11px;
  }
  .zhx-ai-v5-toolbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
  }
  .zhx-ai-v5-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .zhx-ai-v5-shell {
    margin-top: 8px;
    height: calc(100vh - 100px);
  }
  .zhx-ai-v5-center {
    padding: 10px 8px;
  }
  .zhx-ai-v5-input-wrap {
    padding: 8px 10px;
  }
}


/* ============================================ */
/* 高报名师页面样式 (Teachers Page)              */
/* ============================================ */

#page-teachers { background: #f5f7fb; min-height: 100vh; }
.teachers-page-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }

/* Hero */
.teachers-hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
  border-radius: 20px; padding: 48px 40px; margin-bottom: 24px;
  color: #fff; position: relative; overflow: hidden;
}
.teachers-hero::after {
  content: ''; position: absolute; right: -60px; top: -40px;
  width: 280px; height: 280px; background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.teachers-hero-content { position: relative; z-index: 1; }
.teachers-hero-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.teachers-hero-subtitle { font-size: 15px; opacity: 0.9; margin: 0 0 28px; max-width: 600px; line-height: 1.6; }
.teachers-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.teachers-stat-item { display: flex; flex-direction: column; gap: 2px; }
.teachers-stat-num { font-size: 28px; font-weight: 800; }
.teachers-stat-item span { font-size: 13px; opacity: 0.85; }

/* Filter Bar */
.teachers-filter-bar {
  background: #fff; border-radius: 16px; padding: 16px 20px;
  margin-bottom: 24px; box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: sticky; top: 72px; z-index: 50;
}
.teachers-filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.teachers-search-wrap {
  flex: 1; min-width: 200px; display: flex; align-items: center;
  background: #f3f4f6; border-radius: 10px; padding: 0 14px; gap: 8px;
}
.teachers-search-wrap input {
  flex: 1; border: none; background: transparent; padding: 10px 0;
  font-size: 14px; outline: none; color: #333;
}
.teachers-filter-row select {
  padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; background: #fff; color: #333; cursor: pointer;
  outline: none; min-width: 120px;
}
.teachers-register-btn {
  padding: 10px 20px; background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.teachers-register-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.4); }

/* Grid */
.teachers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.teacher-card {
  background: #fff; border-radius: 16px; padding: 24px 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05); cursor: pointer;
  transition: all 0.25s; text-align: center; position: relative;
  border: 1px solid #f0f0f0;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: #C7D2FE; }
.teacher-card-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative;
}
.teacher-card-avatar .avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid #4F46E5; opacity: 0.2;
}
.teacher-card-name { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 4px; }
.teacher-card-title { font-size: 13px; color: #6b7280; margin: 0 0 8px; }
.teacher-card-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.teacher-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
  background: #EEF2FF; color: #4F46E5;
}
.teacher-card-stats { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: #9ca3af; }
.teacher-card-stats strong { color: #374151; }
.teacher-card-rating { color: #F59E0B; }

/* Empty State */
.teachers-empty { text-align: center; padding: 60px 20px; }

.teachers-empty-icon { font-size: 48px; margin-bottom: 16px; }
.teachers-empty-title { font-size: 18px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.teachers-empty-desc { font-size: 14px; color: #9ca3af; }

/* Detail Modal */
.teacher-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.teacher-detail-dialog {
  background: #fff; border-radius: 20px; max-width: 700px; width: 100%;
  max-height: 85vh; position: relative; overflow: hidden;
}
.teacher-detail-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: #f3f4f6; font-size: 20px;
  cursor: pointer; z-index: 10; color: #6b7280; display: flex; align-items: center; justify-content: center;
}
.teacher-detail-close:hover { background: #e5e7eb; }
.teacher-detail-scroll { padding: 32px 28px; overflow-y: auto; max-height: 85vh; }
.teacher-detail-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.teacher-detail-avatar-lg {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: #EEF2FF; border: 4px solid #C7D2FE;
}
.teacher-detail-info h2 { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.teacher-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.teacher-detail-meta { display: flex; gap: 16px; font-size: 13px; color: #6b7280; }
.teacher-detail-star { color: #F59E0B; font-weight: 600; }
.teacher-detail-section { margin-bottom: 24px; }
.teacher-detail-section h3 {
  font-size: 16px; font-weight: 700; color: #1f2937;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #EEF2FF;
}
.teacher-detail-section p { font-size: 14px; color: #4b5563; line-height: 1.8; margin: 0; }

/* Timeline */
.teacher-timeline { display: flex; flex-direction: column; gap: 14px; }
.teacher-timeline-item { display: flex; gap: 14px; position: relative; }
.teacher-timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #4F46E5;
  flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1;
}
.teacher-timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 18px; bottom: -10px;
  width: 2px; background: #e5e7eb;
}
.teacher-timeline-content h4 { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0 0 2px; }
.teacher-timeline-content p { font-size: 13px; color: #6b7280; margin: 0; }

/* Cases */
.teacher-cases-grid { display: flex; flex-direction: column; gap: 10px; }
.teacher-case-item {
  background: #f9fafb; border-radius: 10px; padding: 14px 16px;
  border-left: 4px solid #4F46E5;
}
.teacher-case-item h4 { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0 0 4px; }
.teacher-case-item p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.6; }

/* Videos */
.teacher-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.teacher-video-item {
  background: #1f2937; border-radius: 12px; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden;
}
.teacher-video-play {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: transform 0.2s; z-index: 1;
}
.teacher-video-item:hover .teacher-video-play { transform: scale(1.1); }
.teacher-video-title {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 12px;
}

/* CTA */
.teacher-detail-cta { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.teacher-consult-btn {
  flex: 1; padding: 12px 24px; background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.teacher-consult-btn:hover { box-shadow: 0 4px 12px rgba(79,70,229,0.4); }
.teacher-share-btn {
  padding: 12px 20px; background: #f3f4f6; color: #374151;
  border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; cursor: pointer;
}

/* Register Modal */
.teacher-register-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.teacher-register-dialog {
  background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 32px 28px; position: relative;
}
.teacher-register-dialog h2 { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 6px; }
.teacher-register-subtitle { font-size: 14px; color: #6b7280; margin: 0 0 24px; }
.teacher-register-form { display: flex; flex-direction: column; gap: 16px; }
.teacher-form-row { display: flex; gap: 12px; }
.teacher-form-row .teacher-form-group { flex: 1; }
.teacher-form-group { display: flex; flex-direction: column; gap: 6px; }
.teacher-form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.teacher-form-group input, .teacher-form-group select, .teacher-form-group textarea {
  padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; outline: none; color: #333; font-family: inherit; resize: vertical;
}
.teacher-form-group input:focus, .teacher-form-group select:focus, .teacher-form-group textarea:focus {
  border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.teacher-upload-area {
  border: 2px dashed #d1d5db; border-radius: 12px; padding: 20px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.teacher-upload-area:hover { border-color: #4F46E5; background: #fafafe; }
.teacher-upload-area span { font-size: 13px; color: #9ca3af; }
.teacher-photo-preview { margin-top: 8px; }
.teacher-photo-preview img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.teacher-resume-name { font-size: 13px; color: #4F46E5; margin-top: 4px; }
.teacher-submit-btn {
  padding: 12px 24px; background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 8px; transition: all 0.2s;
}
.teacher-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.4); }

/* ============================================ */
/* 高报直播页面样式 (Live Streaming Page)       */
/* ============================================ */

#page-live { background: #0f0f1a; min-height: 100vh; color: #e0e0e0; }
.live-page-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }

/* Hero */
.live-hero {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a1a3e 100%);
  border-radius: 20px; padding: 40px 36px; margin-bottom: 24px;
  border: 1px solid rgba(139,92,246,0.2);
}
.live-hero-content { text-align: center; }
.live-hero-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.live-hero-subtitle { font-size: 15px; color: #a78bfa; margin: 0 0 16px; max-width: 600px; margin-left: auto; margin-right: auto; line-height:1.6; }
.live-hero-badges { display: flex; gap: 12px; justify-content: center; }
.live-hero-badge {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3);
}
.live-hero-badge.offline { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.3); }

/* Main Row */
.live-main-row { display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.live-player-col { flex: 1; min-width: 0; }
.live-sidebar-col { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; height: 560px; }

/* Player */
.live-player-container {
  background: #1a1a2e; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(139,92,246,0.15); margin-bottom: 12px;
  aspect-ratio: 16/9; min-height: 360px;
}
.live-player-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #6b7280;
}
.live-player-icon { font-size: 56px; margin-bottom: 12px; }
.live-player-text { font-size: 18px; font-weight: 600; color: #a78bfa; margin-bottom: 6px; }
.live-player-subtext { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.live-player-schedule {
  background: rgba(139,92,246,0.1); border-radius: 12px; padding: 16px 24px;
  text-align: center; border: 1px solid rgba(139,92,246,0.2);
}
.live-schedule-label { display: block; font-size: 12px; color: #a78bfa; margin-bottom: 6px; }
.live-schedule-time { display: block; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.live-schedule-topic { font-size: 14px; color: #9ca3af; }

/* Info Bar */
.live-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #1a1a2e; border-radius: 12px; padding: 12px 16px;
  border: 1px solid rgba(139,92,246,0.15);
}
.live-info-host { display: flex; align-items: center; gap: 10px; }
.live-host-avatar { font-size: 28px; }
.live-host-name { font-size: 14px; font-weight: 600; color: #fff; }
.live-host-title { font-size: 12px; color: #6b7280; }
.live-info-stats { display: flex; gap: 16px; }
.live-stat { font-size: 13px; color: #9ca3af; }
.live-stat strong { color: #fff; }

/* Chat Sidebar */
.live-chat-tabs { display: flex; border-bottom: 1px solid rgba(139,92,246,0.2); margin-bottom: 0; }
.live-chat-tab {
  flex: 1; padding: 12px; text-align: center; border: none; background: transparent;
  color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.live-chat-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }
.live-chat-tab:hover { color: #c4b5fd; }

/* Chat Messages */
.live-chat-messages {
  flex: 1; overflow-y: auto; padding: 12px; background: #12121f;
  border: 1px solid rgba(139,92,246,0.1); border-top: none;
}
.live-chat-msg { padding: 6px 0; font-size: 13px; color: #d1d5db; line-height: 1.6; }
.live-chat-msg.ai { color: #6ee7b7; }
.live-chat-msg.host { color: #a78bfa; }
.live-chat-user { font-weight: 600; margin-right: 2px; }

/* AI Panel */
.live-ai-panel { flex: 1; padding: 16px; background: #12121f; border: 1px solid rgba(139,92,246,0.1); border-top: none; overflow-y: auto; }
.live-ai-info { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.live-ai-avatar { font-size: 36px; flex-shrink: 0; }
.live-ai-intro strong { font-size: 15px; color: #a78bfa; display: block; margin-bottom: 4px; }
.live-ai-intro p { font-size: 13px; color: #9ca3af; margin: 0; line-height: 1.6; }
.live-ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.live-ai-feature {
  background: rgba(139,92,246,0.08); border-radius: 8px; padding: 10px;
  font-size: 12px; color: #c4b5fd; display: flex; align-items: center; gap: 6px;
}
.live-ai-feat-icon { font-size: 16px; }
.live-ai-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6ee7b7; }
.live-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; animation: aiPulse 1.5s ease-in-out infinite; }
@keyframes aiPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Chat Input */
.live-chat-input-wrap {
  display: flex; gap: 8px; padding: 10px; background: #1a1a2e;
  border: 1px solid rgba(139,92,246,0.1);
}
.live-chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px; background: #12121f; color: #e0e0e0; font-size: 13px; outline: none;
}
.live-chat-input:focus { border-color: #a78bfa; }
.live-chat-send {
  width: 40px; height: 40px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Section Titles */
.live-section-title {
  font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(139,92,246,0.2);
}
.live-section-desc { font-size: 14px; color: #9ca3af; margin: 0 0 20px; line-height: 1.6; }

/* Platform Grid */
.live-platform-section { margin-bottom: 40px; }
.live-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-platform-card {
  background: #1a1a2e; border-radius: 16px; padding: 24px 20px;
  border: 1px solid rgba(139,92,246,0.15); text-align: center;
  transition: all 0.25s;
}
.live-platform-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.live-platform-icon { font-size: 40px; margin-bottom: 10px; }
.live-platform-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.live-platform-status {
  display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 11px;
  font-weight: 600; margin-bottom: 10px;
  background: rgba(107,114,128,0.2); color: #9ca3af;
}
.live-platform-status.connected { background: rgba(110,231,183,0.15); color: #6ee7b7; }
.live-platform-desc { font-size: 12px; color: #6b7280; margin-bottom: 14px; line-height: 1.5; }
.live-platform-btn {
  padding: 8px 20px; border-radius: 8px; border: 1px solid rgba(139,92,246,0.3);
  background: transparent; color: #a78bfa; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.live-platform-btn:hover { background: rgba(139,92,246,0.1); }
.live-platform-btn.primary { background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff; border: none; }

/* Anti-Ban */
.live-antiban-section { margin-bottom: 40px; }
.live-antiban-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-antiban-card {
  background: #1a1a2e; border-radius: 16px; padding: 24px 20px;
  border: 1px solid rgba(139,92,246,0.1); transition: all 0.25s;
}
.live-antiban-card:hover { border-color: rgba(139,92,246,0.3); }
.live-antiban-icon { font-size: 32px; margin-bottom: 12px; }
.live-antiban-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.live-antiban-card p { font-size: 13px; color: #9ca3af; margin: 0; line-height: 1.6; }

/* Schedule */
.live-schedule-section { margin-bottom: 40px; }
.live-schedule-grid { display: flex; flex-direction: column; gap: 12px; }
.live-schedule-card {
  display: flex; align-items: center; gap: 16px; background: #1a1a2e;
  border-radius: 14px; padding: 16px 20px; border: 1px solid rgba(139,92,246,0.1);
  transition: all 0.2s;
}
.live-schedule-card:hover { border-color: rgba(139,92,246,0.3); }
.live-schedule-date {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
  width: 60px;
}
.live-schedule-day { font-size: 28px; font-weight: 800; color: #a78bfa; }
.live-schedule-month { font-size: 13px; color: #6b7280; }
.live-schedule-info { flex: 1; min-width: 0; }
.live-schedule-tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px;
  font-weight: 600; margin-bottom: 4px;
  background: rgba(110,231,183,0.15); color: #6ee7b7;
}
.live-schedule-tag.upcoming { background: rgba(139,92,246,0.15); color: #a78bfa; }
.live-schedule-info h3 { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.live-schedule-info p { font-size: 13px; color: #9ca3af; margin: 0; }
.live-schedule-desc { font-size: 12px !important; color: #6b7280 !important; margin-top: 2px !important; }
.live-schedule-remind {
  padding: 8px 18px; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
.live-schedule-remind:hover { background: rgba(139,92,246,0.2); }

/* Replays */
.live-replay-section { margin-bottom: 40px; }
.live-replay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.live-replay-card { cursor: pointer; transition: all 0.25s; }
.live-replay-card:hover { transform: translateY(-3px); }
.live-replay-thumb {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 12px; aspect-ratio: 16/9; position: relative;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.live-replay-thumb.replay-2 { background: linear-gradient(135deg, #1e3a5f, #1e40af); }
.live-replay-thumb.replay-3 { background: linear-gradient(135deg, #3b1f5e, #6b21a8); }
.live-replay-play {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  color: #1f2937; transition: transform 0.2s;
}
.live-replay-card:hover .live-replay-play { transform: scale(1.1); }
.live-replay-duration {
  position: absolute; bottom: 6px; right: 8px; padding: 2px 8px;
  background: rgba(0,0,0,0.7); border-radius: 4px; font-size: 11px; color: #fff;
}
.live-replay-info h3 { font-size: 14px; font-weight: 600; color: #e0e0e0; margin: 0 0 4px; }
.live-replay-info p { font-size: 12px; color: #6b7280; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .live-main-row { flex-direction: column; }
  .live-sidebar-col { width: 100%; height: 400px; }
  .teachers-hero { padding: 32px 24px; }
  .teachers-hero-title { font-size: 24px; }
  .teachers-hero-stats { gap: 20px; }
  .teacher-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .teacher-detail-meta { justify-content: center; }
  .teacher-form-row { flex-direction: column; }
}



/* ============ 动态页面容器 ============ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 400px;
}

/* ============ 加载动画 ============ */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-secondary, #666);
  font-size: 14px;
}
.spinner-dot {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #4F46E5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ 错误状态 ============ */
.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  text-align: center;
}
.page-error .error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.page-error p {
  color: #666;
  font-size: 14px;
  max-width: 400px;
  line-height: 1.6;
}
.page-error button {
  padding: 10px 24px;
  background: #4F46E5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.page-error button:hover {
  background: #4338CA;
}

/* ============ 空状态 ============ */
.page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: #999;
}
.page-empty .empty-icon {
  font-size: 48px;
  opacity: 0.5;
}
.page-empty p {
  font-size: 14px;
  color: #999;
}

/* ============ 全局通知Toast ============ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: toastIn 0.3s ease;
  max-width: 360px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.toast-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.toast-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}
.toast-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  padding: 0 2px;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-out {
  animation: toastOut 0.2s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .page-container {
    padding: 16px 12px 40px;
  }
  .toast-container {
    top: 70px;
    right: 10px;
    left: 10px;
  }
  .toast {
    max-width: 100%;
  }
}
/**
 * 智能志愿填报 V3 — 夸克风格CSS
 * 追加到 home.css 末尾
 */

/* ===== 用户信息弹窗 ===== */
.rec-profile-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.rec-profile-modal {
  background: #fff; border-radius: 16px; width: 720px; max-width: 95vw;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.rec-profile-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
}
.rec-profile-header h3 { margin: 0; font-size: 18px; color: #1a1a2e; }
.rec-profile-close {
  background: none; border: none; font-size: 28px; color: #999;
  cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rec-profile-close:hover { background: #f5f5f5; color: #333; }
.rec-profile-body { padding: 24px; }
.rec-section-title {
  font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.rec-section-icon { font-size: 18px; }
.rec-required-tag {
  font-size: 11px; color: #FF5722; background: #FFF2EE;
  padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.rec-optional-tag {
  font-size: 11px; color: #999; background: #f5f5f5;
  padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.rec-form-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px;
}
.rec-form-group { display: flex; flex-direction: column; gap: 4px; }
.rec-form-group label {
  font-size: 12px; color: #666; font-weight: 500;
}
.rec-form-group input, .rec-form-group select {
  height: 40px; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 0 10px; font-size: 14px; color: #333; background: #fff;
  outline: none; transition: border-color 0.2s;
}
.rec-form-group input:focus, .rec-form-group select:focus { border-color: #1677FF; }
.rec-rank-hint { font-size: 12px; color: #999; margin-top: 4px; padding-left: 4px; }
.rec-profile-footer {
  padding: 16px 24px; display: flex; justify-content: center; gap: 12px;
  border-top: 1px solid #f0f0f0;
}
.rec-btn-report {
  padding: 10px 32px; border-radius: 22px; border: 1px solid #1677FF;
  background: #fff; color: #1677FF; font-size: 14px; cursor: pointer;
  font-weight: 500;
}
.rec-btn-report:hover { background: #EEF4FF; }
.rec-btn-done {
  padding: 10px 48px; border-radius: 22px; border: none;
  background: #1677FF; color: #fff; font-size: 15px; cursor: pointer;
  font-weight: 600;
}
.rec-btn-done:hover { background: #0958d9; }

/* ===== 用户信息条 ===== */
.rec-top-section { background: #fff; padding: 16px 24px; margin-bottom: 0; border-radius: 12px 12px 0 0; }
.rec-user-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: linear-gradient(135deg, #F0F5FF 0%, #E6F0FF 100%);
  border-radius: 10px; margin-bottom: 12px;
}
.rec-user-item {
  display: flex; flex-direction: column; gap: 2px; padding: 0 16px;
  border-right: 1px solid #d0d9e8;
}
.rec-user-item:last-of-type { border-right: none; }
.rec-user-label { font-size: 11px; color: #888; }
.rec-user-val { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.rec-user-score .rec-user-val { color: #FF5722; font-size: 20px; }
.rec-user-rank .rec-user-val { color: #1677FF; font-size: 20px; }
.rec-edit-btn {
  margin-left: auto; padding: 6px 16px; border: 1px solid #d0d0d0;
  background: #fff; border-radius: 16px; cursor: pointer; font-size: 13px;
  color: #555; white-space: nowrap;
}
.rec-edit-btn:hover { border-color: #1677FF; color: #1677FF; }
.rec-fill-btn {
  border-color: #1677FF; color: #1677FF; padding: 8px 24px;
  font-size: 14px; font-weight: 500;
}

/* ===== Tab栏 + 批次选择 ===== */
.rec-control-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.rec-tabs { display: flex; gap: 0; }
.rec-tab-btn {
  padding: 10px 24px; border: 1px solid #e0e0e0; background: #fafafa;
  font-size: 15px; cursor: pointer; color: #666; font-weight: 500;
  transition: all 0.2s;
}
.rec-tab-btn:first-child { border-radius: 8px 0 0 8px; }
.rec-tab-btn:last-child { border-radius: 0 8px 8px 0; }
.rec-tab-btn.active {
  background: #1677FF; color: #fff; border-color: #1677FF;
}
.rec-tab-icon { font-size: 16px; }
.rec-batch-select select {
  height: 36px; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 0 12px; font-size: 13px; color: #333; cursor: pointer;
  background: #fff; outline: none;
}

/* ===== 公告条 ===== */
.rec-notice {
  font-size: 12px; color: #FF9800; padding: 6px 0;
  border-bottom: 1px solid #f5f5f5; margin-bottom: 10px;
}

/* ===== 冲稳保统计条 ===== */
.rec-stats-bar { display: flex; gap: 8px; margin: 8px 0 0; }
.rec-stats-placeholder { color: #aaa; font-size: 14px; padding: 8px 0; }
.rec-stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px; border-radius: 10px; border: 1px solid #f0f0f0;
  background: #fff; cursor: pointer; transition: all 0.2s;
}
.rec-stat-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rec-stat-label { font-size: 12px; color: #888; }
.rec-stat-num { font-size: 22px; font-weight: 700; }
.rec-stat-rush .rec-stat-num { color: #FF5722; }
.rec-stat-stable .rec-stat-num { color: #1677FF; }
.rec-stat-safe .rec-stat-num { color: #52C41A; }
.rec-stat-hard .rec-stat-num { color: #999; }
.rec-stat-all .rec-stat-num { color: #333; }
.rec-stat-item.active {
  border-color: #1677FF; box-shadow: 0 2px 8px rgba(22,119,255,0.15);
  background: #F8FAFF;
}

/* ===== 筛选栏 ===== */
.rec-filter-bar {
  display: flex; gap: 8px; padding: 12px 24px; background: #fff;
  border-top: 1px solid #f0f0f0;
  position: sticky; top: 72px; z-index: 10;
}
.rec-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-filter-sel {
  height: 34px; border: 1px solid #e0e0e0; border-radius: 17px;
  padding: 0 14px; font-size: 12px; color: #666; background: #fafafa;
  cursor: pointer; outline: none;
}
.rec-filter-sel:hover { border-color: #1677FF; }

/* ===== 结果区域 ===== */
.rec-result-area { padding: 16px 24px; background: #fff; min-height: 200px; }
.rec-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: #888;
}
.rec-spinner {
  width: 40px; height: 40px; border: 3px solid #e0e0e0;
  border-top-color: #1677FF; border-radius: 50%;
  animation: recSpin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes recSpin { to { transform: rotate(360deg); } }
.rec-empty-state {
  text-align: center; padding: 60px 20px; color: #999;
}
.rec-empty-icon { font-size: 48px; margin-bottom: 12px; }
.rec-error-state {
  text-align: center; padding: 40px 20px; color: #FF5722;
}
.rec-btn-primary {
  margin-top: 16px; padding: 10px 32px; background: #1677FF;
  color: #fff; border: none; border-radius: 22px; font-size: 14px;
  cursor: pointer; font-weight: 500;
}
.rec-btn-primary:hover { background: #0958d9; }

/* ===== 院校卡片列表 ===== */
.rec-card-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 12px 24px 24px; background: #fff;
  border-radius: 0 0 12px 12px;
}
.rec-card {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  overflow: hidden; transition: all 0.2s;
}
.rec-card:hover {
  border-color: #d0d9ff; box-shadow: 0 4px 16px rgba(22,119,255,0.08);
  transform: translateY(-1px);
}

/* 左侧概率徽标 */
.rec-card-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; min-width: 72px; padding: 10px 6px;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.rec-card-badge-num { font-size: 22px; font-weight: 800; line-height: 1; }
.rec-card-badge-type { font-size: 11px; margin-top: 2px; }

/* 中间信息 */
.rec-card-body { flex: 1; padding: 14px; min-width: 0; }
.rec-card-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rec-card-logo {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1px solid #f0f0f0; flex-shrink: 0;
}
.rec-card-logo-placeholder {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.rec-card-name-wrap { flex: 1; min-width: 0; }
.rec-card-name { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.rec-card-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.rec-meta-tag {
  font-size: 10px; color: #888; background: #f5f5f5;
  padding: 1px 6px; border-radius: 4px; white-space: nowrap;
}

/* 底部统计 */
.rec-card-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 8px; background: #fafbfc; border-radius: 8px;
}
.rec-card-stat { display: flex; flex-direction: column; gap: 1px; text-align: center; }
.rec-stat-lbl { font-size: 10px; color: #aaa; }
.rec-stat-val { font-size: 13px; font-weight: 600; color: #333; }

/* 右侧操作 */
.rec-card-actions {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 12px; border-left: 1px solid #f0f0f0;
  min-width: 90px;
}
.rec-card-diff {
  font-size: 12px; color: #1677FF; text-decoration: none; cursor: pointer;
}
.rec-card-diff:hover { text-decoration: underline; }
.rec-card-major-btn {
  padding: 6px 12px; background: #1677FF; color: #fff; border: none;
  border-radius: 16px; font-size: 12px; cursor: pointer; white-space: nowrap;
  font-weight: 500;
}
.rec-card-major-btn:hover { background: #0958d9; }

/* 加载更多 */
.rec-load-more { text-align: center; padding: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .rec-form-row { grid-template-columns: repeat(2, 1fr); }
  .rec-card-list { grid-template-columns: 1fr; }
  .rec-card-stats { grid-template-columns: repeat(2, 1fr); }
  .rec-control-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
}
