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

:root {
  --primary: #F27935;
  --primary-light: #FFF3ED;
  --primary-dark: #D96528;
  --red: #e74c3c;
  --green: #27ae60;
  --orange: #F27935;
  --purple: #8e44ad;
  --bg: #faf8f6;
  --card-bg: #fff;
  --text: #4C4C4C;
  --text-light: #8a8a8a;
  --border: #f0e8e3;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ==================== Top Bar ==================== */
.top-bar {
  background: #FFD0B0;
  color: var(--text);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(242,121,53,0.15);
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { height: 34px; width: auto; object-fit: contain; }
.logo-icon { font-size: 24px; }
.logo h1 { font-size: 18px; font-weight: 600; }
.logo-sub { font-size: 14px; color: var(--text); font-weight: 600; letter-spacing: 1px; }
.year-selector {
  display: flex;
  height: 34px;
  background: rgba(255,255,255,0.55);
  border-radius: 17px;
  overflow: hidden;
}
.yr-btn {
  height: 34px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.yr-btn.active {
  background: var(--primary);
  color: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 6px rgba(242,121,53,0.3);
}
.yr-btn:hover:not(.active) {
  color: var(--primary);
  background: rgba(255,255,255,0.4);
}

/* ==================== Tab Nav ==================== */
.tab-nav {
  display: flex;
  background: var(--card-bg);
  padding: 4px;
  margin: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  gap: 2px;
  position: sticky;
  top: 68px;
  z-index: 99;
}
.tab-btn {
  flex: 1;
  min-width: 56px;
  padding: 10px 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(242,121,53,0.3);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== Category Tabs ==================== */
.category-tabs {
  display: flex;
  margin: 12px 16px;
  gap: 8px;
}
.cat-content { display: none; }
.cat-content.active { display: block; }

/* ==================== Hero Card ==================== */
.hero-card {
  background: #FFD0B0;
  color: var(--text);
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(242,121,53,0.2);
}
.hero-card h2 { font-size: 17px; margin-bottom: 16px; color: var(--text); }
.key-lines { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.key-line-item {
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.kl-label { font-size: 11px; color: var(--text-light); display: block; margin-bottom: 4px; }
.kl-value { font-size: 24px; font-weight: 700; color: var(--primary-dark); display: block; }
.kl-value small { font-size: 12px; font-weight: 400; color: var(--text-light); }
.kl-change { font-size: 11px; margin-top: 2px; display: block; }
.up { color: var(--red); font-weight: 600; }
.down { color: var(--green); font-weight: 600; }
.new { color: var(--text-light); font-size: 11px; }
.exam-info { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ==================== Cards ==================== */
.card {
  background: var(--card-bg);
  margin: 12px 16px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }

.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary) 50%, var(--primary-light));
  margin: 24px 0;
  opacity: 0.5;
}
.card-desc { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }

/* 分数带内嵌 */
.sc-scoreband {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.sb-badge {
  font-size: 10px; background: #fef3c7; color: #92400e;
  padding: 2px 6px; border-radius: 3px; font-weight: 600;
}
.sb-line { font-size: 11px; color: var(--text-light); white-space: nowrap; }
.sb-line strong { color: var(--text); }
.sb-more { font-size: 10px; color: var(--primary); }

/* ==================== TOP10 ==================== */
.top10-list { }
.top10-row {
  display: flex; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; gap: 10px;
}
.top10-row:last-child { border-bottom: none; }
.top10-row:hover { background: var(--primary-light); border-radius: 4px; padding-left: 8px; padding-right: 8px; }
.rank { width: 28px; height: 28px; border-radius: 50%; background: #ecf0f1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rank.top1 { background: #f1c40f; color: #fff; }
.rank.top2 { background: #bdc3c7; color: #fff; }
.rank.top3 { background: #e67e22; color: #fff; }
.top10-row .name { flex: 1; font-size: 14px; font-weight: 500; }
.top10-row .score { font-weight: 700; font-size: 16px; color: var(--red); }
.top10-row .arrow { color: var(--text-light); font-size: 18px; }

/* ==================== News ==================== */
.news-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: flex-start; }
.news-item:last-child { border-bottom: none; }
.news-date { background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* ==================== Search ==================== */
.search-bar { margin: 12px 16px; display: flex; gap: 8px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; }
.search-bar input:focus { border-color: var(--primary); }
.search-bar select { padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: #fff; min-width: 100px; outline: none; }

/* ==================== School Grid ==================== */
.school-section-title {
  margin: 16px 16px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 0 16px 12px;
}
.school-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border);
}
.school-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.school-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.school-card-header h4 { font-size: 14px; font-weight: 600; }
.tier-tag { font-size: 10px; color: #fff; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.tier-voc-sch { background: #3498db; font-size: 10px; color: #fff; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.school-card-body { font-size: 12px; color: var(--text-light); }
.sc-info { margin-bottom: 3px; }
.sc-score { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--red); }
.sc-features { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.sc-features span { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: 10px; }

/* ==================== Vocational Stats ==================== */
.voc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.stat-item { padding: 8px; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; display: block; }

/* ==================== 通用数据横向滚动区 ==================== */
.data-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* 右侧滚动阴影提示 */
  background:
    linear-gradient(to right, var(--card-bg) 30%, rgba(255,255,255,0)),
    linear-gradient(to left, var(--card-bg) 30%, rgba(255,255,255,0)) 100% 0,
    radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
  scrollbar-width: thin;
  scrollbar-color: #c0c0c0 transparent;
}

/* WebKit 滚动条可见化 */
.data-scroll::-webkit-scrollbar { height: 6px; }
.data-scroll::-webkit-scrollbar-track { background: transparent; }
.data-scroll::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
.data-scroll::-webkit-scrollbar-thumb:hover { background: #999; }

/* 卡片内的表格自动启用滚动 */
.card > table,
.detail-section > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c0c0c0 transparent;
}
.card > table::-webkit-scrollbar,
.detail-section > table::-webkit-scrollbar { height: 6px; }
.card > table::-webkit-scrollbar-thumb,
.detail-section > table::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }

/* 滚动提示标签 */
.scroll-notice {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: var(--text-light); padding: 4px 0 8px;
  user-select: none;
}
.scroll-notice::before,
.scroll-notice::after { content: '👆'; font-size: 10px; }
@media (hover: none) and (pointer: coarse) {
  /* 仅在触摸设备上显示滚动提示 */
  .scroll-notice { display: flex; }
}

/* ==================== Chart & Score Table ==================== */
.chart-container { height: 400px; position: relative; margin-bottom: 16px; }
.score-table-wrapper { }
.score-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 650px; }
.score-table thead { background: var(--primary-light); }
.score-table th { padding: 8px 6px; text-align: left; font-weight: 600; font-size: 11px; color: var(--primary-dark); white-space: nowrap; }
.score-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.score-table tbody tr { cursor: pointer; transition: background 0.15s; }
.score-table tbody tr:hover { background: #f8fafc; }
.table-rank { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #ecf0f1; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.score-cell { font-weight: 700; color: var(--red); }
.type-tag { font-size: 10px; background: #ecf0f1; padding: 2px 8px; border-radius: 10px; }

/* 录取批次标签 */
.batch-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.batch-tag-sm { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; vertical-align: middle; }
.batch-regular { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #ffd6c2; }
.batch-third { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }
.batch-scoreband { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.batch-voc { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }
.batch-advance { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ==================== Pathways ==================== */
.pathway-card { border-left: 4px solid var(--border); }
.pathway-card.summer { border-left-color: #e74c3c; }
.pathway-card.spring { border-left-color: #8e44ad; }

.pathway-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pathway-icon { font-size: 28px; }
.pathway-subtitle { font-size: 13px; color: var(--text-light); }

.pathway-target {
  display: inline-block;
  background: #f8f9fa;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  margin-bottom: 12px;
}

.pathway-desc p { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }

.pathway-subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.ps-item {
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.pathway-total {
  font-size: 14px;
  text-align: center;
  margin: 12px 0;
  background: var(--primary-light);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.pf-item { font-size: 13px; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.pf-item:last-child { border-bottom: none; }

.exam-two-parts { display: flex; gap: 12px; margin-bottom: 12px; }
.exam-part { flex: 1; background: #f8f9fa; border-radius: var(--radius-sm); padding: 12px; }
.exam-part h5 { font-size: 13px; margin-bottom: 8px; }
.ps-mini { display: flex; flex-direction: column; gap: 4px; }
.psm-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed #e0e0e0; }
.exam-time { font-size: 11px; color: var(--text-light); margin-top: 8px; text-align: center; }

/* Pathway list */
.pathway-list { display: flex; flex-direction: column; gap: 12px; }
.pathway-item { display: flex; gap: 12px; align-items: flex-start; }
.pw-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.pw-content h5 { font-size: 14px; margin-bottom: 4px; }
.pw-content p { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.pw-example { font-size: 11px; color: var(--primary); margin-top: 4px; }

/* ==================== Policy ==================== */
.timeline { padding-left: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; display: flex; gap: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: #bdc3c7; border: 3px solid #fff; box-shadow: 0 0 0 2px #bdc3c7; flex-shrink: 0; margin-top: 3px; position: relative; z-index: 1; }
.tl-dot.highlight { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tl-date { font-size: 12px; color: var(--text-light); }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-desc { font-size: 12px; color: var(--text-light); }

.exam-table-wrapper { }
.exam-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.exam-table th { background: var(--primary-light); padding: 8px; text-align: left; font-size: 11px; color: var(--primary-dark); }
.exam-table td { padding: 8px; border-bottom: 1px solid var(--border); font-size: 12px; }
.exam-table .group-header td { background: #f8f9fa; font-weight: 600; font-size: 12px; padding: 8px; }
.hl-score { color: var(--red); font-weight: 600; }
.hl-grade { font-size: 11px; color: var(--text-light); text-align: center; }

.req-cards { display: flex; flex-direction: column; gap: 10px; }
.req-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; border-left: 4px solid var(--primary); }
.req-school-name { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.req-detail { font-size: 13px; color: var(--primary); margin-bottom: 4px; }
.req-examples { font-size: 11px; color: var(--text-light); }

/* ==================== Simulator ==================== */
.sim-input-group { display: flex; flex-direction: column; gap: 10px; }
.sim-input-group label { font-size: 13px; font-weight: 500; color: var(--text-light); }
.score-input-wrap { display: flex; align-items: center; gap: 8px; }
.score-input-wrap input { flex: 1; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 20px; font-weight: 700; text-align: center; font-family: inherit; outline: none; }
.score-input-wrap input:focus { border-color: var(--primary); }
.score-unit { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.sim-grades { display: flex; gap: 12px; flex-wrap: wrap; }
.sim-grades > div { flex: 1; min-width: 0; }
.sim-grades label { display: block; margin-bottom: 4px; }
.sim-grades select { width: 100%; padding: 10px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: #fff; outline: none; }
.btn-primary { padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--primary-dark); }

.sim-result { margin-top: 16px; }
.sim-summary { background: var(--primary-light); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; text-align: center; margin-bottom: 12px; }
.sim-category { margin-bottom: 14px; width: 100%; }
.sim-cat-header { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sim-schools { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sim-school-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f8f9fa; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.sim-school-row:hover { background: var(--primary-light); }
.sim-school-score { font-weight: 700; color: var(--red); }
.sim-empty { font-size: 13px; color: var(--text-light); padding: 8px 0; }
.sim-error { color: var(--red); font-size: 14px; text-align: center; padding: 12px; }
.sim-disclaimer { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 12px; font-style: italic; }
.sim-voc-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #166534;
}

/* 志愿结果双tab切换 */
.sim-tab-nav {
  display: flex; gap: 6px; margin-top: 16px; border-bottom: 2px solid var(--border);
}
.sim-tab-btn {
  flex: 1; padding: 10px 0; border: none; background: none;
  font-size: 14px; font-weight: 500; color: var(--text-light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: inherit; transition: all 0.2s;
}
.sim-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.sim-panels { }
.sim-panel { display: none; }
.sim-panel.active { display: block; }

/* 中职专业行 — CSS Grid，杜绝嵌套flex挤压 */
.sim-voc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  font-size: 13px;
  align-items: center;
}
.sim-voc-row:hover { background: var(--primary-light); }
.sim-voc-school { font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.sim-voc-type { font-size: 11px; color: var(--text-light); background: #e8e8e8; padding: 2px 8px; border-radius: 10px; white-space: nowrap; justify-self: end; }
.sim-voc-major { color: var(--text-light); font-size: 12px; overflow-wrap: break-word; min-width: 0; }
.sim-voc-score { font-weight: 700; color: var(--red); font-size: 12px; justify-self: end; white-space: nowrap; }
.sim-voc-score small { color: var(--text-light); font-weight: 400; }

/* 中职保底 - 按学校分组 */
.sim-voc-group {
  margin-bottom: 8px; padding: 10px 12px; background: #f8f9fa; border-radius: var(--radius-sm);
}
.sim-voc-group-header { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.sim-voc-subrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 12px;
}
.sim-voc-subrow:hover { color: var(--primary); }

/* Tips */
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; }
.tip-num { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* ==================== Modal ==================== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-content { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.modal-close { position: sticky; top: 0; float: right; background: none; border: none; font-size: 28px; color: var(--text-light); cursor: pointer; padding: 0 4px; line-height: 1; z-index: 1; }
.modal-close:hover { color: var(--text); }

.detail-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.detail-header h2 { font-size: 20px; }
.detail-tier { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-top: 4px; }
.detail-info { margin-bottom: 14px; font-size: 13px; }
.detail-info p { margin-bottom: 4px; }
.detail-section { margin-bottom: 14px; }
.detail-section h5 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.detail-section p { font-size: 13px; line-height: 1.8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 14px; font-size: 12px; }
.detail-related { font-size: 13px; padding: 4px 0; }
.detail-score-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 700px; }
.detail-score-table th { background: #f8f9fa; padding: 8px; text-align: left; font-size: 11px; }
.detail-score-table td { padding: 8px; border-bottom: 1px solid var(--border); }

/* Program table */
.program-table-wrapper { }
.program-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 480px; }
.program-table th { background: #f8f9fa; padding: 8px; text-align: left; font-size: 11px; white-space: nowrap; }
.program-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.prog-type { font-size: 11px; }
.policy-list { padding-left: 18px; }
.policy-list li { font-size: 12px; padding: 3px 0; }
.pathway-hint { padding: 10px 14px; background: #fffdf5; border: 1px solid #fef3c7; border-radius: var(--radius-sm); margin-top: 12px; }
.pathway-hint h5 { color: #b45309; }
.pathway-hint p { font-size: 12px; color: #92400e; }

/* ==================== Year Highlight ==================== */
.cur-year-row { background: #fffdf0; }
.cur-year-row td:first-child { font-weight: 600; }
.cur-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}
.score-up { color: var(--red); }
.score-down { color: var(--green); }

.detail-year-compare { margin-bottom: 10px; }
.dyc-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: #f8f9fa; border-radius: var(--radius-sm);
  font-size: 13px;
}
.dyc-label { color: var(--text-light); }
.dyc-value { font-weight: 700; }
.dyc-value.up { color: var(--red); }
.dyc-value.down { color: var(--green); }

/* ==================== 联系咨询 ==================== */
.contact-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(242,121,53,0.4);
  z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-pulse 2s infinite;
}
.contact-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(242,121,53,0.55); }
.contact-fab:active { transform: scale(0.95); }

.fab-icon { font-size: 26px; line-height: 1; }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(242,121,53,0.4); }
  50% { box-shadow: 0 4px 30px rgba(242,121,53,0.65); }
}

/* Overlay */
.contact-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 300;
  align-items: flex-end; justify-content: center;
  padding: 16px;
}
.contact-overlay.show { display: flex; }

.contact-card {
  background: #fff; border-radius: 16px 16px 4px 4px;
  padding: 24px 20px 20px;
  width: 100%; max-width: 400px;
  position: relative;
  animation: slideUp 0.3s ease-out;
  margin-bottom: 24px;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-intro { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.contact-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 24px;
  color: var(--text-light); cursor: pointer; line-height: 1;
}
.contact-close:hover { color: var(--text); }

.contact-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none; color: inherit;
  cursor: pointer; transition: background 0.2s;
}
.contact-item:hover { background: #f5f7fa; }
.phone-item { background: #fff6f0; border: 1px solid #ffd8c7; }
.phone-item:hover { background: #ffede6; }
.wechat-item { background: #f0fdf4; border: 1px solid #d0f5d0; }
.wechat-item:hover { background: #e5f9e5; }
.qrcode-item {
  background: #fafafa; border: 1px dashed #ddd;
  flex-direction: column; align-items: center; text-align: center;
}
.qrcode-item img { width: 160px; height: 160px; border-radius: 8px; object-fit: contain; }

.ci-icon { font-size: 28px; flex-shrink: 0; }
.ci-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-size: 11px; color: var(--text-light); }
.ci-value { font-size: 15px; font-weight: 700; word-break: break-all; }
.ci-arrow { font-size: 16px; color: var(--primary); opacity: 0.6; flex-shrink: 0; }

.ci-copy {
  padding: 6px 14px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 20px; font-size: 13px; cursor: pointer;
  flex-shrink: 0; transition: background 0.2s;
}
.ci-copy:hover { background: var(--primary-dark); }
.ci-copy.copied { background: #16a34a; }

.contact-tip {
  text-align: center; font-size: 12px; color: var(--text-light);
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ==================== Responsive ==================== */
@media (min-width: 768px) {
  .school-grid { grid-template-columns: repeat(3, 1fr); padding: 0 24px 12px; }
  .card, .hero-card { margin: 12px 24px; }
  .search-bar, .category-tabs { margin: 12px 24px; }
  .school-section-title { margin: 16px 24px 8px; }
  .chart-container { height: 500px; }
  .req-cards { flex-direction: row; flex-wrap: wrap; }
  .req-card { flex: 1; min-width: 180px; }
  .exam-two-parts { flex-direction: row; }
  .voc-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  body { max-width: 960px; margin: 0 auto; }
  .school-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .key-lines { grid-template-columns: repeat(2, 1fr); }
  .exam-two-parts { flex-direction: column; }
  .voc-stats { grid-template-columns: repeat(2, 1fr); }
  .tab-btn { font-size: 11px; padding: 8px 3px; }
  .cat-tab { font-size: 12px; padding: 8px 10px; }
  .major-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== 分数带 & 职校专业详情 ==================== */
.sb-count, .vp-count {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 10px 0 0;
}

/* 搜索高亮 */
.search-hl {
  background: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* 清除搜索按钮 */
.search-clear-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  vertical-align: middle;
  font-family: inherit;
}
.search-clear-btn:hover { background: #c0392b; }

.voc-type-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.vt-tab {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.vt-tab:hover { border-color: var(--primary); color: var(--primary); }
.vt-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==================== 专业库 ==================== */
.major-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.major-stat {
  text-align: center; padding: 14px 8px;
  background: linear-gradient(135deg, #fff7f2, #ffede6);
  border-radius: var(--radius-sm);
}
.major-stat-val { font-size: 28px; font-weight: 800; color: var(--primary); }
.major-stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.major-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.major-filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.major-filter-row select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; background: #fff; font-family: inherit;
  flex: 1; min-width: 120px;
}

.mj-tab {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; font-size: 12px; color: var(--text-light);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  white-space: nowrap;
}
.mj-tab:hover { border-color: var(--primary); color: var(--primary); }
.mj-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.major-count { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }

.major-table-wrap { }
#mjTable { min-width: 650px; }
#mjTable th:nth-child(1) { min-width: 150px; }
#mjTable th:nth-child(2) { min-width: 140px; }
#mjTable td { font-size: 13px; }

.tag-sm {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; background: var(--primary-light); color: var(--primary-dark);
}

.card-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.category-tabs {
  display: flex; gap: 6px;
  margin: 8px 12px;
}
.cat-tab {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.cat-tab:hover { border-color: var(--primary); }
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid #eee;
  margin-top: 24px;
}
.footer-main {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}
.footer-sub {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* ==================== 会员系统 ==================== */
.top-bar-right { display: flex; align-items: center; gap: 10px; }
.mc-badge {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(242,121,53,0.4);
  color: var(--text);
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.mc-badge:hover { background: rgba(255,255,255,0.85); }
.mc-badge.active {
  background: #ffd700;
  color: #8a6d00;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* tab 锁标记 */
.tab-lock {
  font-size: 10px;
  vertical-align: top;
  margin-left: 1px;
}
.tab-btn.active .tab-lock { display: none; }

/* 会员激活弹窗 */
.mc-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mc-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.mc-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.mc-close:hover { color: #999; }
.mc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mc-icon { font-size: 28px; }
.mc-card h3 { font-size: 18px; font-weight: 600; margin: 0; }
.mc-intro {
  font-size: 13px;
  color: var(--text-light);
  margin: 8px 0 20px;
  line-height: 1.6;
}
.mc-form { display: flex; flex-direction: column; gap: 14px; }
.mc-field { display: flex; flex-direction: column; gap: 5px; }
.mc-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mc-field input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  background: #f8f9fa;
  outline: none;
  transition: border-color 0.2s;
}
.mc-field input:focus {
  border-color: var(--primary);
  background: #fff;
}
.mc-msg {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
.mc-msg.error { color: #e74c3c; }
.mc-msg.success { color: #27ae60; }
.mc-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.mc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(242,121,53,0.3); }
.mc-btn:active { transform: translateY(0); }
.mc-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}
.mc-footer p { font-size: 12px; color: var(--text-light); margin: 4px 0; }
.mc-contact {
  color: var(--primary) !important;
  font-weight: 600;
  cursor: pointer;
}
.mc-contact:hover { text-decoration: underline; }

/* 锁定区块遮罩（学校详情中的录取详情表） */
.mc-locked-section {
  position: relative;
}
.mc-locked-section > *:not(.mc-locked-mask) {
  filter: blur(4px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.mc-locked-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}
.mc-locked-mask .lock-icon { font-size: 36px; margin-bottom: 8px; }
.mc-locked-mask .lock-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.mc-locked-mask .lock-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* 列表锁定提示（录取详情表/专业表） */
.mc-table-locked {
  text-align: center;
  padding: 40px 20px;
}
.mc-table-locked .lock-icon { font-size: 40px; }
.mc-table-locked .lock-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
}
.mc-table-locked .lock-btn {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .mc-badge { padding: 3px 8px; font-size: 11px; }
  .top-bar-right { gap: 6px; }
}

/* ===== 会员登记/登录 v2 表单 ===== */
/* 覆盖卡号输入框的等宽/居中/大写风格，改为常规输入 */
#mcOverlay .mc-field input,
#mcOverlay .mc-field select {
  font-family: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
#mcOverlay .mc-field select {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
}
#mcOverlay .mc-field select:focus {
  border-color: var(--primary);
  background: #fff;
}
#mcOverlay .mc-field input::placeholder { color: #aaa; }
#mcOverlay .mc-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
#mcOverlay .mc-footer a:hover { color: var(--primary-dark, #e05a1e); }

/* ==================== 面包屑站点导航 ==================== */
.cb-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:8px 18px;background:#fff;border-bottom:1px solid var(--border);font-size:13px;}
.cb-crumbs{display:flex;align-items:center;gap:6px;color:var(--text-light);}
.cb-crumbs a{color:var(--primary);text-decoration:none;font-weight:600;}
.cb-crumbs a:hover{text-decoration:underline;}
.cb-sep{color:#c8c8c8;}
.cb-cur{font-weight:700;color:var(--text);}
.cb-links{display:flex;align-items:center;gap:12px;color:var(--text-light);font-size:12px;}
.cb-links a{color:var(--primary);text-decoration:none;font-weight:600;white-space:nowrap;}
.cb-links a:hover{text-decoration:underline;}
@media(max-width:480px){.cb-nav{padding:6px 12px;font-size:12px;}.cb-links{gap:8px;}}

/* ===== 两行城市导航 ===== */
.city-nav { padding: 10px 16px 2px; font-size: 13px; }
.city-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 26px; }
.city-row + .city-row { margin-top: 6px; }
.cn-item { color: #8a8f99; text-decoration: none; white-space: nowrap; }
a.cn-item:hover { color: var(--primary, #1a6fb5); }
.cn-item.cn-cur { color: var(--primary, #1a6fb5); font-weight: 700; }
@media (max-width: 480px) {
  .city-nav { font-size: 12px; padding: 8px 12px 0; }
  .city-row { gap: 4px 8px; }
  .logo { flex-shrink: 0; }
  .logo-sub { display: none; }
  .logo-img { height: 24px; }
  .top-bar-right { gap: 4px; min-width: 0; flex-shrink: 1; }
  .year-selector { height: 30px; flex-shrink: 0; }
.top-bar { padding: 12px 9px; }
  .yr-btn { height: 30px; padding: 0 5px; font-size: 11px; }
  .mc-badge { height: 30px; padding: 0 9px; font-size: 11px; }
}

/* ===== 全站内容保护（禁选中/禁长按复制/禁图片拖拽） ===== */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}
