/* ===== CSS Variables ===== */
:root {
  --bg: #faf8f5;
  --bg2: #ffffff;
  --bg3: #f5f0ea;
  --ink: #2c2825;
  --muted: #7a7268;
  --rule: #e8e0d5;
  --accent: #c75b39;
  --accent-light: #e8a08a;
  --accent2: #2d7a6e;
  --accent2-light: #6fb5a8;
  --accent3: #d4a574;
  --success: #4a8c5f;
  --warning: #d49435;
  --danger: #c0492f;
  --info: #3b7ea1;
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Top Bar ===== */
.top-bar {
  height: var(--topbar-h); background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  background: none; border: none; font-size: 20px;
  cursor: pointer; padding: 4px 8px; color: var(--ink);
}
.app-title { font-size: 16px; font-weight: 700; color: var(--accent); }
.top-bar-right { display: flex; align-items: center; gap: 10px; }
.user-role-badge {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; color: #fff;
}
.role-student { background: var(--accent2); }
.role-parent { background: var(--accent); }
.role-teacher { background: var(--info); }
.user-name { font-size: 13px; color: var(--ink); font-weight: 500; }

/* ===== Layout ===== */
.layout { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
  width: var(--sidebar-w); background: var(--bg2);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
  z-index: 90; transition: transform 0.3s;
}
.sidebar:not(.open) { transform: translateX(-100%); }
@media (min-width: 769px) { .sidebar { transform: none; position: sticky; top: var(--topbar-h); } }
.nav-menu { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  cursor: pointer; color: var(--muted); font-size: 13px;
  transition: all 0.2s; margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg3); color: var(--ink); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-label { flex: 1; }
.nav-badge {
  background: var(--danger); color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 8px;
}
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--rule); }
.version { font-size: 11px; color: var(--muted); }
.overlay {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); z-index: 80;
}
@media (min-width: 769px) { .overlay { display: none; } }

.main-content {
  flex: 1; padding: 24px; max-width: 1200px;
  margin: 0 auto; width: 100%;
}

/* ===== Pages ===== */
.page { animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--ink); }
.section-title { font-size: 16px; font-weight: 600; margin: 24px 0 12px; color: var(--accent2); }

/* ===== Login ===== */
.page-login { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.login-card {
  background: var(--bg2); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); max-width: 400px; width: 100%;
}
.login-card h2 { font-size: 20px; margin-bottom: 8px; color: var(--accent); }
.login-hint { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.register-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.register-form h3 { font-size: 16px; margin-bottom: 12px; color: var(--accent2); }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--rule);
  border-radius: var(--radius); font-size: 14px; background: var(--bg);
  color: var(--ink); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-text, .btn-action {
  border: none; border-radius: var(--radius); cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; padding: 8px 18px; }
.btn-primary:hover { background: #a04428; }
.btn-secondary { background: var(--bg3); color: var(--ink); padding: 8px 18px; }
.btn-secondary:hover { background: var(--rule); }
.btn-text { background: none; color: var(--accent); padding: 4px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-action {
  background: var(--bg3); color: var(--accent2); padding: 10px 20px;
  border: 1px solid var(--rule);
}
.btn-action:hover { background: var(--bg2); border-color: var(--accent2); box-shadow: var(--shadow); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg2); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== Dashboard ===== */
.dashboard-section { background: var(--bg2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.assessment-progress { display: flex; flex-direction: column; gap: 12px; }
.progress-item {}
.progress-info { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.progress-name { font-weight: 500; }
.progress-status { font-size: 11px; padding: 1px 8px; border-radius: 8px; }
.progress-status.completed { background: var(--success); color: #fff; }
.progress-status.in-progress { background: var(--warning); color: #fff; }
.progress-status.pending { background: var(--bg3); color: var(--muted); }
.progress-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Assessment ===== */
.assessment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.assessment-card {
  background: var(--bg2); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color 0.2s;
}
.assessment-card.completed { border-color: var(--success); }
.assessment-card.in-progress { border-color: var(--warning); }
.assessment-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.assessment-card-title { font-size: 16px; font-weight: 700; }
.assessment-card-desc { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.assessment-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.assessment-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Question */
.question-container { max-width: 700px; margin: 0 auto; }
.question-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.question-progress-bar { flex: 1; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.question-progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.question-text { font-size: 18px; font-weight: 600; margin: 24px 0; line-height: 1.5; }
.question-options { display: flex; flex-direction: column; gap: 8px; }
.option-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; background: var(--bg2);
}
.option-item:hover { border-color: var(--accent-light); background: var(--bg3); }
.option-item.selected { border-color: var(--accent); background: #fdf6f0; }
.option-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rule);
  flex-shrink: 0; position: relative; transition: border-color 0.2s;
}
.option-item.selected .option-radio { border-color: var(--accent); }
.option-item.selected .option-radio::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.option-text { font-size: 14px; }
.question-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ===== Profile ===== */
.profile-header {
  background: linear-gradient(135deg, var(--accent), #a04428);
  color: #fff; padding: 28px; border-radius: var(--radius-lg); margin-bottom: 20px;
}
.profile-type-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 14px; border-radius: 16px; font-size: 13px; margin-bottom: 8px; }
.profile-name { font-size: 24px; font-weight: 700; }
.profile-summary { font-size: 14px; opacity: 0.9; margin-top: 8px; }
.profile-dimensions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dimension-card {
  background: var(--bg2); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
}
.dimension-card h3 { font-size: 15px; color: var(--accent2); margin-bottom: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.dimension-score { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dimension-score-label { font-size: 13px; color: var(--muted); min-width: 80px; }
.dimension-score-bar { flex: 1; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.dimension-score-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.dimension-score-value { font-size: 13px; font-weight: 700; min-width: 30px; text-align: right; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--rule); margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg2); }
th { background: var(--accent); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }

/* ===== Alerts & Toasts ===== */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-top: 10px; }
.alert-error { background: #fef5f3; color: var(--danger); border-left: 3px solid var(--danger); }
.alert-success { background: #f0f8f5; color: var(--success); border-left: 3px solid var(--success); }
.alert-info { background: #f0f6fa; color: var(--info); border-left: 3px solid var(--info); }
.toast-container { position: fixed; top: 70px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 18px; border-radius: var(--radius); color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); animation: slideIn 0.3s; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

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

/* ===== Settings ===== */
.settings-section { background: var(--bg2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.settings-section h3 { font-size: 15px; color: var(--accent2); margin-bottom: 12px; }
.settings-section p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.settings-section button { margin-right: 10px; margin-bottom: 10px; }

/* ===== Students ===== */
.student-card {
  background: var(--bg2); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px; cursor: pointer; transition: box-shadow 0.2s;
}
.student-card:hover { box-shadow: var(--shadow-lg); }
.student-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.student-info { flex: 1; }
.student-name { font-size: 14px; font-weight: 600; }
.student-meta { font-size: 12px; color: var(--muted); }
.student-status { font-size: 11px; padding: 2px 8px; border-radius: 8px; }

/* ===== Recommendation ===== */
.recommendation-view { max-width: 900px; margin: 0 auto; }
.loading-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.rec-summary-bar { background: var(--bg2); border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; }
.rec-summary-info { display: flex; flex-direction: column; gap: 4px; }
.rec-total { font-size: 16px; font-weight: 700; color: var(--ink); }
.rec-majors { font-size: 12px; color: var(--muted); }
.recommended-majors-hint { font-size: 13px; color: var(--accent2); margin-top: 8px; }

.stratum-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.stratum-tabs button { padding: 6px 16px; border: 1px solid var(--rule); border-radius: 20px; background: var(--bg2); cursor: pointer; font-size: 13px; color: var(--muted); transition: all 0.2s; }
.stratum-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.stratum-tabs button.stratum-tab-reach.active { background: #e74c3c; border-color: #e74c3c; }
.stratum-tabs button.stratum-tab-target.active { background: #27ae60; border-color: #27ae60; }
.stratum-tabs button.stratum-tab-safety.active { background: #3498db; border-color: #3498db; }

.rec-filters { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.filter-select { padding: 6px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg2); font-size: 13px; color: var(--ink); cursor: pointer; }

.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-card { background: var(--bg2); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.2s; border-left: 4px solid transparent; }
.rec-card:hover { box-shadow: var(--shadow-lg); }
.rec-card.stratum-reach { border-left-color: #e74c3c; }
.rec-card.stratum-target { border-left-color: #27ae60; }
.rec-card.stratum-safety { border-left-color: #3498db; }

.rec-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; }
.rec-card-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.rec-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rec-card-info { flex: 1; min-width: 0; }
.rec-card-name { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rec-tier-badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent2); color: #fff; font-weight: 400; }
.rec-nature-badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--bg3); color: var(--muted); font-weight: 400; }
.rec-card-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.rec-match-count { color: var(--accent2); font-weight: 500; }

.rec-card-right { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.rec-score-circle { width: 48px; height: 48px; border-radius: 50%; border: 3px solid; display: flex; align-items: center; justify-content: center; }
.rec-score-value { font-size: 18px; font-weight: 700; }
.rec-stratum-label { font-size: 11px; padding: 1px 8px; border-radius: 8px; font-weight: 500; }
.rec-stratum-label.stratum-reach { background: #fde8e8; color: #e74c3c; }
.rec-stratum-label.stratum-target { background: #e8f8ee; color: #27ae60; }
.rec-stratum-label.stratum-safety { background: #e8f0fb; color: #3498db; }

.rec-card-detail { padding: 0 18px 18px; border-top: 1px solid var(--rule); margin-top: 0; padding-top: 14px; }
.score-breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.score-item-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.score-item-label { font-size: 12px; color: var(--muted); }
.score-item-value { font-size: 14px; font-weight: 700; }
.score-item-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.score-item-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

.matched-majors { margin-bottom: 14px; }
.matched-majors h4 { font-size: 13px; color: var(--accent2); margin-bottom: 8px; }
.major-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.major-tag { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--bg3); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.major-tag.major-advantage { background: #fde8e8; color: #c0392b; }
.major-tag.major-featured { background: #fef3e8; color: #d49435; }
.major-flag { font-size: 10px; opacity: 0.8; }

.uni-description { margin-bottom: 14px; }
.uni-description h4 { font-size: 13px; color: var(--accent2); margin-bottom: 6px; }
.uni-description p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.uni-stats { display: flex; gap: 20px; flex-wrap: wrap; padding: 12px; background: var(--bg3); border-radius: var(--radius); margin-bottom: 14px; }
.uni-stat-item { display: flex; flex-direction: column; align-items: center; }
.uni-stat-item .stat-label { font-size: 11px; color: var(--muted); }
.uni-stat-item .stat-val { font-size: 16px; font-weight: 700; color: var(--accent2); }

.stratum-description { font-size: 12px; padding: 8px 12px; border-radius: var(--radius); margin-top: 8px; }
.stratum-description.stratum-reach { background: #fde8e8; color: #c0392b; }
.stratum-description.stratum-target { background: #e8f8ee; color: #27ae60; }
.stratum-description.stratum-safety { background: #e8f0fb; color: #2980b9; }

.empty-state.small { padding: 30px 20px; }
.empty-state.small p { font-size: 13px; }

/* ===== Planning ===== */
.planning-view { max-width: 900px; margin: 0 auto; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 三轨对比卡 */
.track-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.track-card { position: relative; background: var(--bg2); border-radius: var(--radius-lg); padding: 20px 16px; box-shadow: var(--shadow); cursor: pointer; transition: all 0.25s; border: 2px solid transparent; text-align: center; }
.track-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.track-card.active { border-color: var(--accent); background: #fff8f5; }
.track-card.recommended { border-color: var(--accent2); }
.track-recommended-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent2); color: #fff; font-size: 11px; padding: 2px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.track-icon { font-size: 32px; margin-bottom: 8px; }
.track-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.track-score { font-size: 32px; font-weight: 800; line-height: 1; }
.track-score-label { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.track-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0; text-align: left; min-height: 54px; }
.track-target { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 10px; border-top: 1px solid var(--rule); }
.track-target-label { font-size: 11px; color: var(--muted); }
.track-target-value { font-size: 13px; font-weight: 600; color: var(--accent2); }

/* 轨道详情 */
.track-detail { background: var(--bg2); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.detail-section { margin-bottom: 18px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }

/* 标签列表 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 14px; font-weight: 500; }
.tag-blue { background: #e8f0fb; color: #2980b9; }
.tag-green { background: #e8f8ee; color: #27ae60; }
.tag-purple { background: #f0e8fb; color: #8e44ad; }
.tag-orange { background: #fef3e8; color: #d49435; }

/* 目标院校 */
.target-schools { display: flex; flex-direction: column; gap: 8px; }
.target-school-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg3); border-radius: var(--radius); }
.school-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--accent2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.school-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.school-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.school-meta { font-size: 12px; color: var(--muted); }
.school-match-score { font-size: 18px; font-weight: 800; flex-shrink: 0; }

/* 建议与风险列表 */
.suggestion-list, .risk-list { list-style: none; padding: 0; }
.suggestion-list li, .risk-list li { position: relative; padding: 6px 0 6px 20px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.suggestion-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.risk-list li::before { content: '!'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* 通用规划区块 */
.plan-section { background: var(--bg2); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }

/* 职业方向 */
.career-direction { display: flex; flex-direction: column; gap: 14px; }
.career-growth-type, .career-domains, .career-majors { display: flex; align-items: flex-start; gap: 12px; }
.career-label { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 80px; flex-shrink: 0; padding-top: 4px; }
.career-value { font-size: 15px; font-weight: 700; color: var(--accent); }

/* 里程碑 */
.milestones { display: flex; flex-direction: column; gap: 0; }
.milestone-item { display: flex; gap: 16px; padding-bottom: 20px; position: relative; }
.milestone-item:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: 0; width: 2px; background: var(--rule); }
.milestone-marker { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; border: 2px solid var(--rule); z-index: 1; }
.milestone-marker.active { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.milestone-content { flex: 1; }
.milestone-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.milestone-phase { font-size: 14px; font-weight: 600; color: var(--ink); }
.milestone-status { font-size: 11px; padding: 2px 10px; border-radius: 10px; background: var(--bg3); color: var(--muted); }
.milestone-status.active { background: #e8f8ee; color: var(--success); }
.milestone-tasks { list-style: none; padding: 0; }
.milestone-tasks li { position: relative; padding: 4px 0 4px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.milestone-tasks li::before { content: '•'; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

/* 选科建议 */
.subject-advice { display: flex; flex-direction: column; gap: 14px; }
.advice-combination { display: flex; align-items: center; gap: 12px; }
.advice-label { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 80px; flex-shrink: 0; }
.advice-combination-value { font-size: 16px; font-weight: 700; color: var(--accent2); padding: 4px 16px; background: #e8f5f3; border-radius: var(--radius); }
.advice-rationale { font-size: 13px; color: var(--muted); line-height: 1.6; }
.advice-subjects { display: flex; align-items: flex-start; gap: 12px; }
.advice-tips { list-style: none; padding: 0; }
.advice-tips li { position: relative; padding: 4px 0 4px 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.advice-tips li::before { content: '💡'; position: absolute; left: 0; font-size: 12px; }

/* 提升建议 */
.improvements { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.improvement-card { background: var(--bg3); border-radius: var(--radius-lg); padding: 16px 18px; border-left: 4px solid var(--muted); }
.improvement-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.improvement-title { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.improvement-level { font-size: 11px; padding: 2px 10px; border-radius: 10px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.improvement-desc { font-size: 13px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.improvement-dim { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.improvement-actions { list-style: none; padding: 0; }
.improvement-actions li { position: relative; padding: 3px 0 3px 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.improvement-actions li::before { content: '→'; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-dimensions { grid-template-columns: 1fr; }
  .assessment-list { grid-template-columns: 1fr; }
  .track-cards { grid-template-columns: 1fr; }
  .improvements { grid-template-columns: 1fr; }
}
