﻿/*
 * 岐黄成长学生成长与育人管理平台软件 V1.0.0
 * Copyright (c) 2026 岐黄成长项目组
 * 开发完成日期：2026-10-26
 * 未经许可不得复制、修改或分发
 */
/* ==========================================================================
   岐黄成长 v2 · 小程序式学生端 / 九维画像 / 活动 / 来信 / 扫描
   ========================================================================== */
body.student-mode { background: #f7f1f7; }
body.student-mode .app-shell { display: block; min-height: 100vh; }
body.student-mode .sidebar, body.student-mode .sidebar-scrim { display: none !important; }
body.student-mode .workspace { min-height: 100vh; }
body.student-mode .topbar { position: sticky; top: 0; z-index: 50; height: 68px; padding: 0 max(22px, calc((100vw - 1120px) / 2)); background: rgba(251, 247, 251, .9); border-bottom: 1px solid rgba(218, 206, 221, .75); }
body.student-mode .view { min-height: calc(100vh - 68px); }
body.student-mode .page { max-width: 1120px; padding: 26px 28px 124px; }
.student-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.student-brand .brand-seal { width: 34px; height: 34px; flex: 0 0 34px; font-size: 21px; border-radius: 4px; transform: rotate(-1deg); }
.student-brand-copy strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .08em; line-height: 1.2; color: var(--green-deep); }
.student-brand-copy span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 6.5px; letter-spacing: .19em; }
.student-top-right { display: flex; align-items: center; gap: 9px; }
.student-page-label { padding-right: 7px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.role-switch { display: inline-flex; align-items: center; gap: 4px; min-height: 29px; padding: 5px 9px; border: 1px solid #dcc8e0; border-radius: 16px; background: #f7eff8; color: var(--green-mid); font-size: 9px; }
.role-switch:hover { background: var(--paper-2); color: var(--ink); }
.role-switch svg { width: 10px; height: 10px; }
.student-user { display: flex; align-items: center; gap: 7px; padding-left: 8px; border-left: 1px solid var(--line); }
.student-user .avatar { width: 31px; height: 31px; flex-basis: 31px; font-size: 10px; }
.student-user-copy strong { display: block; font-size: 10px; font-weight: 600; line-height: 1.3; }
.student-user-copy span { display: block; color: var(--muted-2); font-size: 7.5px; }
.student-mode .ai-fab { right: max(22px, calc((100vw - 1120px) / 2 - 4px)); bottom: 98px; padding: 7px 12px 7px 7px; }
.student-mode .ai-fab .fab-orb { width: 28px; height: 28px; }
.student-mode .ai-fab .fab-copy span { display: none; }
.student-mode .page-head { margin-bottom: 19px; }
.student-mode .page-head h1 { font-size: clamp(26px, 2.2vw, 33px); }
.student-mode .page-head .lede { font-size: 10.5px; }

/* 小程序底部导航 */
.tabbar {
  position: fixed; left: 50%; bottom: 16px; z-index: 72;
  display: flex; align-items: stretch; gap: 2px;
  width: min(650px, calc(100vw - 28px));
  padding: 6px 8px 5px;
  border: 1px solid rgba(216, 204, 219, .82);
  border-radius: 19px;
  background: rgba(255,252,255, .92);
  box-shadow: 0 15px 45px rgba(47, 29, 52, .16);
  backdrop-filter: blur(17px) saturate(1.1);
  transform: translateX(-50%);
}
.tabbar[hidden] { display: none !important; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 3px 4px; border-radius: 13px; color: var(--muted); transition: .18s var(--ease); }
.tab-item:hover { color: var(--green); background: rgba(237, 228, 239, .55); }
.tab-item.active { color: var(--green); background: var(--green-pale); }
.tab-icon { position: relative; display: grid; place-items: center; width: 24px; height: 23px; }
.tab-icon svg { width: 18px; height: 18px; }
.tab-label { font-size: 8.5px; line-height: 1.2; white-space: nowrap; }
.tab-item.active .tab-label { font-weight: 700; }
.tab-badge { position: absolute; top: -3px; right: -7px; min-width: 14px; height: 14px; padding: 0 4px; display: grid; place-items: center; border-radius: 20px; background: var(--red); color: #fff; font-size: 7px; font-style: normal; font-weight: 700; border: 1.5px solid #fffbfe; }
.teacher-tabbar { display: none; }
body.student-mode .teacher-tabbar { display: none !important; }

/* 通知资讯 */
.notice-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -4px 0 15px; color: var(--muted); font-size: 9px; }
.notice-summary span { display: inline-flex; align-items: baseline; gap: 4px; }
.notice-summary b { color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 700; }
.notice-summary em { margin-left: auto; color: var(--muted-2); font-style: normal; font-size: 8.5px; }
.task-strip { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding: 12px 15px; border: 1px solid #d8ccb3; border-radius: 12px; background: linear-gradient(110deg, #fbf3df, #f6eedc); cursor: pointer; transition: .2s var(--ease); }
.task-strip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.task-strip-icon { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 9px; background: rgba(173, 131, 68, .12); color: var(--gold); }
.task-strip-icon svg { width: 16px; height: 16px; }
.task-strip-copy { flex: 1; min-width: 0; }
.task-strip-copy span { display: block; color: #8d713c; font-size: 7.5px; letter-spacing: .06em; }
.task-strip-copy strong { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; }
.task-strip-copy em { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; font-style: normal; }
.task-strip-go { display: flex; align-items: center; gap: 4px; color: #806128; font-size: 8.5px; white-space: nowrap; }
.task-strip-go svg { width: 11px; height: 11px; }
.notice-layout.v2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr); gap: 18px; align-items: start; }
.panel.clean { background: rgba(255,252,255, .88); border-color: rgba(221, 211, 193, .82); box-shadow: 0 8px 24px rgba(47, 29, 52, .045); }
.notice-panel.clean { overflow: hidden; border-radius: 14px; }
.notice-toolbar.v2 { display: flex; flex-direction: column; align-items: stretch; gap: 11px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line-soft); }
.notice-search { width: 100%; }
.notice-search .input { background: rgba(250,247,251, .8); }
.notice-tabs { display: flex; width: 100%; border: 0; background: transparent; padding: 0; gap: 15px; border-radius: 0; }
.notice-tabs button { position: relative; flex: 1; padding: 4px 0 6px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 9.5px; }
.notice-tabs button.active { color: var(--ink); background: transparent; box-shadow: none; font-weight: 600; }
.notice-tabs button.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--green); }
.notice-list.v2 { padding: 0 15px; }
.notice-row.v2 { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 13px; padding: 14px 1px 14px 0; align-items: center; }
.notice-row.v2::before { display: none; }
.notice-row.v2 .date-tile.v2 { width: 54px; height: 66px; border-radius: 8px; border: 0; gap: 1px; align-items: center; justify-content: center; }
.date-tile.v2 strong { font-size: 23px; }
.date-tile.v2 span { margin-top: 0; font-size: 7.5px; }
.date-tile.v2 em { margin-top: 3px; padding: 1px 5px; border-radius: 3px; font-style: normal; font-size: 6.5px; font-weight: 600; }
.notice-row.urgent .date-tile.v2 { color: #fff; background: #9e3d2c; }
.notice-row.urgent .date-tile.v2 span, .notice-row.urgent .date-tile.v2 em { color: rgba(255,255,255,.7); }
.notice-row.urgent .date-tile.v2 em { background: rgba(255,255,255,.12); }
.notice-row.soon .date-tile.v2 { color: #785a20; background: #f4e7c7; }
.notice-row.soon .date-tile.v2 span, .notice-row.soon .date-tile.v2 em { color: #93733b; }
.notice-row.safe .date-tile.v2 { color: #355f48; background: #e7efe4; }
.notice-row.safe .date-tile.v2 span, .notice-row.safe .date-tile.v2 em { color: #5e8068; }
.notice-row.v2 .notice-title { font-size: 12.5px; line-height: 1.55; }
.notice-row.v2 .notice-cat { color: var(--muted-2); font-size: 8px; }
.notice-row.v2 .notice-sub { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.notice-row.v2 .notice-side { min-width: 68px; align-items: flex-end; gap: 6px; }
.notice-row.v2 .notice-side .deadline-tag { display: none; }
.notice-row.v2 .mark-star { position: absolute; right: 1px; top: 8px; }
.notice-row.v2 .notice-side { position: relative; padding-top: 19px; }
.notice-event-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 5px; color: var(--green-mid); font-size: 8px; }
.notice-event-line svg { width: 10px; height: 10px; }
.notice-event-line span { color: #b8af9e; }
.event-capacity { margin-left: 4px; color: var(--muted); }
.signup-mini { min-height: 23px; padding: 3px 7px; font-size: 7.5px; border-radius: 4px; }
.notice-footnote { padding: 10px 16px; font-size: 8px; }
.calendar-panel.clean { border-radius: 14px; }
.calendar-panel.clean .calendar-head { padding: 15px 16px 10px; }
.calendar-panel.clean .calendar-body { padding: 0 14px 11px; }
.calendar-panel.clean .calendar-events { margin: 0 14px 13px; }
.quick-panel.clean { border-radius: 14px; }
.quick-copy { min-width: 0; flex: 1; }
.quick-copy strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.quick-copy span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7.5px; }
.event-box { margin: 14px 0 4px; padding: 13px 14px; border: 1px solid #d6c9ac; border-radius: 9px; background: linear-gradient(120deg, #fbf4e3, #f8f0de); }
.event-box-head { display: flex; align-items: center; gap: 6px; color: #7c5e25; font-size: 9.5px; font-weight: 600; }
.event-box-head svg { width: 13px; height: 13px; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; margin: 11px 0 12px; }
.event-grid span { display: block; color: #9c8354; font-size: 7.5px; }
.event-grid strong { display: block; margin-top: 1px; color: #5c4a27; font-size: 9px; font-weight: 600; }
.event-box .btn { width: 100%; }
.chip.soft { background: transparent; border: 1px solid #ddc89f; }

/* 成长记录 */
.record-overview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: -2px 0 13px; }
.overview-tile { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,252,255,.62); }
.overview-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.overview-icon svg { width: 14px; height: 14px; }
.overview-icon.honor { background: #f8ecd4; color: #a8803f; }
.overview-icon.activity { background: var(--green-soft); color: var(--green-mid); }
.overview-icon.project { background: #f1e5f2; color: var(--green); }
.overview-icon.paper { background: var(--blue-soft); color: var(--blue); }
.overview-icon.complete { background: #f2e5c9; color: #8a682b; }
.overview-tile b { display: block; overflow: hidden; font-family: var(--serif); font-size: 20px; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.overview-tile div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 7.5px; line-height: 1.2; }
.records-layout.v2 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.records-main.clean { overflow: hidden; border-radius: 14px; }
.record-actionbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); background: rgba(245,240,246, .46); }
.select-all { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 9px; white-space: nowrap; cursor: pointer; }
.select-all input { width: 13px; height: 13px; accent-color: var(--green); }
.selected-count { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.selected-count b { color: var(--green); font-weight: 600; }
.record-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.record-actions .btn-xs, .record-actions .btn-sm { min-height: 27px; padding-top: 5px; padding-bottom: 5px; }
.records-filter.v2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.records-filter.v2 .input-icon { width: 178px; }
.records-filter.v2 .input { padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
.records-filter.v2 .segmented { border: 0; padding: 0; background: transparent; gap: 13px; }
.records-filter.v2 .segmented button { padding: 2px 0; border-radius: 0; background: transparent; box-shadow: none; }
.records-filter.v2 .segmented button.active { color: var(--ink); box-shadow: none; border-bottom: 2px solid var(--green); }
.records-list.v2 { padding: 0 14px; }
.record-item.v2 { position: relative; grid-template-columns: 16px 31px minmax(0, 1fr); gap: 9px; padding: 9px 0; align-items: center; }
.record-item.v2:hover { padding-left: 0; }
.record-item.v2::before { display: none; }
.record-check { display: grid; place-items: center; width: 16px; height: 20px; cursor: pointer; }
.record-check input { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin: 0; border: 1px solid #cfc5b1; border-radius: 3px; background: #fffbfe; cursor: pointer; transition: .15s; }
.record-check input:checked { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fffbfe; }
.record-item.v2 .record-kind { width: 30px; height: 30px; }
.record-item.v2 .record-kind svg { width: 14px; height: 14px; }
.record-item.v2 .record-kind.paper { background: var(--blue-soft); color: var(--blue); }
.record-item.v2 .record-body { min-width: 0; }
.record-item.v2.has-stamp .record-body { padding-right: 39px; }
.record-item.v2 .record-body h3 { margin-top: 1px; font-size: 11px; line-height: 1.5; }
.record-item.v2 .record-desc { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 8.3px; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }
.record-item.v2 .record-date { font-size: 7.8px; }
.record-dim { color: var(--muted-2); font-size: 7.2px; }
.record-item.v2 .record-bottom { gap: 4px; margin-top: 4px; }
.record-more { color: var(--muted-2); font-size: 7.2px; }
.record-item.v2 .attach { font-size: 7.2px; }
.stamp-zone { position: absolute; right: 5px; top: 50%; z-index: 1; display: flex; align-items: center; gap: 2px; transform: translateY(-50%); opacity: .88; pointer-events: none; mix-blend-mode: multiply; }
.record-stamp { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.record-stamp .seal { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 7.8px; line-height: 1; letter-spacing: -.7px; transform: rotate(-11deg); opacity: .82; }
.record-stamp .seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; opacity: .58; }
.record-stamp.honor, .record-stamp.high { color: #8a6328; }
.record-stamp.milestone { color: #8a6328; }
.record-stamp em { color: currentColor; font-size: 6.2px; font-style: normal; letter-spacing: .04em; white-space: nowrap; opacity: .85; }
.record-stamp svg.stamp-seal { width: 38px; height: 38px; display: block; opacity: .92; transform: rotate(-10deg); filter: drop-shadow(0 1px 1px rgba(88,58,22,.16)); }
.detail-stamps .record-stamp svg.stamp-seal { width: 46px; height: 46px; }
.records-foot { padding: 8px 14px 10px; font-size: 7.5px; }
.side-stack { display: flex; flex-direction: column; gap: 12px; }
.growth-spark.clean { border-radius: 14px; }
.archive-panel { display: none; }
.resume-card-v2 { position: relative; overflow: hidden; padding: 15px 15px 14px; border-radius: 14px; background: linear-gradient(140deg, #43244e, #321a3b); color: #f5ecdc; }
.resume-mark { position: absolute; right: 5px; bottom: -17px; font-family: var(--serif); font-size: 70px; color: rgba(245,236,220,.055); }
.resume-card-v2 h3 { font-family: var(--serif); font-size: 14px; }
.resume-card-v2 p { margin-top: 4px; color: rgba(245,236,220,.5); font-size: 8px; line-height: 1.65; }
.resume-card-v2 .btn { position: relative; z-index: 1; margin-top: 10px; color: #f1dfbf; border-color: rgba(241,223,191,.22); background: rgba(255,255,255,.04); width: 100%; }
.detail-stamps { display: flex; gap: 8px; padding: 13px 0 3px; }
.detail-stamps .record-stamp .seal { width: 40px; height: 40px; font-size: 9px; }
.paper-card { margin: 15px 0; padding: 14px; border: 1px solid #d5dddc; border-radius: 9px; background: #f6f9f7; }
.paper-card-head { display: flex; align-items: center; gap: 6px; color: var(--green-mid); font-size: 9.5px; font-weight: 600; }
.paper-card-head svg { width: 14px; height: 14px; }
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 11px; }
.paper-grid span { display: block; color: var(--muted-2); font-size: 7.5px; }
.paper-grid strong { display: block; margin-top: 1px; color: var(--ink-soft); font-size: 9px; font-weight: 600; }
.citation-label { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; border-top: 1px dashed #d8dfd9; color: var(--muted-2); font-size: 7.5px; letter-spacing: .06em; }
.citation { margin-top: 5px; color: var(--ink-soft); font-family: var(--serif); font-size: 9px; line-height: 1.8; }
.record-detail-text { font-size: 11px; line-height: 1.95; color: var(--ink-soft); }
.no-anim .page { animation: none; }

/* 扫描识别 */
.capture-modal { width: min(720px, 94vw) !important; }
.capture-zone { margin-bottom: 16px; padding: 14px; border: 1px solid #d9cfbb; border-radius: 11px; background: linear-gradient(125deg, #f7f1f8, #f0e8f1); }
.capture-head { display: flex; align-items: center; gap: 10px; }
.capture-orb { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green-mid); background: #e6eee4; }
.capture-orb svg { width: 18px; height: 18px; }
.capture-head strong { display: block; font-size: 11px; font-weight: 600; }
.capture-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.capture-buttons { display: flex; gap: 8px; margin-top: 12px; }
.capture-buttons .btn { flex: 1; }
.capture-hint { margin-top: 8px; color: var(--muted-2); font-size: 7.5px; line-height: 1.6; }
.capture-status { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--safe); font-size: 8px; }
.capture-status svg { width: 11px; height: 11px; }
.capture-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.capture-form-foot .field-hint { display: inline-flex; align-items: center; gap: 4px; }
.capture-form-foot .field-hint svg, .field-hint svg { width: 11px; height: 11px; flex: 0 0 11px; vertical-align: -1px; }
.file-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.file-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.45); color: var(--ink-soft); font-size: 8px; }
.file-chip svg { width: 10px; height: 10px; color: var(--muted); }
.voice-inline { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; padding: 0; border: 0; background: transparent; color: var(--green-mid); font-size: 8px; }
.voice-inline svg { width: 11px; height: 11px; }
.voice-inline.listening, .voice-btn.listening { color: var(--red); animation: pulseMic 1s infinite; }
@keyframes pulseMic { 50% { opacity: .4; } }
.attachment-preview { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fffbfe repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(220,210,192,.22) 29px); }
.attachment-preview-icon { width: 56px; height: 65px; display: grid; place-items: center; border: 1px solid #d8cbb5; border-radius: 4px; background: #faf4e8; color: var(--red); font-size: 10px; font-weight: 700; }
.attachment-preview strong { font-size: 11px; }
.attachment-preview span { color: var(--muted); font-size: 8.5px; }

/* 简历 / 分享 */
.resume-footnote { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 7.5px; text-align: right; }
.share-preview-list { display: flex; flex-direction: column; gap: 1px; max-height: 240px; overflow-y: auto; margin-top: 14px; border-top: 1px solid var(--line-soft); }
.share-preview-row { display: flex; align-items: center; gap: 7px; min-height: 37px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.share-preview-row strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 500; }
.share-preview-row em { color: var(--muted-2); font-size: 7.5px; font-style: normal; white-space: nowrap; }
.share-note { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted-2); font-size: 8px; }
.share-note svg { width: 11px; height: 11px; }

/* 学生社区 */
.community-count { color: var(--muted); font-size: 8.5px; }
.community-tabs { display: flex; gap: 5px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(246,240,247,.7); width: fit-content; }
.community-tabs button { padding: 6px 15px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 9.5px; }
.community-tabs button.active { background: #fffbfe; color: var(--ink); font-weight: 600; box-shadow: 0 2px 7px rgba(47,29,52,.08); }
.academic-pin { position: relative; margin-bottom: 15px; padding: 15px 17px; border: 1px solid #d8c8df; border-radius: 12px; background: linear-gradient(110deg, #f3ebf6, #fbf7fc); cursor: pointer; }
.academic-pin:hover { box-shadow: var(--shadow-sm); }
.academic-pin-label { display: flex; align-items: center; gap: 5px; color: #6f4879; font-size: 8px; letter-spacing: .08em; }
.academic-pin-label svg { width: 11px; height: 11px; }
.academic-pin h3 { margin-top: 5px; font-size: 12px; font-weight: 600; }
.academic-pin p { margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.academic-pin-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted-2); font-size: 7.5px; }
.academic-pin-foot span { display: inline-flex; align-items: center; gap: 3px; }
.academic-pin-foot svg { width: 10px; height: 10px; }
.academic-pin-foot span:last-child { color: #76517e; }
.community-section { padding: 17px 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,252,255,.72); }
.community-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.community-section-head h2 { font-family: var(--serif); font-size: 17px; }
.community-section-head p { margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.activity-card { padding: 15px 16px 13px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fffbfe; cursor: pointer; transition: .25s var(--ease); }
.activity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d6c9b1; }
.activity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.activity-status { color: var(--muted-2); font-size: 8px; }
.activity-status.joined { color: var(--safe); }
.activity-card h3 { margin-top: 9px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.activity-card p { margin-top: 4px; min-height: 32px; color: var(--muted); font-size: 8.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 9px; color: var(--muted-2); font-size: 7.5px; }
.activity-meta span { display: flex; align-items: center; gap: 3px; }
.activity-meta svg { width: 10px; height: 10px; }
.activity-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 8.5px; }
.activity-foot .avatar-stack { margin-right: 2px; }
.activity-foot .avatar { width: 21px; height: 21px; flex-basis: 21px; font-size: 7px; }
.activity-progress { flex: 1; height: 3px; border-radius: 4px; background: var(--paper-4); overflow: hidden; }
.activity-progress i { display: block; height: 100%; border-radius: 4px; background: var(--green-mid); }
.activity-foot .btn { margin-left: auto; }
.my-task-panel { margin-bottom: 13px; padding: 12px 14px; border: 1px solid #d6c8ab; border-radius: 10px; background: #fbf4e4; }
.my-task-head { display: flex; align-items: center; gap: 5px; color: #7e6029; font-size: 8.5px; font-weight: 600; }
.my-task-head svg { width: 12px; height: 12px; }
.my-task-row { display: flex; align-items: center; gap: 10px; padding: 8px 0 0; }
.my-task-row + .my-task-row { margin-top: 4px; border-top: 1px dashed #e0d3b8; }
.my-task-row > div { flex: 1; }
.my-task-row strong { display: block; font-size: 9px; font-weight: 600; }
.my-task-row span { display: block; margin-top: 1px; color: #937c50; font-size: 7.5px; }
.feed-tabs.inline { margin: 0 0 12px; }
.thread-list { display: flex; flex-direction: column; gap: 9px; }
.thread-card.v2 { border-radius: 10px; box-shadow: none; background: #fffbfe; }
.thread-card.v2 h3 { font-size: 12px; }
.thread-card.v2 .thread-excerpt { font-size: 9px; }
.treehole-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 15px; border: 1px solid #ddcfdd; border-radius: 11px; background: linear-gradient(120deg, #f3edf5, #f8f3f9); }
.treehole-mark { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 50%; background: #eadfec; color: #795380; }
.treehole-mark svg { width: 19px; height: 19px; }
.treehole-hero > div:nth-child(2) { flex: 1; }
.treehole-hero h2 { font-family: var(--serif); font-size: 17px; }
.treehole-hero p { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.treehole-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.treehole-note { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fffbfe; }
.treehole-meta { display: flex; align-items: center; justify-content: space-between; color: var(--gold); font-size: 7.5px; }
.treehole-meta em { color: var(--muted-2); font-style: normal; }
.treehole-note p { margin-top: 9px; color: var(--ink-soft); font-family: var(--serif); font-size: 10px; line-height: 1.9; }
.treehole-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 8px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 7.5px; }
.treehole-like { display: flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 8.5px; }
.treehole-like svg { width: 11px; height: 11px; }
.treehole-like.liked { color: var(--red); }
.activity-detail-head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.activity-detail-head > div:nth-child(2) { flex: 1; }
.activity-detail-head strong { display: block; font-size: 10px; }
.activity-detail-head span { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.activity-detail-actions { display: flex; gap: 5px; }
.activity-detail-desc { margin-top: 13px; color: var(--ink-soft); font-size: 10px; line-height: 1.85; }
.activity-detail-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 8px; color: var(--muted); font-size: 8px; }
.activity-detail-meta span { display: flex; align-items: center; gap: 4px; }
.activity-detail-meta svg { width: 11px; height: 11px; }
.participant-row { display: flex; flex-wrap: wrap; gap: 6px; }
.participant { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 3px; border: 1px solid var(--line-soft); border-radius: 20px; color: var(--ink-soft); font-size: 8px; }
.participant .avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 7px; }
.task-list { display: flex; flex-direction: column; gap: 1px; }
.task-row { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.task-row-main { display: flex; align-items: flex-start; gap: 8px; }
.task-row-main > div { flex: 1; }
.task-row strong { display: block; font-size: 9.5px; font-weight: 600; }
.task-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.material-name-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.material-name { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.4); color: var(--blue); font-size: 7.5px; }
.material-name svg { width: 9px; height: 9px; }
.thread-detail-author { display: flex; align-items: center; gap: 8px; }
.thread-detail-author > div:nth-child(2) { flex: 1; }
.thread-detail-content { margin: 13px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.95; }
.answer-item { padding: 13px 0; border-bottom: 1px dashed var(--line-soft); }
.answer-item p { margin-top: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.85; }
.answer-actions { display: flex; gap: 12px; margin-top: 7px; }
.reply-form { margin-top: 12px; }
.reply-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.btn-xs { min-height: 23px; padding: 3px 7px; font-size: 7.5px; border-radius: 4px; }

/* 一站式 */
.hub-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hub-categories button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,252,255,.55); color: var(--muted); font-size: 8.5px; }
.hub-categories button.active { background: var(--green); border-color: var(--green); color: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.resource-card { display: flex; flex-direction: column; min-height: 150px; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fffbfe; transition: .25s var(--ease); }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3c5ad; }
.resource-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.resource-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--green-soft); color: var(--green-mid); font-family: var(--serif); font-size: 14px; }
.resource-card h3 { margin-top: 11px; font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.resource-card p { margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.resource-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--muted-2); font-size: 7.5px; }
.resource-foot em { display: flex; align-items: center; gap: 3px; color: var(--green-mid); font-style: normal; }
.resource-foot svg { width: 10px; height: 10px; }
.hub-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.hub-section-head h2 { font-family: var(--serif); font-size: 17px; }
.hub-section-head p { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.hub-program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hub-program { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fffbfe; text-align: left; transition: .2s; }
.hub-program:hover { border-color: #d2c4aa; transform: translateY(-1px); }
.hub-program .program-icon { width: 33px; height: 33px; flex: 0 0 33px; margin: 0; border-radius: 8px; font-size: 14px; }
.hub-program strong { display: block; font-size: 9.5px; }
.hub-program span { display: block; flex: 1; color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.hub-program > svg { width: 12px; height: 12px; color: var(--muted-2); }
.hub-note { display: flex; align-items: center; gap: 5px; margin-top: 15px; color: var(--muted-2); font-size: 7.5px; }
.hub-note svg { width: 11px; height: 11px; }
.program-grid.v2 { grid-template-columns: repeat(3, 1fr); }
.program-card.v2 { min-height: 300px; border-radius: 14px; }
.program-modal-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.program-modal-head .program-icon { margin: 0; flex: 0 0 46px; width: 46px; height: 46px; }
.program-modal-head p { color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.simple-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.simple-list div { display: flex; gap: 7px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.6; }
.simple-list svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 2px; color: var(--safe); }

/* 九维画像 */
.profile-hero-v2 { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(118deg, #fcf7fd, #f7eff7); }
.profile-hero-main { display: flex; align-items: center; gap: 14px; }
.profile-name-row { display: flex; align-items: center; gap: 7px; }
.profile-edit-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid #e4d9e7; border-radius: 50%; background: rgba(255,253,255,.7); color: #a495aa; cursor: pointer; opacity: .8; transition: .18s var(--ease); }
.profile-edit-mini:hover { border-color: #cbb4d2; background: #fbf6fc; color: var(--green); opacity: 1; transform: translateY(-1px); }
.profile-edit-mini svg { width: 11px; height: 11px; }
.profile-avatar-large { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; background: #efe2ca; color: var(--green-deep); font-family: var(--serif); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.profile-hero-v2 h1 { font-family: var(--serif); font-size: 23px; letter-spacing: .04em; line-height: 1.2; }
.profile-hero-v2 p { margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.profile-hero-v2 .profile-tags { margin-top: 8px; }
.profile-hero-v2 .profile-tags .chip { background: var(--paper-3); color: var(--ink-soft); border: 1px solid var(--line-soft); }
.profile-hero-v2 .profile-tags .chip.gold { background: var(--gold-soft); color: #7a5a24; border-color: #dfcca8; }
.profile-index { text-align: right; }
.profile-index span { display: block; color: var(--muted); font-size: 8px; }
.profile-index b { display: inline-block; margin-top: 2px; font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--green); }
.profile-index em { color: var(--muted-2); font-size: 9px; font-style: normal; }
.portrait-layout-v2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 15px; align-items: start; }
.portrait-panel-v2 { border-radius: 14px; padding: 17px 18px 18px; }
.portrait-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.portrait-panel-head h2 { font-family: var(--serif); font-size: 17px; }
.portrait-panel-head p { margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.portrait-radar-wrap { display: grid; place-items: center; min-height: 320px; }
.portrait-radar-wrap svg { width: 100%; max-width: 390px; height: auto; overflow: visible; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 5px; }
.dimension-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffbfe; text-align: left; transition: .18s; }
.dimension-card:hover { border-color: var(--gold); background: var(--gold-soft); }
.dimension-card .dimension-name { color: var(--muted); font-size: 8px; }
.dimension-card b { font-family: var(--serif); font-size: 17px; color: var(--green); line-height: 1.1; }
.dimension-card em { display: flex; align-items: center; gap: 2px; color: var(--muted-2); font-size: 7px; font-style: normal; }
.dimension-card em svg { width: 8px; height: 8px; }
.dimension-card.empty-dim { background: #fbf7fb; }
.dimension-card.empty-dim b { color: var(--muted); }
.profile-side-v2 { display: flex; flex-direction: column; gap: 12px; }
.next-step-card { padding: 18px; border-radius: 13px; background: linear-gradient(140deg, #43244e, #2f1736); color: #f5ecdc; }
.next-step-label { color: #d6b77f; font-size: 7px; letter-spacing: .19em; }
.next-step-card h3 { margin-top: 7px; font-family: var(--serif); font-size: 18px; }
.next-step-card p { margin-top: 7px; color: rgba(245,236,220,.58); font-size: 9px; line-height: 1.8; }
.next-step-card .btn { margin-top: 12px; color: #f1dfbf; border-color: rgba(241,223,191,.25); background: rgba(255,255,255,.04); }
.next-step-card.small { margin-top: 15px; }
.info-panel-v2 { padding: 16px 17px; border-radius: 13px; }
.badge-section-v2 { margin-top: 16px; }
.badge-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.growth-badge { display: flex; align-items: flex-start; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fffbfe; }
.badge-icon { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--safe); }
.growth-badge.gold .badge-icon { background: var(--gold-soft); color: #8b6529; }
.growth-badge.red .badge-icon { background: var(--red-soft); color: var(--red); }
.badge-icon svg { width: 15px; height: 15px; }
.growth-badge strong { display: block; font-size: 9.5px; font-weight: 600; }
.growth-badge span { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.badge-progress { height: 3px; margin-top: 7px; border-radius: 4px; background: var(--paper-4); overflow: hidden; }
.badge-progress i { display: block; height: 100%; border-radius: 4px; background: var(--safe); }
.growth-badge.gold .badge-progress i { background: var(--gold); }
.growth-badge.red .badge-progress i { background: var(--red); }
.dimension-detail-head { display: flex; align-items: center; gap: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.dimension-score-big { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--serif); font-size: 24px; }
.dimension-detail-head strong { display: block; font-size: 10.5px; }
.dimension-detail-head p { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.dimension-record-list { display: flex; flex-direction: column; }
.dimension-record { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); cursor: pointer; }
.dimension-record .record-kind { width: 28px; height: 28px; flex: 0 0 28px; }
.dimension-record > div { flex: 1; }
.dimension-record strong { display: block; font-size: 9.5px; font-weight: 600; line-height: 1.5; }
.dimension-record span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7.5px; }
.dimension-record > svg { width: 12px; height: 12px; color: var(--muted-2); }

/* 成长来信 */
.letter-overlay { background: rgba(27, 15, 31, .66); }
.letter-modal { position: relative; width: min(690px, 94vw); max-height: 90vh; padding: 16px; border-radius: 8px; background: #e5d8bf; box-shadow: 0 35px 90px rgba(24,13,28,.36); overflow: visible; animation: modalIn .4s var(--ease) both; }
.letter-envelope-bg { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; pointer-events: none; }
.letter-envelope-bg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(160deg, #ecdfc6, #ddcdae); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .75; }
.letter-envelope-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(122,95,53,.025) 4px); }
.letter-paper { position: relative; z-index: 1; max-height: calc(90vh - 32px); overflow-y: auto; padding: 29px 35px 24px; border: 1px solid #d7c7a8; border-radius: 3px; background: linear-gradient(180deg, #fffdf7, #fcf7ea); box-shadow: 0 12px 30px rgba(68, 50, 24, .12); }
.letter-close { position: absolute; right: 13px; top: 12px; z-index: 3; background: rgba(255,252,255,.8); }
.letter-head { padding-right: 20px; }
.letter-kicker { color: var(--gold); font-size: 7.5px; letter-spacing: .22em; }
.letter-head h2 { margin-top: 11px; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); letter-spacing: .035em; color: var(--ink); line-height: 1.45; }
.letter-head p { margin-top: 5px; color: var(--muted); font-family: var(--serif); font-size: 11px; }
.letter-periods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.letter-periods span { padding: 2px 7px; border: 1px solid #ddcfb5; border-radius: 20px; color: #9a8152; font-size: 7px; letter-spacing: .04em; }
.letter-body { margin-top: 17px; color: var(--ink-soft); font-family: var(--serif); font-size: 10.5px; line-height: 2.05; }
.letter-body p + p { margin-top: 10px; }
.letter-body b { color: var(--green); font-weight: 700; }
.letter-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 15px 0; border: 1px solid #e2d5bd; border-radius: 5px; overflow: hidden; background: #e9ddc7; }
.letter-stats > div { padding: 9px 5px; text-align: center; background: #fdf9ef; }
.letter-stats b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--green); }
.letter-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.letter-evaluation { margin: 13px 0; padding: 13px 15px; border-left: 2px solid #c9a56c; background: #f9f0dc; }
.letter-evaluation > span { color: #987538; font-size: 7.5px; letter-spacing: .08em; }
.letter-evaluation p { margin-top: 5px; font-size: 9.8px; line-height: 1.95; color: #6b5838; }
.letter-sign { margin-top: 15px; color: var(--muted); font-size: 9.5px; line-height: 1.7; text-align: right; }
.letter-sign span { font-family: var(--sans); font-size: 7.5px; color: var(--muted-2); }
.letter-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 18px; padding-top: 13px; border-top: 1px dashed #dfd1b7; }
.letter-wax { position: absolute; z-index: 2; right: -14px; bottom: 42px; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b95642, #8a3325); color: #f5dfcc; font-family: var(--serif); font-size: 20px; box-shadow: 0 6px 15px rgba(100,46,30,.3), inset 0 0 0 4px rgba(255,255,255,.08); transform: rotate(-8deg); }

/* AI 简化 */
.ai-drawer.simple { width: min(400px, 100vw); background: #faf6fa; }
.ai-drawer-head.simple { padding: 18px 20px 15px; }
.ai-drawer-head.simple p { margin-top: 7px; font-size: 8.5px; }
.ai-chat.simple { padding: 15px 16px 8px; }
.ai-chat.simple .chat-bubble { font-size: 9.8px; line-height: 1.8; }
.chat-msg .chat-bubble { position: relative; }
.speak-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 5px; padding: 0; border: 0; border-radius: 50%; background: var(--paper-3); color: var(--muted); vertical-align: middle; }
.speak-btn:hover { background: var(--green-soft); color: var(--green); }
.speak-btn svg { width: 10px; height: 10px; }
.chat-quick.simple { margin: 2px 0 13px 33px; }
.ai-source { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted); font-size: 7.5px; line-height: 1.6; }
.ai-source svg { width: 10px; height: 10px; vertical-align: -1px; }
.ai-source span { margin-left: 5px; padding: 1px 4px; border-radius: 3px; background: var(--green-soft); color: var(--green-mid); font-size: 6.5px; }
.chat-input-wrap.simple { padding: 9px 12px 12px; }
.chat-input-box .voice-btn { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); }
.chat-input-box .voice-btn:hover { background: var(--green-pale); color: var(--green); }
.chat-input-box .voice-btn svg { width: 13px; height: 13px; }
.chat-input-box { align-items: center; }
.ai-upload-tab { flex: 1; overflow-y: auto; padding: 16px; }
.ai-upload-zone { padding: 18px 16px 16px; border: 1px dashed #cec2ac; border-radius: 11px; background: linear-gradient(135deg, #f7f1f8, #f1e9f2); text-align: center; cursor: pointer; }
.ai-upload-zone:hover { border-color: var(--gold); }
.upload-orb { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 11px; background: #ebe0ee; color: var(--green-mid); }
.upload-orb svg { width: 21px; height: 21px; }
.ai-upload-zone h3 { font-family: var(--serif); font-size: 16px; }
.ai-upload-zone p { max-width: 300px; margin: 4px auto 11px; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.ai-upload-zone .capture-buttons { justify-content: center; }
.ai-upload-recent { margin-top: 15px; }
.ai-section-label { margin-bottom: 5px; color: var(--muted-2); font-size: 7.5px; letter-spacing: .1em; }
.ai-upload-recent .ai-archive-row strong { max-width: 260px; }
.ai-tip { display: flex; align-items: flex-start; gap: 5px; margin-top: 14px; padding: 9px 10px; border-radius: 6px; background: var(--gold-soft); color: #7b6130; font-size: 7.5px; line-height: 1.6; }
.ai-tip svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 1px; }

@media (max-width: 980px) {
  body.student-mode .page { padding: 22px 20px 118px; }
  .notice-layout.v2 { grid-template-columns: 1fr; }
  .notice-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .records-layout.v2 { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .portrait-layout-v2 { grid-template-columns: 1fr; }
  .profile-side-v2 { display: grid; grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.student-mode .topbar { padding: 0 14px; height: 60px; }
  body.student-mode .view { min-height: calc(100vh - 60px); }
  .student-brand .brand-seal { width: 30px; height: 30px; flex-basis: 30px; font-size: 18px; }
  .student-brand-copy strong { font-size: 16px; }
  .student-brand-copy span { display: none; }
  .student-page-label { display: none; }
  .student-user-copy { display: none; }
  .student-user { padding-left: 5px; border-left: 0; }
  .student-user .avatar { width: 29px; height: 29px; flex-basis: 29px; }
  .role-switch { padding: 4px 7px; font-size: 8px; }
  body.student-mode .page { padding: 18px 13px 110px; }
  .student-mode .page-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .student-mode .page-head h1 { font-size: 26px; }
  .student-mode .page-head .lede { font-size: 10px; }
  .student-mode .head-actions { width: 100%; }
  .student-mode .head-actions .btn { flex: 1; }
  .notice-summary { gap: 8px 12px; }
  .notice-summary em { width: 100%; margin-left: 0; }
  .notice-layout.v2 { gap: 12px; }
  .notice-toolbar.v2 { padding: 11px 12px 0; }
  .notice-tabs { gap: 4px; overflow-x: auto; }
  .notice-tabs button { flex: none; padding: 6px 7px 8px; font-size: 8.5px; }
  .notice-list.v2 { padding: 0 11px; }
  .notice-row.v2 { grid-template-columns: 46px minmax(0, 1fr); gap: 9px; padding: 12px 0; }
  .notice-row.v2 .date-tile.v2 { width: 45px; height: 58px; }
  .date-tile.v2 strong { font-size: 20px; }
  .notice-row.v2 .notice-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-end; padding-top: 0; margin-top: -4px; min-height: 20px; }
  .notice-row.v2 .mark-star { position: static; width: 20px; height: 20px; }
  .notice-row.v2 .notice-title { font-size: 11.5px; }
  .notice-row.v2 .notice-side .deadline-tag { display: none; }
  .notice-aside { grid-template-columns: 1fr; }
  .notice-summary b { font-size: 15px; }
  .task-strip { padding: 11px 12px; }
  .task-strip-go { font-size: 7.5px; }
  .task-strip-copy em { display: none; }
  .record-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 9px; }
  .overview-tile { gap: 6px; padding: 7px 8px; }
  .overview-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .overview-icon svg { width: 12px; height: 12px; }
  .overview-tile b { font-size: 16px; }
  .overview-tile div > span { font-size: 7px; }
  .record-actionbar { gap: 7px; padding: 8px 12px; }
  .record-actions { width: 100%; margin-left: 0; }
  .record-actions .btn { flex: 1; }
  .records-filter.v2 { padding: 7px 12px; }
  .records-filter.v2 .input-icon { width: 100%; }
  .records-filter.v2 .segmented { gap: 10px; overflow-x: auto; width: 100%; }
  .records-list.v2 { padding: 0 12px; }
  .record-item.v2 { grid-template-columns: 15px 29px minmax(0, 1fr); gap: 7px; padding: 8px 0; }
  .record-item.v2 .record-kind { width: 28px; height: 28px; }
  .record-item.v2.has-stamp .record-body { padding-right: 29px; }
  .record-item.v2 .record-body h3 { font-size: 10.5px; }
  .record-item.v2 .record-bottom { gap: 3px; margin-top: 3px; }
  .record-item.v2 .stamp-zone { right: 0; }
  .record-stamp svg.stamp-seal { width: 29px; height: 29px; }
  .record-stamp em { display: none; }
  .stamp-zone { gap: 1px; opacity: .82; }
  .side-stack { display: flex; }
  .profile-hero-v2 { padding: 15px; align-items: flex-start; }
  .profile-hero-v2 h1 { font-size: 20px; }
  .profile-avatar-large { width: 48px; height: 48px; flex-basis: 48px; font-size: 18px; }
  .profile-index b { font-size: 30px; }
  .profile-hero-v2 .profile-tags { max-width: 220px; }
  .portrait-panel-v2 { padding: 13px 12px 14px; }
  .portrait-panel-head { flex-direction: column; gap: 7px; }
  .portrait-radar-wrap { min-height: 260px; }
  .dimension-grid { gap: 4px; }
  .dimension-card { padding: 7px 7px; }
  .dimension-card b { font-size: 15px; }
  .dimension-card .dimension-name { font-size: 7.5px; }
  .dimension-card em { font-size: 6.5px; }
  .profile-side-v2 { display: flex; }
  .badge-grid-v2 { grid-template-columns: 1fr; }
  .hub-program-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .program-grid.v2 { grid-template-columns: 1fr; }
  .community-tabs { width: 100%; }
  .community-tabs button { flex: 1; padding: 6px 5px; }
  .community-section { padding: 13px 12px 15px; }
  .community-section-head { flex-direction: column; gap: 8px; }
  .community-section-head .btn { width: 100%; }
  .academic-pin { padding: 12px 13px; }
  .academic-pin-foot span:last-child { display: none; }
  .treehole-list { grid-template-columns: 1fr; }
  .treehole-hero { flex-wrap: wrap; }
  .treehole-hero .btn { width: 100%; }
  .activity-foot { flex-wrap: wrap; }
  .activity-foot .btn { width: 100%; }
  .letter-modal { padding: 8px; }
  .letter-paper { padding: 21px 17px 18px; max-height: calc(90vh - 16px); }
  .letter-stats { grid-template-columns: 1fr 1fr; }
  .letter-head h2 { font-size: 22px; }
  .letter-body { font-size: 10px; line-height: 1.95; }
  .letter-actions { flex-direction: column-reverse; }
  .letter-actions .btn { width: 100%; }
  .letter-wax { width: 42px; height: 42px; right: -8px; bottom: 22px; font-size: 16px; }
  .tabbar { bottom: 8px; width: calc(100vw - 16px); border-radius: 16px; padding: 5px 5px 4px; }
  .tab-item { padding: 5px 2px 3px; border-radius: 11px; }
  .tab-label { font-size: 7.5px; }
  .tab-icon svg { width: 17px; height: 17px; }
  .student-mode .ai-fab { right: 14px; bottom: 84px; }
  .capture-buttons { flex-direction: column; }
  .capture-form-foot { flex-direction: column; align-items: stretch; }
  .capture-form-foot .btn { width: 100%; }
  .share-preview-row strong { white-space: normal; }
  .event-grid { grid-template-columns: 1fr; }
  .paper-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 980px) {
  body.student-mode .page { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .teacher-tabbar:not([hidden]) { display: flex; }
  body.teacher-mode .page { padding-bottom: 108px; }
  body.teacher-mode .view { padding-bottom: 12px; }
}

/* 教师端 · 活动配置与 AI 资料库 */
.event-config { padding: 12px 13px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(245,240,246,.45); }
.event-config-fields { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.preview-event { display: flex; align-items: center; gap: 4px; margin-top: 7px; padding: 4px 6px; border-radius: 3px; background: var(--green-pale); color: var(--green-mid); font-size: 7.5px; }
.preview-event svg { width: 9px; height: 9px; }
.knowledge-summary { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(252,249,252,.72); }
.knowledge-summary > div:not(.knowledge-note) { display: flex; flex-direction: column; }
.knowledge-summary b { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--green); }
.knowledge-summary span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.knowledge-note { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted-2); font-size: 8px; }
.knowledge-note svg { width: 12px; height: 12px; color: var(--gold); }
.knowledge-panel { overflow: hidden; }
.knowledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 17px 18px; }
.knowledge-card { padding: 15px 16px 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fffbfe; cursor: pointer; transition: .22s var(--ease); }
.knowledge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4c7b1; }
.knowledge-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.knowledge-date { color: var(--muted-2); font-size: 7.5px; }
.knowledge-card h3 { margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.knowledge-card p { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.knowledge-card .tag-list { margin-top: 8px; }
.knowledge-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 7.5px; }
.knowledge-foot span { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-foot svg { width: 10px; height: 10px; flex: 0 0 10px; }
@media (max-width: 760px) {
  .knowledge-summary { flex-wrap: wrap; gap: 14px; padding: 12px 14px; }
  .knowledge-note { width: 100%; margin-left: 0; }
  .knowledge-grid { grid-template-columns: 1fr; padding: 12px; }
  .event-config { padding: 10px; }
}









/* 学生社区 · 学生组织服务 / 生活权益 */
.service-section { padding-bottom: 16px; }
.service-intro { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid #ddcbe2; border-radius: 10px; background: linear-gradient(115deg, #f7eff8, #fdf9fd); }
.service-intro-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: #ecdfef; color: #6b3a78; }
.service-intro-mark svg { width: 18px; height: 18px; }
.service-intro > div:nth-child(2) { flex: 1; min-width: 0; }
.service-intro h2 { font-family: var(--serif); font-size: 16px; }
.service-intro p { margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.service-stats { display: flex; align-items: baseline; gap: 16px; margin: 13px 0 9px; color: var(--muted); font-size: 8px; }
.service-stats b { margin-right: 2px; color: var(--green); font-family: var(--serif); font-size: 16px; }
.service-stats em { margin-left: auto; color: var(--muted-2); font-style: normal; font-size: 7.5px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.service-card { padding: 13px 14px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fffbfe; cursor: pointer; transition: .2s var(--ease); }
.service-card:hover { transform: translateY(-2px); border-color: #d7c4dc; box-shadow: var(--shadow-sm); }
.service-top { display: flex; align-items: center; gap: 6px; }
.service-status { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 3px; font-size: 7px; font-weight: 600; white-space: nowrap; }
.service-status.pending { color: #86631f; background: #f8edce; }
.service-status.processing { color: #5a4268; background: #ebdfef; }
.service-status.done { color: #396249; background: #e6eee6; }
.service-time { margin-left: auto; color: var(--muted-2); font-size: 7px; }
.service-card h3 { margin-top: 7px; font-size: 11px; font-weight: 600; line-height: 1.55; }
.service-card p { margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 8.2px; line-height: 1.65; }
.service-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 7px; color: var(--muted-2); font-size: 7.2px; }
.service-meta span { display: inline-flex; align-items: center; gap: 3px; }
.service-meta svg { width: 9px; height: 9px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 7.2px; }
.service-foot .thread-stat { border: 0; background: transparent; }
.service-detail-content { padding: 15px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.95; border-bottom: 1px solid var(--line-soft); }
.service-timeline { display: flex; flex-direction: column; }
.service-step { position: relative; display: flex; gap: 9px; padding: 8px 0 9px 2px; border-bottom: 1px dashed var(--line-soft); }
.service-step:last-child { border-bottom: 0; }
.service-step .step-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border: 2px solid #c7a0cf; border-radius: 50%; background: #fffbfe; }
.service-step.current .step-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.service-step strong { display: block; font-size: 9.5px; }
.service-step p { margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.service-step em { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; font-style: normal; }
.service-detail-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.service-detail-foot span { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--muted-2); font-size: 7.5px; }
.service-detail-foot svg { width: 10px; height: 10px; }
@media (max-width: 760px) {
  .service-intro { align-items: flex-start; flex-wrap: wrap; }
  .service-intro .btn { width: 100%; }
  .service-list { grid-template-columns: 1fr; }
  .service-stats { gap: 11px; flex-wrap: wrap; }
  .service-stats em { width: 100%; margin-left: 0; }
  .community-tabs button { font-size: 8.5px; padding-left: 3px; padding-right: 3px; }
}


/* 个人信息 · 个人特长 */
.specialty-panel-v2 { padding: 13px 15px 12px; border-radius: 13px; }
.specialty-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.specialty-head .panel-title { margin: 0; }
.specialty-head .btn { color: var(--green); font-size: 8px; padding: 3px 2px; }
.specialty-head .btn svg { width: 9px; height: 9px; }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.specialty-tag { display: inline-flex; align-items: center; gap: 3px; min-height: 21px; padding: 2px 5px 2px 7px; border: 1px solid #d9cadd; border-radius: 4px; background: #fbf7fc; color: var(--ink-soft); font-size: 8.2px; line-height: 1.2; }
.specialty-tag b { font-weight: 500; }
.specialty-tag small { padding: 1px 3px; border-radius: 2px; background: #ecdfef; color: #75517e; font-size: 6.2px; font-weight: 400; }
.specialty-tag.system { border-style: dashed; border-color: #d4bd9b; background: #fdf8ee; }
.specialty-tag.system small { background: #f2e5c9; color: #8a682b; }
.specialty-tag.self button { display: grid; place-items: center; width: 12px; height: 14px; margin-left: 1px; padding: 0; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.specialty-tag.self button:hover { color: var(--red); }
.specialty-tag.self button svg { width: 8px; height: 8px; }
.specialty-empty { color: var(--muted-2); font-size: 8px; }
.specialty-hint { margin-top: 7px; color: var(--muted-2); font-size: 7.2px; line-height: 1.55; }
.specialty-preview { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 9px 10px; border: 1px dashed #dcc8e0; border-radius: 6px; background: #fbf6fc; color: var(--muted); font-size: 8px; line-height: 1.6; }
.specialty-preview svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 1px; color: var(--green-mid); }



/* 附件：预览与下载 */
.attachment-row { flex-wrap: nowrap; }
.attachment-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; flex: 0 0 auto; }
.attachment-act { display: inline-flex; align-items: center; gap: 2px; padding: 3px 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 7.5px; cursor: pointer; }
.attachment-act:hover { border-color: var(--line); background: #fffbfe; color: var(--green); }
.attachment-act.download { color: var(--green-mid); }
.attachment-act svg { width: 11px; height: 11px; }
.attachment-act span { white-space: nowrap; }
.attachment-preview-sheet { position: relative; min-height: 420px; padding: 28px 34px 24px; border: 1px solid #ddcfe0; border-radius: 10px; background: linear-gradient(145deg, #fdf9fd, #f6eff7); overflow: hidden; }
.attachment-preview-sheet::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(142, 100, 152, .16); border-radius: 6px; pointer-events: none; }
.preview-sheet-head { display: flex; align-items: center; justify-content: space-between; color: var(--green-mid); font-family: var(--serif); font-size: 9px; letter-spacing: .13em; }
.preview-sheet-head em { color: var(--muted-2); font-family: var(--sans); font-size: 7px; font-style: normal; letter-spacing: .18em; }
.attachment-preview-sheet h3 { margin: 32px 0 9px; max-width: 82%; font-family: var(--serif); font-size: 22px; line-height: 1.45; font-weight: 600; }
.attachment-preview-sheet p { max-width: 78%; color: var(--muted); font-size: 9px; line-height: 1.8; }
.preview-sheet-lines { display: flex; flex-direction: column; gap: 11px; margin-top: 36px; max-width: 78%; }
.preview-sheet-lines i { display: block; height: 1px; background: #e2d6e4; }
.preview-sheet-lines i:nth-child(2) { width: 88%; }
.preview-sheet-lines i:nth-child(4) { width: 72%; }
.preview-sheet-lines i:nth-child(5) { width: 84%; }
.preview-sheet-foot { position: absolute; left: 34px; right: 34px; bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; color: var(--muted-2); font-size: 7.5px; letter-spacing: .04em; }
.preview-seal { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #a95442; border-radius: 50%; color: #a95442; font-family: var(--serif); font-size: 13px; opacity: .6; transform: rotate(-10deg); }
.attachment-preview-sheet.img { background: linear-gradient(150deg, #f7eff8, #fdf9f6); }
.attachment-preview-sheet.img h3 { max-width: 65%; }
.attachment-preview-sheet.img::after { content: "IMAGE"; position: absolute; right: 34px; top: 90px; color: rgba(142,100,152,.15); font-family: var(--serif); font-size: 68px; letter-spacing: .05em; }
.attachment-preview-media { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8f3f9; }
.attachment-preview-media img { display: block; max-width: 100%; max-height: 520px; border-radius: 4px; box-shadow: 0 8px 24px rgba(45,27,51,.12); }
.attachment-preview-frame { height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f2edf3; }
.attachment-preview-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.material-file-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.material-file { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.45); overflow: hidden; }
.material-file .material-name { border: 0; border-radius: 0; background: transparent; padding: 3px 5px; color: var(--blue); }
.material-file .material-dl { display: grid; place-items: center; width: 21px; height: 21px; border: 0; border-left: 1px solid var(--line-soft); background: transparent; color: var(--green-mid); cursor: pointer; }
.material-file .material-dl svg { width: 9px; height: 9px; }
.material-file .material-dl:hover { background: var(--green-pale); }
@media (max-width: 760px) {
  .attachment-act span { display: none; }
  .attachment-act { padding: 3px; }
  .attachment-preview-sheet { min-height: 380px; padding: 22px 20px 18px; }
  .attachment-preview-sheet h3 { margin-top: 24px; font-size: 18px; }
  .preview-sheet-foot { left: 20px; right: 20px; bottom: 18px; }
  .preview-seal { width: 44px; height: 44px; font-size: 11px; }
  .attachment-preview-frame { height: 420px; }
}


/* 学生社区 · 紧凑学术公告与栏目工具条 */
.academic-ticker { display: flex; align-items: center; gap: 9px; height: 34px; margin: 0 0 10px; padding: 0 10px; border: 1px solid #ddcbe2; border-radius: 8px; background: linear-gradient(100deg, #f4ecf7, #fcf8fc); cursor: pointer; overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #71467c; font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.ticker-label svg { width: 10px; height: 10px; }
.ticker-viewport { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cdb8d3 transparent; }
.ticker-viewport::-webkit-scrollbar { height: 2px; }
.ticker-viewport::-webkit-scrollbar-thumb { background: #cdb8d3; border-radius: 2px; }
.ticker-track { display: block; width: max-content; min-width: 100%; }
.ticker-copy { display: inline-flex; align-items: center; gap: 7px; padding-right: 18px; color: var(--ink-soft); font-size: 8px; white-space: nowrap; }
.ticker-copy b { color: var(--ink); font-weight: 600; }
.ticker-copy i { color: var(--gold); font-style: normal; }
.ticker-copy span { color: var(--muted); }
.ticker-arrow { flex: 0 0 auto; color: var(--muted-2); }
.ticker-arrow svg { width: 12px; height: 12px; }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.community-note { color: var(--muted); font-size: 8px; line-height: 1.6; }
.community-toolbar .feed-tabs.inline { margin: 0; }
.treehole-hero.compact { padding: 12px 14px; margin-bottom: 12px; }
.treehole-hero.compact p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.service-intro p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
@media (max-width: 760px) {
  .academic-ticker { height: 32px; }
  .ticker-copy { font-size: 7.5px; }
  .community-toolbar { margin-bottom: 10px; }
  .community-toolbar > .btn { width: 100%; }
  .community-toolbar .feed-tabs.inline { flex: 1; overflow-x: auto; }
  .treehole-hero.compact { align-items: flex-start; }
  .treehole-hero.compact .btn { width: 100%; }
}






/* 通知资讯 · 顶部今日卡与倒计时 */
.notice-today { display: flex; align-items: stretch; min-width: 192px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,252,255,.62); }
.nt-day { width: 58px; flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-right: 1px solid var(--line-soft); background: linear-gradient(150deg, #f1e5f4, #fbf7fc); }
.nt-day span { color: var(--green-mid); font-size: 7px; letter-spacing: .08em; }
.nt-day b { color: var(--green-deep); font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; }
.nt-copy { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 7px 11px; }
.nt-copy em { color: var(--muted-2); font-size: 7px; font-style: normal; letter-spacing: .06em; }
.nt-copy strong { color: var(--green); font-size: 10px; font-weight: 600; }
.nt-copy span { color: var(--muted); font-size: 7px; white-space: nowrap; }
.notice-today.urgent .nt-copy strong { color: var(--red); }
.notice-today.soon .nt-copy strong { color: #9a702d; }
.notice-summary { margin-bottom: 12px; }
.date-tile.v2.countdown strong { font-size: 22px; letter-spacing: -.04em; }
.date-tile.v2.countdown.text strong { font-size: 15px; letter-spacing: -.08em; }
.date-tile.v2.countdown span { margin-top: 4px; font-size: 7px; }
.chip.target-chip { color: #6a4777; border-color: #d9c4df; background: #f8f1fa; }
.notice-row.targeted { border-left-color: #c39ac9; }
.notice-row.targeted .notice-title-row::after { content: ""; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--green); }

/* 成长日历 · 近期待办 */
.calendar-legend { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--muted-2); font-size: 7px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 3px; }
.calendar-legend i { width: 4px; height: 4px; border-radius: 50%; }
.legend-todo { background: var(--green); }
.legend-ref { background: var(--gold); }
.day-cell.has-todo::after { background: var(--green); }
.cal-todo { border-left: 2px solid #d7c0dd; padding-left: 8px; cursor: pointer; }
.cal-todo .cal-date { color: var(--green); }
.cal-todo .deadline-tag { margin-left: auto; flex: 0 0 auto; }
.cal-ref { opacity: .82; }
.cal-event-label.gap { margin-top: 11px; }
.cal-event { align-items: center; }
.cal-event-copy { flex: 1; }
.cal-todo:hover strong { color: var(--green); }
@media (max-width: 760px) {
  .notice-today { min-width: 0; width: 100%; }
  .page-head .head-actions { width: 100%; }
  .nt-day { width: 52px; flex-basis: 52px; }
  .nt-copy span { white-space: normal; }
  .date-tile.v2.countdown strong { font-size: 19px; }
  .date-tile.v2.countdown.text strong { font-size: 13px; }
  .cal-todo .deadline-tag { display: none; }
}

/* 教师端 · 通知定向发送 */
.target-config { margin: 10px 0; padding: 12px; border: 1px solid #ded0e2; border-radius: 8px; background: #fcf8fd; }
.target-config > .checkline { margin: 0; }
.target-config-fields { margin-top: 10px; }
.target-need-row { display: flex; gap: 6px; align-items: center; }
.target-need-row .input { flex: 1; }
.target-need-row .btn { flex: 0 0 auto; white-space: nowrap; }
.target-people { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
.target-person { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 7px; border: 1px solid var(--line-soft); border-radius: 5px; background: #fffbfe; cursor: pointer; }
.target-person:hover { border-color: #d8c2dd; }
.target-checkbox { width: 12px; height: 12px; accent-color: var(--green); flex: 0 0 12px; }
.target-avatar { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--serif); font-size: 9px; }
.target-who { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; }
.target-who b { font-size: 8.5px; }
.target-who em { color: var(--muted-2); font-style: normal; font-size: 7px; }
.target-who span { flex: 1 0 100%; overflow: hidden; color: var(--muted); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.target-empty { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 8px; border: 1px dashed #ddcbe2; border-radius: 5px; color: var(--muted); font-size: 7.5px; line-height: 1.6; }
.target-empty svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--green-mid); }
.target-hint { display: flex; gap: 4px; margin-top: 7px; color: var(--muted-2); font-size: 7px; line-height: 1.55; }
.target-hint svg { width: 10px; height: 10px; flex: 0 0 10px; color: var(--gold); }
@media (max-width: 760px) {
  .target-people { grid-template-columns: 1fr; }
  .target-need-row { flex-wrap: wrap; }
  .target-need-row .btn { width: 100%; }
}
.target-callout { display: flex; gap: 9px; margin: 13px 0; padding: 11px 12px; border: 1px solid #d8c3dd; border-radius: 8px; background: linear-gradient(110deg, #f7eff9, #fcf8fd); }
.target-callout-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: #e9dcec; color: var(--green); }
.target-callout-icon svg { width: 14px; height: 14px; }
.target-callout strong { display: block; color: var(--green); font-size: 9.5px; }
.target-callout p { margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }

/* 个人信息 · 特长并入顶部画像 */
.profile-hero-v2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr) auto; align-items: center; gap: 18px; }
.profile-specialty-inline { min-width: 0; padding-left: 18px; border-left: 1px solid var(--line-soft); }
.profile-specialty-label { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--green-mid); font-size: 7.5px; letter-spacing: .08em; }
.profile-specialty-label svg { width: 11px; height: 11px; }
.profile-specialty-inline .specialty-tags { margin-top: 0; gap: 3px; }
.profile-specialty-inline .specialty-tag { min-height: 19px; padding: 2px 5px 2px 6px; font-size: 7.6px; }
.profile-specialty-inline .specialty-tag small { font-size: 5.8px; }
.profile-index { padding-left: 18px; border-left: 1px solid var(--line-soft); }
@media (max-width: 1000px) {
  .profile-hero-v2 { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-specialty-inline { grid-column: 1 / -1; padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .profile-hero-v2 { grid-template-columns: 1fr; gap: 10px; }
  .profile-index { padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); text-align: left; }
  .profile-index b { font-size: 30px; }
}
.cal-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-add { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border: 1px solid #d9c7df; border-radius: 4px; background: #fbf7fc; color: var(--green-mid); font-size: 7.5px; cursor: pointer; }
.cal-add:hover { background: var(--green-pale); }
.cal-add svg { width: 10px; height: 10px; }
.legend-memo { background: #6b8da6; }
.day-cell.has-memo::after { background: #6b8da6; }
.cal-memo { border-left: 2px solid #a9c2d2; padding-left: 8px; cursor: pointer; }
.cal-memo .cal-date { color: #587a92; }
.memo-tag { display: inline-flex; align-items: center; padding: 2px 5px; border-radius: 3px; background: #e9f0f5; color: #587a92; font-size: 6.5px; white-space: nowrap; }
.cal-memo:hover strong { color: #587a92; }

/* 成长来信 · 信封与信纸 */
.letter-overlay { background: rgba(22, 11, 27, .72); backdrop-filter: blur(3px); }
.letter-modal { position: relative; width: min(720px, 94vw); max-height: 92vh; padding: 18px 20px 20px; border-radius: 12px; background: linear-gradient(145deg, #3f2148, #241129); border: 1px solid rgba(202, 166, 104, .52); box-shadow: 0 35px 90px rgba(12, 6, 16, .5); overflow: visible; animation: modalIn .4s var(--ease) both; }
.letter-envelope-bg { position: absolute; inset: 4px; border-radius: 8px; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(219, 183, 119, .14), transparent 55%), linear-gradient(160deg, #4a2a53, #2b1633); border: 1px solid rgba(217, 183, 122, .24); }
.letter-envelope-bg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; background: linear-gradient(155deg, #5d3767, #351b3d 76%); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .96; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.letter-envelope-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.12) .45px, transparent .55px), repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,.012) 5px); background-size: 9px 9px, auto; opacity: .36; }
.letter-envelope-mark { position: absolute; z-index: 2; top: 24px; left: 50%; transform: translateX(-50%); text-align: center; color: #d9bd88; pointer-events: none; }
.letter-envelope-mark span { display: block; font-family: var(--serif); font-size: 12px; letter-spacing: .28em; }
.letter-envelope-mark em { display: block; margin-top: 3px; color: rgba(217, 189, 136, .55); font-family: var(--sans); font-size: 6px; font-style: normal; letter-spacing: .22em; }
.letter-paper { position: relative; z-index: 1; margin-top: 42px; max-height: calc(92vh - 90px); overflow-y: auto; padding: 27px 36px 24px; border: 1px solid #d5c19e; border-radius: 3px; background: linear-gradient(180deg, #fffdf8, #fbf3e5); box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.62); }
.letter-paper::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(173, 131, 68, .18); pointer-events: none; }
.letter-close { position: absolute; right: 14px; top: 12px; z-index: 3; background: rgba(255,252,255,.82); }
.letter-head { padding-right: 20px; }
.letter-kicker { color: var(--gold); font-size: 7.5px; letter-spacing: .22em; }
.letter-head h2 { margin-top: 11px; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); letter-spacing: .035em; color: var(--ink); line-height: 1.45; }
.letter-head p { margin-top: 5px; color: var(--muted); font-family: var(--serif); font-size: 11px; }
.letter-body { margin-top: 17px; color: var(--ink-soft); font-family: var(--serif); font-size: 10.6px; line-height: 2.1; }
.letter-body p + p { margin-top: 11px; }
.letter-body b { color: var(--green); font-weight: 700; }
.letter-moments { margin: 12px 0 15px; border-top: 1px solid #eadcc6; }
.letter-moment { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #ecdcc4; }
.letter-moment time { flex: 0 0 38px; color: var(--gold); font-size: 8px; letter-spacing: .04em; }
.letter-moment p { color: #4e3b2a; font-size: 9.8px; line-height: 1.8; }
.letter-moment em { margin-left: 6px; color: var(--muted-2); font-size: 7px; font-style: normal; }
.letter-gallery { margin: 17px 0 15px; padding: 0; }
.letter-collage { display: flex; align-items: center; justify-content: center; min-height: 158px; padding: 8px 0 2px; }
.letter-photo { position: relative; width: 43%; flex: 0 0 43%; margin: 0 -7px; padding: 5px 5px 6px; border: 1px solid #eadcc6; border-radius: 2px; background: #fffdf8; box-shadow: 0 9px 18px rgba(70, 47, 31, .14); transform: rotate(-3deg) translateY(3px); }
.letter-photo:nth-child(2) { transform: rotate(2.5deg) translateY(-4px); z-index: 2; }
.letter-photo:nth-child(3) { transform: rotate(-1deg) translateY(2px); }
.letter-gallery.count-3 .letter-photo { width: 32%; flex-basis: 32%; margin: 0 -3px; }
.letter-gallery.count-2 .letter-photo { width: 43%; flex-basis: 43%; }
.letter-gallery.count-1 .letter-photo { width: 56%; flex-basis: 56%; }
.letter-photo img, .letter-photo-sim { display: block; width: 100%; height: 112px; object-fit: cover; }
.letter-photo-sim { position: relative; overflow: hidden; background: linear-gradient(135deg, #d8c4d9, #af849e 44%, #6f526c); color: rgba(255,250,240,.82); }
.letter-photo-sim::before { content: ""; position: absolute; width: 100px; height: 100px; right: -22px; top: -30px; border-radius: 50%; background: rgba(246,228,194,.35); filter: blur(2px); }
.letter-photo-sim::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -48px; height: 100px; border-radius: 50% 50% 0 0; background: rgba(54,32,55,.38); transform: rotate(-5deg); }
.letter-photo-sim span { position: absolute; z-index: 1; left: 9px; top: 8px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255,250,240,.5); border-radius: 50%; }
.letter-photo-sim span svg { width: 11px; height: 11px; }
.letter-photo-sim em { position: absolute; z-index: 1; left: 9px; bottom: 8px; font-family: var(--serif); font-size: 12px; font-style: normal; letter-spacing: .08em; }
.letter-photo figcaption { overflow: hidden; padding: 4px 2px 0; color: #6d5a3f; font-size: 7.2px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.letter-photo figcaption small { display: block; margin-top: 1px; color: #a28d70; font-family: var(--sans); font-size: 5.8px; }
.letter-gallery-caption { margin-top: 5px; color: #a28d70; font-size: 6.8px; letter-spacing: .12em; text-align: center; }
.letter-reflection { position: relative; margin: 13px 0; padding-left: 16px; color: #6b5838; font-style: italic; }
.letter-reflection::before { content: "“"; position: absolute; left: 0; top: -8px; color: #c9a56c; font-family: var(--serif); font-size: 27px; line-height: 1; }
.letter-sign { margin-top: 15px; color: var(--muted); font-size: 9.5px; line-height: 1.7; text-align: right; }
.letter-sign span { font-family: var(--sans); font-size: 7.5px; color: var(--muted-2); }
.letter-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 18px; padding-top: 13px; border-top: 1px dashed #dfd1b7; }
.letter-wax { position: absolute; z-index: 2; right: -16px; bottom: 38px; width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid #61251d; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #d97255, #a63e2c 52%, #74281e 100%); color: #f8e6d2; font-family: var(--serif); font-size: 22px; text-shadow: 0 1px 1px rgba(80,25,18,.45); box-shadow: 0 8px 17px rgba(100,46,30,.38), inset 0 0 0 2px rgba(255,225,190,.16), inset 0 0 0 5px rgba(105,36,27,.18); transform: rotate(-8deg); }
.letter-wax::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,222,182,.38); border-radius: 50%; }
@media (max-width: 760px) {
  .letter-modal { padding: 8px 8px 10px; border-radius: 8px; }
  .letter-envelope-mark { top: 16px; }
  .letter-envelope-mark span { font-size: 10px; }
  .letter-paper { margin-top: 34px; max-height: calc(92vh - 64px); padding: 21px 17px 18px; }
  .letter-head h2 { font-size: 21px; }
  .letter-body { font-size: 9.8px; line-height: 2; }
  .letter-photo { width: 47%; flex-basis: 47%; margin: 0 -4px; }
  .letter-photo img, .letter-photo-sim { height: 92px; }
  .letter-actions { flex-direction: column-reverse; }
  .letter-actions .btn { width: 100%; }
  .letter-wax { width: 48px; height: 48px; right: -8px; bottom: 26px; font-size: 17px; }
}

.letter-photo.p2 .letter-photo-sim { background: linear-gradient(145deg, #e3d2c4, #b48a7a 44%, #70505c); }
.letter-photo.p3 .letter-photo-sim { background: linear-gradient(140deg, #c7d4dc, #7e9aab 45%, #485a70); }

/* 岐黄科研 */
.research-entry { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 17px; padding: 18px 20px; overflow: hidden; border-radius: 14px; background: linear-gradient(120deg, #43244e, #2d1635); color: #f6eddd; box-shadow: 0 12px 26px rgba(55,29,64,.16); }
.research-entry::after { content: "研"; position: absolute; right: 18px; bottom: -22px; color: rgba(247,232,210,.045); font-family: var(--serif); font-size: 112px; pointer-events: none; }
.research-entry-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(241,223,191,.25); border-radius: 12px; background: rgba(255,255,255,.06); color: #e6c98f; }
.research-entry-mark svg { width: 22px; height: 22px; }
.research-entry-copy { position: relative; z-index: 1; min-width: 0; }
.research-entry-copy > span { color: #d6b77f; font-size: 6.8px; letter-spacing: .22em; }
.research-entry-copy h2 { margin-top: 3px; font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.research-entry-copy p { max-width: 600px; margin-top: 3px; color: rgba(246,237,221,.58); font-size: 8px; line-height: 1.6; }
.research-entry-meta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.research-entry-meta b { color: #e4c78f; font-family: var(--serif); font-size: 12px; font-weight: 500; }
.research-entry-meta span { color: rgba(246,237,221,.48); font-size: 7px; }
.research-entry-arrow { position: absolute; right: 20px; bottom: 11px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; color: rgba(246,237,221,.72); font-size: 7.5px; }
.research-entry-arrow svg { width: 10px; height: 10px; }
.research-overview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0 0 13px; }
.research-stat { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,252,255,.58); }
.rs-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.rs-icon svg { width: 14px; height: 14px; }
.rs-icon.gold { background: #f8ecd4; color: #a8803f; }
.rs-icon.blue { background: var(--blue-soft); color: var(--blue); }
.rs-icon.green { background: #e7f0e7; color: var(--safe); }
.rs-icon.red { background: var(--red-soft); color: var(--red); }
.research-stat b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.research-stat div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 7.2px; }
.research-stat.warn { border-color: #e5b9b0; background: #fff8f6; }
.research-tabs { display: flex; align-items: center; gap: 22px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.research-tabs button { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 7px 0 9px; border: 0; background: transparent; color: var(--muted); font-size: 9.5px; }
.research-tabs button.active { color: var(--ink); font-weight: 600; }
.research-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--green); }
.research-tabs i { display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 6.5px; font-style: normal; }
.research-learning-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.research-learning-head h2 { font-family: var(--serif); font-size: 16px; }
.research-learning-head p { margin-top: 2px; color: var(--muted); font-size: 8.2px; line-height: 1.6; }
.research-update-pill { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid #d8c5df; border-radius: 20px; background: #faf6fc; color: var(--green-mid); font-size: 7px; }
.research-update-pill svg { width: 10px; height: 10px; }
.research-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.55); }
.research-toolbar .input-icon { width: 250px; }
.research-toolbar .input { padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
.research-cats { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.research-cats button { padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 8px; }
.research-cats button.active { border-color: #d8c5df; background: var(--green-pale); color: var(--green); }
.research-knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.research-knowledge-card { position: relative; padding: 13px 14px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,252,255,.7); cursor: pointer; transition: .18s var(--ease); }
.research-knowledge-card:hover { transform: translateY(-2px); border-color: #d5c2dc; box-shadow: var(--shadow-sm); }
.research-knowledge-card.is-new { background: linear-gradient(145deg, #fffafd, #f7eff8); }
.rk-top { display: flex; align-items: center; gap: 5px; }
.rk-type { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 3px; background: var(--green-soft); color: var(--green); font-size: 6.5px; }
.rk-type.video { background: #efe0e0; color: #995449; }
.rk-type.literature { background: var(--blue-soft); color: var(--blue); }
.rk-type svg { width: 9px; height: 9px; }
.rk-new { color: var(--red); font-size: 6px; font-weight: 700; letter-spacing: .08em; }
.rk-cat { margin-left: auto; color: var(--muted-2); font-size: 7px; }
.research-knowledge-card h3 { margin-top: 8px; font-size: 11px; line-height: 1.55; font-weight: 600; }
.research-knowledge-card p { margin-top: 4px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.rk-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; padding-top: 7px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 7px; }
.rk-foot em { font-style: normal; }
.research-project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.research-project-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,252,255,.7); cursor: pointer; transition: .18s var(--ease); }
.research-project-card:hover { transform: translateY(-2px); border-color: #d5c2dc; box-shadow: var(--shadow-sm); }
.rp-card-top { display: flex; align-items: center; gap: 5px; }
.rp-year { margin-left: auto; color: var(--muted-2); font-size: 7px; }
.research-status { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 3px; font-size: 6.5px; font-weight: 600; white-space: nowrap; }
.research-status.running { color: #4c6b55; background: #e7efe6; }
.research-status.pending { color: #8a6624; background: #f7ecd1; }
.research-status.done { color: #6d5a70; background: #eee5ef; }
.research-status.other { color: var(--muted); background: var(--paper-3); }
.research-project-card h3 { margin-top: 7px; font-size: 12px; line-height: 1.55; font-weight: 600; }
.research-project-card > p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.rp-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted-2); font-size: 7.2px; }
.rp-meta span { display: inline-flex; align-items: center; gap: 3px; }
.rp-meta svg { width: 9px; height: 9px; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 7px; }
.rp-open { display: inline-flex; align-items: center; gap: 3px; color: var(--green); }
.rp-open svg { width: 9px; height: 9px; }
.research-file-meta { margin: 5px 0 6px; color: var(--muted-2); font-size: 7.5px; }\n.research-inline-warning { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; padding: 5px 6px; border-radius: 4px; background: #fff6e9; color: #8a6624; font-size: 7px; line-height: 1.5; }
.research-inline-warning svg { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 1px; }
.research-warning-chip, .research-ok-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 3px; font-size: 6.5px; white-space: nowrap; }
.research-warning-chip { color: #9a4a3c; background: #fff0eb; }
.research-ok-chip { color: #4f7b60; background: #edf4ed; }
.research-warning-chip svg, .research-ok-chip svg { width: 9px; height: 9px; }
.research-warning-banner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; padding: 10px 12px; border: 1px solid #e3b8ad; border-radius: 8px; background: #fff7f4; color: #8f4d40; }
.research-warning-banner > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.research-warning-banner strong { display: block; font-size: 9px; }
.research-warning-banner p { margin-top: 2px; font-size: 8px; line-height: 1.55; }
.research-execution-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; padding: 12px 14px; border: 1px solid #d9c7df; border-radius: 8px; background: linear-gradient(100deg, #f7eff8, #fdf9fd); }
.research-execution-banner.warn { border-color: #e3b8ad; background: #fff8f5; }
.research-execution-banner > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.research-execution-banner span { color: var(--muted); font-size: 7px; }
.research-execution-banner strong { color: var(--ink); font-family: var(--serif); font-size: 13px; font-weight: 600; }
.research-execution-banner em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.research-banner-warnings p { display: flex; gap: 4px; color: #9a4a3c; font-size: 7px; }
.research-banner-warnings svg { width: 10px; height: 10px; }
.research-timeline { margin-top: 5px; padding-left: 7px; border-left: 1px solid #dcd0df; }
.research-timeline-item { position: relative; display: flex; gap: 10px; padding: 0 0 14px 10px; }
.research-timeline-item:last-child { padding-bottom: 2px; }
.research-timeline-dot { position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border: 2px solid #fffafd; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px #c9b3ce; }
.research-timeline-dot.gold { background: var(--gold); }
.research-timeline-dot.plum { background: var(--green-mid); }
.research-timeline-item > div { flex: 1; min-width: 0; }
.research-timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.research-timeline-head strong { font-size: 9.5px; }
.research-timeline-head em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.research-timeline-item p { margin-top: 3px; color: var(--ink-soft); font-size: 8.5px; line-height: 1.7; }
.research-timeline-item > div > span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; line-height: 1.55; }
.research-timeline-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted-2); font-size: 7.2px; }
.research-timeline .attachment-list { margin-top: 6px; }
.research-funding-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 13px; }
.research-funding-summary > div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.55); }
.research-funding-summary span { display: block; color: var(--muted); font-size: 7px; }
.research-funding-summary b { display: block; margin-top: 2px; color: var(--green); font-family: var(--serif); font-size: 16px; }
.research-funding-summary em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.5px; font-style: normal; }
.research-outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.research-outcome-card { padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.62); }
.research-outcome-card .rp-card-top em { margin-left: auto; color: var(--muted-2); font-size: 7px; font-style: normal; }
.research-outcome-card h3 { margin-top: 6px; font-size: 10.5px; }
.research-outcome-card p { margin-top: 3px; color: var(--muted); font-size: 8px; }
.research-outcome-card > span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 7.5px; line-height: 1.55; }
.research-outcome-card .attachment-list { margin-top: 7px; }
.research-empty { padding: 34px 20px; border: 1px dashed #d9cbe0; border-radius: 10px; background: rgba(255,252,255,.45); text-align: center; }
.research-empty.small { padding: 20px; grid-column: 1/-1; }
.research-empty-mark { width: 38px; height: 38px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.research-empty-mark svg { width: 18px; height: 18px; }
.research-empty h3 { font-family: var(--serif); font-size: 14px; }
.research-empty p { max-width: 360px; margin: 4px auto 10px; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.research-app-check { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 2px; padding: 9px 10px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.research-app-check.ok { border-color: #bcd5c2; background: #f4faf5; color: #4f7b60; }
.research-app-check.bad { border-color: #e3b8ad; background: #fff8f5; color: #8f4d40; }
.rac-head { display: flex; align-items: center; gap: 4px; font-size: 8.5px; }
.rac-head svg { width: 12px; height: 12px; }
.rac-head span { margin-left: auto; font-size: 7px; }
.rac-bar { height: 3px; border-radius: 3px; background: #eadfe9; overflow: hidden; }
.rac-bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; opacity: .55; }
.research-app-check p { font-size: 7.5px; line-height: 1.55; }
.research-teacher-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.research-teacher-stats > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.6); }
.research-teacher-stats b { display: block; font-family: var(--serif); font-size: 20px; }
.research-teacher-stats span { color: var(--muted); font-size: 8.5px; }
.research-teacher-stats .warn { border-color: #e3b8ad; background: #fff8f5; }
.research-teacher-stats .warn b { color: var(--red); }
.research-teacher-toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.research-teacher-toolbar .input-icon { flex: 1; min-width: 220px; }
.research-teacher-toolbar .select { width: 115px; font-size: 8.5px; }
.research-teacher-panel { padding: 0 13px; }
.research-table-head, .research-table-row { display: grid; grid-template-columns: 1.15fr 1.85fr .8fr .65fr .9fr .7fr .2fr; gap: 8px; align-items: center; }
.research-table-head { padding: 9px 0 7px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 7px; }
.research-table-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.research-table-row:hover { background: rgba(247,239,248,.5); }
.research-table-row.has-warning { background: #fffaf8; }
.research-table-row.has-warning:hover { background: #fff6f2; }
.research-table-row:last-child { border-bottom: 0; }
.rt-student b, .rt-project b, .rt-year b, .rt-next b { display: block; font-size: 8.5px; font-weight: 600; line-height: 1.45; }
.rt-student span, .rt-project span, .rt-year span, .rt-next span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.8px; line-height: 1.4; }
.rt-project b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-overdue { color: #9a4a3c !important; }
.research-report-frame { width: 100%; height: min(68vh, 720px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
@media (max-width: 1000px) {
  .research-knowledge-grid { grid-template-columns: 1fr 1fr; }
  .research-entry { grid-template-columns: 42px minmax(0,1fr); }
  .research-entry-meta { grid-column: 2; align-items: flex-start; text-align: left; }
  .research-entry-arrow { right: 18px; }
  .research-table-head, .research-table-row { grid-template-columns: 1.1fr 1.6fr .7fr .6fr .8fr .6fr .2fr; }
}
@media (max-width: 760px) {
  .research-entry { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .research-entry-mark { width: 36px; height: 36px; }
  .research-entry-copy h2 { font-size: 17px; }
  .research-entry-copy p { font-size: 7.5px; }
  .research-entry-arrow { display: none; }
  .research-overview, .research-teacher-stats { grid-template-columns: 1fr 1fr; }
  .research-tabs { gap: 14px; overflow-x: auto; }
  .research-tabs button { flex: 0 0 auto; font-size: 8.5px; }
  .research-learning-head { flex-wrap: wrap; }
  .research-learning-head .btn { width: 100%; }
  .research-toolbar .input-icon { width: 100%; }
  .research-knowledge-grid, .research-project-list, .research-outcome-grid { grid-template-columns: 1fr; }
  .research-funding-summary { grid-template-columns: 1fr 1fr; }
  .research-execution-banner { align-items: flex-start; flex-direction: column; }
  .research-execution-banner .btn { width: 100%; }
  .research-teacher-toolbar .input-icon { width: 100%; }
  .research-teacher-toolbar .select { flex: 1; width: auto; }
  .research-teacher-panel { overflow-x: auto; }
  .research-table-head, .research-table-row { min-width: 700px; }
}



/* 通知页 · 个人倒计时与隐藏 */
.personal-countdowns { display: flex; align-items: center; gap: 10px; min-height: 33px; margin: -2px 0 11px; padding: 6px 10px; border: 1px solid #dcd0e3; border-radius: 7px; background: linear-gradient(100deg, #faf5fc, #fdf9fd); }
.pc-label { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: var(--green-mid); font-size: 7.5px; font-weight: 600; }
.pc-label svg { width: 10px; height: 10px; }
.pc-list { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.pc-item { display: inline-flex; align-items: center; gap: 5px; max-width: 280px; padding: 3px 6px; border: 1px solid #e4d7e7; border-radius: 4px; background: #fffbfe; color: var(--ink-soft); font-size: 7.5px; cursor: pointer; }
.pc-item:hover { border-color: #cfb9d5; }
.pc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item em { color: var(--green); font-style: normal; font-weight: 600; white-space: nowrap; }
.pc-item small { padding: 1px 3px; border-radius: 2px; background: #ecdfef; color: #75517e; font-size: 6px; white-space: nowrap; }
.notice-side { gap: 4px !important; }
.notice-hide-btn { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted-2); cursor: pointer; }
.notice-hide-btn:hover { background: var(--paper-3); color: var(--green); }
.notice-hide-btn svg { width: 12px; height: 12px; }
.notice-row.hidden-notice { background: #fbf9fc; opacity: .82; }
.notice-row.hidden-notice .notice-title { text-decoration: line-through; text-decoration-color: #cbbbd1; }
@media (max-width: 760px) {
  .personal-countdowns { align-items: flex-start; flex-wrap: wrap; gap: 4px; padding: 6px 8px; }
  .pc-list { width: 100%; }
  .pc-item { max-width: 100%; }
  .notice-hide-btn { width: 20px; }
}

/* 个人信息 · 成长信箱 */
.mailbox-section-v2 { margin-top: 22px; padding: 17px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,252,255,.62); }
.mailbox-section-v2 .hub-section-head { margin-bottom: 12px; }
.mailbox-count { color: var(--muted-2); font-size: 8px; }
.mailbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.mailbox-card { min-width: 0; padding: 11px 12px 10px; border: 1px solid #e2d5e3; border-radius: 8px; background: linear-gradient(145deg, #fffdf9, #fbf5e9); cursor: pointer; transition: .18s var(--ease); }
.mailbox-card:hover { transform: translateY(-2px); border-color: #cfb9d5; box-shadow: var(--shadow-sm); }
.mailbox-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 6.8px; }
.mailbox-seal { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b98d55; border-radius: 50%; color: #9a6c37; font-family: var(--serif); font-size: 9px; transform: rotate(-7deg); }
.mailbox-card h3 { margin-top: 7px; overflow: hidden; color: var(--ink); font-family: var(--serif); font-size: 11.5px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.mailbox-card p { margin-top: 4px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mailbox-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e5d8c6; color: var(--gold); font-size: 7px; }
.mailbox-foot svg { width: 10px; height: 10px; }
.mailbox-empty { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px dashed #d9c9df; border-radius: 8px; color: var(--muted); }
.mailbox-empty-mark { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.mailbox-empty-mark svg { width: 14px; height: 14px; }
.mailbox-empty strong { display: block; color: var(--ink-soft); font-family: var(--serif); font-size: 10px; }
.mailbox-empty p { margin-top: 2px; font-size: 8px; line-height: 1.55; }
.mailbox-reader { max-height: 66vh; overflow-y: auto; padding-right: 3px; }
.mailbox-letter-sheet { padding: 20px 22px 18px; border: 1px solid #d8c7aa; border-radius: 3px; background: linear-gradient(180deg, #fffdf7, #fbf3e5); box-shadow: 0 8px 22px rgba(68,50,24,.1); }
.mailbox-letter-sheet .letter-head { padding-right: 0; }
.mailbox-letter-sheet .letter-head h2 { font-size: 24px; }
.mailbox-letter-sheet .letter-body { font-size: 10px; line-height: 1.95; }
.mailbox-letter-sheet .letter-body p + p { margin-top: 8px; }
.mailbox-note { margin-top: 15px; padding: 11px 12px; border: 1px solid #ddcfe2; border-radius: 7px; background: #fbf7fc; }
.mailbox-note label { display: block; margin-bottom: 6px; color: var(--green-mid); font-family: var(--serif); font-size: 10px; }
.mailbox-note .textarea { min-height: 82px; font-size: 9px; background: #fffbfe; }
.mailbox-note-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.mailbox-note-foot .field-hint { margin-right: auto; }
@media (max-width: 900px) {
  .mailbox-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mailbox-section-v2 { padding: 14px; }
  .mailbox-grid { grid-template-columns: 1fr; }
  .mailbox-letter-sheet { padding: 15px 14px; }
  .mailbox-letter-sheet .letter-head h2 { font-size: 20px; }
}

/* 教师身份 / 权限 / 数据后台 */
.teacher-role-switch { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px 2px 7px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,252,255,.65); color: var(--muted); font-size: 7px; }
.teacher-role-switch select { max-width: 86px; border: 0; outline: 0; background: transparent; color: var(--ink-soft); font-size: 8px; cursor: pointer; }
.avatar.gold { background: #f3e5c7; color: #8a6624; }
.avatar.college { background: #e9e1f2; color: #61306d; }
.role-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; padding: 11px 13px; border: 1px solid #dfd0e4; border-radius: 9px; background: linear-gradient(100deg, #f8f1fa, #fdfaf8); }
.role-banner-seal { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.role-banner-seal svg { width: 15px; height: 15px; }
.role-banner strong { display: block; font-size: 9.5px; }
.role-banner span { display: block; margin-top: 2px; color: var(--muted); font-size: 7.5px; line-height: 1.5; }
.role-banner-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.role-banner-links a { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 7px; white-space: nowrap; }
.role-banner-links svg { width: 9px; height: 9px; }
.permission-note { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 10px 12px; border: 1px dashed #d8c7df; border-radius: 7px; color: var(--muted); font-size: 8px; }
.permission-note svg { width: 13px; height: 13px; }
.permission-denied { max-width: 420px; margin: 50px auto; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,252,255,.7); text-align: center; }
.permission-denied svg { width: 26px; height: 26px; color: var(--muted); }
.permission-denied h2 { margin-top: 8px; font-family: var(--serif); font-size: 17px; }
.permission-denied p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.role-notice-extra { padding-top: 0; }
.supplement-section { margin-top: 14px; }
.supplement-section .section-title { margin-top: 0; }
.supplement-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.supplement-main { flex: 1; min-width: 0; }
.supplement-head { display: flex; align-items: center; gap: 6px; }
.supplement-head strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.supplement-main > p { margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.supplement-classes { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.supplement-class { padding: 2px 5px; border-radius: 3px; background: var(--paper-3); color: var(--muted); font-size: 6.8px; }
.supplement-class.updated { background: #f3e8d2; color: #8a6624; }
.school-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 10px; }
.school-compose .form-grid { margin-top: -3px; }
.school-notice-list { max-height: 430px; overflow-y: auto; }
.school-notice-row { display: flex; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.school-notice-row > div { min-width: 0; }
.school-notice-row strong { display: block; margin-top: 4px; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.school-notice-row p { margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.school-notice-time { margin-left: auto; flex: 0 0 auto; color: var(--muted-2); font-size: 6.8px; }
.school-pending { border-color: #ddcbaa; background: #fffdf6; }
.access-role-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
.access-role-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.65); text-align: left; cursor: pointer; }
.access-role-card.active { border-color: #b997c3; background: #f8f0fa; box-shadow: 0 0 0 1px #d8c2df; }
.access-role-card > span { color: var(--muted); font-size: 7px; }
.access-role-card strong { font-family: var(--serif); font-size: 10px; }
.access-role-card small { overflow: hidden; color: var(--muted-2); font-size: 6.5px; white-space: nowrap; text-overflow: ellipsis; }
.access-role-card em { color: var(--green); font-size: 6px; font-style: normal; }
.access-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 10px; }
.access-table { margin-top: 4px; }
.access-tr { display: grid; grid-template-columns: 1.6fr repeat(5, minmax(0,1fr)); align-items: center; gap: 4px; min-height: 27px; padding: 0 2px; border-bottom: 1px solid var(--line-soft); font-size: 7.5px; }
.access-th { color: var(--muted-2); font-size: 6.8px; }
.access-th span { text-align: center; }
.access-th span:first-child { text-align: left; }
.access-tr > span:not(:first-child) { text-align: center; }
.access-yes { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e7efe6; color: #4c6b55; }
.access-yes svg { width: 9px; height: 9px; }
.access-no { color: #c7bcca; font-style: normal; }
.access-note { display: flex; gap: 5px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 7px; line-height: 1.6; }
.access-note svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 1px; }
.grant-list { margin-top: 2px; }
.grant-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.grant-row strong { display: block; font-size: 8px; }
.grant-row span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 6.8px; }
.toggle-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 3px; border: 0; border-radius: 20px; background: var(--paper-3); color: var(--muted); font-size: 6.5px; cursor: pointer; }
.toggle-btn i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.toggle-btn.on { background: #e6efe4; color: #4c6b55; }
.toggle-btn.on i { background: #5d8167; }
.academy-grant { margin-bottom: 11px; border-color: #ddcbaa; background: #fffdf7; }
.backend-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.backend-stats > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.62); }
.backend-stats b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.backend-stats span { color: var(--muted); font-size: 8.5px; }
.backend-stats em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.5px; font-style: normal; }
.backend-search-panel { margin-bottom: 11px; }
.backend-search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.backend-search-head h3 { display: flex; align-items: center; gap: 4px; font-family: var(--serif); font-size: 14px; }
.backend-search-head h3 svg { width: 14px; height: 14px; color: var(--gold); }
.backend-search-head p { margin-top: 3px; color: var(--muted); font-size: 8px; }
.backend-scope { display: inline-flex; align-items: center; gap: 3px; color: var(--muted-2); font-size: 7px; white-space: nowrap; }
.backend-scope svg { width: 10px; height: 10px; }
.backend-search { display: flex; gap: 6px; margin-top: 9px; }
.backend-search .input-icon { flex: 1; }
.backend-search .input { font-size: 9px; }
.backend-examples { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.backend-examples button { padding: 2px 6px; border: 1px dashed #ddcfe2; border-radius: 20px; background: transparent; color: var(--muted); font-size: 6.8px; cursor: pointer; }
.backend-examples button:hover { border-color: #b997c3; color: var(--green); }
.backend-match { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 8px 9px; border: 1px solid #d8c6a9; border-radius: 6px; background: #fffaf0; }
.backend-match > svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--gold); }
.backend-match > div { flex: 1; min-width: 0; }
.backend-match strong { display: block; font-size: 8px; }
.backend-match p { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.55; }
.backend-table-panel { padding-bottom: 4px; }
.backend-table-wrap { overflow-x: auto; margin-top: 4px; }
.backend-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 8px; }
.backend-table th { padding: 7px 6px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 7px; font-weight: 500; text-align: left; white-space: nowrap; }
.backend-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.backend-table tbody tr { cursor: pointer; }
.backend-table tbody tr:hover { background: #fbf5fc; }
.backend-table td > b { display: block; font-family: var(--serif); font-size: 13px; font-weight: 500; }
.backend-sub { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6px; }
.backend-person { display: flex; align-items: center; gap: 6px; min-width: 130px; }
.backend-person .avatar { width: 24px; height: 24px; flex: 0 0 24px; font-size: 8px; }
.backend-person strong { display: block; font-size: 8.5px; }
.backend-person span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.5px; }
.backend-tags { display: flex; gap: 3px; flex-wrap: wrap; max-width: 135px; }
.backend-tags .chip { padding: 1px 4px; font-size: 6px; }
.backend-record { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.backend-record .chip { flex: 0 0 auto; }
.backend-record strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.backend-record em { margin-left: auto; flex: 0 0 auto; color: var(--muted-2); font-size: 6.8px; font-style: normal; }
@media (max-width: 1100px) {
  .access-role-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .access-layout { grid-template-columns: 1fr; }
  .school-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .teacher-role-switch { margin-left: auto; }
  .role-banner { align-items: flex-start; flex-wrap: wrap; }
  .role-banner-links { width: 100%; margin-left: 40px; }
  .access-role-grid { grid-template-columns: 1fr 1fr; }
  .access-tr { min-width: 600px; }
  .access-table { overflow-x: auto; }
  .backend-stats { grid-template-columns: 1fr 1fr; }
  .backend-search-head { flex-direction: column; }
  .backend-search { flex-direction: column; }
  .backend-search .btn { width: 100%; }
  .school-notice-row { align-items: flex-start; }
  .ensure-row { grid-template-columns: 1fr; }
}

.notice-supplement { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 2px; padding: 9px 10px; border: 1px solid #d8c6a9; border-radius: 6px; background: #fffaf0; color: #765a2e; font-size: 8px; line-height: 1.65; }
.notice-supplement > svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; }
.notice-supplement strong { display: block; font-size: 8.5px; }
.notice-supplement p { margin-top: 2px; color: #8e744d; }
.notice-supplement span { display: block; margin-top: 2px; color: #a38c68; font-size: 6.8px; }



.chip.plum { background: #f1e5f2; color: #61306d; }

/* 个人信息 · 任职情况 */
.positions-strip { display: flex; align-items: center; gap: 12px; margin: -3px 0 13px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,252,255,.56); }
.positions-strip-head { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: var(--muted); font-size: 8.5px; }
.positions-strip-head > span { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-soft); }
.positions-strip-head svg { width: 11px; height: 11px; color: var(--gold); }
.positions-manage { display: grid; place-items: center; width: 19px; height: 19px; margin-left: 1px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted-2); cursor: pointer; }
.positions-manage:hover { background: var(--green-soft); color: var(--green); }
.positions-manage svg { width: 10px; height: 10px; }
.positions-list { display: flex; align-items: center; gap: 8px 20px; flex: 1; min-width: 0; flex-wrap: wrap; }
.position-item { display: inline-flex; align-items: flex-start; gap: 5px; min-width: 0; }
.position-item > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.position-level { display: inline-block; flex: 0 0 auto; padding: 2px 5px; border-radius: 3px; font-size: 7px; line-height: 1.35; }
.position-level.school { background: #f5e8ca; color: #8a6624; }
.position-level.college { background: #efe4f2; color: #61306d; }
.position-level.class { background: #e7efe6; color: #4c6b55; }
.position-item strong { overflow: hidden; color: var(--ink-soft); font-size: 9px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.position-item em { display: block; color: var(--muted-2); font-size: 7px; font-style: normal; line-height: 1.35; }
.positions-empty { color: var(--muted-2); font-size: 8px; }
.position-manager-list { margin-bottom: 11px; }
.position-manager-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.position-manager-row > div { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.position-manager-row strong { font-size: 8.5px; }
.position-manager-row em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.position-remove { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted-2); cursor: pointer; }
.position-remove:hover { background: var(--red-soft); color: var(--red); }
.position-remove svg { width: 11px; height: 11px; }
.position-form { margin-top: 4px; }
@media (max-width: 760px) {
  .positions-strip { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .positions-list { width: 100%; display: grid; grid-template-columns: 1fr; gap: 4px; }
  .position-item { width: 100%; }
  .position-item strong { white-space: normal; }
}



/* 奖学金申请与评审 */
.scholarship-strip { display: flex; align-items: center; gap: 10px; margin: -2px 0 13px; padding: 11px 13px; border: 1px solid #d9c6a9; border-radius: 9px; background: linear-gradient(100deg, #fffaf0, #fbf5e8); }
.scholarship-strip.closed { border-color: var(--line); background: #faf8fb; }
.scholarship-strip-mark { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: #f2e3c3; color: #987037; }
.scholarship-strip-mark svg { width: 15px; height: 15px; }
.scholarship-strip-copy { flex: 1; min-width: 0; }
.scholarship-strip-copy > span { color: #9a7440; font-size: 6.7px; letter-spacing: .08em; }
.scholarship-strip-copy strong { display: block; margin-top: 1px; overflow: hidden; font-family: var(--serif); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.scholarship-strip-copy p { margin-top: 2px; color: var(--muted); font-size: 7.3px; }
.scholarship-strip-side { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.scholarship-warn { display: inline-flex; align-items: center; gap: 2px; color: #9a4a3c; font-size: 6.5px; }
.scholarship-warn svg { width: 9px; height: 9px; }
.scholarship-strip-link { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: #87612f; font-size: 7px; white-space: nowrap; }
.scholarship-strip-link svg { width: 9px; height: 9px; }
.sch-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; padding: 14px 16px; border: 1px solid #ddcbaa; border-radius: 10px; background: linear-gradient(110deg, #fffaf0, #fbf5e8); }
.sch-hero h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .05em; }
.sch-hero p { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.sch-hero-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.sch-hero-status > span { color: var(--muted-2); font-size: 6.5px; }
.sch-timeline { display: flex; align-items: center; gap: 0; margin: 0 0 13px; padding: 0 5px; }
.sch-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted-2); font-size: 6.7px; }
.sch-step::before { content: ""; position: absolute; top: 4px; right: 50%; width: 100%; height: 1px; background: #e4d9e7; }
.sch-step:first-child::before { display: none; }
.sch-step i { position: relative; z-index: 1; width: 8px; height: 8px; border: 1px solid #d7c7dc; border-radius: 50%; background: #fff; }
.sch-step.done { color: var(--green); }
.sch-step.done::before { background: #c9b2d0; }
.sch-step.done i { border-color: var(--green); background: var(--green); }
.sch-step.active { color: var(--ink); font-weight: 600; }
.sch-step.active i { box-shadow: 0 0 0 3px rgba(97,48,109,.12); }
.sch-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.8fr); gap: 11px; align-items: start; }
.sch-records-panel, .sch-ai-panel, .sch-self-panel { padding-bottom: 13px; }
.sch-record-list { max-height: 490px; overflow-y: auto; margin-top: 3px; }
.sch-record { display: flex; align-items: flex-start; gap: 7px; width: 100%; padding: 9px 4px; border: 0; border-top: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.sch-record:hover { background: #fcf7fd; }
.sch-record.selected { background: #faf4fb; }
.sch-check { width: 15px; height: 15px; flex: 0 0 15px; display: grid; place-items: center; margin-top: 2px; border: 1px solid #d7c7dc; border-radius: 3px; color: #fff; }
.sch-record.selected .sch-check { border-color: var(--green); background: var(--green); }
.sch-check svg { width: 10px; height: 10px; }
.sch-record-main { flex: 1; min-width: 0; }
.sch-record-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sch-record-meta em { margin-left: auto; color: var(--muted-2); font-size: 6.6px; font-style: normal; }
.sch-record-main > strong { display: block; margin-top: 3px; overflow: hidden; font-size: 8.6px; white-space: nowrap; text-overflow: ellipsis; }
.sch-record-main > p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 7.3px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sch-anomaly { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px; border-radius: 3px; font-size: 6px; }
.sch-anomaly svg { width: 8px; height: 8px; }
.sch-anomaly.error { background: #fff0eb; color: #9a4a3c; }
.sch-anomaly.warn { background: #fff6e5; color: #8a6624; }
.sch-ai-panel { margin-bottom: 10px; background: linear-gradient(140deg, #faf3fd, #fffdfb); }
.sch-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 1px 0 4px; }
.sch-ai-head > span { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 8px; font-weight: 600; }
.sch-ai-head svg { width: 13px; height: 13px; color: var(--gold); }
.sch-ai-head > b { color: var(--green); font-family: var(--serif); font-size: 24px; line-height: 1; }
.sch-ai-panel > p { color: var(--muted); font-size: 7px; line-height: 1.55; }
.sch-ai-stats { display: flex; gap: 12px; margin-top: 7px; padding: 6px 0; border-top: 1px dashed #ddcfe2; border-bottom: 1px dashed #ddcfe2; color: var(--muted); font-size: 7px; }
.sch-ai-stats b { color: var(--ink); font-family: var(--serif); font-size: 12px; }
.sch-anomaly-list { margin-top: 5px; }
.sch-anomaly-line { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; font-size: 7px; line-height: 1.55; }
.sch-anomaly-line svg { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 1px; }
.sch-anomaly-line.error { color: #9a4a3c; }
.sch-anomaly-line.warn { color: #8a6624; }
.sch-ok-line { display: flex; align-items: center; gap: 3px; margin-top: 5px; color: #4f7b60; font-size: 7px; }
.sch-ok-line svg { width: 10px; height: 10px; }
.sch-self-panel { padding-bottom: 11px; }
.sch-score-input { display: flex; align-items: baseline; gap: 3px; padding: 3px 0 6px; }
.sch-score-input input { width: 82px; padding: 3px 0; border: 0; border-bottom: 1px solid #cdb7d5; outline: 0; background: transparent; color: var(--green); font-family: var(--serif); font-size: 28px; }
.sch-score-input input:focus { border-color: var(--green); }
.sch-score-input span { color: var(--muted-2); font-size: 9px; }
.sch-note-label { display: block; margin: 4px 0 4px; color: var(--muted); font-size: 7px; }
.sch-self-panel .textarea { min-height: 66px; font-size: 8px; }
.sch-form-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; }
.sch-form-actions .btn { font-size: 7.5px; }
.sch-readonly-tip, .sch-return { display: flex; align-items: flex-start; gap: 5px; margin-bottom: 10px; padding: 8px 10px; border-radius: 6px; font-size: 7.5px; line-height: 1.55; }
.sch-readonly-tip { background: #f6f1f8; color: var(--muted); }
.sch-readonly-tip svg, .sch-return svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 1px; }
.sch-return { border: 1px solid #e3b8ad; background: #fff8f5; color: #8f4d40; }
.sch-return strong { display: block; font-size: 8px; }
.sch-return p { margin-top: 2px; }
.sch-result { margin-top: 11px; padding-bottom: 12px; }
.sch-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 4px; }
.sch-result-grid > div { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.sch-result-grid span { display: block; color: var(--muted); font-size: 6.8px; }
.sch-result-grid b { display: block; margin-top: 2px; color: var(--green); font-family: var(--serif); font-size: 15px; }
.sch-feedback { margin-top: 8px; padding: 7px 9px; border-left: 2px solid #d8c6a9; background: #fffdf7; }
.sch-feedback strong { display: block; color: #8a6624; font-size: 7.5px; }
.sch-feedback p { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.sch-result-anomalies { margin-top: 7px; }
.sch-empty { max-width: 380px; margin: 45px auto; padding: 26px; border: 1px dashed #d9cbe0; border-radius: 10px; text-align: center; }
.sch-empty > svg { width: 24px; height: 24px; color: var(--gold); }
.sch-empty h3 { margin-top: 6px; font-family: var(--serif); font-size: 14px; }
.sch-empty p { margin: 4px 0 10px; color: var(--muted); font-size: 8px; }
.scholarship-admin .sch-hero { margin-bottom: 12px; }
.sch-cycle { margin-bottom: 11px; border-color: #ddcbaa; background: #fffdf7; }
.sch-auth { margin-bottom: 11px; }
.sch-auth-list { margin-top: 3px; }
.sch-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.sch-auth-row strong { display: block; font-size: 8px; }
.sch-auth-row span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 6.8px; }
.sch-compare-panel { margin-bottom: 11px; }
.sch-compare-line { display: flex; align-items: flex-start; gap: 4px; padding: 4px 0; color: #8a6624; font-size: 7.5px; line-height: 1.55; }
.sch-compare-line svg { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 1px; }
.sch-admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 11px; }
.sch-admin-stats > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.6); }
.sch-admin-stats b { display: block; font-family: var(--serif); font-size: 18px; }
.sch-admin-stats span { color: var(--muted); font-size: 7px; }
.sch-admin-list { padding-bottom: 3px; }
.sch-admin-row { display: grid; grid-template-columns: minmax(150px,1.5fr) .8fr .55fr .9fr .75fr .2fr; align-items: center; gap: 8px; width: 100%; padding: 9px 2px; border: 0; border-top: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.sch-admin-row:hover { background: #fcf7fd; }
.sch-admin-person { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sch-admin-person .avatar { width: 25px; height: 25px; flex: 0 0 25px; font-size: 8px; }
.sch-admin-person strong { display: block; font-size: 8.5px; }
.sch-admin-person span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.3px; }
.sch-admin-label { display: block; color: var(--muted-2); font-size: 6.3px; }
.sch-admin-row b { display: block; margin-top: 1px; font-family: var(--serif); font-size: 11px; font-weight: 500; }
.sch-admin-anomaly, .sch-admin-ok { display: inline-flex; align-items: center; gap: 2px; font-size: 6.5px; }
.sch-admin-anomaly { color: #9a4a3c; }
.sch-admin-ok { color: #4f7b60; }
.sch-admin-anomaly svg, .sch-admin-ok svg { width: 9px; height: 9px; }
.sch-review-record { padding: 7px 0; border-top: 1px solid var(--line-soft); }
.sch-review-record-head { display: flex; align-items: baseline; gap: 5px; }
.sch-review-record-head strong { overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.sch-review-record-head em { margin-left: auto; color: var(--muted-2); font-size: 6.5px; font-style: normal; }
.sch-ai-review { padding: 9px 10px; border: 1px solid #dccbe1; border-radius: 7px; background: #fbf6fc; }
.sch-ai-review > b { color: var(--green); font-family: var(--serif); font-size: 24px; }
.sch-ai-review > span { margin-left: 5px; color: var(--muted); font-size: 7px; }
.sch-confirm { margin-top: 8px; }
@media (max-width: 900px) {
  .sch-layout { grid-template-columns: 1fr; }
  .sch-admin-row { grid-template-columns: 1.4fr .7fr .5fr .8fr; }
  .sch-admin-row > :nth-child(5), .sch-admin-row > :nth-child(6) { display: none; }
}
@media (max-width: 760px) {
  .scholarship-strip { flex-wrap: wrap; gap: 5px; }
  .scholarship-strip-copy { width: calc(100% - 40px); }
  .scholarship-strip-side { margin-left: 39px; }
  .scholarship-strip-link { margin-left: auto; }
  .sch-hero { flex-direction: column; }
  .sch-hero-status { align-items: flex-start; }
  .sch-result-grid, .sch-admin-stats { grid-template-columns: 1fr 1fr; }
  .sch-admin-row { min-width: 600px; }
  .sch-admin-list { overflow-x: auto; }
  .sch-form-actions { flex-direction: column; }
  .sch-form-actions .btn { width: 100%; }
}

/* 个人信息 · 可选照片与院徽 */
.profile-avatar-large { position: relative; padding: 0; border: 0; overflow: visible; background: #f7efe0; cursor: pointer; }
.profile-avatar-large > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.profile-avatar-emblem { width: 100%; height: 100%; display: grid; place-items: center; }
.profile-avatar-emblem .college-emblem { width: 100%; height: 100%; border-radius: 50%; display: block; }
.profile-avatar-camera { position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #fbf6f8; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(54,27,63,.18); }
.profile-avatar-camera svg { width: 9px; height: 9px; }
.profile-avatar-large:hover .profile-avatar-camera { background: var(--green-mid); }
.avatar.photo { background: transparent; overflow: hidden; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-editor { display: flex; align-items: center; gap: 18px; padding: 6px 2px 4px; }
.avatar-editor-preview { width: 118px; height: 118px; flex: 0 0 118px; display: grid; place-items: center; border-radius: 50%; background: #f7efe0; box-shadow: 0 8px 24px rgba(72,43,78,.13); overflow: hidden; }
.avatar-editor-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-editor-emblem { width: 100%; height: 100%; }
.avatar-editor-emblem .college-emblem { width: 100%; height: 100%; display: block; }
.avatar-editor-copy { flex: 1; min-width: 0; }
.avatar-editor-copy > strong { display: block; font-family: var(--serif); font-size: 13px; }
.avatar-editor-copy > p { margin: 3px 0 10px; color: var(--muted); font-size: 8px; line-height: 1.65; }
.avatar-editor-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.avatar-editor-copy .field-hint { display: block; }
@media (max-width: 560px) {
  .avatar-editor { flex-direction: column; align-items: flex-start; }
  .avatar-editor-preview { width: 92px; height: 92px; flex-basis: 92px; }
}

/* 任职情况 · 聘书识别存档 */
.position-cert { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; padding: 1px 4px; border-radius: 2px; background: #f5ead3; color: #8a6624; font-size: 5.8px; white-space: nowrap; }
.position-cert svg { width: 8px; height: 8px; }
.position-manager-item { border-bottom: 1px solid var(--line-soft); }
.position-manager-item:last-child { border-bottom: 0; }
.position-manager-row { border-bottom: 0 !important; }
.position-manager-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto !important; }
.position-cert-btn { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border: 1px solid #ddcbaa; border-radius: 4px; background: #fffaf0; color: #87612f; font-size: 6.5px; cursor: pointer; }
.position-cert-btn:hover { background: #fbf1dd; }
.position-cert-btn svg { width: 9px; height: 9px; }
.position-cert-saved { display: flex; align-items: center; gap: 3px; padding: 3px 0 5px; color: #4f7b60; font-size: 6.8px; }
.position-cert-saved svg { width: 9px; height: 9px; }
.position-cert-files { padding-bottom: 7px; }
.position-cert-files .attachment-list { margin-top: 0; }
.position-cert-modal { padding: 3px 0; }
.position-cert-existing { margin-bottom: 9px; }
.position-cert-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 105px; padding: 12px; border: 1px dashed #d8c6a9; border-radius: 8px; background: #fffdf7; text-align: center; cursor: pointer; }
.position-cert-upload:hover { border-color: #c2a779; background: #fffaf0; }
.position-cert-upload svg { width: 18px; height: 18px; color: var(--gold); }
.position-cert-upload strong { color: var(--ink-soft); font-family: var(--serif); font-size: 10px; }
.position-cert-upload span { color: var(--muted); font-size: 7px; line-height: 1.55; }

/* 通用扫描工具 */
.position-cert-actions { display: flex; align-items: center; gap: 7px; }
.position-cert-actions .position-cert-upload { flex: 1; }
.position-cert-actions > .btn { flex: 0 0 auto; }
.scanner-wrap { padding: 2px 0 0; }
.scanner-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.scanner-toolbar .btn { font-size: 7.5px; }
.scanner-auto { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 7.5px; }
.scanner-auto input { accent-color: var(--green); }
.scanner-stage { min-height: 260px; display: grid; place-items: center; padding: 18px; border-radius: 8px; background: #f1edf2; background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.25) 75%), linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.25) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.scanner-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); text-align: center; }
.scanner-empty-orb { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 50%; background: #fff; color: var(--gold); box-shadow: 0 4px 14px rgba(71,43,76,.1); }
.scanner-empty-orb svg { width: 18px; height: 18px; }
.scanner-empty strong { color: var(--ink-soft); font-family: var(--serif); font-size: 11px; }
.scanner-empty > span { font-size: 7.5px; }
.scanner-empty .btn { margin-top: 5px; }
.scanner-paper { position: relative; max-width: 100%; padding: 0; background: #fff; box-shadow: 0 12px 30px rgba(50,34,55,.18); }
.scanner-paper canvas { display: block; max-width: 100%; max-height: 430px; width: auto; height: auto; }
.scanner-corner { position: absolute; width: 12px; height: 12px; border-color: rgba(168,128,63,.85); border-style: solid; pointer-events: none; }
.scanner-corner.tl { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.scanner-corner.tr { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.scanner-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.scanner-corner.br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }
.scanner-caption { margin-top: 6px; color: var(--muted-2); font-size: 7px; }
.scanner-hint { display: flex; align-items: center; gap: 4px; margin: 7px 0 2px; color: var(--muted); font-size: 7.5px; }
.scanner-hint svg { width: 11px; height: 11px; color: var(--gold); }
.scanner-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 7px; }
.scanner-actions .field-hint { margin-right: auto; }
@media (max-width: 760px) {
  .scanner-stage { min-height: 210px; padding: 10px; }
  .scanner-toolbar .btn { flex: 1; }
  .scanner-auto { width: 100%; margin-left: 0; }
  .scanner-actions { flex-wrap: wrap; }
  .scanner-actions .field-hint { width: 100%; }
  .position-cert-actions { flex-direction: column; align-items: stretch; }
}

/* 学生社区 · 学术公告卡 */
.academic-bulletin { position: relative; display: grid; grid-template-columns: 78px minmax(0,1fr); margin: 0 0 14px; overflow: hidden; border: 1px solid #d9c5a8; border-radius: 12px; background: linear-gradient(102deg, #fbf6ec, #fffdf9 68%, #faf4f9); box-shadow: 0 8px 22px rgba(91,59,40,.07); cursor: pointer; transition: .2s var(--ease); }
.academic-bulletin:hover { transform: translateY(-2px); border-color: #c9ac7d; box-shadow: 0 12px 28px rgba(91,59,40,.12); }
.ab-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.1), transparent 55%), linear-gradient(160deg, #4f265b, #2d1535); color: #efd59d; }
.ab-seal::after { content: ""; position: absolute; left: 78px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, #c9a66a, transparent); }
.ab-seal span { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; text-indent: .12em; }
.ab-seal em { color: rgba(239,213,157,.56); font-family: Georgia,serif; font-size: 4.8px; letter-spacing: .16em; font-style: normal; }
.ab-main { position: relative; min-width: 0; padding: 11px 15px 10px; }
.ab-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #a8803f; font-size: 6.2px; letter-spacing: .18em; }
.ab-pin { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border: 1px solid #e2d0ae; border-radius: 20px; background: #fffaf0; color: #8a6624; font-size: 6px; letter-spacing: .04em; }
.ab-pin svg { width: 8px; height: 8px; }
.academic-bulletin h3 { margin-top: 4px; overflow: hidden; color: var(--ink); font-family: var(--serif); font-size: 13.5px; font-weight: 600; letter-spacing: .025em; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.academic-bulletin p { margin-top: 2px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 8.2px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ab-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted-2); font-size: 6.8px; }
.ab-cta { display: inline-flex; align-items: center; gap: 3px; color: #76517e; white-space: nowrap; }
.ab-cta svg { width: 9px; height: 9px; }
.ab-cta svg:first-child { width: 10px; height: 10px; }
@media (max-width: 760px) {
  .academic-bulletin { grid-template-columns: 56px minmax(0,1fr); border-radius: 9px; }
  .ab-seal::after { left: 56px; }
  .ab-seal span { font-size: 14px; }
  .ab-seal em { font-size: 4px; }
  .ab-main { padding: 9px 11px 8px; }
  .academic-bulletin h3 { font-size: 12px; }
  .academic-bulletin p { -webkit-line-clamp: 2; }
  .ab-foot > span:first-child { max-width: 55%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ab-kicker { font-size: 5.5px; }
}

/* 小国医成长计划 */
.junior-entry { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: -4px 0 16px; padding: 13px 16px; border: 1px solid #ddcbaa; border-radius: 12px; background: linear-gradient(102deg, #fffaf0, #fdf9fc 72%, #f7eff8); box-shadow: 0 7px 18px rgba(91,65,38,.06); }
.junior-entry-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; align-self: stretch; min-height: 52px; border-right: 1px solid #e4d3b7; }
.junior-entry-seal span { color: #7f5121; font-family: var(--serif); font-size: 13px; letter-spacing: .06em; }
.junior-entry-seal em { color: #b09161; font-family: Georgia,serif; font-size: 4.5px; font-style: normal; letter-spacing: .1em; }
.junior-entry-copy { min-width: 0; }
.junior-entry-copy > span { color: #a8803f; font-size: 6.2px; letter-spacing: .18em; }
.junior-entry-copy h2 { margin-top: 2px; font-family: var(--serif); font-size: 17px; letter-spacing: .05em; }
.junior-entry-copy p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 7.8px; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }
.junior-entry-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.junior-entry-meta b { color: #805b28; font-family: var(--serif); font-size: 11px; font-weight: 500; }
.junior-entry-meta span { color: var(--muted-2); font-size: 6.5px; }
.junior-entry-link { position: absolute; display: none; }
.junior-tabs { display: flex; align-items: center; gap: 22px; margin: 0 0 13px; border-bottom: 1px solid var(--line); }
.junior-tabs button { position: relative; padding: 7px 0 9px; border: 0; background: transparent; color: var(--muted); font-size: 9.5px; }
.junior-tabs button.active { color: var(--ink); font-weight: 600; }
.junior-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--green); }
.jr-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.jr-section-head h2 { font-family: var(--serif); font-size: 17px; }
.jr-section-head p { margin-top: 2px; color: var(--muted); font-size: 8px; }
.jr-section-head .chip { flex: 0 0 auto; }
.jr-stage-hero { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; padding: 14px 16px; border: 1px solid #d9c6a9; border-radius: 11px; background: linear-gradient(105deg, #fffaf0, #fdf9fc); }
.jr-stage-seal { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; height: 58px; flex: 0 0 58px; justify-content: center; border: 1px solid #c8a66e; border-radius: 50%; color: #76511f; }
.jr-stage-seal span { font-family: var(--serif); font-size: 17px; }
.jr-stage-seal em { font: 4px Georgia,serif; letter-spacing: .12em; color: #a98755; }
.jr-stage-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.jr-stage-hero > div:nth-child(2) > span { color: #a8803f; font-size: 6.5px; letter-spacing: .12em; }
.jr-stage-hero h2 { margin-top: 2px; font-family: var(--serif); font-size: 17px; }
.jr-stage-hero p { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.jr-stage-meta { flex: 0 0 auto; text-align: right; }
.jr-stage-meta b { display: block; color: var(--green); font-family: var(--serif); font-size: 24px; line-height: 1; }
.jr-stage-meta span { color: var(--muted-2); font-size: 6.5px; }
.jr-stage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.jr-stage-card { padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,252,255,.6); }
.jr-stage-card.current { border-color: #c4a66f; background: #fffdf7; box-shadow: 0 7px 18px rgba(118,82,35,.07); }
.jr-stage-card.passed { background: #fbf9fb; }
.jr-stage-card-top { display: flex; align-items: center; justify-content: space-between; }
.jr-stage-year { color: var(--green); font-family: var(--serif); font-size: 13px; }
.jr-stage-card.passed .jr-stage-year { color: var(--muted-2); }
.jr-stage-status { color: var(--muted-2); font-size: 6px; }
.jr-stage-card.current .jr-stage-status { color: #9a6c2f; }
.jr-stage-card h3 { margin-top: 3px; font-size: 10px; }
.jr-stage-card > p { margin-top: 2px; color: var(--muted); font-size: 7.2px; line-height: 1.55; }
.jr-req-list { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.jr-req { display: flex; align-items: flex-start; gap: 4px; color: var(--ink-soft); font-size: 7.2px; line-height: 1.5; }
.jr-req i { width: 11px; height: 11px; flex: 0 0 11px; display: grid; place-items: center; margin-top: 1px; border: 1px solid #d8c8dd; border-radius: 50%; color: #fff; }
.jr-req i:empty { background: transparent; }
.jr-stage-card.passed .jr-req i { background: var(--green); border-color: var(--green); }
.jr-req svg { width: 7px; height: 7px; }
.jr-stage-foot { display: flex; justify-content: space-between; gap: 7px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 6.2px; }
.jr-stage-foot span { display: inline-flex; align-items: center; gap: 3px; }
.jr-stage-foot svg { width: 9px; height: 9px; }
.jr-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 10px; }
.jr-stats > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.6); }
.jr-stats b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.jr-stats span { color: var(--muted); font-size: 7px; }
.jr-toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.jr-toolbar .input-icon { flex: 1; min-width: 180px; }
.jr-toolbar .input { font-size: 8px; }
.jr-toolbar .select { width: 120px; font-size: 8px; }
.jr-record-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jr-record { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.64); cursor: pointer; transition: .18s var(--ease); }
.jr-record:hover { transform: translateY(-2px); border-color: #d4c0db; box-shadow: var(--shadow-sm); }
.jr-record-top { display: flex; align-items: center; gap: 4px; }
.jr-date { color: var(--muted-2); font-size: 6.5px; }
.jr-disease { color: #7d4a86; font-size: 7.5px; font-weight: 600; }
.jr-stars { color: #c19342; font-size: 9px; letter-spacing: .05em; }
.jr-author { margin-left: auto; color: var(--muted-2); font-size: 6.5px; }
.jr-record h3 { margin-top: 4px; font-size: 10px; }
.jr-record p { margin-top: 2px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 7.4px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jr-record-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 6.5px; }
.jr-record-foot > span { display: inline-flex; align-items: center; gap: 3px; }
.jr-record-foot i { padding: 1px 4px; border-radius: 2px; background: var(--paper-3); color: var(--muted); font-style: normal; }
.jr-record-foot svg { width: 9px; height: 9px; }
.jr-disease-groups { display: flex; flex-direction: column; gap: 9px; }
.jr-disease-group { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.5); }
.jr-disease-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.jr-disease-head > div:first-child span { color: var(--muted-2); font-size: 6px; }
.jr-disease-head h3 { font-family: var(--serif); font-size: 12px; }
.jr-disease-head > div:last-child { display: flex; align-items: baseline; gap: 2px; }
.jr-disease-head b { color: var(--green); font-family: var(--serif); font-size: 18px; }
.jr-disease-head small { color: var(--muted); font-size: 6px; }
.jr-disease-head em { margin-left: 7px; color: #c19342; font-size: 8px; font-style: normal; }
.jr-group-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.jr-group-items .jr-record { padding: 8px 9px; }
.jr-public { margin-top: 13px; padding: 12px 13px; border: 1px solid #ddcfe2; border-radius: 9px; background: rgba(251,247,252,.65); }
.jr-public-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.jr-public-head span:first-child { color: #a8803f; font-size: 5.8px; letter-spacing: .16em; }
.jr-public-head h3 { font-family: var(--serif); font-size: 12px; }
.jr-public-head p { margin-top: 1px; color: var(--muted); font-size: 6.8px; }
.jr-public-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.jr-public-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border: 1px solid #e3d8e6; border-radius: 6px; background: #fffbfe; text-align: left; cursor: pointer; }
.jr-public-item > span { color: var(--muted-2); font-size: 6px; }
.jr-public-item strong { overflow: hidden; font-size: 7.5px; white-space: nowrap; text-overflow: ellipsis; }
.jr-public-item em { color: #c19342; font-size: 7px; font-style: normal; }
.jr-public-item small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 6.5px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jr-empty { grid-column: 1/-1; padding: 24px; border: 1px dashed #d9cbe0; border-radius: 8px; color: var(--muted); text-align: center; }
.jr-empty.small { padding: 14px; }
.jr-empty svg { width: 18px; height: 18px; color: var(--gold); }
.jr-voice-box { margin-bottom: 9px; padding: 9px 10px; border: 1px solid #d9c6a9; border-radius: 7px; background: #fffaf0; }
.jr-voice-head { display: flex; align-items: center; justify-content: space-between; }
.jr-voice-head > span { display: inline-flex; align-items: center; gap: 3px; color: #87612f; font-size: 8px; }
.jr-voice-head svg { width: 11px; height: 11px; }
.jr-voice-box .textarea { min-height: 55px; margin-top: 5px; font-size: 8px; background: #fffdf9; }
.jr-ai-organize { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; padding: 2px 5px; border: 0; background: transparent; color: var(--green); font-size: 7px; cursor: pointer; }
.jr-ai-organize svg { width: 10px; height: 10px; color: var(--gold); }
.jr-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.jr-chips button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 7px; }
.jr-chips button.active { border-color: #c8a66e; background: #fffaf0; color: #7f5724; }
.jr-method-grid, .jr-med-grid, .jr-knowledge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.jr-method-card, .jr-med-card, .jr-knowledge-card { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.64); cursor: pointer; transition: .18s var(--ease); }
.jr-method-card:hover, .jr-med-card:hover, .jr-knowledge-card:hover { transform: translateY(-2px); border-color: #d4c0db; box-shadow: var(--shadow-sm); }
.jr-method-top { display: flex; align-items: center; gap: 4px; }
.jr-method-disease { color: #7d4a86; font-size: 7px; }
.jr-recommend { display: inline-flex; align-items: center; gap: 2px; margin-left: 2px; padding: 1px 4px; border-radius: 2px; background: #f7ecd1; color: #87612f; font-size: 5.8px; }
.jr-recommend svg { width: 8px; height: 8px; }
.jr-method-rating { margin-left: auto; color: #c19342; font-size: 7px; white-space: nowrap; }
.jr-method-rating em { color: var(--muted-2); font-size: 6px; font-style: normal; }
.jr-method-card h3, .jr-med-card h3, .jr-knowledge-card h3 { margin-top: 5px; font-size: 10px; }
.jr-method-card p, .jr-med-card > p, .jr-knowledge-card p { margin-top: 3px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 7.3px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jr-method-foot, .jr-med-foot { display: flex; justify-content: space-between; gap: 5px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 6.2px; }
.jr-method-foot span, .jr-med-foot span { display: inline-flex; align-items: center; gap: 2px; }
.jr-method-foot svg, .jr-med-foot svg { width: 8px; height: 8px; }
.jr-med-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.jr-med-toolbar .input-icon { flex: 1; }
.jr-med-toolbar .input { font-size: 8px; }
.jr-med-toolbar .hint { flex: 0 0 auto; color: var(--muted-2); font-size: 6.5px; }
.jr-med-cat { width: 120px; font-size: 8px; }
.jr-med-top { display: flex; align-items: center; gap: 4px; }
.jr-shared-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--muted-2); font-size: 6px; }
.jr-shared-tag svg { width: 8px; height: 8px; }
.jr-med-insight { margin-top: 5px; display: -webkit-box; overflow: hidden; color: #87612f; font-size: 6.8px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jr-med-insight svg { width: 8px; height: 8px; }
.jr-detail-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 7px; }
.jr-detail-section { padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.jr-detail-section h3 { margin-bottom: 3px; color: var(--green); font-family: var(--serif); font-size: 10px; }
.jr-detail-section p { color: var(--ink-soft); font-size: 8.5px; line-height: 1.8; }
.jr-case { padding: 4px 6px; border-radius: 4px; background: #fbf7fc; }
.jr-point-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.jr-point-list button { display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border: 1px dashed #d0b9d8; border-radius: 20px; background: #fcf7fd; color: var(--green); font-size: 6.5px; cursor: pointer; }
.jr-point-list svg { width: 9px; height: 9px; color: var(--gold); }
.jr-method-summary { padding: 8px 9px; border-left: 2px solid #c8a66e; background: #fffaf0; color: var(--ink-soft); font-size: 8px; line-height: 1.65; }
.jr-comment-list { max-height: 200px; overflow-y: auto; }
.jr-comment { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.jr-comment > div { display: flex; align-items: center; gap: 5px; }
.jr-comment strong { font-size: 7.5px; }
.jr-comment span { color: #c19342; font-size: 7px; }
.jr-comment p { margin-top: 2px; color: var(--muted); font-size: 7.5px; line-height: 1.55; }
.jr-comment-form { display: flex; gap: 4px; margin-top: 7px; }
.jr-comment-form .select { width: 80px; font-size: 7px; }
.jr-comment-form .input { flex: 1; font-size: 7px; }
.jr-knowledge-card > span { color: #a8803f; font-size: 6px; letter-spacing: .12em; }
.jr-knowledge-card em { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; color: var(--green); font-size: 6.5px; font-style: normal; }
.jr-knowledge-card em svg { width: 8px; height: 8px; }
.jr-knowledge-card.saved { background: #fffdf7; border-color: #ddcbaa; }
.jr-saved { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.jr-saved h3 { font-family: var(--serif); font-size: 12px; }
.jr-saved-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.jr-saved-list button { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border: 1px solid #ddcfe2; border-radius: 20px; background: #fff; color: var(--green); font-size: 7px; cursor: pointer; }
.jr-saved-list svg { width: 9px; height: 9px; }
.kb-wizard { padding: 4px 2px; }
.kb-kicker { color: #a8803f; font-size: 6.5px; letter-spacing: .15em; }
.kb-question { display: flex; align-items: flex-start; gap: 7px; margin: 9px 0 7px; }
.kb-question svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold); margin-top: 1px; }
.kb-question h3 { font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.kb-answer { padding: 9px 11px; border-left: 2px solid #c8a66e; background: #fffaf0; color: var(--ink-soft); font-size: 9px; line-height: 1.78; }
.kb-dots { display: flex; gap: 3px; margin: 9px 0; }
.kb-dots i { width: 16px; height: 3px; border-radius: 3px; background: #e4d8e8; }
.kb-dots i.on { background: var(--green); }
.kb-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 10px; }
.kb-map { position: relative; min-height: 240px; margin: 12px 0 4px; padding: 20px 10px; border-radius: 10px; background: #fbf7fc; overflow: hidden; }
.kb-map-center { position: relative; z-index: 2; width: 132px; margin: 0 auto; padding: 10px 8px; border-radius: 8px; background: var(--green); color: #fff; font-family: var(--serif); font-size: 11px; text-align: center; box-shadow: 0 5px 16px rgba(97,48,109,.2); }
.kb-map-branches { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.kb-map-node { position: relative; width: calc(33% - 6px); padding: 7px 6px; border: 1px solid #ddcfe2; border-radius: 6px; background: #fff; color: var(--ink-soft); font-size: 7px; text-align: center; }
.kb-map-node::before { content: ""; position: absolute; left: 50%; top: -29px; width: 1px; height: 28px; background: #d8c6de; }
.kb-foot { color: var(--muted-2); font-size: 6.8px; line-height: 1.55; }
@media (max-width: 900px) {
  .jr-method-grid, .jr-med-grid, .jr-knowledge-grid { grid-template-columns: 1fr 1fr; }
  .jr-public-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .junior-entry { grid-template-columns: 50px minmax(0,1fr); padding: 11px; }
  .junior-entry-meta { grid-column: 2; align-items: flex-start; text-align: left; }
  .junior-entry-copy p { white-space: normal; }
  .junior-tabs { gap: 14px; overflow-x: auto; }
  .junior-tabs button { flex: 0 0 auto; font-size: 8.5px; }
  .jr-stage-hero { align-items: flex-start; flex-wrap: wrap; }
  .jr-stage-meta { margin-left: 71px; text-align: left; }
  .jr-stage-list, .jr-record-list, .jr-group-items, .jr-method-grid, .jr-med-grid, .jr-knowledge-grid, .jr-public-list { grid-template-columns: 1fr; }
  .jr-stats { grid-template-columns: 1fr 1fr; }
  .jr-toolbar { align-items: stretch; flex-direction: column; }
  .jr-toolbar .input-icon, .jr-toolbar .select { width: 100%; }
  .jr-toolbar .btn { width: 100%; }
  .jr-comment-form { flex-wrap: wrap; }
  .jr-comment-form .input { width: 100%; flex-basis: 100%; }
  .jr-med-toolbar { flex-wrap: wrap; }
  .jr-med-toolbar .input-icon { width: 100%; flex-basis: 100%; }
  .jr-med-cat { width: 100%; }
  .kb-map-node { width: calc(50% - 5px); }
}

/* 一站式 · 101计划与未来研思入口 */
.academic-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: -4px 0 16px; }
.academic-entry { display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 10px 12px; border: 1px solid #ddcfe2; border-radius: 9px; background: rgba(255,252,255,.62); transition: .18s var(--ease); }
.academic-entry:hover { transform: translateY(-2px); border-color: #c9b2d2; box-shadow: var(--shadow-sm); }
.academic-entry-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 9px; background: #f2e7f4; color: var(--green); font-family: var(--serif); font-size: 10px; }
.academic-entry.tcm101 .academic-entry-mark { background: #f4ead3; color: #835b25; font-family: Georgia,serif; font-size: 13px; }
.academic-entry-mark svg { width: 17px; height: 17px; }
.academic-entry > div { min-width: 0; flex: 1; }
.academic-entry > div > span { color: #a8803f; font-size: 5.5px; letter-spacing: .14em; }
.academic-entry strong { display: block; margin-top: 1px; font-family: var(--serif); font-size: 11px; }
.academic-entry p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 6.8px; white-space: nowrap; text-overflow: ellipsis; }
.academic-entry > em { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; color: var(--muted-2); font-size: 5.8px; font-style: normal; }
.academic-entry > em svg { width: 8px; height: 8px; }

/* 中医学101计划 */
.t101-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 15px 17px; border: 1px solid #d9c5a8; border-radius: 11px; background: linear-gradient(105deg, #fffaf0, #fdf9fc 72%); }
.t101-hero-mark { width: 55px; height: 55px; flex: 0 0 55px; display: grid; place-items: center; border: 1px solid #c8a66e; border-radius: 10px; color: #805b28; font-family: Georgia,serif; font-size: 22px; letter-spacing: -.06em; }
.t101-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.t101-hero > div:nth-child(2) > span { color: #a8803f; font-size: 6px; letter-spacing: .15em; }
.t101-hero h2 { margin-top: 2px; font-family: var(--serif); font-size: 18px; }
.t101-hero p { margin-top: 2px; color: var(--muted); font-size: 7.8px; line-height: 1.6; }
.t101-hero-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 5px; color: var(--muted-2); font-size: 6.4px; }
.t101-hero-meta span { display: inline-flex; align-items: center; gap: 2px; }
.t101-hero-meta svg { width: 9px; height: 9px; }
.t101-hero-year { flex: 0 0 auto; text-align: right; }
.t101-hero-year b { display: block; color: var(--green); font-family: var(--serif); font-size: 23px; }
.t101-hero-year span { color: var(--muted-2); font-size: 6px; }
.t101-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 10px; }
.t101-stats > div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.6); }
.t101-stats b { display: block; font-family: var(--serif); font-size: 17px; }
.t101-stats span { color: var(--muted); font-size: 6.5px; }
.t101-tabs { display: flex; gap: 17px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.t101-tabs button { padding: 5px 0 7px; border: 0; background: transparent; color: var(--muted); font-size: 8.5px; }
.t101-tabs button.active { color: var(--ink); border-bottom: 2px solid var(--green); font-weight: 600; }
.t101-session-list { display: flex; flex-direction: column; gap: 7px; }
.t101-session { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.6); cursor: pointer; }
.t101-session:hover { border-color: #cfb9d7; box-shadow: var(--shadow-sm); }
.t101-session-year { width: 48px; flex: 0 0 48px; padding-right: 9px; border-right: 1px solid #e5d9e8; text-align: center; }
.t101-session-year b { display: block; color: var(--green); font-family: var(--serif); font-size: 16px; }
.t101-session-year span { color: var(--muted-2); font-family: Georgia,serif; font-size: 7px; }
.t101-session-main { flex: 1; min-width: 0; }
.t101-session-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t101-theme { color: #a8803f; font-size: 6.3px; letter-spacing: .06em; }
.t101-session-top > span:last-child { color: var(--muted-2); font-size: 6.2px; }
.t101-session h3 { margin-top: 2px; font-family: var(--serif); font-size: 11px; }
.t101-session p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 7.2px; white-space: nowrap; text-overflow: ellipsis; }
.t101-session-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; color: var(--muted-2); font-size: 6.2px; }
.t101-session-foot span { display: inline-flex; align-items: center; gap: 2px; }
.t101-session-foot svg { width: 8px; height: 8px; }
.t101-session > svg { width: 12px; height: 12px; color: var(--muted-2); }
.t101-video-wrap { padding-top: 2px; }
.t101-cats { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.t101-cats button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 7px; }
.t101-cats button.active { border-color: #c8a66e; background: #fffaf0; color: #805b28; }
.t101-video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.t101-video { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.64); overflow: hidden; cursor: pointer; }
.t101-video:hover { border-color: #cfb9d7; box-shadow: var(--shadow-sm); }
.t101-video-cover { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4c2757, #2f1935); }
.t101-video-cover > span { position: absolute; top: 6px; left: 7px; color: rgba(239,213,157,.78); font-size: 6px; }
.t101-video-cover i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #efd59d; font-style: normal; }
.t101-video-cover i svg { width: 13px; height: 13px; }
.t101-video-cover em { position: absolute; right: 7px; bottom: 6px; color: rgba(255,255,255,.7); font-size: 6px; font-style: normal; }
.t101-video h3 { padding: 7px 9px 0; font-size: 9px; line-height: 1.5; }
.t101-video p { padding: 3px 9px 8px; color: var(--muted); font-size: 6.5px; line-height: 1.45; }
.t101-detail-intro { padding: 8px 9px; border-left: 2px solid #c8a66e; background: #fffaf0; color: var(--ink-soft); font-size: 8px; line-height: 1.7; }
.t101-detail-videos { display: flex; flex-direction: column; gap: 4px; }
.t101-detail-videos button { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid var(--line-soft); border-radius: 5px; background: #fffdf9; text-align: left; cursor: pointer; }
.t101-detail-videos button > span { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.t101-detail-videos button > span svg { width: 10px; height: 10px; }
.t101-detail-videos button > div { flex: 1; min-width: 0; }
.t101-detail-videos strong { display: block; font-size: 8px; }
.t101-detail-videos em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.3px; font-style: normal; }
.t101-detail-videos button > svg { width: 10px; height: 10px; color: var(--muted-2); }
.t101-player { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 25px; border-radius: 8px; background: linear-gradient(135deg, #3f204a, #24122b); color: #f2e4cb; text-align: center; }
.t101-player-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(242,228,203,.45); border-radius: 50%; }
.t101-player-mark svg { width: 18px; height: 18px; }
.t101-player > span { color: rgba(242,228,203,.52); font-size: 6.5px; letter-spacing: .12em; }
.t101-player > b { font-family: var(--serif); font-size: 14px; }
.t101-player-copy { padding: 9px 10px; }
.t101-player-copy > span { display: flex; align-items: center; gap: 3px; color: #a8803f; font-size: 6.5px; }
.t101-player-copy > span svg { width: 10px; height: 10px; }
.t101-player-copy p { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.65; }

/* 未来研思计划 */
.future-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.future-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 7px; }
.future-stats b { color: var(--green); font-family: var(--serif); font-size: 16px; }
.future-toolbar { display: flex; gap: 7px; margin-bottom: 7px; }
.future-toolbar .input-icon { flex: 1; }
.future-toolbar .input { font-size: 8px; }
.future-toolbar .select { width: 130px; font-size: 8px; }
.future-themes { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.future-themes button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 7px; }
.future-themes button.active { border-color: #c8a66e; background: #fffaf0; color: #805b28; }
.future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.future-card { padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,252,255,.64); cursor: pointer; transition: .18s var(--ease); }
.future-card:hover { transform: translateY(-2px); border-color: #cfb9d7; box-shadow: var(--shadow-sm); }
.future-card.completed { border-top: 2px solid #c8a66e; }
.future-card-top { display: flex; align-items: center; gap: 5px; }
.future-status { display: inline-flex; padding: 2px 5px; border-radius: 2px; font-size: 6px; }
.future-status.completed { background: #f3e8d2; color: #87612f; }
.future-status.upcoming { background: #e7efe6; color: #4c6b55; }
.future-theme { color: #7d4a86; font-size: 6.5px; }
.future-grade { margin-left: auto; color: var(--muted-2); font-size: 6.3px; }
.future-card h3 { margin-top: 5px; font-family: var(--serif); font-size: 12px; line-height: 1.5; }
.future-conclusion { margin-top: 3px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 7.5px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.future-key { display: flex; align-items: flex-start; gap: 4px; margin-top: 7px; padding: 6px 7px; border-left: 2px solid #c8a66e; background: #fffaf0; color: #7e5a2a; font-size: 7px; line-height: 1.5; }
.future-key svg { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 1px; color: var(--gold); }
.future-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: var(--muted-2); font-size: 6.2px; }
.future-meta span { display: inline-flex; align-items: center; gap: 2px; }
.future-meta svg { width: 8px; height: 8px; }
.future-foot { display: flex; justify-content: space-between; gap: 5px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-soft); color: var(--muted-2); font-size: 6.2px; }
.future-foot span { display: inline-flex; align-items: center; gap: 2px; }
.future-foot svg { width: 8px; height: 8px; }
.future-detail-section { padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.future-detail-section h3 { margin-bottom: 4px; color: var(--green); font-family: var(--serif); font-size: 10px; }
.future-prep { display: flex; flex-wrap: wrap; gap: 4px; }
.future-prep span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 3px; background: #fbf7fc; color: var(--muted); font-size: 7px; }
.future-prep svg { width: 9px; height: 9px; color: var(--gold); }
.future-conclusion-box, .future-keyoutcome { margin-top: 8px; padding: 8px 10px; border-left: 2px solid #c8a66e; background: #fffaf0; }
.future-conclusion-box > span, .future-keyoutcome > span { display: flex; align-items: center; gap: 3px; color: #a8803f; font-size: 6.5px; letter-spacing: .08em; }
.future-conclusion-box p, .future-keyoutcome p { margin-top: 3px; color: var(--ink-soft); font-size: 8.5px; line-height: 1.75; }
.future-keyoutcome { background: #f8f1fb; border-left-color: var(--green); }
.future-keyoutcome > span { color: var(--green); }
.future-keyoutcome svg { width: 10px; height: 10px; color: var(--gold); }
.future-outcome { padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.future-outcome:last-child { border-bottom: 0; }
.future-outcome strong { font-size: 8px; }
.future-outcome p { margin-top: 2px; color: var(--muted); font-size: 7.5px; line-height: 1.55; }
.future-photo { margin-top: 9px; }
.future-photo img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 7px; display: block; }
.future-photo-empty { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #d8c7df; border-radius: 7px; background: #fbf7fc; color: var(--muted-2); font-size: 7px; }
.future-photo-empty svg { width: 20px; height: 20px; color: var(--gold); }
.future-comments { margin-top: 10px; }
.future-comment { padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.future-comment strong { font-size: 7.5px; }
.future-comment span { margin-left: 5px; color: var(--muted-2); font-size: 6.2px; }
.future-comment p { margin-top: 2px; color: var(--muted); font-size: 7.5px; line-height: 1.55; }
.future-comment-form { display: flex; gap: 5px; margin-top: 7px; }
.future-comment-form .input { flex: 1; font-size: 7.5px; }
.future-photo-upload { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; padding: 8px 9px; border: 1px dashed #d8c6a9; border-radius: 6px; background: #fffaf0; }
.future-photo-upload label { display: inline-flex; align-items: center; gap: 3px; color: #87612f; font-size: 8px; cursor: pointer; }
.future-photo-upload label svg { width: 13px; height: 13px; }
.future-photo-upload input { max-width: 220px; font-size: 7px; }
@media (max-width: 900px) {
  .t101-video-grid { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .academic-entry-grid { grid-template-columns: 1fr; }
  .academic-entry p { white-space: normal; }
  .t101-hero { align-items: flex-start; flex-wrap: wrap; }
  .t101-hero-year { margin-left: 69px; text-align: left; }
  .t101-stats { grid-template-columns: 1fr 1fr; }
  .t101-video-grid { grid-template-columns: 1fr; }
  .t101-session { align-items: flex-start; }
  .t101-session p { white-space: normal; }
  .future-actions { align-items: stretch; flex-direction: column; }
  .future-actions .btn { width: 100%; }
  .future-toolbar { flex-direction: column; }
  .future-toolbar .select { width: 100%; }
  .future-foot { align-items: flex-start; flex-direction: column; }
}


/* 项目页统一外壳 */
.project-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.project-head-main { min-width: 0; }
.project-back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 8px; color: var(--muted-2); font-size: 7px; transition: .16s var(--ease); }
.project-back:hover { color: var(--green); }
.project-back svg { width: 10px; height: 10px; }
.project-head .eyebrow { color: #a8803f; font-size: 6.8px; letter-spacing: .2em; }
.project-head h1 { margin-top: 3px; color: var(--ink); font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .04em; line-height: 1.18; }
.project-head .lede { margin-top: 3px; max-width: 650px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.project-head-side { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding-bottom: 2px; }
.project-meta { display: inline-flex; align-items: center; gap: 4px; }
.project-meta-chip { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #ddcfe2; border-radius: 20px; background: rgba(255,252,255,.7); color: var(--green); font-size: 7px; white-space: nowrap; }
.project-head-side .btn { font-size: 8px; }
.project-tabs { display: flex; align-items: center; gap: 22px; margin: 0 0 13px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.project-tabs button { position: relative; flex: 0 0 auto; padding: 7px 0 9px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 9.5px; box-shadow: none; }
.project-tabs button.active { color: var(--ink); font-weight: 600; background: transparent; box-shadow: none; }
.project-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--green); }
.project-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0 0 12px; }
.project-stats > div { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.6); }
.project-stats b { display: block; overflow: hidden; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.project-stats span { display: block; margin-top: 1px; color: var(--muted); font-size: 6.8px; }
.project-stats em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 6.2px; font-style: normal; }
@media (max-width: 760px) {
  .project-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .project-head h1 { font-size: 24px; }
  .project-head-side { width: 100%; justify-content: space-between; }
  .project-tabs { gap: 15px; overflow-x: auto; }
  .project-tabs button { font-size: 8.5px; }
  .project-stats { grid-template-columns: 1fr 1fr; }
}

/* 一站式 · 统一项目入口 */
.project-hub { margin: -4px 0 16px; }
.project-hub-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.project-hub-head > span { color: #a8803f; font-size: 5.8px; letter-spacing: .16em; }
.project-hub-head h2 { font-family: var(--serif); font-size: 14px; }
.project-hub-head p { margin-left: auto; color: var(--muted-2); font-size: 6.8px; }
.project-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto 10px; align-items: center; gap: 8px; min-height: 70px; padding: 10px 11px; border: 1px solid #ddcfe2; border-radius: 9px; background: rgba(255,252,255,.66); transition: .18s var(--ease); }
.project-card:hover { transform: translateY(-2px); border-color: #c9b2d2; box-shadow: var(--shadow-sm); }
.project-card-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #f1e7f3; color: var(--green); font-family: var(--serif); font-size: 9px; }
.project-card-mark svg { width: 17px; height: 17px; }
.project-card.research .project-card-mark { background: #4b2655; color: #efd59d; }
.project-card.junior .project-card-mark { background: #f4ead3; color: #805b28; }
.project-card.tcm101 .project-card-mark { background: #f4ead3; color: #835b25; font-family: Georgia,serif; font-size: 12px; }
.project-card.future .project-card-mark { background: #f1e7f3; color: var(--green); }
.project-card-copy { min-width: 0; }
.project-card-copy > span { color: #a8803f; font-size: 5.5px; letter-spacing: .13em; }
.project-card-copy h3 { margin-top: 1px; overflow: hidden; font-family: var(--serif); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.project-card-copy p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 6.8px; white-space: nowrap; text-overflow: ellipsis; }
.project-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: 0 0 auto; text-align: right; }
.project-card-meta b { color: var(--green); font-family: var(--serif); font-size: 8px; font-weight: 500; }
.project-card-meta span { color: var(--muted-2); font-size: 6px; }
.project-card-arrow { color: var(--muted-2); }
.project-card-arrow svg { width: 10px; height: 10px; }
.project-card:hover .project-card-arrow { color: var(--green); }
@media (max-width: 760px) {
  .project-hub-head { flex-wrap: wrap; }
  .project-hub-head p { width: 100%; margin-left: 0; }
  .project-hub-grid { grid-template-columns: 1fr; }
  .project-card-copy p { white-space: normal; }
}

/* 临证患者脱敏 */
.jr-patient-line { display: flex; align-items: center; gap: 3px; margin-top: 3px; color: #8b6a38; font-size: 6.6px; }
.jr-patient-line svg { width: 9px; height: 9px; }
.jr-patient-preview { display: block; margin-top: 4px; color: #9a6c2f; font-size: 6.8px; }
.kb-source-line { display: flex; align-items: flex-start; gap: 3px; margin: 4px 0 8px; padding: 5px 6px; border-radius: 4px; background: #fbf7fc; color: var(--muted); font-size: 6.8px; line-height: 1.5; }
.kb-source-line svg { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 1px; color: var(--gold); }
.kb-qa-list { display: flex; flex-direction: column; gap: 6px; }
.kb-qa { padding: 8px 9px; border-left: 2px solid #c8a66e; background: #fffaf0; }
.kb-qa h3 { font-family: var(--serif); font-size: 10px; line-height: 1.5; }
.kb-qa p { margin-top: 3px; color: var(--ink-soft); font-size: 8px; line-height: 1.7; }
.kb-qa em { display: block; margin-top: 3px; color: var(--muted-2); font-size: 6.3px; font-style: normal; }
.kb-section-label { display: flex; align-items: center; gap: 4px; margin: 10px 0 5px; color: var(--green); font-size: 8px; font-weight: 600; }
.kb-section-label svg { width: 11px; height: 11px; color: var(--gold); }
.kb-section-label span { margin-left: auto; color: var(--muted-2); font-size: 6.3px; font-weight: 400; }
.kb-subject-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.kb-subject { position: relative; padding: 5px 4px; border: 1px solid #e0d3e5; border-radius: 5px; background: #fff; color: var(--muted); font-size: 6.8px; text-align: center; cursor: pointer; }
.kb-subject:hover { border-color: #c8a66e; color: #805b28; }
.kb-subject.recommended { border-color: #ddcbaa; background: #fffdf7; color: #805b28; }
.kb-subject.selected { border-color: var(--green); background: #f5edf7; color: var(--green); box-shadow: inset 0 0 0 1px #d8c2df; }
.kb-subject i { position: absolute; top: -4px; left: 3px; padding: 0 2px; border-radius: 2px; background: #f3e8d2; color: #8b652e; font-size: 4.5px; font-style: normal; }
.kb-expansion { margin-top: 6px; padding: 8px 9px; border: 1px solid #ddcfe2; border-radius: 6px; background: #fcf8fd; }
.kb-expansion > div { display: flex; align-items: center; gap: 5px; }
.kb-expansion strong { color: var(--green); font-size: 8px; }
.kb-expansion span { color: var(--muted-2); font-size: 5.8px; }
.kb-expansion p { margin-top: 3px; color: var(--ink-soft); font-size: 7.7px; line-height: 1.65; }
.kb-expansion p.kb-q { color: #805b28; font-weight: 600; }
.kb-expansion em { display: block; margin-top: 3px; color: var(--muted-2); font-size: 6.2px; font-style: normal; }
.kb-ask { display: flex; gap: 5px; margin-top: 8px; }
.kb-ask .input { flex: 1; font-size: 8px; }
.kb-extra-list { margin-top: 2px; }
.kb-source-note { display: flex; align-items: center; gap: 3px; max-width: 48%; color: var(--muted-2); font-size: 6px; line-height: 1.4; }
.kb-source-note svg { width: 10px; height: 10px; flex: 0 0 10px; }
@media (max-width: 620px) {
  .kb-subject-grid { grid-template-columns: repeat(3,1fr); }
  .kb-section-label { align-items: flex-start; flex-wrap: wrap; }
  .kb-section-label span { width: 100%; margin-left: 15px; }
  .kb-ask { flex-direction: column; }
  .kb-ask .btn { width: 100%; }
  .kb-source-note { max-width: 100%; }
  .kb-actions { align-items: stretch; flex-direction: column; }
  .kb-actions .btn { width: 100%; }
}

/* 中成药公共学习库与案例留言板 */
.jr-med-disclaimer { display: flex; align-items: flex-start; gap: 4px; margin: -1px 0 8px; padding: 6px 8px; border-radius: 4px; background: #fffaf0; color: #87612f; font-size: 6.5px; line-height: 1.55; }
.jr-med-disclaimer svg { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 1px; }
.jr-public-tag { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 1px 4px; border-radius: 2px; background: #eef4ec; color: #4f7b60; font-size: 5.8px; }
.jr-public-tag svg { width: 8px; height: 8px; }
.jr-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 6.8px; }
.jr-pages > div { display: flex; gap: 4px; }
.jr-pages button { padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); font-size: 6.5px; cursor: pointer; }
.jr-pages button:disabled { opacity: .38; cursor: default; }
.med-case-board { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.med-case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; margin-bottom: 7px; }
.med-case-head > div > span { color: #a8803f; font-size: 5.6px; letter-spacing: .14em; }
.med-case-head h3 { margin-top: 1px; font-family: var(--serif); font-size: 12px; }
.med-case-head p { margin-top: 2px; color: var(--muted); font-size: 6.5px; }
.med-case { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.med-case-top { display: flex; align-items: center; gap: 5px; }
.med-case-author { display: inline-flex; align-items: center; gap: 4px; }
.med-case-author .avatar { width: 19px; height: 19px; flex: 0 0 19px; font-size: 6px; }
.med-case-author strong { font-size: 7.5px; }
.med-case-date { color: var(--muted-2); font-size: 6px; }
.med-like { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 2px 5px; border: 1px solid #e2d4c0; border-radius: 20px; background: transparent; color: var(--muted-2); font-size: 6px; cursor: pointer; }
.med-like svg { width: 8px; height: 8px; }
.med-like.liked { border-color: #d7b26e; background: #fffaf0; color: #9a6c2f; }
.med-case > p { margin-top: 4px; color: var(--ink-soft); font-size: 7.8px; line-height: 1.7; }
.med-replies { margin-top: 5px; padding-left: 8px; border-left: 1px solid #e5d9e8; }
.med-reply { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; padding: 2px 0; color: var(--muted); font-size: 6.8px; line-height: 1.5; }
.med-reply strong { color: var(--green); font-size: 6.8px; }
.med-reply em { margin-left: auto; color: var(--muted-2); font-size: 5.8px; font-style: normal; }
.med-reply-form { display: flex; gap: 3px; margin-top: 3px; }
.med-reply-form .input { flex: 1; padding: 3px 5px; font-size: 6.8px; }
.med-reply-form button { padding: 2px 6px; border: 1px solid #ddcfe2; border-radius: 3px; background: #fbf7fc; color: var(--green); font-size: 6px; cursor: pointer; }
.med-case-form { margin-top: 8px; padding: 8px; border: 1px solid #e2d4e6; border-radius: 7px; background: #fcf8fd; }
.med-case-form .textarea { min-height: 54px; font-size: 7.5px; background: #fff; }
.med-case-form > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; }
.med-case-form .field-hint { font-size: 5.8px; }
@media (max-width: 760px) {
  .jr-med-grid { grid-template-columns: 1fr; }
  .jr-med-toolbar { align-items: stretch; flex-direction: column; }
  .jr-med-toolbar .input-icon { width: 100%; }
  .jr-pages { align-items: flex-start; flex-direction: column; }
  .med-case-form > div { align-items: flex-start; flex-direction: column; }
  .med-case-form .btn { width: 100%; }
}

/* 教师端 · 活动报名管理 */
.event-admin-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 11px; }
.event-admin-summary > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,252,255,.62); }
.event-admin-summary b { display: block; font-family: var(--serif); font-size: 20px; }
.event-admin-summary span { color: var(--muted); font-size: 7px; }
.event-admin-list { padding-bottom: 4px; }
.event-admin-card { display: grid; grid-template-columns: 57px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line-soft); }
.event-admin-card:first-of-type { border-top: 0; }
.event-admin-date { padding-right: 8px; border-right: 1px solid var(--line-soft); text-align: center; }
.event-admin-date b { display: block; color: var(--green); font-family: var(--serif); font-size: 10px; }
.event-admin-date span { color: var(--muted-2); font-size: 6px; }
.event-admin-main { min-width: 0; }
.event-admin-top { display: flex; align-items: center; gap: 5px; }
.event-admin-publisher { color: var(--muted-2); font-size: 6.3px; }
.event-admin-main h3 { margin-top: 2px; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.event-admin-main p { display: flex; align-items: center; gap: 2px; margin-top: 2px; color: var(--muted-2); font-size: 6.3px; }
.event-admin-main p svg { width: 8px; height: 8px; }
.event-capacity-bar { height: 3px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #eee5ef; }
.event-capacity-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9e79a9, #5d8167); }
.event-admin-count { margin-top: 3px; color: var(--muted); font-size: 6.3px; }
.event-admin-count b { color: var(--green); font-family: var(--serif); font-size: 10px; }
.event-admin-count span { margin-left: 4px; color: var(--muted-2); }
.event-admin-people { display: flex; align-items: center; }
.event-admin-people .avatar { margin-left: -5px; border: 2px solid #fbf8f8; }
.event-admin-people .avatar:first-child { margin-left: 0; }
.event-more { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -5px; border: 2px solid #fbf8f8; border-radius: 50%; background: var(--paper-3); color: var(--muted); font-size: 5.5px; }
.event-admin-actions { display: flex; gap: 4px; }
.event-admin-actions .btn { white-space: nowrap; }
.avatar.mini { width: 20px; height: 20px; flex: 0 0 20px; font-size: 6px; }
.event-signup-table { border-top: 1px solid var(--line); }
.event-signup-tr { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1fr; align-items: center; gap: 6px; padding: 7px 2px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 7px; }
.event-signup-tr.th { color: var(--muted-2); font-size: 6.3px; }
.event-signup-tr > span:first-child { display: flex; align-items: center; gap: 4px; }
.event-signup-tr b { font-weight: 500; }
.event-mini { margin-top: 12px; }
.event-mini .section-title { margin-top: 0; }
.event-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.event-mini-row > div:first-child { display: flex; align-items: center; gap: 4px; min-width: 0; }
.event-mini-row strong { overflow: hidden; font-size: 7.5px; white-space: nowrap; text-overflow: ellipsis; }
.event-mini-row em { overflow: hidden; color: var(--muted-2); font-size: 6px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.event-mini-row > div:last-child { display: flex; align-items: baseline; gap: 2px; flex: 0 0 auto; }
.event-mini-row b { color: var(--green); font-family: var(--serif); font-size: 14px; }
.event-mini-row span { color: var(--muted-2); font-size: 6px; }
.event-mini-row a { margin-left: 5px; color: var(--green); font-size: 6.5px; }
@media (max-width: 760px) {
  .event-admin-summary { grid-template-columns: 1fr 1fr; }
  .event-admin-card { grid-template-columns: 48px minmax(0,1fr); align-items: start; }
  .event-admin-people { grid-column: 2; }
  .event-admin-actions { grid-column: 2; flex-wrap: wrap; }
  .event-signup-tr { min-width: 620px; }
  .event-signup-table { overflow-x: auto; }
  .event-mini-row > div:first-child { flex-wrap: wrap; }
}

/* 待办 · 直接加入系统日历 */
.cal-to-device { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; margin-left: auto; padding: 2px 5px; border: 1px solid #dccbe0; border-radius: 4px; background: #fffdf9; color: var(--green); font-size: 5.8px; cursor: pointer; }
.cal-to-device:hover { border-color: #b99bc3; background: #fbf5fc; }
.cal-to-device svg { width: 8px; height: 8px; }
.cal-choice { display: flex; flex-direction: column; gap: 6px; }
.cal-choice-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf9; color: var(--ink); text-align: left; cursor: pointer; }
.cal-choice-item:hover { border-color: #c9a66a; background: #fffaf0; }
.cal-choice-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 7px; background: #f1e7f3; color: var(--green); font-family: Georgia,serif; font-size: 12px; }
.cal-choice-item > div { flex: 1; min-width: 0; }
.cal-choice-item strong { display: block; font-size: 9px; }
.cal-choice-item p { margin-top: 2px; color: var(--muted); font-size: 6.8px; line-height: 1.5; }
.cal-choice-item > svg { width: 11px; height: 11px; color: var(--muted-2); }
.cal-choice-note { display: flex; align-items: flex-start; gap: 3px; padding: 5px 0 0; color: var(--muted-2); font-size: 6px; line-height: 1.55; }
.cal-choice-note svg { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 1px; }
@media (max-width: 620px) {
  .cal-to-device span { display: none; }
  .cal-to-device { padding: 3px; }
  .cal-event .deadline-tag, .cal-event .memo-tag { margin-left: 2px; }
}

.task-strip-cal { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; align-self: center; padding: 4px 8px; border: 1px solid #d8c5a8; border-radius: 5px; background: #fffaf0; color: #805b28; font-size: 6.8px; cursor: pointer; }
.task-strip-cal:hover { background: #f7edd8; }
.task-strip-cal svg { width: 10px; height: 10px; }
@media (max-width: 760px) {
  .task-strip-cal { padding: 4px 6px; font-size: 0; }
  .task-strip-cal svg { width: 12px; height: 12px; }
}

.position-form-actions { display: flex; align-items: center; gap: 5px; }
.position-form-actions .btn { white-space: nowrap; }
@media (max-width: 620px) {
  .position-manager-row { align-items: flex-start; flex-direction: column; }
  .position-manager-actions { width: 100%; flex-wrap: wrap; }
  .position-form-actions { width: 100%; justify-content: flex-end; }
}

/* 临证手记分类筛选 */
.jr-filter-line { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.jr-filter-line > span { color: var(--muted-2); font-size: 6.4px; }
.jr-filter-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.jr-filter-chips button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 7px; cursor: pointer; }
.jr-filter-chips button.active { border-color: #c8a66e; background: #fffaf0; color: #805b28; }

/* 外治法：技法 + 疾病方案 */
.therapy-advantages { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.therapy-advantages span { padding: 1px 5px; border-radius: 2px; background: #fbf1dd; color: #87612f; font-size: 6px; }
.jr-subhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 17px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.jr-subhead h2 { font-family: var(--serif); font-size: 14px; }
.jr-subhead p { margin-top: 2px; color: var(--muted); font-size: 7px; }
.jr-plan-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.jr-plan-card { padding: 11px 12px; border: 1px solid #ddcfe2; border-radius: 8px; background: rgba(255,252,255,.66); cursor: pointer; transition: .18s var(--ease); }
.jr-plan-card:hover { transform: translateY(-2px); border-color: #c9b2d2; box-shadow: var(--shadow-sm); }
.jr-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.jr-plan-top span { display: inline-flex; align-items: center; gap: 3px; color: #a8803f; font-size: 6px; letter-spacing: .08em; }
.jr-plan-top svg { width: 9px; height: 9px; }
.jr-plan-top em { color: var(--muted-2); font-size: 6px; font-style: normal; }
.jr-plan-card h3 { margin-top: 4px; font-family: var(--serif); font-size: 14px; }
.jr-plan-card > p { margin-top: 2px; color: var(--muted); font-size: 7.2px; line-height: 1.6; }
.jr-plan-ops { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.jr-plan-ops span { padding: 2px 5px; border: 1px solid #e3d7e7; border-radius: 3px; background: #fbf7fc; color: var(--green); font-size: 6.2px; }
.jr-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 7px; color: var(--muted-2); font-size: 6px; }
.jr-plan-foot span { display: inline-flex; align-items: center; gap: 2px; }
.jr-plan-foot svg { width: 8px; height: 8px; }
.plan-source { display: flex; align-items: flex-start; gap: 3px; margin: 7px 0; padding: 6px 7px; border-radius: 4px; background: #fbf7fc; color: var(--muted); font-size: 6.8px; line-height: 1.5; }
.plan-source svg { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 1px; color: var(--gold); }
.plan-method-list { display: flex; flex-direction: column; gap: 6px; }
.plan-method { padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf9; }
.plan-method-head { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.plan-method-head > span { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #f1e7f3; color: var(--green); font-size: 6px; }
.plan-method-head h3 { font-family: var(--serif); font-size: 10px; }
.plan-method-row { display: flex; gap: 5px; padding: 2px 0; font-size: 7.2px; line-height: 1.6; }
.plan-method-row b { flex: 0 0 46px; color: var(--muted-2); font-weight: 400; }
.plan-method-row p { color: var(--ink-soft); }
.plan-method-row.caution b, .plan-method-row.caution p { color: #9a5b4e; }

/* 中成药分类折叠与重点标记 */
.med-mark-filter { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 4px 8px; border: 1px solid #ddcbaa; border-radius: 5px; background: #fffaf0; color: #805b28; font-size: 6.8px; cursor: pointer; }
.med-mark-filter svg { width: 9px; height: 9px; }
.med-mark-filter.active { border-color: #c8a66e; background: #f5e7c9; color: #6f4a1f; }
.med-accordion { display: flex; flex-direction: column; gap: 5px; }
.med-cat { border: 1px solid var(--line); border-radius: 7px; background: rgba(255,252,255,.62); overflow: hidden; }
.med-cat.open { border-color: #d8c2df; }
.med-cat-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.med-cat-head:hover { background: #fbf7fc; }
.med-cat-mark { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 5px; background: #f4ead3; color: #805b28; font-family: var(--serif); font-size: 6.5px; }
.med-cat-head strong { font-family: var(--serif); font-size: 10px; font-weight: 500; }
.med-cat-head em { color: var(--muted-2); font-size: 6.2px; font-style: normal; }
.med-cat-chevron { margin-left: auto; color: var(--muted-2); transition: transform .18s var(--ease); }
.med-cat-chevron svg { width: 11px; height: 11px; }
.med-cat.open .med-cat-chevron { transform: rotate(180deg); }
.med-cat-body { padding: 0 9px 9px; border-top: 1px solid var(--line-soft); }
.med-cat-body .jr-med-grid { margin-top: 8px; }
.med-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border: 1px solid #e2d4c0; border-radius: 50%; background: #fffdf9; color: #b9a77f; cursor: pointer; }
.med-mark svg { width: 11px; height: 11px; }
.med-mark:hover { border-color: #c8a66e; color: #a8803f; }
.med-mark.marked { border-color: #c8a66e; background: #fff3d7; color: #9a6c2f; }
.med-mark.marked svg { fill: currentColor; }
.med-key-tag { display: inline-flex; margin-left: 4px; padding: 0 3px; border-radius: 2px; background: #f3e8d2; color: #87612f; font-size: 5.5px; vertical-align: middle; }
@media (max-width: 760px) {
  .jr-plan-grid { grid-template-columns: 1fr; }
  .jr-filter-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .jr-med-toolbar { align-items: stretch; flex-direction: column; }
  .med-mark-filter { justify-content: center; }
  .med-cat-head { gap: 5px; }
}

.external-import { margin-top: 12px; }
.external-import .section-title { margin-top: 0; }
.external-import textarea { min-height: 116px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 7px; line-height: 1.55; }
.external-import .capture-form-foot { margin-top: 6px; }

/* 学生会端 · 学生组织服务 */
.service-intro-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.union-topbar .brand-seal.small { background: #4b2655; color: #efd59d; }
.union-org-label, .union-org-switch { display: inline-flex; align-items: center; gap: 3px; }
.union-org-label { padding: 3px 8px; border: 1px solid #ddcfe2; border-radius: 20px; color: var(--green); font-size: 6.8px; }
.union-org-switch { padding: 2px; border: 1px solid #e1d4e5; border-radius: 20px; gap: 1px; }
.union-org-switch button { padding: 2px 6px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font-size: 6px; cursor: pointer; }
.union-org-switch button.active { background: #f1e7f3; color: var(--green); }
.union-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.union-head h1 { margin-top: 2px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.union-head p { margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.union-head-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.union-org-badge { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border: 1px solid #ddcbaa; border-radius: 20px; background: #fffaf0; color: #805b28; font-size: 7px; }
.union-org-badge svg { width: 10px; height: 10px; }
.union-stats { margin-bottom: 11px; }
.union-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.union-filters { display: flex; gap: 3px; flex-wrap: wrap; }
.union-filters button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 6.8px; cursor: pointer; }
.union-filters button.active { border-color: #c8a66e; background: #fffaf0; color: #805b28; }
.union-toolbar .input-icon { width: 260px; }
.union-list { padding-bottom: 2px; }
.union-issue { padding: 10px 2px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.union-issue:first-of-type { border-top: 0; }
.union-issue:hover { background: #fdfafd; }
.union-issue-top { display: flex; align-items: center; gap: 5px; }
.union-time { margin-left: auto; color: var(--muted-2); font-size: 6px; }
.union-issue h3 { margin-top: 4px; font-family: var(--serif); font-size: 10.5px; }
.union-issue p { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 7.2px; white-space: nowrap; text-overflow: ellipsis; }
.union-issue-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; color: var(--muted-2); font-size: 6.2px; }
.union-issue-meta span { display: inline-flex; align-items: center; gap: 2px; }
.union-issue-meta svg { width: 8px; height: 8px; }
.union-issue-foot { display: flex; justify-content: space-between; gap: 5px; margin-top: 5px; color: var(--muted-2); font-size: 6px; }
.union-issue-foot span { display: inline-flex; align-items: center; gap: 2px; }
.union-issue-foot svg { width: 8px; height: 8px; color: var(--green); }
.union-detail-content { padding: 8px 0; color: var(--ink-soft); font-size: 8px; line-height: 1.8; }
.union-update-form { margin-top: 9px; padding: 9px; border: 1px solid #e2d4e6; border-radius: 7px; background: #fcf8fd; }
.union-update-form .textarea { min-height: 60px; background: #fff; font-size: 7.5px; }
.union-update-form > .btn { margin-top: 6px; }
@media (max-width: 760px) {
  .union-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .union-head h1 { font-size: 23px; }
  .union-head-side { width: 100%; justify-content: space-between; }
  .union-toolbar { align-items: stretch; flex-direction: column; }
  .union-toolbar .input-icon { width: 100%; }
  .union-org-switch button { font-size: 5.5px; }
  .student-top-right .union-entry { font-size: 0; padding: 4px; }
  .student-top-right .union-entry svg { width: 12px; height: 12px; }
}

.union-org-select { width: auto; max-width: 158px; height: 25px; padding: 2px 18px 2px 7px; border-radius: 20px; font-size: 6.2px; }

/* 班委端 · 学生端内的班级工作台 */
.committee-topbar .brand-seal.small { background: #5f7b64; color: #f5ead2; }
.committee-nav { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid #e1d4e5; border-radius: 20px; }
.committee-nav a { padding: 3px 7px; border-radius: 20px; color: var(--muted); font-size: 6.5px; }
.committee-nav a.active { background: #eef4ec; color: #4f7b60; }
.committee-entry { font-size: 7px; }
@media (max-width: 760px) {
  .committee-nav a { font-size: 5.5px; padding: 2px 4px; }
  .student-top-right .committee-entry { font-size: 0; padding: 4px; }
  .student-top-right .committee-entry svg { width: 12px; height: 12px; }
}


/* 手机端可读性适配：优先放大正文，隐藏次要标签 */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  .student-topbar { padding: 0 10px; }
  .student-brand { gap: 7px; }
  .student-brand .brand-seal { width: 32px; height: 32px; flex-basis: 32px; font-size: 19px; }
  .student-brand-copy strong { font-size: 16px; }
  .student-brand-copy span { display: none; }
  .student-page-label { display: none; }
  .student-top-right { gap: 4px; min-width: 0; }
  .student-top-right .role-switch { padding: 3px 5px; font-size: 6.5px; gap: 2px; }
  .student-top-right .role-switch svg { width: 8px; height: 8px; }
  .student-user-copy { display: none; }
  .student-user { gap: 0; }
  .student-user .avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }
  .page { padding: 16px 14px 86px; }
  .page-head h1 { font-size: 28px; }
  .page-head .lede { font-size: 12px; line-height: 1.7; }
  .page-head .eyebrow, .eyebrow { font-size: 8px; }
  .page p, .modal p, .drawer p { font-size: 11px; line-height: 1.7; }
  .page small, .page em, .modal small, .modal em, .drawer small, .drawer em { font-size: 10px; }
  .page label, .modal label, .drawer label { font-size: 10.5px; }
  .page button, .modal button, .drawer button { font-size: 10px; }
  .page input, .page select, .page textarea, .modal input, .modal select, .modal textarea, .drawer input, .drawer select, .drawer textarea { font-size: 12px; }
  .tabbar .tab-label { font-size: 10px; }
  .tabbar .tab-icon svg { width: 20px; height: 20px; }
  .notice-row.v2 .notice-title { font-size: 15px; line-height: 1.55; }
  .notice-row.v2 .notice-cat { font-size: 11px; }
  .notice-row.v2 .notice-sub { font-size: 10.5px; }
  .notice-row.v2 .date-tile.v2 strong { font-size: 20px; }
  .notice-row.v2 .date-tile.v2 span, .notice-row.v2 .date-tile.v2 em { font-size: 8px; }
  .task-strip { padding: 11px 12px; gap: 9px; }
  .task-strip-copy span { font-size: 10px; }
  .task-strip-copy strong { font-size: 14px; }
  .task-strip-copy em { font-size: 10.5px; }
  .task-strip-go { display: none; }
  .community-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .community-tabs::-webkit-scrollbar { display: none; }
  .community-tabs button { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; }
  .record-item.v2 .record-body h3 { font-size: 13.5px; line-height: 1.5; }
  .record-item.v2 .record-desc { font-size: 11px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .record-item.v2 .record-date, .record-dim, .record-more, .record-item.v2 .attach { font-size: 9.5px; }
  .record-item.v2 .record-kind { width: 32px; height: 32px; }
  .record-check input { width: 15px; height: 15px; }
  .jr-section-head h2, .jr-subhead h2 { font-size: 17px; }
  .jr-section-head p, .jr-subhead p { font-size: 11px; line-height: 1.6; }
  .jr-method-card h3 { font-size: 15px; }
  .jr-method-card > p, .jr-plan-card > p { font-size: 11px; line-height: 1.65; }
  .therapy-advantages span, .jr-plan-ops span { font-size: 9px; padding: 3px 6px; }
  .jr-plan-top span, .jr-plan-top em, .jr-plan-foot { font-size: 9px; }
  .jr-plan-card h3 { font-size: 17px; }
  .jr-med-card h3 { font-size: 14px; }
  .jr-med-card > p { font-size: 11px; line-height: 1.6; }
  .jr-med-insight { font-size: 10px; line-height: 1.55; }
  .jr-med-foot { font-size: 9px; }
  .med-cat-head { padding: 10px; }
  .med-cat-head strong { font-size: 13px; }
  .med-cat-head em { font-size: 9px; }
  .med-cat-mark { width: 28px; height: 28px; flex-basis: 28px; font-size: 8px; }
  .jr-filter-line > span, .jr-filter-chips button { font-size: 10px; }
  .jr-filter-chips button { padding: 5px 10px; }
  .dimension-card .dimension-name { font-size: 11px; line-height: 1.4; }
  .dimension-card b { font-size: 22px; }
  .dimension-card em { font-size: 9.5px; }
  .profile-tags .chip, .chip { font-size: 9px; }
  .portrait-panel-head h2 { font-size: 19px; }
  .portrait-panel-head p { font-size: 11px; }
  .modal-head h2, .drawer-head h2 { font-size: 20px; }
  .modal, .drawer { max-width: 100%; }
  .detail-meta-item span { font-size: 9px; }
  .detail-meta-item strong { font-size: 11px; }
}

/* 手机端身份切换与正文可读性 */
.student-role-select { display: none; }
@media (max-width: 760px) {
  .student-top-right .role-switch { display: none; }
  .student-role-select { display: block; width: 78px; height: 28px; padding: 2px 4px; border: 1px solid #ddcfe2; border-radius: 6px; background: #fffdf9; color: var(--green); font-size: 11px; }
  .student-top-right { gap: 4px; }
  .student-user .avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .notice-row.v2 .notice-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .notice-row.v2 .notice-content { min-width: 0; }
  .notice-row.v2 .notice-cat, .notice-row.v2 .notice-sub { font-size: 11px; }
  .notice-row.v2 .notice-title-row { align-items: flex-start; }
  .notice-row.v2 .notice-side { min-width: 44px; }
}

@media (max-width: 760px) {
  .notice-row.v2 .notice-title { display: block !important; white-space: normal !important; overflow-wrap: anywhere; max-height: 3.1em; overflow: hidden; }
  .notice-row.v2 .notice-title-row { min-width: 0; }
}

/* 手机端最终排版校准 */
@media (max-width: 760px) {
  .student-top-right .icon-btn, .student-top-right .student-user { display: none; }
  .student-role-select { width: 82px; height: 30px; font-size: 12px; }
  .page p, .modal p, .drawer p { font-size: 12px; }
  .page small, .page em, .modal small, .modal em, .drawer small, .drawer em { font-size: 11px; }
  .page label, .modal label, .drawer label { font-size: 11px; }
  .page button, .modal button, .drawer button { font-size: 11px; }
  .page input, .page select, .page textarea, .modal input, .modal select, .modal textarea, .drawer input, .drawer select, .drawer textarea { font-size: 13px; }
  .notice-row.v2 .notice-title { font-size: 16px; line-height: 1.55; }
  .notice-row.v2 .notice-cat, .notice-row.v2 .notice-sub { font-size: 12px; }
  .task-strip-copy strong { font-size: 15px; }
  .task-strip-copy span, .task-strip-copy em { font-size: 11px; }
  .record-item.v2 .record-body h3 { font-size: 14px; }
  .record-item.v2 .record-desc { font-size: 12px; }
  .jr-method-card > p, .jr-plan-card > p, .jr-med-card > p { font-size: 12px; }
  .jr-med-insight { font-size: 11px; }
  .dimension-card .dimension-name { font-size: 12px; }
  .dimension-card em { font-size: 10px; }
  .page .notice-row.v2 .notice-title { display: block !important; white-space: normal !important; overflow-wrap: anywhere; max-height: 3.2em; overflow: hidden; }
  .page .notice-row.v2 .notice-title-row { min-width: 0; }
}

@media (max-width: 760px) {
  .student-role-select { display: block !important; flex: 0 0 auto; width: 84px !important; height: 30px !important; padding: 2px 5px !important; border: 1px solid #b99bc3 !important; border-radius: 7px !important; background: #fff !important; color: #3d2148 !important; font-size: 12px !important; opacity: 1 !important; position: relative; z-index: 3; }
  .page .notice-row.v2 .notice-title { width: 100%; max-width: 100%; }
}

/* 手机端身份菜单 */
.identity-menu { display: flex; flex-direction: column; gap: 6px; }
.identity-menu button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf9; color: var(--ink); text-align: left; cursor: pointer; }
.identity-menu button:hover { border-color: #c9a66a; background: #fffaf0; }
.identity-menu button > span { display: flex; flex-direction: column; gap: 2px; }
.identity-menu strong { font-size: 12px; }
.identity-menu em { color: var(--muted); font-size: 10px; font-style: normal; }
.identity-menu svg { width: 11px; height: 11px; color: var(--muted-2); }
.student-role-select svg { width: 10px; height: 10px; }

/* 手机端统一排版层级 */
@media (max-width: 760px) {
  .page { font-size: 13px; }
  .page h1 { font-size: 28px !important; line-height: 1.22 !important; }
  .page h2 { font-size: 17px !important; line-height: 1.4 !important; }
  .page h3 { font-size: 14px !important; line-height: 1.45 !important; }
  .page p { font-size: 12px !important; line-height: 1.7 !important; }
  .page span { font-size: 11.5px !important; }
  .page a { font-size: 12px !important; }
  .page em, .page small { font-size: 10.5px !important; line-height: 1.5 !important; }
  .page label { font-size: 11.5px !important; }
  .page button, .page .btn { font-size: 11.5px !important; }
  .page input, .page select, .page textarea { font-size: 13px !important; }
  .page th, .page td { font-size: 11px !important; }
  .page .eyebrow { font-size: 8px !important; letter-spacing: .16em !important; }
  .page .hint, .page .field-hint { font-size: 10.5px !important; line-height: 1.55 !important; }
  .page .chip, .page .tag { font-size: 10px !important; line-height: 1.35 !important; }
  .page .notice-title { font-size: 16px !important; line-height: 1.55 !important; }
  .page .notice-cat, .page .notice-sub { font-size: 12px !important; line-height: 1.55 !important; }
  .page .task-strip-copy strong { font-size: 15px !important; }
  .page .task-strip-copy span, .page .task-strip-copy em { font-size: 11px !important; }
  .page .record-item.v2 .record-desc { font-size: 12px !important; line-height: 1.6 !important; }
  .page .record-item.v2 .record-body h3 { font-size: 14px !important; }
  .page .record-date, .page .record-dim, .page .record-more, .page .record-item.v2 .attach { font-size: 10.5px !important; }
  .page .jr-section-head h2, .page .jr-subhead h2 { font-size: 17px !important; }
  .page .jr-section-head p, .page .jr-subhead p { font-size: 12px !important; }
  .page .jr-method-card h3, .page .jr-med-card h3 { font-size: 14px !important; }
  .page .jr-method-card > p, .page .jr-plan-card > p, .page .jr-med-card > p { font-size: 12px !important; line-height: 1.65 !important; }
  .page .jr-med-insight { font-size: 11px !important; line-height: 1.55 !important; }
  .page .jr-med-foot, .page .jr-plan-foot { font-size: 10.5px !important; }
  .page .therapy-advantages span, .page .jr-plan-ops span { font-size: 10px !important; }
  .page .dimension-card .dimension-name { font-size: 12px !important; }
  .page .dimension-card em { font-size: 10px !important; }
  .page .section-title h3 { font-size: 14px !important; }
  .page .section-title .hint { font-size: 10.5px !important; }
  .page .panel, .page .portrait-panel, .page .union-list { border-radius: 12px; }
  .modal p, .drawer p { font-size: 12px !important; line-height: 1.7 !important; }
  .modal span, .drawer span, .modal em, .drawer em, .modal small, .drawer small { font-size: 11px !important; }
  .modal label, .drawer label { font-size: 11.5px !important; }
  .modal button, .drawer button { font-size: 11.5px !important; }
  .modal input, .modal select, .modal textarea, .drawer input, .drawer select, .drawer textarea { font-size: 13px !important; }
  .tabbar .tab-label { font-size: 11px !important; }
  .modal-head h2, .drawer-head h2 { font-size: 20px !important; }
  .page .notice-title-row { min-width: 0; }
  .page .notice-title { display: block !important; white-space: normal !important; overflow-wrap: anywhere; max-height: 3.2em; overflow: hidden; }
}

/* 手机端模块布局校准 */
@media (max-width: 760px) {
  .record-overview { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .record-actionbar { align-items: stretch; flex-direction: column; gap: 7px; padding: 10px 12px; }
  .record-actions { width: 100%; margin-left: 0; }
  .record-actions .btn { flex: 1; justify-content: center; }
  .records-filter.v2 { align-items: stretch; flex-direction: column; gap: 6px; padding: 9px 12px; }
  .records-filter.v2 .input-icon { width: 100%; }
  .academic-bulletin { grid-template-columns: 1fr; }
  .ab-seal { display: none; }
  .ab-main { padding: 12px 14px; }
  .academic-bulletin h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; }
  .academic-bulletin p { font-size: 12px; line-height: 1.65; -webkit-line-clamp: 2; }
  .ab-foot { flex-wrap: wrap; gap: 5px; }
  .ab-foot span, .ab-kicker span { font-size: 10px; }
  .project-card { grid-template-columns: 36px minmax(0,1fr) 10px; min-height: 64px; }
  .project-card-meta { display: none; }
  .project-card-copy h3 { white-space: normal; font-size: 14px; }
  .project-card-copy p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; }
  .project-hub-head p { display: none; }
  .project-hub-head h2 { font-size: 17px; }
  .resource-grid { grid-template-columns: 1fr; }
  .hub-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hub-categories::-webkit-scrollbar { display: none; }
  .profile-hero-v2 { flex-direction: column; align-items: stretch; gap: 10px; }
  .profile-hero-main { align-items: flex-start; }
  .profile-specialty-inline { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .profile-tags { flex-wrap: wrap; }
  .portrait-radar-wrap { overflow: hidden; }
  .jr-method-grid, .jr-med-grid, .jr-plan-grid, .t101-video-grid, .future-grid { grid-template-columns: 1fr !important; }
  .student-role-select { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }
}

@media (max-width: 760px) {
  .page .notice-row.v2 .notice-title { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; white-space: normal !important; overflow: hidden !important; width: 100%; max-width: 100%; }
}

/* 手机端容器宽度与长文本 */
@media (max-width: 760px) {
  .page, .page > *, .panel, .records-panel, .record-list, .record-item.v2, .record-item.v2 .record-body, .notice-row.v2, .notice-row.v2 .notice-content, .academic-bulletin, .ab-main, .community-section, .profile-hero-v2, .profile-hero-main, .profile-specialty-inline, .project-card, .project-card-copy { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .record-item.v2 .record-body h3, .academic-bulletin h3, .project-card-copy h3 { white-space: normal !important; overflow-wrap: anywhere !important; max-width: 100%; }
  .record-item.v2 .record-body { overflow: hidden; }
  .record-actions { flex-direction: column; }
  .record-actions .btn { width: 100%; }
  .profile-tags, .specialty-tags { max-width: 100%; overflow: hidden; flex-wrap: wrap; }
  .specialty-tag { max-width: 100%; }
  .ab-main, .academic-bulletin p { overflow-wrap: anywhere; }
  .student-role-select { display: block !important; }
}

/* 手机端长文本最终约束 */
@media (max-width: 760px) {
  .record-item.v2 .record-body h3, .academic-bulletin h3, .notice-row.v2 .notice-title, .project-card-copy h3 {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    display: block !important;
  }
  .record-item.v2 .record-body { width: 100% !important; max-width: 100% !important; overflow: hidden; }
  .profile-tags, .specialty-tags, .profile-specialty-inline { width: 100% !important; max-width: 100% !important; overflow: hidden; }
  .specialty-tag { max-width: 100% !important; }
  .student-role-select { margin-left: auto; }
}

/* 手机端任职、特长与重点层级 */
@media (max-width: 760px) {
  .page h2 { font-size: 19px !important; }
  .page h3 { font-size: 15.5px !important; }
  .page .jr-method-card h3, .page .jr-med-card h3, .page .project-card-copy h3, .page .record-item.v2 .record-body h3 { font-size: 15px !important; }
  .page .notice-title { font-size: 16px !important; }
  .positions-strip { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .positions-strip-head { font-size: 12px !important; }
  .positions-strip-head svg { width: 13px; height: 13px; }
  .positions-list { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .position-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 6px; width: 100%; padding: 7px 0; border-top: 1px solid var(--line-soft); }
  .position-item:first-child { border-top: 0; }
  .position-item > div { min-width: 0; }
  .position-item strong { overflow: visible; font-size: 12.5px !important; line-height: 1.5; white-space: normal; text-overflow: clip; }
  .position-item em { font-size: 10.5px !important; line-height: 1.5; }
  .position-level { font-size: 9.5px !important; padding: 3px 6px; }
  .position-cert { font-size: 9px !important; padding: 2px 5px; align-self: start; }
  .position-cert svg { width: 10px; height: 10px; }
  .profile-specialty-inline { width: 100%; max-width: 100%; padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .profile-specialty-label { font-size: 11px !important; }
  .specialty-tags { width: 100%; max-width: 100%; overflow: hidden; }
  .specialty-tag { max-width: 100%; font-size: 10.5px !important; min-height: 24px; }
  .specialty-tag small { font-size: 8px !important; }
  .profile-tags { gap: 4px; }
  .profile-tags .chip { font-size: 10px !important; }
}

@media (max-width: 760px) {
  .specialty-tags { display: flex !important; flex-wrap: wrap !important; width: 100% !important; max-width: 100% !important; overflow: visible !important; }
  .specialty-tag { flex: 0 1 auto !important; max-width: 100% !important; white-space: normal !important; }
  .specialty-tag b { white-space: normal !important; overflow-wrap: anywhere !important; }
  .specialty-tag small { flex: 0 0 auto; }
}

/* 手机端成长日历 · 近期待办与往年参考 */
@media (max-width: 760px) {
  .calendar-legend { font-size: 11px !important; gap: 8px; margin-bottom: 8px; }
  .calendar-legend i { width: 6px; height: 6px; }
  .calendar-events .cal-event-label { font-size: 12px !important; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; margin-bottom: 7px; }
  .calendar-events .cal-event-label span:last-child { font-weight: 400; color: var(--muted-2); font-size: 11px; }
  .cal-event { padding: 8px 0; }
  .cal-date { flex-basis: 34px; font-size: 13px !important; line-height: 1.45; }
  .cal-event-copy strong { font-size: 14.5px !important; line-height: 1.5; font-weight: 600; }
  .cal-event-copy span { font-size: 12px !important; line-height: 1.6; margin-top: 3px; color: var(--muted); }
  .cal-todo { border-left-width: 3px; padding-left: 10px; }
  .cal-ref { opacity: .95; }
  .cal-ref .cal-event-copy strong { color: var(--ink-soft); }
  .calendar-note { font-size: 11px !important; line-height: 1.6; }
}

/* 成长日历待办可读性：桌面与手机同步提升 */
.calendar-legend { font-size: 9.5px; }
.calendar-events .cal-event-label { font-size: 10.5px; }
.cal-date { font-size: 12px; }
.cal-event-copy strong { font-size: 12.5px; }
.cal-event-copy span { font-size: 10.5px; line-height: 1.55; }

@media (max-width: 760px) {
  .page .notice-row.v2 .notice-title { font-size: 14.5px !important; line-height: 1.55 !important; }
}

@media (max-width: 760px) {
  .page .notice-row.v2 .notice-title { font-size: 15.5px !important; line-height: 1.55 !important; }
}

@media (max-width: 760px) {
  .page .notice-row.v2 .notice-title { font-size: 15.5px !important; font-weight: 600 !important; line-height: 1.45 !important; }
  .page .notice-row.v2.unread .notice-title { font-weight: 600 !important; }
}

/* 手机端字号再平衡：小字提一档，大字略收，保持紧凑 */
@media (max-width: 760px) {
  .page { font-size: 13px; }
  .page h1 { font-size: 27px !important; line-height: 1.22 !important; }
  .page h2 { font-size: 18px !important; line-height: 1.4 !important; }
  .page h3 { font-size: 15px !important; line-height: 1.45 !important; }
  .page p { font-size: 13px !important; line-height: 1.65 !important; }
  .page span { font-size: 12px !important; }
  .page a { font-size: 12.5px !important; }
  .page em, .page small { font-size: 11px !important; line-height: 1.5 !important; }
  .page label, .page button { font-size: 12px !important; }
  .page .hint, .page .field-hint { font-size: 11px !important; }
  .page .chip, .page .tag { font-size: 10.5px !important; }
  .page .eyebrow { font-size: 8.5px !important; }
  .tabbar .tab-label { font-size: 11.5px !important; }

  .page .notice-row.v2 .notice-title { font-size: 15px !important; font-weight: 600 !important; line-height: 1.45 !important; }
  .page .notice-cat, .page .notice-sub { font-size: 11.5px !important; }
  .page .date-tile.v2 strong { font-size: 20px !important; }
  .page .date-tile.v2 span, .page .date-tile.v2 em { font-size: 9.5px !important; }
  .page .activity-card h3 { font-size: 15px !important; }
  .page .activity-card p { font-size: 13px !important; line-height: 1.65 !important; }
  .page .activity-card-top span, .page .activity-meta span { font-size: 11.5px !important; }
  .page .community-tabs button { font-size: 12.5px !important; }
  .page .task-strip-copy strong { font-size: 15px !important; }
  .page .task-strip-copy span, .page .task-strip-copy em { font-size: 11.5px !important; }

  .page .record-item.v2 .record-body h3 { font-size: 14.5px !important; }
  .page .record-item.v2 .record-desc { font-size: 12.5px !important; }
  .page .record-date, .page .record-dim, .page .record-more, .page .record-item.v2 .attach { font-size: 11px !important; }
  .page .jr-section-head h2, .page .jr-subhead h2 { font-size: 18px !important; }
  .page .jr-section-head p, .page .jr-subhead p { font-size: 12.5px !important; }
  .page .jr-method-card > p, .page .jr-plan-card > p, .page .jr-med-card > p { font-size: 12.5px !important; }
  .page .jr-med-insight { font-size: 11.5px !important; }
  .page .position-item strong { font-size: 13px !important; }
  .page .position-item em { font-size: 11px !important; }
  .page .profile-specialty-label { font-size: 11.5px !important; }
  .page .specialty-tag { font-size: 11px !important; }
  .page .specialty-tag small { font-size: 8.5px !important; }

  .calendar-legend { font-size: 11.5px !important; }
  .calendar-events .cal-event-label { font-size: 12.5px !important; }
  .cal-date { font-size: 13px !important; }
  .cal-event-copy strong { font-size: 14.5px !important; }
  .cal-event-copy span { font-size: 12.5px !important; }
  .calendar-note { font-size: 11.5px !important; }
}

/* 详情页、弹窗、任职管理与日历断行可读性 */
.cal-event { align-items: flex-start; }
.cal-event-copy strong, .cal-event-copy span,
.position-item strong, .position-manager-row strong,
.detail-meta-item strong, .rt-issue h3, .rt-issue > p,
.record-body h3, .record-desc {
  line-break: strict;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.cal-event-copy strong { max-width: 100%; }
.cal-date { padding-top: 1px; }

.modal-head p { font-size: 10.5px; line-height: 1.6; }
.modal-body p, .drawer-body p { font-size: 12px; line-height: 1.7; }
.modal-body label, .drawer-body label { font-size: 11px; }
.modal-body .field-hint, .drawer-body .field-hint { font-size: 10.5px; line-height: 1.55; }
.modal-body .btn, .drawer-body .btn { font-size: 11px; }
.modal-foot .foot-left, .drawer-foot .foot-left { font-size: 9.5px; }
.detail-meta-item span { font-size: 9.5px; }
.detail-meta-item strong { font-size: 12px; line-height: 1.5; }
.service-step strong { font-size: 11.5px; }
.service-step p { font-size: 11px; line-height: 1.65; }
.service-step em { font-size: 9.5px; }
.attachment-copy strong { font-size: 11.5px; }
.attachment-copy span { font-size: 9.5px; }
.attachment-act { font-size: 9px; }
.attachment-row { min-height: 43px; }

.position-item { align-items: flex-start; }
.position-item strong { font-size: 11.5px; line-height: 1.5; white-space: normal; }
.position-item em { font-size: 9.5px; line-height: 1.5; }
.position-cert { font-size: 8.5px; }
.position-manager-row { align-items: flex-start; gap: 8px; }
.position-manager-row > div { flex-wrap: wrap; gap: 3px 6px; }
.position-manager-row strong { font-size: 11.5px; line-height: 1.5; white-space: normal; text-overflow: clip; overflow: visible; }
.position-manager-row em { font-size: 9.5px; line-height: 1.5; }
.position-cert-btn { font-size: 9.5px; padding: 4px 7px; }
.position-cert-btn svg { width: 11px; height: 11px; }
.position-cert-saved { font-size: 10px; line-height: 1.55; }
.position-remove { font-size: 10px; }
.position-cert-upload strong { font-size: 12px; }
.position-cert-upload span { font-size: 10px; line-height: 1.55; }
.positions-strip-head { font-size: 10.5px; }
.position-level { font-size: 8.5px; }
.position-manager-list { margin-bottom: 13px; }

@media (max-width: 760px) {
  .modal-head p { font-size: 12px; }
  .modal-body p, .drawer-body p { font-size: 13px; }
  .modal-body label, .drawer-body label { font-size: 12px; }
  .modal-body .field-hint, .drawer-body .field-hint { font-size: 11px; }
  .modal-body .btn, .drawer-body .btn { font-size: 12px; }
  .detail-meta-item span { font-size: 10.5px; }
  .detail-meta-item strong { font-size: 13px; }
  .service-step strong { font-size: 12.5px; }
  .service-step p { font-size: 12px; }
  .service-step em { font-size: 10.5px; }
  .attachment-copy strong { font-size: 12.5px; }
  .attachment-copy span { font-size: 10.5px; }
  .attachment-act { font-size: 10px; }
  .position-item strong, .position-manager-row strong { font-size: 13px; }
  .position-item em, .position-manager-row em { font-size: 11px; }
  .position-cert-btn { font-size: 10.5px; }
  .position-cert-saved { font-size: 11px; }
  .position-manager-actions { width: 100%; flex-wrap: wrap; }
}

.modal-body input, .modal-body select, .modal-body textarea,
.drawer-body input, .drawer-body select, .drawer-body textarea {
  font-size: 13px;
}
.position-form .input, .position-form .select { font-size: 12px; }
@media (max-width: 760px) {
  .modal-body input, .modal-body select, .modal-body textarea,
  .drawer-body input, .drawer-body select, .drawer-body textarea,
  .position-form .input, .position-form .select { font-size: 14px; }
  .position-manager-row { gap: 5px; }
}

/* 详情可读性补充 */
.cal-event-copy { min-width: 0; }
.cal-event-copy strong { text-wrap: balance; word-break: normal; }
.cal-event-copy span { text-wrap: pretty; word-break: normal; }
.modal-body span, .drawer-body span { font-size: 11.5px; }
.modal-body em, .drawer-body em, .modal-body small, .drawer-body small { font-size: 10.5px; }
.position-manager-row strong { font-size: 13px; }
.position-manager-row em { font-size: 11px; }
.position-cert-btn { font-size: 12px; padding: 5px 8px; }
.position-cert-saved { font-size: 11.5px; }
.position-level { font-size: 10px; padding: 3px 6px; }
.position-cert { font-size: 10px; padding: 2px 5px; }
@media (max-width: 760px) {
  .modal-body span, .drawer-body span { font-size: 12.5px; }
  .modal-body em, .drawer-body em, .modal-body small, .drawer-body small { font-size: 11px; }
  .position-manager-row strong { font-size: 13.5px; }
  .position-manager-row em { font-size: 11.5px; }
  .position-cert-btn { font-size: 12px; }
  .position-level { font-size: 10.5px; }
  .position-cert { font-size: 10.5px; }
}

/* 任职管理：避免弹性布局把中文压成一字一行 */
@media (max-width: 760px) {
  .position-manager-row { display: block !important; width: 100%; }
  .position-manager-row > div:first-child { display: flex !important; flex-wrap: wrap !important; width: 100% !important; min-width: 0; }
  .position-manager-row > div:first-child strong { flex: 1 1 100% !important; display: block; width: 100% !important; min-width: 0; white-space: normal !important; overflow-wrap: break-word !important; }
  .position-manager-row > div:first-child em { flex: 1 1 100% !important; display: block; width: 100% !important; }
  .position-manager-row > div:first-child .position-level { flex: 0 0 auto; }
  .position-manager-actions { width: 100% !important; margin-top: 5px; }
}

@media (max-width: 760px) {
  .position-manager-row > div:first-child { display: grid !important; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: start; }
  .position-manager-row > div:first-child .position-level { grid-column: 1; grid-row: 1 / span 2; }
  .position-manager-row > div:first-child strong { grid-column: 2; grid-row: 1; width: auto !important; flex: none !important; }
  .position-manager-row > div:first-child em { grid-column: 2; grid-row: 2; width: auto !important; flex: none !important; }
}

/* 手机端局部排版修正 */
@media (max-width: 760px) {
  .my-task-panel { padding: 11px 12px; }
  .my-task-head { font-size: 11px; }
  .my-task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .my-task-row > div { flex: 1 1 100%; width: 100%; min-width: 0; }
  .my-task-row strong { font-size: 14px; line-height: 1.5; white-space: normal; }
  .my-task-row span { font-size: 11.5px; line-height: 1.6; white-space: normal; }
  .my-task-row .btn { flex: 0 0 auto; font-size: 10.5px; }
  .hub-categories { flex-wrap: wrap !important; overflow: visible !important; gap: 5px; }
  .hub-categories button { flex: 0 0 auto; white-space: nowrap; font-size: 10px; }
  .resource-card h3 { font-size: 14px; line-height: 1.5; }
  .resource-card p { font-size: 12px; line-height: 1.65; }
  .portrait-radar-wrap { min-height: 270px; padding: 0 2px; }
  .portrait-radar-wrap svg { max-width: 100%; overflow: visible; }
  .rt-workload > div span { flex-basis: 84px; font-size: 9.5px; }
}

@media (max-width: 760px) {
  .student-topbar.union-topbar .student-top-right .role-switch,
  .student-topbar.committee-topbar .student-top-right .role-switch { display: inline-flex !important; padding: 4px 7px; font-size: 10px; }
  .union-topbar .student-page-label, .committee-topbar .student-page-label { display: none; }
  .union-topbar .student-user-copy, .committee-topbar .student-user-copy { display: none; }
  .union-topbar .union-org-label, .union-topbar .union-org-select { max-width: 88px; font-size: 9.5px; }
}

/* 日历日期改为紧凑横排，避免 28 与“日”上下拉开 */
.cal-date { display: flex; align-items: baseline; gap: 2px; flex-basis: 36px; line-height: 1.2; }
.cal-date br { display: none; }
.cal-date span { margin: 0; font-size: 9.5px; line-height: 1.2; }
@media (max-width: 760px) {
  .cal-date { flex-basis: 38px; font-size: 13px !important; }
  .cal-date span { font-size: 10px !important; margin: 0; }
  .cal-event { align-items: flex-start; }
  .cal-event-copy strong { line-height: 1.55; }
}

/* 品牌字标与中文化界面 */
.student-brand.brand-wordmark { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1; }
.brand-mark { display: inline-flex; align-items: baseline; font-family: var(--serif); font-size: 20px; letter-spacing: .1em; color: var(--green-deep); }
.brand-mark b { font-weight: 700; }
.brand-mark em { margin-left: .08em; color: var(--gold); font-style: normal; }
.brand-sub { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; letter-spacing: .14em; }
.student-role-select { width: 52px !important; gap: 1px; justify-content: center; }
.student-role-select svg { width: 12px !important; height: 12px !important; }
.eyebrow { display: none !important; }
.ab-kicker > span:first-child { display: none; }
.project-hub-head > span { display: none; }
.project-card-copy > span { display: none; }
.screen-brand > div > span { display: none; }
@media (max-width: 760px) {
  .brand-mark { font-size: 18px; }
  .brand-sub { font-size: 8px; margin-top: 3px; }
  .student-role-select { width: 48px !important; }
}

.student-role-select { font-size: 10px !important; letter-spacing: .04em; }

/* 学院 / 书院品牌字标 */
.student-brand.university-brand, .university-brand-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.university-logos { display: flex; align-items: center; flex: 0 0 auto; }
.university-seal { width: 34px; height: 34px; display: block; flex: 0 0 34px; }
.university-seal + .university-seal { margin-left: -7px; }
.university-copy { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; line-height: 1.2; }
.university-name { display: block; max-width: 238px; overflow: hidden; color: var(--muted); font-size: 8px; letter-spacing: .04em; white-space: nowrap; text-overflow: ellipsis; }
.university-product { display: block; color: var(--green-deep); font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .035em; line-height: 1.35; white-space: nowrap; }
.uni-dot { margin: 0 2px; color: var(--gold); font-weight: 700; }
.university-brand-side { padding: 0 2px; }
@media (max-width: 760px) {
  .student-brand.university-brand { gap: 6px; }
  .university-seal { width: 31px; height: 31px; flex-basis: 31px; }
  .university-seal + .university-seal { margin-left: -6px; }
  .university-name { max-width: 185px; font-size: 7.5px; }
  .university-product { font-size: 13.5px; letter-spacing: .02em; }
}

.student-brand.university-brand, .university-brand-side { gap: 9px; }
.university-logos { gap: 4px; }
.university-seal { width: 35px; height: 35px; flex-basis: 35px; }
.university-seal + .university-seal { margin-left: 0; }
.university-name { max-width: 250px; font-size: 8.5px; letter-spacing: .035em; }
.university-product { font-size: 15.5px; letter-spacing: .025em; }
@media (max-width: 760px) {
  .student-brand.university-brand { gap: 7px; }
  .university-logos { gap: 3px; }
  .university-seal { width: 31px; height: 31px; flex-basis: 31px; }
  .university-name { max-width: 188px; font-size: 8px; }
  .university-product { font-size: 14.5px; }
}
.university-brand-side .university-name { max-width: 150px; }

.university-brand-side .university-seal { width: 31px; height: 31px; flex-basis: 31px; }
.university-brand-side .university-product { max-width: 145px; overflow: hidden; color: #f6eee4; font-size: 14px; text-overflow: ellipsis; }
.university-brand-side .university-name { max-width: 150px; color: rgba(246,238,228,.58); }
@media (max-width: 760px) {
  .university-name { font-size: 8.5px; }
}

/* 使用学院 / 书院官方横版标识 */
.student-brand.university-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; line-height: 1; }
.university-logo { display: block; width: auto; height: 34px; max-width: 228px; object-fit: contain; }
.university-product { display: block; margin-top: 2px; max-width: 100%; overflow: hidden; color: var(--green-deep); font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.university-brand-side { flex-direction: column; align-items: flex-start; gap: 3px; }
.university-brand-side .university-logo { height: 30px; max-width: 208px; padding: 2px 4px; border-radius: 4px; background: #fff; box-sizing: content-box; }
.university-brand-side .university-product { max-width: 208px; color: #f6eee4; font-size: 13.5px; }
@media (max-width: 760px) {
  .student-brand.university-brand { gap: 0; }
  .university-logo { height: 31px; max-width: 198px; }
  .university-product { margin-top: 1px; font-size: 13px; }
}

.university-logo { height: 44px; max-width: 276px; }
.university-product { font-size: 13.5px; }
@media (max-width: 760px) {
  .university-logo { height: 40px; max-width: 250px; }
  .university-product { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .university-logo { height: 34px; max-width: 212px; }
}

/* 顶部品牌：Logo 左上，文字居中 */
.student-brand.university-brand { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; padding-top: 2px; }
.university-logo { align-self: flex-start; }
.university-product { width: 100%; margin: 0; color: var(--green-deep); font-family: "Songti SC","STSong","Noto Serif SC",serif; font-size: 19px; font-weight: 600; letter-spacing: .22em; line-height: 1.25; text-align: center; text-indent: .22em; white-space: nowrap; }
.university-brand-side { flex-direction: column; align-items: flex-start; gap: 4px; }
.university-brand-side .university-product { color: #f6eee4; font-size: 18px; }
@media (max-width: 760px) {
  .student-brand.university-brand { gap: 2px; padding-top: 1px; }
  .university-logo { height: 37px; max-width: 232px; }
  .university-product { font-size: 18px; letter-spacing: .2em; text-indent: .2em; }
}
@media (max-width: 360px) {
  .university-logo { height: 32px; max-width: 202px; }
  .university-product { font-size: 17px; }
}

/* 页面标题：缩小并统一为更轻盈的宋体字标 */
.page-head h1, .project-head h1, .union-head h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  line-height: 1.28 !important;
}
.page-head .lede { font-size: 12.5px; line-height: 1.7; }
@media (max-width: 760px) {
  .page-head h1, .project-head h1, .union-head h1 {
    font-size: 22px !important;
    letter-spacing: .06em !important;
    line-height: 1.3 !important;
  }
  .page-head .lede { font-size: 12px; }
}

/* 页面标题字标微调 */
.page-head h1, .project-head h1, .union-head h1 {
  font-family: "STZhongsong", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
}
.university-product { font-family: "STZhongsong", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif !important; }
@media (max-width: 760px) {
  .page-head h1, .project-head h1, .union-head h1 { font-size: 23px !important; letter-spacing: .08em !important; }
}

/* 岐黄成长：居中艺术字 */
.university-product {
  display: block;
  width: 100%;
  margin: 1px 0 0;
  color: #4b2457;
  font-family: "STXingkai", "华文行楷", "Xingkai SC", "STKaiti", "KaiTi", "Songti SC", serif !important;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.2;
  text-align: center;
  text-indent: .14em;
  white-space: nowrap;
  font-synthesis: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .university-product {
    background: linear-gradient(100deg, #452050 0%, #75417f 48%, #a8803f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
  }
}
.university-product::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 3px auto 0;
  background: linear-gradient(90deg, transparent, rgba(168,128,63,.7), transparent);
}
.university-brand-side .university-product,
.university-brand-side .university-product::after {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #f6eee4 !important;
  filter: none;
}
.university-brand-side .university-product { font-size: 20px; }
@media (max-width: 760px) {
  .university-product { font-size: 21px; letter-spacing: .12em; text-indent: .12em; }
}
@media (max-width: 360px) {
  .university-product { font-size: 19px; }
}

/* 顶栏：Logo 左上小标，品牌字居中 */
.student-topbar { position: relative; }
.student-brand.university-brand { align-self: flex-start; margin-top: 7px; padding-top: 0; flex-direction: row; align-items: flex-start; gap: 0; }
.university-logo { height: 28px; max-width: 176px; }
.topbar-brand-title {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  display: block; color: #4b2457;
  font-family: "STXingkai", "华文行楷", "Xingkai SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 23px; font-weight: 400; letter-spacing: .16em; line-height: 1.2;
  text-indent: .16em; text-align: center; text-decoration: none; white-space: nowrap;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .topbar-brand-title {
    background: linear-gradient(100deg, #452050 0%, #75417f 48%, #a8803f 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
  }
}
.topbar-brand-title::after {
  content: ""; display: block; width: 30px; height: 1px; margin: 2px auto 0;
  background: linear-gradient(90deg, transparent, rgba(168,128,63,.7), transparent);
}
@media (max-width: 760px) {
  .student-brand.university-brand { margin-top: 8px; }
  .university-logo { width: 32px; height: 32px; max-width: 32px; object-fit: cover; object-position: left center; }
  .topbar-brand-title { font-size: 20px; letter-spacing: .12em; text-indent: .12em; }
}

.portrait-workspace.single { grid-template-columns: minmax(0, 1fr) !important; }
.portrait-workspace.single .portrait-preview-panel { max-width: 100%; }

/* 外治法文档导入 */
.external-doc-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px; border: 1px dashed #d3bdd9; border-radius: 9px; background: #fffdf9; cursor: pointer; }
.external-doc-drop:hover { border-color: #b68ec1; background: #fcf8fe; }
.external-doc-drop svg { width: 22px; height: 22px; color: var(--green); }
.external-doc-drop strong { color: var(--ink); font-size: 12px; }
.external-doc-drop span { flex: 1; min-width: 180px; color: var(--muted); font-size: 10px; }
.external-recognition { padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffdf9; }
.external-recognition-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.external-recognition-head strong { font-size: 11px; }
.external-recognition-head em { color: var(--muted-2); font-size: 9px; font-style: normal; }
.external-recognition-summary { margin-top: 8px; padding: 9px 10px; border-radius: 6px; background: #fbf7fc; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.external-recognition-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.external-recognition-chips span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 10px; background: var(--gold-soft); color: #7a5a24; font-size: 9px; }
.external-recognition-chips svg { width: 10px; height: 10px; }
@media (max-width: 760px) {
  .external-doc-drop { padding: 12px; }
  .external-doc-drop strong { font-size: 13px; }
  .external-doc-drop span { flex-basis: 100%; font-size: 11px; }
  .external-recognition-summary { font-size: 12px; }
}

/* 学院管理人员名单 */
.manager-list { display: flex; flex-direction: column; gap: 6px; }
.manager-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fffdf9; }
.manager-info { flex: 0 0 150px; min-width: 0; }
.manager-info strong { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.manager-info strong em { padding: 1px 4px; border-radius: 3px; background: var(--gold-soft); color: #7a5a24; font-size: 8px; font-style: normal; font-weight: 400; }
.manager-info span { display: block; margin-top: 2px; overflow: hidden; color: var(--muted-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.manager-perms { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.manager-perm { display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted-2); font-size: 9px; cursor: pointer; }
.manager-perm svg { width: 9px; height: 9px; }
.manager-perm.on { border-color: #bfa1c8; background: #f3eaf6; color: var(--green); }
.manager-panel .position-remove { flex: 0 0 auto; }
@media (max-width: 760px) {
  .manager-row { align-items: flex-start; flex-wrap: wrap; }
  .manager-info { flex: 1 1 100%; }
  .manager-perms { flex: 1 1 100%; }
  .manager-perm { font-size: 9.5px; }
}

/* 数据总览：分析卡与交叉矩阵 */
.analysis-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
.analysis-card { padding: 12px 13px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fffdf9; }
.an-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.an-dot { width: 6px; height: 6px; border-radius: 50%; }
.an-dot.green { background: #6c9a7a; } .an-dot.gold { background: #c5a15e; } .an-dot.red { background: #b46f5f; } .an-dot.plum { background: #9a6ba4; } .an-dot.blue { background: #6b8da6; }
.analysis-card > b { display: block; margin-top: 5px; font-family: var(--serif); font-size: 25px; color: var(--green); line-height: 1.1; }
.analysis-card > b small { font-family: var(--sans); font-size: 8px; font-weight: 400; color: var(--muted-2); }
.analysis-card > b.up { color: #437359; } .analysis-card > b.down { color: #a95442; }
.an-meter { height: 4px; margin-top: 7px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.an-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5a96, #c5a15e); }
.an-meter.negative i { background: #b46f5f; }
.analysis-card p { margin-top: 6px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.matrix-panel, .risk-panel { padding: 14px; }
.matrix-wrap { overflow-x: auto; }
.matrix-table { min-width: 690px; }
.matrix-row { display: grid; grid-template-columns: 108px repeat(9, minmax(36px, 1fr)) 44px; align-items: stretch; border-bottom: 1px solid var(--line-soft); }
.matrix-row:last-child { border-bottom: 0; }
.matrix-row > span { min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 4px 2px; font-size: 8.5px; text-align: center; }
.matrix-head > span { color: var(--muted-2); font-size: 8px; }
.matrix-label { justify-content: flex-start !important; flex-direction: column; align-items: flex-start !important; text-align: left !important; gap: 1px; }
.matrix-label b { color: var(--ink-soft); font-size: 9.5px; font-weight: 600; }
.matrix-label em { color: var(--muted-2); font-size: 7.5px; font-style: normal; }
.matrix-cell { margin: 2px; border-radius: 3px; color: var(--ink-soft); font-variant-numeric: tabular-nums; background: color-mix(in srgb, #7b4d86 var(--heat), #fffdf9); }
.matrix-total { color: var(--green); font-weight: 600; }
.matrix-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--muted-2); font-size: 8px; }
.matrix-legend i { width: 16px; height: 6px; border-radius: 2px; }
.matrix-legend em { margin-left: auto; font-style: normal; }
.risk-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; color: var(--muted); font-size: 8.5px; }
.risk-summary b { color: var(--green); }
.risk-list { display: flex; flex-direction: column; gap: 4px; }
.risk-row { display: flex; align-items: center; gap: 6px; padding: 6px 7px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fffdf9; }
.risk-avatar { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 8px; }
.risk-row > div { flex: 1; min-width: 0; }
.risk-row strong { display: block; font-size: 9.5px; }
.risk-row span { color: var(--muted-2); font-size: 7.5px; }
.risk-row em { color: #9a5b4e; font-size: 7.5px; font-style: normal; text-align: right; }

/* 数据大屏：信号、矩阵与风险 */
.screen-kpis { grid-template-columns: repeat(5, 1fr) !important; }
.screen-signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 9px; }
.screen-signals > div { padding: 7px 9px; border: 1px solid rgba(196,166,109,.15); border-radius: 5px; background: rgba(255,255,255,.025); }
.screen-signals span { display: block; color: rgba(225,211,230,.38); font-size: 7.5px; }
.screen-signals b { display: inline-block; margin-top: 2px; color: #e9dcc2; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.screen-signals b.up { color: #9cc4a9; } .screen-signals b.down { color: #d38b77; }
.screen-signals em { display: block; margin-top: 1px; color: rgba(225,211,230,.28); font-size: 7px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-matrix-scroll { overflow-x: auto; }
.matrix-wrap.dark .matrix-row { border-bottom-color: rgba(196,166,109,.1); }
.matrix-wrap.dark .matrix-label b { color: rgba(238,245,235,.75); }
.matrix-wrap.dark .matrix-label em, .matrix-wrap.dark .matrix-legend, .matrix-wrap.dark .matrix-head > span { color: rgba(225,211,230,.3); }
.matrix-wrap.dark .matrix-cell { color: rgba(246,238,224,.82); background: color-mix(in srgb, #b98bc4 var(--heat), #2b1a35); }
.matrix-wrap.dark .matrix-total { color: #d8bb83; }
.screen-risk-list { display: flex; flex-direction: column; gap: 5px; }
.screen-risk-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid rgba(196,166,109,.1); }
.screen-risk-row > span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(185,139,196,.16); color: rgba(246,238,224,.75); font-size: 7px; }
.screen-risk-row > div { flex: 1; min-width: 0; }
.screen-risk-row b { display: block; color: rgba(246,238,224,.78); font-size: 8px; font-weight: 500; }
.screen-risk-row em { display: block; color: rgba(225,211,230,.3); font-size: 7px; font-style: normal; }
.screen-risk-row i { max-width: 120px; color: #d39a85; font-size: 7px; font-style: normal; text-align: right; }
.screen-risk-empty { padding: 12px 0; color: rgba(225,211,230,.3); font-size: 8px; }

@media (max-width: 900px) {
  .analysis-band { grid-template-columns: 1fr 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .screen-kpis { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 760px) {
  .analysis-band { grid-template-columns: 1fr 1fr; gap: 7px; }
  .analysis-card { padding: 10px; }
  .analysis-card > b { font-size: 22px; }
  .matrix-panel, .risk-panel { padding: 11px; }
  .analysis-grid { gap: 9px; }
  .screen-kpis { grid-template-columns: 1fr 1fr !important; }
  .screen-signals { grid-template-columns: 1fr 1fr; }
  .screen-signals b { font-size: 16px; }
  .screen-risk-row i { max-width: 90px; }
}

.analysis-grid { align-items: stretch; }
.matrix-panel { display: flex; flex-direction: column; }
.matrix-panel .chart-head { flex: 0 0 auto; }
.matrix-insight { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 8.5px; }
.matrix-insight b { color: var(--green); font-weight: 600; }
.matrix-wrap.dark .matrix-insight { border-top-color: rgba(196,166,109,.12); color: rgba(225,211,230,.38); }
.matrix-wrap.dark .matrix-insight b { color: #d8bb83; }

/* 奖项 / 班级 / 高水平成果分析 */
.award-grid { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); margin-top: -2px; }
.award-panel, .high-panel, .class-panel { padding: 14px; }
.award-level-bars { display: flex; gap: 9px; margin: 10px 0 11px; }
.award-level-bars > div { flex: 1; min-width: 0; }
.award-level-bars span { display: block; color: var(--muted); font-size: 8px; }
.award-level-bars i { display: block; height: 5px; margin-top: 3px; border-radius: 3px; background: linear-gradient(90deg, #9a6ba4, #c5a15e); }
.award-level-bars b { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 9px; font-weight: 600; }
.award-matrix-wrap { overflow-x: auto; }
.award-matrix { min-width: 470px; }
.award-row { display: grid; grid-template-columns: 86px repeat(5, minmax(38px, 1fr)) 34px; border-bottom: 1px solid var(--line-soft); }
.award-row:last-child { border-bottom: 0; }
.award-row > span { display: flex; align-items: center; justify-content: center; min-height: 25px; padding: 3px 2px; font-size: 7.8px; }
.award-head > span { color: var(--muted-2); }
.award-dim { justify-content: flex-start !important; color: var(--ink-soft); font-size: 8.5px !important; }
.award-cell { margin: 2px; border-radius: 3px; background: color-mix(in srgb, #ad8344 var(--heat), #fffdf9); }
.award-total { color: #8a682b; font-weight: 600; }
.award-trend { margin-top: 4px; border-top: 1px solid var(--line-soft); padding-top: 5px; }
.high-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 9px; }
.high-kpis > div { padding: 7px 6px; border: 1px solid var(--line-soft); border-radius: 5px; background: #fffdf9; }
.high-kpis b { display: block; font-family: var(--serif); font-size: 17px; color: var(--green); }
.high-kpis span { display: block; color: var(--muted-2); font-size: 7px; }
.high-bars { display: flex; flex-direction: column; gap: 5px; }
.high-bars > div { display: flex; align-items: center; gap: 5px; font-size: 8px; color: var(--muted); }
.high-bars span { flex: 0 0 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.high-bars i { height: 5px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, #c5a15e, #9a6ba4); }
.high-bars b { flex: 0 0 14px; text-align: right; color: var(--ink-soft); }
.high-class-line { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.high-class-line span { padding: 3px 6px; border-radius: 4px; background: #f6eef7; color: var(--muted); font-size: 7.5px; }
.high-class-line b { margin-left: 3px; color: var(--green); }
.analysis-note { margin-top: 7px; color: var(--muted-2); font-size: 7.5px; line-height: 1.5; }
.class-panel { margin-bottom: 14px; }
.grade-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; padding: 8px 9px; border-radius: 6px; background: #fbf7fc; }
.grade-strip > div { display: flex; align-items: baseline; gap: 6px; }
.grade-strip strong { font-family: var(--serif); color: var(--green); font-size: 14px; }
.grade-strip span { color: var(--muted); font-size: 8px; }
.grade-strip em { color: var(--muted-2); font-size: 7.5px; font-style: normal; }
.grade-strip p { flex: 1 1 100%; margin: 0; color: var(--muted-2); font-size: 7.5px; }
.class-table-wrap { overflow-x: auto; }
.class-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 8px; }
.class-table th { padding: 6px 7px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-weight: 400; text-align: left; white-space: nowrap; }
.class-table td { padding: 6px 7px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.class-table td strong { color: var(--ink-soft); font-size: 8.5px; font-weight: 600; }
.class-table td b { color: var(--green); }
@media (max-width: 900px) {
  .award-grid { grid-template-columns: 1fr; }
  .high-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .award-level-bars { gap: 5px; }
  .award-level-bars span { font-size: 7px; }
  .high-kpis { grid-template-columns: 1fr 1fr; }
  .grade-strip > div { flex-wrap: wrap; gap: 3px 6px; }
}

.screen-bottom { grid-template-columns: 1.05fr .92fr .92fr 1fr !important; }
.screen-award-levels { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.screen-award-levels > div { display: flex; align-items: center; gap: 5px; color: rgba(225,211,230,.38); font-size: 7px; }
.screen-award-levels span { flex: 0 0 34px; }
.screen-award-levels i { height: 4px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, #9a6ba4, #c5a15e); }
.screen-award-levels b { flex: 0 0 12px; text-align: right; color: #d8bb83; }
.screen-high-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(196,166,109,.13); }
.screen-high-line b { font-family: var(--serif); color: #e9dcc2; font-size: 19px; }
.screen-high-line span { color: rgba(225,211,230,.4); font-size: 7px; }
.screen-high-line em { margin-left: auto; color: rgba(216,187,131,.7); font-size: 6.8px; font-style: normal; }
.screen-class-list { display: flex; flex-direction: column; gap: 4px; }
.screen-class-row { display: grid; grid-template-columns: minmax(0,1fr) 30px 28px auto; align-items: center; gap: 4px; padding: 5px 0; border-bottom: 1px solid rgba(196,166,109,.1); }
.screen-class-row > div b { display: block; color: rgba(246,238,224,.76); font-size: 8px; font-weight: 500; }
.screen-class-row > div em { display: block; color: rgba(225,211,230,.28); font-size: 6.8px; font-style: normal; }
.screen-class-row > span { color: #c8a66e; font-size: 8px; text-align: right; }
.screen-class-row > strong { color: #e9dcc2; font-family: var(--serif); font-size: 12px; text-align: right; }
.screen-class-row > i { color: rgba(225,211,230,.3); font-size: 6.8px; font-style: normal; text-align: right; white-space: nowrap; }
.screen-high-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.screen-high-grid > div { padding: 5px 6px; border: 1px solid rgba(196,166,109,.13); border-radius: 4px; }
.screen-high-grid b { display: block; color: #e9dcc2; font-family: var(--serif); font-size: 15px; }
.screen-high-grid span { display: block; color: rgba(225,211,230,.28); font-size: 6.5px; }
.screen-high-bars { display: flex; flex-direction: column; gap: 4px; }
.screen-high-bars > div { display: flex; align-items: center; gap: 4px; color: rgba(225,211,230,.35); font-size: 6.8px; }
.screen-high-bars span { flex: 0 0 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-high-bars i { height: 4px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, #c5a15e, #9a6ba4); }
.screen-high-bars b { flex: 0 0 11px; text-align: right; color: #d8bb83; }
@media (max-width: 1200px) {
  .screen-bottom { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 760px) {
  .screen-bottom { grid-template-columns: 1fr !important; }
  .screen-signals { grid-template-columns: 1fr 1fr; }
}

.analysis-grid { align-items: start; }
.award-grid { align-items: start; }
.award-trend-bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.award-trend-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.award-trend-bars span { color: var(--muted-2); font-size: 7px; }
.award-trend-bars i { width: 100%; flex: 1; display: flex; align-items: flex-end; border-radius: 3px; background: #f3edf4; }
.award-trend-bars i b { display: block; width: 100%; min-height: 3px; border-radius: 3px; background: linear-gradient(180deg, #c5a15e, #8f5a9a); }
.award-trend-bars em { color: var(--muted); font-size: 7.5px; font-style: normal; }
.risk-panel .risk-row:nth-child(n+5) { display: none; }

.analysis-note { display: flex; align-items: flex-start; gap: 3px; }
.analysis-note svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 2px; }

.high-extra { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: var(--muted-2); font-size: 7.5px; }
.high-extra b { color: var(--ink-soft); font-weight: 600; }

/* 班级授权 */
.class-auth-panel { max-width: 980px; }
.class-auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.class-auth-head h3 { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; }
.class-auth-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.class-auth-tabs { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.class-auth-tab { padding: 4px 9px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); font-size: 9px; cursor: pointer; }
.class-auth-tab.active { border-color: #b79ac0; background: #f3eaf6; color: var(--green); }
.class-auth-summary { display: flex; gap: 14px; flex-wrap: wrap; padding: 9px 0; color: var(--muted); font-size: 9px; }
.class-auth-summary b { color: var(--green); }
.class-auth-list { display: flex; flex-direction: column; gap: 4px; }
.class-auth-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fffdf9; }
.class-auth-person { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.class-auth-avatar { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 9px; }
.class-auth-person strong { display: block; color: var(--ink-soft); font-size: 10px; }
.class-auth-person span { display: block; color: var(--muted-2); font-size: 7.5px; }
.class-auth-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.auth-pill { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 8.5px; cursor: pointer; }
.auth-pill svg { width: 10px; height: 10px; }
.auth-pill.on { border-color: #b79ac0; background: #f3eaf6; color: var(--green); }
@media (max-width: 760px) {
  .class-auth-head { flex-direction: column; }
  .class-auth-tabs { justify-content: flex-start; }
  .class-auth-row { align-items: flex-start; flex-wrap: wrap; }
  .class-auth-person { flex: 1 1 100%; }
  .class-auth-actions { flex: 1 1 100%; justify-content: flex-start; }
}

/* 班主任账号 */
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.account-stats > div { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffdf9; }
.account-stats b { display: block; font-family: var(--serif); font-size: 22px; color: var(--green); line-height: 1.1; }
.account-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.account-stats em { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7.5px; font-style: normal; }
.account-panel { padding: 14px; }
.account-table-wrap { overflow-x: auto; }
.account-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.account-table th { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 8px; font-weight: 400; text-align: left; white-space: nowrap; }
.account-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 8.5px; vertical-align: middle; }
.account-person { display: flex; align-items: center; gap: 6px; }
.account-person > span { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 8px; }
.account-person strong { display: block; color: var(--ink-soft); font-size: 9.5px; }
.account-person em { display: block; color: var(--muted-2); font-size: 7px; font-style: normal; }
.account-code { padding: 2px 5px; border-radius: 3px; background: #f5eef7; color: #6d4c77; font: 8px ui-monospace, Consolas, monospace; }
.account-platforms { display: flex; gap: 3px; flex-wrap: wrap; }
.account-platform { display: inline-flex; align-items: center; gap: 2px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted-2); font-size: 7.5px; cursor: pointer; }
.account-platform svg { width: 8px; height: 8px; }
.account-platform.on { border-color: #b79ac0; background: #f3eaf6; color: var(--green); }
.account-platform:disabled { opacity: .45; cursor: not-allowed; }
.account-status { display: inline-block; padding: 2px 6px; border-radius: 9px; font-size: 7.5px; }
.account-status.unopened { background: #f3f0f4; color: var(--muted-2); }
.account-status.active { background: #eaf3ed; color: #447359; }
.account-status.disabled { background: #f7ece9; color: #9a5b4e; }
.account-actions { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.account-actions .btn { padding: 3px 5px; font-size: 7.5px; }
.password-rules { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px; }
.password-rules span { display: inline-flex; align-items: center; gap: 3px; color: #a05a4d; font-size: 7.5px; }
.password-rules span svg { width: 9px; height: 9px; }
.password-rules span.ok { color: #4f7d60; }
.password-rules span.ok svg { color: #4f7d60; }
.password-gen { margin-top: 4px; padding-left: 0; }
.input.invalid { border-color: #b45b4a; }
.credential-card { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid #d8c6df; border-radius: 7px; background: #fbf7fc; }
.credential-card div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.credential-card span { color: var(--muted); font-size: 8.5px; }
.credential-card strong { color: var(--ink-soft); font: 10px ui-monospace, Consolas, monospace; word-break: break-all; text-align: right; }
@media (max-width: 900px) { .account-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .account-panel { padding: 11px; }
  .account-stats { gap: 6px; }
  .account-stats b { font-size: 20px; }
  .account-table { min-width: 860px; }
}

.credential-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #d8c6df; border-radius: 8px; background: linear-gradient(90deg, #fbf4fc, #fffaf0); }
.credential-banner > div { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.credential-banner span { color: var(--muted); font-size: 8.5px; }
.credential-banner strong { color: var(--ink-soft); font: 10px ui-monospace, Consolas, monospace; }
.credential-banner em { color: #8a5c28; font: 10px ui-monospace, Consolas, monospace; font-style: normal; }
@media (max-width: 760px) {
  .credential-banner { align-items: flex-start; flex-direction: column; }
}

.account-type { display: inline-block; padding: 2px 6px; border-radius: 9px; font-size: 7.5px; white-space: nowrap; }
.account-type.counselor { background: #f1e7f4; color: #6f477a; }
.account-type.head { background: #edf3ef; color: #47725a; }


/* 校级：全校 / 学院视角 */
.school-college-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.school-college-card { padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffdf9; }
.scc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.scc-head span { color: var(--ink-soft); font-size: 9px; font-weight: 600; }
.scc-head strong { font-family: var(--serif); color: var(--green); font-size: 20px; }
.scc-head small { margin-left: 2px; font-family: var(--sans); color: var(--muted-2); font-size: 7px; font-weight: 400; }
.scc-metrics { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 5px; color: var(--muted-2); font-size: 7.5px; }
.scc-metrics b { color: var(--ink-soft); }
.scc-bar { height: 4px; margin-top: 7px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.scc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5a96, #c5a15e); }
.scc-foot { margin-top: 5px; color: var(--muted-2); font-size: 7.5px; }
.scc-foot b { color: var(--green); }
.school-query-hint { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 150px; color: var(--muted); font-size: 9px; text-align: center; }
.school-query-hint svg { width: 22px; height: 22px; color: #b79ac0; }
.school-query-hint strong { display: block; color: var(--ink-soft); font-size: 11px; }
.school-query-hint span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.school-outcome-matrix .matrix-row { grid-template-columns: 128px repeat(5, minmax(38px, 1fr)) 44px; }
.school-outcome-matrix { min-width: 520px; }
.school-screen-bottom { grid-template-columns: 1.1fr 1.1fr 1.2fr !important; }
.school-portrait-table { min-width: 980px; }
.school-portrait-table th { font-size: 7px; padding: 5px 4px; }
.school-portrait-table td { font-size: 7.5px; padding: 5px 4px; }
.school-college-bars, .backend-quality { display: flex; flex-direction: column; gap: 5px; margin-top: 9px; }
.school-college-bars > div { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.school-college-bars span { flex: 0 0 82px; }
.school-college-bars i { height: 5px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, #c5a15e, #9a6ba4); }
.school-college-bars b { flex: 0 0 16px; text-align: right; color: var(--ink-soft); }
.backend-quality > div { display: flex; align-items: center; gap: 5px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 8px; }
.backend-quality span { flex: 0 0 82px; color: var(--ink-soft); }
.backend-quality em { flex: 1; color: var(--muted-2); font-style: normal; }
.backend-quality b { color: #4f7d60; font-weight: 500; }
.backend-quality b.warn { color: #a05a4d; }
@media (max-width: 900px) { .school-college-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .school-college-grid { grid-template-columns: 1fr; }
  .school-outcome-matrix .matrix-row { grid-template-columns: 100px repeat(5, minmax(34px, 1fr)) 38px; }
  .school-screen-bottom { grid-template-columns: 1fr !important; }
}

/* 班主任画像自然语言搜索 */
.portrait-nl-search { margin-bottom: 13px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fffdf9; }
.pnl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pnl-head h3 { display: flex; align-items: center; gap: 5px; font-family: var(--serif); color: var(--ink-soft); font-size: 13px; letter-spacing: .04em; }
.pnl-head p { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.pnl-form { display: flex; gap: 6px; margin-top: 9px; }
.pnl-form .input-icon { flex: 1; }
.pnl-form .btn { flex: 0 0 auto; }
.pnl-examples { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.pnl-examples button { padding: 2px 6px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; color: var(--muted); font-size: 7.5px; cursor: pointer; }
.pnl-results { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 9px; }
.pnl-result { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; text-align: left; cursor: pointer; }
.pnl-result .avatar { width: 25px; height: 25px; flex: 0 0 25px; font-size: 7px; }
.pnl-result > div { flex: 1; min-width: 0; }
.pnl-result strong { display: block; color: var(--ink-soft); font-size: 9px; }
.pnl-result span { display: block; color: var(--muted-2); font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnl-result > b { color: var(--green); font-family: var(--serif); font-size: 15px; font-weight: 500; }
.pnl-empty { margin-top: 8px; color: var(--muted-2); font-size: 8px; }
@media (max-width: 760px) {
  .portrait-nl-search { padding: 10px; }
  .pnl-form { flex-direction: column; }
  .pnl-results { grid-template-columns: 1fr; }
}

/* 学生端身份切换 */
.identity-menu { display: flex; flex-direction: column; gap: 5px; }
.identity-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fffdf9; text-align: left; cursor: pointer; }
.identity-option:hover { border-color: #cbb3d1; background: #fbf6fc; }
.identity-option.active { border-color: #c5a15e; background: #fdf8ed; }
.identity-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.identity-icon svg { width: 13px; height: 13px; }
.identity-copy { flex: 1; min-width: 0; }
.identity-copy strong { display: block; color: var(--ink-soft); font-size: 10px; }
.identity-copy em { display: block; margin-top: 1px; color: var(--muted-2); font-size: 8px; font-style: normal; }
.identity-current { padding: 2px 6px; border-radius: 9px; background: #f1e2c8; color: #7a5a24; font-size: 7.5px; }
.identity-arrow { color: var(--muted-2); }
.identity-arrow svg { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .identity-option { padding: 10px; }
  .identity-copy strong { font-size: 11px; }
}

/* 学院管理：班主任管理与重点通知 */
.role-notice-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e0c28b; border-radius: 8px; background: linear-gradient(90deg, #fff7e6, #fbf1fa); }
.rna-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #f0dfbf; color: #8b6428; }
.rna-icon svg { width: 15px; height: 15px; }
.role-notice-alert > div:nth-child(2) { flex: 1; min-width: 0; }
.role-notice-alert strong { display: block; color: #74521f; font-size: 9.5px; }
.role-notice-alert p { margin-top: 2px; overflow: hidden; color: #8b7044; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.role-notice-alert .btn { flex: 0 0 auto; }
.coordination-inbox { margin-bottom: 12px; padding: 12px 13px; border: 1px solid #e0c28b; border-radius: 8px; background: #fffdf8; }
.coord-notice-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #f0e4cf; }
.coord-notice-main { flex: 1; min-width: 0; }
.coord-notice-title { display: flex; align-items: center; gap: 5px; }
.coord-notice-title strong { color: var(--ink-soft); font-size: 9.5px; }
.coord-notice-main p { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.coord-notice-main em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.coord-important { padding: 1px 5px; border-radius: 8px; background: #f4dfb9; color: #7a551d; font-size: 7px; white-space: nowrap; }
.coord-read { display: inline-flex; align-items: center; gap: 2px; color: #4f7d60; font-size: 7.5px; white-space: nowrap; }
.coord-read svg { width: 10px; height: 10px; }
.coordination-compose { padding: 14px; }
.coord-classes { display: flex; gap: 4px 8px; flex-wrap: wrap; color: var(--muted); font-size: 8px; }
.coord-classes label { display: inline-flex; align-items: center; gap: 3px; }
.coord-class-list { display: flex; flex-direction: column; gap: 4px; }
.coord-class-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.coord-class-row > div { flex: 1; }
.coord-class-row strong { display: block; color: var(--ink-soft); font-size: 9px; }
.coord-class-row span { display: block; color: var(--muted-2); font-size: 7.5px; }
.coord-class-row em { color: var(--muted); font-size: 7.5px; font-style: normal; }
.coord-list { display: flex; flex-direction: column; gap: 5px; }
.coord-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fffdf9; }
.coord-row-main { flex: 1; min-width: 0; }
.coord-row-main > div { display: flex; align-items: center; gap: 5px; }
.coord-row-main strong { color: var(--ink-soft); font-size: 9.5px; }
.coord-row-main p { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.coord-row-main em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.coord-readbar { flex: 0 0 45px; text-align: right; }
.coord-readbar b { display: block; color: var(--green); font-family: var(--serif); font-size: 15px; }
.coord-readbar span { color: var(--muted-2); font-size: 7px; }
.coord-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.coord-actions small { color: var(--muted-2); font-size: 7px; }
@media (max-width: 760px) {
  .role-notice-alert { align-items: flex-start; flex-wrap: wrap; }
  .role-notice-alert .btn { margin-left: 40px; }
  .coord-row { align-items: flex-start; flex-wrap: wrap; }
  .coord-row-main { flex: 1 1 100%; }
  .coord-readbar { flex: 0 0 auto; text-align: left; }
  .coord-actions { flex: 1; justify-content: flex-end; }
}

/* 近期待办：个人标签放在详情前 */
.cal-event > .memo-tag { flex: 0 0 auto; }
.memo-tag.personal { background: #f1e4f3; color: #6f477a; }

.cal-memo-title { display: block; }
.cal-memo-title strong { display: inline; }
.cal-memo-title .memo-tag.personal { margin-left: 5px; vertical-align: middle; }


/* 记录成长：AI 素质维度推荐 */
.dimension-ai-hint { margin-top: 4px; color: var(--muted-2); font-size: 7.5px; line-height: 1.5; }
.dimension-ai-hint b { color: var(--green); font-weight: 600; }
.dimension-ai-hint .btn { padding: 0 3px; font-size: 7.5px; vertical-align: baseline; }
.dimension-ai-hint svg { width: 9px; height: 9px; vertical-align: -1px; }


/* 科研知识学习 · 朋辈学习 */
.peer-paper-grid { align-items: stretch; }
.peer-paper-card .rk-top { flex-wrap: wrap; }
.peer-paper-card .rk-new { background: #e9f2ec; color: #477259; }
.peer-paper-byline { margin-top: 4px !important; color: #6d4c77 !important; font-size: 8.5px !important; font-style: normal; }
.peer-paper-card h3 { line-height: 1.55; }
.peer-paper-card .rk-foot { margin-top: auto; }

/* 待办标题后的“个人”小标签：同排、短标签 */
.cal-memo-title { display: flex !important; align-items: center !important; gap: 5px !important; flex-wrap: nowrap !important; min-width: 0; }
.cal-memo-title strong { display: block !important; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-memo-title .memo-tag.personal {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 1px 4px !important;
  background: #f1e4f3 !important;
  color: #6f477a !important;
  font-size: 6.5px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  vertical-align: middle;
}

/* 记录成长：按类型分类展示字段 */
.capture-type-section { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 2px 0 -2px; padding: 7px 9px; border-left: 2px solid #b48645; border-radius: 0 4px 4px 0; background: #fffaf0; }
.capture-type-section[hidden] { display: none !important; }
.capture-type-section span { color: #9a7a42; font-size: 7.5px; letter-spacing: .08em; }
.capture-type-section strong { color: var(--ink-soft); font-size: 9.5px; }
.capture-type-section em { color: var(--muted-2); font-size: 7.5px; font-style: normal; }

/* 通知发布：学生通知 / 班主任重点 */
.notice-mode-tabs { display: flex; gap: 5px; margin: 0 0 12px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fbf7fc; width: fit-content; }
.notice-mode-tabs button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.notice-mode-tabs button.active { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(76,45,86,.08); }
.notice-mode-tabs svg { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .notice-mode-tabs { width: 100%; }
  .notice-mode-tabs button { flex: 1; justify-content: center; }
}

/* 班主任/班委查看学院重点通知 */
.coord-notice-preview { margin-top: 3px !important; color: var(--muted-2) !important; font-size: 7.5px !important; line-height: 1.55 !important; }
.role-notice-detail-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 8px; }
.role-notice-detail-content { padding: 12px 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.9; }
.role-notice-detail-content p { margin: 0 0 7px; }
.role-notice-attachments { padding-top: 8px; border-top: 1px solid var(--line-soft); }

/* 班主任：发布班级通知 */
.head-notice-composer { margin-bottom: 12px; }
.head-notice-history { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.head-notice-history > div { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 3px 0; }
.head-notice-history strong { color: var(--ink-soft); font-size: 8.5px; font-weight: 500; }
.head-notice-history em { color: var(--muted-2); font-size: 7px; font-style: normal; white-space: nowrap; }

.head-notice-composer .section-title h3 { display: flex; align-items: center; gap: 5px; }
.head-notice-composer .section-title h3 svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--gold); }

/* 班主任：AI 班级通知初稿 */
.head-ai-prompt textarea { min-height: 92px; }
.head-ai-examples { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.head-ai-examples button { padding: 3px 7px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fff; color: var(--muted); font-size: 7.5px; cursor: pointer; }
.head-ai-examples button:hover { border-color: #c9afd0; color: var(--green); }
.head-ai-actions { display: flex; gap: 5px; align-items: center; }

/* 生产登录门 */
body.qh-auth-locked { overflow: hidden; }
#qh-auth-gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #f5e9dc 0, transparent 34%), radial-gradient(circle at 85% 80%, #e7efe9 0, transparent 36%), #fbf9f5; }
.qh-auth-card { width: min(390px, 96vw); padding: 26px 24px 20px; border: 1px solid #e5d8c6; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(53,37,62,.12); }
.qh-auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.qh-auth-seal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #5b7b6e; color: #f3e3bd; font-family: var(--serif); font-size: 18px; }
.qh-auth-brand div { display: flex; flex-direction: column; gap: 1px; }
.qh-auth-brand b { color: var(--ink); font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.qh-auth-brand em { color: var(--muted-2); font-size: 7px; font-style: normal; }
.qh-auth-card h1 { margin: 0 0 5px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .04em; }
.qh-auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.qh-auth-card label { display: block; margin: 10px 0 4px; color: var(--ink-soft); font-size: 8px; }
.qh-auth-card input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #dfd5c8; border-radius: 7px; outline: none; background: #fffdfa; color: var(--ink); font-size: 10px; }
.qh-auth-card input:focus { border-color: #9db5a9; box-shadow: 0 0 0 3px rgba(94,124,111,.08); }
.qh-auth-card .btn { width: 100%; height: 38px; margin-top: 14px; font-size: 10px; }
.qh-auth-error { min-height: 15px; margin-top: 7px; color: #a94e48; font-size: 8px; }
.qh-auth-card small { display: block; margin-top: 12px; color: var(--muted-3); font-size: 7px; text-align: center; }
@media (max-width: 560px) { .qh-auth-card { padding: 22px 18px 17px; } .qh-auth-card h1 { font-size: 20px; } }

/* 正式会话工具 */
#qh-session-tools { position: fixed; left: 14px; bottom: 14px; z-index: 9000; display: flex; gap: 4px; padding: 3px; border: 1px solid #e4d8c9; border-radius: 8px; background: rgba(255,253,249,.94); box-shadow: 0 4px 14px rgba(53,37,62,.10); }
#qh-session-tools button { padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 7px; cursor: pointer; }
#qh-session-tools button:hover { background: #f4ece0; color: var(--green); }
#qh-password-panel { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 18px; background: rgba(40,31,45,.35); backdrop-filter: blur(2px); }
.qh-password-card { width: min(360px, 94vw); padding: 22px; border: 1px solid #e5d8c6; border-radius: 12px; background: #fffdf9; box-shadow: 0 18px 50px rgba(53,37,62,.18); }
.qh-password-card h2 { margin: 0 0 5px; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.qh-password-card p { margin: 0 0 12px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.qh-password-card label { display: block; margin: 8px 0 3px; color: var(--ink-soft); font-size: 8px; }
.qh-password-card input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #dfd5c8; border-radius: 6px; background: #fff; color: var(--ink); font-size: 10px; }
.qh-password-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 12px; }
.qh-password-actions .btn { font-size: 8px; }
@media (max-width: 760px) { #qh-session-tools { bottom: 70px; } }

#adv-class-wrap[hidden] { display: none !important; }

/* 学生批量导入账号 */
.student-credentials { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.student-credentials .section-title { margin: 0 0 7px; }
.credential-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 7px; }
.credential-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.credential-table th { padding: 6px 8px; background: #faf5fb; color: var(--muted); font-size: 7.5px; font-weight: 500; text-align: left; }
.credential-table td { padding: 6px 8px; border-top: 1px solid #f0e9f1; color: var(--ink-soft); font-size: 8px; }
.credential-table code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }

.category-select-row { display: flex; align-items: center; gap: 5px; }
.category-select-row .select { flex: 1; }
.category-select-row .btn { white-space: nowrap; }

/* 通知附件 */
.notice-attachment-field { margin-top: 2px; }
.notice-attachment-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-attachment-list { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.notice-attachment-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fcfafc; }
.notice-attachment-row .attachment-icon { width: 30px; height: 24px; font-size: 7px; }
.notice-attachment-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notice-attachment-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 8px; font-weight: 500; }
.notice-attachment-row em { color: var(--muted-2); font-size: 7px; font-style: normal; }

.attachment-preview-tip { margin: 8px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.attachment-text-preview { max-height: 460px; overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--line-soft); border-radius: 7px; background: #fbf9fb; color: var(--ink-soft); font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.attachment-download-preview { padding: 28px 20px; text-align: center; }
.attachment-download-preview .attachment-icon { width: 52px; height: 42px; margin: 0 auto 12px; font-size: 10px; }
.attachment-download-preview h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.attachment-download-preview p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }

/* 学生个人信息：1—5 星 */
.star-rating { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.rating-star { display: inline-flex; color: #d8c7b0; line-height: 1; }
.rating-star svg { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.rating-star.filled { color: #c99a4a; }
.rating-star.filled svg { fill: currentColor; stroke: currentColor; }
.profile-index .star-rating { display: flex; justify-content: flex-end; margin-top: 7px; gap: 3px; }
.profile-index .rating-star svg { width: 17px; height: 17px; }
.profile-index em { display: block; margin-top: 3px; }
.dimension-card .star-rating { margin-top: 1px; gap: 1px; }
.dimension-card .rating-star svg { width: 10px; height: 10px; }
.dimension-card.empty-dim .rating-star { color: #ddd1c1; }
.dimension-score-big { width: auto; height: auto; flex: 0 0 auto; min-width: 58px; padding: 13px 10px; border-radius: 10px; }
.dimension-score-big .star-rating { gap: 2px; }
.dimension-score-big .rating-star svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .profile-index .star-rating { justify-content: flex-start; }
  .profile-index .rating-star svg { width: 15px; height: 15px; }
}

/* 活动报名放在通知内容下方，避免与右侧忽略/重要误触 */
.notice-signup-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(76,45,86,.08); }
.notice-signup-row .signup-mini { flex: 0 0 auto; min-width: 78px; }
.notice-signup-row > span { color: var(--muted-2); font-size: 7.5px; }
@media (max-width: 760px) {
  .notice-signup-row { flex-wrap: wrap; gap: 5px; }
}

/* 记录成长：按类型切换的字段必须真正隐藏 */
.field[hidden], .form-grid[hidden], .paper-capture[hidden] { display: none !important; }
