/* ================= 幼儿发展评价平台 · 设计系统 v3 ================= */
:root {
  --brand: #2f7cf6;
  --brand-2: #5ea0ff;
  --brand-deep: #1b57b8;
  --brand-soft: #eaf2ff;
  --brand-ink: #f3f7ff;
  --ok: #16a34a;
  --ok-soft: #e8f8ee;
  --warn: #f59e0b;
  --warn-soft: #fff7e6;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --ink: #0e1626;
  --ink-2: #45536b;
  --ink-3: #8894a8;
  --line: #e6eaf2;
  --line-2: #eef2f8;
  --bg: #f5f7fb;
  --card: #ffffff;
  --r-xs: 7px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 26px;
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 6px rgba(16, 24, 40, .05);
  --sh: 0 6px 18px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
  --sh-lg: 0 24px 48px -16px rgba(16, 24, 40, .22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.012em; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }
::selection { background: rgba(47, 124, 246, .18); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3dbe8; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #bcc7d8; background-clip: padding-box; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 17px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 650; cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
  white-space: nowrap; font-size: 14px; line-height: 1.4;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn:hover { background: color-mix(in srgb, var(--brand) 88%, #000); box-shadow: 0 4px 12px -2px rgba(47, 124, 246, .4); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn.ghost:hover { border-color: var(--brand-2); color: var(--brand-deep); background: var(--brand-ink); box-shadow: var(--sh-xs); }
.btn.soft { background: var(--brand-soft); color: var(--brand-deep); box-shadow: none; }
.btn.soft:hover { background: #dfeafe; }
.btn.ok { background: var(--ok); }
.btn.warn { background: var(--warn); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-xs); }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: var(--r); }
.btn.block { width: 100%; }

.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
  font-size: 14.5px;
}
.input::placeholder, .textarea::placeholder { color: #a8b3c4; }
.input:hover, .select:hover, .textarea:hover { border-color: #d6dfec; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(47, 124, 246, .13); background: #fff; }
.textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 650; margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); border: 1px solid rgba(230, 234, 242, .9); }
.card-pad { padding: 20px 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--brand-soft); color: var(--brand-deep); line-height: 1.5;
}
.badge.ok { background: var(--ok-soft); color: #12803c; }
.badge.warn { background: var(--warn-soft); color: #a86a00; }
.badge.danger { background: var(--danger-soft); color: #b91c1c; }
.badge.gray { background: #f1f3f7; color: var(--ink-2); }

.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(14, 22, 38, .46); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px); animation: fade .18s ease;
}
.modal {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 520px;
  max-height: 88vh; overflow: auto; box-shadow: var(--sh-lg); animation: pop .22s cubic-bezier(.2, .9, .3, 1.15);
}
.modal-hd { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-bd { padding: 20px 22px; }
.modal-ft { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff; }
.x-btn { border: none; background: #f1f3f7; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--ink-2); font-size: 15px; line-height: 1; transition: .15s; display: inline-grid; place-items: center; }
.x-btn:hover { background: #e4e8f0; color: var(--ink); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- 提示条 ---------- */
#toastWrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 20px; border-radius: 999px; background: #1f2937; color: #fff; font-size: 14px; font-weight: 550;
  box-shadow: 0 12px 30px -8px rgba(16, 24, 40, .45); animation: toastIn .24s cubic-bezier(.2, .9, .3, 1.2); max-width: 90vw;
}
.toast.ok { background: #12803c; } .toast.err { background: #b91c1c; } .toast.warn { background: #a86a00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96) } to { opacity: 1; transform: none } }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side {
  color: #fff; padding: 54px 52px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--brand-2) 0%, var(--brand) 42%, var(--brand-deep) 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 70%);
  right: -150px; bottom: -170px;
}
.auth-side::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); right: 80px; top: -120px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 17px; position: relative; }
.auth-logo { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(6px); }
.auth-title { font-size: 36px; line-height: 1.26; font-weight: 800; margin: 26px 0 14px; position: relative; letter-spacing: -.02em; }
.auth-desc { color: rgba(255, 255, 255, .84); max-width: 430px; font-size: 15px; position: relative; }
.auth-feats { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; position: relative; }
.auth-feat { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .93); font-size: 14px; }
.auth-feat i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fbfcfe; }
.auth-card { width: 100%; max-width: 392px; }
.auth-card h2 { font-size: 25px; margin-bottom: 6px; letter-spacing: -.02em; }
.auth-tabs { display: flex; background: #eef2f8; border-radius: 11px; padding: 4px; margin: 20px 0 22px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 8px; font-weight: 650; color: var(--ink-2); cursor: pointer; font-size: 14px; transition: .16s; }
.auth-tabs button.on { background: #fff; color: var(--brand-deep); box-shadow: var(--sh-sm); }

/* ---------- 应用外壳 ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; overflow-x: hidden; }
.app > .scrim { grid-column: 1 / -1; }
.app > .side { grid-column: 1; grid-row: 1; }
.app > .app-main-col { grid-column: 2; grid-row: 1; }
.app-main-col { min-width: 0; display: flex; flex-direction: column; }
.main { padding: 26px 30px 60px; max-width: 1200px; width: 100%; min-width: 0; }
.side {
  background: #fff; border-right: 1px solid var(--line); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh;
  width: 236px; min-width: 236px; max-width: 236px; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font-weight: 800; font-size: 15px; }
.side-logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  font-size: 14px; font-weight: 800; background: linear-gradient(140deg, var(--brand-2), var(--brand));
  box-shadow: 0 4px 10px -3px rgba(47, 124, 246, .5); flex: none;
}
.side-brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 620; font-size: 14px; cursor: pointer; transition: .15s; position: relative;
}
.nav-item:hover { background: #f5f8fd; color: var(--brand-deep); }
.nav-item.on { background: var(--brand-soft); color: var(--brand-deep); }
.nav-item.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; opacity: .8; flex: none; }
.nav-item:hover i, .nav-item.on i { opacity: 1; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: #fafbfd; }
.user-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 750; font-size: 13px; flex: none; }

.page-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-hd h1 { font-size: 24px; letter-spacing: -.025em; }
.page-hd p { margin: 5px 0 0; color: var(--ink-3); font-size: 13.5px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi {
  background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-sm);
  border: 1px solid rgba(230, 234, 242, .9); position: relative; overflow: hidden; transition: .18s;
}
.kpi:hover { box-shadow: var(--sh); transform: translateY(-1px); }
.kpi .k { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; font-family: var(--font-num); }
.kpi .v small { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.kpi::after { content: ""; position: absolute; right: -26px; top: -26px; width: 76px; height: 76px; border-radius: 50%; background: var(--brand-soft); opacity: .6; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: .14s;
}
.list-item:hover { background: #f8fbff; }
.list-item:last-child { border-bottom: none; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 999px; transition: width .4s ease; }

.empty { text-align: center; color: var(--ink-3); padding: 48px 16px; }
.empty .ico { font-size: 38px; opacity: .45; margin-bottom: 8px; }

/* 评分 */
.grade-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.grade-num { font-weight: 800; color: var(--brand-deep); background: var(--brand-soft); border-radius: 9px; text-align: center; padding: 6px 0; font-size: 13px; font-family: var(--font-num); }
.grade-opts { display: flex; gap: 8px; flex-wrap: wrap; }
/* 登录页/工作台小图标 */
.auth-logo svg { width: 22px; height: 22px; }
.auth-feat i svg { width: 12px; height: 12px; }
.mobile-bar b { font-size: 15px; }

.opt {
  padding: 7px 14px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ink-2); transition: .14s; user-select: none;
}
.opt:hover { border-color: var(--brand-2); color: var(--brand-deep); background: var(--brand-ink); }
.opt.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px -2px rgba(47, 124, 246, .5); }
.opt.on.g1 { background: #16a34a; border-color: #16a34a; box-shadow: 0 2px 8px -2px rgba(22, 163, 74, .5); }
.opt.on.g2 { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 2px 8px -2px rgba(245, 158, 11, .5); }
.opt.on.g3 { background: #ef4444; border-color: #ef4444; box-shadow: 0 2px 8px -2px rgba(239, 68, 68, .5); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: none; background: none; padding: 10px 14px; font-weight: 650; color: var(--ink-3);
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; transition: .15s;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button.on { color: var(--brand-deep); border-bottom-color: var(--brand); }

table.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.tb th, table.tb td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.tb th { font-size: 12.5px; color: var(--ink-3); font-weight: 700; background: #fafbfd; position: sticky; top: 0; }
table.tb tr:hover td { background: #fbfdff; }

/* 移动端 */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 900;
    transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .9, .3, 1); box-shadow: var(--sh-lg);
  }
  .side.open { transform: none; }
  .main { padding: 16px 14px 80px; }
  .page-hd h1 { font-size: 20px; }
  .mobile-bar {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 800; backdrop-filter: blur(8px);
  }
  .scrim { position: fixed; inset: 0; background: rgba(14, 22, 38, .42); z-index: 850; display: none; }
  .scrim.on { display: block; }
}

/* 打印 */
@media print {
  .side, .mobile-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
}

/* ================= 平台首页（landing） ================= */
.landing-wrap { max-width: 1180px; }
.landing .kg-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; }
.landing {
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(94, 160, 255, .28), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(47, 124, 246, .16), transparent 58%),
    linear-gradient(180deg, #f7faff 0%, #f3f6fc 52%, #eef3fb 100%);
  min-height: 100vh;
}
.landing-wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px 64px; }

/* 顶部导航 */
.l-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 0;
}
.l-brand { display: flex; align-items: center; gap: 11px; }
.l-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-2), var(--brand) 60%, var(--brand-deep));
  box-shadow: 0 8px 18px -8px rgba(47, 124, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.l-mark svg { width: 22px; height: 22px; display: block; }
.l-brand b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; display: block; line-height: 1.25; }
.l-brand span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.l-top-links { display: flex; align-items: center; gap: 8px; }
.l-link {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 8px 13px; border-radius: 999px;
  transition: .16s; border: 1px solid transparent;
}
.l-link:hover { background: #fff; border-color: var(--line); color: var(--brand-deep); box-shadow: var(--sh-xs); }
.l-link.solid { background: #fff; border-color: var(--line); box-shadow: var(--sh-xs); color: var(--ink); }
.l-link.solid:hover { border-color: var(--brand-2); color: var(--brand-deep); }

/* Hero */
.l-hero { text-align: center; padding: 56px 0 34px; position: relative; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-deep); background: rgba(255, 255, 255, .82); border: 1px solid rgba(47, 124, 246, .22);
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  backdrop-filter: blur(6px);
}
.l-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }
.l-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800;
  margin: 20px 0 14px; color: var(--ink);
}
.l-hero h1 em {
  font-style: normal; background: linear-gradient(120deg, var(--brand) 10%, #7a5cff 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.l-hero p { max-width: 600px; margin: 0 auto; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }

/* 入口卡片 */
.kg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 38px; }
.kg-card.main { flex-direction: column; align-items: stretch; justify-content: space-between; min-height: 152px; }
.kg-card.main .kg-ava { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; }
.kg-card.main .kg-name { font-size: 17px; margin-top: 12px; }
.kg-card.main .kg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.kg-card .kg-type { font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.kg-card {
  --c: var(--brand);
  background: #fff; border-radius: 20px; padding: 22px; display: flex; align-items: center; gap: 16px;
  border: 1px solid rgba(230, 234, 242, .95); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -18px rgba(16, 24, 40, .3);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s, border-color .22s;
  position: relative; overflow: hidden; color: var(--ink); text-decoration: none;
}
.kg-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c); opacity: .9;
}
.kg-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--c); opacity: .06; transition: .3s;
}
.kg-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px -22px rgba(16, 24, 40, .4); border-color: color-mix(in srgb, var(--c) 32%, #fff); }
.kg-card:hover::after { opacity: .1; transform: scale(1.15); }
.kg-ava {
  width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; letter-spacing: .02em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 20%, #fff);
}
.kg-body { flex: 1; min-width: 0; }
.kg-name { font-size: 16px; font-weight: 750; letter-spacing: -.01em; line-height: 1.4; }
.kg-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.kg-tag { font-size: 11.5px; font-weight: 650; color: var(--ink-3); background: #f4f6fa; padding: 2px 8px; border-radius: 6px; }
.kg-go {
  font-size: 13px; font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: gap .2s;
}
.kg-card:hover .kg-go { gap: 8px; }

/* 特性条 */
.l-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 46px; }
.l-feat {
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px; padding: 18px; backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.l-feat .ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 11px;
  background: #fff; box-shadow: var(--sh-xs); font-size: 16px;
}
.l-feat b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.l-feat p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.l-foot { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 44px 0 0; }
.l-foot a { color: var(--ink-3); }
.l-foot a:hover { color: var(--brand); }

.l-empty {
  text-align: center; padding: 64px 20px; background: #fff; border-radius: 20px;
  border: 1px dashed var(--line); color: var(--ink-3); grid-column: 1 / -1;
}
.l-empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }

@media (max-width: 760px) {
  .landing-wrap { padding: 0 16px 48px; }
  .l-hero { padding: 34px 0 22px; }
  .l-hero p { font-size: 14.5px; }
  .kg-grid { margin-top: 26px; gap: 12px; }
  .kg-card { padding: 18px; border-radius: 17px; }
  .l-feats { margin-top: 30px; }
  .l-top-links .l-link:not(.solid) { display: none; }
}

/* ================= 园所首页（家长端） ================= */
.p-head {
  background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(230, 234, 242, .9);
  position: sticky; top: 0; z-index: 60; backdrop-filter: saturate(180%) blur(14px);
}
.p-head-inner { max-width: 900px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.p-logo {
  width: 42px; height: 42px; border-radius: 13px; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; flex: none;
  background: linear-gradient(145deg, var(--brand-2), var(--brand) 70%, var(--brand-deep));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 80%, transparent);
}
.p-kg { font-weight: 800; font-size: 15.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.p-login {
  font-size: 13px; font-weight: 650; color: var(--ink-2); background: #f3f6fb; padding: 8px 14px;
  border-radius: 999px; transition: .16s; white-space: nowrap;
}
.p-login:hover { background: var(--brand-soft); color: var(--brand-deep); }

.p-hero {
  color: #fff; padding: 44px 20px 74px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(255, 255, 255, .3), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 46%, var(--brand-deep) 100%);
}
.p-hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); right: -110px; bottom: -200px;
}
.p-hero::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); left: -70px; top: -90px;
}
.p-hero h1 { font-size: 27px; font-weight: 800; margin-bottom: 9px; position: relative; letter-spacing: -.025em; }
.p-hero p { margin: 0 auto; max-width: 540px; color: rgba(255, 255, 255, .88); font-size: 14.5px; position: relative; line-height: 1.75; }
.p-notice {
  margin: 20px auto 0; max-width: 580px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 13px; padding: 11px 15px; font-size: 13px; text-align: left; position: relative;
  backdrop-filter: blur(6px); line-height: 1.65;
}

.p-main { max-width: 900px; margin: -44px auto 0; padding: 0 20px 60px; position: relative; z-index: 5; }
.p-card {
  background: #fff; border-radius: var(--r-xl); padding: 26px 24px; margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 20px 44px -28px rgba(16, 24, 40, .38);
  border: 1px solid rgba(230, 234, 242, .8);
}
.p-step { font-weight: 750; font-size: 15px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.p-step-n {
  width: 24px; height: 24px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; background: linear-gradient(140deg, var(--brand-2), var(--brand)); flex: none;
  box-shadow: 0 3px 8px -3px color-mix(in srgb, var(--brand) 70%, transparent);
}
.p-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 11px; }
.p-class {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 12px; cursor: pointer;
  text-align: center; transition: .16s; background: #fff; position: relative;
}
.p-class:hover { border-color: var(--brand-2); background: var(--brand-ink); transform: translateY(-1px); }
.p-class.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--brand) 14%, transparent);
}
.p-class.on::after {
  content: "✓"; position: absolute; right: 8px; top: 7px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 700;
}
.p-class b { display: block; font-size: 15px; letter-spacing: -.01em; }
.p-class small { color: var(--ink-3); font-size: 12px; }
.p-loading { color: var(--ink-3); font-size: 14px; padding: 12px 0; }
.p-form { display: grid; grid-template-columns: 120px 1fr; gap: 14px; margin-bottom: 18px; }
.p-field label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 650; margin-bottom: 6px; }
.p-foot { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 0 20px 40px; }
.p-foot a { color: var(--ink-3); }

/* 家长端结果 */
.r-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.r-ava {
  width: 54px; height: 54px; border-radius: 17px; color: #fff; display: grid; place-items: center;
  font-size: 17px; font-weight: 800; flex: none;
  background: linear-gradient(140deg, var(--brand-2), var(--brand) 70%, var(--brand-deep));
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 90%, transparent);
}
.r-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.r-meta { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.r-tabs { margin: 16px 0 4px; }
.r-item { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.r-item:last-child { border-bottom: none; }
.r-q { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; font-weight: 600; }
.r-c { font-size: 14.5px; font-weight: 620; margin-bottom: 8px; line-height: 1.6; }
.r-scores { display: flex; gap: 7px; flex-wrap: wrap; }
.r-pill { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #f1f3f7; color: var(--ink-2); }
.r-pill.g1 { background: var(--ok-soft); color: #12803c; }
.r-pill.g2 { background: var(--warn-soft); color: #a86a00; }
.r-pill.g3 { background: var(--danger-soft); color: #b91c1c; }
.r-pill.self { background: var(--brand-soft); color: var(--brand-deep); }
.r-block { background: #f8fafd; border: 1px solid var(--line-2); border-radius: 15px; padding: 16px 18px; margin-top: 14px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.r-block h4 { font-size: 13.5px; color: var(--brand-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; white-space: normal; }
.r-empty { color: var(--ink-3); font-size: 13.5px; padding: 10px 0; }

@media (max-width: 640px) {
  .p-hero { padding: 32px 16px 62px; }
  .p-hero h1 { font-size: 22px; }
  .p-main { padding: 0 14px 50px; margin-top: -40px; }
  .p-card { padding: 20px 17px; border-radius: 21px; }
  .p-form { grid-template-columns: 1fr; }
  .p-class-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
  .p-class { padding: 12px 8px; border-radius: 12px; }
  .p-class b { font-size: 14px; }
}
