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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --danger: #ef4444;
  --success: #22c55e;
  --orange: #f59e0b;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  background: var(--bg);
  padding-bottom: 70px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  position: relative;
}

/* 左边缘手势拦截层（避开 header 区域，不影响返回按钮） */
.edge-trap {
  position: fixed;
  left: 0;
  top: 50px;
  bottom: 0;
  width: 24px;
  z-index: 9999;
  touch-action: none;
  pointer-events: auto;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
}
.header.home-header {
  position: relative;
  z-index: auto;
  display: block;
  height: auto;
  min-height: 320px;
  padding-top: 18px;
  padding-bottom: 0;
  background: linear-gradient(180deg, #1a58d1 0%, #2870f2 100%);
}
.home-header .header-left {
  padding-top: 4px;
  position: absolute;
  left: 16px;
  top: 18px;
  z-index: 2;
}
.home-header .header-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  text-align: center;
  z-index: 2;
}
.home-header .header-greeting {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.home-header .header-sub {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 400;
  margin-top: 4px;
}
.home-header .header-title {
  display: none;
}
.home-header .header-right {
  padding-top: 4px;
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 2;
}
.header-left {
  width: 40px;
  cursor: pointer;
}
.back-icon {
  font-size: 22px;
}
.menu-icon {
  font-size: 20px;
  opacity: 0.9;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}
.header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}
.header-right {
  width: 80px;
  text-align: right;
}
.notif-icon {
  font-size: 18px;
  margin-right: 12px;
  cursor: pointer;
  opacity: 0.9;
}

/* ===== Main ===== */
.main-content {
  padding: 0;
}
.page-home {
  padding: 0 12px 16px;
  /* 延续 header 蓝色渐变到底，避免页边缘出现蓝→灰断层 */
  background: linear-gradient(180deg, #2870f2 0%, #2870f2 30px, transparent 60px);
}

.home-card-area {
  background: #fff;
  border-radius: 16px;
  margin-top: 0;
  padding: 16px 16px 4px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}
.page-search,
.page-detail,
.page-recommend,
.page-ranking,
.page-favorites,
.page-compare,
.page-vip,
.page-early,
.page-policies,
.page-career,
.page-distributor {
  padding: 12px;
}

/* ===== Search Bar ===== */
.search-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-bottom: 16px;
}
.search-icon {
  font-size: 18px;
}
.search-placeholder {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== Quick Actions ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.quick-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.quick-item:active {
  transform: scale(0.96);
}
.quick-icon {
  font-size: 26px;
  margin-bottom: 6px;
}
.quick-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== Sections ===== */
.section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-header h2, .section-header h3 {
  font-size: 16px;
  font-weight: 600;
}
.section-more {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== Hot Schools ===== */
.hot-schools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hot-school-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  position: relative;
}
.school-badge {
  position: absolute;
  top: 6px;
  right: 6px;
}
.tag {
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.tag-211 {
  background: var(--orange);
}
.school-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.school-meta {
  font-size: 12px;
  color: var(--text-secondary);
}
.school-score {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.score-num {
  color: var(--danger);
  font-weight: 700;
  font-size: 16px;
}

/* ===== Type Tags ===== */
.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.type-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.province-tag {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
}
.search-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-select {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
}

/* 目标省份快速选择 */
.target-province-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: wrap;
}
.target-province-bar .tp-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  margin-right: 2px;
}
.target-province-bar .tp-tag {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.target-province-bar .tp-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.target-province-bar .tp-input {
  width: 80px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  background: transparent;
  color: var(--text);
}
.target-province-bar .tp-input:focus {
  border-color: var(--primary);
}

/* ===== Search Page ===== */
.search-input-box {
  position: relative;
  margin-bottom: 14px;
}
.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--primary);
}
.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}
.search-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.si-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.si-meta {
  font-size: 13px;
  color: var(--text-secondary);
}
.si-tags {
  color: var(--primary);
}

/* ===== Search Enhancement: Mode Tabs ===== */
.search-mode-tabs {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.search-mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.search-mode-tab.active {
  background: var(--primary);
  color: #fff;
}
.search-mode-tab:not(.active):active {
  background: var(--primary-light);
}

/* ===== Score Search ===== */
.score-search-form {
  margin-bottom: 14px;
}
.score-search-row {
  position: relative;
  margin-bottom: 10px;
}
.score-search-input {
  padding-right: 40px !important;
}
.score-search-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}
.search-rank-bar {
  background: #eef2ff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}
.search-rank-bar strong {
  color: var(--primary);
}

/* ===== Major Mode Results ===== */
.search-item-major .si-major-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.si-major-tag {
  background: #eef2ff;
  color: var(--primary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.si-major-more {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 3px 6px;
}

/* ===== Score Mode Results ===== */
.search-item-score {
  padding: 14px 16px;
}
.si-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.si-prob-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.si-prob-badge.prob-reach {
  background: #fef3c7;
  color: #b45309;
}
.si-prob-badge.prob-stable {
  background: #dbeafe;
  color: #1d4ed8;
}
.si-prob-badge.prob-safe {
  background: #d1fae5;
  color: #047857;
}
.si-score-row {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.si-score-row strong {
  color: var(--text);
}
.si-prob-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.si-prob-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.si-prob-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.si-prob-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ===== Subject Selection ===== */
.page-subject {
  padding: 16px;
}
.subject-intro {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}
.subject-intro-title {
  font-size: 16px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 6px;
}
.subject-intro-sub {
  font-size: 12px;
  color: #7f1d1d;
  line-height: 1.6;
}
.subject-policy-link {
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.subject-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.subject-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.subject-card-active {
  border: 1px solid #fecaca;
}
.subject-card-locked {
  opacity: 0.6;
}
.subject-card-body {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}
.subject-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  border-radius: 12px;
  flex-shrink: 0;
}
.subject-card-info {
  flex: 1;
  min-width: 0;
}
.subject-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.subject-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.subject-card-status {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.subject-card-badge {
  font-size: 11px;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.subject-card-query {
  border-top: 1px solid #f1f5f9;
  padding: 12px 16px 16px;
}
.subject-input-box {
  position: relative;
  margin-bottom: 12px;
}
.subject-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.subject-input:focus {
  border-color: #dc2626;
}
.subject-results {
  max-height: 360px;
  overflow-y: auto;
}
.subject-result-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.subject-result-item:last-child {
  border-bottom: none;
}
.sri-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.sri-school {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.sri-major {
  font-size: 12px;
  color: var(--text-secondary);
}
.sri-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.sri-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.sri-tag-primary {
  background: #fef2f2;
  color: #dc2626;
}
.sri-tag-elective {
  background: #eef2ff;
  color: #4f46e5;
}
.sri-tag-none {
  background: #f8fafc;
  color: #94a3b8;
}
.sri-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  font-style: italic;
}
.subject-empty {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.subject-loading {
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 智能选科结果 */
.intel-result {
  padding-top: 4px;
}
.intel-top-rec {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}
.intel-top-label {
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 8px;
}
.intel-top-combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.intel-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
}
.intel-tag.preferred {
  background: #dc2626;
  color: #fff;
}
.intel-tag.elective {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}
.intel-plus {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 600;
}
.intel-top-pct {
  font-size: 13px;
  color: #7f1d1d;
}
.intel-top-pct strong {
  font-size: 18px;
}
.intel-combos-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.intel-combo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.intel-combo-label {
  width: 110px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 500;
}
.intel-combo-bar-bg {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.intel-combo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.intel-combo-pct {
  width: 36px;
  text-align: right;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 自主选科分析 */
.self-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.self-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: 60px;
  flex-shrink: 0;
}
.self-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}
.self-toggle-opt {
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.self-toggle-opt.active {
  background: #dc2626;
  color: #fff;
}
.self-selects {
  display: flex;
  gap: 8px;
}
.self-select {
  padding: 6px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.self-select:focus {
  border-color: #dc2626;
}
.self-result {
  padding-top: 4px;
}
.self-match-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.self-match-num {
  font-size: 36px;
  font-weight: 800;
  color: #dc2626;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
}
.self-match-info {
  flex: 1;
  min-width: 0;
}
.self-match-info-top {
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 6px;
}
.self-match-bar-bg {
  height: 8px;
  background: #fecaca;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.self-match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.self-match-rate {
  font-size: 12px;
  color: #7f1d1d;
}
.self-restricted-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.self-restricted-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.self-restricted-item:last-child {
  border-bottom: none;
}
.sr-school {
  font-weight: 600;
  color: var(--text);
}
.sr-major {
  color: var(--text-secondary);
}
.sr-reason {
  color: #dc2626;
  font-size: 11px;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
}
.self-no-restricted {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #16a34a;
  font-weight: 500;
}

/* ===== School Detail ===== */
.detail-header {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.detail-header h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.detail-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.detail-meta {
  font-size: 14px;
  color: var(--text-secondary);
}
.detail-actions {
  text-align: center;
  margin-bottom: 16px;
}
.daily-remaining {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 8px;
}
.daily-remaining strong {
  color: var(--primary);
}
.fav-btn {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 32px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-btn.favorited {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Score Table */
.score-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.score-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg);
  cursor: pointer;
}
.score-tab.active {
  background: var(--primary);
  color: white;
}
.score-table {
  font-size: 13px;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.score-row.header-row {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
}
.col-year, .col-cat, .col-score, .col-rank {
  text-align: center;
}

/* ===== Recommend ===== */
.recommend-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-row {
  display: flex;
  gap: 12px;
}
.flex-1 {
  flex: 1;
}
.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
}
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:active {
  background: var(--primary-dark);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== 各科估分折叠区 ===== */
.form-section-toggle {
  padding: 10px 0;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.subject-scores {
  padding: 8px 0 4px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.subject-scores .form-group { margin-bottom: 8px; }
.subject-scores label { font-size: 12px; color: var(--text-secondary); }
.subject-scores .form-input { padding: 8px 10px; font-size: 14px; }

/* ===== 院校偏好标签 ===== */
.tag-checkboxes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tag-checkbox.checked {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.tag-checkbox input { display: none; }

/* ===== 推荐结果预览卡（非VIP）===== */
.rec-preview-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.rec-preview-icon { font-size: 48px; margin-bottom: 8px; }
.rec-preview-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.rec-preview-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.rec-preview-stat { text-align: center; }
.rps-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}
.rps-label { font-size: 12px; color: var(--text-secondary); }
.rec-preview-tip { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* 推荐预览学校列表 */
.rec-preview-list {
  text-align: left;
  margin: 0 -16px 12px;
  padding: 0 16px;
}
.rpl-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0 6px;
  border-bottom: 1px solid #f1f5f9;
}
.rpl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
}
.rpl-item:hover { background: #f8fafc; margin: 0 -16px; padding: 8px 16px; }
.rpl-item:last-child { border-bottom: none; }
.rpl-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.rpl-score { font-size: 12px; color: var(--primary); font-weight: 600; }
.rpl-rank { font-size: 11px; color: var(--text-secondary); }
.rpl-tuition { font-size: 11px; color: #e67e22; font-weight: 600; }
.rpl-plan { font-size: 11px; color: var(--primary); }
.rpl-label { font-size: 10px; color: var(--text-secondary); font-weight: 400; }

/* ===== 推荐结果学校 + 专业列表 ===== */
.rec-school-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.rec-school-item:last-child { border-bottom: none; }
.rsi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 2px 0;
}
.rsi-name { font-weight: 600; font-size: 14px; flex: 1; }
.rsi-score { font-size: 14px; font-weight: 700; color: var(--danger); }
.rsi-rank { font-size: 12px; color: var(--text-secondary); }
.rsi-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.rsi-major {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}
.rsi-major-more {
  font-size: 11px;
  color: var(--primary);
  padding: 3px 4px;
}

/* Recommend Results */
.rec-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.rec-summary-text {
  color: var(--text);
  font-weight: 500;
}
.rec-summary-edit {
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-light);
  white-space: nowrap;
}
.rec-summary-edit:active { opacity: 0.7; }
.rec-input-info {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.rec-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.rec-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rec-label {
  font-weight: 600;
  font-size: 15px;
}
.rec-count {
  font-size: 13px;
  color: var(--text-secondary);
}
.rec-school {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.rec-school:last-child {
  border-bottom: none;
}
.rec-s-name {
  font-weight: 500;
  margin-bottom: 4px;
}
.rec-s-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}
.rec-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 12px;
}

/* ===== Ranking ===== */
.rank-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.rank-select {
  flex: 1;
}
.rank-table {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rank-row.header-row {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
}
.rank-score {
  font-weight: 700;
  color: var(--danger);
}

/* ===== Favorites ===== */
.fav-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.fav-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.fav-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== VIP ===== */
.page-vip {
  text-align: center;
  padding: 6px 0;
}
.vip-banner {
  padding: 8px 16px 4px;
}
.vip-icon-big {
  font-size: 36px;
  margin-bottom: 2px;
}
.vip-banner h2 {
  font-size: 16px;
  margin: 4px 0;
}
.vip-features {
  text-align: left;
  display: inline-block;
  margin: 4px auto;
}
.vip-feature {
  padding: 3px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.vip-price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 6px 16px;
  box-shadow: var(--shadow);
}
.vip-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.vip-price-desc {
  font-size: 14px;
  color: var(--orange);
  margin: 8px 0 16px;
}
.btn-vip {
  max-width: 200px;
}
.vip-pay-actions .btn-vip {
  max-width: none;
}
.vip-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.empty-hint {
  font-size: 13px;
  margin-top: 8px;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-item.active {
  color: var(--primary);
}
.nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.nav-text {
  font-size: 11px;
}

/* ===== Loading ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================= */
/* ===== 录取概率徽章 ===== */
/* ============================================= */
.prob-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.prob-green { background: #dcfce7; color: #166534; }
.prob-blue { background: #dbeafe; color: #1e40af; }
.prob-yellow { background: #fef9c3; color: #854d0e; }
.prob-orange { background: #ffedd5; color: #9a3412; }
.prob-red { background: #fee2e2; color: #991b1b; }

/* 波动风险指示器 */
.risk-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
}
.risk-low { color: #166534; }
.risk-medium { color: #854d0e; }
.risk-high { color: #991b1b; }
.risk-unknown { color: #64748b; }

/* ============================================= */
/* ===== 录取概率增强可视化 (v2) ===== */
/* ============================================= */
.prob-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.prob-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
  max-width: 120px;
}
.prob-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.prob-bar-fill.prob-green { background: #22c55e; }
.prob-bar-fill.prob-blue { background: #3b82f6; }
.prob-bar-fill.prob-yellow { background: #eab308; }
.prob-bar-fill.prob-orange { background: #f97316; }
.prob-bar-fill.prob-red { background: #ef4444; }
.prob-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.prob-percent {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.prob-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.prob-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.prob-overall-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prob-overall-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.prob-overall-value {
  font-size: 22px;
  font-weight: 800;
}
.prob-bar-lg {
  height: 14px;
  max-width: 100%;
  border-radius: 7px;
  margin-bottom: 8px;
}
.prob-bar-lg .prob-bar-fill {
  border-radius: 7px;
}
.prob-label-text {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 0;
}
.prob-risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.prob-risk-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.prob-year-section {
  background: var(--card);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
}
.prob-year-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.prob-year-table {
  font-size: 13px;
}
.prob-year-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-align: center;
}
.prob-year-row:last-child {
  border-bottom: none;
}
.prob-year-header-row {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
}
.py-col-year { text-align: left; }
.py-col-threshold { text-align: center; }
.py-col-prob { text-align: center; }
.py-col-trend { text-align: center; }
.prob-trend {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.prob-trend-label {
  font-weight: 600;
  color: var(--text-secondary);
}
.prob-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================= */
/* ===== 院校对比 ===== */
/* ============================================= */
.compare-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: white;
  transition: all 0.15s;
  user-select: none;
}
.compare-checkbox.checked {
  background: var(--primary-light);
  border-color: var(--primary);
  font-weight: 600;
}
.compare-checkbox input { display: none; }

/* 对比浮条 */
.compare-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: bar-in 0.3s ease;
}
@keyframes bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.compare-bar-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.compare-bar-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.compare-bar-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.compare-bar-clear {
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

/* 对比页面 */
.compare-grid {
  background: var(--card);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}
.compare-table th, .compare-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  white-space: nowrap;
}
.compare-school-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.compare-tags {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.compare-tags .tag { font-size: 10px; }
.compare-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* ============================================= */
/* ===== 导出按钮 ===== */
/* ============================================= */
.btn-export {
  width: 100%;
  background: #059669;
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.btn-export:active { background: #047857; }

/* ============================================= */
/* ===== AI志愿助手 ===== */
/* ============================================= */
.ai-bubble {
  position: fixed;
  bottom: 76px;
  right: 12px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  cursor: pointer;
  z-index: 80;
  transition: transform 0.15s;
}
.ai-bubble:active { transform: scale(0.92); }

/* AI面板 */
.ai-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60vh;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 300;
  display: flex;
  flex-direction: column;
  animation: ai-in 0.3s ease;
}
@keyframes ai-in {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(0); }
}
.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.ai-panel-title {
  font-weight: 700;
  font-size: 16px;
}
.ai-panel-actions {
  display: flex;
  gap: 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.ai-msg {
  margin-bottom: 12px;
  display: flex;
}
.ai-msg-user { justify-content: flex-end; }
.ai-msg-ai { justify-content: flex-start; }
.ai-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.ai-msg-ai .ai-msg-bubble {
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.ai-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}
.ai-input-area input:focus { border-color: var(--primary); }
.ai-vip-lock {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f8fafc;
  border-radius: 24px;
  border: 1px dashed var(--border);
}
.ai-vip-lock a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ai-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-send-btn:disabled { opacity: 0.5; }
.ai-typing .ai-msg-bubble::after {
  content: '...';
  animation: ai-dot 1s steps(4) infinite;
}
@keyframes ai-dot {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* AI配置弹窗 */
.ai-config-modal .modal-content { max-width: 400px; }
.ai-config-field {
  margin-bottom: 14px;
}
.ai-config-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.ai-config-field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}
.ai-config-field input:focus { border-color: var(--primary); }
.ai-config-tip {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hot-schools {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================= */
/* ===== 用户系统 + VIP + 登录 + 分享样式 ===== */
/* ============================================= */

/* 用户头像 */
.user-avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

/* 用户下拉菜单 */
.user-dropdown {
  position: absolute;
  top: 50px;
  right: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}
.dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
.dropdown-item:active {
  background: var(--bg);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* 试看横幅 */
.trial-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}
.trial-upgrade {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

/* ===== 渐变半遮挡（百度文库风格 VIP 提示） ===== */
.vip-fade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 100px 20px 20px;
  text-align: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.92) 20%, #fff 35%, #fff 100%);
  pointer-events: none;
}
.vip-fade-overlay .btn-primary {
  pointer-events: auto;
}
.vip-fade-lock { font-size: 32px; margin-bottom: 4px; }
.vip-fade-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.vip-fade-desc { font-size: 13px; color: #64748b; margin-bottom: 12px; padding: 0 10px; }
.vip-fade-btn { padding: 10px 28px; font-size: 15px; border-radius: 24px; font-weight: 600; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }

.cr-wrap { position: relative; }
.cr-wrap.cr-preview { max-height: 420px; overflow: hidden; }

.rank-table-wrap { position: relative; }
.rank-table-wrap.rank-preview { max-height: 360px; overflow: hidden; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* VIP 弹窗 */
.vip-modal-content { text-align: center; }
.vip-modal-icon { font-size: 40px; margin-bottom: 4px; }
.vip-modal-subtitle { font-size: 12px; color: var(--text-secondary); margin: -12px 0 16px; }
.vip-modal-price { background: var(--bg); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.vip-modal-price .vip-price-total .vip-price { color: #e74c3c; font-size: 24px; font-weight: 800; }
.vip-price-unit { font-size: 11px; color: var(--text-secondary); margin-left: 4px; }
.vip-modal-benefits { text-align: left; margin-bottom: 16px; }
.vip-benefit { padding: 6px 0; font-size: 13px; color: var(--text); }
.vip-benefit:before { content: "✓ "; color: var(--primary); font-weight: 700; }
.vip-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.vip-share-btn { width: 100%; justify-content: center; }
.btn-vip-full { width: 100%; padding: 14px; font-size: 17px; border-radius: var(--radius); border: none; background: var(--primary); color: #fff; cursor: pointer; font-weight: 700; }
.btn-vip-full:hover { opacity: 0.9; }
.vip-modal-paying { padding: 12px 0; }
.vip-modal-paying .qr-pay-img-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.vip-modal-paying .qr-pay-img { width: 180px; height: 180px; border: 2px solid var(--border); border-radius: 8px; }
.vip-modal-footer { font-size: 11px; color: var(--text-secondary); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* 成绩快速录入弹窗 - 紧凑美观 */
.score-form-content { max-width: 320px; padding: 12px 14px 10px; }
.score-form-content .modal-title { margin-bottom: 6px; font-size: 15px; }
.score-form-body { display: flex; flex-direction: column; gap: 4px; }
.score-form-body .form-row { gap: 6px; }
.score-form-body .form-group { margin-bottom: 0; }
.score-form-body .form-group label { font-size: 11px; margin-bottom: 1px; font-weight: 500; color: var(--text-secondary); }
.score-form-body .form-input,
.score-form-body .form-select { padding: 5px 7px; font-size: 13px; }
.score-form-body .form-tip { font-size: 10px; color: var(--text-secondary); text-align: center; margin: 0; }
.score-form-body .subject-scores { padding: 4px 6px 2px; background: #f1f5f9; border-radius: 6px; margin: 0; }
.score-form-body .subject-scores .form-group { margin-bottom: 3px; }
.score-form-body .subject-scores .form-group label { font-size: 10px; }
.score-form-body .subject-scores .form-input { padding: 4px 6px; font-size: 12px; }
.score-form-body .btn-primary.score-form-btn { margin-top: 2px; padding: 10px; font-size: 14px; }
.score-form-body .btn-outline { margin-top: 4px; padding: 10px; font-size: 14px; }
.score-lock-notice { background: #fee2e2; color: #dc2626; border-radius: 6px; padding: 10px; text-align: center; font-size: 13px; margin-bottom: 6px; line-height: 1.6; }
.score-form-disabled { opacity: 0.5; pointer-events: none; }

.btn-outline {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-outline:hover { opacity: 0.92; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35); }
.btn-outline:active { transform: scale(0.98); }

/* 一分一段预览锁 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
}
.login-phone-display {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px;
}

/* ===== 分享弹窗 ===== */
.share-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.share-link-box {
  display: flex;
  gap: 8px;
}
.share-link-box input {
  text-align: center;
  font-size: 12px;
  word-break: break-all;
}
.share-ad-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.share-ad-text {
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

/* ===== 微信支付二维码 ===== */
.qr-pay-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-pay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.qr-pay-icon {
  font-size: 20px;
}
.qr-pay-title {
  font-size: 15px;
  font-weight: 700;
}
.qr-pay-img-wrap {
  background: white;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 8px;
  border: 2px solid var(--border);
}
.qr-pay-img {
  width: 160px;
  height: 160px;
  display: block;
}
.qr-pay-tips {
  text-align: center;
  margin: 8px auto;
}
.qr-pay-tips p {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
}
.qr-pay-tip-sub {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  margin-top: 4px;
}
.qr-pay-steps {
  text-align: left;
  margin: 10px auto;
  padding: 0 10px;
  max-width: 260px;
}
.qr-pay-step {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #475569 !important;
  line-height: 1.8 !important;
  position: relative;
  padding-left: 4px;
}
.btn-cancel-pay {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 12px;
}

/* ===== 二维码加载动画 ===== */
.qr-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.qr-loading-placeholder {
  width: 160px;
  height: 160px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.vip-active {
  text-align: center;
}
.vip-active-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}
.vip-price-card {
  text-align: left;
}
.vip-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  font-size: 14px;
}
.vip-price-label {
  color: var(--text-secondary);
}
.vip-price-original {
  text-decoration: line-through;
  color: var(--text-secondary);
}
.vip-price-discount {
  color: var(--danger);
  font-weight: 600;
}
.vip-price-divider {
  height: 1px;
  background: var(--border);
  margin: 3px 0;
}
.vip-price-total .vip-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--danger);
  text-decoration: none;
}
.vip-pay-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 8px 16px;
}
.vip-pay-actions .btn-primary {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 8px 6px;
  font-size: 13px;
}
.vip-pay-actions .btn-vip {
  max-width: none;
}
.vip-share-row {
  margin: 8px 16px;
}
.vip-share-row .btn-share {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: #ef4444;
  color: #fff;
  border: none;
}
.vip-share-row .btn-share:active {
  background: #dc2626;
}
.btn-share {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-share:active {
  background: var(--primary-light);
}
.vip-pay-note {
  text-align: center;
  font-size: 12px;
  color: var(--orange);
  margin: 8px 16px;
}
.share-discount-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  text-align: center;
  padding: 6px 12px;
  margin: 0 16px 4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

/* VIP引导条 */
.vip-guide {
  text-align: center;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vip-guide p {
  font-size: 15px;
  margin-bottom: 12px;
}

/* ===== Toast提示 ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  z-index: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: toast-in 0.3s ease;
  white-space: nowrap;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 首页Banner广告条 ===== */
.banner-wrap {
  margin: 0 0 12px 0;
  border-radius: 12px;
  overflow: hidden;
}
.banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Banner轮播 ===== */
.banner-carousel {
  margin: 0 0 12px 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  cursor: pointer;
  user-select: none;
}
.carousel-img {
  display: block;
  width: 100%;
  height: auto;
}
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ===== 首页省份切换条 ===== */
.home-province-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-province-bar::-webkit-scrollbar { display: none; }
.hp-item {
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: #f1f5f9;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.hp-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ===== 首页搜索框 ===== */
.home-search-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.home-search-box:focus-within {
  border-color: var(--primary);
  background: #fff;
}
.hsb-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.hsb-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  padding: 12px 0;
  min-width: 0;
}
.hsb-input::placeholder {
  color: #94a3b8;
}
.hsb-clear {
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ===== 院校排行榜 ===== */
.home-ranking {
  margin: 16px 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.home-section-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.ranking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.rtab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: #f1f5f9;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.rtab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.ranking-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ranking-scroll::-webkit-scrollbar { display: none; }
.ranking-card {
  flex-shrink: 0;
  width: 140px;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ranking-card:active {
  transform: scale(0.96);
}
.rc-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rc-rank-gold {
  background: #f59e0b;
  color: #fff;
}
.rc-rank-silver {
  background: #94a3b8;
  color: #fff;
}
.rc-rank-bronze {
  background: #d97706;
  color: #fff;
}
.rc-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.rc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-change {
  font-size: 11px;
  color: var(--text-secondary);
}
.rc-change.up {
  color: #22c55e;
  font-weight: 600;
}
.rc-change.down {
  color: #ef4444;
  font-weight: 600;
}

/* ===== 快捷功能网格 ===== */
.func-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  cursor: pointer;
  transition: transform 0.15s;
}
.func-item:active {
  transform: scale(0.92);
}
.func-item span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}
.func-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ===== 排除院校按钮 ===== */
.exclude-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.exclude-btn:hover,
.exclude-btn:active {
  background: #fee2e2;
  color: #ef4444;
}

/* ===== 排除栏 ===== */
.rec-exclude-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
  margin-top: 12px;
}
.rec-exclude-bar a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* ===== 职业倾向测试 ===== */
.quiz-modal {
  max-width: 360px;
  padding: 24px 20px 28px;
}
.quiz-body {
  text-align: center;
}
.quiz-progress {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.quiz-question {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 18px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  font-size: 15px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.quiz-option:hover,
.quiz-option:active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

/* ===== 职业测试按钮（推荐页底部） ===== */
.btn-quiz {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border: 2px solid #a78bfa;
  border-radius: 8px;
  background: white;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-quiz:hover,
.btn-quiz:active {
  background: #f5f3ff;
  border-color: #7c3aed;
}

/* ===== 导出按钮加强 ===== */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-export:hover,
.btn-export:active {
  background: #334155;
}

/* ===== 分享弹窗（复制链接） ===== */
/* 复用 .modal-overlay + .modal-content 的通用样式 */

/* ===== Toast ===== */
.toast-fixed {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.78);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 700;
  white-space: nowrap;
  animation: toastIn 0.25s ease-out;
  max-width: 80vw;
  white-space: normal;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 分享引导箭头（大屏醒目版） ===== */
.share-guide-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 700;
  animation: fadeIn 0.3s;
}
.share-guide-arrow {
  position: fixed;
  top: 18px;
  right: 20px;
  font-size: 64px;
  color: #fff;
  font-weight: bold;
  animation: bounceArrow 0.8s ease-in-out infinite;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7);
  z-index: 701;
}
.share-guide-arrow::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 90px;
  height: 90px;
  border: 4px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: pulseRing 1.5s ease-in-out infinite;
}
.share-guide-text {
  position: fixed;
  top: 95px;
  right: 20px;
  font-size: 20px;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.6);
  padding: 14px 22px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  font-weight: 600;
}
.share-guide-dismiss {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  padding: 10px 28px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 701;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================= */
/* ===== 骨架屏加载 ===== */
/* ============================================= */
.home-skeleton {
  padding: 0 12px;
}
.skeleton-banner {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 12px;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.skeleton-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.skeleton-card {
  min-width: 80px;
  height: 60px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  flex: 1;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 底部导航6项适配 ===== */
.nav-item-sm .nav-text {
  font-size: 10px;
}
.nav-item-sm .nav-icon {
  font-size: 18px;
}

/* ===== 职业规划页面 ===== */
.page-career {
  padding: 16px;
  padding-bottom: 32px;
}

/* 顶部横幅 */
.career-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  margin: -16px -16px 20px -16px;
  padding: 28px 20px 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.career-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.career-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.career-banner-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.career-banner-sub {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* 步骤标题 */
.career-section {
  margin-bottom: 24px;
}
.career-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.career-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.career-step-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.career-step-hint {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  margin-left: auto;
}

/* 兴趣标签网格 */
.career-interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.career-interest-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.career-interest-item:active {
  transform: scale(0.96);
}
.career-interest-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(79,70,229,0.1);
}
.career-interest-item.selected {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: 0 4px 16px rgba(79,70,229,0.15);
}
.career-interest-item .cii-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 2px;
}
.career-interest-item .cii-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.career-interest-item .cii-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.career-interest-item .cii-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(79,70,229,0.4);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.career-interest-item.selected .cii-check {
  opacity: 1;
  transform: scale(1);
}

/* 职业规划表单卡片 */
.career-form-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}
.career-form-card .form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.career-form-card .form-row:last-child {
  margin-bottom: 0;
}
.career-form-card .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.career-form-card .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 生成按钮 */
.career-generate-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.career-generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.career-generate-btn:active:not(:disabled) {
  transform: translateY(0);
}
.career-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.career-generate-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.4;
}

/* 加载动画 */
.career-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.career-loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid #e0e7ff;
  border-top-color: #4f46e5;
  border-right-color: #7c3aed;
  border-radius: 50%;
  animation: career-spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes career-spin {
  to { transform: rotate(360deg); }
}
.career-loading-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.career-loading-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 错误提示 */
.career-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--danger);
  font-size: 14px;
}

/* ===== 职业规划报告 ===== */
.career-report {
  padding-bottom: 24px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 核心结论 */
.cr-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}
.cr-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cr-summary-text {
  font-size: 15px;
  color: #1e1b4b;
  line-height: 1.7;
  font-weight: 500;
  flex: 1;
}

/* 报告区块 */
.cr-section {
  margin-bottom: 24px;
}
.cr-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-section-title .emoji {
  font-size: 18px;
}

/* 职业方向卡片 */
.cr-career-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cr-career-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.cr-career-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.cr-career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cr-career-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-career-name .emoji {
  font-size: 18px;
}
.cr-career-match {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cr-career-match.match-高 {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  box-shadow: 0 1px 4px rgba(22,163,74,0.15);
}
.cr-career-match.match-较高 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(37,99,235,0.15);
}
.cr-career-match.match-中 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  box-shadow: 0 1px 4px rgba(217,119,6,0.15);
}
.cr-career-match.match-低 {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  box-shadow: 0 1px 4px rgba(220,38,38,0.15);
}
.cr-career-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.cr-career-reason {
  font-size: 13px;
  color: #4f46e5;
  background: #eef2ff;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.5;
  border-left: 3px solid #4f46e5;
}

/* 专业标签 */
.cr-major-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-major-tag {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.cr-major-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79,70,229,0.2);
}

/* 院校类型标签 */
.cr-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-school-tag {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.cr-school-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}

/* 时间线发展建议 */
.cr-timeline {
  position: relative;
  padding-left: 8px;
}
.cr-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #4f46e5, #c7d2fe);
  border-radius: 1px;
}
.cr-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}
.cr-timeline-item:last-child {
  padding-bottom: 0;
}
.cr-timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
  position: relative;
  z-index: 1;
}
.cr-timeline-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 6px;
  flex: 1;
}

/* 底部操作按钮 */
.cr-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.cr-actions .btn-primary,
.cr-actions .btn-export {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  border-radius: 12px;
  font-weight: 600;
}

/* 职业报告 - 预览遮挡 */
.cr-body {
  position: relative;
}
.cr-preview {
  max-height: 420px;
  overflow: hidden;
}

/* ===== 学费表格 ===== */
.tuition-table {
  font-size: 13px;
}
.tuition-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.tuition-row.header-row {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
}
.tt-col-major, .tt-col-tuition, .tt-col-notes {
  text-align: center;
}
.tt-col-major {
  text-align: left;
}

/* ===== 政策前沿页面 ===== */
.page-policies {
  padding-bottom: 16px;
}
.policy-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.policy-card:active {
  transform: scale(0.98);
}
.pc-img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}
.pc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 1px;
}
.pc-title {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.policy-load-more {
  text-align: center;
  padding: 16px;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: background 0.15s;
}
.policy-load-more:active {
  background: var(--primary-light);
}
.policy-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.policy-loading .loading-spinner {
  margin: 0 auto 12px;
}

/* ===== 提前批页面 ===== */
.page-early {
  padding-bottom: 16px;
}
.early-filter {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #fed7aa;
}
.ea-total {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 2px;
}
.early-group {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.early-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #fcd34d;
}
.early-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.early-batch-tag {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}
.early-group-count {
  font-size: 12px;
  color: #92400e;
  font-weight: 500;
}
.early-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.early-item:last-child {
  border-bottom: none;
}
.early-item:active {
  background: #f8fafc;
}
.ei-left {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}
.ei-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ei-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.ei-name-row .tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.4;
}
.tag-985 {
  background: #dc2626;
  color: white;
}
.tag-211 {
  background: #f59e0b;
  color: white;
}
.ei-major {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ei-right {
  text-align: right;
  flex-shrink: 0;
}
.ei-score {
  color: var(--danger);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}
.ei-rank {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}
.ei-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 1px;
}
.early-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 13px;
}
.early-vip-lock {
  text-align: center;
  padding: 24px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin: 8px 0;
}
.early-vip-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.early-vip-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* 402 额度不足 */
.balance-block {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.balance-block-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.balance-block-title {
  font-size: 15px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 4px;
}
.balance-block-desc {
  font-size: 13px;
  color: #c2410c;
  line-height: 1.5;
}

/* ============================================= */
/* ===== 分销系统 ===== */
/* ============================================= */
.page-distributor {
  padding-bottom: 16px;
}
.dist-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.dist-hero {
  text-align: center;
  padding: 20px 0 12px;
}
.dist-hero-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.dist-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dist-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.dist-hero-features {
  text-align: left;
  display: inline-block;
}
.dist-hero-feature {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
}
.dist-apply-section {
  padding: 12px 0 4px;
}
.dist-apply-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  resize: vertical;
  margin-bottom: 12px;
  font-family: inherit;
}
.dist-apply-input:focus {
  border-color: var(--primary);
}
.dist-status-card {
  text-align: center;
  padding: 24px 16px;
}
.dist-status-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.dist-status-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dist-status-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 分销 Tab 导航 */
.dist-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dist-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 500;
}
.dist-tab.active {
  background: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  color: var(--text);
}

/* 分销数据卡片 */
.dist-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dist-stat-card {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
}
.dist-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.dist-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 推广链接区域 */
.dist-promo-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.dist-promo-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.dist-promo-box {
  display: flex;
  gap: 8px;
}
.dist-promo-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  background: #f8fafc;
  font-family: monospace;
}
.dist-promo-btn {
  width: auto;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
}
.dist-promo-tip {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 列表公共样式 */
.dist-list-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.dist-list-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dist-list-item:last-child {
  border-bottom: none;
}
.dist-list-top, .dist-list-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dist-list-top {
  margin-bottom: 4px;
}
.dist-list-bottom {
  font-size: 12px;
  color: var(--text-secondary);
}
.dist-list-order {
  font-size: 12px;
  color: var(--text-secondary);
}
.dist-list-amount {
  font-weight: 600;
  color: var(--danger);
}

/* 标签徽章 */
.dist-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.dist-badge-green { background: #dcfce7; color: #16a34a; }
.dist-badge-yellow { background: #fef3c7; color: #d97706; }
.dist-badge-gray { background: #f1f5f9; color: #64748b; }
.dist-badge-blue { background: #dbeafe; color: #2563eb; }
.dist-badge-red { background: #fee2e2; color: #dc2626; }

/* 空状态 */
.dist-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
  font-size: 13px;
}

/* 提现表单 */
.dist-withdraw-form, .dist-codes-form {
  margin-bottom: 8px;
}
.dist-form-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.dist-form-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.dist-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  margin-bottom: 8px;
}
.dist-form-input:focus {
  border-color: var(--primary);
}
.dist-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== 上半U型半圆仪表盘（在 header 内） ===== */
.gauge-hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: transparent;
  padding: 0 12px 22px;
  text-align: center;
}
.gauge-ring-area {
  position: relative;
  width: 72%;
  max-width: 270px;
  margin: 0 auto;
}
.gauge-ring-svg {
  display: block;
  width: 100%;
  height: auto;
}
.gauge-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.gauge-center {
  text-align: center;
  flex: 1;
  min-width: 0;
  padding-left: 25px;
  margin-top: -10px;
}
.gauge-big-num {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}
.gauge-unit {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-left: 2px;
}
.gauge-big-sub {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-top: 2px;
  opacity: 0.9;
}
.gauge-side {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.9;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.gauge-side:active {
  opacity: 0.7;
}
.gauge-cta {
  display: block;
  width: 80%;
  max-width: 280px;
  height: 48px;
  line-height: 48px;
  margin: 16px auto 0;
  border: none;
  border-radius: 24px;
  background: #fff;
  color: #1a58d1;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.gauge-cta:active {
  transform: scale(0.97);
}

/* ===== 仪表盘数据行 ===== */
.gauge-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px 8px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}
.gauge-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gauge-stat-sep {
  opacity: 0.3;
}
.gauge-stat-val {
  font-weight: 700;
  font-size: 13px;
}
.gauge-stat-chong { color: #fcd34d; font-weight: 700; }
.gauge-stat-wen { color: #93c5fd; font-weight: 700; }
.gauge-stat-bao { color: #6ee7b7; font-weight: 700; }

/* ===== 适合我的大学 点击展开 ===== */
.gauge-big-sub-clickable {
  cursor: pointer;
  opacity: 0.95;
}
.gauge-big-sub-clickable:active {
  opacity: 0.7;
}
.breakdown-arrow {
  font-size: 10px;
  margin-left: 3px;
  display: inline-block;
}
.breakdown-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 130px;
  z-index: 50;
  margin-top: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.breakdown-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0,0,0,0.82);
}
.breakdown-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
}
.breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.reach-dot { background: #f59e0b; }
.stable-dot { background: #3b82f6; }
.safe-dot { background: #10b981; }
.breakdown-label {
  flex: 1;
  text-align: left;
  opacity: 0.8;
}
.breakdown-count {
  font-weight: 700;
  font-size: 15px;
}
.breakdown-unit {
  opacity: 0.5;
  font-size: 11px;
}

/* ===== 通知铃铛 ===== */
.notif-icon {
  font-size: 18px;
  margin-right: 12px;
  cursor: pointer;
  opacity: 0.9;
  position: relative;
  display: inline-block;
}
.notif-badge {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* ===== 通知面板 ===== */
.notif-panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: transparent;
}
.notif-panel {
  position: fixed;
  top: 52px;
  right: 8px;
  width: 330px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 14px;
}
.notif-panel-title {
  flex: 1;
}
.notif-mark-all {
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 400;
}
.notif-panel-close {
  font-size: 16px;
  cursor: pointer;
  opacity: 0.4;
  line-height: 1;
}
.notif-panel-body {
  overflow-y: auto;
  max-height: calc(70vh - 48px);
  -webkit-overflow-scrolling: touch;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:active {
  background: #f8fafc;
}
.notif-item.unread {
  background: #eff6ff;
}
.notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item.unread .notif-item-title {
  color: #1e40af;
}
.notif-item-content {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* ===== 院校详情错误提示 ===== */
.detail-error {
  padding: 40px 20px;
  text-align: center;
}
.detail-error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.detail-error-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  word-break: break-all;
}

/* ===== 志愿表系统 ===== */
.plan-list-page, .plan-detail-page {
  padding: 12px 0 80px;
}
.plan-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}
.plan-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.plan-create-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 志愿表卡片 */
.plan-card {
  margin: 0 16px 12px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s;
  position: relative;
}
.plan-card:active { box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.plan-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.plan-card-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.plan-card-badge.draft { background: #f1f5f9; color: #64748b; }
.plan-card-badge.submitted { background: #dcfce7; color: #166534; }
.plan-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.plan-card-meta span { display: flex; align-items: center; gap: 3px; }
.plan-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.plan-card-action {
  font-size: 12px;
  color: var(--text-secondary);
  background: #f8fafc;
  border: none;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
}
.plan-card-action.danger { color: var(--danger); }
.plan-card-action:active { background: #e2e8f0; }

/* 空状态 */
.plan-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.plan-empty-icon { font-size: 48px; margin-bottom: 12px; }
.plan-empty-text { font-size: 15px; margin-bottom: 20px; }

/* 志愿表详情 - 头部 */
.plan-detail-header {
  padding: 0 16px 12px;
}
.plan-detail-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.plan-detail-name {
  font-size: 19px;
  font-weight: 700;
}
.plan-detail-name-input {
  font-size: 19px;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid var(--primary);
  padding: 2px 4px;
  outline: none;
  background: transparent;
  width: 200px;
}
.plan-detail-edit-btn {
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.plan-detail-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 志愿项列表 */
.plan-item {
  display: flex;
  align-items: center;
  margin: 0 16px 8px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  gap: 10px;
  position: relative;
}
.plan-item-order {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-item-body {
  flex: 1;
  min-width: 0;
}
.plan-item-school {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.plan-item-major {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.plan-item-prob {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* 概率色条 */
.plan-prob-bar {
  height: 4px;
  border-radius: 2px;
  width: 100%;
  max-width: 70px;
}
.plan-prob-bar.reach { background: #f97316; }
.plan-prob-bar.stable { background: #22c55e; }
.plan-prob-bar.safe { background: #3b82f6; }
.plan-prob-label {
  font-size: 11px;
  font-weight: 500;
}
.plan-prob-label.reach { color: #f97316; }
.plan-prob-label.stable { color: #16a34a; }
.plan-prob-label.safe { color: #2563eb; }

.plan-item-drag {
  font-size: 18px;
  color: #cbd5e1;
  cursor: grab;
  flex-shrink: 0;
  padding: 4px;
  user-select: none;
  touch-action: none;
}
.plan-item-drag:active { cursor: grabbing; }
.plan-item-del {
  font-size: 16px;
  color: #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  background: none;
  border: none;
}
.plan-item-del:active { color: var(--danger); }

/* 底部浮动操作栏 */
.plan-float-bar {
  position: fixed;
  bottom: 62px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  z-index: 99;
}
.plan-float-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.plan-float-btn.add { background: var(--primary); color: #fff; }
.plan-float-btn.submit { background: #dcfce7; color: #166534; }
.plan-float-btn.export { background: #f1f5f9; color: var(--text-primary); }
.plan-float-btn:active { opacity: 0.85; }
.plan-float-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 添加志愿弹窗 */
.plan-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.plan-modal {
  width: 100%;
  max-width: 420px;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.plan-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
  font-weight: 600;
}
.plan-modal-close {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 4px;
}
.plan-modal-search {
  padding: 12px 16px;
}
.plan-modal-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.plan-modal-search input:focus { border-color: var(--primary); }
.plan-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}
.plan-modal-school {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
}
.plan-modal-school:last-child { border-bottom: none; }
.plan-modal-school-info { flex: 1; min-width: 0; }
.plan-modal-school-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.plan-modal-school-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.plan-modal-add-btn {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.plan-modal-add-btn:active { opacity: 0.8; }
.plan-modal-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 概率汇总小标签 */
.plan-summary {
  display: flex;
  gap: 10px;
  padding: 10px 16px 4px;
}
.plan-summary-item {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text-secondary);
}
.plan-summary-item.reach { background: #fff7ed; color: #c2410c; }
.plan-summary-item.stable { background: #f0fdf4; color: #16a34a; }
.plan-summary-item.safe { background: #eff6ff; color: #2563eb; }

/* 拖拽幽灵样式 */
.plan-item.dragging { opacity: 0.5; }
.plan-item.drag-over { border-top: 2px solid var(--primary); }

/* 创建弹窗额外 */
.plan-create-modal .plan-modal { max-height: 50vh; }
.plan-form-group {
  padding: 12px 16px;
}
.plan-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.plan-form-group input, .plan-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.plan-form-group select { appearance: auto; }
.plan-form-group input:focus, .plan-form-group select:focus { border-color: var(--primary); }
.plan-form-submit {
  margin: 16px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.plan-form-submit:active { opacity: 0.85; }

/* 志愿表快捷按钮 */
.plan-add-link {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
}
.plan-add-link:active { background: #eff6ff; }
.plan-detail-add-btn {
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.plan-detail-add-btn:active { background: #eff6ff; }

/* 选择志愿表弹窗（页面内） */
.plan-pick-list {
  padding: 0 16px 16px;
  max-height: 300px;
  overflow-y: auto;
}
.plan-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.plan-pick-item:last-child { border-bottom: none; }
.plan-pick-name {
  font-size: 14px;
  font-weight: 600;
}
.plan-pick-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.plan-pick-btn {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================= */
/* ===== 查专业页面 ===== */
/* ============================================= */
.page-major {
  padding: 12px;
}
.search-input-box {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.search-input-box:focus-within {
  border-color: var(--primary);
}
.search-input-box .search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 10px 0;
  color: var(--text);
  min-width: 0;
}
.search-input-box .search-input::placeholder {
  color: #94a3b8;
}
.clear-btn {
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
/* 查专业页的 clear-btn 覆盖搜索页的 absolute 定位 */
.page-major .search-input-box .clear-btn {
  position: static;
}
.major-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.mct-item {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
}
.mct-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.major-level-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ml-item {
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
}
.ml-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.major-loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
  font-size: 14px;
}
.major-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.major-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.mi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mi-name { font-weight: 600; font-size: 15px; }
.mi-badge { font-size: 11px; padding: 2px 8px; border-radius: 8px; font-weight: 500; }
.mi-badge-uni { background: var(--primary-light); color: var(--primary); }
.mi-badge-college { background: #fef3c7; color: #d97706; }
.mi-meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; }
.mi-category { color: var(--primary); }
.mi-count { color: var(--text-secondary); }
.mi-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mid-loading, .mid-empty { text-align: center; color: var(--text-secondary); padding: 12px; font-size: 13px; }
.mid-school {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
}
.mid-school:last-child { border-bottom: none; }
.mids-name { flex: 1; font-size: 14px; }
.mids-score { font-size: 13px; color: var(--danger); font-weight: 500; }
.mids-rank { font-size: 13px; color: var(--text-secondary); }
.major-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px 24px;
  font-size: 14px;
}
.major-load-more {
  text-align: center;
  padding: 14px;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.major-load-more:active {
  background: var(--primary-light);
}

/* ============================================= */
/* ===== 院校详情 Tab 布局 ===== */
/* ============================================= */
.detail-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 16px 0;
  overflow-x: auto;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}
.detail-tab {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.detail-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.detail-tab-content {
  min-height: 120px;
}

/* 院校简介 */
.school-intro-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
  white-space: pre-line;
}
.school-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.school-info-item {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.school-info-item strong {
  color: var(--text);
  margin-right: 4px;
}

/* 排名 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-item {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.rank-item:last-child { border-bottom: none; }

/* 招生计划 & 选科要求表格（复用 score-row 布局） */
.plan-table, .subject-table {
  width: 100%;
}
.plan-table .score-row, .subject-table .score-row {
  display: flex;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 4px;
}
.plan-table .score-row:last-child, .subject-table .score-row:last-child {
  border-bottom: none;
}

/* 批次标签 */
.batch-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* col-batch for score table */
.col-batch {
  flex: 0 0 60px;
  min-width: 60px;
}

/* 招生简章 */
.brochure-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

/* 院校详情加载占位（防白板） */
.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ===== 测评向导通用样式 ===== */
.assess-progress-wrap {
  padding: 16px 0 12px;
  margin-bottom: 16px;
}
.assess-step-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.assess-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s;
}
.assess-step-dot.active {
  background: var(--primary, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.assess-step-dot.done {
  background: #10b981;
  color: #fff;
}
.asd-num {
  line-height: 1;
}
.assess-step-titles {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.assess-step-title {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  flex: 1;
  max-width: 80px;
}
.assess-step-title.active {
  color: var(--primary, #2563eb);
  font-weight: 600;
}
.assess-step-title.done {
  color: #10b981;
}
.assess-progress-bar-wrap {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.assess-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #2563eb), #10b981);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* 测评选项列表 */
.assess-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assess-option-btn {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.assess-option-btn:hover {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}
.assess-option-btn.selected {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.aob-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 测评导航按钮 */
.assess-nav-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 0;
}
.assess-nav-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.assess-nav-btn.prev {
  background: #f1f5f9;
  color: #475569;
  max-width: 120px;
}
.assess-nav-btn.prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.assess-nav-btn.next {
  background: linear-gradient(135deg, var(--primary, #2563eb), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.assess-nav-btn.next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

/* 价值观选择网格 */
.assess-option-grid.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.assess-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.assess-value-item:hover {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}
.assess-value-item.selected {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.avi-icon {
  font-size: 24px;
}

/* 测评评分（星级） */
.assess-rating-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assess-rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.ari-label {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}
.ari-stars {
  display: flex;
  gap: 4px;
}
.ari-star {
  font-size: 24px;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
}
.ari-star:hover {
  transform: scale(1.2);
}
.ari-star.filled {
  color: #f59e0b;
}

/* 问题卡片 */
.assess-question-card {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.aqc-q {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 10px;
}
.aqc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aqc-opt {
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.aqc-opt:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
}
.aqc-opt.selected {
  border-color: var(--primary, #2563eb);
  background: var(--primary, #2563eb);
  color: #fff;
}

/* ===== 学业择校专用样式 ===== */
.assess-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assess-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.ari-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ari-name {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
}
.ari-arrows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.ari-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ari-arrow:hover {
  background: #2563eb;
  color: #fff;
}
.ari-arrow:active {
  transform: scale(0.92);
}

/* 学业报告 */
.academ-report {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.academ-report-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.academ-report-card.summary {
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-color: #bfdbfe;
}
.arc-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.arc-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}
.arc-level {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.arc-level.level-high {
  background: #d1fae5;
  color: #065f46;
}
.arc-level.level-medium {
  background: #dbeafe;
  color: #1e40af;
}
.arc-level.level-low {
  background: #fef3c7;
  color: #92400e;
}
.arc-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}
.arc-subjects {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
.arc-subjects.strong {
  color: #059669;
}
.arc-subjects.weak {
  color: #d97706;
}
.academ-subject-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.asb-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asb-label {
  width: 60px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  flex-shrink: 0;
  text-align: right;
}
.asb-bar-bg {
  flex: 1;
  height: 20px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}
.asb-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}
.asb-bar-fill.strong {
  background: linear-gradient(90deg, #10b981, #059669);
}
.asb-bar-fill.medium {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.asb-bar-fill.weak {
  background: linear-gradient(90deg, #f87171, #ef4444);
}
.asb-score {
  width: 36px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: right;
}

/* ===== 匹配度标签 ===== */
.rsi-match-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}
.rsi-match-badge.match-high {
  background: #d1fae5;
  color: #065f46;
}
.rsi-match-badge.match-medium {
  background: #fef3c7;
  color: #92400e;
}
.rsi-match-badge.match-low {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== 测评引导横幅 ===== */
.assess-prompt-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.apb-icon {
  font-size: 20px;
}
.apb-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  flex: 1;
}
.apb-actions {
  display: flex;
  gap: 8px;
}
.apb-btn {
  padding: 6px 14px;
  border: 1.5px solid #93c5fd;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  color: #1e40af;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.apb-btn:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}
.rec-assess-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  color: #065f46;
  margin-bottom: 12px;
}
.ras-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #d1fae5;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #065f46;
}

/* ===== 深度择校首页 ===== */
.page-self-assess {
  padding: 16px;
}
.sa-hint {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  margin: 4px 0 16px;
}
.sa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sa-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.sa-card:active {
  transform: scale(0.99);
}
.sa-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.sa-card-content {
  flex: 1;
  min-width: 0;
}
.sa-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.sa-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 6px;
}
.sa-card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
}
.sa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}
.sa-dot.done {
  background: #10b981;
}
.sa-card-arrow {
  font-size: 18px;
  color: #cbd5e1;
  flex-shrink: 0;
}

/* ===== 首页深度择校入口 ===== */
.home-assess-section {
  padding: 16px 16px 4px;
}
.ha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ha-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.ha-more {
  font-size: 13px;
  color: var(--primary, #2563eb);
  cursor: pointer;
}
.ha-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ha-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.ha-card:active {
  transform: scale(0.99);
  background: #f8fafc;
}
.ha-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ha-card-info {
  flex: 1;
  min-width: 0;
}
.ha-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.ha-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.ha-card-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
  flex-shrink: 0;
}
.ha-card-status.untested {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ===== 批量职业报告（分销商批量生成） ===== */

.batch-career-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.batch-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.batch-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.batch-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

/* 快速添加 */
.batch-quick-add-area {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.batch-quick-add {
  width: 100%;
  min-height: 100px;
  max-height: 300px;
  padding: 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}

.batch-quick-add:focus {
  border-color: #3b82f6;
  outline: none;
}

.batch-quick-add::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

/* 学生输入块 */
.batch-students-list {
  margin-bottom: 16px;
}

.batch-student-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.batch-student-block:focus-within {
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
  border-color: #93c5fd;
}

.batch-student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.batch-student-index {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 10px;
}

.batch-student-remove {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.batch-student-remove:hover {
  background: #fecaca;
}

.batch-student-block textarea {
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.batch-student-block textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

.batch-student-block textarea::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

/* 操作栏 */
.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.batch-actions .dist-btn {
  flex: 1;
  min-width: 100px;
}

.dist-btn-primary {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.dist-btn-primary:hover:not(:disabled) {
  background: #2563eb !important;
}

.dist-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dist-btn-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.dist-btn-secondary:hover:not(:disabled) {
  background: #e2e8f0 !important;
}

.dist-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 进度指示 */
.batch-progress {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.batch-progress-bar {
  height: 4px;
  background: #e0f2fe;
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.batch-progress-bar::after {
  content: '';
  position: absolute;
  left: -30%;
  width: 30%;
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  animation: batchProgress 1.2s ease-in-out infinite;
}

@keyframes batchProgress {
  0% { left: -30%; }
  100% { left: 100%; }
}

.batch-progress-text {
  font-size: 14px;
  color: #0284c7;
  font-weight: 500;
}

/* 结果面板 */
.batch-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.batch-copy-all-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.batch-copy-all-btn:hover {
  background: #2563eb;
}

.batch-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #3b82f6;
}

.batch-result-card.batch-result-error {
  border-left-color: #ef4444;
}

.batch-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.batch-student-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.batch-copy-btn {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.batch-copy-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.batch-error-msg {
  padding: 12px;
  background: #fef2f2;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
}

.batch-extracted-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* 空状态 */
.batch-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.batch-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.batch-empty-text {
  font-size: 14px;
  line-height: 1.6;
}

/* 批量报告 - 冲保稳推荐 */
.batch-rec-tier {
  margin-bottom: 12px;
}
.batch-rec-tier:last-child { margin-bottom: 0; }
.batch-rec-tier-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  padding-left: 4px;
}
.batch-rec-school {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  flex-wrap: wrap;
}
.batch-rec-school:nth-child(even) {
  background: #f8fafc;
}
.batch-rec-name {
  font-weight: 600;
  color: #1e293b;
  min-width: 100px;
}
.batch-rec-score {
  color: #2563eb;
  font-weight: 500;
}
.batch-rec-rank {
  color: #64748b;
}
.batch-rec-tuition {
  color: #e67e22;
  font-weight: 600;
}
.batch-rec-plan {
  color: #2563eb;
}
.batch-rec-spcode {
  color: #94a3b8;
  font-size: 11px;
}

/* ===== PC 端宽屏适配 ===== */
@media (min-width: 768px) {
  #app {
    max-width: 1200px;
  }

  .page-distributor {
    max-width: 1200px;
    margin: 0 auto;
  }

  .batch-career-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .batch-career-input-panel {
    position: sticky;
    top: 16px;
  }

  .batch-student-block textarea {
    min-height: 70px;
  }

  .batch-actions .dist-btn {
    flex: 0 1 auto;
    min-width: auto;
  }
}


/* ===== 选科推荐结果可视化 ===== */
.rec-chart-section {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.rec-chart-bars {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.rec-chart-bar-group {
  flex: 1;
  text-align: center;
  max-width: 120px;
}
.rec-chart-bar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-chart-bar-track {
  height: 80px;
  background: #e2e8f0;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.rec-chart-bar-fill {
  width: 100%;
  height: 0%;
  min-height: 4px;
  border-radius: 6px;
  transition: height 0.5s ease;
  background: #4f46e5;
}
.rec-chart-bar-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}
.rec-chart-bar-sub {
  font-size: 10px;
  color: var(--text-secondary);
}
.rec-dim-bar-fill.indigo {
  background: #6366f1;
}
.rec-dim-bar-fill.pink {
  background: #ec4899;
}

/* ===== 排名录入 ===== */
.rec-score-row .rec-score-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 6px;
  white-space: nowrap;
}

/* ===== 分享按钮 ===== */
.btn-share {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-share:active {
  transform: scale(0.97);
  opacity: 0.9;
}


/* ============================================= */
/* ===== 选科 Tab 导航 ===== */
/* ============================================= */
.subject-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-radius: 14px;
  border: 1px solid #fecaca;
  position: relative;
}
.subject-tab {
  flex: 1;
  min-width: 0;
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  color: #7f1d1d;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  user-select: none;
  background: transparent;
  position: relative;
  letter-spacing: 0.3px;
}
.subject-tab:active {
  transform: scale(0.95);
}
.subject-tab.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(220,38,38,0.35);
}

/* ============================================= */
/* ===== 组合一览 - 数据统计 ===== */
/* ============================================= */
.sc-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.sc-stat-item {
  flex: 1;
  background: var(--card);
  border-radius: 12px;
  padding: 16px 10px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.sc-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #f97316);
  border-radius: 0 0 4px 4px;
}
.sc-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.sc-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================= */
/* ===== 组合一览 - 组合网格 ===== */
/* ============================================= */
.sc-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  padding: 10px 12px 8px;
  margin: 10px -4px 2px;
  background: linear-gradient(90deg, #fef2f2, transparent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-group-title:first-child {
  margin-top: 0;
}
.sc-group-title::before {
  content: '📘';
  font-size: 14px;
}
.sc-group-title:last-of-type::before {
  content: '📗';
  font-size: 14px;
}
.sc-item {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.sc-item:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sc-item.top-rec {
  border-color: #dc2626;
  border-width: 1.5px;
  background: linear-gradient(135deg, #fff5f5, #fff);
  box-shadow: 0 3px 12px rgba(220,38,38,0.12);
}
.sc-item-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-item-label::before {
  content: '📘';
  font-size: 14px;
}
.sc-item:has(.sc-item-label):nth-child(n+8) .sc-item-label::before {
  content: '📗';
}
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #dc2626, #e11d48);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px 2px 6px;
  border-radius: 8px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.sc-badge::before {
  content: '★';
  font-size: 8px;
}
.sc-item-rate {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.sc-item-rate::after {
  content: '覆盖率';
  position: absolute;
  bottom: -13px;
  right: 0;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.7;
}
.sc-item-rate.high { color: #16a34a; }
.sc-item-rate.medium { color: #ca8a04; }
.sc-item-rate.low { color: #dc2626; }
.sc-item-subs {
  width: 100%;
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sc-item-sub {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.sc-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-dot.green { background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,0.4); }
.sc-dot.orange { background: #f59e0b; box-shadow: 0 0 4px rgba(245,158,11,0.4); }
.sc-dot.gray { background: #94a3b8; }

/* ============================================= */
/* ===== 智能推荐 / 反向诊断 - 步骤区域 ===== */
/* ============================================= */
.rec-step {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.rec-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rec-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}

/* ===== 科类选择 ===== */
.rec-category {
  display: flex;
  gap: 10px;
}
.rec-cat-btn {
  flex: 1;
  text-align: center;
  padding: 13px 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: var(--card);
  user-select: none;
  position: relative;
}
.rec-cat-btn:active {
  transform: scale(0.96);
}
.rec-cat-btn.active {
  border-color: #dc2626;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ===== 成绩输入 ===== */
.rec-scores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rec-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rec-score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 72px;
  flex-shrink: 0;
}
.rec-score-input {
  flex: 0 1 110px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background: #fafafa;
  color: var(--text);
  max-width: none;
}
.rec-score-input:focus {
  border-color: #dc2626;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.rec-score-input::placeholder {
  color: #cbd5e1;
}

/* ===== 职业标签 ===== */
.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rec-tag {
  padding: 7px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  background: var(--card);
  user-select: none;
}
.rec-tag:active {
  transform: scale(0.94);
}
.rec-tag.active {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220,38,38,0.12);
}

/* ===== 提交按钮 ===== */
.rec-submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.rec-submit-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.rec-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== 结果卡片 ===== */
.rec-result-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.rec-result-title {
  font-size: 17px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Top 3 排名 ===== */
.rec-top3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fafafa, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.rec-rank-item:first-child {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-color: #fecaca;
}
.rec-rank-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.rec-rank-1 { background: linear-gradient(135deg, #dc2626, #e11d48); }
.rec-rank-2 { background: linear-gradient(135deg, #f97316, #ea580c); }
.rec-rank-3 { background: linear-gradient(135deg, #eab308, #ca8a04); }
.rec-rank-combo {
  flex: 1;
  min-width: 0;
}
.rec-rank-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.rec-rank-score {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.rec-rank-total {
  font-size: 18px;
  font-weight: 800;
  color: #dc2626;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

/* ===== 展开/收起 ===== */
.rec-toggle {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.rec-toggle:active {
  background: #fef2f2;
}

/* ===== 全部组合对比 ===== */
.rec-all-combos {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-dims {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}
.rec-dims .rec-dim-row:first-of-type {
  margin-top: 8px;
}
.rec-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rec-dim-row:last-child {
  margin-bottom: 0;
}
.rec-dim-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 68px;
  flex-shrink: 0;
}
.rec-dim-bar-bg {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}
.rec-dim-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  background: #6366f1;
}
.rec-dim-bar-fill.green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.rec-dim-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.rec-dim-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  min-width: 42px;
  text-align: right;
  flex-shrink: 0;
}

/* ===== 链接/详情按钮 ===== */
.rec-link-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.rec-link-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.rec-link-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 3px;
}
.rec-detail-btn {
  display: block;
  width: 100%;
  padding: 13px;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.rec-detail-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

/* ============================================= */
/* ===== 反向诊断 - 详情统计 ===== */
/* ============================================= */
.sc-detail-grid {
  display: flex;
  gap: 10px;
}
.sc-detail-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-radius: 12px;
  border: 1px solid #fecaca;
}
.sc-detail-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: -0.5px;
}
.sc-detail-stat-label {
  font-size: 11px;
  color: #7f1d1d;
  margin-top: 3px;
  font-weight: 500;
}
.sc-detail-major-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  transition: background 0.2s;
}
.sc-detail-major-item:active {
  background: #f8fafc;
}
.sc-detail-major-item:last-child {
  border-bottom: none;
}
.sc-detail-major-school {
  font-weight: 600;
  color: var(--text);
}
.sc-detail-major-name {
  color: var(--text-secondary);
  font-size: 11px;
}

/* ============================================= */
/* ===== 数据说明卡片 ===== */
/* ============================================= */
.subject-intro {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}
.subject-intro-title {
  font-size: 15px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.subject-intro-sub {
  font-size: 12px;
  color: #7f1d1d;
  line-height: 1.7;
}

/* ============================================= */
/* ===== 移动端紧凑适配 ===== */
/* ============================================= */
@media (max-width: 360px) {
  .subject-tab {
    font-size: 11px;
    padding: 9px 4px;
  }
  .sc-stat-num {
    font-size: 19px;
  }
  .sc-stat-item {
    padding: 12px 6px;
  }
  .sc-item {
    padding: 12px;
  }
  .sc-item-rate {
    font-size: 17px;
  }
  .rec-step {
    padding: 14px 12px;
  }
  .rec-rank-item {
    padding: 10px;
  }
  .rec-score-label {
    min-width: 56px;
    font-size: 12px;
  }
  .rec-score-input {
    flex-basis: 80px;
  }
}


/* ============================================= */
/* ===== 图表区域 & 结果公共样式 ===== */
/* ============================================= */
.rec-chart-section {
  margin: 14px 0;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.rec-chart-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.rec-chart-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.rec-chart-detail-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ===== 风险预警卡片 ===== */
.rec-warning {
  margin-top: 10px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 12px;
}
.rec-warning-title {
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
  font-size: 12px;
}
.rec-warning-item {
  color: #7f1d1d;
  margin-bottom: 4px;
  padding-left: 10px;
  border-left: 3px solid #dc2626;
  line-height: 1.5;
}
.rec-warning-item:last-child {
  margin-bottom: 0;
}
.rec-no-warning {
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 14px;
}

/* ===== 选完即填 ===== */
.rec-link-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #fecaca;
}
.rec-link-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-link-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* ===== 组合详情标题 ===== */
.rec-combo-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rec-combo-score {
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

/* ===== 诊断风险评估 - 受限专业标题 ===== */
.rec-restricted-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ===== 诊断深入推荐按钮 ===== */
.rec-detail-btn.indigo {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* ===== 结果卡片副标题 ===== */
.rec-result-sub {
  font-weight: 400;
  font-size: 11px;
  color: #7f1d1d;
  margin-left: auto;
}

/* ===== 图表详情 - 紧凑尺寸 ===== */
.rec-chart-detail .rec-dim-label {
  font-size: 11px;
  min-width: 60px;
}
.rec-chart-detail .rec-dim-bar-bg {
  height: 8px;
}
.rec-chart-detail .rec-dim-val {
  font-size: 11px;
  min-width: 36px;
}
