:root {
  --ink: #111820;
  --ink-soft: #26313b;
  --muted: #6f7a86;
  --line: #dce3e9;
  --line-soft: #edf1f4;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --red: #e94235;
  --blue: #2c6cf6;
  --green: #159a73;
  --amber: #f3a631;
  --purple: #7650ad;
  --shadow: 0 18px 46px rgba(25, 42, 58, .08);
  --radius: 22px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(44, 108, 246, .24); outline-offset: 2px; }
.hidden { display: none !important; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.primary-button, .secondary-button, .danger-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { background: var(--ink); color: #fff; box-shadow: 0 12px 24px rgba(17, 24, 32, .16); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(17, 24, 32, .22); }
.secondary-button { border: 1px solid var(--line); background: #fff; }
.secondary-button:hover { background: #f8fafb; }
.danger-button { border: 1px solid #ffd6d2; background: #fff5f4; color: #c93429; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.full { width: 100%; }

/* 登录页：用跑道线作为唯一的强记忆点。 */
.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 470px);
  grid-template-rows: auto 1fr;
  gap: 44px 7vw;
  overflow: hidden;
  background: #f4f7f9;
}
.auth-track { position: absolute; inset: auto auto -230px -170px; width: 770px; height: 530px; transform: rotate(-13deg); border-radius: 50%; pointer-events: none; }
.auth-track i { position: absolute; inset: calc(var(--n) * 38px); border: 2px solid rgba(233, 66, 53, .14); border-radius: 50%; }
.auth-track i:nth-child(1) { --n: 0; }
.auth-track i:nth-child(2) { --n: 1; }
.auth-track i:nth-child(3) { --n: 2; }
.auth-track i:nth-child(4) { --n: 3; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.auth-brand img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: var(--ink); }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand strong { font-size: 17px; font-weight: 850; letter-spacing: .02em; }
.auth-brand span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.auth-copy { position: relative; z-index: 1; align-self: center; max-width: 650px; padding-bottom: 80px; }
.auth-copy h1 { margin: 18px 0 0; font-size: clamp(47px, 6vw, 84px); font-weight: 950; line-height: 1.04; letter-spacing: -.06em; }
.auth-copy p { max-width: 580px; margin: 26px 0 0; color: #606c77; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.8; }
.auth-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-points span { padding: 9px 13px; border: 1px solid #d8e0e6; border-radius: 999px; background: rgba(255, 255, 255, .72); color: #46535f; font-size: 12px; font-weight: 700; }
.auth-panel { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; padding: 34px; }
.auth-tabs { padding: 5px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; background: #edf1f4; }
.auth-tab { height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 720; }
.auth-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 5px 14px rgba(24, 38, 52, .08); }
.auth-form { margin-top: 26px; display: grid; gap: 17px; }
.auth-form label, .form-field { display: grid; gap: 8px; color: #586571; font-size: 13px; font-weight: 700; }
input, select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d7dfe5;
  border-radius: 13px;
  background: #f9fbfc;
  color: var(--ink);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
input:focus, select:focus { border-color: #93a8bb; background: #fff; box-shadow: 0 0 0 4px rgba(44, 108, 246, .07); outline: 0; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-message { min-height: 20px; margin: 14px 0 0; color: #c93429; font-size: 13px; line-height: 1.5; text-align: center; }
.auth-footnote { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); color: #7a8590; font-size: 12px; line-height: 1.7; text-align: center; }

/* 应用框架 */
.app-shell { min-height: 100vh; }
.side-nav { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 18px; display: flex; flex-direction: column; border-right: 1px solid #dde4e9; background: #fff; }
.nav-brand { padding: 0 8px 24px; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.nav-brand img { width: 43px; height: 43px; border-radius: 13px; object-fit: cover; }
.nav-brand strong, .nav-brand small { display: block; }
.nav-brand strong { font-size: 14px; font-weight: 900; }
.nav-brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.side-nav nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 13px; display: flex; align-items: center; gap: 12px; background: transparent; color: #586571; cursor: pointer; text-align: left; font-size: 14px; font-weight: 720; }
.nav-item:hover { background: #f5f7f9; }
.nav-item.is-active { background: var(--ink); color: #fff; }
.nav-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 500; }
.side-security { margin-top: auto; padding: 16px 13px; border-radius: 15px; display: flex; gap: 10px; background: #f2f8f6; color: #4f6d63; font-size: 11px; line-height: 1.65; }
.side-security i { width: 9px; height: 9px; margin-top: 4px; flex: 0 0 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21, 154, 115, .12); }
.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.top-bar { position: sticky; z-index: 15; top: 0; height: 68px; padding: 0 clamp(22px, 4vw, 52px); display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid rgba(220, 227, 233, .85); background: rgba(243, 246, 248, .88); backdrop-filter: blur(16px); }
.mobile-brand { display: none; }
.top-status { margin-right: 18px; display: flex; align-items: center; gap: 8px; color: #71808b; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21, 154, 115, .11); }
.account-menu { position: relative; }
.account-button { height: 42px; padding: 0 10px 0 7px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 9px; background: #fff; cursor: pointer; }
.account-button > span { width: 29px; height: 29px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; }
.account-button b { font-size: 12px; }
.account-button i { width: 7px; height: 7px; margin: -3px 2px 0 3px; border-right: 1.5px solid #74808a; border-bottom: 1.5px solid #74808a; transform: rotate(45deg); }
.account-popover { position: absolute; top: 49px; right: 0; width: 180px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.account-role { padding: 9px 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.account-popover button { width: 100%; height: 38px; margin-top: 6px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.account-popover button:hover { background: #f5f7f9; }
.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 70px; }
.mobile-nav { display: none; }

/* 页面通用 */
.page-header { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-header h1 { margin: 7px 0 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.page-header p { max-width: 650px; margin: 11px 0 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.section-heading { margin: 34px 0 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-heading span { color: var(--muted); font-size: 12px; }
.section-heading.flush-top { margin-top: 0; }
.section-heading.flush { margin: 0; }
.safe-note { margin-top: 17px; padding: 14px 16px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: #fff7e9; color: #745321; font-size: 12px; line-height: 1.7; }
.empty-state { padding: 36px; text-align: center; }
.empty-state b { display: block; font-size: 18px; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 17px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 900; }
.spaced-empty { margin-top: 20px; }
.loading-state { padding: 70px; color: var(--muted); text-align: center; }

/* 首页 */
.roster-strip { min-height: 88px; padding: 16px 18px; display: grid; grid-template-columns: auto minmax(130px, 1fr) auto auto; align-items: center; gap: 14px; border-left: 6px solid var(--red); }
.roster-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; font-weight: 900; }
.roster-copy { min-width: 0; }
.roster-copy small, .roster-copy strong { display: block; }
.roster-copy small { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.roster-copy strong { margin-top: 5px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.roster-select { width: min(270px, 30vw); }
.small-button { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 12px; }
.hero-grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 22px; }
.hero-card { position: relative; min-height: 360px; padding: clamp(32px, 5vw, 58px); overflow: hidden; }
.hero-card::after { position: absolute; top: -140px; right: -140px; width: 410px; height: 300px; border: 16px solid rgba(233, 66, 53, .08); border-radius: 50%; transform: rotate(-24deg); content: ""; }
.hero-card h1 { position: relative; z-index: 1; margin: 18px 0 0; font-size: clamp(43px, 5.2vw, 68px); font-weight: 950; line-height: 1.07; letter-spacing: -.06em; }
.hero-card p { position: relative; z-index: 1; max-width: 580px; margin: 21px 0 27px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-card .primary-button { position: relative; z-index: 1; }
.lane-card { padding: 7px 20px; box-shadow: none; }
.lane-row { min-height: 83px; display: grid; grid-template-columns: 5px 32px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line-soft); }
.lane-row:last-child { border-bottom: 0; }
.lane-bar { width: 5px; height: 46px; border-radius: 999px; background: var(--red); }
.lane-row.blue .lane-bar { background: var(--blue); }
.lane-row.amber .lane-bar { background: var(--amber); }
.lane-row.green .lane-bar { background: var(--green); }
.lane-index { color: #a4adb5; font-size: 12px; font-weight: 850; text-align: center; }
.lane-copy b, .lane-copy small { display: block; }
.lane-copy b { font-size: 13px; }
.lane-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.lane-score { display: flex; align-items: baseline; }
.lane-score strong { font-family: "DIN Alternate", "Arial Narrow", sans-serif; font-size: 27px; }
.lane-score span { margin-left: 4px; color: var(--muted); font-size: 10px; }
.latest-card { margin-top: 22px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; cursor: pointer; }
.latest-card:hover { border-color: #bdc9d2; }
.latest-card small, .latest-card b { display: block; }
.latest-card small { color: var(--red); font-size: 10px; font-weight: 800; }
.latest-card b { margin-top: 7px; font-size: 16px; }
.latest-total { align-self: center; display: flex; align-items: baseline; }
.latest-total strong { font-family: "DIN Alternate", sans-serif; font-size: 39px; }
.latest-total span { color: var(--muted); font-size: 11px; }
.latest-link { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid var(--line-soft); color: #52606c; font-size: 12px; }
.latest-link i { float: right; color: var(--red); font-size: 18px; font-style: normal; }

/* 测评 */
.identity-card { padding: 0 22px; }
.identity-row { min-height: 72px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.identity-row:last-child { border-bottom: 0; }
.identity-row > label { color: #65717c; font-size: 13px; font-weight: 700; }
.identity-row .inline-control { justify-self: end; width: min(430px, 100%); }
.inline-control { display: flex; align-items: center; gap: 10px; }
.inline-control select, .inline-control input { height: 43px; }
.gender-switch { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: #edf1f4; }
.gender-switch span { padding: 9px 18px; border-radius: 9px; color: var(--muted); text-align: center; font-size: 12px; }
.gender-switch span.is-active { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 4px 11px rgba(17, 24, 32, .07); }
.scope-card { margin-top: 20px; padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-color: rgba(44, 108, 246, .16); background: linear-gradient(135deg, #fff, #f2f6ff); }
.scope-card b, .scope-card p { display: block; margin: 0; }
.scope-card b { font-size: 16px; }
.scope-card p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.scope-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.pill { padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 780; white-space: nowrap; }
.pill.venue { background: #e8f7f1; color: #127b5d; }
.pill.external { background: #edf3ff; color: #2c62cf; }
.pill.subjective { background: #f4ecff; color: #7650ad; }
.pill.judged { background: #fff3df; color: #a46610; }
.assessment-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-card { position: relative; padding: 23px; overflow: hidden; box-shadow: 0 11px 30px rgba(28, 43, 58, .05); }
.category-card::before { position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--red); content: ""; }
.category-card.blue::before { background: var(--blue); }
.category-card.amber::before { background: var(--amber); }
.category-card.green::before { background: var(--green); }
.category-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.category-number { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: "DIN Alternate", sans-serif; font-weight: 850; }
.category-title b, .category-title span { display: block; }
.category-title b { font-size: 16px; }
.category-title span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.category-max { color: var(--muted); font-size: 10px; }
.category-max strong { margin-left: 3px; color: var(--ink); font-size: 23px; }
.input-label { margin: 20px 0 7px; display: block; color: #78838d; font-size: 11px; font-weight: 700; }
.project-note { min-height: 43px; margin-top: 9px; padding: 10px 11px; border-radius: 10px; background: #f5f7f9; color: #737f89; font-size: 10px; line-height: 1.5; }
.project-meta { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.score-input-row { display: grid; grid-template-columns: 1fr 116px; gap: 9px; }
.time-control { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.time-part { position: relative; }
.time-part input { padding-right: 27px; text-align: center; }
.time-part span { position: absolute; top: 16px; right: 10px; color: var(--muted); font-size: 10px; }
.time-colon { color: #9aa3aa; font-weight: 800; }
.raw-control { position: relative; }
.raw-control input { padding-right: 88px; }
.raw-control span { position: absolute; top: 15px; right: 13px; max-width: 73px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.score-box { height: 48px; padding: 7px 10px; border-radius: 13px; display: flex; flex-direction: column; justify-content: center; background: #f1f4f6; text-align: right; }
.score-box small { color: var(--muted); font-size: 9px; }
.score-box div { margin-top: 2px; }
.score-box strong { font-size: 18px; }
.score-box span { color: var(--muted); font-size: 9px; }
.score-box.has-score { background: #eef8f5; }
.score-box.has-score strong { color: var(--green); }
.score-detail { min-height: 18px; margin-top: 7px; color: #6f7b85; font-size: 10px; }
.score-error { color: #c93429; }
.assessment-submit { margin: 24px 0 0 auto; min-width: 300px; display: flex; }

/* 报告 */
.report-hero { padding: 29px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-radius: 24px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px rgba(17, 24, 32, .2); }
.report-hero .eyebrow { color: #ff786d; }
.report-hero h1 { margin: 9px 0 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.report-hero p { margin: 9px 0 0; color: #aeb8c0; font-size: 12px; }
.report-total { display: flex; align-items: baseline; }
.report-total strong { font-family: "DIN Alternate", sans-serif; font-size: 64px; }
.report-total span { color: #aeb8c0; }
.report-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(360px, .86fr) minmax(0, 1.14fr); gap: 20px; align-items: start; }
.radar-card { padding: 23px; }
.radar-head { display: flex; align-items: baseline; justify-content: space-between; }
.radar-head b { font-size: 17px; }
.radar-head span { color: var(--muted); font-size: 10px; }
.radar-stage { position: relative; min-height: 370px; margin-top: 5px; }
.radar-stage canvas { width: 100%; height: 370px; display: block; }
.report-stack { display: grid; gap: 20px; }
.detail-list, .analysis-card { padding: 9px 20px; }
.detail-row { min-height: 73px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.detail-row:last-child { border-bottom: 0; }
.detail-index { color: #a0a9b1; font-size: 11px; font-weight: 800; }
.detail-copy b, .detail-copy small { display: block; }
.detail-copy b { font-size: 12px; }
.detail-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.detail-score strong { font-size: 21px; }
.detail-score span { color: var(--muted); font-size: 10px; }
.analysis-card { padding-top: 18px; padding-bottom: 18px; }
.analysis-lead { padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); font-size: 16px; font-weight: 800; line-height: 1.6; }
.analysis-item { margin-top: 14px; }
.analysis-item b { display: block; color: var(--red); font-size: 10px; letter-spacing: .08em; }
.analysis-item p { margin: 5px 0 0; color: #56636f; font-size: 12px; line-height: 1.7; }
.analysis-reminder { margin-top: 15px; padding: 11px; border-radius: 10px; background: #f5f7f9; color: var(--muted); font-size: 10px; line-height: 1.6; }
.report-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* 成长记录 */
.history-toolbar { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.history-toolbar label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.history-toolbar select { min-width: 230px; height: 42px; }
.trend-card { margin-top: 18px; padding: 22px; }
.trend-chart { height: 190px; margin-top: 15px; display: flex; align-items: flex-end; gap: 10px; }
.trend-column { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.trend-column strong { color: var(--ink); font-size: 11px; }
.trend-bar-wrap { width: min(42px, 80%); height: 125px; display: flex; align-items: flex-end; border-radius: 10px; background: #f0f3f5; overflow: hidden; }
.trend-bar { width: 100%; min-height: 3px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--red), #f16a5e); transform-origin: bottom; animation: growBar .8s cubic-bezier(.2,.75,.25,1) both; }
.trend-pct-0 { height: 3%; } .trend-pct-5 { height: 5%; } .trend-pct-10 { height: 10%; } .trend-pct-15 { height: 15%; }
.trend-pct-20 { height: 20%; } .trend-pct-25 { height: 25%; } .trend-pct-30 { height: 30%; } .trend-pct-35 { height: 35%; }
.trend-pct-40 { height: 40%; } .trend-pct-45 { height: 45%; } .trend-pct-50 { height: 50%; } .trend-pct-55 { height: 55%; }
.trend-pct-60 { height: 60%; } .trend-pct-65 { height: 65%; } .trend-pct-70 { height: 70%; } .trend-pct-75 { height: 75%; }
.trend-pct-80 { height: 80%; } .trend-pct-85 { height: 85%; } .trend-pct-90 { height: 90%; } .trend-pct-95 { height: 95%; } .trend-pct-100 { height: 100%; }
.trend-column:nth-child(2) .trend-bar { animation-delay: 70ms; } .trend-column:nth-child(3) .trend-bar { animation-delay: 140ms; }
.trend-column:nth-child(4) .trend-bar { animation-delay: 210ms; } .trend-column:nth-child(5) .trend-bar { animation-delay: 280ms; }
.trend-column:nth-child(6) .trend-bar { animation-delay: 350ms; } .trend-column:nth-child(7) .trend-bar { animation-delay: 420ms; }
.trend-column:nth-child(8) .trend-bar { animation-delay: 490ms; }
.trend-column small { width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.history-list { margin-top: 18px; overflow: hidden; }
.history-row { width: 100%; min-height: 76px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 120px 1fr 90px 30px; align-items: center; gap: 15px; background: #fff; cursor: pointer; text-align: left; }
.history-row:last-child { border-bottom: 0; }
.history-row:hover { background: #fafbfc; }
.history-date b, .history-date small { display: block; }
.history-date b { font-size: 13px; }
.history-date small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.history-projects { overflow: hidden; color: #67747f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-score { text-align: right; }
.history-score strong { font-size: 22px; }
.history-score span { color: var(--muted); font-size: 10px; }
.history-arrow { color: var(--red); font-size: 18px; text-align: right; }

/* 隐私 */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.policy-card, .data-card { padding: 27px; }
.policy-card h2, .data-card h2 { margin: 0; font-size: 19px; }
.policy-lead { margin: 12px 0 0; color: #596671; line-height: 1.9; font-size: 13px; text-align: justify; }
.policy-block { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line-soft); }
.policy-block h3 { margin: 0 0 9px; font-size: 13px; }
.policy-block p, .policy-block li { color: #63707b; font-size: 12px; line-height: 1.85; text-align: justify; }
.policy-block ul { margin: 0; padding-left: 18px; }
.privacy-status { margin-top: 15px; padding: 14px; border-radius: 12px; background: #eef8f5; color: #276b57; font-size: 11px; line-height: 1.7; }
.data-actions { margin-top: 18px; display: grid; gap: 10px; }
.data-summary { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.data-stat { padding: 14px; border-radius: 12px; background: #f4f7f9; }
.data-stat strong, .data-stat span { display: block; }
.data-stat strong { font-size: 22px; }
.data-stat span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.student-manage-list { margin-top: 18px; display: grid; gap: 9px; }
.student-manage-row { padding: 13px; border: 1px solid var(--line-soft); border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.student-manage-row > span { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.student-manage-row > div { min-width: 0; flex: 1; }
.student-manage-row b, .student-manage-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-manage-row b { font-size: 12px; }
.student-manage-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.student-manage-row button { padding: 5px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 700; }

/* 弹窗 */
.app-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 23px; background: #fff; box-shadow: 0 28px 80px rgba(15, 25, 34, .3); overflow: auto; }
.app-dialog::backdrop { background: rgba(15, 23, 31, .52); backdrop-filter: blur(5px); }
.dialog-content { padding: 27px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-head h2 { margin: 0; font-size: 21px; }
.dialog-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f1f4f6; cursor: pointer; font-size: 20px; }
.dialog-form { margin-top: 21px; display: grid; gap: 15px; }
.dialog-actions { margin-top: 7px; display: flex; justify-content: flex-end; gap: 9px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: #56636f; font-size: 12px; line-height: 1.65; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; }
.consent-rule-box { max-height: 210px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; overflow: auto; background: #f8fafb; color: #606d78; font-size: 11px; line-height: 1.8; text-align: justify; }
.confirm-copy { color: #5d6974; font-size: 13px; line-height: 1.8; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: calc(100% - 40px); padding: 12px 17px; border-radius: 12px; background: rgba(17, 24, 32, .94); color: #fff; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; font-size: 12px; box-shadow: 0 14px 32px rgba(17, 24, 32, .24); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes radarIn { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  :root { --sidebar: 204px; }
  .hero-grid, .report-grid, .privacy-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .report-grid { align-items: stretch; }
  .radar-stage, .radar-stage canvas { min-height: 410px; height: 410px; }
  .assessment-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr minmax(340px, 430px); gap: 32px; }
  .auth-copy h1 { font-size: clamp(44px, 6vw, 64px); }
}

@media (max-width: 760px) {
  .auth-shell { padding: 22px 18px 36px; display: block; }
  .auth-brand { margin-bottom: 42px; }
  .auth-copy { padding-bottom: 24px; }
  .auth-copy h1 { font-size: clamp(43px, 13vw, 61px); }
  .auth-copy p { font-size: 14px; }
  .auth-panel { padding: 24px 20px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .auth-track { inset: 160px -340px auto auto; opacity: .7; }
  .side-nav { display: none; }
  .app-main { margin-left: 0; padding-bottom: 72px; }
  .top-bar { height: 61px; padding: 0 15px; justify-content: space-between; }
  .mobile-brand { padding: 0; border: 0; display: flex; align-items: center; gap: 8px; background: transparent; font-size: 12px; font-weight: 850; }
  .mobile-brand img { width: 33px; height: 33px; border-radius: 10px; }
  .top-status { display: none; }
  .account-button b, .account-button i { display: none; }
  .account-button { width: 42px; padding: 0 6px; }
  .page { width: calc(100% - 28px); padding: 25px 0 28px; }
  .mobile-nav { position: fixed; z-index: 25; inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); }
  .mobile-nav-item { border: 0; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; color: #77828c; }
  .mobile-nav-item span { font-size: 20px; line-height: 1; }
  .mobile-nav-item small { font-size: 9px; }
  .mobile-nav-item.is-active { color: var(--red); font-weight: 800; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 34px; }
  .roster-strip { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .roster-select { grid-column: 2 / -1; grid-row: 2; width: 100%; }
  .roster-strip .small-button { grid-column: 3; grid-row: 1; }
  .hero-grid { margin-top: 15px; gap: 15px; }
  .hero-card { min-height: 0; padding: 31px 24px; }
  .hero-card h1 { font-size: clamp(40px, 12vw, 55px); }
  .hero-card p { font-size: 13px; }
  .lane-card { padding: 6px 15px; }
  .lane-row { min-height: 76px; }
  .identity-card { padding: 0 16px; }
  .identity-row { padding: 14px 0; grid-template-columns: 1fr; gap: 9px; }
  .identity-row .inline-control { justify-self: stretch; width: 100%; }
  .scope-card { align-items: flex-start; flex-direction: column; gap: 13px; }
  .scope-pills { justify-content: flex-start; }
  .category-card { padding: 20px 17px 20px 21px; }
  .category-head { grid-template-columns: 39px 1fr auto; gap: 9px; }
  .category-number { width: 39px; height: 39px; }
  .score-input-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .assessment-submit { width: 100%; min-width: 0; }
  .report-hero { padding: 23px 20px; }
  .report-total strong { font-size: 48px; }
  .report-grid { gap: 15px; }
  .radar-card { padding: 18px 12px; }
  .radar-stage, .radar-stage canvas { min-height: 330px; height: 330px; }
  .detail-list { padding: 7px 13px; }
  .history-toolbar { align-items: stretch; flex-direction: column; }
  .history-toolbar label { align-items: stretch; flex-direction: column; }
  .history-toolbar select { width: 100%; min-width: 0; }
  .history-row { min-height: 85px; padding: 12px 15px; grid-template-columns: 1fr auto 20px; gap: 10px; }
  .history-projects { grid-column: 1 / -1; grid-row: 2; }
  .history-score { grid-column: 2; grid-row: 1; }
  .history-arrow { grid-column: 3; grid-row: 1; }
  .policy-card, .data-card { padding: 21px; }
  .app-dialog { max-height: calc(100vh - 24px); }
  .dialog-content { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
