/*
 * 岐黄成长学生成长与育人管理平台软件 V1.0.0
 * Copyright (c) 2026 岐黄成长项目组
 * 开发完成日期：2026-10-26
 * 未经许可不得复制、修改或分发
 */
/* ==========================================================================
   岐黄成长 · 设计系统
   ========================================================================== */
:root {
  --ink: #2b2231;
  --ink-soft: #514658;
  --muted: #817483;
  --muted-2: #a095a2;
  --paper: #f6f1fb;
  --paper-2: #fdfbff;
  --paper-3: #f0e8f8;
  --paper-4: #e7dcf1;
  --line: #ddcfdd;
  --line-soft: #ece2ec;
  --green: #61306d;
  --green-deep: #371d40;
  --green-mid: #7b4d86;
  --green-soft: #ecdfef;
  --green-pale: #f5eef7;
  --red: #a74430;
  --red-deep: #893423;
  --red-soft: #f4e2dc;
  --gold: #ad8344;
  --gold-soft: #f1e7d3;
  --yellow: #c5943f;
  --yellow-soft: #fbf2d9;
  --safe: #4f7b60;
  --safe-soft: #e7f0e7;
  --blue: #506b82;
  --blue-soft: #e8eef3;
  --shadow-sm: 0 3px 12px rgba(47, 29, 52, .045);
  --shadow-md: 0 16px 40px rgba(47, 29, 52, .075);
  --shadow-lg: 0 30px 80px rgba(34, 18, 39, .2);
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f6f1fb; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(135deg, #fbf8ff 0%, #f5eefb 35%, #eee4f8 70%, #faf7fe 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  display: none;
}
::selection { background: #e2cfe8; color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9b9c9; border-radius: 20px; border: 2px solid var(--paper); }
.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 999;
  padding: 10px 16px; border-radius: 8px; background: var(--green); color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   框架与侧栏
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 17px 17px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #eee8d9;
  background: linear-gradient(165deg, #442550 0%, #351b3e 52%, #291430 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.08);
  z-index: 80;
}
.sidebar::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(240, 231, 211, .08);
  border-radius: 50%;
  right: -154px; top: 154px;
  pointer-events: none;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border: 1px solid rgba(240, 231, 211, .06);
  border-radius: 50%;
  right: -105px; top: 204px;
  pointer-events: none;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 25px;
}
.brand-seal {
  width: 43px; height: 43px;
  flex: 0 0 43px;
  display: grid; place-items: center;
  border-radius: 5px;
  color: #321936;
  background:
    radial-gradient(circle at 30% 20%, #fdf9ee, #e8dcc3 72%);
  box-shadow: inset 0 0 0 1px rgba(91, 65, 26, .2), 0 6px 16px rgba(0,0,0,.2);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  transform: rotate(-2deg);
}
.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  color: #f8f2e5;
}
.brand-text span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: .2em;
  color: rgba(239, 232, 216, .52);
  text-transform: uppercase;
}
.portal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  margin: 0 3px 25px;
  background: rgba(29, 13, 35, .36);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.portal-switch button {
  border: 0;
  border-radius: 7px;
  padding: 7px 4px;
  background: transparent;
  color: rgba(239, 232, 216, .6);
  font-size: 12px;
  letter-spacing: .05em;
  transition: .25s var(--ease);
}
.portal-switch button:hover { color: #fff; }
.portal-switch button.active {
  color: var(--green-deep);
  background: #efe6d3;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  font-weight: 700;
}
.nav-label {
  padding: 0 12px;
  margin: 2px 0 8px;
  color: rgba(239, 232, 216, .35);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: rgba(242, 236, 222, .67);
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: color .2s, background .2s, transform .2s;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .82; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.nav-item.active {
  color: #fffdf6;
  background: linear-gradient(90deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: #d5b374;
}
.nav-item.active svg { opacity: 1; color: #e6cb99; }
.nav-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: #b5533b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-badge.quiet { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.nav-arrow { margin-left: auto; opacity: .35; width: 13px !important; height: 13px !important; }
.nav-section { margin-top: 22px; }
.side-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: rgba(241, 235, 221, .58);
  font-size: 12px;
  text-align: left;
  transition: .2s;
}
.side-plan:hover { background: rgba(255,255,255,.05); color: #f8f2e5; }
.plan-dot {
  width: 7px; height: 7px; flex: 0 0 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.plan-dot.green { background: #b893c1; }
.plan-dot.gold { background: #d3af70; }
.plan-dot.red { background: #cc8977; }
.sidebar-spacer { flex: 1; min-height: 26px; }
.ai-mini {
  position: relative;
  margin: 12px 3px 14px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(234, 216, 181, .17);
  border-radius: 11px;
  overflow: hidden;
  background:
    radial-gradient(140px 100px at 100% 0, rgba(197, 160, 94, .22), transparent 75%),
    rgba(28, 12, 34, .32);
  cursor: pointer;
  transition: .25s var(--ease);
}
.ai-mini:hover { border-color: rgba(234, 216, 181, .32); transform: translateY(-2px); }
.ai-mini-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.ai-mini-head svg { width: 15px; height: 15px; color: #dfc08b; }
.ai-mini-head strong { font-family: var(--serif); font-size: 13px; letter-spacing: .04em; color: #f7eedf; }
.ai-mini p { color: rgba(239, 232, 216, .5); font-size: 10.5px; line-height: 1.6; }
.ai-mini .mini-go {
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px; color: #d9bd8b; font-size: 10.5px; font-weight: 600;
}
.ai-mini .mini-go svg { width: 12px; height: 12px; }
.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 11px 4px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #efe3cd;
  color: #45314a;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.avatar.green { background: #eadfec; color: #5d3567; }
.avatar.red { background: #f1ded7; color: #8e3b2b; }
.avatar.gold { background: #efe3c9; color: #7d5b24; }
.side-profile-info { min-width: 0; }
.side-profile-info strong { display: block; font-size: 12px; color: #f4eddf; font-weight: 600; }
.side-profile-info span { display: block; font-size: 9.5px; color: rgba(240,233,218,.4); letter-spacing: .04em; }
.side-profile .more { margin-left: auto; color: rgba(255,255,255,.35); }
.side-profile .more svg { width: 16px; height: 16px; }
.sidebar-scrim {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(24, 13, 28, .55);
  backdrop-filter: blur(3px);
}
.workspace { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(214, 201, 218, .7);
  background: rgba(250, 246, 250, .86);
  backdrop-filter: blur(16px) saturate(1.1);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.breadcrumb .crumb-root { letter-spacing: .08em; }
.breadcrumb svg { width: 12px; height: 12px; opacity: .45; }
.breadcrumb strong { color: var(--ink-soft); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.term-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.35);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .03em;
}
.term-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 3px rgba(79,123,96,.12); }
.icon-btn {
  position: relative;
  width: 37px; height: 37px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  color: var(--ink-soft);
  transition: .2s;
}
.icon-btn:hover { background: var(--paper-2); border-color: #cbbfa9; transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot-badge {
  position: absolute; top: -1px; right: -1px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--paper);
  font-size: 9px;
  font-weight: 700;
}
.top-identity { display: flex; align-items: center; gap: 9px; padding-left: 9px; border-left: 1px solid var(--line); }
.top-identity .avatar { width: 33px; height: 33px; flex-basis: 33px; font-size: 12px; }
.top-identity-name { line-height: 1.3; }
.top-identity-name strong { display: block; font-size: 11.5px; font-weight: 600; }
.top-identity-name span { display: block; color: var(--muted); font-size: 9.5px; }
.view { min-height: calc(100vh - 70px); }
.page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 33px 38px 64px;
  animation: pageIn .55s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   通用组件
   ========================================================================== */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 17px; height: 1px; background: var(--green); }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(27px, 2.4vw, 35px);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.2;
  color: var(--ink);
}
.page-head .lede {
  max-width: 690px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.head-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.tnum { font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #65356f, #42234b);
  color: #f8f2e5;
  border-color: #42234b;
  box-shadow: 0 8px 18px rgba(79, 42, 88, .19);
}
.btn-primary:hover { box-shadow: 0 11px 25px rgba(79, 42, 88, .26); background: linear-gradient(135deg, #73437e, #4c2855); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(167,68,48,.16); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.36); }
.btn-ghost:hover { background: var(--paper-2); border-color: #c9bda7; }
.btn-soft { background: var(--paper-3); border-color: transparent; }
.btn-soft:hover { background: var(--paper-4); }
.btn-text { padding: 4px 0; min-height: auto; color: var(--green-mid); }
.btn-text:hover { color: var(--green); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { min-height: 43px; padding: 10px 21px; font-size: 12.5px; border-radius: 9px; }
.btn-sm { min-height: 29px; padding: 5px 10px; font-size: 10.5px; border-radius: 6px; }
.panel {
  position: relative;
  background: rgba(252,249,252, .8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 15px;
}
.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
}
.panel-title svg { width: 16px; height: 16px; color: var(--gold); }
.panel-sub { margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.panel-body { padding: 0 22px 22px; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-3);
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.chip svg { width: 10px; height: 10px; }
.chip.green { background: var(--green-soft); color: #6d3e77; }
.chip.red { background: var(--red-soft); color: var(--red-deep); }
.chip.gold { background: var(--gold-soft); color: #7c5a22; }
.chip.blue { background: var(--blue-soft); color: #3c6273; }
.chip.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-label { color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--safe); display: inline-block; }
.status-dot.red { background: var(--red); }
.status-dot.gold { background: var(--gold); }
.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-family: var(--sans); font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -7px; border: 2px solid var(--paper-2); width: 27px; height: 27px; flex-basis: 27px; font-size: 9.5px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty svg { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .35; }
.progress {
  height: 5px;
  border-radius: 10px;
  background: var(--paper-4);
  overflow: hidden;
}
.progress > span { display: block; height: 100%; border-radius: 10px; background: var(--green-mid); }
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(240,233,241, .55);
}
.segmented button {
  border: 0;
  border-radius: 5px;
  padding: 5px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: .18s;
  white-space: nowrap;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--paper-2); color: var(--ink); box-shadow: 0 2px 5px rgba(47,29,52,.08); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field-hint { color: var(--muted-2); font-size: 9.5px; line-height: 1.5; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  background: rgba(255,255,255,.56);
  color: var(--ink);
  font-size: 11.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 100px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #aaa99c; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: #b39fbb;
  background: #fffbfe;
  box-shadow: 0 0 0 3px rgba(105, 61, 116, .09);
}
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted-2); pointer-events: none; }
.input-icon .input { padding-left: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 0 13px;
}
.section-title h3 { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.section-title .hint { color: var(--muted); font-size: 10px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: var(--ink-soft); line-height: 1.6; cursor: pointer; }
.checkline input { appearance: none; width: 15px; height: 15px; flex: 0 0 15px; margin: 2px 0 0; border: 1px solid #bfb5a1; border-radius: 3px; background: #fff; cursor: pointer; }
.checkline input:checked { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--paper-2); }
.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tip);
  position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(3px);
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--green-deep);
  color: #f8f2e5;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .18s;
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.detail-callout svg { width: 13px; height: 13px; flex: 0 0 13px; vertical-align: -2px; margin-right: 3px; color: var(--gold); }
.profile-side-note h3 svg { width: 13px; height: 13px; color: var(--gold); }
.profile-side-note .btn svg { width: 12px; height: 12px; }
.annual-note-head svg, .annual-blessing svg { width: 12px; height: 12px; }
.review-note svg { width: 12px; height: 12px; }
.hidden { display: none !important; }
.overlay-open { overflow: hidden; }
.view.no-anim .page, .view.no-anim .data-screen { animation: none; }

/* 学生端 · 年度成长报告 */
.annual-modal { width: min(730px, 94vw); overflow-x: hidden; }
.modal.annual-modal { width: min(730px, 94vw); }
.annual-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 25px;
  color: #f8f1e2;
  background:
    radial-gradient(520px 240px at 90% -10%, rgba(197,157,88,.32), transparent 68%),
    linear-gradient(135deg, #43244e, #321a3b 62%, #291330);
}
.annual-hero::before {
  content: "";
  position: absolute; right: -36px; top: -66px;
  width: 250px; height: 250px;
  border: 1px solid rgba(239, 218, 178, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(239,218,178,.025), 0 0 0 52px rgba(239,218,178,.018);
}
.annual-hero::after {
  content: "岁";
  position: absolute; right: 25px; bottom: -55px;
  font-family: var(--serif); font-size: 180px; line-height: 1;
  color: rgba(245,236,218,.035);
}
.annual-kicker { position: relative; z-index: 1; color: #dfc08b; font-size: 8px; letter-spacing: .28em; }
.annual-hero h2 { position: relative; z-index: 1; margin-top: 12px; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .035em; line-height: 1.4; }
.annual-hero p { position: relative; z-index: 1; max-width: 520px; margin-top: 8px; color: rgba(245,236,218,.5); font-size: 9.5px; line-height: 1.8; }
.annual-seal {
  position: absolute; z-index: 2; right: 31px; top: 78px;
  width: 48px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(220,190,135,.5);
  color: #ddc08a;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-4deg);
}
.annual-close { position: absolute; z-index: 3; right: 14px; top: 14px; border-color: rgba(245,236,218,.18); color: rgba(245,236,218,.65); background: rgba(0,0,0,.08); }
.annual-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.annual-body { padding: 21px 26px 24px; }
.annual-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--line-soft);
}
.annual-stats > div { padding: 13px 10px; text-align: center; background: rgba(255,255,255,.35); }
.annual-stats b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--green); }
.annual-stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.annual-note { margin-top: 14px; padding: 13px 15px; border: 1px solid #ddcbaa; border-radius: 8px; background: var(--gold-soft); }
.annual-note-head { display: flex; align-items: center; gap: 6px; color: #7a5a24; font-size: 9px; font-weight: 600; }
.annual-note-head svg { width: 12px; height: 12px; }
.annual-words { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.annual-words span { padding: 4px 9px; border-radius: 20px; background: rgba(255,255,255,.38); color: #7b6030; font-family: var(--serif); font-size: 10px; }
.annual-highlights { display: flex; flex-direction: column; gap: 1px; }
.annual-highlight { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.annual-highlight:last-child { border-bottom: 0; }
.annual-no { width: 22px; flex: 0 0 22px; color: var(--gold); font-family: var(--serif); font-size: 13px; font-weight: 700; }
.annual-highlight strong { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.55; }
.annual-highlight p { margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.annual-highlight .level-pill { margin-top: 5px; }
.annual-blessing { margin-top: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, rgba(255,252,255,.9), rgba(243,235,220,.7)); }
.annual-blessing-label { color: var(--red); font-family: var(--serif); font-size: 12px; letter-spacing: .05em; }
.annual-blessing p { margin-top: 8px; color: var(--ink-soft); font-family: var(--serif); font-size: 10.5px; line-height: 1.95; }
.annual-sign { margin-top: 11px; color: var(--muted); font-family: var(--serif); font-size: 9.5px; line-height: 1.6; text-align: right; }
.annual-sign span { font-family: var(--sans); font-size: 8px; color: var(--muted-2); }
.annual-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }

/* 学生端 · AI 归档侧栏 */
.ai-archive-summary { padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.35); }
.ai-archive-title { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 12px; }
.ai-archive-title svg { width: 14px; height: 14px; color: var(--gold); }
.ai-archive-stats { display: flex; gap: 1px; margin-top: 11px; border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; background: var(--line-soft); }
.ai-archive-stats > div { flex: 1; padding: 8px 5px; text-align: center; background: var(--paper-2); }
.ai-archive-stats b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1; color: var(--green); }
.ai-archive-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.ai-archive-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.ai-archive-row:last-child { border-bottom: 0; }
.ai-archive-dot { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 6px; background: var(--green-soft); color: var(--safe); }
.ai-archive-dot.award { background: var(--gold-soft); color: #886225; }
.ai-archive-dot.activity { background: var(--green-soft); color: var(--safe); }
.ai-archive-dot.other { background: var(--blue-soft); color: var(--blue); }
.ai-archive-dot svg { width: 12px; height: 12px; }
.ai-archive-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 270px; font-size: 9px; font-weight: 600; }
.ai-archive-row span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7.5px; }

/* ==========================================================================
   学生端 · 规划通知
   ========================================================================== */
.birthday-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 19px 23px;
  border-radius: var(--radius);
  color: #f8f1e2;
  background:
    radial-gradient(600px 160px at 82% 0%, rgba(197, 157, 88, .25), transparent 70%),
    linear-gradient(118deg, #43244f, #4f2e59 56%, #3a1f44);
  box-shadow: 0 16px 34px rgba(75, 38, 84, .18);
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s;
}
.birthday-card:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(75, 38, 84, .23); }
.birthday-card::after {
  content: "生辰";
  position: absolute;
  right: 20px; top: -25px;
  font-family: var(--serif);
  font-size: 114px;
  line-height: 1;
  color: rgba(244, 233, 211, .04);
  pointer-events: none;
}
.birthday-copy { display: flex; align-items: center; gap: 17px; position: relative; z-index: 1; }
.birthday-seal {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 1px solid rgba(235, 209, 160, .4);
  background: rgba(235, 209, 160, .08);
  color: #e5c68f;
  font-family: var(--serif);
  font-size: 23px;
}
.birthday-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .05em;
  font-weight: 700;
}
.birthday-copy p { margin-top: 4px; color: rgba(245, 236, 218, .62); font-size: 10.5px; line-height: 1.65; }
.birthday-copy p b { color: #e9cc98; font-weight: 600; }
.birthday-action {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(236, 215, 174, .3);
  border-radius: 20px;
  color: #f1dfbf;
  font-size: 10.5px;
  white-space: nowrap;
  background: rgba(255,255,255,.04);
}
.page-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.summary-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252,249,252, .58);
  font-size: 10.5px;
  color: var(--muted);
}
.summary-chip b { color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1; font-weight: 700; }
.summary-chip.red b { color: var(--red); }
.summary-chip.gold b { color: var(--gold); }
.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, .78fr);
  gap: 22px;
  align-items: start;
}
.notice-panel { overflow: hidden; }
.notice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 21px 13px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.notice-toolbar-left { display: flex; align-items: center; gap: 10px; }
.notice-toolbar h2 { font-family: var(--serif); font-size: 16.5px; letter-spacing: .02em; }
.notice-toolbar h2 span { margin-left: 6px; color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 400; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.legend { display: flex; align-items: center; gap: 10px; padding: 9px 21px; border-bottom: 1px solid var(--line-soft); background: rgba(240,233,241,.3); }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.red { background: var(--red); }
.legend-dot.yellow { background: var(--yellow); }
.legend-dot.green { background: var(--safe); }
.legend-note { margin-left: auto; color: var(--muted-2); font-size: 8.5px; }
.notice-list { padding: 3px 0; }
.notice-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 17px 21px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .2s;
}
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: rgba(255,252,255, .65); }
.notice-row::before {
  content: "";
  position: absolute;
  left: 0; top: 17px; bottom: 17px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background .2s;
}
.notice-row.urgent::before { background: var(--red); }
.notice-row.soon::before { background: var(--yellow); }
.notice-row.safe::before { background: var(--safe); }
.notice-row:hover::before { width: 3px; }
.date-tile {
  width: 46px;
  height: 51px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.45);
  line-height: 1;
  transition: .2s;
}
.notice-row:hover .date-tile { background: #fffbfe; border-color: #cec1a9; }
.date-tile strong { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.date-tile span { margin-top: 5px; color: var(--muted); font-size: 8.5px; }
.notice-content { min-width: 0; }
.notice-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.notice-cat { color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.notice-title-row { display: flex; align-items: center; gap: 7px; }
.notice-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: .005em;
}
.notice-row.unread .notice-title { font-weight: 700; }
.unread-dot {
  width: 6px; height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 68, 48, .08);
}
.notice-sub {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 9.5px;
}
.notice-sub .sep { margin: 0 5px; color: #c9c0ae; }
.notice-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-width: 96px;
}
.deadline-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.deadline-tag svg { width: 10px; height: 10px; }
.deadline-tag.urgent { color: #8f3423; background: #f2ded6; }
.deadline-tag.soon { color: #8a6721; background: #f8edce; }
.deadline-tag.safe { color: #744b7c; background: #e5efe4; }
.notice-side .mark-star {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: #c1b7a4;
  border-radius: 50%;
  transition: .18s;
}
.notice-side .mark-star:hover { color: var(--gold); background: var(--gold-soft); }
.notice-side .mark-star.active { color: var(--gold); }
.notice-side .mark-star svg { width: 13px; height: 13px; }
.notice-footnote {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 21px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 9px;
  background: rgba(240,233,241,.25);
}
.notice-footnote svg { width: 12px; height: 12px; }
.read-state { font-size: 8.5px; color: var(--muted-2); }
.notice-aside { display: flex; flex-direction: column; gap: 18px; }
.calendar-panel { overflow: hidden; }
.calendar-head { padding: 18px 19px 11px; }
.calendar-head .panel-sub { display: flex; align-items: center; gap: 6px; }
.calendar-head .panel-sub svg { width: 11px; height: 11px; }
.calendar-nav { display: flex; align-items: center; gap: 4px; }
.calendar-nav button {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: transparent; color: var(--muted);
}
.calendar-nav button:hover { background: var(--paper-3); }
.calendar-nav svg { width: 11px; height: 11px; }
.calendar-nav .cal-now { min-width: 66px; font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.year-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-soft); }
.year-strip button {
  position: relative;
  height: 20px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted-2);
  font-size: 7.5px;
  transition: .15s;
}
.year-strip button:hover { background: var(--paper-3); color: var(--ink); }
.year-strip button.active { background: var(--green); color: #fff; font-weight: 700; }
.year-strip button.has-event::after {
  content: "";
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 2px; border-radius: 50%; background: var(--red);
}
.year-strip button.active.has-event::after { background: #f0d39d; }
.calendar-body { padding: 0 17px 15px; }
.week-row, .day-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.week-row span {
  padding: 5px 0 6px;
  color: var(--muted-2);
  font-size: 8.5px;
  text-align: center;
}
.day-grid { gap: 2px; }
.day-cell {
  position: relative;
  height: 29px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  transition: .15s;
}
.day-cell:hover { background: var(--paper-3); }
.day-cell.muted { color: #c5beb0; }
.day-cell.today { background: var(--green); color: #fff; font-weight: 700; }
.day-cell.has-event::after {
  content: "";
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--red);
}
.day-cell.today.has-event::after { background: #f0d39d; }
.day-cell.selected { box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); }
.day-cell.today.selected { box-shadow: inset 0 0 0 1px #f0d39d; background: var(--green); }
.calendar-events {
  margin: 2px 17px 17px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
}
.calendar-events .cal-event-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 8.5px; color: var(--muted-2); letter-spacing: .1em; }
.cal-event {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(214,204,187,.65);
}
.cal-event:last-child { border-bottom: 0; padding-bottom: 1px; }
.cal-date { flex: 0 0 29px; color: var(--red); font-family: var(--serif); font-size: 11px; font-weight: 700; line-height: 1.4; }
.cal-event-copy { min-width: 0; }
.cal-event-copy strong { display: block; font-size: 10px; font-weight: 600; line-height: 1.5; }
.cal-event-copy span { display: block; margin-top: 1px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.calendar-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 17px 13px;
  color: var(--muted);
  background: rgba(240,233,241, .48);
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  line-height: 1.65;
}
.calendar-note svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 1px; color: var(--gold); }
.quick-panel { padding: 16px 18px 17px; }
.quick-panel h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 14px; }
.quick-panel h3 svg { width: 14px; height: 14px; color: var(--gold); }
.quick-list { margin-top: 11px; display: flex; flex-direction: column; gap: 1px; }
.quick-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 10px;
  color: var(--ink-soft);
  cursor: pointer;
}
.quick-item:last-child { border-bottom: 0; }
.quick-item:hover { color: var(--red); }
.quick-item .q-index { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: var(--paper-3); color: var(--muted); font-family: var(--serif); font-size: 9px; }
.quick-item .q-arrow { margin-left: auto; width: 12px; height: 12px; color: #b9b09e; }
.quick-item strong { font-weight: 600; }

/* ==========================================================================
   学生端 · 成长记录
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.strip-item {
  position: relative;
  padding: 16px 20px;
  background: rgba(252,249,252, .78);
}
.strip-item .mini-label { display: flex; align-items: center; gap: 5px; }
.strip-item .mini-label svg { width: 12px; height: 12px; color: var(--gold); }
.strip-item .stat-num { margin-top: 8px; }
.strip-item .stat-note { margin-top: 5px; color: var(--muted); font-size: 9px; }
.strip-item .stat-note b { color: var(--safe); font-weight: 600; }
.records-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 22px; align-items: start; }
.records-main { overflow: hidden; }
.records-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.filter-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.filter-right { display: flex; align-items: center; gap: 7px; }
.records-filter .input { width: 168px; padding-top: 7px; padding-bottom: 7px; font-size: 10.5px; }
.records-list { padding: 2px 20px 8px; }
.record-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 4px 15px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: .2s;
}
.record-item:last-child { border-bottom: 0; }
.record-item:hover { padding-left: 5px; }
.record-item::before {
  content: "";
  position: absolute; left: 20px; top: 49px; bottom: -16px;
  width: 1px;
  background: var(--line-soft);
}
.record-item:last-child::before { display: none; }
.record-kind {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--gold);
  border: 1px solid rgba(173, 131, 68, .16);
  z-index: 1;
}
.record-kind svg { width: 16px; height: 16px; }
.record-kind.award { background: var(--gold-soft); color: #8b6327; }
.record-kind.activity { background: var(--green-soft); color: #754681; }
.record-kind.other { background: var(--blue-soft); color: #42697b; }
.record-kind.teacher { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px rgba(79,123,96,.2); }
.record-body { min-width: 0; }
.record-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.record-date { color: var(--muted-2); font-size: 9px; font-variant-numeric: tabular-nums; }
.record-body h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: .005em;
}
.record-desc {
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}
.record-bottom { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.record-bottom .attach {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--blue); font-size: 8.5px;
}
.record-bottom .attach svg { width: 10px; height: 10px; }
.record-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; padding-top: 4px; }
.record-side .chev { color: #c4bbaa; }
.record-side .chev svg { width: 14px; height: 14px; }
.record-source { color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.record-source.teacher { color: var(--safe); }
.records-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 21px 15px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.growth-spark { padding: 18px 19px 16px; }
.growth-spark h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 14px; }
.growth-spark h3 svg { width: 14px; height: 14px; color: var(--gold); }
.spark-chart { margin: 17px 0 8px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; padding-top: 5px; border-bottom: 1px solid var(--line-soft); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bar-col .bar {
  width: 100%;
  max-width: 20px;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8e6498, #683b73);
  opacity: .85;
  transition: height .6s var(--ease);
}
.bar-col:nth-child(2n) .bar { background: linear-gradient(180deg, #d5bd92, #ad8344); }
.bar-labels { display: flex; gap: 8px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; color: var(--muted-2); font-size: 8px; }
.spark-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 9px; }
.spark-foot b { color: var(--safe); font-weight: 600; }
.material-card { padding: 17px 19px; }
.material-card h3 { font-family: var(--serif); font-size: 14px; }
.material-card p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.completeness { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.ring {
  --p: 86;
  position: relative;
  width: 52px; height: 52px;
  flex: 0 0 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--paper-4) 0);
}
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper-2); }
.ring b { position: relative; z-index: 1; font-family: var(--serif); font-size: 14px; }
.completeness-copy strong { display: block; font-size: 10.5px; }
.completeness-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.material-list { display: flex; flex-direction: column; gap: 5px; }
.material-line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8.5px; }
.material-line svg { width: 11px; height: 11px; color: var(--safe); }
.material-line.pending svg { color: var(--gold); }
.material-line.pending { color: var(--ink-soft); }
.export-card {
  position: relative; overflow: hidden;
  padding: 19px;
  color: #f6efe0;
  border-radius: var(--radius);
  background:
    radial-gradient(280px 150px at 100% 0, rgba(197,157,88,.25), transparent 70%),
    linear-gradient(145deg, #43244e, #2f1735);
  box-shadow: 0 16px 30px rgba(75, 38, 84, .18);
}
.export-card h3 { font-family: var(--serif); font-size: 15px; }
.export-card p { margin-top: 5px; color: rgba(245,237,221,.55); font-size: 9px; line-height: 1.65; }
.export-card .btn { margin-top: 13px; background: #f1e7d4; color: var(--green-deep); border: 0; width: 100%; }
.export-card::after {
  content: "简历"; position: absolute; right: -7px; bottom: -32px;
  font-family: var(--serif); font-size: 86px; color: rgba(245,237,221,.04);
}

/* ==========================================================================
   学生端 · 学生社区
   ========================================================================== */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.community-main { display: flex; flex-direction: column; gap: 16px; }
.community-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 200px at 92% 20%, rgba(177,133,67,.12), transparent 70%),
    rgba(252,249,252,.76);
}
.community-hero h2 { font-family: var(--serif); font-size: 20px; letter-spacing: .02em; }
.community-hero p { margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.community-stats { display: flex; gap: 19px; margin-top: 14px; }
.community-stats b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1; }
.community-stats span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; letter-spacing: .05em; }
.community-emblem {
  width: 82px; height: 82px; flex: 0 0 82px;
  display: grid; place-items: center;
  border: 1px solid rgba(173,131,68,.24);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(247,240,225,.8), rgba(233,221,196,.3));
  font-family: var(--serif);
  font-size: 34px;
  box-shadow: inset 0 0 0 6px rgba(252,249,252,.7), inset 0 0 0 7px rgba(173,131,68,.15);
}
.composer {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(252,249,252,.78);
  cursor: text;
  box-shadow: var(--shadow-sm);
}
.composer .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
.composer .composer-placeholder { flex: 1; color: var(--muted-2); font-size: 10.5px; }
.composer .btn { border-radius: 6px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1px 2px; }
.feed-head h2 { font-family: var(--serif); font-size: 16px; }
.feed-tabs { display: flex; gap: 16px; }
.feed-tab { position: relative; padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 10.5px; }
.feed-tab.active { color: var(--ink); font-weight: 600; }
.feed-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--red); }
.thread-card {
  padding: 18px 20px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252,249,252,.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.thread-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d3c7b3; }
.thread-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.thread-head .avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 10px; }
.thread-author strong { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.thread-author span { display: block; color: var(--muted-2); font-size: 8px; margin-top: 1px; }
.thread-more { margin-left: auto; color: var(--muted-2); }
.thread-more svg { width: 15px; height: 15px; }
.thread-card h3 { font-size: 14px; font-weight: 600; line-height: 1.55; letter-spacing: .005em; }
.thread-card .thread-excerpt {
  margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: 10px; line-height: 1.7;
}
.thread-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.thread-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.thread-stat { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8.5px; }
.thread-stat svg { width: 12px; height: 12px; }
.thread-stat.voted { color: var(--red); }
.thread-stat.accepted { color: var(--safe); }
.thread-foot .thread-time { margin-left: auto; color: var(--muted-2); font-size: 8px; }
.community-side { display: flex; flex-direction: column; gap: 18px; }
.side-panel { padding: 17px 18px; }
.side-panel h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 14px; }
.side-panel h3 svg { width: 14px; height: 14px; color: var(--gold); }
.hot-list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.hot-item { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.hot-item:last-child { border-bottom: 0; }
.hot-item:hover .hot-title { color: var(--red); }
.hot-index { flex: 0 0 17px; color: var(--gold); font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.hot-title { font-size: 9.5px; line-height: 1.55; color: var(--ink-soft); transition: .15s; }
.hot-meta { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.active-list { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; }
.active-person { display: flex; align-items: center; gap: 8px; }
.active-person .avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 9px; }
.active-person strong { display: block; font-size: 9.5px; font-weight: 600; }
.active-person span { display: block; color: var(--muted-2); font-size: 8px; }
.active-person .online { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--safe); }
.convention { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.convention li { display: flex; gap: 7px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.convention li::before { content: "·"; color: var(--gold); font-weight: 700; }

/* ==========================================================================
   学生端 · 个人信息
   ========================================================================== */
.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 18px; }
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 25px 22px 21px;
  border-radius: var(--radius);
  color: #f8f1e2;
  background:
    radial-gradient(420px 200px at 80% -10%, rgba(197,157,88,.27), transparent 70%),
    linear-gradient(150deg, #45264f 0%, #3a1f44 60%, #2c1433 100%);
  box-shadow: 0 20px 40px rgba(63, 31, 71, .21);
}
.profile-card::before {
  content: "岐黄";
  position: absolute; right: -15px; bottom: 18px;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 54px;
  letter-spacing: .16em;
  color: rgba(245, 236, 218, .04);
}
.profile-avatar-large {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #efe2ca;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 8px 20px rgba(0,0,0,.18);
}
.profile-card h2 { margin-top: 13px; font-family: var(--serif); font-size: 24px; letter-spacing: .06em; }
.profile-id { margin-top: 3px; color: rgba(245,236,218,.48); font-size: 9.5px; letter-spacing: .08em; }
.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 13px; }
.profile-tags .chip { background: rgba(245,236,218,.08); color: rgba(245,236,218,.75); border: 1px solid rgba(245,236,218,.1); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 21px; border-top: 1px solid rgba(245,236,218,.12); border-left: 1px solid rgba(245,236,218,.12); }
.profile-stat { padding: 11px 12px; border-right: 1px solid rgba(245,236,218,.12); border-bottom: 1px solid rgba(245,236,218,.12); }
.profile-stat b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; color: #f3e4c8; }
.profile-stat span { display: block; margin-top: 5px; color: rgba(245,236,218,.4); font-size: 8px; letter-spacing: .06em; }
.profile-side-note { padding: 16px 18px; }
.profile-side-note h3 { font-family: var(--serif); font-size: 13.5px; }
.profile-side-note p { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.id-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.id-row { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.id-row span { color: var(--muted); }
.id-row strong { font-weight: 600; text-align: right; }
.profile-main { display: flex; flex-direction: column; gap: 18px; }
.portrait-card { padding: 22px 24px 20px; overflow: hidden; }
.portrait-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.portrait-head h2 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 18px; }
.portrait-head h2 svg { width: 17px; height: 17px; color: var(--gold); }
.portrait-head p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.portrait-score { text-align: right; }
.portrait-score .num { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; color: var(--green); }
.portrait-score .num small { font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 400; }
.portrait-score span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; letter-spacing: .08em; }
.portrait-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 15px; align-items: center; margin-top: 6px; }
.radar-wrap { display: grid; place-items: center; min-height: 258px; }
.radar-wrap svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.dimension-bars { display: flex; flex-direction: column; gap: 11px; }
.dimension-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 9px; }
.dimension-row .dim-label { color: var(--ink-soft); font-size: 9.5px; }
.dimension-track { height: 5px; background: var(--paper-4); border-radius: 8px; overflow: hidden; }
.dimension-track span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #9a739f, #6c3d76); }
.dimension-row:nth-child(4) .dimension-track span { background: linear-gradient(90deg, #dcc391, #b18543); }
.dimension-row .dim-val { color: var(--muted); font-family: var(--serif); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.portrait-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.portrait-foot .hint { margin-left: auto; color: var(--muted-2); font-size: 8.5px; }
.advice-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.advice-panel { padding: 20px 22px; }
.advice-panel h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 16px; }
.advice-panel h3 svg { width: 16px; height: 16px; color: var(--gold); }
.advice-list { margin-top: 14px; display: flex; flex-direction: column; }
.advice-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.advice-item:last-child { border-bottom: 0; padding-bottom: 0; }
.advice-index { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 5px; background: var(--gold-soft); color: #7d5b22; font-family: var(--serif); font-size: 10px; }
.advice-item strong { display: block; font-size: 10.5px; font-weight: 600; }
.advice-item p { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.badge-case { padding: 20px 22px; }
.badge-case h3 { font-family: var(--serif); font-size: 16px; }
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.badge-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 12px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.3);
  text-align: center;
}
.badge-medal {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #8a6328;
  font-family: var(--serif);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(173,131,68,.16);
}
.badge-medal.green { background: var(--green-soft); color: #744680; }
.badge-medal.blue { background: var(--blue-soft); color: #456b7b; }
.badge-item strong { font-size: 8.5px; font-weight: 600; line-height: 1.4; }
.badge-item span { color: var(--muted-2); font-size: 7.5px; }

/* ==========================================================================
   学生端 · 特色计划
   ========================================================================== */
.program-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px 30px;
  border-radius: var(--radius);
  color: #f7f0e2;
  background:
    radial-gradient(600px 280px at 85% 0%, rgba(197,157,88,.28), transparent 70%),
    linear-gradient(120deg, #3d2048, #4d2c58);
  box-shadow: 0 18px 42px rgba(69, 36, 77, .17);
}
.program-hero::after { content: "志"; position: absolute; right: 28px; top: -35px; font-family: var(--serif); font-size: 180px; color: rgba(245,236,218,.035); }
.program-hero h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); letter-spacing: .05em; }
.program-hero p { max-width: 640px; margin-top: 8px; color: rgba(245,236,218,.6); font-size: 11px; line-height: 1.8; }
.program-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.program-hero .hero-meta span { padding: 5px 10px; border: 1px solid rgba(245,236,218,.13); border-radius: 20px; color: rgba(245,236,218,.65); font-size: 9px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(252,249,252,.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .2s;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d1c4ad; }
.program-card::after {
  content: attr(data-mark);
  position: absolute; right: -6px; bottom: 29px;
  font-family: var(--serif); font-size: 104px; line-height: 1;
  color: rgba(69, 38, 78, .04);
  pointer-events: none;
}
.program-no { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 8.5px; letter-spacing: .12em; }
.program-icon {
  width: 47px; height: 47px;
  display: grid; place-items: center;
  margin-top: 18px;
  border-radius: 13px;
  font-family: var(--serif);
  font-size: 20px;
  background: var(--green-soft);
  color: #6f3f79;
}
.program-icon.gold { background: var(--gold-soft); color: #846024; }
.program-icon.red { background: var(--red-soft); color: var(--red-deep); }
.program-card h2 { margin-top: 14px; font-family: var(--serif); font-size: 19px; letter-spacing: .02em; }
.program-card p { margin-top: 6px; color: var(--muted); font-size: 9.5px; line-height: 1.75; }
.program-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.program-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 17px; color: var(--muted-2); font-size: 8.5px; }
.program-meta span { display: flex; align-items: center; gap: 4px; }
.program-meta svg { width: 11px; height: 11px; }
.program-link { display: flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--green-mid); font-size: 10px; font-weight: 600; }
.program-link svg { width: 13px; height: 13px; transition: transform .2s; }
.program-card:hover .program-link svg { transform: translateX(3px); }
.program-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 13px 16px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.program-note svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 1px; color: var(--gold); }

/* ==========================================================================
   教师端 · 数据总览
   ========================================================================== */
.teacher-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 90% 0%, rgba(173,131,68,.13), transparent 70%),
    rgba(252,249,252,.76);
}
.teacher-welcome h1 { font-family: var(--serif); font-size: 25px; letter-spacing: .02em; }
.teacher-welcome h1 em { font-style: normal; color: var(--green); }
.teacher-welcome p { margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-seal { position: absolute; right: 22px; top: -24px; font-family: var(--serif); font-size: 128px; color: rgba(71,37,80,.04); pointer-events: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.kpi-card {
  position: relative;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(252,249,252,.78);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-card .kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9.5px; }
.kpi-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--green-soft); color: #744680; }
.kpi-icon.gold { background: var(--gold-soft); color: #856026; }
.kpi-icon.red { background: var(--red-soft); color: var(--red); }
.kpi-icon.blue { background: var(--blue-soft); color: #446a7b; }
.kpi-icon svg { width: 14px; height: 14px; }
.kpi-card .stat-num { margin-top: 12px; font-size: 31px; }
.kpi-card .kpi-foot { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted-2); font-size: 8.5px; }
.kpi-card .kpi-foot b { color: var(--safe); font-weight: 600; }
.kpi-card .kpi-foot b.down { color: var(--red); }
.kpi-card::after { content: ""; position: absolute; right: -36px; bottom: -55px; width: 104px; height: 104px; border: 1px solid rgba(173,131,68,.1); border-radius: 50%; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(300px, .78fr); gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.chart-panel { padding: 19px 21px 15px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-head h2 { font-family: var(--serif); font-size: 16px; }
.chart-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chart-legend { display: flex; gap: 12px; padding-top: 3px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8.5px; }
.chart-legend i { width: 7px; height: 2px; border-radius: 2px; background: var(--green-mid); }
.chart-legend i.gold { background: var(--gold); }
.line-chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.line-chart text { font-family: var(--sans); }
.chart-summary { display: flex; gap: 20px; padding: 10px 0 0; border-top: 1px solid var(--line-soft); }
.chart-summary div b { font-family: var(--serif); font-size: 17px; }
.chart-summary div span { margin-left: 5px; color: var(--muted); font-size: 8.5px; }
.ai-insight {
  position: relative; overflow: hidden;
  padding: 20px 21px;
  border-radius: var(--radius);
  color: #f6efe0;
  background:
    radial-gradient(320px 160px at 100% 0, rgba(197,157,88,.26), transparent 70%),
    linear-gradient(145deg, #61306d, #2f1735);
  box-shadow: 0 16px 35px rgba(69, 36, 77, .17);
}
.ai-insight::after { content: "AI"; position: absolute; right: 16px; bottom: -16px; font-family: var(--serif); font-size: 78px; color: rgba(245,236,218,.04); }
.ai-insight .ai-label { display: flex; align-items: center; gap: 6px; color: #dfc08b; font-size: 8.5px; letter-spacing: .14em; }
.ai-insight .ai-label svg { width: 13px; height: 13px; }
.ai-insight h3 { margin-top: 9px; font-family: var(--serif); font-size: 17px; letter-spacing: .02em; }
.ai-insight p { margin-top: 6px; color: rgba(245,236,218,.58); font-size: 9.5px; line-height: 1.85; }
.ai-insight .insight-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ai-insight .insight-tags span { padding: 4px 8px; border-radius: 4px; background: rgba(245,236,218,.07); color: rgba(245,236,218,.65); font-size: 8.5px; }
.ai-insight .btn { margin-top: 14px; color: #f1dfbf; border-color: rgba(241,223,191,.22); background: rgba(255,255,255,.04); }
.donut-wrap { display: flex; align-items: center; gap: 16px; margin-top: 13px; }
.donut { position: relative; width: 116px; height: 116px; flex: 0 0 116px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-family: var(--serif); font-size: 21px; line-height: 1; }
.donut-center span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.donut-legend div { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8.5px; }
.donut-legend i { width: 6px; height: 6px; border-radius: 2px; flex: 0 0 6px; }
.donut-legend b { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.recent-list { display: flex; flex-direction: column; margin-top: 12px; }
.recent-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.recent-item:last-child { border-bottom: 0; }
.recent-item .avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 9px; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 600; }
.recent-copy span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 8px; }
.recent-level { font-size: 8.5px; white-space: nowrap; }
.rank-list { margin-top: 11px; display: flex; flex-direction: column; gap: 1px; }
.rank-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.rank-item:last-child { border-bottom: 0; }
.rank-no { width: 18px; color: var(--muted-2); font-family: var(--serif); font-size: 12px; text-align: center; }
.rank-item.top .rank-no { color: var(--red); font-weight: 700; }
.rank-copy { flex: 1; min-width: 0; }
.rank-copy strong { display: block; font-size: 9.5px; font-weight: 600; }
.rank-copy span { display: block; color: var(--muted-2); font-size: 8px; }
.rank-score { color: var(--green); font-family: var(--serif); font-size: 13px; font-weight: 700; }
.notice-read-list { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.notice-read-row { display: flex; flex-direction: column; gap: 5px; }
.notice-read-top { display: flex; align-items: center; gap: 7px; }
.notice-read-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 600; }
.notice-read-top span { color: var(--muted); font-size: 8px; }
.read-bar { height: 4px; border-radius: 4px; background: var(--paper-4); overflow: hidden; }
.read-bar span { display: block; height: 100%; border-radius: 4px; background: var(--green-mid); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 20px 18px; }
.quick-action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.3);
  text-align: left;
  transition: .2s;
}
.quick-action:hover { background: var(--paper-2); border-color: #cec1a9; transform: translateY(-1px); }
.quick-action svg { width: 16px; height: 16px; color: var(--gold); }
.quick-action strong { font-size: 9.5px; font-weight: 600; }
.quick-action span { color: var(--muted-2); font-size: 8px; }

/* ==========================================================================
   教师端 · 通知发布
   ========================================================================== */
.composer-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.composer-card { overflow: hidden; }
.composer-stepbar {
  display: flex; align-items: center; gap: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(240,233,241,.26);
}
.step-node { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.step-node .step-no { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-2); font-family: var(--serif); font-size: 9px; }
.step-node.active { color: var(--ink); font-weight: 600; }
.step-node.active .step-no { background: var(--green); border-color: var(--green); color: #fff; }
.step-node.done .step-no { background: var(--green-soft); border-color: #c7b0ce; color: var(--safe); }
.step-line { flex: 1; height: 1px; margin: 0 12px; background: var(--line); }
.step-line.done { background: #c7b0ce; }
.composer-body { padding: 23px 24px 25px; }
.composer-title { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.ai-orb {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f0dfba, #c6a468);
  color: var(--green-deep);
  box-shadow: 0 5px 15px rgba(173,131,68,.25);
}
.ai-orb svg { width: 18px; height: 18px; }
.composer-title h2 { font-family: var(--serif); font-size: 18px; }
.composer-title p { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.prompt-box { position: relative; }
.prompt-box .textarea {
  min-height: 180px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255,255,255,.52);
  font-size: 11.5px;
  line-height: 1.9;
  resize: vertical;
}
.prompt-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.prompt-tools .small { color: var(--muted-2); font-size: 8.5px; }
.prompt-tools .tool-btns { display: flex; gap: 5px; }
.prompt-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.prompt-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.35);
  color: var(--muted);
  font-size: 8.5px;
  transition: .2s;
}
.prompt-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.composer-actions .hint { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 8.5px; }
.composer-actions .hint svg { width: 12px; height: 12px; }
.ai-side { display: flex; flex-direction: column; gap: 18px; }
.ai-side-card { padding: 18px 19px; }
.ai-side-card h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 14px; }
.ai-side-card h3 svg { width: 14px; height: 14px; color: var(--gold); }
.ai-side-card p { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.ai-check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ai-check { display: flex; gap: 8px; font-size: 9px; line-height: 1.6; color: var(--ink-soft); }
.ai-check .check-ico { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--safe); }
.ai-check .check-ico svg { width: 9px; height: 9px; }
.template-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.template-item {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255,255,255,.25);
  text-align: left;
  transition: .2s;
}
.template-item:hover { border-color: #cfc2ac; background: var(--paper-2); }
.template-item strong { display: block; font-size: 9.5px; font-weight: 600; }
.template-item span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.review-form { display: flex; flex-direction: column; gap: 14px; }
.review-section-label { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 8.5px; letter-spacing: .12em; margin-bottom: 2px; }
.review-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.review-note { padding: 13px 15px; border: 1px solid #d5c4a0; border-radius: 8px; background: #fbf3df; }
.review-note .note-title { display: flex; align-items: center; gap: 6px; color: #7b5a21; font-size: 9.5px; font-weight: 600; }
.review-note .note-title svg { width: 13px; height: 13px; }
.review-note p { margin-top: 4px; color: #8e774a; font-size: 8.5px; line-height: 1.65; }
.review-side { display: flex; flex-direction: column; gap: 15px; }
.preview-mobile {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eee7d9;
}
.preview-mobile::before { content: "学生端预览"; display: block; margin-bottom: 8px; color: var(--muted-2); font-size: 8px; letter-spacing: .12em; }
.preview-notice {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--paper-2);
  box-shadow: 0 6px 18px rgba(47,29,52,.06);
}
.preview-notice .pn-badge { display: flex; align-items: center; gap: 5px; }
.preview-notice .pn-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.preview-notice .pn-cat { color: var(--gold); font-size: 8px; }
.preview-notice h4 { margin-top: 7px; font-size: 11.5px; line-height: 1.55; }
.preview-notice p { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-notice .pn-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.preview-notice .pn-deadline { padding: 2px 5px; border-radius: 3px; background: var(--red-soft); color: var(--red-deep); font-size: 7.5px; }
.preview-notice .pn-meta { color: var(--muted-2); font-size: 7.5px; }
.audit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.audit-item { display: flex; align-items: flex-start; gap: 7px; font-size: 8.5px; color: var(--muted); line-height: 1.6; }
.audit-item svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 2px; color: var(--safe); }
.audit-item.warn svg { color: var(--gold); }
.publish-success { padding: 39px 25px 33px; text-align: center; }
.success-ring { width: 63px; height: 63px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--green-soft); color: var(--safe); box-shadow: 0 0 0 8px rgba(79,123,96,.07); }
.success-ring svg { width: 28px; height: 28px; }
.publish-success h2 { font-family: var(--serif); font-size: 23px; }
.publish-success p { max-width: 420px; margin: 7px auto 0; color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.success-stats { display: flex; justify-content: center; gap: 1px; margin: 21px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.success-stat { flex: 1; padding: 12px; background: rgba(255,255,255,.3); }
.success-stat b { display: block; font-family: var(--serif); font-size: 20px; }
.success-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.success-actions { display: flex; justify-content: center; gap: 8px; }

/* ==========================================================================
   教师端 · 学生管理
   ========================================================================== */
.manage-tabs { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(240,233,241,.55); margin-bottom: 18px; width: fit-content; }
.manage-tabs button { display: flex; align-items: center; gap: 5px; padding: 7px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10.5px; }
.manage-tabs button svg { width: 13px; height: 13px; }
.manage-tabs button.active { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: 0 2px 7px rgba(47,29,52,.08); }
.manage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.student-table-panel { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.table-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-toolbar .input { width: 170px; padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
.table-toolbar .select { width: 135px; padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(240,233,241,.36);
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); font-size: 9.5px; vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.4); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.student-cell { display: flex; align-items: center; gap: 8px; min-width: 118px; }
.student-cell .avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 9px; }
.student-cell strong { display: block; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.student-cell span { display: block; color: var(--muted-2); font-size: 7.5px; letter-spacing: .02em; }
.account-state { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--safe); }
.account-state::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--safe); }
.account-state.disabled { color: var(--muted-2); }
.account-state.disabled::before { background: var(--muted-2); }
.table-link { border: 0; padding: 0; background: transparent; color: var(--green-mid); font-size: 8.5px; }
.table-link:hover { text-decoration: underline; }
.table-muted { color: var(--muted-2); font-size: 8.5px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 8.5px; }
.table-foot .pager { display: flex; gap: 3px; }
.pager button { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 4px; background: transparent; color: var(--muted); font-size: 8px; }
.pager button.active { background: var(--green); border-color: var(--green); color: #fff; }
.pager button:disabled { opacity: .3; }
.create-panel { padding: 19px 20px 21px; }
.create-panel h2 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 16px; }
.create-panel h2 svg { width: 15px; height: 15px; color: var(--gold); }
.create-panel > p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.create-form { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.create-form .form-grid { gap: 9px; }
.create-form .input, .create-form .textarea, .create-form .select { font-size: 10.5px; padding: 8px 9px; }
.create-form .textarea { min-height: 82px; }
.template-download { display: flex; align-items: center; gap: 5px; color: var(--green-mid); font-size: 8.5px; }
.template-download svg { width: 11px; height: 11px; }
.import-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 128px; padding: 18px;
  border: 1px dashed #c8bca6; border-radius: 9px;
  background: rgba(255,255,255,.24);
  text-align: center; cursor: pointer;
  transition: .2s;
}
.import-zone:hover, .import-zone.drag { border-color: var(--gold); background: var(--gold-soft); }
.import-zone svg { width: 25px; height: 25px; color: var(--gold); margin-bottom: 7px; }
.import-zone strong { font-size: 10px; font-weight: 600; }
.import-zone span { margin-top: 3px; color: var(--muted-2); font-size: 8px; line-height: 1.6; }
.import-zone input { display: none; }
.import-preview { margin-top: 11px; font-size: 8.5px; color: var(--muted); }
.import-preview table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.import-preview th, .import-preview td { padding: 4px 5px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.import-preview th { color: var(--muted-2); font-weight: 500; }
.student-mini {
  display: flex; align-items: center; gap: 9px;
  padding: 10px; margin-top: 9px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  background: rgba(255,255,255,.3);
}
.student-mini .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
.student-mini strong { display: block; font-size: 9.5px; }
.student-mini span { display: block; color: var(--muted-2); font-size: 8px; }
.student-mini .chip { margin-left: auto; }

/* ==========================================================================
   教师端 · 成果档案
   ========================================================================== */
.outcome-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.outcome-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(252,249,252,.72); }
.outcome-stat .ico { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--safe); }
.outcome-stat .ico.gold { background: var(--gold-soft); color: #866226; }
.outcome-stat .ico.red { background: var(--red-soft); color: var(--red); }
.outcome-stat .ico.blue { background: var(--blue-soft); color: #456b7b; }
.outcome-stat .ico svg { width: 16px; height: 16px; }
.outcome-stat b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.outcome-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.outcome-panel { overflow: hidden; }
.outcome-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px 17px; border-bottom: 1px solid var(--line-soft); }
.outcome-filter .input { width: 190px; }
.outcome-filter .input, .outcome-filter .select { padding-top: 7px; padding-bottom: 7px; font-size: 10px; }
.outcome-filter .select { width: 120px; }
.outcome-filter .spacer { flex: 1; }
.level-pill { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 3px; font-size: 7.5px; font-weight: 600; white-space: nowrap; }
.level-national { background: #f2e1d9; color: #8d3524; }
.level-province { background: #f7ecd3; color: #8a6521; }
.level-school { background: #ecdfef; color: #6d3e77; }
.level-college { background: #e9e4d9; color: #6f6757; }
.level-class { background: #ebe9e3; color: #80796c; }
.outcome-title-cell { max-width: 270px; }
.outcome-title-cell strong { display: block; font-size: 9.5px; font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outcome-title-cell span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; }
.attach-cell { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: 8px; cursor: pointer; white-space: nowrap; }
.attach-cell svg { width: 10px; height: 10px; }
.attach-cell.none { color: var(--muted-2); cursor: default; }
.outcome-more { display: flex; justify-content: center; padding: 14px; }
.outcome-note { display: flex; align-items: center; gap: 6px; padding: 10px 17px; border-top: 1px solid var(--line-soft); background: rgba(240,233,241,.25); color: var(--muted-2); font-size: 8px; }
.outcome-note svg { width: 11px; height: 11px; color: var(--gold); }

/* ==========================================================================
   教师端 · 画像赋分
   ========================================================================== */
.portrait-workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: 20px; align-items: start; }
.portrait-preview-panel { overflow: hidden; }
.student-selector { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 15px 19px; border-bottom: 1px solid var(--line-soft); }
.selector-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.selector-left .avatar { width: 39px; height: 39px; flex-basis: 39px; font-size: 13px; }
.selector-left strong { display: block; font-family: var(--serif); font-size: 14px; }
.selector-left span { display: block; margin-top: 1px; color: var(--muted); font-size: 8.5px; }
.selector-left .select { width: 200px; padding-top: 6px; padding-bottom: 6px; font-size: 10px; }
.portrait-visual { padding: 15px 21px 20px; }
.portrait-banner {
  position: relative;
  padding: 17px 18px;
  border-radius: 9px;
  color: #f5eddf;
  background: linear-gradient(125deg, #43244e, #301733);
  overflow: hidden;
}
.portrait-banner::after { content: "画像"; position: absolute; right: 12px; bottom: -24px; font-family: var(--serif); font-size: 74px; color: rgba(245,237,223,.05); }
.portrait-banner-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.portrait-banner h3 { font-family: var(--serif); font-size: 17px; letter-spacing: .03em; }
.portrait-banner p { margin-top: 3px; color: rgba(245,237,223,.45); font-size: 8.5px; }
.portrait-banner .index { text-align: right; }
.portrait-banner .index b { display: block; font-family: var(--serif); font-size: 31px; line-height: 1; color: #ecd4a6; }
.portrait-banner .index span { display: block; margin-top: 2px; color: rgba(245,237,223,.4); font-size: 7.5px; letter-spacing: .1em; }
.portrait-banner .banner-tags { position: relative; z-index: 1; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.portrait-banner .banner-tags span { padding: 3px 7px; border: 1px solid rgba(245,237,223,.13); border-radius: 3px; color: rgba(245,237,223,.6); font-size: 7.5px; }
.portrait-chart-area { display: grid; grid-template-columns: minmax(215px, .9fr) 1fr; gap: 10px; align-items: center; }
.portrait-chart-area .radar-wrap { min-height: 225px; }
.portrait-chart-area .radar-wrap svg { max-width: 270px; }
.score-bars { display: flex; flex-direction: column; gap: 10px; }
.score-bar-row .sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; color: var(--muted); font-size: 8.5px; }
.score-bar-row .sb-top b { color: var(--ink-soft); font-weight: 600; }
.score-bar-row .sb-track { height: 5px; border-radius: 5px; background: var(--paper-4); overflow: hidden; }
.score-bar-row .sb-track span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #9a739f, #683b73); }
.score-bar-row:nth-child(4) .sb-track span, .score-bar-row:nth-child(5) .sb-track span { background: linear-gradient(90deg, #dcc391, #b08443); }
.portrait-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line-soft); background: rgba(240,233,241,.22); }
.portrait-preview-foot .note { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 8px; }
.portrait-preview-foot .note svg { width: 11px; height: 11px; color: var(--gold); }
.weight-panel { padding: 19px 20px 21px; }
.weight-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.weight-head h2 { font-family: var(--serif); font-size: 16px; }
.weight-head p { margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.weight-total { text-align: right; }
.weight-total b { display: block; font-family: var(--serif); font-size: 23px; line-height: 1; color: var(--green); }
.weight-total span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; }
.weight-total.warn b { color: var(--red); }
.weight-list { display: flex; flex-direction: column; gap: 13px; margin-top: 19px; }
.weight-row .wr-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.weight-row .wr-top .w-dot { width: 6px; height: 6px; border-radius: 2px; }
.weight-row .wr-top strong { font-size: 9.5px; font-weight: 600; }
.weight-row .wr-top .w-desc { color: var(--muted-2); font-size: 7.5px; margin-left: 2px; }
.weight-row .wr-top .w-num { margin-left: auto; font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.weight-row .wr-top .w-num small { font-size: 8px; color: var(--muted); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7a4a84 var(--fill, 30%), #e5ddce var(--fill, 30%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fbf7fb;
  border: 3px solid var(--green-mid);
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
  cursor: pointer;
}
.weight-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 17px; padding: 10px; border-radius: 6px; background: var(--gold-soft); color: #7c5f2e; font-size: 8px; line-height: 1.65; }
.weight-note svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 1px; }
.weight-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.weight-actions .btn { width: 100%; }
.rubric { margin-top: 15px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.rubric h3 { font-family: var(--serif); font-size: 12px; margin-bottom: 8px; }
.rubric-list { display: flex; flex-direction: column; gap: 6px; }
.rubric-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8.5px; }
.rubric-row span:last-child { color: var(--ink-soft); font-weight: 600; }
.share-card-modal { width: min(730px, 94vw); }
.modal.share-card-modal { width: min(730px, 94vw); }
.share-poster-wrap { padding: 24px; background: #e9e1d2; }
.share-poster {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 380px;
  padding: 26px;
  border-radius: 13px;
  color: #f6efe1;
  background:
    radial-gradient(500px 240px at 90% 0, rgba(194,154,87,.27), transparent 68%),
    linear-gradient(135deg, #43244e, #321a3b 64%, #291330);
  box-shadow: 0 20px 40px rgba(31,45,35,.18);
}
.share-poster::before { content: "岐黄"; position: absolute; left: -18px; bottom: -31px; writing-mode: vertical-rl; font-family: var(--serif); font-size: 90px; letter-spacing: .14em; color: rgba(245,237,223,.035); }
.poster-left { position: relative; z-index: 1; display: flex; flex-direction: column; }
.poster-brand { display: flex; align-items: center; gap: 7px; color: rgba(245,237,223,.5); font-size: 8px; letter-spacing: .2em; }
.poster-brand .seal { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 3px; background: #ede2cb; color: #3b2144; font-family: var(--serif); font-size: 14px; }
.poster-name { margin-top: 27px; font-family: var(--serif); font-size: 28px; letter-spacing: .06em; }
.poster-class { margin-top: 4px; color: rgba(245,237,223,.45); font-size: 8.5px; letter-spacing: .06em; }
.poster-index { margin-top: 22px; }
.poster-index span { display: block; color: rgba(245,237,223,.45); font-size: 8px; letter-spacing: .14em; }
.poster-index b { display: block; margin-top: 2px; font-family: var(--serif); font-size: 52px; line-height: 1; color: #ecd2a1; font-weight: 700; }
.poster-index b small { font-family: var(--sans); font-size: 10px; color: rgba(245,237,223,.4); font-weight: 400; }
.poster-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 18px; }
.poster-tags span { padding: 3px 7px; border: 1px solid rgba(245,237,223,.15); border-radius: 3px; color: rgba(245,237,223,.66); font-size: 7.5px; }
.poster-quote { margin-top: auto; padding-top: 18px; color: rgba(245,237,223,.5); font-family: var(--serif); font-size: 10px; line-height: 1.7; }
.poster-right { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.poster-right svg { width: 100%; max-width: 250px; height: auto; }
.poster-stamp {
  position: absolute; right: 23px; bottom: 23px;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid rgba(194,155,87,.48);
  border-radius: 50%;
  color: #d2b173;
  font-family: var(--serif);
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-9deg);
}
.share-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.share-actions .left { display: flex; gap: 7px; }
.share-actions .hint { color: var(--muted-2); font-size: 8px; }

/* ==========================================================================
   数据大屏
   ========================================================================== */
body.screen-mode { background: #170f1d; }
body.screen-mode .app-shell { display: block; }
body.screen-mode .sidebar, body.screen-mode .topbar { display: none; }
body.screen-mode .view { min-height: 100vh; }
.data-screen {
  position: relative;
  min-height: 100vh;
  padding: 22px 27px 28px;
  color: #e9f0e5;
  background:
    radial-gradient(900px 450px at 50% -14%, rgba(117, 69, 130, .22), transparent 68%),
    radial-gradient(600px 380px at 100% 100%, rgba(146, 107, 47, .1), transparent 65%),
    #170f1d;
  overflow: hidden;
}
.data-screen::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(153, 118, 163, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(153, 118, 163, .09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 35%, #000 15%, transparent 82%);
}
.screen-inner { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(184, 155, 192, .13); }
.screen-brand { display: flex; align-items: center; gap: 11px; }
.screen-brand .seal { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(220, 190, 135, .4); border-radius: 4px; color: #e0c38f; font-family: var(--serif); font-size: 20px; }
.screen-brand h1 { font-family: var(--serif); font-size: 22px; letter-spacing: .11em; font-weight: 700; }
.screen-brand span { display: block; margin-top: 1px; color: rgba(225, 211, 230, .35); font-size: 7.5px; letter-spacing: .22em; }
.screen-tools { display: flex; align-items: center; gap: 10px; }
.screen-live { display: flex; align-items: center; gap: 6px; color: rgba(225, 211, 230, .52); font-size: 8px; letter-spacing: .06em; }
.screen-live i { width: 5px; height: 5px; border-radius: 50%; background: #79b991; box-shadow: 0 0 0 4px rgba(121,185,145,.11); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; box-shadow: 0 0 0 7px rgba(121,185,145,.04); } }
.screen-date { color: rgba(225,211,230,.36); font-size: 8px; }
.screen-tool-btn {
  width: 29px; height: 29px; display: grid; place-items: center;
  border: 1px solid rgba(174,207,185,.18); border-radius: 5px;
  background: rgba(255,255,255,.03); color: rgba(223,239,227,.58);
}
.screen-tool-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.screen-tool-btn svg { width: 13px; height: 13px; }
.screen-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 17px 0 13px; }
.screen-intro h2 { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: .06em; color: rgba(238,245,235,.85); }
.screen-intro h2 b { color: #dfc38f; font-weight: 700; }
.screen-intro p { margin-top: 3px; color: rgba(225,211,230,.35); font-size: 8px; letter-spacing: .04em; }
.screen-intro .screen-ticker { display: flex; align-items: center; gap: 8px; overflow: hidden; max-width: 46%; color: rgba(225,211,230,.42); font-size: 8px; white-space: nowrap; }
.screen-ticker .tk-label { color: #c5a66d; border: 1px solid rgba(197,166,109,.23); padding: 2px 5px; border-radius: 2px; font-size: 7px; }
.screen-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.screen-kpi {
  position: relative; overflow: hidden;
  padding: 14px 16px;
  border: 1px solid rgba(184,155,192,.14);
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.screen-kpi::after { content: ""; position: absolute; right: -24px; bottom: -42px; width: 88px; height: 88px; border: 1px solid rgba(201,168,105,.14); border-radius: 50%; }
.screen-kpi .sk-top { display: flex; align-items: center; justify-content: space-between; color: rgba(225,211,230,.44); font-size: 8px; letter-spacing: .08em; }
.screen-kpi .sk-top svg { width: 14px; height: 14px; color: #b69963; }
.screen-kpi .sk-num { margin-top: 9px; font-family: var(--serif); font-size: 34px; line-height: 1; color: #f1e7d2; font-weight: 700; letter-spacing: .02em; }
.screen-kpi .sk-num small { font-family: var(--sans); font-size: 9px; font-weight: 400; color: rgba(225,211,230,.38); margin-left: 4px; }
.screen-kpi .sk-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: rgba(225,211,230,.32); font-size: 7.5px; }
.screen-kpi .sk-foot b { color: #d8c08c; font-weight: 500; }
.screen-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 12px; margin-top: 12px; }
.screen-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.screen-panel {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(184,155,192,.13);
  border-radius: 6px;
  background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.screen-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; }
.screen-panel-head h3 { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 12px; letter-spacing: .07em; color: rgba(238,245,235,.82); font-weight: 500; }
.screen-panel-head h3::before { content: ""; width: 2px; height: 10px; background: #c5a66d; border-radius: 2px; }
.screen-panel-head span { color: rgba(225,211,230,.3); font-size: 7px; letter-spacing: .04em; }
.screen-line { width: 100%; height: auto; margin-top: 2px; }
.screen-line text { font-family: var(--sans); }
.screen-bottom { display: grid; grid-template-columns: 1.3fr .9fr .8fr; gap: 12px; margin-top: 12px; }
.screen-heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 4px; }
.heat-cell { aspect-ratio: 1; border-radius: 1.5px; background: rgba(133,178,150,.08); }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; color: rgba(225,211,230,.28); font-size: 6.5px; }
.heat-legend i { width: 7px; height: 7px; border-radius: 1px; }
.screen-rank { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.screen-rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(184,155,192,.08); }
.screen-rank-row:last-child { border-bottom: 0; }
.screen-rank-row .no { width: 15px; color: rgba(225,211,230,.3); font-family: var(--serif); font-size: 10px; }
.screen-rank-row:nth-child(-n+3) .no { color: #d8bb83; }
.screen-rank-row .nm { flex: 1; font-size: 8.5px; color: rgba(238,245,235,.7); }
.screen-rank-row .cl { color: rgba(225,211,230,.28); font-size: 7px; }
.screen-rank-row .sc { color: #d8bb83; font-family: var(--serif); font-size: 12px; }
.screen-honor-list { display: flex; flex-direction: column; gap: 6px; }
.screen-honor { display: flex; gap: 7px; align-items: flex-start; padding-bottom: 5px; border-bottom: 1px solid rgba(184,155,192,.07); }
.screen-honor:last-child { border-bottom: 0; }
.screen-honor .hv { margin-top: 2px; width: 3px; height: 3px; border-radius: 50%; background: #c5a66d; flex: 0 0 3px; }
.screen-honor p { color: rgba(238,245,235,.68); font-size: 8px; line-height: 1.55; }
.screen-honor span { display: block; margin-top: 1px; color: rgba(225,211,230,.27); font-size: 6.5px; }
.screen-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; color: rgba(225,211,230,.22); font-size: 6.5px; letter-spacing: .08em; }
.screen-insight { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.screen-insight p { padding: 6px 8px; border-left: 1px solid rgba(197,166,109,.3); color: rgba(225,211,230,.55); font-size: 7.5px; line-height: 1.65; background: rgba(255,255,255,.015); }
.screen-insight b { color: #d8bb83; font-weight: 500; }

/* ==========================================================================
   浮窗 · AI 助手
   ========================================================================== */
.ai-fab {
  position: fixed;
  right: 26px; bottom: 25px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 9px;
  border: 1px solid rgba(212, 185, 133, .42);
  border-radius: 30px;
  background: linear-gradient(135deg, #4b2854, #301734);
  color: #f4e9d5;
  box-shadow: 0 13px 34px rgba(66, 32, 75, .32);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ai-fab:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(66, 32, 75, .4); }
.ai-fab .fab-orb {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f4e5c7, #c5a367);
  color: #3b2045;
  animation: orbGlow 6s ease-in-out infinite;
}
@keyframes orbGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(213,184,127,.22); } 50% { box-shadow: 0 0 0 7px rgba(213,184,127,0); } }
.ai-fab .fab-orb svg { width: 16px; height: 16px; }
.ai-fab .fab-copy { text-align: left; line-height: 1.3; }
.ai-fab .fab-copy strong { display: block; font-family: var(--serif); font-size: 11.5px; letter-spacing: .05em; }
.ai-fab .fab-copy span { display: block; color: rgba(244,233,213,.45); font-size: 7.5px; letter-spacing: .03em; }
.ai-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 120;
  width: min(430px, 100vw);
  display: flex; flex-direction: column;
  background: #f7f1e5;
  box-shadow: -22px 0 60px rgba(34, 18, 39, .18);
  border-left: 1px solid rgba(214,202,181,.7);
  animation: drawerIn .38s var(--ease) both;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.ai-drawer-head {
  position: relative;
  overflow: hidden;
  padding: 20px 21px 17px;
  color: #f6efe1;
  background:
    radial-gradient(300px 150px at 100% 0, rgba(197,157,88,.26), transparent 70%),
    linear-gradient(135deg, #45264f, #321a3b);
}
.ai-drawer-head::after { content: "岐"; position: absolute; right: 16px; bottom: -29px; font-family: var(--serif); font-size: 104px; color: rgba(245,236,218,.045); }
.ai-drawer-title { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.ai-drawer-title .orb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #f4e5c7, #c5a367); color: #3b2045; }
.ai-drawer-title .orb svg { width: 19px; height: 19px; }
.ai-drawer-title h2 { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.ai-drawer-title span { display: block; margin-top: 1px; color: rgba(245,236,218,.45); font-size: 8px; letter-spacing: .08em; }
.ai-drawer-head p { position: relative; z-index: 1; margin-top: 11px; color: rgba(245,236,218,.52); font-size: 9px; line-height: 1.65; }
.ai-close { position: absolute; right: 13px; top: 13px; z-index: 2; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(244,233,213,.15); border-radius: 50%; background: transparent; color: rgba(244,233,213,.55); }
.ai-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.ai-close svg { width: 13px; height: 13px; }
.ai-tabs { display: flex; gap: 4px; padding: 9px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.26); }
.ai-tab { padding: 5px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9.5px; }
.ai-tab.active { background: var(--paper-3); color: var(--ink); font-weight: 600; }
.ai-chat { flex: 1; overflow-y: auto; padding: 16px 17px 8px; }
.chat-day { display: flex; align-items: center; gap: 8px; margin: 2px 0 13px; color: var(--muted-2); font-size: 7.5px; letter-spacing: .08em; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.chat-msg { display: flex; gap: 8px; margin-bottom: 13px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-mid); font-family: var(--serif); font-size: 10px; }
.chat-msg.user .chat-avatar { background: #efe2ca; color: #6e5225; font-family: var(--sans); font-size: 8.5px; }
.chat-bubble {
  max-width: 84%;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 2px 9px 9px 9px;
  background: rgba(255,255,255,.57);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}
.chat-msg.user .chat-bubble { border: 0; border-radius: 9px 2px 9px 9px; background: var(--green); color: #f7f0e1; }
.chat-bubble p + p { margin-top: 6px; }
.chat-bubble b { color: var(--green); font-weight: 600; }
.chat-msg.user .chat-bubble b { color: #f2dfba; }
.chat-bubble ul { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.chat-bubble li { position: relative; padding-left: 9px; }
.chat-bubble li::before { content: "·"; position: absolute; left: 0; color: var(--gold); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 5px; margin: -3px 0 13px 33px; }
.chat-quick button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.35); color: var(--muted); font-size: 8px; }
.chat-quick button:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.ai-record-card {
  margin: 0 0 13px 33px;
  border: 1px solid #d5c4a0;
  border-radius: 8px;
  overflow: hidden;
  background: #fdf8ec;
}
.ai-record-card .arc-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e8dcc4; background: #f8efdb; color: #7c5c25; font-size: 8.5px; font-weight: 600; }
.ai-record-card .arc-head svg { width: 12px; height: 12px; }
.ai-record-body { padding: 9px 11px; }
.ai-record-body h4 { font-size: 10.5px; font-weight: 600; line-height: 1.5; }
.ai-record-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-top: 7px; }
.ai-record-fields span { color: var(--muted); font-size: 8px; }
.ai-record-fields b { display: block; margin-top: 1px; color: var(--ink-soft); font-weight: 500; font-size: 8.5px; }
.ai-record-actions { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #e8dcc4; }
.ai-record-actions .btn { flex: 1; }
.chat-input-wrap { padding: 10px 14px 13px; border-top: 1px solid var(--line-soft); background: rgba(252,249,252,.7); }
.chat-input-box { display: flex; align-items: flex-end; gap: 7px; padding: 7px 7px 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.chat-input-box:focus-within { border-color: #a5b29c; box-shadow: 0 0 0 3px rgba(105,61,116,.07); }
.chat-input-box textarea { flex: 1; min-height: 23px; max-height: 100px; border: 0; resize: none; background: transparent; font-size: 10px; line-height: 1.6; outline: none; }
.chat-send { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--green); color: #fff; }
.chat-send:hover { background: var(--green-deep); }
.chat-send svg { width: 13px; height: 13px; }
.chat-foot-hint { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; color: var(--muted-2); font-size: 7.5px; }
.chat-foot-hint span { display: flex; align-items: center; gap: 3px; }
.chat-foot-hint svg { width: 9px; height: 9px; }
.typing-dots { display: inline-flex; gap: 3px; padding: 3px 0; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--green-mid); animation: typing 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* ==========================================================================
   弹窗 / 抽屉 / 提示
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  padding: 22px;
  background: rgba(27, 15, 31, .58);
  backdrop-filter: blur(6px);
  animation: overlayIn .22s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.overlay.drawer-overlay { place-items: stretch; padding: 0; }
.modal {
  width: min(610px, 94vw);
  max-height: 89vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow-lg);
  animation: modalIn .34s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 13px;
  padding: 19px 21px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251,248,241,.94);
  backdrop-filter: blur(12px);
  border-radius: 16px 16px 0 0;
}
.modal-head h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; line-height: 1.4; }
.modal-head p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.modal-close {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted);
}
.modal-close:hover { background: var(--paper-3); color: var(--ink); }
.modal-close svg { width: 13px; height: 13px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--line-soft); background: rgba(247,242,247,.72); border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.modal-foot .foot-left { margin-right: auto; color: var(--muted-2); font-size: 8.5px; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 121;
  width: min(550px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper-2);
  box-shadow: -22px 0 60px rgba(34,18,39,.19);
  animation: drawerIn .36s var(--ease) both;
}
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 21px 23px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(252,249,252,.92);
}
.drawer-head h2 { font-family: var(--serif); font-size: 21px; line-height: 1.45; letter-spacing: .01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 23px 25px; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 13px 22px; border-top: 1px solid var(--line-soft); background: rgba(247,242,247,.72); }
.drawer-foot .foot-left { margin-right: auto; color: var(--muted-2); font-size: 8.5px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.detail-meta-item span { color: var(--muted-2); font-size: 8px; letter-spacing: .06em; }
.detail-meta-item strong { font-size: 9.5px; font-weight: 600; }
.detail-content { padding: 17px 0; color: var(--ink-soft); font-size: 11.5px; line-height: 2; }
.detail-content p + p { margin-top: 12px; }
.detail-content strong { color: var(--ink); }
.detail-callout { padding: 12px 14px; margin: 13px 0; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #755829; font-size: 10px; line-height: 1.75; }
.attachment-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.attachment-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(255,255,255,.32); cursor: pointer; }
.attachment-row > svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--muted-2); }
.attachment-icon { width: 27px; height: 31px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 3px; background: var(--red-soft); color: var(--red); font-size: 7px; font-weight: 700; }
.attachment-icon.pdf { background: var(--red-soft); color: var(--red); }
.attachment-icon.img { background: var(--green-soft); color: var(--safe); }
.attachment-icon.doc { background: var(--blue-soft); color: var(--blue); }
.attachment-copy { flex: 1; min-width: 0; }
.attachment-copy strong { display: block; font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment-copy span { display: block; color: var(--muted-2); font-size: 8px; margin-top: 1px; }
.mark-important {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 9px;
}
.mark-important.active { color: #7e5c22; background: var(--gold-soft); border-color: #dbc49a; }
.mark-important svg { width: 12px; height: 12px; }
.resume-preview {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffbfe;
  box-shadow: inset 0 0 0 5px #fbf7ee;
}
.resume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.resume-head h2 { font-family: var(--serif); font-size: 23px; letter-spacing: .08em; }
.resume-head p { margin-top: 4px; color: var(--muted); font-size: 8.5px; letter-spacing: .04em; }
.resume-seal { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 3px; color: var(--red); font-family: var(--serif); font-size: 18px; transform: rotate(-3deg); }
.resume-section { margin-top: 14px; }
.resume-section h3 { padding-bottom: 4px; border-bottom: 1px solid var(--line-soft); color: var(--green); font-family: var(--serif); font-size: 11px; letter-spacing: .12em; }
.resume-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); font-size: 8.5px; }
.resume-row time { flex: 0 0 67px; color: var(--muted); font-variant-numeric: tabular-nums; }
.resume-row div { flex: 1; }
.resume-row strong { display: block; font-weight: 600; }
.resume-row span { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.resume-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.toast-stack { position: fixed; right: 24px; bottom: 89px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  max-width: 340px;
  padding: 10px 13px;
  border: 1px solid rgba(214,202,181,.7);
  border-radius: 8px;
  background: #fdf9f0;
  color: var(--ink-soft);
  box-shadow: 0 13px 32px rgba(40,25,45,.16);
  font-size: 10px;
  line-height: 1.55;
  animation: toastIn .35s var(--ease) both;
}
.toast.out { animation: toastOut .3s ease both; }
.toast svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--safe); }
.toast.error svg { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px); } }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .page { padding-left: 28px; padding-right: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .notice-layout { grid-template-columns: minmax(0, 1.4fr) minmax(285px, .72fr); }
  .records-layout, .community-layout { grid-template-columns: minmax(0, 1fr) 265px; }
  .program-grid { gap: 14px; }
  .screen-bottom { grid-template-columns: 1.2fr .9fr .8fr; }
}
@media (max-width: 1120px) {
  .notice-layout { grid-template-columns: 1fr; }
  .notice-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .records-layout { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .community-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .profile-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .composer-shell { grid-template-columns: 1fr; }
  .ai-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .manage-layout { grid-template-columns: 1fr; }
  .create-panel { order: -1; }
  .portrait-workspace { grid-template-columns: 1fr; }
  .screen-main { grid-template-columns: 1fr; }
  .screen-bottom { grid-template-columns: 1fr 1fr; }
  .screen-bottom > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 252px; transform: translateX(-100%); transition: transform .3s var(--ease); height: 100vh; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; place-items: center; }
  .topbar { padding: 0 19px; height: 62px; }
  .view { min-height: calc(100vh - 62px); }
  .page { padding: 24px 19px 52px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .head-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .advice-grid { grid-template-columns: 1fr; }
  .portrait-grid { grid-template-columns: 1fr; }
  .radar-wrap { min-height: 230px; }
  .birthday-card { grid-template-columns: 1fr; }
  .birthday-action { justify-self: flex-start; }
  .outcome-summary { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .screen-kpis { grid-template-columns: 1fr 1fr; }
  .screen-bottom { grid-template-columns: 1fr; }
  .screen-bottom > :last-child { grid-column: auto; }
  .screen-intro { flex-direction: column; align-items: flex-start; }
  .screen-intro .screen-ticker { max-width: 100%; }
  .review-grid { grid-template-columns: 1fr; }
  .share-poster { grid-template-columns: 1fr; }
  .poster-right { display: none; }
  .portrait-chart-area { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .annual-hero { padding: 23px 18px 20px; }
  .annual-hero h2 { font-size: 23px; padding-right: 28px; }
  .annual-seal { display: none; }
  .annual-body { padding: 16px 15px 18px; }
  .annual-stats { grid-template-columns: 1fr 1fr; }
  .annual-actions { flex-direction: column-reverse; }
  .annual-actions .btn { width: 100%; }
  .annual-blessing { padding: 15px; }
  .annual-highlight p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ai-archive-row strong { max-width: 220px; }
  .topbar-right .term-pill { display: none; }
  .top-identity-name { display: none; }
  .topbar { padding: 0 13px; }
  .breadcrumb { font-size: 10px; }
  .page { padding: 20px 13px 46px; }
  .page-head h1 { font-size: 26px; }
  .page-head .lede { font-size: 11px; }
  .topbar .term-pill { display: none; }
  .notice-aside { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  .community-side { grid-template-columns: 1fr; }
  .profile-side { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 13px 14px; }
  .strip-item .stat-num { font-size: 24px; }
  .notice-row { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 15px; gap: 10px; }
  .date-tile { width: 37px; height: 43px; }
  .date-tile strong { font-size: 16px; }
  .notice-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; min-width: 0; padding-top: 2px; }
  .notice-side .mark-star { margin-left: auto; }
  .notice-toolbar { padding: 14px 15px 11px; }
  .legend { padding: 8px 15px; flex-wrap: wrap; }
  .legend-note { width: 100%; margin-left: 0; }
  .record-item { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .record-kind { width: 32px; height: 32px; }
  .record-item::before { left: 15px; }
  .record-side { flex-direction: row; align-items: center; grid-column: 2; }
  .record-side .chev { display: none; }
  .record-source { margin-left: auto; }
  .records-filter { padding: 12px 14px; }
  .records-filter .input { width: 100%; }
  .filter-right { width: 100%; }
  .filter-right .input { flex: 1; }
  .records-list { padding: 2px 14px 8px; }
  .panel-head { padding: 16px 15px 12px; }
  .panel-body { padding: 0 15px 16px; }
  .quick-actions { padding: 0 14px 15px; }
  .outcome-summary { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { padding: 13px; }
  .kpi-card .stat-num { font-size: 25px; }
  .welcome-actions { width: 100%; }
  .teacher-welcome { flex-direction: column; align-items: flex-start; padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .ai-side { grid-template-columns: 1fr; }
  .composer-stepbar { padding: 12px 14px; overflow-x: auto; }
  .step-node { font-size: 9px; }
  .step-line { margin: 0 7px; }
  .composer-body { padding: 18px 15px 20px; }
  .outcome-filter { padding: 11px 13px; }
  .outcome-filter .input { width: 100%; }
  .outcome-filter .spacer { display: none; }
  .table-toolbar { padding: 11px 13px; }
  .table-toolbar .input { width: 100%; }
  .share-poster-wrap { padding: 14px; }
  .share-poster { padding: 19px; }
  .modal { border-radius: 13px; max-height: 92vh; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-body { padding: 16px; }
  .drawer-head { padding: 16px; }
  .drawer-body { padding: 16px; }
  .toast-stack { right: 12px; bottom: 80px; max-width: calc(100vw - 24px); }
  .ai-fab { right: 14px; bottom: 14px; padding: 7px 12px 7px 7px; }
  .ai-fab .fab-copy span { display: none; }
  .ai-fab .fab-copy strong { font-size: 10.5px; }
  .data-screen { padding: 15px 13px 24px; }
  .screen-top { flex-wrap: wrap; gap: 9px; }
  .screen-brand h1 { font-size: 17px; }
  .screen-tools { gap: 5px; }
  .screen-date { display: none; }
  .screen-intro { padding: 12px 0 10px; }
  .screen-main { margin-top: 9px; }
  .screen-bottom { margin-top: 9px; }
  .screen-heat { grid-template-columns: repeat(16, 1fr); }
  .screen-panel { padding: 11px; }
  .screen-kpis { gap: 8px; }
  .screen-kpi { padding: 11px; }
  .screen-kpi .sk-num { font-size: 25px; }
  .profile-card { padding: 21px 18px 17px; }
  .portrait-card { padding: 17px 16px; }
  .portrait-head { flex-direction: column; gap: 9px; }
  .portrait-score { text-align: left; }
  .advice-panel, .badge-case { padding: 16px; }
  .program-hero { padding: 22px 19px; }
  .page-summary { gap: 7px; }
  .summary-chip { padding: 7px 10px; }
  .outcome-title-cell { max-width: 180px; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .student-selector { flex-direction: column; align-items: flex-start; }
  .selector-left { width: 100%; }
  .selector-left .select { flex: 1; width: auto; }
  .portrait-visual { padding: 12px 14px 16px; }
  .weight-panel { padding: 16px; }
  .resume-preview { padding: 16px; }
  .share-actions { justify-content: center; }
  .share-actions .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}












