/* 湖畔档案册 · 工作台版式与配色 */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
  --bg: #f5f2e9;
  --surface: #fdfbf5;
  --sidebar: #fcfaf4;
  --ink: #202e26;
  --muted: #515d52;
  --line: #d3d3c4;
  --green: #2c5141;
  --green-hover: #18392c;
  --green-light: #e5e9db;
  --blue: #e7ebe5;
  --field: #faf8f0;
  --tag-neutral: #eeece2;
  --notice-ink: #873d2c;
  --notice-bg: #f5e6d9;
  --focus: #9a4938;
  --radius: 3px;
  --control-radius: 3px;
  --shadow: 0 7px 16px #3b3e2420;
  --gutter: clamp(20px, 4.2vw, 68px);
  --page-width: 1440px;
  --shell-gutter: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  --cover: #e8e8da;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }
.main > *, .detail-main, .detail-aside, .account-layout > * { min-width: 0; }
.page-heading h1 { text-wrap: balance; }
.page-heading p { max-width: none; }
.heading-dot { padding-left: .06em; }
.button { min-height: 44px; }
.button.secondary { margin-top: 0; }
.button.primary:active, .button.secondary:active { transform: translateY(1px); }
input, select, textarea { border-color: var(--line); }
input::placeholder, textarea::placeholder, label { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.stat > span { gap: 4px; align-items: flex-start; }
.stat p, .stat small, .stat > span { color: var(--muted); }
.section-heading h2 { line-height: 1.4; }
.filter-bar { flex-wrap: wrap; }
.filter-bar select { min-width: 0; }
.search-field span { font-size: 0; width: 13px; height: 13px; border: 1.6px solid var(--muted); border-radius: 50%; top: 14px; left: 13px; }
.search-field span::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: var(--muted); left: 9px; top: 10px; transform: rotate(45deg); }
.filter-bar input, .filter-bar select { background: var(--field); }
.view-switch a { min-height: 44px; min-width: 44px; }
.view-switch a:hover, .pagination a:hover { background: var(--green-light); }
.teacher-card { display: flex; flex-direction: column; min-width: 0; box-shadow: none; }
.teacher-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.card-person > div { min-width: 0; }
.card-facts { flex-grow: 1; }
.card-facts dd { text-align: right; }
.card-facts dt, .card-footer, .card-facts dd, .results-footer, .detail-fields dt, .unprovided, .fine-print, .auth-footer, .optional { color: var(--muted); }
.card-footer, .diff-list > div { border-color: var(--line); }
.card-footer { align-items: center; margin-top: auto; }
.card-footer > span:first-child, .table-person small, .timeline-date { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.card-arrow { color: var(--green); }
.tag { background: var(--green-light); color: var(--green-hover); }
.tag-neutral { background: var(--tag-neutral); color: var(--muted); }
.tag-sand { background: var(--notice-bg); color: var(--notice-ink); }
.tag-blue { background: var(--blue); color: var(--green-hover); }
.pending-dot { background: var(--notice-bg); color: var(--notice-ink); padding: 2px 7px; border-radius: var(--control-radius); white-space: nowrap; }
.pending-dot::before { background: currentColor; }
.table-wrap { border-radius: var(--radius); }
th { background: var(--tag-neutral); color: var(--muted); }
tbody tr:hover { background: var(--field); }
.table-person:hover, .text-link:hover, .breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.panel h2 { line-height: 1.5; }
.panel > h1 + p { margin-top: 1em; }
.panel > p + p { margin-top: .7em; }
.panel > p + form { margin-top: 1em; }
.breadcrumb, .breadcrumb a, .detail-nav a, .change-reason, .timeline-date, .reset-link, .pagination a { color: var(--muted); }
.detail-nav a:hover, .reset-link:hover { color: var(--green); }
.soft-panel { background: var(--green-light); border-color: var(--line); }
.soft-panel p, .aside-note { color: var(--muted); border-color: var(--line); }
.soft-panel strong { color: var(--ink); }
.timeline-item { border-color: var(--line); }
.timeline-item::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.save-bar { background: var(--surface); z-index: 3; border-radius: var(--radius); }
.auth-brand small { color: var(--muted); }
.empty-state { border-color: var(--line); }
.page-footer { color: var(--muted); }

.sidebar {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  min-height: 77px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 48px);
  padding: 0 var(--shell-gutter);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.brand { gap: 12px; letter-spacing: .08em; font-size: 1rem; white-space: nowrap; }
.brand-mark {
  border-radius: 2px;
  width: 43px;
  height: 43px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px #aac0a9;
  font: 1.52rem var(--serif);
}
.brand small, .auth-brand small { display: block; margin: 2px 0 0; font-size: .7rem; letter-spacing: .15em; }
.nav-label { margin: 0; color: var(--muted); white-space: nowrap; }
.sidebar nav { display: flex; gap: clamp(5px, 1.1vw, 16px); align-self: stretch; margin: 0; margin-right: auto; }
.nav-item {
  justify-content: center;
  padding: 8px 11px;
  margin: 0;
  color: var(--muted);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}
.nav-icon { display: none; }
.nav-item:hover, .nav-item.active { background: transparent; color: var(--green-hover); border-bottom-color: var(--green); }
.sidebar-foot { margin: 0; padding: 0; color: var(--muted); white-space: nowrap; }
.sidebar-foot p { margin-top: 1px; color: var(--muted); }
.status-dot { background: var(--green); }
.workspace { flex: 1; min-height: 0; min-width: 0; margin-left: 0; }
.topbar { background: #f0eee4; min-height: 49px; padding: 3px var(--shell-gutter); }
.topbar-label { letter-spacing: .08em; }
.account-name, .text-button { color: var(--green); }
.demo-notice { padding: 6px var(--shell-gutter); background: #f1e8d9; color: #6a4d35; border-color: #e3d7c4; }
.main { padding: 34px var(--gutter) 39px; max-width: var(--page-width); }
.page-footer { padding-inline: var(--shell-gutter); }
h1, h2, .card-person h3, .auth-heading h1 { font-family: var(--serif); }
.page-heading {
  padding: 23px 0 26px;
  margin: 0 0 25px;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.page-heading h1 { font-size: clamp(2rem, 4.25vw, 4.15rem); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.page-heading p { margin-top: 12px; }
.eyebrow { font-weight: 600; letter-spacing: .18em; color: var(--green); margin-bottom: 12px; }
.heading-dot { color: var(--notice-ink); }
.directory-heading {
  background: var(--cover);
  padding: clamp(24px, 3.4vw, 46px) clamp(18px, 3.2vw, 44px);
  min-height: 191px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 2px solid var(--green);
  align-items: end;
  margin-bottom: 0;
}
.directory-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -43px clamp(30px, 10vw, 164px) auto auto;
  width: clamp(110px, 20vw, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #7b8e7860;
  box-shadow: 0 0 0 13px var(--cover), 0 0 0 14px #7b8e7845, 0 0 0 31px var(--cover), 0 0 0 32px #7b8e783b, inset -29px -13px #cbd2be;
}
.button, input, textarea, select { border-radius: var(--control-radius); }
.button.secondary { background: var(--surface); border-color: #b4bbaa; color: var(--green-hover); }
.button.secondary:hover { background: var(--green-light); }
.stats {
  display: flex;
  gap: 0;
  margin: 0 0 35px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  flex: 1;
  min-width: 0;
  min-height: 119px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 14px clamp(10px, 1.6vw, 23px);
}
.stat > div { gap: 7px; margin-top: 4px; }
.stat strong { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.95rem); line-height: 1.06; color: var(--green-hover); }
.stat p { font-size: .75rem; margin-top: 7px; }
.stat-sand { background: #f6e9dd; }
.stat-sand strong, .stat-sand > span { color: var(--notice-ink); }
a.stat:hover { border-color: var(--line); background: #eeded0; }
.section-heading { margin-bottom: 14px; }
.section-heading h2 { font-size: 1.6rem; }
.count { background: var(--green-light); color: var(--green-hover); border-radius: 3px; font: .75rem/1.7 var(--mono); }
.view-switch { background: var(--surface); border-radius: 3px; padding: 2px; }
.view-switch a { border-radius: 2px; color: var(--green); }
.view-switch a.selected { color: white; background: var(--green); }
.filter-bar {
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 0;
  margin-bottom: 20px;
}
.filter-bar select { flex: 0 1 auto; }
.search-field { flex: 1 1 210px; }
.teacher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.teacher-card { background: var(--surface); padding: 18px 18px 0; border-top: 2px solid #a3b19e; }
.card-person h3 { font-size: 1.37rem; font-weight: 700; }
.avatar { border-radius: 2px; background: #e7ebdd; color: #2f4b3c; }
.tone-blue { background: #e2eae5; color: #36524b; }
.tone-sand { background: #eee7d7; color: #654f30; }
.tone-lilac { background: #eee7e5; color: #634b54; }
.card-tags { margin-top: 13px; }
.card-tags .tag, .pending-fields .tag { font-size: .75rem; border-radius: 3px; }
.card-facts { margin: 13px 0 12px; gap: 4px; font-size: .82rem; }
.card-footer { padding: 9px 0; }
.panel { background: var(--surface); box-shadow: none; padding: 25px 27px; }
.panel h2 { font-size: 1.35rem; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.soft-panel { background: var(--green-light); }
.profile-header { background: var(--cover); border-top: 2px solid var(--green); padding: 24px; }
.profile-person h1 { font-size: clamp(2rem, 4vw, 3.45rem); }
.profile-person .avatar { background: #d2dbc7; }
.detail-fields > div { border-bottom: 1px solid #e8e4d9; padding-bottom: 10px; }
.auth-main { flex: 1; background: var(--cover); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 3px; }
.auth-heading h1 { font-size: 2.25rem; }
@media (max-width: 1100px) {
  .sidebar-foot { display: none; }
  .sidebar nav { margin-right: 0; }
}
@media (max-width: 870px) {
  .sidebar { flex-wrap: wrap; padding-top: 12px; gap: 5px 14px; }
  .sidebar nav { justify-content: flex-start; width: 100%; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { border-top: 1px solid var(--line); }
  .stats > :only-child { grid-column: 1 / -1; }
  .profile-header { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .main { padding-top: 23px; }
  .nav-item { min-height: 44px; padding-inline: 9px; }
  .sidebar nav a:focus-visible { outline-offset: -3px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading > form .button { margin-top: 0; }
  .directory-heading { align-items: start; min-height: 0; }
  .directory-heading::after { right: 14px; opacity: .55; }
  .page-heading h1 { font-size: 2.45rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 100px; padding: 12px; }
  .stat-sand:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 93px; }
  .filter-bar select { flex: 1 1 calc(50% - 4px); }
  .filter-bar .button { flex: 1 0 auto; }
  .search-field { flex-basis: 100%; }
  .teacher-grid { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 510px; }
  .panel { padding: 20px; }
  .profile-header { padding: 18px; }
  .page-footer { flex-wrap: wrap; }
  .page-footer span:last-child { display: initial; }
}
@media print {
  :root, .profile-header, .panel, .auth-main { background: white; }
  body { display: block; }
  .main { max-width: none; padding: 0; }
  .directory-heading::after { content: none; }
}
