/* ==============================
   Header & Navigation
/* ============================== */

.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon { font-size: 1.5rem; }

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

.mobile-menu {
  display: none;
  padding: 0 20px 16px;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  font-size: 0.95rem;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu.open { display: block; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ==============================
   Buttons
/* ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
}

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

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

.btn-secondary {
  background: var(--secondary);
  color: white !important;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white !important;
  border-color: rgba(255,255,255,0.4);
}

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

/* 头部导航栏按钮使用深色 */
.header-actions .btn-outline {
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}

.header-actions .btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-block { width: 100%; justify-content: center; }

/* ==============================
   Hero Section
/* ============================== */

.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, #fff, transparent),
    radial-gradient(2px 2px at 50px 160px, #ddd, transparent),
    radial-gradient(2px 2px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 160px 120px, #ddd, transparent);
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0 40px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ==============================
   Section Common
/* ============================== */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ==============================
   Features Section
/* ============================== */

.features-section {
  padding: 80px 0;
  background: white;
}

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-bg);
  background: white;
}

.feature-card.highlight {
  background: linear-gradient(135deg, var(--primary-bg), #eef2ff);
  border-color: rgba(59,130,246,0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==============================
   Schools Preview
/* ============================== */

.schools-preview {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .school-grid { grid-template-columns: 1fr; }
}

.school-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
  display: block;
}

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

.school-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.level-985 { background: #fef3c7; color: #92400e; }
.level-211 { background: #dbeafe; color: #1e40af; }
.level-双一流 { background: #e0e7ff; color: #3730a3; }
.level-省重点 { background: #d1fae5; color: #065f46; }
.level-普通公办本科 { background: #f3f4f6; color: #374151; }
.level-民办本科 { background: #fce7f3; color: #9d174d; }
.level-高职专科 { background: #fff7ed; color: #9a3412; }

.school-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.school-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.school-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }

.school-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ==============================
   Steps Section
/* ============================== */

.steps-section {
  padding: 80px 0;
  background: white;
}

.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-secondary); }

.step-arrow {
  font-size: 2rem;
  color: var(--primary-light);
  font-weight: 300;
}

@media (max-width: 768px) {
  .step-arrow { display: none; }
  .steps-flow { flex-direction: column; }
  .step { max-width: 100%; }
}

/* ==============================
   Disclaimer
/* ============================== */

.disclaimer-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-box h3 { color: #92400e; font-size: 1.1rem; margin-bottom: 12px; }
.disclaimer-box p { color: #78350f; font-size: 0.92rem; line-height: 1.7; }

/* ==============================
   Footer
/* ============================== */

.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

.footer-col p { font-size: 0.88rem; line-height: 1.7; }

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 4px 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ==============================
   Page Header
/* ============================== */

.page-header {
  padding: 48px 0 32px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.breadcrumb {
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==============================
   Filter Section
/* ============================== */

.filter-section {
  padding: 24px 0;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.filter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-group { flex: 1; min-width: 160px; }

.filter-input,
.filter-select,
.form-input,
.form-select {
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.filter-input:focus,
.filter-select:focus,
.form-input:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ==============================
   List Section
/* ============================== */

.list-section { padding: 32px 0 64px; }

.result-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==============================
   Table
/* ============================== */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--primary-bg); }

.highlight-score { color: var(--primary); font-weight: 700; }
.highlight-rank { color: var(--secondary); font-weight: 600; }

.link { color: var(--primary-light); font-weight: 500; }
.link:hover { color: var(--primary); text-decoration: underline; }

/* ==============================
   Tags
/* ============================== */

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.tag-level { background: #fef3c7; color: #92400e; }
.tag-type { background: #dbeafe; color: #1e40af; }
.tag-location { background: #d1fae5; color: #065f46; }
.tag-batch-普通批 { background: #f3f4f6; color: #374151; }
.tag-batch-提前批 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tag-batch-中外合作 { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.tag-batch-国家专项 { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.tag-batch-地方专项 { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.badge-sm {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-career { background: #e0e7ff; color: #3730a3; }

.tag-city { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.city-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.career-cities { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bg-tertiary); font-size: 0.85rem; }

.city-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: 0.8rem; }

.major-hierarchy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 2px 0;
  letter-spacing: 0.3px;
}

.major-hierarchy::before {
  content: '📂 ';
}

.tag-upstream { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.tag-downstream { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.upstream-card { border-left: 4px solid #3b82f6; }
.downstream-card { border-left: 4px solid #10b981; }

/* ==============================
   China Map */
.map-section {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.map-title {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.map-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.china-map-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
}

.china-map {
  width: 100% !important;
  min-height: 620px !important;
  height: 620px;
  background: transparent;
}

@media (max-width: 768px) {
  .china-map-wrapper { max-width: 100%; }
  .china-map { min-height: 420px !important; height: 420px; }
}

.map-legend {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}


/* ============================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  transition: var(--transition);
}

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

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

/* ==============================
   Empty State
/* ============================== */

.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }
