:root {
  --navy-950: #071a2f;
  --navy-900: #0b2747;
  --navy-800: #123b63;
  --blue-600: #1769aa;
  --teal-600: #07867a;
  --teal-100: #dff5f1;
  --orange-500: #f27522;
  --orange-100: #fff0e4;
  --ink: #152536;
  --muted: #657487;
  --line: #dfe7ee;
  --paper: #f6f8fb;
  --white: #ffffff;
  --danger: #c2413a;
  --shadow: 0 12px 32px rgba(8, 35, 63, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 24px 18px;
  color: #fff; background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 26px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(145deg, var(--orange-500), #ffae54); color: white; font-weight: 900;
  box-shadow: 0 8px 24px rgba(242, 117, 34, .28);
}
.brand strong { display: block; font-size: 1.06rem; }
.brand small { display: block; color: #a9c0d8; font-size: .76rem; letter-spacing: .06em; }
.nav-label { margin: 24px 12px 8px; color: #7999b8; font-size: .72rem; letter-spacing: .16em; }
.nav-list { display: grid; gap: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: #cfe0f1; text-decoration: none; transition: .18s ease;
}
.nav-link:hover { color: white; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link.active { color: white; background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 var(--orange-500); }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); font-weight: 800; font-size: .78rem; }
.nav-group { border-radius: 12px; }
.nav-group-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #cfe0f1; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; }
.nav-group-toggle:hover, .nav-group.active > .nav-group-toggle { color: white; background: rgba(255,255,255,.08); }
.nav-chevron { margin-left: auto; font-size: 1.3rem; line-height: 1; transition: transform .18s ease; }
.nav-group.open .nav-chevron { transform: rotate(90deg); }
.nav-submenu { display: none; gap: 4px; margin: 4px 0 4px 25px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.16); }
.nav-group.open .nav-submenu { display: grid; }
.nav-sublink { padding: 8px 10px; font-size: .9rem; }
.nav-sublink .nav-icon { width: 24px; height: 24px; font-size: .7rem; }

.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 14px clamp(18px, 3vw, 42px); background: rgba(246, 248, 251, .92);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(203, 215, 226, .7);
}
.menu-toggle {
  display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 11px;
  background: white; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--navy-900); }
.mobile-overlay { position: fixed; inset: 0; z-index: 39; background: rgba(3, 18, 34, .5); backdrop-filter: blur(2px); }
body.menu-open { overflow: hidden; }
.topbar-title { font-weight: 800; font-size: 1.05rem; }
.topbar-meta { color: var(--muted); font-size: .86rem; }
.topbar-account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-account form { margin: 0; }
.account-copy { display: grid; text-align: right; line-height: 1.25; }
.account-copy strong { font-size: .86rem; }
.account-copy small { max-width: 240px; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.page { max-width: 1460px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 42px) 70px; }

.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242,117,34,.16), transparent 30%),
    radial-gradient(circle at 86% 80%, rgba(23,105,170,.18), transparent 34%),
    var(--navy-950);
}
.auth-shell { width: min(960px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 24px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.auth-brand { display: flex; align-items: flex-start; gap: 18px; padding: clamp(38px, 7vw, 80px); color: white; background: linear-gradient(145deg, var(--navy-900), var(--blue-600)); }
.auth-brand .brand-mark { flex: 0 0 auto; }
.auth-brand strong { display: block; margin: 3px 0 12px; font-size: clamp(1.35rem, 3vw, 2rem); }
.auth-brand p { margin: 0; color: #d4e6f6; }
.auth-card { padding: clamp(30px, 5vw, 56px); }
.auth-card h1 { margin: 7px 0 22px; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.auth-card .field { margin-bottom: 15px; }
.auth-error { margin-bottom: 18px; padding: 12px 14px; color: #8d2f29; border: 1px solid #f0c6c3; border-radius: 11px; background: #fff0ef; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: .9rem; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { color: var(--orange-500); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.2; letter-spacing: -.025em; }
h2 { margin-bottom: 14px; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.35; }
h3 { margin-bottom: 9px; font-size: 1.05rem; line-height: 1.45; }
.lead { max-width: 820px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.accent { color: white; background: linear-gradient(145deg, var(--navy-900), var(--navy-800)); border-color: transparent; }
.card.accent .muted { color: #bdd0e2; }
.stat-card { position: relative; overflow: hidden; min-height: 145px; }
.stat-card::after { content: ""; position: absolute; right: -28px; bottom: -45px; width: 120px; height: 120px; border-radius: 50%; background: rgba(23,105,170,.08); }
.stat-label { color: var(--muted); font-size: .83rem; font-weight: 700; }
.stat-value { margin: 9px 0 2px; font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.stat-foot { color: var(--muted); font-size: .8rem; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

.pill, .tag {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-weight: 700; line-height: 1;
}
.pill { padding: 8px 12px; color: var(--navy-800); background: #eaf2f9; font-size: .78rem; }
.pill.orange { color: #a8420c; background: var(--orange-100); }
.pill.teal { color: #08685f; background: var(--teal-100); }
.tag { padding: 6px 9px; color: var(--muted); background: #f0f3f6; font-size: .72rem; }
.tag.stage { color: var(--navy-800); background: #e7f0f8; }
.tag.alert { color: #9b3b35; background: #fdeceb; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px;
  border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 800; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { color: white; background: var(--navy-800); box-shadow: 0 8px 20px rgba(18,59,99,.18); }
.button.secondary { color: var(--navy-800); background: white; border-color: #cbd9e5; }
.button.orange { color: white; background: var(--orange-500); }
.button.ghost { color: var(--blue-600); background: #edf5fb; }
.button.small-btn { min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(23,105,170,.25); outline-offset: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #496176; background: #f3f6f9; font-size: .8rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }

.priority { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; font-weight: 900; }
.priority.a { color: #077268; background: var(--teal-100); }
.priority.b { color: #a54d16; background: var(--orange-100); }
.priority.c { color: #556577; background: #eef1f4; }

.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.workflow-step { position: relative; padding: 16px 14px; color: white; border-radius: 14px; background: var(--navy-800); }
.workflow-step:nth-child(2n) { background: var(--blue-600); }
.workflow-step strong { display: block; margin-bottom: 4px; }
.workflow-step small { color: #d9e9f8; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
.timeline-marker { position: relative; color: var(--orange-500); font-weight: 900; }
.timeline-marker::after { content: ""; position: absolute; top: 28px; left: 20px; bottom: -12px; width: 2px; background: var(--line); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-content { padding: 0 0 24px; }

.callout { padding: 18px 20px; border-left: 4px solid var(--orange-500); border-radius: 0 14px 14px 0; background: var(--orange-100); }
.callout.info { border-left-color: var(--blue-600); background: #eaf3fa; }
.callout.danger { border-left-color: var(--danger); background: #fff0ef; }

.image-panel { overflow: hidden; padding: 0; }
.image-panel img { display: block; width: 100%; height: auto; }

.filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(150px, .6fr)) auto; gap: 12px; align-items: end; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.field input, .field select {
  width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: white;
  border: 1px solid #cfdbe5; border-radius: 11px;
}
.script-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.script-card { display: flex; flex-direction: column; min-height: 260px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.script-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.script-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.script-context { margin-bottom: 12px; color: var(--muted); font-size: .83rem; }
.script-text { flex: 1; padding: 15px 16px; border-radius: 12px; background: #f4f7fa; white-space: pre-wrap; }
.script-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.empty-state { display: none; padding: 50px 20px; text-align: center; color: var(--muted); }
.result-count { color: var(--muted); font-size: .85rem; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { min-height: 310px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #edf2f6; }
.kanban-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-weight: 900; }
.kanban-count { display: inline-grid; min-width: 27px; height: 27px; place-items: center; border-radius: 9px; color: var(--muted); background: white; font-size: .78rem; }
.lead-card { padding: 13px; margin-top: 10px; border: 1px solid #dce5ed; border-radius: 12px; background: white; box-shadow: 0 4px 12px rgba(8,35,63,.05); }
.lead-card strong { display: block; }
.lead-card small { color: var(--muted); }

.metric-list { display: grid; gap: 12px; }
.metric-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr) 2fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border: 0; }
.formula { color: var(--navy-800); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86rem; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 11px 16px; color: white;
  background: var(--navy-950); border-radius: 11px; box-shadow: var(--shadow); opacity: 0;
  transform: translateY(16px); pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-tone="error"] { background: var(--danger); }
.crud-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.crud-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.crud-filters .field { min-width: 180px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.actions form { margin: 0; }
.status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e8f1f8; color: var(--navy-800); font-size: .75rem; font-weight: 800; }
.status-badge.won, .status-badge.attended { color: #08685f; background: var(--teal-100); }
.status-badge.lost, .status-badge.no_show { color: #9b3b35; background: #fdeceb; }
.data-empty { padding: 48px 20px !important; color: var(--muted); text-align: center; }
dialog.crud-dialog { width: min(760px, calc(100vw - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(4,22,42,.28); overflow: hidden; }
dialog.crud-dialog::backdrop { background: rgba(3,18,34,.58); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: white; background: var(--navy-900); }
.dialog-head h2 { margin: 0; font-size: 1.25rem; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.12); cursor: pointer; font-size: 1.25rem; }
.dialog-body { max-height: calc(90vh - 140px); padding: 22px; overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .field.full { grid-column: 1 / -1; }
.field textarea { width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid #cfdbe5; border-radius: 11px; resize: vertical; }
.field input[type="checkbox"] { width: auto; min-height: auto; }
.field-hint { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line); background: #f7f9fb; }
.loading-cell { padding: 46px !important; color: var(--muted); text-align: center; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.record-meta { color: var(--muted); font-size: .78rem; }
.source-list { margin: 0; padding-left: 20px; }
.source-list li { margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-600); font-weight: 900; }
.warning-list li::before { content: "!"; color: var(--orange-500); }
.compact-list { display: grid; }
.compact-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.compact-item:last-child { border-bottom: 0; }
.compact-item > div { display: grid; }
.compact-item > div:last-child { justify-items: end; text-align: right; }
.compact-item small { color: var(--muted); }
.admin-sidebar { background: linear-gradient(180deg, #111b2d, #183958); }
.admin-auth-brand { background: linear-gradient(145deg, #111b2d, #285878); }
.admin-editor { border-top: 4px solid var(--orange-500); }
.permission-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.permission-section h3 { margin-bottom: 12px; }
.permission-group { margin-top: 16px; }
.permission-group > strong { display: block; margin-bottom: 8px; color: var(--navy-800); }
.checkbox-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.checkbox-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.check-card { display: flex; align-items: flex-start; gap: 9px; min-height: 54px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; cursor: pointer; }
.check-card:has(input:checked) { border-color: #91b7d6; background: #edf5fb; }
.check-card input { margin-top: 5px; accent-color: var(--blue-600); }
.check-card span { display: grid; }
.check-card small { color: var(--muted); font-size: .74rem; }
.inline-actions { position: static; margin: 24px -22px -22px; border-radius: 0 0 var(--radius) var(--radius); }
.role-list { display: grid; gap: 10px; }
.role-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }
.role-item small { display: block; color: var(--muted); }
.role-item p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

/* 课程顾问入职前 7 天速成手册 */
.manual-hero {
  position: relative; overflow: hidden; padding: clamp(24px, 4vw, 42px); color: white;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800) 58%, #1a6f9f);
}
.manual-hero::after {
  content: "7 DAYS"; position: absolute; right: 24px; bottom: -22px; color: rgba(255,255,255,.065);
  font-size: clamp(4.5rem, 11vw, 9rem); font-weight: 950; line-height: 1; letter-spacing: -.08em; pointer-events: none;
}
.manual-hero > * { position: relative; z-index: 1; }
.manual-hero .lead { color: #d3e4f1; }
.manual-hero .eyebrow { color: #ffb27e; }
.manual-hero .actions { margin-top: 22px; }
.manual-jump {
  display: flex; flex-wrap: wrap; gap: 9px; position: sticky; top: 74px; z-index: 15; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(8,35,63,.08);
  backdrop-filter: blur(10px);
}
.manual-jump a { padding: 8px 11px; color: var(--navy-800); border-radius: 9px; background: #edf4f9; font-size: .8rem; font-weight: 800; text-decoration: none; }
.manual-jump a:hover { color: white; background: var(--blue-600); }
.manual-principles { display: block; }
.manual-principles ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; padding-left: 22px; }
.manual-principles li { padding-right: 10px; }
.day-grid { display: grid; gap: 14px; }
.manual-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.manual-detail summary {
  display: flex; align-items: center; gap: 13px; padding: 18px 20px; cursor: pointer; color: var(--navy-900);
  font-weight: 900; list-style: none; background: linear-gradient(90deg,#f5f9fc,#fff);
}
.manual-detail summary::-webkit-details-marker { display: none; }
.manual-detail summary::after { content: "+"; margin-left: auto; color: var(--blue-600); font-size: 1.35rem; }
.manual-detail summary > span { flex: 0 0 auto; padding: 6px 9px; color: white; border-radius: 8px; background: var(--navy-800); font-size: .75rem; letter-spacing: .05em; }
.manual-detail summary > strong { flex: 0 1 auto; }
.manual-detail summary > em { margin-left: auto; color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 600; }
.manual-detail summary::after { flex: 0 0 auto; }
.manual-detail[open] summary::after { content: "−"; }
.manual-detail[open] summary { border-bottom: 1px solid var(--line); background: #edf5fb; }
.manual-detail-body { padding: 20px; }
.manual-detail-body > :last-child { margin-bottom: 0; }
.manual-detail-body .grid { margin-top: 14px; }
.manual-script-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.script-copy-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.script-copy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; }
.script-copy-head h3 { margin: 0; }
.script-copy-text { flex: 1; margin: 0 18px 18px; padding: 16px; color: #243b50; border: 1px dashed #c8d8e5; border-radius: 12px; background: #f6f9fb; white-space: pre-wrap; line-height: 1.75; }
.objection-list { display: grid; gap: 13px; }
.objection-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.objection-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; background: #f4f7fa; }
.objection-title h3 { margin: 0; }
.objection-card .script-copy-text { margin-top: 16px; }
.wechat-timeline .timeline-item { grid-template-columns: 112px minmax(0,1fr); }
.wechat-timeline .timeline-content { min-width: 0; }
.review-template { padding: 18px; color: #dceaf5; border-radius: 14px; background: var(--navy-900); white-space: pre-wrap; line-height: 1.8; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }

/* 吴越人家校区外拓作战地图 */
.battle-hero { align-items: center; padding: clamp(24px,4vw,40px); color: white; border-radius: 22px; background: linear-gradient(135deg,#09233e,#124d79 65%,#197f8f); box-shadow: var(--shadow); }
.battle-hero .lead { color: #d5e8f2; }
.battle-hero .eyebrow { color: #ffb37e; }
.battle-hero .actions { flex: 0 0 auto; }
.battle-overview { grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); }
.battle-rings-card { overflow: hidden; }
.battle-rings { position: relative; width: min(100%,620px); aspect-ratio: 1.7/1; margin: 8px auto 0; border-radius: 24px; background: radial-gradient(circle at center,rgba(23,105,170,.12) 0 12%,transparent 12.5% 23%,rgba(23,105,170,.08) 23.5% 35%,transparent 35.5% 48%,rgba(242,117,34,.07) 48.5% 62%,transparent 62.5%); }
.battle-ring { position: absolute; inset: 50% auto auto 50%; border: 1px dashed #88aac6; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.battle-ring > span { position: absolute; top: 5px; left: 50%; padding: 3px 7px; color: var(--muted); border-radius: 999px; background: white; transform: translateX(-50%); font-size: .7rem; font-weight: 900; }
.ring-5 { width: 96%; height: 96%; }.ring-3 { width: 72%; height: 72%; }.ring-2 { width: 51%; height: 51%; }.ring-1 { width: 29%; height: 29%; }
.battle-center { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; min-width: 112px; min-height: 64px; place-content: center; padding: 8px 12px; color: white; border: 4px solid white; border-radius: 18px; background: var(--orange-500); box-shadow: 0 10px 25px rgba(8,35,63,.2); text-align: center; transform: translate(-50%,-50%); }
.battle-center small { color: #fff4ec; }
.map-dot { position: absolute; z-index: 4; max-width: 112px; padding: 5px 8px; color: var(--navy-900); border: 1px solid #c5d8e6; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 4px 12px rgba(8,35,63,.1); font-size: .7rem; font-weight: 800; line-height: 1.25; }
.dot-a { left: 37%; top: 54%; }.dot-b { left: 39%; top: 22%; }.dot-c { left: 66%; top: 36%; }.dot-d { left: 22%; top: 31%; }.dot-e { left: 14%; top: 52%; }.dot-f { left: 25%; top: 77%; }.dot-g { left: 72%; top: 68%; }.dot-h { left: 8%; top: 84%; }
.priority-route { display: grid; gap: 13px; margin: 0 0 18px; padding: 0; list-style: none; }
.priority-route li { display: flex; gap: 12px; align-items: flex-start; }
.priority-route li > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: white; border-radius: 10px; background: var(--navy-800); font-weight: 900; }
.priority-route li div { display: grid; }
.priority-route small { color: var(--muted); }
.battle-filters { display: grid; grid-template-columns: minmax(220px,1.5fr) repeat(2,minmax(150px,.7fr)) auto; gap: 11px; align-items: end; margin-bottom: 16px; }
.battle-table table { min-width: 1650px; }
.battle-table td { max-width: 220px; }
.battle-table small { color: var(--muted); }
.fit-stars { color: var(--orange-500); white-space: nowrap; letter-spacing: .03em; }
.action-plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.action-plan { display: flex; flex-direction: column; }
.action-plan-head { display: flex; align-items: center; gap: 12px; }
.action-plan-head h3 { margin: 0; }
.action-plan-head small { color: var(--muted); }
.action-copy { flex: 1; margin: 15px 0; padding: 15px; color: #294154; border-radius: 12px; background: #f2f6f9; white-space: pre-wrap; line-height: 1.75; }
.gift-matrix { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.gift-matrix > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.gift-matrix strong { color: var(--navy-800); }
.gift-matrix small { color: var(--muted); }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand-copy, .nav-link span:not(.nav-icon), .nav-label, .nav-group-label, .nav-chevron { display: none; }
  .nav-link, .nav-group-toggle { justify-content: center; }
  .nav-submenu { margin-left: 0; padding-left: 0; border-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(286px, 86vw); height: 100vh; padding: 20px 14px;
    overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 48px rgba(2,18,34,.25);
  }
  .sidebar.open { transform: translateX(0); }
  .brand { justify-content: flex-start; margin: 0 6px 24px; }
  .brand-copy, .nav-label, .nav-group-label, .nav-chevron, .nav-link span:not(.nav-icon) { display: block; }
  .nav-list { display: grid; gap: 6px; overflow: visible; }
  .nav-link { justify-content: flex-start; padding: 11px 12px; }
  .nav-group-toggle { justify-content: flex-start; }
  .nav-submenu { margin-left: 25px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.16); }
  .nav-icon { width: 28px; height: 28px; }
  .topbar { position: sticky; min-height: 62px; justify-content: flex-start; gap: 12px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .topbar-meta { display: none; }
  .account-copy small { display: none; }
  .auth-page { padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 24px; }
  .auth-brand p { display: none; }
  .page-heading { display: block; }
  .grid-2, .grid-3, .grid-4, .script-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .filters .field:first-child { grid-column: auto; }
  .filters .button { width: 100%; }
  .metric-row { grid-template-columns: 1fr; gap: 3px; }
  .crud-toolbar { display: block; }
  .crud-toolbar > .button { width: 100%; margin-top: 12px; }
  .crud-filters { display: grid; grid-template-columns: 1fr; }
  .crud-filters .field { min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: auto; }
  .dialog-actions { position: sticky; bottom: 0; }
  .checkbox-grid, .checkbox-grid.compact { grid-template-columns: 1fr; }
  .role-item { display: block; }
  .role-item .actions { margin-top: 12px; }
  .manual-principles ol, .manual-script-grid { grid-template-columns: 1fr; }
  .manual-detail summary > em { display: none; }
  .manual-jump { top: 68px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .manual-jump a { flex: 0 0 auto; }
  .wechat-timeline .timeline-item { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .battle-overview, .action-plan-grid { grid-template-columns: 1fr; }
  .battle-filters { grid-template-columns: 1fr; }
  .battle-filters .button { width: 100%; }
  .battle-rings { aspect-ratio: 1.25/1; }
  .map-dot { max-width: 90px; padding: 4px 6px; font-size: .62rem; }
  .dot-h { left: 3%; top: 86%; }
}

@media (max-width: 480px) {
  .page { padding-inline: 14px; }
  .topbar { padding-inline: 16px; }
  .filters { grid-template-columns: 1fr; }
  .filters .field:first-child { grid-column: auto; }
  .workflow { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .topbar-title { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-copy { display: none; }
  .manual-hero { padding: 22px 18px; }
  .manual-hero::after { display: none; }
  .manual-hero .actions .button { width: 100%; }
  .manual-detail summary { align-items: flex-start; padding: 15px; }
  .manual-detail-body { padding: 16px; }
  .script-copy-head { display: block; }
  .script-copy-head .button { width: 100%; margin-top: 10px; }
  .script-copy-text { margin-inline: 14px; }
  .objection-title { display: block; }
  .objection-title .button { width: 100%; margin-top: 10px; }
  .battle-hero .actions { display: grid; }
  .battle-hero .button { width: 100%; }
  .battle-rings { aspect-ratio: 1/1; }
  .battle-center { min-width: 88px; min-height: 56px; font-size: .82rem; }
  .map-dot { max-width: 74px; font-size: .56rem; }
  .gift-matrix { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .topbar, .button, .filters { display: none !important; }
  .app-shell { display: block; }
  .page { max-width: none; padding: 0; }
  .card, .script-card { box-shadow: none; break-inside: avoid; }
  .manual-jump { display: none; }
  .manual-hero { color: #111; border: 2px solid #222; background: white; box-shadow: none; }
  .manual-hero .lead, .manual-hero .eyebrow { color: #333; }
  .manual-hero::after { display: none; }
  .manual-detail { box-shadow: none; break-inside: avoid; }
  .manual-detail:not([open]) .manual-detail-body { display: block; }
  .manual-detail summary::after { display: none; }
  .script-copy-card, .objection-card { box-shadow: none; break-inside: avoid; }
  .manual-script-grid, .manual-principles ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-filters, .battle-rings-card .tag, .battle-table .button { display: none !important; }
  .battle-overview, .action-plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .battle-table table { min-width: 0; font-size: 8pt; }
  .battle-table th, .battle-table td { padding: 6px; }
  .action-plan { break-inside: avoid; box-shadow: none; }
}
