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

:root {
  --navy: #0A1E3C;
  --navy-2: #12294F;
  --royal: #1D4ED8;
  --royal-soft: #EBF0FE;
  --ink: #16233A;
  --ink-2: #4A5872;
  --ink-3: #8792A6;
  --line: #E3E7EF;
  --line-soft: #EEF1F6;
  --bg: #F5F6F9;
  --white: #FFFFFF;
  --gold: #C8A24A;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 54, .05), 0 1px 3px rgba(16, 30, 54, .04);
  --shadow-md: 0 4px 16px rgba(16, 30, 54, .07);
  --shadow-lg: 0 18px 48px rgba(10, 30, 60, .16);
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: #C9D8FF; }

/* ============ 登录门 ============ */
#gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 20% 0%, #1B3A6B 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 100%, #16305A 0%, transparent 55%),
    var(--navy);
  padding: 24px;
}

.gate-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: rise .5s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.brand-mark {
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}

/* 登录门品牌区 */
.gate-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-bottom: 26px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.gate-logo { height: 50px; width: auto; display: block; }
.gate-cn {
  font-size: 12px; color: var(--ink-2); letter-spacing: 2.5px; font-weight: 500;
}
.gate-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--ink-3); letter-spacing: 1px; text-align: center;
}

.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--navy) 0%, #24467E 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .5px;
  flex-shrink: 0;
}

.brand-text b { display: block; font-size: 15px; letter-spacing: 1px; font-weight: 600; color: var(--navy); }
.brand-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 1.6px; text-transform: uppercase; }

.gate-card h1 {
  font-size: 22px; font-weight: 600; letter-spacing: .3px; margin-bottom: 6px; color: var(--navy);
}
.gate-card p.sub { font-size: 13px; color: var(--ink-2); margin-bottom: 26px; }

.field-label {
  display: block; font-size: 12px; color: var(--ink-2);
  letter-spacing: .6px; margin-bottom: 8px; font-weight: 500;
}

.gate-card input[type="password"],
.gate-card input[type="text"] {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink); background: #FBFCFE;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.gate-card input:focus {
  border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); background: #fff;
}

.btn-primary {
  width: 100%; height: 46px; margin-top: 16px;
  background: var(--navy); color: #fff;
  border-radius: 10px; font-size: 15px; font-weight: 500; letter-spacing: .5px;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: #16305A; }
.btn-primary:active { transform: scale(.99); }

.gate-err {
  font-size: 12.5px; color: #C0392B; margin-top: 10px; height: 16px;
}

/* ============ 应用外壳 ============ */
#app { display: none; height: 100vh; height: 100dvh; flex-direction: column; overflow: hidden; }
#app.on { display: flex; }

.topbar {
  height: 62px; flex-shrink: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-logo { height: 28px; width: auto; display: block; }
.topbar-divider { width: 1px; height: 22px; background: var(--line); }
.topbar-title { font-size: 13.5px; color: var(--ink-2); letter-spacing: .2px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.btn-cart {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13.5px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.btn-cart:hover { border-color: #C6D0E2; box-shadow: var(--shadow-sm); }
.btn-cart .count {
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--royal); color: #fff; border-radius: 999px;
  font-size: 11.5px; line-height: 20px; text-align: center; font-weight: 600;
}
.btn-cart .count.zero { background: #DDE3ED; color: var(--ink-3); }

.btn-ghost {
  height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }

/* ============ 主体布局 ============ */
.layout { flex: 1; display: flex; min-height: 0; }

.side {
  width: 246px; flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: #FBFCFE;
  padding: 22px 14px;
  overflow-y: auto;
}

.side-head {
  font-size: 11px; letter-spacing: 1.4px; color: var(--ink-3);
  text-transform: uppercase; font-weight: 600;
  padding: 0 10px; margin-bottom: 12px;
}

.country-block { margin-bottom: 6px; }

.country-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink); font-weight: 500;
  transition: background .16s;
}
.country-btn:hover { background: var(--line-soft); }
.country-btn .tag {
  font-size: 10.5px; color: var(--ink-3); background: #EEF1F6;
  padding: 1px 7px; border-radius: 5px;
}

.school-btn {
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 2px;
  transition: background .16s, color .16s;
}
.school-btn small { font-size: 11px; color: var(--ink-3); letter-spacing: .2px; }
.school-btn:hover { background: var(--line-soft); }
.school-btn.active { background: var(--royal-soft); color: var(--royal); font-weight: 600; }
.school-btn.active small { color: #5C7BD6; }

.side-empty {
  margin: 6px 10px; padding: 12px;
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: 12px; color: var(--ink-3); line-height: 1.7;
}

/* ============ 内容区 ============ */
.main { flex: 1; min-width: 0; overflow-y: auto; }
.main-inner { max-width: 1080px; margin: 0 auto; padding: 30px 32px 120px; }

.school-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px 22px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow {
  font-size: 11.5px; letter-spacing: 1.4px; color: var(--royal);
  font-weight: 600; text-transform: uppercase; margin-bottom: 10px;
}

.school-hero h2 {
  font-size: 30px; font-weight: 600; letter-spacing: -.4px;
  color: var(--navy); line-height: 1.25; margin-bottom: 4px;
}
.school-hero .en {
  font-size: 13.5px; color: var(--ink-3); letter-spacing: .3px; margin-bottom: 14px;
}
.school-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.pill.strong { background: var(--navy); color: #fff; border-color: var(--navy); }
.school-hero .intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; max-width: 720px; }

/* 学院分组 */
.faculty-block { margin-bottom: 34px; }

.faculty-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.faculty-head h3 { font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
.faculty-head span { font-size: 12px; color: var(--ink-3); }
.faculty-head .num {
  margin-left: auto; font-size: 12px; color: var(--ink-3);
}

/* 专业卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 13px 12px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.card:hover { border-color: #CFD9EA; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card.picked { border-color: var(--royal); box-shadow: 0 0 0 1px var(--royal), 0 6px 20px rgba(29, 78, 216, .1); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

.card-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 2px; }
.card-en { font-size: 11px; color: var(--ink-3); letter-spacing: .2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.badge {
  font-size: 10.5px; padding: 1px 7px; border-radius: 5px;
  background: #F2F5FB; color: #526A96; white-space: nowrap;
}
.badge.fee { background: #FDF7EA; color: #8C6D1F; }

.card-rows { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; flex: 1; }
.row { display: flex; gap: 8px; font-size: 12px; line-height: 1.55; }
.row .k { color: var(--ink-3); flex-shrink: 0; width: 40px; }
.row .v { color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v.warn { color: #B3541E; }

.card-actions { display: flex; gap: 6px; margin-top: auto; }

.btn-pick {
  flex: 1; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  transition: all .18s;
}
.btn-pick:hover { border-color: var(--royal); color: var(--royal); background: var(--royal-soft); }
.card.picked .btn-pick { background: var(--royal); border-color: var(--royal); color: #fff; }

.btn-more {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.btn-more:hover { border-color: #CFD9EA; color: var(--ink); }

@media (max-width: 1240px) and (min-width: 901px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 抽屉 ============ */
.scrim {
  position: fixed; inset: 0; background: rgba(10, 22, 40, .36);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 390px; max-width: 92vw;
  background: #fff; z-index: 100;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.3, .9, .3, 1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }

.drawer-head {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { font-size: 16px; font-weight: 600; color: var(--navy); }
.drawer-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.btn-close {
  width: 32px; height: 32px; border-radius: 8px; font-size: 18px;
  color: var(--ink-3); display: flex; align-items: center; justify-content: center;
  transition: background .16s;
}
.btn-close:hover { background: var(--line-soft); color: var(--ink); }

.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }

.cart-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 10px; border-radius: 10px;
  border: 1px solid var(--line-soft); margin-bottom: 8px;
  background: #FCFDFF;
  animation: fadeIn .22s ease both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cart-item .idx {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: var(--royal-soft); color: var(--royal);
  font-size: 11.5px; font-weight: 600; line-height: 22px; text-align: center;
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .t { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.cart-item .s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.cart-item .rm {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  color: var(--ink-3); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item .rm:hover { background: #FDECEC; color: #C0392B; }

.cart-empty {
  text-align: center; padding: 60px 20px; color: var(--ink-3);
}
.cart-empty .ico {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: var(--line-soft); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #B6C0D2;
}
.cart-empty p { font-size: 13px; line-height: 1.9; }

.drawer-foot {
  padding: 16px 18px 20px; border-top: 1px solid var(--line);
  background: #FBFCFE;
}
.foot-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.foot-row b { color: var(--ink); font-weight: 600; }

.btn-generate {
  width: 100%; height: 48px; border-radius: 11px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 500;
  letter-spacing: .5px; transition: background .2s, transform .1s;
}
.btn-generate:hover { background: #16305A; }
.btn-generate:disabled { background: #D8DEE8; color: #96A1B4; cursor: not-allowed; }
.btn-generate:not(:disabled):active { transform: scale(.995); }

.hint { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.6; }

/* ============ 弹窗 ============ */
.modal-wrap {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 22, 40, .42); padding: 24px;
}
.modal-wrap.on { display: flex; }

.modal {
  width: 100%; max-width: 440px; background: #fff; border-radius: 18px;
  padding: 28px 26px 22px; box-shadow: var(--shadow-lg);
  animation: rise .28s ease both;
  max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.modal .lead { font-size: 12.5px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.7; }
.modal .field { margin-bottom: 16px; }
.modal input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
  background: #FBFCFE; outline: none; transition: border-color .2s, box-shadow .2s;
  color: var(--ink);
}
.modal input:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); background: #fff; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn-primary { margin-top: 0; flex: 1; }
.btn-cancel {
  flex: 1; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 14.5px; color: var(--ink-2);
}
.btn-cancel:hover { background: var(--line-soft); }

.modal-note {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px;
  background: #F5F8FE; border: 1px solid #E1E9FA;
  font-size: 11.5px; color: #526A96; line-height: 1.7;
}

/* ============ 详情弹窗 ============ */
.detail { max-width: 620px; }
.detail .d-title { font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 3px; }
.detail .d-en { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.detail .d-sec { margin-bottom: 18px; }
.detail .d-sec h4 {
  font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--royal); font-weight: 600; margin-bottom: 8px;
}
.detail .d-sec p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.detail .d-list { display: flex; flex-direction: column; gap: 6px; }
.detail .d-list li {
  list-style: none; font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  padding-left: 14px; position: relative;
}
.detail .d-list li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: #C3CEE2;
}
.detail .d-kv { display: grid; grid-template-columns: 78px 1fr; gap: 8px 12px; font-size: 13px; }
.detail .d-kv .k { color: var(--ink-3); }
.detail .d-kv .v { color: var(--ink-2); line-height: 1.7; }

/* ============ 报告 ============ */
#report { display: none; background: #fff; }

.rp-page {
  width: 210mm; min-height: 297mm; padding: 20mm 18mm 16mm;
  background: #fff; margin: 0 auto; position: relative;
  page-break-after: always; break-after: page;
  display: flex; flex-direction: column;
}
.rp-page:last-child { page-break-after: auto; break-after: auto; }

/* 封面 */
.rp-cover {
  background: linear-gradient(160deg, #0A1E3C 0%, #14305A 55%, #1B3F73 100%);
  color: #fff; padding: 0; justify-content: space-between;
  position: relative; overflow: hidden;
}
.rp-cover::after {
  content: ''; position: absolute; width: 420px; height: 420px;
  border-radius: 50%; right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(70, 120, 220, .35) 0%, transparent 70%);
}
.rp-cover-inner { padding: 22mm 18mm; min-height: 297mm; height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; }

.rp-brand { display: flex; align-items: center; gap: 11px; }
.rp-logo { height: 58px; width: auto; display: block; }

.rp-cover-mid { margin-top: 40mm; }
.rp-cover-mid .kicker {
  font-size: 10.5px; letter-spacing: 3px; color: rgba(255, 255, 255, .6);
  text-transform: uppercase; margin-bottom: 18px;
}
.rp-cover-mid h1 {
  font-size: 40px; font-weight: 600; line-height: 1.3; letter-spacing: -.5px;
  margin-bottom: 22px;
}
.rp-cover-mid .line { width: 54px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.rp-cover-mid .desc { font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 2; max-width: 130mm; }

.rp-cover-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .6px; }
.rp-cover-bot .date { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* 目录 */
.rp-h2 {
  font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: .3px;
  padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 24px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.rp-h2 span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.6px; font-weight: 400; text-transform: uppercase; }

.toc-list { display: flex; flex-direction: column; }
.toc-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px dotted #DCE2EC; font-size: 13.5px;
}
.toc-row .n {
  width: 20px; color: var(--royal); font-weight: 600; font-size: 12px; flex-shrink: 0;
}
.toc-row .t { color: var(--ink); font-weight: 500; }
.toc-row .u { font-size: 11.5px; color: var(--ink-3); margin-left: 4px; }
.toc-row .dots { flex: 1; border-bottom: 1px dotted #DFE4EE; margin: 0 4px 3px; }
.toc-row .p { color: var(--ink-3); font-size: 12px; }

.toc-summary {
  margin-top: 26px; padding: 16px 18px; border-radius: 10px;
  background: #F6F8FC; border: 1px solid #E6EBF4;
}
.toc-summary h4 { font-size: 11.5px; letter-spacing: 1.2px; color: var(--royal); text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.toc-summary .li { font-size: 12.5px; color: var(--ink-2); line-height: 2; display: flex; gap: 8px; }
.toc-summary .li b { color: var(--ink); font-weight: 600; }

/* 专业页 */
.rp-prog-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rp-prog-head .idx {
  font-size: 10.5px; letter-spacing: 2px; color: var(--royal); font-weight: 600;
  margin-bottom: 8px; text-transform: uppercase;
}
.rp-prog-head h3 { font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 2px; }
.rp-prog-head .en { font-size: 12px; color: var(--ink-3); letter-spacing: .2px; }
.rp-prog-head .school {
  font-size: 11.5px; color: var(--ink-2); margin-top: 8px;
}

.rp-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.rp-kv .cell { background: #fff; padding: 10px 13px; }
.rp-kv .cell .k { font-size: 9.5px; letter-spacing: 1.2px; color: var(--ink-3); text-transform: uppercase; margin-bottom: 3px; }
.rp-kv .cell .v { font-size: 12.5px; color: var(--ink); line-height: 1.55; font-weight: 500; }
.rp-kv .cell.wide { grid-column: span 2; }

.rp-sec { margin-bottom: 16px; }

.rp-mini { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 2px; }
.rp-mini th { background: #F0F3F9; color: #4A5872; font-weight: 500; padding: 6px 10px; text-align: left; font-size: 10.5px; letter-spacing: .4px; }
.rp-mini td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.rp-mini td.ddl { color: #B3541E; font-weight: 500; }

.rp-list { display: flex; flex-direction: column; gap: 5px; }
.rp-list .li { font-size: 12px; color: var(--ink-2); line-height: 1.75; display: flex; gap: 8px; }
.rp-list .li span { flex-shrink: 0; color: var(--ink-3); width: 46px; }
.rp-sec h4 {
  font-size: 11px; letter-spacing: 1.6px; color: var(--royal);
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.rp-sec p { font-size: 12.5px; color: var(--ink-2); line-height: 1.85; }
.rp-sec ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.rp-sec li {
  list-style: none; font-size: 11.5px; color: var(--ink-2);
  background: #F5F7FB; border-radius: 5px; padding: 4px 9px;
  line-height: 1.5;
}

.rp-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-3);
  letter-spacing: .4px;
}

/* 对比表 */
.rp-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rp-table th {
  background: var(--navy); color: #fff; font-weight: 500;
  padding: 9px 8px; text-align: left; font-size: 10.5px; letter-spacing: .4px;
}
.rp-table td {
  padding: 9px 8px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: top; line-height: 1.55;
}
.rp-table tr:nth-child(even) td { background: #FAFBFD; }
.rp-table td.name { color: var(--ink); font-weight: 500; }
.rp-table td.fee { white-space: nowrap; color: #8C6D1F; }

.rp-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 8px;
  background: #F6F8FC; border-left: 3px solid var(--royal);
  font-size: 10.5px; color: var(--ink-2); line-height: 1.9;
}

/* ============ 打印 ============ */
@page { size: A4; margin: 0; }

@media print {
  body { background: #fff; }
  #gate, #app, .drawer, .scrim, .modal-wrap, .print-bar { display: none !important; }
  #report { display: block !important; padding: 0 !important; }
  body.previewing { background: #fff; }
  .rp-page {
    width: 210mm; min-height: 297mm; margin: 0;
    box-shadow: none; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.previewing .rp-page { margin-bottom: 0; box-shadow: none; }
  .rp-cover { page-break-after: always; }
}

/* 报告预览浮条 */
.print-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(10, 30, 60, .96); color: #fff;
  padding: 12px 22px; display: none; align-items: center; justify-content: space-between;
  backdrop-filter: blur(10px);
}
.print-bar.on { display: flex; }
.print-bar .txt { font-size: 12.5px; color: rgba(255, 255, 255, .75); line-height: 1.6; }
.print-bar .txt b { color: #fff; font-weight: 500; }
.print-bar .acts { display: flex; gap: 10px; flex-shrink: 0; }
.btn-print {
  height: 40px; padding: 0 20px; border-radius: 9px;
  background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600;
}
.btn-print:hover { background: #EDF1F9; }
.btn-back {
  height: 40px; padding: 0 18px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 13.5px;
}
.btn-back:hover { background: rgba(255, 255, 255, .1); }

body.previewing { background: #3A4454; }
body.previewing #app { display: none !important; }
body.previewing #report { display: block; padding: 24px 0 90px; }
body.previewing .print-bar { display: flex; }
body.previewing .rp-page { box-shadow: 0 10px 40px rgba(0, 0, 0, .4); margin-bottom: 22px; }
body.previewing .rp-cover { margin-bottom: 22px; }

/* ============ 搜索与学院树 ============ */
.side-search { padding: 0 10px 12px; }
.side-search input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.side-search input::placeholder { color: #A9B3C4; }
.side-search input:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }

.fac-list {
  padding: 2px 0 8px 10px; margin: 2px 0 4px 10px;
  border-left: 1px solid var(--line);
}
.fac-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 9px; border-radius: 7px;
  font-size: 12.5px; color: var(--ink-2); text-align: left;
  transition: background .16s, color .16s;
}
.fac-btn em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.fac-btn:hover { background: var(--line-soft); color: var(--ink); }
.fac-btn.active { color: var(--royal); background: var(--royal-soft); font-weight: 600; }
.fac-btn.active em { color: #5C7BD6; }

/* ============ 首页欢迎 ============ */
.welcome { padding: 26px 0 30px; max-width: 760px; }

.w-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(70, 120, 220, .38) 0%, transparent 60%),
    linear-gradient(150deg, #0A1E3C 0%, #14305A 60%, #1B3F73 100%);
  border-radius: 18px;
  padding: 44px 46px 46px;
  margin-bottom: 30px;
  color: #fff;
}
.w-eyebrow {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--royal); font-weight: 600;
}
.w-hero-logo {
  position: absolute; right: 40px; top: 38px;
  height: 50px; width: auto; opacity: .95;
}
.w-hero .w-eyebrow {
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
}
.w-hero h1 {
  font-size: 38px; line-height: 1.35; letter-spacing: -.5px;
  color: #fff; font-weight: 600; margin-bottom: 14px; position: relative; z-index: 1;
}
.w-hero .w-lead {
  color: rgba(255, 255, 255, .74); max-width: 520px; margin-bottom: 0;
}
.w-hero::after {
  content: ''; display: block; position: static;
  width: 54px; height: 3px; background: var(--gold);
  margin-top: 22px; border-radius: 2px;
}

.w-steps { display: flex; gap: 10px; margin-bottom: 40px; }
.w-step {
  flex: 1; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.w-step b { display: block; font-size: 11px; color: var(--royal); letter-spacing: 1.2px; margin-bottom: 6px; }
.w-step span { font-size: 13px; color: var(--ink); line-height: 1.55; }

.w-sub { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.w-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.w-card {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.w-card:hover { border-color: var(--royal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.w-flag { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 8px; }
.w-name { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.w-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.w-num { font-size: 12px; color: var(--ink-2); }
.w-go { margin-top: 14px; font-size: 12.5px; color: var(--royal); font-weight: 500; }
.w-card.ghost { background: transparent; border-style: dashed; }
.w-card.ghost .w-name { color: var(--ink-3); font-size: 15px; font-weight: 500; }
.w-foot { margin-top: 22px; font-size: 11.5px; color: var(--ink-3); line-height: 1.9; }

/* ============ 地区选择 ============ */
.crumb {
  background: none; border: none; padding: 0;
  font-size: 11.5px; letter-spacing: 1.2px; color: var(--royal);
  font-weight: 600; text-transform: uppercase; cursor: pointer;
}
.crumb:hover { text-decoration: underline; }

.region-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.region-card {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.region-card:hover { border-color: var(--royal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.region-card .r-name { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.region-card .r-en { font-size: 11.5px; color: var(--ink-3); letter-spacing: .6px; margin-bottom: 12px; }
.region-card .r-num { font-size: 12.5px; color: var(--ink-2); }
.region-card .sc-go { margin-top: 16px; font-size: 12.5px; color: var(--royal); font-weight: 500; }
.region-card.ghost { background: transparent; border-style: dashed; }
.region-card.ghost .r-name { color: var(--ink-3); font-size: 16px; font-weight: 500; }

/* ============ 地区视图（院校列表） ============ */
.region-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 30px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.region-hero .hero-eyebrow { margin-bottom: 10px; }
.region-hero h2 { font-size: 30px; letter-spacing: -.5px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.region-hero .en { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.region-hero .meta { display: flex; gap: 8px; margin-bottom: 12px; }
.region-hero .intro { font-size: 13px; color: var(--ink-2); line-height: 1.9; }

.school-grid { grid-template-columns: repeat(3, 1fr); }
.school-card {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 15px 13px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.school-card:hover { border-color: var(--royal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.school-card .sc-name { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.school-card .sc-en { font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-bottom: 9px; }
.school-card .sc-meta { margin-bottom: 9px; }
.school-card .sc-num { font-size: 12px; color: var(--ink-2); }
.school-card .sc-go { margin-top: 10px; font-size: 12px; color: var(--royal); font-weight: 500; }

.school-hero .crumb { display: inline-block; margin-bottom: 8px; }

.country-btn.open span:first-child { color: var(--navy); font-weight: 600; }

/* ============ 移动端操作条 ============ */
.mbar { display: none; }

/* ============ 报告：时间规划 ============ */
.rp-tip { font-size: 12px; color: var(--ink-2); line-height: 1.85; margin: -8px 0 16px; }
.rp-mini.big { font-size: 12px; }
.rp-mini.big th { font-size: 10.5px; padding: 8px 10px; }
.rp-mini.big td { padding: 9px 10px; }
.rp-mini.big td.name { color: var(--ink); font-weight: 500; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .side { display: none; }
  .grid { grid-template-columns: 1fr; }
  .main-inner { padding: 22px 18px 100px; }
  .school-hero { padding: 20px 18px 18px; border-radius: 13px; }
  .school-hero h2 { font-size: 24px; }
  .topbar { padding: 0 14px; }
  .topbar-title { display: none; }
  .topbar-divider { display: none; }

  .welcome h1 { font-size: 26px; letter-spacing: -.5px; }
  .w-hero { padding: 32px 24px 36px; border-radius: 14px; }
  .w-hero-logo { height: 36px; right: 22px; top: 24px; }
  .w-steps { flex-direction: column; }
  .region-cards { grid-template-columns: 1fr; }
  .school-grid { grid-template-columns: 1fr; }

  .mbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
    background: var(--navy); border-radius: 14px; padding: 11px 14px;
    align-items: center; justify-content: space-between;
    box-shadow: 0 12px 32px rgba(10, 30, 60, .32);
  }
  .mbar-info { color: #fff; font-size: 12.5px; }
  .mbar-info b { font-size: 18px; margin-right: 4px; }
  .mbar-info span { opacity: .65; }
  .mbar-btn {
    height: 36px; padding: 0 16px; border-radius: 9px;
    background: #fff; color: var(--navy); font-size: 13px; font-weight: 600;
  }
}

/* ============ 方案列表 ============ */
.plan-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #FBFCFE; transition: border-color .2s, box-shadow .2s;
}
.plan-row:hover { border-color: #C6D0E2; box-shadow: var(--shadow-sm); }
.plan-row.cur { border-color: var(--royal); background: #F5F8FE; }

.plan-info { min-width: 0; }
.plan-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.plan-name .plan-cur {
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: var(--royal); padding: 1px 7px; border-radius: 999px;
}
.plan-name .plan-gen {
  font-size: 10.5px; font-weight: 500; color: #1E7A46;
  background: #E4F5EB; padding: 1px 7px; border-radius: 999px;
}
.plan-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.plan-acts { display: flex; gap: 6px; flex-shrink: 0; }
.plan-btn {
  height: 30px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-2);
  transition: background .16s, color .16s, border-color .16s;
}
.plan-btn:hover { background: var(--line-soft); color: var(--ink); }
.plan-btn.use { border-color: var(--royal); color: var(--royal); font-weight: 500; }
.plan-btn.use:hover { background: #EDF2FE; }
.plan-btn.danger:hover { background: #FDEEEE; border-color: #EBC8C8; color: #B4413E; }

.plan-empty {
  text-align: center; padding: 26px 10px; color: var(--ink-3); font-size: 13px;
  border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 16px;
}

.plan-new { width: 100%; height: 46px; border-radius: 10px; font-size: 14.5px; }

@media (max-width: 720px) {
  .plan-row { flex-direction: column; align-items: stretch; }
  .plan-acts { justify-content: flex-end; }
}

/* ============ 一键配齐 ============ */
.auto-regs { display: flex; gap: 8px; flex-wrap: wrap; }
.auto-reg {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: #FBFCFE; font-size: 13.5px; color: var(--ink); cursor: pointer;
  transition: border-color .16s, background .16s;
}
.auto-reg:hover { border-color: #C6D0E2; }
.auto-reg input { width: auto; height: auto; margin: 0; accent-color: var(--royal); }

.modal select {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
  background: #FBFCFE; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.modal select:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); background: #fff; }

.plan-actions2 { display: flex; gap: 10px; margin-bottom: 16px; }
.plan-actions2 button { flex: 1; height: 46px; border-radius: 10px; font-size: 14.5px; }

.auto-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============ 大类/小类两级选择 ============ */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.sub-wrap { display: flex; flex-wrap: wrap; gap: 8px; max-height: 210px; overflow-y: auto; padding: 2px; }
.sub-chip { background: #F4F7FD; }

/* ============ 回国秋招路径 ============ */
.career-sec { background: #F6F9FE; border: 1px solid #DCE6F6; border-radius: 12px; padding: 14px 16px; }
.career-sec h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.career-sec h4 .c-tag {
  font-size: 11px; font-weight: 500; color: var(--royal);
  background: #E8EFFD; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.c-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.c-row .k { flex-shrink: 0; font-size: 12.5px; color: var(--ink-3); width: 34px; line-height: 26px; }
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tags span { font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.c-tags .c-ind { background: #E8EFFD; color: var(--royal); font-weight: 500; }
.c-tags .c-role { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.c-com { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed #D9E4F5; align-items: baseline; }
.c-com .g { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--ink); width: 92px; }
.c-com .names { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.c-tips { margin: 10px 0 0; padding: 0; list-style: none; }
.c-tips li {
  position: relative; padding-left: 16px; margin-bottom: 6px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
}
.c-tips li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--royal); }
