/* ========== 高考志愿填报平台 - 主样式 ========== */

/* CSS Variables */
:root {
  --primary: #1a56db;
  --primary-dark: #1340a0;
  --primary-light: #e8eefb;
  --primary-gradient: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
  --primary-gradient-hover: linear-gradient(135deg, #1340a0 0%, #1d4ed8 100%);
  
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  --bg: #f0f4f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-section: #f8fafc;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --font: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --nav-height: 64px;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

ul { list-style: none; }

/* ===== Top Bar ===== */
.gov-topbar {
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  height: 36px;
  display: flex;
  align-items: center;
}
.gov-topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gov-topbar a {
  color: #94a3b8;
  margin-left: 16px;
}
.gov-topbar a:hover { color: #fff; }
.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gov-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

/* ===== Header ===== */
.app-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: var(--font);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-item.active {
  color: var(--text-light) !important;
  background: var(--primary-gradient) !important;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3) !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Search */
.header-search {
  position: relative;
  width: 200px;
}
.header-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* ===== Main Content ===== */
.app-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - var(--nav-height) - 36px - 120px);
}

/* ===== Section ===== */
.section {
  display: none;
}
.section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .badge {
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 8px;
}
.section-more {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--primary); }

/* ===== Hero Banner ===== */
.hero-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  color: var(--text-light);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.hero-sub {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
}
.hero-stats {
  display: flex;
  gap: 40px;
  position: relative;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
}
.hero-stat-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
.hero-banner {
  background: linear-gradient(135deg, #1a56db 0%, #1e40af 50%, #1e3a8a 100%);
}

/* ===== Quick Entry Cards ===== */
.quick-entries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.quick-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-entry:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.quick-entry-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.quick-entry-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ===== Cards Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card-grid.col-2 {
  grid-template-columns: 1fr 1fr;
}
.card-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.card-clickable {
  cursor: pointer;
}

/* ===== College Card ===== */
.college-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
}
.college-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--border-light);
  color: var(--text-muted);
}
.college-rank.top3 {
  background: var(--primary-gradient);
  color: #fff;
}
.college-info {
  flex: 1;
  min-width: 0;
}
.college-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.college-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.college-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.college-tag.tag-985 { background: #fef3c7; color: #92400e; }
.college-tag.tag-211 { background: #dbeafe; color: #1e40af; }
.college-tag.tag-syl { background: #ede9fe; color: #6d28d9; }
.college-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* ===== News Card ===== */
.news-card {
  padding: 16px;
  cursor: pointer;
}
.news-card:hover { border-color: var(--primary); }
.news-type {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 6px;
}
.news-type.policy { background: var(--primary-light); color: var(--primary); }
.news-type.recruit { background: #fef3c7; color: #92400e; }
.news-type.major { background: #ede9fe; color: #6d28d9; }
.news-type.rank { background: #fce7f3; color: #be185d; }
.news-type.guide { background: #d1fae5; color: #065f46; }
.news-type.hot {
  background: var(--danger-bg);
  color: var(--danger);
}
.news-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-summary {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-date {
  font-size: 12px;
  color: var(--text-muted);
}
.news-hot {
  display: inline-block;
  font-size: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}

/* ===== Major Card ===== */
.major-card {
  text-align: center;
  padding: 20px 12px;
  cursor: pointer;
}
.major-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.major-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.major-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Employment Card ===== */
.employment-card {
  padding: 16px;
}
.emp-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.emp-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
.emp-stat-value {
  font-weight: 600;
  color: var(--primary);
}
.emp-hot {
  display: flex;
  gap: 2px;
}
.emp-hot-star {
  color: #f59e0b;
  font-size: 12px;
}
.emp-hot-star.empty {
  color: var(--border);
}

/* ===== Simulate Page ===== */
.simulate-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.simulate-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.simulate-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-label .required {
  color: var(--danger);
  margin-right: 2px;
}
.form-select, .form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: all 0.2s;
}
.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: all 0.2s;
  resize: vertical;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.btn-primary:hover {
  background: var(--primary-gradient-hover);
  box-shadow: 0 4px 12px rgba(26,86,219,0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 12px 32px;
  font-size: 15px;
}

/* Recommendation */
.recommend-section {
  margin-bottom: 20px;
}
.recommend-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recommend-title.reach { color: var(--danger); }
.recommend-title.target { color: var(--primary); }
.recommend-title.safe { color: var(--success); }

.recommend-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.recommend-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.recommend-item-rank {
  width: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.recommend-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.recommend-item-tags {
  display: flex;
  gap: 4px;
}
.recommend-item-stats {
  font-size: 12px;
  color: var(--text-muted);
}

/* Score badge */
.score-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.score-badge.high { background: var(--success-bg); color: var(--success); }
.score-badge.match { background: var(--primary-light); color: var(--primary); }
.score-badge.low { background: var(--danger-bg); color: var(--danger); }

/* ===== College Detail Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.modal-body {
  padding: 24px;
}

/* College Detail */
.detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}
.detail-basic {
  flex: 1;
}
.detail-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.detail-meta-item {
  font-size: 13px;
  color: var(--text-secondary);
}
.detail-meta-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
}
.detail-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Major list in detail */
.major-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.major-list-item {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
}
.major-list-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.major-list-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ===== Compare Page ===== */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.compare-col-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.compare-item {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
}
.compare-item:last-child { border-bottom: none; }
.compare-label {
  color: var(--text-muted);
}
.compare-value {
  font-weight: 500;
}

/* Score line table */
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.score-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.score-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}
.score-table tr:hover td {
  background: var(--bg);
}

/* ===== Footer ===== */
.app-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 32px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; }
.footer-copyright {
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.footer-copyright a { color: #60a5fa; }
.footer-beian {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-select {
  width: auto;
  min-width: 140px;
}

/* ===== Result Count ===== */
.result-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state-text {
  font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .quick-entries { grid-template-columns: repeat(3, 1fr); }
  .card-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
  .simulate-container { grid-template-columns: 1fr; }
  .compare-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gov-topbar { display: none; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo-title { font-size: 15px; }
  .logo-sub { display: none; }
  .main-nav { gap: 2px; overflow-x: auto; }
  .nav-item { padding: 6px 10px; font-size: 13px; }
  .header-search { width: 140px; }
  .hero-banner { padding: 24px; }
  .hero-title { font-size: 20px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .quick-entries { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-entry { padding: 12px 6px; }
  .quick-entry-icon { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.col-2, .card-grid.col-3, .card-grid.col-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 18px; }
  .app-content { padding: 12px; }
  .modal-content { margin: 10px; max-height: 90vh; }
  .filter-bar .form-select { min-width: 100px; }
  .footer-links { gap: 12px; }
}
@media (max-width: 480px) {
  .quick-entries { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat { display: flex; gap: 8px; align-items: baseline; }
  .header-search { width: 100px; }
  .nav-item { padding: 6px 8px; font-size: 12px; }
}

/* ===== Auth Page ===== */
.auth-page {
  max-width: 420px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-white);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 14px;
  color: var(--text);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== Animations ===== */
.fade-in { animation: fadeIn 0.3s ease; }

/* ===== Extra utilities ===== */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

/* ===== Notification ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  font-size: 14px;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
}
.toast.show { display: flex; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Loading ===== */
.loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .auth-page { margin: 20px 12px; padding: 20px; }
}

/* ===== Favorite Button ===== */
.fav-btn {
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s;
  display: inline-block;
  line-height: 1;
}
.fav-btn:hover {
  transform: scale(1.2);
}
.fav-btn.active {
  animation: favPop 0.3s ease;
}
@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ===== Interest Card ===== */
.interest-card {
  transition: all 0.2s ease;
}
.interest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.interest-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ===== Compare Winner ===== */
.compare-winner {
  background: #f0fdf4;
}
.compare-winner .compare-label,
.compare-winner .compare-value {
  color: var(--success);
  font-weight: 600;
}
.compare-col-title.compare-winner {
  border-bottom-color: var(--success);
}

/* ===== Auth Form ===== */
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

/* ===== Mobile Menu Toggle ===== */
.hamburger-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.2s;
  flex-shrink: 0;
}
.hamburger-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Match Progress Bar ===== */
.match-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}
.match-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ===== Responsive - Mobile Optimization ===== */
@media (max-width: 768px) {
  /* Hamburger button shows on mobile */
  .hamburger-btn {
    display: inline-flex;
  }

  /* Navigation becomes horizontal scrollable */
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Volunteer table mobile adaptation */
  .volunteer-table {
    font-size: 12px;
  }
  .volunteer-table th,
  .volunteer-table td {
    padding: 6px 4px;
  }

  /* JX result tiers left border */
  .tier-reach { border-left: 3px solid #dc2626; }
  .tier-target { border-left: 3px solid #1a56db; }
  .tier-safe { border-left: 3px solid #059669; }

  /* Volunteer row mobile */
  .volunteer-row td {
    padding: 6px 4px;
  }

  /* Overall font size */
  body {
    font-size: 14px;
  }
  .section-title {
    font-size: 16px;
  }
  .hero-title {
    font-size: 18px;
  }

  /* JX sim container */
    font-size: 18px;
  }
    padding: 16px;
  }
    padding: 14px;
  }
    flex-direction: column;
    align-items: flex-start;
  }
    gap: 8px;
  }
    font-size: 18px;
  }
  .vol-name {
    min-width: 80px;
    font-size: 12px;
  }
  .vol-num {
    width: 28px;
    font-size: 11px;
  }
  .match-bar {
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  /* Smaller screen adjustments */
  .volunteer-table {
    font-size: 11px;
  }
  .volunteer-row td {
    padding: 5px 3px;
  }
  .volunteer-row {
    flex-direction: column;
    padding: 8px;
  }
  .nav-item {
    padding: 6px 6px;
    font-size: 11px;
  }
  .vol-name {
    min-width: 60px;
    font-size: 11px;
  }
  .vol-win {
    min-width: 35px;
  }
  .match-bar {
    min-width: 30px;
    height: 6px;
  }
    gap: 6px;
  }
    font-size: 12px;
    padding: 4px 10px;
  }
    font-size: 16px;
  }
}


/* ===== Mobile Hamburger Menu ===== */
.hamburger-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--primary-light);
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-wrap: wrap;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    gap: 4px;
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  /* Better table scrolling on mobile */
  .volunteer-table { font-size: 11px; }
  .volunteer-table th, .volunteer-table td { padding: 6px 4px; white-space: nowrap; }
  
  /* Card grid adjustments */
  .card-grid.col-2, .card-grid.col-3, .card-grid.col-4 { 
    grid-template-columns: 1fr; 
  }
  
  /* Hero banner */
  .hero-banner { padding: 20px 16px; }
  .hero-title { font-size: 16px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 20px; }
  
  /* Quick entries - show 3 per row */
  .quick-entries { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick-entry { padding: 10px 4px; }
  .quick-entry-icon { font-size: 20px; }
  .quick-entry-label { font-size: 11px; }
  
  /* Simulate form */
  .simulate-container { grid-template-columns: 1fr; }
  .compare-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .quick-entries { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 8px; }
  .hero-stat { display: flex; gap: 8px; align-items: baseline; }
  .gov-topbar { display: none; }
  .logo-title { font-size: 14px; }
  .logo-sub { display: none; }
  .section-title { font-size: 15px; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-select, .filter-bar .header-search { width: 100%; }
}


/* ===== 信息验证 Tabs ===== */
.verify-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.verify-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.verify-tab:hover { color: var(--primary); }
.verify-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.verify-panel { display: none; }
.verify-panel.active { display: block; }

.verify-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.verify-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
}
.verify-score-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,86,219,0.1);
}
.verify-score-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 8px 0;
}
.verify-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.verify-score-fill.safe { background: linear-gradient(90deg, #22c55e, #16a34a); }
.verify-score-fill.target { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.verify-score-fill.reach { background: linear-gradient(90deg, #f59e0b, #d97706); }

.verify-result-header {
  background: linear-gradient(135deg, #1a56db, #1e40af);
  color: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.verify-result-score {
  font-size: 36px;
  font-weight: 800;
}
.verify-result-detail {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

.verify-tier-section {
  margin-bottom: 12px;
}
.verify-tier-title {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verify-tier-title.reach { background: #fef3c7; color: #92400e; }
.verify-tier-title.target { background: #dbeafe; color: #1e40af; }
.verify-tier-title.safe { background: #dcfce7; color: #166534; }

.verify-admit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.verify-admit-province {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}
.verify-admit-province.wuli { background: #dbeafe; color: #1e40af; }
.verify-admit-province.lishi { background: #fce7f3; color: #9d174d; }

.verify-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.verify-compare-table th {
  background: var(--primary-gradient);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
}
.verify-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.verify-compare-table tr:hover td {
  background: var(--primary-light);
}

@media (max-width: 768px) {
  .verify-tabs { overflow-x: auto; }
  .verify-tab { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}


/* ===== Chart Tabs ===== */
.chart-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.chart-tab {
  padding: 10px 20px; border: none; background: transparent;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.chart-tab:hover { color: var(--primary); }
.chart-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.chart-panel { display: none; }
.chart-panel.active { display: block; }

/* ===== Skeleton Loading ===== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.skeleton-text { height: 14px; margin: 6px 0; }
.skeleton-card { height: 80px; margin: 8px 0; }

/* ===== Enhanced Cards ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-animated {
  animation: fadeInUp 0.4s ease-out both;
}

/* ===== Pulse Badge ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.badge-pulse {
  animation: pulse 2s infinite;
  display: inline-block;
}

/* ===== Gradient Headers ===== */
.section-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.section-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }

/* ===== Plan Compare ===== */
.plan-compare-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px;
}
.plan-compare-header {
  padding: 14px 18px; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.plan-compare-header.plan-a { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.plan-compare-header.plan-b { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.plan-compare-body { padding: 14px 18px; }
.plan-diff-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.plan-diff-badge.better { background: #dcfce7; color: #166534; }
.plan-diff-badge.worse { background: #fee2e2; color: #991b1b; }

/* ===== Score Chip ===== */
.score-chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.score-chip.reach { background: #fef3c7; color: #92400e; }
.score-chip.target { background: #dbeafe; color: #1e40af; }
.score-chip.safe { background: #dcfce7; color: #166534; }

/* ===== Tooltip ===== */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-text {
  visibility: hidden; position: absolute; bottom: 120%; left: 50%;
  transform: translateX(-50%); background: #1e293b; color: white;
  padding: 4px 10px; border-radius: 6px; font-size: 11px;
  white-space: nowrap; z-index: 10; opacity: 0; transition: opacity 0.2s;
}
.tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ===== Local AI Health Card ===== */
.ai-health-card { margin-top: 28px; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg); }
.ai-health-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.ai-health-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ai-health-sub { font-size: 13px; opacity: 0.82; line-height: 1.6; }
.ai-health-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24); }
.ai-health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.ai-health-item { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 12px; }
.ai-health-num { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.ai-health-label { font-size: 12px; opacity: 0.78; }
.ai-health-list { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; line-height: 1.5; }
.ai-health-list div { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 10px; }
.ai-health-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .ai-health-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-health-card { padding: 16px; }
}


/* ===== JX Simulate - 江西45志愿 ===== */
#section-jxsimulate .jxsimulate-container { max-width: 1100px; margin: 0 auto; }
#section-jxsimulate .jx-header { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; border-radius: 12px; padding: 28px; margin-bottom: 24px; text-align: center; }
#section-jxsimulate .jx-header h2 { font-size: 22px; margin: 0 0 6px 0; font-weight: 800; }
#section-jxsimulate .jx-header p { font-size: 14px; margin: 0; opacity: 0.9; line-height: 1.6; }
#section-jxsimulate .jx-form-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
#section-jxsimulate .jx-interest-chk-label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-size: 13px; user-select: none; transition: all 0.15s; background: #fff; color: #475569; }
#section-jxsimulate .jx-interest-chk-label:hover { border-color: #94a3b8; }
#section-jxsimulate .jx-interest-chk-label.checked { border-color: #1a56db; background: #e8eefb; color: #1a56db; font-weight: 600; }
#section-jxsimulate .jx-interest-chk-label input { display: none; }

#section-jxsimulate .jx-result-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
#section-jxsimulate .jx-result-table thead th { background: linear-gradient(135deg, #1a56db, #1e40af); color: #fff; padding: 10px 8px; font-weight: 600; text-align: center; white-space: nowrap; }
#section-jxsimulate .jx-result-table td { padding: 8px 6px; border-bottom: 1px solid #f1f5f9; text-align: center; }
#section-jxsimulate .jx-result-table tbody tr:hover td { background: #f8fafc; }
#section-jxsimulate .jx-result-table .tier-reach td { background: #fff7ed; }
#section-jxsimulate .jx-result-table .tier-target td { background: #eff6ff; }
#section-jxsimulate .jx-result-table .tier-safe td { background: #f0fdf4; }
#section-jxsimulate .jx-tier-header td { font-weight: 700; font-size: 14px; padding: 10px 8px; text-align: left; }
#section-jxsimulate .jx-tier-header.reach td { background: #fed7aa; color: #9a3412; }
#section-jxsimulate .jx-tier-header.target td { background: #bfdbfe; color: #1e40af; }
#section-jxsimulate .jx-tier-header.safe td { background: #bbf7d0; color: #166534; }

#section-jxsimulate .jx-prob-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
#section-jxsimulate .jx-prob-badge.reach { background: #fed7aa; color: #9a3412; }
#section-jxsimulate .jx-prob-badge.target { background: #bfdbfe; color: #1e40af; }
#section-jxsimulate .jx-prob-badge.safe { background: #bbf7d0; color: #166534; }

@media (max-width: 768px) {
  #section-jxsimulate .jxsimulate-container { padding: 8px; }
  #section-jxsimulate .jx-header { padding: 16px; }
  #section-jxsimulate .jx-header h2 { font-size: 16px; }
  #section-jxsimulate .jx-result-table { font-size: 11px; }
  #section-jxsimulate .jx-result-table th, #section-jxsimulate .jx-result-table td { padding: 6px 4px; }
}
