/* 青禾家教演示 —— 设计系统
   主色 --brand 墨绿、点缀 --sun 黄；响应式断点 900px / 680px */
:root {
  --ink: #18312b;
  --muted: #687b75;
  --brand: #167b5a;
  --brand-dark: #0d5e43;
  --brand-soft: #e4f3ec;
  --sun: #f2b84b;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe7e2;
  --danger: #b64b4b;
  --shadow: 0 18px 50px rgba(26, 66, 54, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(242,184,75,.15), transparent 24rem),
    linear-gradient(180deg, #f4f8f3 0, var(--paper) 33rem);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223,231,226,.9);
  background: rgba(251,250,246,.88);
  backdrop-filter: blur(16px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  color: white; background: var(--brand); box-shadow: 0 8px 20px rgba(22,123,90,.25);
}
.brand-mark svg { width: 24px; height: 24px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22,123,90,.20); outline-offset: 2px; }
.btn-primary { color: white; background: var(--brand); box-shadow: 0 8px 20px rgba(22,123,90,.18); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { color: var(--brand-dark); background: white; border-color: var(--line); }
.btn-quiet { color: var(--muted); background: transparent; }

.hero { padding: 54px 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(310px,.6fr); gap: 34px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); }
h1 { max-width: 760px; margin: 16px 0 15px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.025em; }
.hero-copy { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; gap: 11px; margin-top: 26px; flex-wrap: wrap; }
.safety-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.safety-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; font-size: 17px; }
.shield { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.safety-card p { margin: 0; color: var(--muted); font-size: 14px; }
.privacy-list { display: grid; gap: 9px; margin-top: 15px; }
.privacy-item { display: flex; gap: 9px; align-items: start; font-size: 13px; }
.tick { color: var(--brand); font-weight: 900; }

.workspace { padding: 16px 0 70px; }
.toolbar {
  padding: 18px; display: grid; grid-template-columns: 1.35fr repeat(3, .72fr) auto; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.92); box-shadow: var(--shadow);
}
.field { position: relative; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff;
}
input, select { height: 44px; padding: 0 12px; }
textarea { min-height: 100px; padding: 11px 12px; resize: vertical; }
.toolbar .btn { align-self: end; }
.results-head { margin: 27px 2px 15px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.results-head h2 { margin: 0; font-size: 24px; }
.results-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.count { padding: 7px 11px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: 13px; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card {
  padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #bad6c9; box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; gap: 14px; }
.subject { display: flex; align-items: center; gap: 12px; }
.subject-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); font-weight: 900; color: var(--brand-dark); }
.subject h3 { margin: 0; font-size: 18px; }
.subject p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.price { color: var(--brand-dark); font-size: 18px; font-weight: 900; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 15px; align-items: center; }
.tag { padding: 5px 9px; color: #4e625c; background: #f3f6f3; border-radius: 8px; font-size: 12px; }
.tag-agency { color: #785716; background: #fff0c9; }
.description { min-height: 48px; margin: 0; color: #52655f; font-size: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf1ee; flex-wrap: wrap; }
.card-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.location { color: var(--muted); font-size: 13px; }
.empty { grid-column: 1 / -1; padding: 46px; text-align: center; color: var(--muted); border: 1px dashed #bfcfc7; border-radius: var(--radius); background: rgba(255,255,255,.65); }
.student-card .card-top { align-items: flex-start; }
.avatar {
  width: 50px; height: 50px; display: grid; place-items: center; flex: none;
  color: white; background: linear-gradient(145deg, var(--brand), #43a37e); border-radius: 16px;
  font-family: Georgia, "Songti SC", serif; font-size: 18px; font-weight: 900;
}
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.student-meta { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.subject-line { margin: 8px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.rating { color: #8a641c; font-size: 13px; white-space: nowrap; }
.application-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.application-card + .application-card { margin-top: 12px; }
.application-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.applicant { display: flex; gap: 12px; align-items: center; }
.application-card h3 { margin: 0; font-size: 16px; }
.application-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.application-message { margin: 14px 0 !important; padding: 12px 14px; color: #465a54 !important; background: #f3f6f3; border-radius: 10px; }
.application-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-accept { color: white; background: var(--brand); }
.btn-reject { color: var(--danger); background: #fff; border-color: #ead0d0; }
.status.accepted { color: var(--brand-dark); background: var(--brand-soft); }
.status.rejected { color: #8e4747; background: #f7e5e5; }
.status.pending_parent { color: #805f1f; background: #fbefd5; }
.status.pending_review { color: #315f87; background: #e5f0f8; }
.status.contact_released { color: var(--brand-dark); background: var(--brand-soft); }
.status.parent_rejected, .status.review_rejected { color: #8e4747; background: #f7e5e5; }
.status.request_fulfilled { color: #5f6b66; background: #e9eeeb; }
.status.withdrawn { color: #5f6b66; background: #eef1ef; }
.tag-success { color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.tag-open { color: #315f87; background: #e5f0f8; font-weight: 800; }
.request-fulfilled-card { border-color: #bedbce; background: linear-gradient(145deg, #fff, #f3faf6); }
.request-alert { margin-top: 14px; padding: 12px 14px; border: 1px solid; border-radius: 11px; font-size: 12.5px; }
.request-alert strong { display: block; margin-bottom: 3px; }
.request-alert.success { color: var(--brand-dark); border-color: #bedbce; background: var(--brand-soft); }
.request-alert.warning { color: #805f1f; border-color: #ead6a5; background: #fbefd5; }
.request-alert.muted { color: #5f6b66; border-color: #d6dfda; background: #eef2ef; }
.student-request-notice { margin: 0 0 14px; }
.student-page-tabs { width: fit-content; display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.84); }
.student-page-tab { min-width: 104px; height: 38px; padding: 0 18px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 800; }
.student-page-tab.active { color: white; background: var(--brand); box-shadow: 0 6px 15px rgba(22,123,90,.18); }
.student-page-tab:focus-visible { outline: 3px solid rgba(22,123,90,.2); outline-offset: 2px; }
.student-me-head { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 14px; }
.student-me-profile { min-height: 170px; padding: 22px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #fff, #f0f8f4); box-shadow: var(--shadow); }
.student-me-profile > div { min-width: 0; flex: 1; }
.student-me-profile small { color: var(--muted); font-size: 11px; font-weight: 800; }
.student-me-profile h2 { margin: 3px 0; font-size: 23px; }
.student-me-profile p { margin: 0; color: var(--muted); font-size: 12px; }
.student-me-profile .tags { margin: 12px 0 0; }
.student-me-avatar { width: 62px; height: 62px; display: grid; place-items: center; flex: none; color: white; background: linear-gradient(145deg, var(--brand), #43a37e); border-radius: 19px; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 900; }
.student-me-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.student-me-stats > div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.student-me-stats span, .student-me-stats strong { display: block; }
.student-me-stats span { color: var(--muted); font-size: 11px; }
.student-me-stats strong { margin-top: 5px; color: var(--brand-dark); font-family: Georgia, serif; font-size: 26px; }
.student-updates-head { margin-top: 28px; }
.student-update-list { display: grid; gap: 12px; }
.student-update-card { position: relative; padding: 19px 20px 18px 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.student-update-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #c7d7cf; }
.student-update-card.pending_review::before { background: #6c9fc7; }
.student-update-card.contact_released::before { background: var(--brand); }
.student-update-card.review_rejected::before, .student-update-card.parent_rejected::before { background: #c87878; }
.student-update-card.request_fulfilled::before, .student-update-card.withdrawn::before { background: #89958f; }
.student-update-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.student-update-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.student-update-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 11px; }
.student-update-main h3 { margin: 0; font-size: 16px; }
.student-update-main p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.student-update-message { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 12px; margin-top: 13px; padding: 12px 13px; border-radius: 11px; background: #f5f7f4; }
.student-update-message strong { font-size: 12px; }
.student-update-message span { color: var(--muted); font-size: 12px; }
.student-update-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 4px; font-size: 27px; }
.review-list { display: grid; gap: 13px; }
.review-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.review-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.55fr); gap: 16px; margin-top: 14px; }
.review-box { padding: 13px; border-radius: 11px; background: #f3f6f3; }
.review-box strong { display: block; margin-bottom: 4px; font-size: 12px; }
.review-box p { margin: 0; color: var(--muted); font-size: 13px; }
.review-audit { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.contact-box { margin-top: 13px; padding: 14px; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #bedbce; border-radius: 11px; }
.contact-box strong { display: block; margin-bottom: 4px; }
.flowline { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.flow-node { padding: 5px 8px; background: #eef2ef; border-radius: 999px; }
.flow-node.active { color: white; background: var(--brand); }

.steps { margin-top: 56px; padding: 32px; border-radius: 24px; color: white; background: var(--ink); }
.steps-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.steps h2 { margin: 0; font-size: 27px; }
.steps-head p { max-width: 500px; margin: 0; color: #b9c8c2; font-size: 14px; }
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 25px; }
.step { padding: 19px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.05); }
.step-num { color: var(--sun); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.step h3 { margin: 7px 0 4px; font-size: 16px; }
.step p { margin: 0; color: #b9c8c2; font-size: 13px; }

footer { padding: 26px 0 38px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 22px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(14,35,29,.58); backdrop-filter: blur(6px); }
.modal { width: min(650px,100%); max-height: min(86vh,760px); overflow: auto; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 15px; align-items: start; padding: 22px 24px 16px; background: rgba(251,250,246,.96); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #e9efeb; color: var(--ink); font-size: 20px; }
.modal-body { padding: 22px 24px 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 21px; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.checkline { display: flex; align-items: start; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.checkline input { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.history-list { display: grid; gap: 11px; }
.history-item { display: flex; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.history-item h3 { margin: 0 0 3px; font-size: 15px; }
.history-item p { margin: 0; color: var(--muted); font-size: 12px; }
.status { height: fit-content; padding: 5px 9px; border-radius: 999px; color: #805f1f; background: #fbefd5; font-size: 12px; font-weight: 800; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%,20px); opacity: 0; pointer-events: none; padding: 12px 17px; color: white; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); transition: .25s ease; font-size: 14px; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: #6f571e; background: #fff0c9; border-radius: 999px; font-size: 11px; font-weight: 800; }
.auth-home { min-height: 100vh; display: grid; place-items: center; padding: 42px 0; }
.auth-shell { width: min(1020px, calc(100% - 32px)); }
.auth-brand { justify-content: center; margin-bottom: 34px; }
.auth-intro { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.auth-intro h1 { margin-inline: auto; font-size: clamp(38px, 5vw, 60px); }
.auth-intro p { margin: 0; color: var(--muted); font-size: 17px; }
.portal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.portal-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.portal-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -95px; border-radius: 50%; background: var(--brand-soft); }
.portal-card.parent-card::after { background: #fff0cc; }
.portal-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: white; background: var(--brand); font-size: 24px; font-weight: 900; }
.parent-card .portal-icon { color: #785716; background: var(--sun); }
.portal-card h2 { margin: 20px 0 7px; font-size: 25px; }
.portal-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 14px; }
.portal-points { display: grid; gap: 8px; margin: 20px 0 23px; color: #50635d; font-size: 13px; }
.portal-points span::before { content: "✓"; margin-right: 8px; color: var(--brand); font-weight: 900; }
.portal-actions { display: flex; gap: 9px; }
.portal-actions .btn { flex: 1; }
.auth-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.user-dot { width: 29px; height: 29px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 9px; font-weight: 800; }
.user-chip strong { display: block; font-size: 12px; }
.user-chip span { display: block; color: var(--muted); font-size: 10px; }
.admin-gateway { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #102a24; }
.admin-login { width: min(420px,100%); padding: 28px; border-radius: 22px; background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.admin-login h1 { margin: 16px 0 6px; font-size: 30px; }
.admin-login > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.admin-login .field + .field { margin-top: 13px; }
.admin-login .btn { width: 100%; margin-top: 18px; }

/* ===== 机构管理员审核台（agency.html）与 AI 元素 ===== */
.agency-wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 56px; }
.agency-hero h1 { margin: 14px 0 12px; font-size: clamp(30px, 4.2vw, 46px); }
.agency-hero > p { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; max-width: 560px; }
.agency-footer-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 12px; }
.ai-playground { margin: 30px 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.ai-playground-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-playground-head h2 { margin: 0; font-size: 20px; }
.ai-playground-sub { margin: 8px 0 14px; color: var(--muted); font-size: 13.5px; }
.agency-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.perk-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.92); }
.perk-card strong { display: block; margin-bottom: 5px; font-size: 15px; }
.perk-card span { color: var(--muted); font-size: 12.5px; }
.agency-roadmap { margin-top: 34px; }
.agency-roadmap h2 { margin: 0 0 12px; font-size: 19px; }
.roadmap-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roadmap-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.roadmap-card h3 { margin: 9px 0 5px; font-size: 15.5px; }
.roadmap-card p { margin: 0; color: var(--muted); font-size: 12.5px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-live { color: var(--brand-dark); background: var(--brand-soft); }
.badge-dev { color: #315f87; background: #e5f0f8; }
.badge-plan { color: #805f1f; background: #fbefd5; }
.agency-login { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.agency-login h2 { margin: 0 0 4px; font-size: 22px; }
.agency-login .field { margin-top: 13px; }
.agency-login .btn { width: 100%; margin-top: 18px; }
.lamp-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 18px;
  border: 1px solid #ecd9a4; border-radius: 16px; background: linear-gradient(90deg, #fff5d8, #fffdf6);
}
.lamp-banner strong { display: block; font-size: 15px; }
.lamp-banner .lamp-sub { color: #805f1f; font-size: 12.5px; }
.lamp-tag { padding: 5px 10px; border-radius: 999px; color: #785716; background: var(--sun); font-size: 12px; font-weight: 800; white-space: nowrap; }
/* AI 演示元素 */
.ai-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; color: #785716; background: #fff0c9; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ai-card-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.ai-card-head strong { font-size: 15px; }
.ai-confidence { color: var(--muted); font-size: 12px; }
.ai-missing { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; color: #805f1f; background: #fbefd5; font-size: 12.5px; }
.ai-sample-row { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.ai-sample-btn { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--brand-dark); }
.ai-sample-btn:hover { border-color: #bad6c9; }
.match-tag { color: #315f87; background: #e5f0f8; font-weight: 800; }
.ai-match-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.ai-reason { color: var(--muted); font-size: 12.5px; }

/* ===== AI 匹配与平台审核台（agency.html v3）===== */
.review-hub-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 4%, rgba(242,184,75,.18), transparent 24rem),
    radial-gradient(circle at 8% 20%, rgba(22,123,90,.09), transparent 28rem),
    #f5f7f3;
}
.review-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.review-topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(223,231,226,.92); background: rgba(250,251,247,.9); backdrop-filter: blur(16px); }
.review-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.review-nav-meta { display: flex; align-items: center; gap: 14px; }
.review-live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.review-live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #2da36f; box-shadow: 0 0 0 5px rgba(45,163,111,.12); }
.review-main { padding: 44px 0 54px; }
.review-intro { display: grid; grid-template-columns: minmax(0,1fr) 190px; align-items: end; gap: 36px; margin-bottom: 25px; }
.review-kicker { color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.review-intro h1 { max-width: none; margin: 10px 0 9px; font-size: clamp(32px, 4vw, 48px); }
.review-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; }
.review-summary { padding: 18px 20px; border: 1px solid #d7e4dd; border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 12px 34px rgba(26,66,54,.08); }
.review-summary span, .review-summary small { display: block; color: var(--muted); font-size: 11px; }
.review-summary strong { display: block; margin: 2px 0; color: var(--brand-dark); font-family: Georgia, serif; font-size: 38px; line-height: 1.1; }
.review-panel { margin-top: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 18px 55px rgba(26,66,54,.08); }
.review-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.review-panel-head > div:first-child { display: flex; align-items: flex-start; gap: 13px; }
.review-step { width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: var(--brand-dark); background: var(--brand-soft); border-radius: 12px; font-family: Georgia, serif; font-size: 13px; font-weight: 900; }
.review-panel h2 { margin: 0; font-size: 22px; }
.review-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.match-workbench { display: grid; grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); gap: 14px; align-items: stretch; }
.match-source-column { min-width: 0; }
.match-picker { margin-bottom: 10px; }
.match-picker label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.match-picker select { border-color: #d5e1db; background: #fbfcfa; font-weight: 700; }
.match-source-card { min-height: 226px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcfa; }
.match-card-label { margin-bottom: 13px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.match-card-title { display: flex; align-items: center; gap: 11px; }
.match-card-title > span { width: 43px; height: 43px; display: grid; place-items: center; flex: none; color: white; background: linear-gradient(145deg, var(--brand), #4fa987); border-radius: 13px; font-family: Georgia, serif; font-weight: 900; }
.match-card-title strong, .match-card-title small { display: block; }
.match-card-title strong { font-size: 15px; }
.match-card-title small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.match-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.match-facts span { padding: 5px 8px; color: #4e625c; background: #edf3ef; border-radius: 7px; font-size: 11px; }
.match-source-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.match-connector { display: grid; place-items: center; align-content: center; gap: 8px; padding-top: 26px; }
.match-connector span { width: 42px; height: 42px; display: grid; place-items: center; color: #785716; background: var(--sun); border: 5px solid #fff7e5; border-radius: 50%; font-size: 11px; font-weight: 900; }
.match-connector i { width: 36px; height: 1px; background: #cddbd4; }
.match-actions { display: flex; justify-content: center; margin: 18px 0; }
.match-result { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 24px; align-items: center; padding: 20px; border: 1px solid #c9dfd5; border-radius: 18px; background: linear-gradient(135deg, #eff8f3, #fffdf7); }
.match-score { width: 122px; height: 122px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--score) * 1%), #dfe9e4 0); }
.match-score::before { content: ""; width: 92px; height: 92px; grid-area: 1 / 1; border-radius: 50%; background: #fff; }
.match-score > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.match-score strong, .match-score span { display: block; }
.match-score strong { color: var(--brand-dark); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.match-score span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.match-result-title { display: flex; align-items: center; gap: 9px; }
.match-result-title h3 { margin: 0; font-size: 19px; }
.match-result-copy > p { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.match-reason-group { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px; align-items: start; margin-top: 8px; }
.match-reason-group > strong { padding-top: 4px; font-size: 11px; }
.match-reason-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.match-reason { padding: 4px 8px; border-radius: 7px; font-size: 11px; }
.match-reason.good { color: var(--brand-dark); background: #dff1e8; }
.match-reason.risk { color: #805f1f; background: #fbefd5; }
.queue-count { padding: 7px 11px; color: #315f87; background: #e5f0f8; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.review-privacy-note { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #d5e3dc; border-radius: 13px; background: #f6faf7; }
.review-privacy-note > span { width: 33px; height: 33px; display: grid; place-items: center; flex: none; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; font-size: 11px; font-weight: 900; }
.review-privacy-note p, .review-privacy-note strong { display: block; margin: 0; }
.review-privacy-note p { color: var(--muted); font-size: 11px; }
.review-privacy-note strong { color: var(--ink); font-size: 12px; }
.platform-queue { display: grid; gap: 14px; }
.queue-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.queue-card-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.queue-person { display: flex; align-items: center; gap: 11px; }
.queue-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: none; color: white; background: var(--ink); border-radius: 14px; font-family: Georgia, serif; font-weight: 900; }
.queue-person h3 { margin: 0; font-size: 16px; }
.queue-person p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.queue-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.queue-context > div { padding: 13px; border-radius: 12px; background: #f5f7f4; }
.queue-context small, .queue-context strong, .queue-context span { display: block; }
.queue-context small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.queue-context strong { font-size: 13px; }
.queue-context span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.queue-ai-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.queue-ai-score { padding: 5px 8px; flex: none; color: #315f87; background: #e5f0f8; border-radius: 7px; font-weight: 900; }
.queue-card blockquote { margin: 14px 0; padding: 11px 13px; color: #52655f; background: #fbfaf6; border-left: 3px solid var(--sun); border-radius: 0 9px 9px 0; font-size: 12px; }
.queue-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed #c8d9d1; border-radius: 12px; background: #f8fbf9; }
.queue-contact small, .queue-contact strong { display: block; }
.queue-contact small { color: var(--muted); font-size: 10px; }
.queue-contact strong { margin-top: 2px; font-size: 12px; }
.queue-contact > span { color: var(--brand-dark); font-size: 10px; font-weight: 900; }
.queue-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.queue-empty { padding: 40px 20px; text-align: center; border: 1px dashed #c6d5ce; border-radius: 18px; background: #fbfcfa; }
.queue-empty > span { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 10px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 50%; font-weight: 900; }
.queue-empty h3 { margin: 0; font-size: 16px; }
.queue-empty p { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.review-footer-note { margin: 25px 0 0; text-align: center; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .safety-card { max-width: 650px; }
  .toolbar { grid-template-columns: repeat(2,1fr); }
  .toolbar .field:first-child { grid-column: 1 / -1; }
  .toolbar .btn { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2,1fr); }
  .student-me-head { grid-template-columns: 1fr; }
  .match-workbench { grid-template-columns: 1fr; }
  .match-connector { padding: 0; grid-template-columns: auto 36px; }
  .match-connector i { transform: rotate(90deg); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px,1180px); }
  .nav { min-height: 66px; }
  .brand span:last-child { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .hero { padding-top: 35px; }
  h1 { font-size: 39px; }
  .hero-copy { font-size: 16px; }
  .toolbar, .form-grid { grid-template-columns: 1fr; }
  .toolbar .field:first-child, .form-grid .full { grid-column: auto; }
  .steps { padding: 24px; }
  .steps-head { display: block; }
  .steps-head p { margin-top: 8px; }
  .step-grid { grid-template-columns: 1fr; }
  .footer-row { display: block; }
  .card-top { align-items: start; }
  .price { font-size: 15px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .agency-perks, .roadmap-row { grid-template-columns: 1fr; }
  .review-shell { width: min(100% - 24px,1120px); }
  .review-nav { min-height: 64px; }
  .review-nav .brand span:last-child, .review-live-dot { display: none; }
  .review-main { padding-top: 30px; }
  .review-intro { grid-template-columns: 1fr; gap: 14px; }
  .review-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .review-summary strong { grid-row: 1 / 3; grid-column: 2; }
  .review-panel { padding: 18px; border-radius: 20px; }
  .review-panel-head { display: block; }
  .review-panel-head > .ai-badge, .queue-count { display: inline-flex; margin: 12px 0 0 51px; }
  .match-source-card { min-height: auto; }
  .match-result { grid-template-columns: 1fr; justify-items: center; }
  .match-result-copy { width: 100%; }
  .match-reason-group { grid-template-columns: 1fr; }
  .queue-card-main, .queue-contact { align-items: flex-start; flex-direction: column; }
  .queue-context { grid-template-columns: 1fr; }
  .queue-ai-line { align-items: flex-start; flex-direction: column; }
  .queue-actions { flex-direction: column-reverse; }
  .queue-actions .btn { width: 100%; }
  .student-page-tabs { width: 100%; }
  .student-page-tab { flex: 1; }
  .student-me-profile { align-items: flex-start; flex-wrap: wrap; }
  .student-me-profile .btn { width: 100%; }
  .student-update-main { flex-direction: column; }
  .student-update-message { grid-template-columns: 1fr; gap: 3px; }
}

/* ===== 内测版：身份切换器与在线化文案 ===== */
.role-switch {
  display: inline-flex; gap: 3px; padding: 3px;
  border: 1px solid #dbe7df; border-radius: 999px; background: #f4faf7;
}
.role-switch-btn {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #4c6b5d; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.role-switch-btn:hover { background: #e4f3ec; }
.role-switch-btn.active { background: var(--brand); color: #fff; }
.role-switch-btn:disabled { opacity: .55; cursor: wait; }
.role-switch-btn[hidden] { display: none; }
.auth-shell .hint code { background: #eef5f1; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
@media (max-width: 900px) {
  .nav-actions { flex-wrap: wrap; row-gap: 8px; }
  .role-switch { order: 5; }
}
@media (max-width: 680px) {
  .nav-actions .user-chip > div { display: none; }
  .local-badge { display: none; }
}
