/* ============================================================
   ApplyForYourFuture · 留学申请指南
   ============================================================ */

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --panel: #111114;
  --panel-2: #17171b;
  --gold: #c3bdb1;
  --gold-soft: #ece6da;
  --ivory: #f2ecdf;
  --text: #ece8de;
  --muted: #948e84;
  --dim: #6a655c;
  --line: rgba(195, 189, 177, 0.16);
  --line-soft: rgba(242, 236, 223, 0.07);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun",
    "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(70rem 40rem at 50% -12%, rgba(200, 169, 106, 0.10), transparent 60%),
    radial-gradient(50rem 30rem at 88% 8%, rgba(200, 169, 106, 0.05), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--gold); color: #0a0a0b; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* ---------------- topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.topbar.stuck {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.brand:hover .brand-mark { color: var(--ivory); border-color: var(--gold); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { font-family: var(--sans); font-size: 0.96rem; font-weight: 500; letter-spacing: 0.02em; }
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}

.top-cta {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.top-cta:hover { background: var(--gold); color: #0a0a0b; border-color: var(--gold); }

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.topnav a { transition: color 0.2s ease; }
.topnav a:hover { color: var(--ivory); }

@media (max-width: 760px) {
  .topnav { display: none; }
}

/* ---------------- layout ---------------- */

.app {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 200px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  margin-top: 96px;
  padding: 26px clamp(18px, 4vw, 44px) 40px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer p { font-size: 0.78rem; color: var(--dim); letter-spacing: 0.02em; }
.footer-fine { margin-top: 6px; opacity: 0.75; }

/* ---------------- shared ---------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.page-head { padding: 46px 0 34px; }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  margin-top: 16px;
}
.page-head p { color: var(--muted); margin-top: 10px; max-width: 44rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.back::before { content: "←"; font-size: 0.9rem; }
.back:hover { color: var(--gold); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-gold:hover {
  background: var(--gold);
  color: #0a0a0b;
  box-shadow: 0 0 40px -10px rgba(200, 169, 106, 0.55);
}

.btn-solid {
  background: var(--gold);
  color: #0a0a0b;
  border-color: var(--gold);
}
.btn-solid:hover { background: var(--gold-soft); color: #0a0a0b; }

.fade > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fade > *:nth-child(2) { animation-delay: 0.06s; }
.fade > *:nth-child(3) { animation-delay: 0.12s; }
.fade > *:nth-child(4) { animation-delay: 0.18s; }
.fade > *:nth-child(5) { animation-delay: 0.24s; }

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

/* ---------------- start ---------------- */

.start {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0 90px;
}

.start-inner { max-width: 760px; }

.seal {
  width: 118px;
  height: 118px;
  margin: 0 auto 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--gold);
}
.seal::before,
.seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  opacity: 0.55;
}
.seal::before { inset: 8px; }
.seal::after { inset: -10px; border-style: dashed; opacity: 0.25; }
.seal svg { width: 52px; height: 52px; }

.start h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1.14;
}
.start h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.3em;
  margin-top: 22px;
  text-transform: uppercase;
  font-family: var(--sans);
}
.start p {
  margin: 26px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}
.start .btn-gold { margin-top: 44px; padding: 17px 52px; font-size: 0.86rem; }

.start-meta {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.start-meta span { display: inline-flex; align-items: center; gap: 9px; }
.start-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------- schools grid ---------------- */

.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 12px;
}

.school-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px 30px;
  background: var(--bg);
  transition: background-color 0.35s ease;
  overflow: hidden;
}
.school-card:hover { background: var(--panel); }
.school-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 12rem at 20% 0%, rgba(200, 169, 106, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.school-card:hover::after { opacity: 1; }

.crest {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.school-card:hover .crest { transform: scale(1.06); }

.school-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}
.school-en {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.school-motto {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.85;
}
.school-city {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.school-card .arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.school-card:hover .arrow { opacity: 1; transform: translate(4px, -50%); }

/* ---------------- school hero ---------------- */

.school-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: center;
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line-soft);
}
.school-hero .crest { width: 160px; height: 160px; }
.school-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin-top: 10px;
}
.school-hero .motto {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}
.school-hero .motto-zh { display: block; margin-top: 4px; font-style: normal; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------------- level / campus ---------------- */

.step-title {
  margin: 46px 0 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }

.choice {
  position: relative;
  display: block;
  padding: 34px 28px;
  background: var(--bg);
  text-align: left;
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.choice:hover { background: var(--panel); }
.choice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}
.choice:hover::before { transform: scaleY(1); }

.choice-no {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
}
.choice h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.choice p { margin-top: 9px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------------- programs ---------------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 6px 2px 14px;
  margin-top: 34px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  letter-spacing: 0.02em;
}
.search-bar input::placeholder { color: var(--dim); }

.faculty { border-bottom: 1px solid var(--line-soft); }
.faculty-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 2px 12px;
}
.faculty-head h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.faculty-head span { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--dim); }

.prog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }

.prog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  background: var(--bg);
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.prog:hover { background: var(--panel); }
.prog:hover .prog-arrow { opacity: 1; transform: none; }

.prog-name { font-size: 0.92rem; color: var(--text); }
.prog-en { display: block; margin-top: 3px; font-size: 0.68rem; color: var(--dim); letter-spacing: 0.04em; }
.prog-side { display: flex; align-items: center; gap: 14px; flex: none; }
.prog-dur { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }
.prog-arrow { color: var(--gold); opacity: 0; transform: translateX(-4px); transition: 0.25s ease; font-size: 0.9rem; }

.empty { padding: 60px 0; color: var(--muted); text-align: center; }

/* ---------------- result ---------------- */

.result { padding-top: 34px; }

.result-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.result-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-top: 12px;
}
.result-head .en { margin-top: 8px; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.result-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.result-crest { width: 74px; height: 74px; object-fit: contain; opacity: 0.9; }

.block { padding: 38px 0; border-bottom: 1px solid var(--line-soft); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-head h2 { font-family: var(--serif); font-size: 1.18rem; letter-spacing: 0.08em; }
.block-head span { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; }

/* tiers */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.tier {
  position: relative;
  padding: 26px 24px;
  background: var(--bg);
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.tier:hover { background: var(--panel); }
.tier[aria-pressed="true"] { background: var(--panel-2); }
.tier[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.tier h3 { font-family: var(--serif); font-size: 1.22rem; letter-spacing: 0.06em; }
.tier .tier-sub { margin-top: 6px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.tier .tier-price {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.tier .tier-price small { font-size: 0.66rem; color: var(--muted); margin-left: 6px; letter-spacing: 0.08em; }

/* budget */

.budget {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.budget-total {
  padding: 34px 32px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.budget-total .label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); }
.budget-total .amount {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1.1;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.budget-total .cny { margin-top: 10px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

.budget-split { padding: 30px 32px; background: var(--bg); display: grid; gap: 13px; align-content: center; }
.split-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; font-size: 0.78rem; }
.split-row .bar { height: 2px; background: var(--line-soft); position: relative; }
.split-row .bar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); opacity: 0.7; }
.split-row .val { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* requirements */

.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 46px; }
.req-item h3 {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.req-item p, .req-item li { font-size: 0.88rem; color: var(--text); line-height: 1.8; }
.req-item li { position: relative; padding-left: 16px; }
.req-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
}
.req-note { margin-top: 26px; font-size: 0.72rem; color: var(--dim); letter-spacing: 0.04em; }

/* agent */

.agent-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(200, 169, 106, 0.07), transparent 55%), var(--panel);
}
.agent-box h3 { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; }
.agent-box p { margin-top: 6px; font-size: 0.76rem; color: var(--muted); max-width: 34rem; }

.apply-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0 calc(-1 * clamp(18px, 4vw, 44px));
  padding: 18px clamp(18px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(10, 10, 11, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.apply-bar .hint { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; }
.apply-bar .hint b { color: var(--gold); font-weight: 500; }

/* ---------------- overlay / sheet ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.25s ease both;
}
.overlay[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 38px clamp(22px, 5vw, 44px);
  animation: sheet 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes sheet {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.sheet h2 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.03em; }
.sheet .sub { margin-top: 10px; color: var(--muted); font-size: 0.84rem; }
.sheet-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s ease;
}
.sheet-close:hover { color: var(--gold); border-color: var(--gold); }

.apply-options { display: grid; gap: 1px; background: var(--line-soft); margin-top: 26px; }
.apply-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px 22px;
  background: var(--bg);
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease;
}
.apply-option:hover { background: var(--panel); }
.apply-option h3 { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.03em; }
.apply-option p { margin-top: 5px; font-size: 0.76rem; color: var(--muted); }
.apply-option .mark { color: var(--gold); font-size: 1.1rem; }

.steps-list { margin-top: 24px; display: grid; gap: 18px; }
.step-row { display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.step-row .n {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.step-row h4 { font-size: 0.92rem; font-weight: 500; }
.step-row p { margin-top: 5px; font-size: 0.8rem; color: var(--muted); line-height: 1.75; }

.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.wechat-box {
  margin-top: 24px;
  padding: 26px;
  border: 1px dashed var(--line);
  text-align: center;
  background: rgba(200, 169, 106, 0.04);
}
.wechat-label { font-size: 0.7rem; letter-spacing: 0.22em; color: var(--muted); }
.wechat-id {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  user-select: all;
  word-break: break-all;
}
.copy-btn { margin-top: 16px; padding: 9px 22px; font-size: 0.74rem; letter-spacing: 0.12em; }

.agents-list { margin-top: 20px; display: grid; gap: 1px; background: var(--line-soft); }
.agent-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  background: var(--bg);
  font-size: 0.84rem;
}
.agent-row span { color: var(--muted); font-size: 0.78rem; }

.sheet-note { margin-top: 20px; font-size: 0.72rem; color: var(--dim); line-height: 1.8; }

.status {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(200, 169, 106, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .schools-grid { grid-template-columns: 1fr; }
  .school-hero { grid-template-columns: 110px 1fr; gap: 26px; padding: 40px 0 34px; }
  .school-hero .crest { width: 110px; height: 110px; }
  .prog-list { grid-template-columns: 1fr; }
  .budget { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; gap: 26px; }
  .tiers { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .start { min-height: calc(100vh - 140px); padding: 40px 0 60px; }
  .seal { width: 92px; height: 92px; margin-bottom: 28px; }
  .seal svg { width: 40px; height: 40px; }
  .school-card { grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 22px; }
  .crest { width: 64px; height: 64px; }
  .school-card h3 { font-size: 1.1rem; }
  .school-card .arrow { display: none; }
  .apply-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .apply-bar .hint { display: none; }
  .result-head { grid-template-columns: 1fr; }
  .result-crest { display: none; }
  .budget-total, .budget-split { padding: 24px 20px; }
  .split-row { grid-template-columns: 62px 1fr auto; }
  .sheet { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v2 追加：校徽条、卡片编号、移民标记、筛选
   ============================================================ */

.crest-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  margin-top: 54px;
  opacity: 0.75;
  flex-wrap: wrap;
}
.mini-crest {
  width: clamp(26px, 3.4vw, 38px);
  height: clamp(26px, 3.4vw, 38px);
  object-fit: contain;
  filter: grayscale(0.35) brightness(0.95);
  opacity: 0.8;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.mini-crest:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.card-no {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  transition: color 0.35s ease;
  pointer-events: none;
}
.school-card:hover .card-no { color: var(--gold); }

.school-card { border-top: 1px solid transparent; }
.school-card:hover { border-top-color: rgba(200, 169, 106, 0.4); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip-filter {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip-filter:hover { color: var(--gold); border-color: var(--gold); }
.chip-filter.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0b;
  font-weight: 600;
}

.filter-hint {
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.filter-hint b { color: var(--gold); font-weight: 500; }

.pr-tag {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(200, 169, 106, 0.08);
  line-height: 1.5;
}

.tag-pr {
  border-color: rgba(200, 169, 106, 0.55);
  background: rgba(200, 169, 106, 0.1);
}

.prog:hover .prog-name { color: var(--gold-soft); }

/* 细滚动条 */
.sheet::-webkit-scrollbar { width: 6px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(200, 169, 106, 0.3); border-radius: 3px; }

@media (max-width: 620px) {
  .crest-strip { margin-top: 38px; gap: 12px; }
  .filter-bar { gap: 10px; }
  .filter-hint { display: none; }
  .card-no { top: 14px; right: 16px; }
}

/* ---------------- 移民路径 ---------------- */

.mig-box {
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(200, 169, 106, 0.07), transparent 60%), var(--panel);
}
.mig-box > p { font-size: 0.9rem; color: var(--text); line-height: 1.8; }

.mig-steps {
  margin: 16px 0;
  padding-left: 18px;
  list-style: decimal;
  display: grid;
  gap: 8px;
}
.mig-steps li {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 4px;
}
.mig-steps li::marker { color: var(--gold); }

.mig-warn {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem !important;
  color: var(--dim) !important;
}

/* ---------------- 学院快捷导航 ---------------- */

.faculty-nav {
  position: sticky;
  top: 64px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-top: 6px;
  background: linear-gradient(var(--bg) 78%, rgba(10, 10, 11, 0));
  scrollbar-width: none;
}
.faculty-nav::-webkit-scrollbar { display: none; }

.fac-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.fac-chip span {
  font-size: 0.64rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.fac-chip:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 620px) {
  .faculty-nav { top: 58px; }
}

/* ---------------- 预算环形图 ---------------- */

.budget { grid-template-columns: 0.92fr 1.28fr; }

.budget-chart {
  padding: 26px 30px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 26px;
}

.donut { width: 176px; height: 176px; flex: none; }
.donut-track { stroke: rgba(255, 255, 255, 0.055); }
.donut-seg {
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
  transform-origin: 100px 100px;
}
.donut-seg:hover { stroke-width: 22; }

.donut-cap {
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  fill: var(--dim);
}
.donut-mid {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  fill: var(--gold);
}

.legend {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.legend li {
  display: grid;
  grid-template-columns: 9px 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: block;
}
.legend span { color: var(--muted); letter-spacing: 0.04em; }
.legend b {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.legend em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--dim);
  min-width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.split-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

@media (max-width: 900px) {
  .budget { grid-template-columns: 1fr; }
  .budget-chart { flex-direction: column; align-items: center; padding: 30px 22px; }
  .donut { width: 156px; height: 156px; }
  .legend { width: 100%; max-width: 340px; }
}

/* ============================================================
   v3 高级感：香槟金 + 象牙白 · 细线 · 光泽
   ============================================================ */

body {
  background:
    radial-gradient(60rem 36rem at 50% -14%, rgba(195, 189, 177, 0.06), transparent 62%),
    radial-gradient(44rem 28rem at 92% 4%, rgba(195, 189, 177, 0.03), transparent 68%),
    var(--bg);
}

::selection { background: var(--ivory); color: #0a0a0b; }

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.scroll-line i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(195, 189, 177, 0), var(--gold), var(--ivory));
  box-shadow: 0 0 12px rgba(242, 236, 223, 0.35);
  transition: width 0.12s linear;
}

/* 按钮：象牙白为主，金色只做点缀 */
.btn-gold {
  border-color: rgba(242, 236, 223, 0.2);
  color: var(--ivory);
  letter-spacing: 0.18em;
}
.btn-gold:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: #0a0a0b;
  box-shadow: 0 18px 50px -24px rgba(242, 236, 223, 0.6);
}
.btn-solid {
  background: var(--ivory);
  border-color: var(--ivory);
  color: #0a0a0b;
}
.btn-solid:hover { background: #fffdf7; border-color: #fffdf7; color: #0a0a0b; }

.topbar.stuck {
  background: rgba(8, 8, 10, 0.72);
  border-bottom-color: rgba(242, 236, 223, 0.06);
}

/* 校徽卡片：斜向光泽扫过 */
.school-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(242, 236, 223, 0.07) 47%,
    rgba(242, 236, 223, 0.02) 52%,
    transparent 62%
  );
  transform: translateX(-70%);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.school-card:hover::before { transform: translateX(70%); }

.school-card { border-radius: 2px; }

/* 章节编号 01 / 02 / 03 */
.result { counter-reset: block; }
.block:has(.block-head h2) { counter-increment: block; }
.block-head h2::before {
  content: counter(block, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-right: 14px;
  vertical-align: 0.18em;
  opacity: 0.9;
}

/* 预算数字：更克制的高光 */
.budget-total .amount {
  background: linear-gradient(180deg, var(--ivory), var(--gold) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.tier-price { color: var(--ivory); }
.tier[aria-pressed="true"] .tier-price { color: var(--gold-soft); }

/* 环形图：更细、更柔 */
.donut-seg {
  filter: drop-shadow(0 0 10px rgba(242, 236, 223, 0.08));
  stroke-width: 15;
}
.donut-seg:hover { stroke-width: 19; }
.donut-mid { fill: var(--gold-soft); }

.legend b { color: var(--ivory); }
.legend i { border-radius: 50%; }

/* 顶部品牌与页脚更细的线 */
.topbar { border-bottom: 1px solid rgba(242, 236, 223, 0.05); }
.footer { border-top-color: rgba(242, 236, 223, 0.06); }

/* 卡片投影更柔 */
.school-card { box-shadow: inset 0 1px 0 rgba(242, 236, 223, 0.03); }
.school-card:hover {
  box-shadow: inset 0 1px 0 rgba(242, 236, 223, 0.07);
}

/* 结果页标题区的细金线 */
.result-head { position: relative; }
.result-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* 专业行：左侧细线滑入 */
.prog { position: relative; }
.prog::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.prog:hover::before { transform: scaleY(1); }

/* 数字等宽，避免跳动 */
.amount, .tier-price, .legend b, .prog-dur { font-variant-numeric: tabular-nums; }

@media (max-width: 620px) {
  .block-head h2::before { margin-right: 9px; }
}

/* ---------------- 首屏光晕 + 卡片入场节奏 ---------------- */

.start { position: relative; }
.start::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    30rem 30rem at var(--mx, 50%) var(--my, 42%),
    rgba(242, 236, 223, 0.055),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.7s ease;
}
.start:hover::after { opacity: 1; }

.schools-grid .school-card {
  animation: rise 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.schools-grid .school-card:nth-child(1) { animation-delay: 0.02s; }
.schools-grid .school-card:nth-child(2) { animation-delay: 0.06s; }
.schools-grid .school-card:nth-child(3) { animation-delay: 0.1s; }
.schools-grid .school-card:nth-child(4) { animation-delay: 0.14s; }
.schools-grid .school-card:nth-child(5) { animation-delay: 0.18s; }
.schools-grid .school-card:nth-child(6) { animation-delay: 0.22s; }
.schools-grid .school-card:nth-child(7) { animation-delay: 0.26s; }
.schools-grid .school-card:nth-child(8) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .schools-grid .school-card { animation: none; }
  .start::after { display: none; }
}

/* ============================================================
   v4：地区 / 匹配 / 材料中心
   ============================================================ */

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 8px;
}

.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
  padding: 34px 32px;
  background: var(--bg);
  overflow: hidden;
  transition: background-color 0.35s ease;
}
.region-card:hover { background: var(--panel); }
.region-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 189, 177, 0.08), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.region-card:hover::after { opacity: 1; }

.region-card::before {
  content: attr(data-no);
  position: absolute;
  right: 20px;
  bottom: -18px;
  font-family: var(--serif);
  font-size: 6.5rem;
  line-height: 1;
  color: rgba(242, 236, 223, 0.035);
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: color 0.4s ease, transform 0.5s ease;
}
.region-card:hover::before {
  color: rgba(242, 236, 223, 0.06);
  transform: translateY(-6px);
}

.region-no {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.btn-text {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-text:hover { color: var(--gold); border-color: var(--gold); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}
.hero-cta .btn-gold { margin-top: 0; }
.hero-cta .btn-text { margin-top: 0; }

.crest-mono {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  width: 54px;
  height: 54px;
  flex: none;
  background: radial-gradient(circle at 50% 30%, rgba(195, 189, 177, 0.1), transparent 70%);
}

.crest-mono.mini-crest {
  width: clamp(26px, 3.4vw, 38px);
  height: clamp(26px, 3.4vw, 38px);
  font-size: 0.52rem;
}
.region-card h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  letter-spacing: 0.04em;
}
.region-en {
  margin-top: 7px;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.region-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.region-foot i { font-style: normal; color: var(--gold); }

/* 匹配表单 */

.match-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 10px;
}

.field { padding: 20px 24px; background: var(--bg); }
.field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.field select,
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 8px 0;
  outline: none;
  border-radius: 0;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field select:focus,
.field input:focus { border-bottom-color: var(--gold); }

.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.match-actions p { font-size: 0.74rem; color: var(--dim); max-width: 34rem; line-height: 1.7; }

.match-group { margin-top: 38px; }
.match-group > h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.match-group > h3 span { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; }

.match-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  margin-bottom: 1px;
  transition: background-color 0.25s ease;
}
.match-item:hover { background: var(--panel-2); }
.match-item img { width: 54px; height: 54px; object-fit: contain; }
.match-item h4 { font-size: 0.96rem; font-family: var(--serif); letter-spacing: 0.03em; }
.match-meta { margin-top: 5px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }
.match-badge {
  flex: none;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.match-badge.strong { color: #a8c3a0; border-color: rgba(168, 195, 160, 0.35); }
.match-badge.reach { color: #c9a8a0; border-color: rgba(201, 168, 160, 0.35); }

/* 材料中心 tabs */

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  margin: 8px 0 30px;
}
.tab {
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { color: var(--ivory); }
.tab.on { color: var(--ivory); border-bottom-color: var(--gold); }

.doc-list {
  counter-reset: doc;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.doc-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg);
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.7;
}
.doc-item::before {
  counter-increment: doc;
  content: counter(doc, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 2px;
}

.mini-title {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.bullets { display: grid; gap: 9px; }
.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
}

.lang-rule {
  display: grid;
  grid-template-columns: 118px 88px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
}
.lang-rule b { color: var(--ivory); font-weight: 500; }
.lang-rule i { font-style: normal; color: var(--gold); font-family: var(--serif); }
.lang-rule span { color: var(--muted); line-height: 1.7; }

/* 模板卡片 */

.tpl {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  margin-bottom: 12px;
  transition: border-color 0.25s ease;
}
.tpl:hover { border-color: var(--line); }
.tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
}
.tpl-head h4 { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.04em; }
.tpl-head .for { margin-top: 5px; font-size: 0.7rem; color: var(--dim); letter-spacing: 0.08em; }
.tpl-toggle {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.tpl.open .tpl-toggle { color: var(--gold); border-color: var(--line); }
.tpl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  padding: 0 22px;
}
.tpl.open .tpl-body { max-height: 1400px; padding-bottom: 22px; }
.tpl-body pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.95;
  color: var(--muted);
}
.tpl-tips { margin-top: 16px; }

@media (max-width: 900px) {
  .region-grid { grid-template-columns: 1fr; }
  .match-form { grid-template-columns: 1fr; }
  .lang-rule { grid-template-columns: 92px 70px 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .match-item { grid-template-columns: 42px 1fr; }
  .match-item img { width: 42px; height: 42px; }
  .match-badge { grid-column: 2; justify-self: start; margin-top: 6px; }
  .region-card { padding: 26px 22px; min-height: 160px; }
}

/* ============================================================
   v5 极简高级：更长的留白、更细的线、更低的对比
   ============================================================ */

.section { padding-block: 112px; }
.page-head { padding: 56px 0 40px; }

.page-head h1,
.start h1,
.section-head h2,
.result-head h1,
.sheet h2 {
  font-weight: 400;
  letter-spacing: 0.015em;
}

.start h1 { line-height: 1.18; }
.start p { line-height: 2; max-width: 30rem; }

.feature,
.plan,
.quote,
.agent-box,
.tier,
.budget,
.mig-box,
.budget-total,
.budget-chart,
.card,
.prog-list,
.train-card {
  border-radius: 2px;
}
.btn-gold, .btn, .top-cta, .topbar .brand-mark, .icon-btn { border-radius: 2px; }
.seal, .brand-mark, .sheet-close, .mini-crest { border-radius: 50%; }

.school-card { padding: 36px 34px; }
.school-card:hover .crest { transform: scale(1.03); }

.schools-grid,
.region-grid,
.choice-grid,
.tiers,
.match-form,
.apply-options {
  border-color: rgba(242, 236, 223, 0.06);
}

.section-head { margin-bottom: 60px; }
.section-head h2 { margin-top: 18px; }

.block { padding: 44px 0; }
.block-head { margin-bottom: 26px; }

.kicker { letter-spacing: 0.32em; font-size: 0.64rem; }

.prog { padding: 18px 20px; }

.btn-gold { padding: 15px 32px; }
.btn { padding: 14px 24px; }

/* 更低对比的正文，让标题和数字更突出 */
.page-head p,
.section-sub { color: #857f75; }

/* 顶部细线更淡 */
.topbar { border-bottom-color: rgba(242, 236, 223, 0.04); }
.site-header { border-bottom-color: rgba(242, 236, 223, 0.04); }

/* 数字与标题的衬线更挺 */
.amount, .budget-total .amount { letter-spacing: -0.02em; }
.region-card h3, .school-card h3 { letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .section { padding-block: 76px; }
  .page-head { padding: 40px 0 30px; }
}

@media (max-width: 620px) {
  .school-card { padding: 26px 22px; }
  .block { padding: 34px 0; }
}

/* ---------------- 首屏搜索条 ---------------- */

.start-browse {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.2s ease;
}
.start-browse:hover { color: var(--gold); }

.start-regions {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 48px;
  border: 1px solid rgba(242, 236, 223, 0.22);
  color: var(--ivory);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.start-regions:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: #0a0a0b;
}

.hs-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* ---------------- 顶部校名搜索 ---------------- */

.search-strip {
  position: relative;
  z-index: 35;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.25s ease;
}
.search-wrap:focus-within { border-bottom-color: var(--gold); }
.search-wrap svg { width: 14px; height: 14px; color: var(--dim); flex: none; }

#school-search {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}
#school-search::placeholder { color: var(--dim); font-size: 0.8rem; }

.search-drop {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-top: 0;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.search-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.2s ease;
}
.search-row:last-child { border-bottom: 0; }
.search-row:hover { background: var(--panel); }
.search-crest { width: 26px; height: 26px; object-fit: contain; }
.crest-mono.search-crest { width: 26px; height: 26px; font-size: 0.48rem; }
.search-row span { font-size: 0.86rem; color: var(--text); }
.search-row em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.search-row i { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.search-empty {
  padding: 18px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   v6 暖黑 + 金箔点缀
   ============================================================ */

:root {
  --bg: #0b0a09;
  --bg-2: #0f0e0c;
  --panel: #141210;
  --panel-2: #1a1714;
  --gold: #c2a26b;
  --gold-soft: #e8d6ae;
  --ivory: #f3ede2;
  --text: #eae4d8;
  --muted: #9a9184;
  --dim: #70685c;
  --line: rgba(194, 162, 107, 0.17);
  --line-soft: rgba(243, 237, 226, 0.07);
}

body {
  background:
    radial-gradient(62rem 38rem at 50% -12%, rgba(194, 162, 107, 0.1), transparent 60%),
    radial-gradient(46rem 30rem at 88% 16%, rgba(194, 162, 107, 0.055), transparent 65%),
    radial-gradient(52rem 32rem at 6% 84%, rgba(194, 162, 107, 0.045), transparent 70%),
    linear-gradient(180deg, #0c0b09 0%, #0a0908 58%, #080706 100%);
}

/* 顶部一层很淡的金色渐变，让黑不“死” */
.topbar {
  background: linear-gradient(180deg, rgba(30, 24, 16, 0.42), transparent);
}

/* 标题下的细金线 */
.page-head h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* 卡片加一层极淡的暖光，避免大块纯黑 */
.school-card,
.region-card,
.feature,
.plan,
.tier {
  background-image: linear-gradient(180deg, rgba(243, 237, 226, 0.018), transparent 55%);
}

/* 校名卡片悬停时金色边线更明显 */
.school-card:hover { border-top-color: rgba(194, 162, 107, 0.55); }

/* 首屏加一层光晕，暖一点 */
.start::after {
  background: radial-gradient(
    32rem 32rem at var(--mx, 50%) var(--my, 42%),
    rgba(194, 162, 107, 0.07),
    transparent 62%
  );
}

/* 搜索行的聚焦线 */
.search-wrap:focus-within { border-bottom-color: var(--gold); }

/* 徽章与标签用金，但压低亮度 */
.pr-tag,
.tag,
.match-badge { color: var(--gold); }

/* 页脚上方一条很淡的金线 */
.footer {
  background: linear-gradient(0deg, rgba(194, 162, 107, 0.035), transparent 40%);
}

/* ============================================================
   v7 画框 · 侧边字 · 首屏整体放大
   ============================================================ */

.frame {
  position: fixed;
  inset: 16px;
  border: 1px solid rgba(194, 162, 107, 0.09);
  pointer-events: none;
  z-index: 3;
}
.frame i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid rgba(194, 162, 107, 0.42);
}
.frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.edge-label {
  position: fixed;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.54rem;
  letter-spacing: 0.42em;
  color: rgba(194, 162, 107, 0.34);
  pointer-events: none;
}
.edge-left { left: 26px; }
.edge-right { right: 26px; transform: translateY(-50%) rotate(180deg); }

.ghost {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(16rem, 40vw, 32rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(194, 162, 107, 0.035);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.start { overflow: hidden; }
.start-inner { position: relative; z-index: 1; max-width: 1020px; }

/* 首屏放大 */
.start h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.14; }
.start h1 em { font-size: 0.4em; letter-spacing: 0.34em; margin-top: 26px; }
.start p { font-size: 1.02rem; max-width: 34rem; margin-top: 30px; line-height: 2; }
.start .seal { width: 128px; height: 128px; margin-bottom: 44px; }
.seal svg { width: 56px; height: 56px; }

.hero-search { max-width: 1000px; margin-top: 50px; }
.hs-seg { padding: 14px 22px; }
.hs-seg label { font-size: 0.58rem; }
.hs-seg select,
.hs-seg input { font-size: 1.02rem; }
.hs-btn { padding: 0 42px; font-size: 0.84rem; }

.start-regions { margin-top: 34px; padding: 18px 56px; font-size: 0.9rem; }
.start-meta { margin-top: 42px; gap: 42px; font-size: 0.76rem; }
.crest-strip { margin-top: 54px; gap: 30px; }
.mini-crest { width: clamp(30px, 3.6vw, 42px); height: clamp(30px, 3.6vw, 42px); }

@media (max-width: 900px) {
  .frame, .edge-label { display: none; }
  .start h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-search { margin-top: 34px; }
  .start-regions { padding: 15px 38px; font-size: 0.84rem; }
  .start-meta { gap: 22px; }
  .ghost { font-size: 15rem; }
}

.hero-search {
  display: flex;
  align-items: stretch;
  width: min(920px, 100%);
  margin: 44px auto 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(242, 236, 223, 0.025);
  overflow: hidden;
  text-align: left;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.start-inner { max-width: 940px; }
.hero-search:focus-within {
  border-color: rgba(242, 236, 223, 0.3);
  background: rgba(242, 236, 223, 0.04);
}

.hs-seg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  border-right: 1px solid var(--line-soft);
}
.hs-seg label {
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.hs-seg select,
.hs-seg input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font: inherit;
  font-size: 0.96rem;
  padding: 2px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.hs-seg select option { background: var(--bg-2); color: var(--ivory); }

.hs-btn {
  flex: none;
  border: 0;
  background: var(--ivory);
  color: #0a0a0b;
  padding: 0 34px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.hs-btn:hover { background: #fffdf7; }

@media (max-width: 760px) {
  .hero-search { flex-wrap: wrap; border-radius: 8px; margin-top: 32px; }
  .hs-seg { flex: 1 1 46%; border-bottom: 1px solid var(--line-soft); }
  .hs-seg:nth-child(2n) { border-right: 0; }
  .hs-btn { flex: 1 0 100%; padding: 15px; }
}

@media (max-width: 620px) {
  .hs-seg { flex: 1 1 100%; border-right: 0; }
}
