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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f2f7;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

/* ========== 配色变量 ========== */
:root {
  --primary-dark: #0f172a;
  --primary-blue: #1e3a8a;
  --primary-blue-light: #3b82f6;
  --accent-gold: #f59e0b;
  --accent-orange: #f97316;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --accent-gradient-dark: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --card-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 8px 30px rgba(15, 23, 42, 0.12);
  --card-radius: 12px;
  --border-light: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Hero 区域 ========== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #2563eb 100%);
  color: white;
  padding: 50px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.9;
}

.hero-logo-icon {
  font-size: 24px;
}

.hero-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-fav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-fav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-content {
  text-align: center;
  margin-bottom: 36px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .accent {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.hero-stats {
  font-size: 13px;
  opacity: 0.7;
}

.hero-stats strong {
  color: #fbbf24;
  font-weight: 600;
}

/* Hero搜索框 */
.hero-search {
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-search-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

.hero-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.8;
}

.hero-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-search-btn:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* 特色专区快捷入口 */
.featured-section {
  max-width: 900px;
  margin: 0 auto;
}

.featured-title {
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 16px;
  font-weight: 500;
}

.featured-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  min-width: 90px;
}

.featured-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.featured-btn-icon {
  font-size: 24px;
}

.featured-btn-text {
  font-weight: 500;
  white-space: nowrap;
}

/* 搜索区 */
.search-section {
  margin-top: -50px;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.search-box {
  background: white;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}

.search-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-item {
  flex: 1;
  min-width: 140px;
}

.search-item label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.search-item input,
.search-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background: #fafbfc;
}

.search-item input:focus,
.search-item select:focus {
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn-wrap {
  flex: 0 0 auto;
  min-width: 100px;
}

.btn-primary {
  width: 100%;
  padding: 11px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 筛选栏 */
.filter-bar {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-tag {
  padding: 6px 16px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-tag:hover {
  background: #e2e8f0;
  color: #475569;
}

.quick-tag.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.quick-tag.accent {
  background: #fff7ed;
  color: #ea580c;
}

.quick-tag.accent.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* ===== 批次筛选 tab ===== */
.batch-filter-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.batch-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.batch-tabs::before {
  content: '批次：';
  font-size: 13px;
  color: #94a3b8;
  margin-right: 4px;
  white-space: nowrap;
}

.batch-tab {
  padding: 5px 14px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.batch-tab:hover {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #bfdbfe;
}

.batch-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

.filter-checkboxes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* 定向培养筛选按钮样式 */
.directed-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fff7ed;
  color: #ea580c;
  border: 1.5px solid #fdba74;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.directed-filter-btn:hover {
  background: #ffedd5;
}

.directed-filter-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

.directed-filter-btn input {
  display: none;
}

.filter-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.checkbox-item input {
  cursor: pointer;
  accent-color: #3b82f6;
}

/* 选科下拉样式 */
.subject-item {
  flex: 2;
  min-width: 260px;
}

.subject-selects {
  display: flex;
  gap: 6px;
}

.subject-selects select {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  cursor: pointer;
  min-width: 0;
}

.subject-selects select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subject-selects select:disabled {
  background: #f8fafc;
  color: #cbd5e1;
  cursor: not-allowed;
}

/* 结果统计 */
.result-stats {
  margin-bottom: 16px;
  font-size: 14px;
  color: #64748b;
}

.result-stats strong {
  color: #1e3a8a;
  font-size: 16px;
}

/* 院校列表 */
.school-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.school-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
  border-left: 4px solid #3b82f6;
  position: relative;
  overflow: hidden;
}

.school-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/* 冲稳保卡片左边框颜色区分 */
.school-card.match-chong {
  border-left: 4px solid #f97316;
}
.school-card.match-wen {
  border-left: 4px solid #22c55e;
}
.school-card.match-bao {
  border-left: 4px solid #3b82f6;
}
/* 订单班样式优先级高于冲稳保边框 */
.school-card.order-class-school.match-chong,
.school-card.order-class-school.match-wen,
.school-card.order-class-school.match-bao {
  border-left: 5px solid;
  border-image: linear-gradient(180deg, #f59e0b, #f97316, #ea580c) 1;
}

/* 订单班院校卡片特殊样式 */
.school-card.order-class-school {
  border-left: 5px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, #f59e0b 0%, #f97316 50%, #ea580c 100%) border-box;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, #f59e0b, #f97316, #ea580c) 1;
  border-left-width: 5px;
}

.school-card.order-class-school::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.school-card.order-class-school:hover {
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.15);
}

/* 订单班徽章 */
.order-class-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-gradient);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  z-index: 2;
}

.order-class-badge-icon {
  font-size: 13px;
}

/* 订单班数量标识 */
.order-class-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #fed7aa;
  margin-top: 8px;
}

.order-class-count-badge .num {
  font-size: 14px;
  font-weight: 700;
  color: #c2410c;
}

.school-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 100px;
}

.school-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.school-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.tag-province {
  background: #eff6ff;
  color: #2563eb;
}

.tag-level {
  background: #f0fdf4;
  color: #16a34a;
}

.tag-type {
  background: #fef3c7;
  color: #d97706;
}

.school-feature {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.school-majors {
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.major-count {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ========== 专业卡片重设计 v2 ========== */
/* ========== 专业列表 - 纵向行布局 v3 ========== */

.major-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.major-loading-hint {
  text-align: center;
  padding: 16px 12px;
  color: #94a3b8;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* 专业行容器 */
.major-row {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
  position: relative;
}

.major-row:hover {
  background-color: #f8fafc;
}

.major-row:last-child {
  border-bottom: none;
}

/* 订单班专业行特殊样式 */
.major-row.order-class-major {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
  border-left: 3px solid #fdba74;
}

.major-row.order-class-major:hover {
  background: linear-gradient(90deg, #fef3c7 0%, #f8fafc 100%);
}

/* 第一行：核心信息 */
.major-row-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.major-row-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  min-width: 0;
}

.major-row-name .order-icon {
  margin-right: 4px;
}

.major-row-score {
  font-size: 17px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.3px;
}

.major-row.order-class-major .major-row-score {
  color: #ea580c;
}

.major-row-rank {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 500;
  white-space: nowrap;
}

.major-row-subject {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 500;
  white-space: nowrap;
}

/* 冲/稳/保标识 */
.major-row-level {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.level-chong {
  background: #fee2e2;
  color: #dc2626;
}

.level-wen {
  background: #fef3c7;
  color: #d97706;
}

.level-bao {
  background: #d1fae5;
  color: #16a34a;
}

/* 第二行：补充信息 */
.major-row-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.major-row-secondary span {
  white-space: nowrap;
}

/* 展开详情面板 */
.major-detail-panel {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
}

.major-detail-panel.expanded {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.major-detail-panel .detail-label {
  color: #94a3b8;
  font-size: 12px;
}

.major-detail-panel .detail-value {
  color: #1e293b;
  font-weight: 500;
}

.major-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.major-detail-actions button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  transition: all 0.15s;
}

.major-detail-actions button:hover {
  background: #f1f5f9;
  border-color: #93c5fd;
}

.major-detail-actions .btn-primary-action {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.major-detail-actions .btn-primary-action:hover {
  background: #2563eb;
}

/* 冲稳保分组标题 */
.major-group {
  margin-bottom: 4px;
}

.major-group:last-child {
  margin-bottom: 0;
}

.major-group-title {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px 6px;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2px;
}

.major-group-title.group-chong {
  color: #dc2626;
  border-color: #dc2626;
  background: #fef2f2;
}

.major-group-title.group-wen {
  color: #d97706;
  border-color: #d97706;
  background: #fffbeb;
}

.major-group-title.group-bao {
  color: #16a34a;
  border-color: #16a34a;
  background: #f0fdf4;
}

.quality-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
}
.quality-tag.qs-top { background: #fee2e2; color: #dc2626; }
.quality-tag.qs-dual { background: #dbeafe; color: #1d4ed8; }
.quality-tag.qs-high { background: #d1fae5; color: #047857; }
.quality-tag.qs-zx { background: #fae8ff; color: #a21caf; }

/* 详情页专业卡片标签行 */
.major-tags-row .feature-badge {
  font-size: 11px;
  padding: 2px 8px;
}
.major-tags-row .quality-tag {
  font-size: 11px;
  padding: 2px 8px;
}


/* 冲稳保分组 */
.major-group {
  margin-bottom: 12px;
}

.major-group:last-child {
  margin-bottom: 0;
}

.major-group-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid;
  display: flex;
  align-items: center;
}

.major-group-title.group-chong {
  color: #dc2626;
  border-color: #dc2626;
}

.major-group-title.group-wen {
  color: #d97706;
  border-color: #d97706;
}

.major-group-title.group-bao {
  color: #16a34a;
  border-color: #16a34a;
}

.school-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-fav-btn-footer {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.card-fav-btn-footer:hover {
  background: #fee2e2;
}

.card-fav-btn-footer.faved {
  background: #fee2e2;
}

.view-detail {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.view-detail:hover {
  text-decoration: underline;
}

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

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

.empty-tip {
  font-size: 13px;
  margin-top: 6px;
}

/* 引导卡片（未输入分数时） */
.guide-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: white;
  margin-top: 24px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.guide-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.guide-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.guide-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.guide-tip {
  font-size: 14px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tip-chong { background: #fca5a5; }
.tip-wen { background: #fcd34d; }
.tip-bao { background: #86efac; }

.btn-guide {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-guide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 底部 */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* 确保主内容区域不被结果页遮挡 */
#mainContent {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.footer-small {
  font-size: 12px;
  margin-top: 6px;
}

/* 详情页 */
.detail-header {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-header h1 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1e293b;
}

.detail-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-info-item {
  font-size: 14px;
  color: #64748b;
}

.detail-info-item strong {
  color: #334155;
}


/* 地域政策 */


/* 分类元信息 */


/* 报考关键信息时效栏 */
.urgent-info {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.urgent-title {
  font-size: 16px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 14px;
}

.urgent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.urgent-item {
  background: white;
  border-radius: 8px;
  padding: 12px 14px;
}

.urgent-item-title {
  font-size: 12px;
  color: #9a3412;
  font-weight: 600;
  margin-bottom: 6px;
}

.urgent-item-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}

.urgent-footer {
  margin-top: 12px;
  font-size: 12px;
  color: #a16207;
  text-align: right;
}

/* 详情页院校专属报考关键信息 */


/* 就业与发展板块 */


/* 报考避坑指南 */


/* 志愿清单侧栏 */
.fav-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.fav-mask.show {
  opacity: 1;
  visibility: visible;
}

.fav-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fav-drawer.open {
  right: 0;
}

.fav-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fav-drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.fav-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px 8px;
}

.fav-close:hover {
  color: #374151;
}

.fav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.fav-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 60px 20px;
  line-height: 1.8;
}

.fav-item {
  padding: 14px 24px;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.fav-item:hover {
  background: #f9fafb;
}

.fav-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.fav-item-meta {
  font-size: 12px;
  color: #6b7280;
}

.fav-item-del {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.fav-item-del:hover {
  color: #ef4444;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-search {
    margin: 0 0 24px;
  }
  
  .hero-search-input {
    padding: 12px 20px 12px 44px;
    font-size: 14px;
  }
  
  .hero-search-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .featured-grid {
    gap: 8px;
  }
  
  .featured-btn {
    padding: 10px 12px;
    min-width: 70px;
  }
  
  .featured-btn-icon {
    font-size: 20px;
  }
  
  .featured-btn-text {
    font-size: 11px;
  }
  
  .search-row {
    flex-direction: column;
  }
  
  .search-item,
  .search-btn-wrap {
    width: 100%;
  }
  
  .subject-item {
    min-width: auto;
  }
  
  .subject-selects {
    flex-direction: row;
  }
  
  .school-header {
    flex-direction: column;
    padding-right: 0;
  }
  
  .order-class-badge {
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-quick-tags {
    width: 100%;
  }
  
  .filter-checkboxes {
    width: 100%;
    justify-content: space-between;
  }

  .batch-tabs {
    gap: 5px;
  }
  .batch-tab {
    padding: 4px 10px;
    font-size: 11px;
  }

  .fav-drawer {
    width: 85%;
    right: -85%;
  }
  
  .detail-header {
    padding: 20px;
  }
  
  .detail-header h1 {
    font-size: 20px;
  }
  
  /* 移动端时效栏 */
  .urgent-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .urgent-info {
    padding: 14px 16px;
  }
  
  .urgent-title {
    font-size: 15px;
  }
  
  .urgent-item-text {
    font-size: 13px;
  }
  
  /* 移动端就业板块 */
  .job-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .job-label {
    min-width: auto;
  }
  
  /* 移动端避坑指南 */
  .pitfall-section {
    padding: 16px;
  }
  
  .pitfall-title {
    font-size: 15px;
  }
  
  .pitfall-item {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  /* 移动端专业卡片 */
  .major-card {
    padding: 16px;
  }
  
  .major-card-header {
    flex-direction: column;
  }
  
  .major-score {
    text-align: left;
  }
  
  .major-meta {
    flex-direction: column;
    gap: 6px;
  }
  
  /* 移动端分类元信息 */
  .meta-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .meta-label {
    min-width: auto;
  }
  
  /* 移动端详情页时效栏 */
  .school-urgent-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .school-urgent {
    padding: 12px 14px;
  }
  
  .school-urgent-title {
    font-size: 14px;
  }

  /* 移动端引导卡片 */
  .guide-card {
    padding: 32px 20px;
    margin-top: 16px;
  }

  .guide-icon {
    font-size: 44px;
  }

  .guide-title {
    font-size: 18px;
  }

  .guide-tip {
    font-size: 13px;
  }

  /* 移动端冲稳保分组 */
  .major-group-title {
    font-size: 12px;
  }

  /* ===== 移动端触控优化 ===== */
  /* 触控目标最小 44px */
  .quick-tag {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .filter-checkboxes {
    gap: 12px;
  }
  .checkbox-item {
    min-height: 44px;
    padding: 4px 0;
  }
  .directed-filter-btn {
    padding: 10px 18px;
    min-height: 44px;
  }

  /* Hero 搜索框优化 */
  .hero-search-input {
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
  .hero-search-btn {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 搜索区优化 */
  .search-box {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .search-item input,
  .search-item select {
    font-size: 16px; /* 防止 iOS 自动缩放 */
    padding: 12px 14px;
    min-height: 44px;
  }
  .btn-primary {
    min-height: 48px;
    font-size: 16px;
  }

  /* 院校卡片优化 */
  .school-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .school-name {
    font-size: 16px;
  }

  /* 专业卡片网格改为单列 */
  .major-list {
    gap: 0;
  }
  .major-row {
    padding: 10px 12px;
  }
  .major-row-primary {
    gap: 8px;
  }
  .major-row-name {
    font-size: 13px;
  }
  .major-row-score {
    font-size: 15px;
  }

  /* 收藏抽屉全屏 */
  .fav-drawer {
    width: 100%;
    right: -100%;
  }

  /* 冲稳保图例 */
  .match-legend {
    gap: 8px 12px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .legend-help {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }

  /* 特色弹窗底部弹出 */
  .feature-modal {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }
  .feature-modal-mask {
    align-items: flex-end;
    padding: 0;
  }
  .feature-modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .feature-option {
    padding: 12px 10px;
    min-height: 48px;
  }

  /* 空状态 */
  .empty-state {
    padding: 40px 16px;
  }
  .empty-icon {
    font-size: 40px;
  }

  /* 结果统计 */
  .result-stats {
    font-size: 13px;
  }
  .result-stats strong {
    font-size: 15px;
  }

  /* 骨架屏 */
  .skeleton-card {
    padding: 18px 16px;
  }

  /* 收藏按钮触控 */
  .fav-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fav-export-btn {
    padding: 8px 14px;
    min-height: 36px;
  }
}

/* ===== 详情页简化版新增样式 ===== */
.detail-tags {
  margin: 8px 0 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tag-level {
  background: #eff6ff;
  color: #2563eb;
}

.tag-type {
  background: #f0fdf4;
  color: #16a34a;
}


.detail-stats {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
}


.detail-extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}


/* ===== 详情页增强样式 ===== */


/* 分数总览卡片 */


/* 信息卡片网格 */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}


/* 院校特色标签 */
.detail-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.detail-feat-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* 基本信息网格 */
.detail-info-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.detail-info-item {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  word-break: break-all;
}
.detail-info-item strong {
  color: #1e293b;
  font-weight: 500;
  margin-right: 2px;
}
.detail-info-full {
  grid-column: 1 / -1;
}

/* 专业方向分布 */


/* 选科分布 */
.subject-pie {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.subject-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.subject-item:nth-child(2) .subject-dot { background: #10b981; }
.subject-item:nth-child(3) .subject-dot { background: #f59e0b; }
.subject-item:nth-child(4) .subject-dot { background: #ef4444; }
.subject-item:nth-child(5) .subject-dot { background: #8b5cf6; }

.subject-name {
  flex: 1;
}

.subject-num {
  color: #64748b;
  font-size: 12px;
}

/* 专业组汇总 */


/* 方向标签 */

/* 数据来源备注 */

/* 响应式 */
@media (max-width: 768px) {
  .score-range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
  
  .score-overview {
    padding: 16px;
  }
  
  .score-range-value {
    font-size: 18px;
  }
  
  .group-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .group-meta {
    gap: 8px;
  }
  
  /* 移动端详情页订单班横幅 */
  .detail-order-banner {
    padding: 16px;
  }
  
  .detail-order-banner-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .detail-order-banner-icon {
    font-size: 28px;
  }
  
  .detail-order-banner-title {
    font-size: 16px;
  }
  
  .detail-order-banner-stats {
    width: 100%;
    justify-content: space-around;
  }
  
  .detail-order-stat-num {
    font-size: 20px;
  }
  
  .order-class-group-title {
    font-size: 15px;
  }
  
  .order-class-major-card .major-name {
    padding-right: 70px;
  }
}

/* ============================================
   订单班特色样式（增强版）
   ============================================ */

/* 订单班快捷横幅 */


.order-class-banner.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.order-class-banner.active:hover {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}


/* 院校卡片上的订单班标签（旧版，保留兼容） */

/* 详情页订单班横幅 */
.detail-order-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
  border-radius: 14px;
  padding: 20px 24px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.detail-order-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.detail-order-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.detail-order-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.detail-order-banner-content {
  flex: 1;
}

.detail-order-banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-order-banner-desc {
  font-size: 13px;
  opacity: 0.9;
}

.detail-order-banner-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.detail-order-stat {
  text-align: center;
}

.detail-order-stat-num {
  font-size: 24px;
  font-weight: 700;
}

.detail-order-stat-label {
  font-size: 12px;
  opacity: 0.85;
}

/* 定向培养专业分组 */


.order-class-group-title .badge {
  background: var(--accent-gradient);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

/* 订单班专业卡片（详情页） */


/* 订单班专业小徽章 */

/* ===== 特色标签徽章 ===== */
.feature-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-right: 4px;
  margin-top: 4px;
  white-space: nowrap;
}
.feature-badge.bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.feature-badge.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.feature-badge.bg-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-badge.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-badge.bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.feature-badge.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feature-badge.bg-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.feature-badge.bg-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.feature-badge.bg-gray { background: #64748b; }


/* 院校卡片上的特色标签 */
.school-card .feature-tags-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== 特色专区按钮样式优化 ===== */
.featured-btn {
  transition: all 0.25s ease;
}
.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.featured-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}
/* ===== 特色专区单个按钮 ===== */
.featured-grid.featured-single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.featured-btn.featured-main {
  flex-direction: row;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.featured-btn.featured-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.45);
}

.featured-btn.featured-main .featured-btn-icon {
  font-size: 36px;
  background: rgba(255,255,255,0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-btn.featured-main .featured-btn-text {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.featured-btn-desc {
  font-size: 13px;
  opacity: 0.9;
  font-weight: normal;
  margin-top: 4px;
  display: block;
}

/* ===== 特色专题页 ===== */
.feature-page .hero-top {
  padding: 16px 0;
}


.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.section-desc {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}


/* 不同分类的主题色 */
.category-card.orderclass::before { background: #ff6b35; }
.category-card.orderclass .category-count { color: #ff6b35; background: #fff5f0; }


.category-card.directed::before { background: #4361ee; }
.category-card.directed .category-count { color: #4361ee; background: #edf0fd; }


/* 专题页说明区 */

.guide-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.guide-block {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.guide-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a1a2e;
}

.guide-block p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 20px;
  }
}

/* 大类卡片加大 */


/* ===== 特色分类弹窗 ===== */
.feature-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.feature-modal-mask.show {
  display: flex;
}

.feature-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
}

.feature-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}

.feature-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.feature-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.feature-modal-tip {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px 0;
}

.feature-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.feature-option:hover {
  border-color: #ffd4c2;
  background: #fff9f6;
}

.feature-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff6b35;
  flex-shrink: 0;
}

.feature-option-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feature-option-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.feature-option-text small {
  font-size: 11px;
  color: #999;
  font-weight: normal;
}

.feature-option:has(input:checked) {
  border-color: #ff6b35;
  background: #fff5f0;
}

.feature-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

@media (max-width: 480px) {
  .feature-modal-grid {
    grid-template-columns: 1fr;
  }
  .feature-modal {
    max-height: 90vh;
  }

  /* 超小屏：Hero 区域 */
  .hero {
    padding: 20px 0 50px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-stats {
    font-size: 12px;
  }
  .hero-top {
    margin-bottom: 20px;
  }
  .hero-logo {
    font-size: 15px;
  }
  .hero-fav-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* 超小屏：搜索区 */
  .search-box {
    padding: 14px 12px;
  }
  .search-row {
    gap: 10px;
  }
  .search-item {
    min-width: 0;
  }
  .subject-selects {
    gap: 4px;
  }
  .subject-selects select {
    padding: 10px 6px;
    font-size: 14px;
  }

  /* 超小屏：院校卡片 */
  .school-card {
    padding: 14px 12px;
  }
  .school-name {
    font-size: 15px;
  }
  .school-feature {
    font-size: 13px;
  }
  .tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* 超小屏：专业行 */
  .major-row {
    padding: 8px 10px;
  }
  .major-row-primary {
    gap: 6px;
    flex-wrap: wrap;
  }
  .major-row-name {
    font-size: 12px;
    flex-basis: 100%;
  }
  .major-row-score {
    font-size: 14px;
  }
  .major-row-secondary {
    font-size: 11px;
  }

  /* 超小屏：特色专区 */
  .featured-btn.featured-main {
    padding: 14px 16px;
    gap: 12px;
  }
  .featured-btn.featured-main .featured-btn-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
  }
  .featured-btn.featured-main .featured-btn-text {
    font-size: 15px;
  }
  .featured-btn-desc {
    font-size: 12px;
  }

  /* 超小屏：筛选栏 */
  .filter-bar {
    gap: 10px;
    padding-top: 14px;
  }
  .quick-tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  .batch-tabs {
    gap: 4px;
  }
  .batch-tab {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* 超小屏：冲稳保图例 */
  .match-legend {
    gap: 6px 10px;
    padding: 8px 10px;
    font-size: 11px;
  }

  /* 超小屏：收藏抽屉 */
  .fav-drawer-header {
    padding: 16px;
  }
  .fav-drawer-header h3 {
    font-size: 16px;
  }
  .fav-item {
    padding: 12px 16px;
  }
  .fav-item-name {
    font-size: 14px;
  }

  /* 超小屏：引导卡片 */
  .guide-card {
    padding: 24px 14px;
  }
  .guide-title {
    font-size: 17px;
  }
  .guide-tip {
    font-size: 12px;
  }
  .btn-guide {
    padding: 10px 24px;
    font-size: 14px;
  }

  /* 超小屏：结果页 */
  .result-page-body {
    padding: 10px 10px 24px;
  }
  .result-page-header {
    height: 44px;
  }
  .result-page-title {
    font-size: 14px;
  }

  /* 超小屏：详情订单班横幅 */
  .detail-order-banner {
    padding: 14px 16px;
    border-radius: 12px;
  }
  .detail-order-banner-icon {
    font-size: 24px;
  }
  .detail-order-banner-title {
    font-size: 15px;
  }
  .detail-order-stat-num {
    font-size: 18px;
  }
}

/* 已选特色标签显示区 */
.active-feature-tags {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff5f0;
  border-radius: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.active-feature-tags.show {
  display: flex;
}

.active-feature-tags-label {
  font-size: 13px;
  color: #ff6b35;
  font-weight: 600;
  flex-shrink: 0;
}

.active-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #ff6b35;
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
}

.active-feature-tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.8;
}

.active-feature-tag-remove:hover {
  opacity: 1;
}

.active-feature-clear {
  margin-left: auto;
  font-size: 12px;
  color: #ff6b35;
  cursor: pointer;
  flex-shrink: 0;
}

.active-feature-clear:hover {
  text-decoration: underline;
}

/* 弹窗分组 */
.feature-modal-section {
  margin-bottom: 24px;
}

.feature-modal-section:last-child {
  margin-bottom: 0;
}

.feature-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px 0;
}

.feature-section-desc {
  font-size: 12px;
  color: #999;
  margin: 0 0 12px 0;
}

.feature-modal .feature-modal-grid {
  margin-bottom: 0;
}

/* ========== 加载状态 ========== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-state p {
  margin-top: 16px;
  font-size: 14px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--primary-blue-light, #3b82f6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 新手引导蒙层 ========== */
.onboarding-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.onboarding-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: fadeInUp 0.3s ease;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background 0.2s;
}

.onboarding-dot.active {
  background: var(--primary-blue, #2563eb);
  width: 24px;
  border-radius: 4px;
}

.onboarding-step {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.onboarding-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.onboarding-step h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.onboarding-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.onboarding-skip {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
}

.onboarding-skip:hover {
  color: #666;
}

.onboarding-next {
  background: var(--primary-blue, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.onboarding-next:hover {
  background: var(--primary-blue-dark, #1d4ed8);
}

.onboarding-prev {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-prev:hover {
  background: #e2e8f0;
  color: #334155;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 冲稳保图例常驻 ========== */
.match-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #e0f2fe;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-help {
  margin-left: auto;
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  white-space: nowrap;
}

.legend-help:hover {
  text-decoration: underline;
}

/* ========== 数据来源说明弹窗 ========== */
.datasource-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.datasource-mask.show {
  display: flex;
}

.datasource-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.datasource-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.datasource-close:hover {
  background: #f5f5f5;
  color: #333;
}

.datasource-panel h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1a1a2e;
}

.datasource-section {
  margin-bottom: 20px;
}

.datasource-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 8px;
}

.datasource-section ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: disc;
}

.datasource-section li {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
}

.datasource-section p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 8px;
}

.datasource-note {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-top: 8px !important;
}

/* ========== 志愿清单导出按钮 ========== */
.fav-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-export-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.fav-export-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* ========== 导出 Toast 提示 ========== */
.export-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 0.3s ease;
}

/* ========== 新手引导 - 交互控件 ========== */
.onboarding-grade-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 8px;
}
.onboarding-grade-btn {
  padding: 10px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}
.onboarding-grade-btn:active {
  transform: scale(0.96);
}
.onboarding-grade-btn.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.onboarding-select {
  width: 100%;
  max-width: 280px;
  margin: 12px auto;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  color: #334155;
  background: #f8fafc;
  display: block;
  cursor: pointer;
  appearance: auto;
}
.onboarding-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.onboarding-input {
  width: 100%;
  max-width: 280px;
  margin: 12px auto;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 18px;
  color: #334155;
  background: #f8fafc;
  display: block;
  text-align: center;
}
.onboarding-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.onboarding-hint {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}
.onboarding-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== 新手引导 - 移动端底部抽屉式 ========== */
@media (max-width: 768px) {
  .onboarding-mask {
    align-items: flex-end;
    padding: 0;
  }
  .onboarding-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    animation: slideUpDrawer 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
  }
  /* 抽屉把手 */
  .onboarding-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0 auto 16px;
  }
  .onboarding-card h3 {
    font-size: 18px;
  }
  .onboarding-icon {
    font-size: 36px;
  }
  .onboarding-grade-group {
    gap: 8px;
  }
  .onboarding-grade-btn {
    padding: 12px 16px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    min-height: 48px;
  }
  .onboarding-select,
  .onboarding-input {
    max-width: 100%;
    font-size: 16px; /* 防止 iOS 自动缩放 */
    min-height: 48px;
  }
  .onboarding-actions {
    gap: 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .onboarding-skip {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .onboarding-next {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  .onboarding-prev {
    min-height: 44px;
  }
}

@keyframes slideUpDrawer {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 小屏进一步优化 */
@media (max-width: 480px) {
  .onboarding-card {
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .datasource-panel {
    margin: 0 12px;
    max-width: calc(100% - 24px);
    padding: 24px 18px 20px;
  }
  .datasource-panel h3 {
    font-size: 17px;
  }
  .datasource-section h4 {
    font-size: 15px;
  }
  .datasource-close {
    min-width: 44px;
    min-height: 44px;
  }
  .match-legend {
    gap: 8px 14px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .legend-item {
    font-size: 12px;
  }
}

/* ========== 全屏结果页 ========== */
.result-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #f0f2f7;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.result-page.active {
  transform: translateX(0);
}

/* 顶部导航栏 */
.result-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.result-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 15px;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.result-back-btn:active {
  background: rgba(255,255,255,0.25);
}
.result-page-title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
  text-align: center;
}
.result-page-spacer {
  width: 70px;
  flex-shrink: 0;
}

/* 结果内容区 */
.result-page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 结果区域内元素动画 */
.result-page .result-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.result-page .result-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.result-page .result-stats {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.result-page .result-stats.visible {
  opacity: 1;
  transform: translateY(0);
}
.result-page .match-legend {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}
.result-page .match-legend.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 卡片交错淡入 */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.school-card.animate-in {
  animation: cardFadeIn 0.35s ease both;
}

/* 骨架屏加载 */
.skeleton-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border-left: 4px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w30 { width: 30%; height: 10px; }
.skeleton-line.title { height: 20px; width: 50%; margin-bottom: 14px; }
.skeleton-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.skeleton-chip {
  height: 24px;
  width: 64px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 加载进度条 */
.loading-progress {
  position: sticky;
  top: 52px;
  z-index: 5;
  background: white;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: none;
}
.loading-progress.active {
  display: block;
}
.loading-progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.loading-progress-text {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* Hero 装饰浮动粒子 */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-particle {
  position: absolute;
  font-size: 18px;
  opacity: 0.12;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% {
    transform: translateY(-120%) rotate(360deg);
    opacity: 0;
  }
}

/* 移动端结果页优化 */
@media (max-width: 768px) {
  .result-page-header {
    height: 48px;
    padding: 0 12px;
  }
  .result-back-btn {
    font-size: 14px;
    padding: 5px 12px 5px 8px;
  }
  .result-page-title {
    font-size: 15px;
  }
  .result-page-body {
    padding: 12px 12px 32px;
  }
  .school-card.animate-in {
    animation-duration: 0.25s;
  }
  .skeleton-card {
    padding: 18px;
  }
}


/* ===== 安全区域适配（刘海屏/底部横条） ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .result-page {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .result-page-header {
    padding-top: env(safe-area-inset-top);
    height: calc(52px + env(safe-area-inset-top));
  }
  .result-page-body {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .fav-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hero {
    padding-top: calc(50px + env(safe-area-inset-top));
  }
}

/* ===== 移动端触控反馈（触屏设备用 :active 替代 :hover） ===== */
@media (hover: none) and (pointer: coarse) {
  .school-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  }
  .school-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  }
  .major-row:hover {
    background-color: #f8fafc;
  }
  .major-row:active {
    background-color: #e2e8f0;
  }
  .quick-tag:hover {
    background: #f1f5f9;
  }
  .quick-tag:active {
    background: #e2e8f0;
    transform: scale(0.95);
  }
  .featured-btn:hover {
    transform: none;
  }
  .featured-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
  }
  .btn-primary:hover {
    transform: none;
  }
  .btn-primary:active {
    transform: scale(0.97);
  }
  .btn-secondary:hover {
    background: #fff;
  }
  .btn-secondary:active {
    background: #f0f0f0;
    transform: scale(0.97);
  }
  .fav-item:hover {
    background: transparent;
  }
  .fav-item:active {
    background: #f3f4f6;
  }
  .card-fav-btn-footer:hover {
    background: #fef2f2;
  }
  .card-fav-btn-footer:active {
    background: #fee2e2;
    transform: scale(0.95);
  }
}

/* ===== 隐藏移动端 number 输入框的 spinner ===== */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* 无障碍：减少动画 */
@media (prefers-reduced-motion: reduce) {
  .result-page {
    transition: none;
  }
  .school-card.animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .result-page .result-section,
  .result-page .result-stats,
  .result-page .match-legend {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-particle {
    animation: none;
    display: none;
  }
}
/* ====== 专业详情弹窗 ====== */
.major-detail-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.major-detail-content {
  background: #fff; border-radius: 16px; max-width: 480px; width: 100%;
  max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.major-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.major-detail-header h3 {
  margin: 0; font-size: 17px; font-weight: bold; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.major-detail-header .close-btn {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: #999; padding: 0 4px; line-height: 1; flex-shrink: 0;
}
.major-detail-header .close-btn:hover { color: #333; }
.major-detail-body { padding: 16px 20px; }
.major-info-row {
  display: flex; padding: 8px 0; border-bottom: 1px solid #f8f8f8;
  font-size: 14px;
}
.major-info-row:last-child { border-bottom: none; }
.major-info-row .label { color: #999; min-width: 80px; flex-shrink: 0; }
.major-info-row .value { color: #333; font-weight: 500; }
.major-info-row .value.score { color: #dc2626; font-size: 16px; font-weight: bold; }
.major-remark {
  margin-top: 12px; padding: 10px 12px; background: #f8f9fa;
  border-radius: 8px; font-size: 13px; color: #666; line-height: 1.6;
}
.major-feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.major-feature-tags .feature-tag {
  background: #fff3e0; color: #e65100; padding: 2px 8px;
  border-radius: 4px; font-size: 12px;
}
.major-detail-footer {
  padding: 12px 20px 16px; text-align: center;
}
.major-detail-footer .btn-primary {
  padding: 10px 40px; font-size: 15px;
}

/* ============================================
   v3 增强移动端适配
   ============================================ */

/* 移动端全局优化 */
@media (max-width: 768px) {
  /* Hero 区域增强 */
  .hero-content {
    padding: 0 12px;
  }
  
  .hero-title {
    font-size: 26px;
    line-height: 1.35;
  }
  
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }
  
  .hero-stats {
    font-size: 12px;
  }
  
  /* 特色按钮移动端 */
  .featured-single {
    padding: 0 8px;
  }
  
  .featured-btn.featured-main {
    padding: 16px 18px;
    gap: 12px;
  }
  
  .featured-btn.featured-main .featured-btn-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
  }
  
  .featured-btn.featured-main .featured-btn-text {
    font-size: 15px;
  }
  
  .featured-btn-desc {
    font-size: 11px;
  }
  
  /* 搜索区域移动端 */
  .hero-search {
    margin: 0 12px 24px;
  }
  
  .hero-search-input {
    padding: 14px 20px 14px 44px;
    font-size: 15px;
    border-radius: 24px;
  }
  
  .hero-search-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  /* 快速筛选标签移动端 */
  .quick-tags {
    gap: 6px;
    padding: 0 4px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  
  .quick-tags::-webkit-scrollbar {
    display: none;
  }
  
  .quick-tag {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* 院校卡片移动端增强 */
  .school-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  
  .school-card-header {
    gap: 10px;
  }
  
  .school-card-name {
    font-size: 16px;
  }
  
  .school-card-meta {
    gap: 4px;
  }
  
  .tag {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  /* 专业行移动端 */
  .major-row {
    padding: 12px 14px;
  }
  
  .major-row-primary {
    gap: 8px;
  }
  
  .major-row-name {
    font-size: 14px;
  }
  
  .major-row-score {
    font-size: 16px;
  }
  
  .major-row-rank,
  .major-row-subject,
  .major-row-level {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  .major-row-secondary {
    font-size: 11px;
    gap: 4px;
    margin-top: 3px;
  }
  
  /* 冲稳保分组标题移动端 */
  .major-group-title {
    font-size: 12px;
    padding: 8px 12px 6px;
  }
  
  /* 结果统计移动端 */
  .result-stats {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .result-stats strong {
    font-size: 16px;
  }
  
  /* 图例移动端 */
  .match-legend {
    padding: 10px 14px;
    gap: 8px 12px;
    font-size: 12px;
  }
  
  .legend-help {
    width: 100%;
    margin-left: 0;
    text-align: right;
    margin-top: 4px;
  }
  
  /* 空状态移动端 */
  .empty-state {
    padding: 48px 16px;
  }
  
  .empty-icon {
    font-size: 40px;
  }
  
  .empty-tip {
    font-size: 13px;
  }
  
  /* 引导卡片移动端 */
  .guide-card {
    padding: 36px 20px;
    margin: 16px 12px;
  }
  
  .guide-icon {
    font-size: 44px;
  }
  
  .guide-title {
    font-size: 18px;
  }
  
  .guide-tips {
    gap: 8px;
  }
  
  .guide-tip {
    font-size: 13px;
  }
  
  .btn-guide {
    padding: 12px 28px;
    font-size: 14px;
  }
  
  /* 页脚移动端 */
  .footer {
    padding: 24px 16px;
    font-size: 12px;
  }
  
  /* 骨架屏移动端 */
  .skeleton-card {
    padding: 18px 16px;
  }
  
  /* 收藏抽屉移动端 */
  .fav-drawer {
    width: 88%;
    right: -88%;
  }
  
  .fav-drawer-header {
    padding: 16px 18px;
  }
  
  .fav-drawer-header h3 {
    font-size: 16px;
  }
  
  .fav-drawer-body {
    padding: 12px 14px;
  }
  
  .fav-item {
    padding: 12px 14px;
  }
  
  .fav-item-name {
    font-size: 14px;
  }
  
  .fav-item-meta {
    font-size: 11px;
  }
  
  /* 弹窗移动端 */
  .feature-modal,
  .datasource-panel,
  .onboarding-card {
    max-width: calc(100% - 24px);
    margin: 12px;
  }
  
  .feature-modal-header,
  .datasource-panel h3,
  .onboarding-step h3 {
    font-size: 17px;
  }
  
  .feature-modal-body {
    padding: 16px 18px 20px;
  }
  
  .feature-modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .feature-option {
    padding: 10px 12px;
    min-height: 44px;
  }
  
  .feature-option-icon {
    font-size: 16px;
  }
  
  .feature-option-text {
    font-size: 12px;
  }
  
  /* 全屏结果页移动端 */
  .result-page-header {
    height: 48px;
    padding: 0 12px;
  }
  
  .result-back-btn {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .result-page-title {
    font-size: 15px;
    max-width: 55%;
  }
  
  .result-page-body {
    padding: 14px 12px 32px;
  }
  
  /* 详情页移动端 */
  .detail-page {
    padding: 12px;
    padding-bottom: 80px;
  }
  
  .detail-header {
    padding: 10px 0;
    margin-bottom: 10px;
  }
  
  .detail-title {
    font-size: 17px;
  }
  
  .school-info-card {
    padding: 16px;
    border-radius: 12px;
  }
  
  .school-info-name {
    font-size: 18px;
  }
  
  .school-info-stats {
    gap: 6px;
    padding: 12px 0 4px;
  }
  
  .stat-item .stat-num {
    font-size: 18px;
  }
  
  .stat-item .stat-label {
    font-size: 11px;
  }
  
  .major-table {
    font-size: 12px;
  }
  
  .major-table th {
    padding: 8px 6px;
    font-size: 11px;
  }
  
  .major-table td {
    padding: 8px 6px;
  }
  
  .detail-fav-btn {
    bottom: 20px;
    right: 16px;
    padding: 12px 20px;
    font-size: 13px;
  }
  
  /* 订单班横幅移动端 */
  .detail-order-banner {
    padding: 16px 18px;
  }
  
  .detail-order-banner-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .detail-order-banner-icon {
    font-size: 28px;
  }
  
  .detail-order-banner-title {
    font-size: 16px;
  }
  
  .detail-order-banner-desc {
    font-size: 12px;
  }
  
  .detail-order-banner-stats {
    width: 100%;
    justify-content: space-around;
    gap: 12px;
  }
  
  .detail-order-stat-num {
    font-size: 20px;
  }
  
  .detail-order-stat-label {
    font-size: 11px;
  }
  
  /* 时效信息移动端 */
  .urgent-info {
    padding: 14px 16px;
  }
  
  .urgent-title {
    font-size: 15px;
  }
  
  .urgent-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .urgent-item {
    padding: 10px 12px;
  }
  
  .urgent-item-title {
    font-size: 11px;
  }
  
  .urgent-item-text {
    font-size: 12px;
  }
  
  /* 触控反馈优化 */
  .school-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(27,42,74,0.08);
  }
  
  .quick-tag:active {
    transform: scale(0.95);
  }
  
  .featured-btn:active {
    transform: scale(0.96);
  }
  
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.97);
  }
  
  .card-fav-btn:active {
    transform: scale(0.9);
  }
  
  .card-fav-btn-footer:active {
    transform: scale(0.95);
  }
  
  .major-row:active {
    background-color: var(--cream);
  }
  
  /* 安全区域适配 */
  .result-page {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .result-page-header {
    padding-top: env(safe-area-inset-top);
    height: calc(48px + env(safe-area-inset-top));
  }
  
  .fav-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .hero {
    padding-top: calc(36px + env(safe-area-inset-top));
  }
}

/* 小屏手机进一步优化 */
@media (max-width: 375px) {
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 12px;
  }
  
  .school-card {
    padding: 14px 12px;
  }
  
  .school-card-name {
    font-size: 15px;
  }
  
  .major-row {
    padding: 10px 12px;
  }
  
  .major-row-name {
    font-size: 13px;
  }
  
  .major-row-score {
    font-size: 15px;
  }
  
  .featured-btn.featured-main {
    padding: 14px 14px;
  }
  
  .featured-btn.featured-main .featured-btn-text {
    font-size: 14px;
  }
  
  .feature-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 20px 0 40px;
  }
  
  .hero-content {
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .onboarding-card {
    max-height: 90vh;
  }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 移除 hover 效果，改用 active */
  .school-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .quick-tag:hover {
    background: var(--white);
    border-color: var(--border);
  }
  
  .featured-btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn-secondary:hover {
    background: var(--white);
  }
  
  .card-fav-btn-footer:hover {
    background: #FDF2F2;
  }
  
  .fav-item:hover {
    background: transparent;
  }
  
  /* 增大触控目标 */
  .quick-tag {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  
  .batch-tab {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  
  .card-fav-btn {
    min-width: 40px;
    min-height: 40px;
  }
  
  .fav-close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .detail-back-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .school-card.animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .result-page {
    transition: none;
  }
  
  .hero-particle {
    animation: none;
    display: none;
  }
  
  .featured-btn,
  .quick-tag,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
}

/* ============================================
   v3 视觉增强 - 让界面更丰富有层次
   ============================================ */

/* Hero 区域增强 - 添加更多视觉元素 */
.hero {
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(15,27,51,0.3), transparent);
  pointer-events: none;
}

/* 添加装饰性几何图形 */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-decoration-1 {
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero-decoration-2 {
  bottom: 20%;
  right: 8%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--vermillion-light) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* 院校卡片增强 - 添加左边框颜色标识 */
.school-card {
  border-left: 4px solid var(--ink-lighter);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card.match-chong {
  border-left-color: var(--chong);
}

.school-card.match-wen {
  border-left-color: var(--wen);
}

.school-card.match-bao {
  border-left-color: var(--bao);
}

.school-card:hover {
  border-left-width: 6px;
}

/* 院校卡片头部增强 */
.school-card-header {
  position: relative;
}

.school-card-main {
  position: relative;
}

/* 添加微妙的背景纹理 */
.school-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--cream) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* 标签增强 - 添加图标前缀 */
.tag::before {
  margin-right: 4px;
  font-size: 10px;
}

.tag-province::before {
  content: '📍';
}

.tag-level::before {
  content: '🏆';
}

.tag-type::before {
  content: '📚';
}

/* 分数显示增强 */
.major-row-score {
  position: relative;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(197,61,58,0.08) 0%, rgba(197,61,58,0.02) 100%);
  border-radius: 6px;
}

.major-row.order-class-major .major-row-score {
  background: linear-gradient(135deg, rgba(212,168,83,0.12) 0%, rgba(212,168,83,0.04) 100%);
}

/* 冲稳保标签增强 - 添加图标 */
.major-row-level::before {
  margin-right: 3px;
}

.level-chong::before {
  content: '🔥';
}

.level-wen::before {
  content: '✓';
}

.level-bao::before {
  content: '🛡️';
}

/* 快速筛选标签增强 */
.quick-tag {
  position: relative;
  overflow: hidden;
}

.quick-tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(197,61,58,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.quick-tag:active::before {
  width: 200px;
  height: 200px;
}

.quick-tag.active {
  background: var(--vermillion);
  color: white;
  border-color: var(--vermillion);
  box-shadow: 0 2px 8px rgba(197,61,58,0.25);
}

/* 特色按钮增强 */
.featured-btn.featured-main {
  position: relative;
  overflow: hidden;
}

.featured-btn.featured-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.1); opacity: 0.25; }
}

/* 引导卡片增强 */
.guide-card {
  position: relative;
  overflow: hidden;
}

.guide-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 空状态增强 */
.empty-state {
  position: relative;
}

.empty-icon {
  position: relative;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 骨架屏增强 */
.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  position: relative;
  overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* 收藏按钮增强 */
.card-fav-btn.faved {
  animation: heartBeat 0.4s ease-in-out;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 专业行展开动画增强 */
.major-detail-panel.expanded {
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 弹窗进入动画增强 */
.feature-modal,
.datasource-panel,
.onboarding-card {
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 移动端弹窗从底部滑入 */
@media (max-width: 768px) {
  .feature-modal,
  .datasource-panel,
  .onboarding-card {
    animation: slideUpModal 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideUpModal {
    from {
      opacity: 0.5;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* 结果页进入动画增强 */
.result-page.active {
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* 院校卡片进入动画增强 */
.school-card.animate-in {
  animation: cardFadeInUp 0.4s ease-out both;
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为不同卡片添加延迟 */
.school-card.animate-in:nth-child(1) { animation-delay: 0.05s; }
.school-card.animate-in:nth-child(2) { animation-delay: 0.1s; }
.school-card.animate-in:nth-child(3) { animation-delay: 0.15s; }
.school-card.animate-in:nth-child(4) { animation-delay: 0.2s; }
.school-card.animate-in:nth-child(5) { animation-delay: 0.25s; }
.school-card.animate-in:nth-child(6) { animation-delay: 0.3s; }
.school-card.animate-in:nth-child(7) { animation-delay: 0.35s; }
.school-card.animate-in:nth-child(8) { animation-delay: 0.4s; }
.school-card.animate-in:nth-child(9) { animation-delay: 0.45s; }
.school-card.animate-in:nth-child(10) { animation-delay: 0.5s; }

/* 订单班特殊标识增强 */
.order-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.order-badge::before {
  content: '🎯';
  font-size: 10px;
}

/* 时效信息增强 */
.urgent-info {
  position: relative;
  overflow: hidden;
}

.urgent-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 详情页订单班横幅增强 */
.detail-order-banner {
  position: relative;
  overflow: hidden;
}

.detail-order-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 收藏抽屉增强 */
.fav-drawer {
  box-shadow: -8px 0 32px rgba(27,42,74,0.15);
}

.fav-drawer.open {
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* 遮罩层增强 */
.fav-mask.show,
.feature-modal-mask.show,
.datasource-mask.show,
.onboarding-mask.show {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 导出提示增强 */
.export-toast {
  animation: toastSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 移动端触控反馈增强 */
@media (hover: none) and (pointer: coarse) {
  .school-card:active {
    transform: scale(0.98);
    border-left-width: 6px;
  }
  
  .quick-tag:active {
    transform: scale(0.95);
    background: var(--cream-deep);
  }
  
  .featured-btn:active {
    transform: scale(0.96);
  }
  
  .btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(197,61,58,0.3);
  }
  
  .btn-secondary:active {
    transform: scale(0.97);
    background: var(--cream);
  }
  
  .card-fav-btn:active {
    transform: scale(0.9);
  }
  
  .card-fav-btn-footer:active {
    transform: scale(0.95);
  }
  
  .major-row:active {
    background-color: var(--cream);
  }
  
  .fav-item:active {
    background: var(--cream-deep);
  }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
  /* 暂时不启用，保持亮色模式 */
}

/* 打印样式优化 */
@media print {
  .hero,
  .quick-filter-area,
  .fav-drawer,
  .fav-mask,
  .feature-modal-mask,
  .datasource-mask,
  .onboarding-mask,
  .result-page-header,
  .detail-fav-btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .school-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
