/* ==================== 全局变量 ==================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --accent: #10b981;
  --danger: #ef4444;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;
}

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "H Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 0h30v30H0zM30 30h30v30H30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-blue {
  background: var(--primary);
  color: white;
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.1rem;
}

/* ==================== 统计数据 ==================== */
.stats-bar {
  background: white;
  padding: 32px 0;
  box-shadow: var(--shadow);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: 6px;
}

/* ==================== 通用Section ==================== */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-medium);
}

.section-title .title-accent {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ==================== 服务流程 ==================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.process-step {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.process-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  margin-top: 8px;
}

.process-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ==================== 学校卡片 ==================== */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.school-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.school-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.school-type-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-comprehensive {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.badge-public {
  background: #dbeafe;
  color: var(--primary-dark);
}

.badge-private {
  background: #fce7f3;
  color: #be185d;
}

.badge-enterprise {
  background: #d1fae5;
  color: #047857;
}

.school-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.school-card-body {
  padding: 16px 24px;
  flex: 1;
}

.school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.school-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.major-tag {
  padding: 2px 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.school-card-footer {
  padding: 12px 24px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.school-stars {
  font-size: 0.8rem;
  color: var(--secondary);
}

.school-stars .star {
  letter-spacing: 2px;
}

.school-detail-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-detail-link:hover {
  color: var(--primary-dark);
}

/* ==================== 专业分类 ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.category-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==================== CTA区域 ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
  color: white;
  border-radius: var(--radius-xl);
  margin: 48px 20px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==================== 学校列表页 ==================== */
.page-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 100px 0 48px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.filter-bar {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
}

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

.filter-chip {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.filter-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.result-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.result-count {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.result-count strong {
  color: var(--primary);
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-medium);
  background: white;
  cursor: pointer;
  outline: none;
}

.no-result {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-result .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ==================== 学校详情页 ==================== */
.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 40px;
}

.detail-header {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.detail-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.detail-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.detail-info-item .label {
  color: var(--text-light);
}

.detail-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.detail-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.major-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.major-item {
  padding: 8px 16px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-item {
  padding: 6px 14px;
  background: #fef3c7;
  color: #92400e;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 20px;
  transition: var(--transition);
}

.detail-back:hover {
  color: var(--primary);
  box-shadow: var(--shadow);
}

.detail-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: white;
}

.detail-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* ==================== 分析推荐页 ==================== */
.analysis-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.analysis-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.analysis-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.progress-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

.progress-dot.completed {
  background: var(--accent);
}

.analysis-question {
  text-align: center;
  margin-bottom: 32px;
}

.analysis-question h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.analysis-question p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.analysis-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.analysis-option {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-dark);
}

.analysis-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
}

.analysis-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.analysis-option .option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.analysis-option .option-text {
  flex: 1;
}

.analysis-option .option-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.analysis-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.analysis-result {
  text-align: center;
}

.analysis-result h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.analysis-result > p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 28px;
}

.result-school-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}

.result-school-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.result-school-card .match-score {
  display: inline-block;
  padding: 3px 10px;
  background: #d1fae5;
  color: #047857;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-school-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.result-school-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.result-school-card .result-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-medium);
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .schools-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .analysis-card {
    padding: 24px;
  }

  .detail-header,
  .detail-section {
    padding: 20px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ====== 移动端体验增强 ====== */
@media (max-width: 768px) {
  /* 按钮触摸目标≥44px，手机上更好点 */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero-actions .btn { width: 100%; }

  /* 详情页：信息行改为单列，避免 label+value 挤压 */
  .detail-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .detail-info-item { width: 100%; }
  .detail-header h1 { font-size: 1.4rem; }

  /* 学校列表：筛选栏标签独占一行，选项铺满 */
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-label { margin-bottom: 2px; }
  .filter-options { width: 100%; }
  .filter-chip { padding: 9px 14px; font-size: 0.9rem; }
  .search-box { min-width: 100%; width: 100%; }

  /* 智能分析：选项更大更易点 */
  .analysis-option { padding: 16px; }
  .analysis-options { gap: 12px; }

  /* 资讯详情：正文更易读 */
  .news-article-content { font-size: 1rem; line-height: 1.9; }
  .news-article-content p { margin-bottom: 16px; }

  /* 卡片更紧凑 */
  .school-card, .news-home-card { padding: 18px; }
  .process-card { padding: 22px; }
  .category-card { padding: 18px; }
  .stat-number { font-size: 2rem; }
}

@media (max-width: 480px) {
  .detail-section { padding: 18px; }
  .analysis-card { padding: 18px; }
  .news-article { padding: 16px; }
  .section { padding: 32px 0; }
  .hero h1 { font-size: 1.5rem; }
  .cta-section { padding: 28px 18px; }
  .cta-section h2 { font-size: 1.4rem; }
}

/* ==================== 教育资讯 ==================== */

/* 分类徽章 */
.news-category-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.news-cat-policy {
  background: #eff6ff;
  color: #1e40af;
}

.news-cat-enroll {
  background: #fef3c7;
  color: #92400e;
}

.news-cat-guide {
  background: #d1fae5;
  color: #047857;
}

.news-cat-school {
  background: #fce7f3;
  color: #9d174d;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* 头条区（列表页） */
.news-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.news-featured-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.news-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.news-featured-main {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}

.news-featured-tag {
  position: absolute;
  top: -8px;
  right: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-featured-card h3 {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

.news-featured-main h3 {
  font-size: 1.15rem;
}

.news-featured-card p {
  font-size: 0.83rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

.news-read-link {
  color: var(--primary);
  font-weight: 600;
}

/* 资讯列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.news-card {
  display: flex;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.news-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.news-card-date .date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.news-card-date .date-rest {
  font-size: 0.7rem;
  color: var(--text-light);
}

.news-card-body {
  flex: 1;
  min-width: 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 1.02rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0 0 8px;
}

.news-card:hover .news-card-body h3 {
  color: var(--primary);
}

.news-card-body p {
  font-size: 0.84rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.news-tag {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 首页资讯卡片 */
.news-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.news-home-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.news-home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.news-home-card h4 {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-home-card p {
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-home-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-light);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* 详情页 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-medium);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.news-article {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.news-article-header h1 {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 14px 0;
}

.news-article-meta {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.news-article-summary {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin: 20px 0 24px;
}

.news-article-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin: 0 0 16px;
  text-align: justify;
}

.news-article-content h2 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 26px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}

.news-article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.news-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.news-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 48%;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.news-nav-link.right {
  text-align: right;
  margin-left: auto;
}

.news-nav-link .nav-label {
  font-size: 0.74rem;
  color: var(--text-light);
}

.news-nav-link:hover span:last-child {
  color: var(--primary);
}

/* 相关阅读 */
.news-related {
  margin-bottom: 28px;
}

.news-related h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.news-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.news-related-card h4 {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-related-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-light);
}

/* 资讯页CTA */
.news-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: white;
  margin-bottom: 48px;
}

.news-cta h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.news-cta p {
  font-size: 0.88rem;
  opacity: 0.9;
  margin: 0 0 18px;
}

.news-cta .btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.news-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 资讯响应式 */
@media (max-width: 900px) {
  .news-featured-grid {
    grid-template-columns: 1fr;
  }

  .news-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .news-article {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .news-card {
    flex-direction: column;
    gap: 12px;
  }

  .news-card-date {
    flex-direction: row;
    gap: 6px;
    align-self: flex-start;
  }

  .news-card-date .date-day {
    font-size: 1.1rem;
  }

  .news-home-grid {
    grid-template-columns: 1fr;
  }

  .news-article-nav {
    flex-direction: column;
  }

  .news-nav-link,
  .news-nav-link.right {
    max-width: 100%;
    text-align: left;
  }
}

/* ==================== 咨询弹窗 ==================== */
.consult-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.consult-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: consultSlide 0.3s ease;
}

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

.consult-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 28px; color: var(--text-light);
  cursor: pointer; z-index: 1;
  line-height: 1; padding: 4px;
  transition: color 0.2s;
}

.consult-close:hover { color: var(--text-dark); }

.consult-modal-header {
  text-align: center;
  padding: 28px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.consult-modal-header h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--primary);
}

.consult-modal-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

.consult-modal-body {
  padding: 20px;
}

.consult-wechat {
  text-align: center;
  margin-bottom: 20px;
}

.qr-box {
  width: 180px; height: 180px;
  margin: 0 auto 12px;
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  color: var(--text-light);
}

.consult-qr-tip {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.consult-call-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.consult-call-btn:hover { opacity: 0.9; }

.consult-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: var(--text-light);
  font-size: 13px;
}

.consult-divider::before,
.consult-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}

.consult-divider::before { left: 0; }
.consult-divider::after { right: 0; }

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.consult-form input:focus,
.consult-form textarea:focus {
  border-color: var(--primary);
}

.consult-submit {
  margin-top: 4px;
  border: none;
  cursor: pointer;
}

.consult-success {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}

.consult-success p { margin: 8px 0 0; }

/* 全局悬浮咨询按钮 */
.consult-float {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}

.consult-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
}

.consult-float-pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 999px;
  background: var(--primary);
  animation: consultPulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes consultPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.consult-float-icon {
  font-size: 20px;
}

.consult-float-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .qr-box { width: 160px; height: 160px; }
  .consult-modal-header h3 { font-size: 20px; }
  .consult-float { padding: 10px 16px; bottom: 20px; right: 16px; }
  .consult-float-text { display: none; }
  .consult-float-icon { font-size: 24px; }
}
