/* 评老师独立页沿用论坛 community.css 的米白、暖红与墨绿色板。
   页面不加载论坛登录/埋点脚本；专用样式避免受论坛弹窗与网格规则影响。 */
:root { color-scheme: light; --teacher-bg: #f7f6f2; --teacher-card: #fffffd; --teacher-soft: #f0eee8; --teacher-hero: #f1ece0; --teacher-line: #e5e2da; --teacher-ink: #282b28; --teacher-muted: #60645e; --teacher-brand: #9d381f; --teacher-green: #3f6653; --teacher-score: #ba6c12; --teacher-tag: #f6efdf; --teacher-danger: #b91c1c; }
:root { --teacher-ease: cubic-bezier(.22, 1, .36, 1); }
.dark { color-scheme: dark; --teacher-bg: #151613; --teacher-card: #1d1f1a; --teacher-soft: #292b25; --teacher-hero: #29271f; --teacher-line: #3a3c33; --teacher-ink: #eceee7; --teacher-muted: #b5b8ac; --teacher-brand: #f4a88f; --teacher-green: #a3cbb0; --teacher-score: #edb255; --teacher-tag: #393124; --teacher-danger: #fca5a5; }
* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; background: var(--teacher-bg); color: var(--teacher-ink); line-height: 1.6; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--teacher-brand); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.teacher-topbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--teacher-line); background: var(--teacher-card); padding: 14px max(28px, calc((100vw - 1224px) / 2)); padding-right: max(96px, calc((100vw - 1224px) / 2 + 68px)); }
.teacher-brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.teacher-brand strong { font-size: 17px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #9d381f; color: #fff; border-radius: 11px; font-weight: 700; }
.brand-section { border-left: 1px solid var(--teacher-line); margin-left: 7px; padding-left: 17px; font-size: 12px; color: var(--teacher-muted); }
.back-link { font-size: 12px; color: var(--teacher-muted); white-space: nowrap; }
.back-link:hover, .text-button:hover { color: var(--teacher-brand); }
.teacher-main { max-width: 1184px; padding: 34px 28px 100px; margin: 0 auto; }
.teacher-hero { padding: 30px 34px 23px; border: 1px solid var(--teacher-line); border-radius: 18px; background: var(--teacher-hero); }
.teacher-eyebrow, .dialog-eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .13em; color: var(--teacher-green); }
.teacher-eyebrow span { margin: 0 9px; opacity: .55; }
.teacher-hero h1 { margin-top: 16px; font-size: clamp(25px, 3vw, 35px); font-weight: 750; letter-spacing: -.045em; line-height: 1.4; }
.title-dot { display: inline-block; width: 7px; height: 7px; margin-left: 9px; vertical-align: .2em; border-radius: 50%; background: var(--teacher-brand); }
.teacher-hero > p { color: var(--teacher-muted); font-size: 13px; margin-top: 8px; }
.hero-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--teacher-line); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.teacher-share-button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--teacher-green); border-radius: 9px; color: var(--teacher-green); background: var(--teacher-card); font-size: 12px; font-weight: 650; transition: transform 160ms var(--teacher-ease), background-color 160ms var(--teacher-ease), box-shadow 180ms var(--teacher-ease); }
.teacher-share-button svg { width: 16px; height: 16px; }
.teacher-share-button:hover { background: var(--teacher-tag); box-shadow: 0 4px 12px #2c57301c; transform: translateY(-1px); }
.teacher-share-button:active { transform: scale(.98); }
.anonymity-label { display: flex; align-items: center; gap: 7px; color: var(--teacher-green); font-size: 11px; }
.anonymity-label svg { width: 15px; height: 15px; }
.text-button { color: var(--teacher-muted); background: none; font-size: 11px; padding: 4px 0; }
.teacher-browser { padding-top: 29px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: 17px; }
.section-heading h3 { font-size: 15px; }
.muted { color: var(--teacher-muted); font-size: 12px; font-weight: 400; }
.teacher-search-form { display: flex; align-items: center; gap: 18px; }
.teacher-search-box { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; border: 1px solid var(--teacher-line); border-radius: 11px; padding: 5px 5px 5px 15px; background: var(--teacher-card); color: var(--teacher-muted); }
.teacher-search-box:focus-within { border-color: var(--teacher-brand); }
.teacher-search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; padding: 9px 0; }
.teacher-search-box input:focus-visible { outline: 0; }
.search-submit { min-height: 37px; border-radius: 7px; background: var(--teacher-soft); padding: 6px 15px; font-size: 12px; }
.search-submit:hover { background: var(--teacher-line); }
.teacher-sort { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--teacher-muted); }
.teacher-sort select { border: 1px solid var(--teacher-line); border-radius: 9px; background: var(--teacher-card); color: var(--teacher-ink); min-height: 47px; padding: 8px 30px 8px 12px; font-size: 12px; }
.flow-hint { font-size: 11px; color: var(--teacher-muted); margin-top: 11px; }
.status-message { font-size: 12px; color: var(--teacher-muted); line-height: 1.8; overflow-wrap: anywhere; }
.status-message:not(:empty) { margin: 14px 0; }
.status-message.is-error { color: var(--teacher-danger); }
.status-message.is-success { color: var(--teacher-green); }
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-top: 23px; }
.teacher-card { min-width: 0; width: 100%; aspect-ratio: 1 / 1; display: flex; flex-direction: column; text-align: left; padding: 20px 19px 17px; border: 1px solid var(--teacher-line); border-radius: 14px; background: var(--teacher-card); transition: border-color .16s, box-shadow .16s; }
.teacher-card:hover { border-color: #d2b487; box-shadow: 0 4px 15px #5f4b2310; }
.teacher-card-name { font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.teacher-card-name .subject { font-size: 12px; font-weight: 400; color: var(--teacher-muted); }
.teacher-card-top { display: flex; align-items: flex-start; gap: 7px; width: 100%; }
.teacher-card-top .teacher-card-name { min-width: 0; flex: 1; }
.teacher-program { flex-shrink: 0; font-size: 9px; line-height: 1.5; letter-spacing: .04em; color: var(--teacher-green); border: 1px solid var(--teacher-line); border-radius: 4px; padding: 2px 5px; }
.teacher-card-middle { flex: 1; min-height: 87px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 9px; }
.teacher-card-score { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.04em; color: var(--teacher-score); line-height: 1.25; font-variant-numeric: tabular-nums; }
.teacher-card-score .score-star { font-size: .6em; margin-right: 5px; vertical-align: .08em; }
.teacher-card-count { margin-top: 5px; color: var(--teacher-muted); font-size: 11px; }
.teacher-card-zero { text-align: center; font-size: 11px; color: var(--teacher-muted); line-height: 1.7; }
.teacher-card-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; justify-content: center; }
.teacher-tag { max-width: 100%; display: inline-block; padding: 3px 8px; color: var(--teacher-muted); font-size: 10px; line-height: 1.7; border-radius: 5px; background: var(--teacher-tag); overflow-wrap: anywhere; }
.teacher-empty { text-align: center; padding: 52px 20px 40px; border: 1px dashed var(--teacher-line); border-radius: 14px; margin-top: 23px; }
.empty-mark { display: block; color: var(--teacher-score); font-size: 26px; margin-bottom: 14px; }
.teacher-empty h3 { font-size: 15px; }
.teacher-empty p { color: var(--teacher-muted); font-size: 12px; margin-top: 8px; }
.list-actions { display: flex; justify-content: center; gap: 10px; }
.list-actions:not(:empty) { margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; }
.button-primary { background: #9d381f; color: #fff; border: 1px solid #9d381f; }
.button-primary:hover { background: #b8482b; }
.button-secondary { background: var(--teacher-card); color: var(--teacher-ink); border: 1px solid var(--teacher-line); }
.button-secondary:hover { background: var(--teacher-soft); }
.teacher-add { margin-top: 26px; border: 1px solid var(--teacher-line); padding: 22px; border-radius: 13px; background: var(--teacher-card); }
.teacher-add-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.teacher-add-intro h3 { font-size: 14px; }
.teacher-add-intro p { color: var(--teacher-muted); font-size: 12px; margin-top: 5px; }
.teacher-add-intro > button { flex-shrink: 0; }
#teacherAddForm { border-top: 1px solid var(--teacher-line); padding-top: 19px; margin-top: 19px; }
.add-fields { display: grid; grid-template-columns: 1fr 1fr minmax(130px, .65fr); gap: 17px; }
.add-fields label, #teacherReportForm label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.add-fields input, .add-fields select, #teacherReviewBody, #teacherReportForm textarea, #teacherReportForm select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--teacher-line); border-radius: 8px; background: var(--teacher-bg); font-size: 13px; }
textarea { resize: vertical; min-height: 88px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.form-footer > button { flex-shrink: 0; }
.form-note { color: var(--teacher-muted); font-size: 11px; line-height: 1.8; }
.teacher-footer { margin-top: 50px; border-top: 1px solid var(--teacher-line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--teacher-muted); font-size: 10px; }
.teacher-fab { position: fixed; bottom: max(25px, env(safe-area-inset-bottom)); right: 28px; z-index: 20; width: 78px; height: 78px; border-radius: 50%; background: #9d381f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 18px #5d2f2530; gap: 0; }
.teacher-fab > span:first-child { font-size: 26px; line-height: 1; font-weight: 300; }
.teacher-fab > span:last-child { font-size: 11px; margin-top: 5px; }
.teacher-fab:hover { background: #b8482b; }
.teacher-dialog { color: var(--teacher-ink); border: 1px solid var(--teacher-line); border-radius: 18px; background: var(--teacher-card); padding: 28px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 70px #16110d24; }
.teacher-dialog::backdrop { background: #17191070; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.consent-dialog { padding: 32px; }
.consent-dialog h2 { font-size: 23px; margin-top: 13px; letter-spacing: -.03em; }
.consent-copy { font-size: 13px; color: var(--teacher-muted); line-height: 2.05; margin-top: 20px; white-space: pre-line; }
.teaching-countdown { margin-top: 17px; color: var(--teacher-brand); }
.consent-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 24px; margin-top: 23px; border-top: 1px solid var(--teacher-line); }
.detail-dialog { width: min(730px, calc(100% - 32px)); overflow: hidden; }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-dialog > .dialog-heading { flex-shrink: 0; }
.detail-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.teacher-picker h3 { font-size: 19px; }
.teacher-picker .teacher-search-form { margin-top: 14px; }
.teacher-picker-results { display: grid; gap: 9px; margin-top: 16px; }
.teacher-picker-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--teacher-line); border-radius: 9px; background: var(--teacher-bg); text-align: left; overflow-wrap: anywhere; }
.teacher-picker-choice:hover { border-color: var(--teacher-brand); }
#teacherPickerMore { margin-top: 16px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 19px; }
.close-button { width: 34px; height: 34px; border-radius: 50%; background: var(--teacher-soft); color: var(--teacher-muted); font-size: 24px; line-height: 1; flex-shrink: 0; }
.detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 23px; }
.detail-summary h3 { font-size: 23px; overflow-wrap: anywhere; line-height: 1.4; }
.detail-subject { color: var(--teacher-muted); font-size: 13px; margin-top: 7px; }
.detail-subject-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.detail-subject-row .detail-subject { margin-top: 0; }
.detail-score { text-align: center; flex-shrink: 0; }
.detail-score strong { color: var(--teacher-score); font-size: 38px; letter-spacing: -.045em; font-weight: 700; }
.detail-score p { font-size: 10px; color: var(--teacher-muted); }
.detail-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }
.detail-dimension { display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid var(--teacher-line); border-radius: 9px; padding: 10px 13px; }
.detail-dimension span { color: var(--teacher-muted); font-size: 11px; }
.detail-dimension strong { font-size: 16px; font-weight: 650; color: var(--teacher-ink); }
.teacher-review-form { padding: 21px; background: var(--teacher-bg); border: 1px solid var(--teacher-line); border-radius: 12px; }
.teacher-review-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border: 1px solid var(--teacher-line); border-radius: 10px; color: var(--teacher-brand); background: var(--teacher-bg); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.teacher-review-toggle::-webkit-details-marker { display: none; }
.teacher-review-toggle::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; }
.teacher-review-toggle:focus-visible { outline: 2px solid var(--teacher-brand); outline-offset: -2px; }
.teacher-review-panel[open] > .teacher-review-toggle { margin-bottom: 12px; }
.teacher-review-panel[open] > .teacher-review-toggle::after { content: '−'; }
.anonymous-chip { font-size: 10px; color: var(--teacher-green); border: 1px solid var(--teacher-line); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .review-label { font-size: 12px; margin-bottom: 9px; }
.rating-options { display: flex; gap: 8px; }
.quality-options .rating-choice > span { min-height: 61px; flex-direction: column; gap: 0; padding: 5px; }
.quality-options .rating-choice .rating-star { display: inline; min-height: 0; padding: 0; border: 0; background: none; font-size: 25px; color: var(--teacher-score); line-height: 1.3; }
.quality-options .rating-choice small { font-size: 10px; }
.difficulty-fieldset, .retake-fieldset { margin-top: 19px; }
.dimension-note { font-size: 10px; color: var(--teacher-muted); margin-top: 7px; }
.retake-options { display: flex; gap: 8px; }
.review-dimensions { display: flex; gap: 12px; margin-top: 7px; font-size: 10px; color: var(--teacher-muted); flex-wrap: wrap; }
.rating-choice { position: relative; flex: 1; }
.rating-choice input, .tag-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-choice span { display: flex; align-items: center; justify-content: center; min-height: 43px; gap: 4px; border: 1px solid var(--teacher-line); border-radius: 8px; background: var(--teacher-card); color: var(--teacher-muted); font-size: 13px; cursor: pointer; }
.rating-choice input:checked + span { border-color: var(--teacher-score); background: var(--teacher-tag); color: var(--teacher-score); font-weight: 700; }
.rating-choice input:focus-visible + span, .tag-choice input:focus-visible + span { outline: 2px solid var(--teacher-brand); outline-offset: 3px; }
.tag-fieldset { margin-top: 19px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-choice { position: relative; }
.tag-choice span { display: inline-block; border: 1px solid var(--teacher-line); border-radius: 6px; background: var(--teacher-card); color: var(--teacher-muted); padding: 5px 9px; font-size: 11px; cursor: pointer; }
.tag-choice input:checked + span { color: var(--teacher-brand); border-color: var(--teacher-brand); background: var(--teacher-tag); }
.tag-choice input:disabled + span { opacity: .45; cursor: default; }
#teacherTagHint { min-height: 20px; margin-top: 6px; }
.review-label { display: block; margin-top: 12px; }
#teacherReviewBody { display: block; background: var(--teacher-card); line-height: 1.8; }
.review-note-row { display: flex; gap: 15px; justify-content: space-between; margin-top: 7px; font-size: 10px; color: var(--teacher-muted); }
.review-note-row > span:last-child { flex-shrink: 0; }
.teacher-reviews { margin-top: 28px; }
.teacher-review { padding: 19px 0; border-top: 1px solid var(--teacher-line); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--teacher-muted); }
.review-stars { font-size: 14px; color: var(--teacher-score); letter-spacing: 1px; }
.review-date { margin-left: auto; font-size: 10px; }
.review-body { font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
.review-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.review-report { flex-shrink: 0; align-self: start; font-size: 10px; color: var(--teacher-muted); background: none; min-height: 28px; padding: 3px 7px; }
.review-report:hover { color: var(--teacher-danger); }
#teacherReviewsMore { display: flex; margin: 17px auto 0; }
.report-dialog { width: min(440px, calc(100% - 32px)); }
#teacherReportForm label { margin-top: 17px; }
#teacherReportForm .form-footer { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { position: fixed; inset: 30% 16px auto; padding: 30px; background: var(--teacher-card); border: 1px solid var(--teacher-line); text-align: center; }
.teacher-access-gate { max-width: 560px; margin: min(18vh, 160px) auto 40px; padding: 34px; border: 1px solid var(--teacher-line); border-radius: 18px; background: var(--teacher-card); width: calc(100% - 36px); }
.teacher-access-gate h1 { margin-top: 13px; font-size: 24px; line-height: 1.5; }
.teacher-access-gate p { margin-top: 13px; color: var(--teacher-muted); font-size: 13px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.access-notice { padding: 12px 14px; margin-bottom: 19px; font-size: 12px; border: 1px solid var(--teacher-line); border-radius: 9px; background: var(--teacher-tag); color: var(--teacher-muted); }
@media (max-width: 1000px) { .teacher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .teacher-main { padding: 22px 18px 100px; } .teacher-hero { padding: 24px 23px 19px; } .teacher-search-form { flex-wrap: wrap; gap: 12px; } .teacher-search-box { flex-basis: 100%; } .teacher-sort { margin-left: auto; } .teacher-sort select { min-height: 37px; } .teacher-card { padding: 17px 15px 14px; } .teacher-card-score { font-size: 36px; } .teacher-add-intro { align-items: flex-start; flex-direction: column; gap: 13px; } .form-footer { align-items: flex-start; flex-direction: column; gap: 10px; } .form-footer > button { align-self: flex-end; } .teacher-fab { right: 19px; bottom: max(20px, env(safe-area-inset-bottom)); width: 68px; height: 68px; } }
@media (max-width: 480px) { .teacher-topbar { padding: 12px 67px 12px 17px; gap: 10px; } .teacher-brand { gap: 8px; } .teacher-brand strong { font-size: 15px; } .brand-section { display: none; } .back-link { font-size: 11px; } .teacher-hero h1 { font-size: 25px; max-width: 270px; } .teacher-eyebrow { font-size: 8px; letter-spacing: .09em; } .teacher-eyebrow span { margin-inline: 5px; } .teacher-card-name { font-size: 12px; } .teacher-card-name .subject { font-size: 10px; } .teacher-card { padding: 14px 11px 12px; } .teacher-card-middle { min-height: 73px; } .teacher-card-score { font-size: 32px; } .teacher-tag { padding: 2px 6px; font-size: 9px; } .teacher-card-count, .teacher-card-zero { font-size: 10px; } .teacher-card-tags { gap: 4px; min-height: 20px; } .teacher-dialog { padding: 21px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); } .consent-dialog h2 { font-size: 21px; } .consent-copy { font-size: 12px; } .consent-foot { gap: 8px; } .consent-foot .button { flex: 1; font-size: 11px; padding-inline: 8px; } .detail-dialog { padding: 19px; } .detail-summary h3 { font-size: 20px; } .detail-score strong { font-size: 31px; } .teacher-review-form { padding: 15px; } .rating-options { gap: 5px; } .rating-choice span { font-size: 12px; } .add-fields { grid-template-columns: 1fr; gap: 12px; } .review-note-row { flex-wrap: wrap; gap: 4px; } .review-note-row > span:last-child { margin-left: auto; } .review-date { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 480px) { .title-dot { display: none; } .gx-en .teacher-fab > span:last-child { max-width: 58px; font-size: 9px; line-height: 1.2; } }
@media (max-width: 700px) { .teacher-program-filter { margin-left: 0; } .add-fields { grid-template-columns: 1fr; } }

/* 交互反馈不改变布局，持续入场与关闭由 JS 令牌协调；减少动态效果覆盖伪元素背景。 */
.button, .search-submit, .close-button, .teacher-fab, .teacher-card, .review-report, .text-button, .back-link {
  transition: transform 160ms var(--teacher-ease), background-color 160ms var(--teacher-ease), border-color 160ms var(--teacher-ease), box-shadow 180ms var(--teacher-ease), color 160ms var(--teacher-ease), opacity 160ms var(--teacher-ease);
}
.teacher-search-box, .teacher-sort select, .add-fields input, .add-fields select, #teacherReviewBody, #teacherReportForm textarea, #teacherReportForm select {
  transition: border-color 160ms var(--teacher-ease), background-color 160ms var(--teacher-ease), box-shadow 160ms var(--teacher-ease);
}
.rating-choice > span, .tag-choice > span { transition: color 160ms var(--teacher-ease), border-color 160ms var(--teacher-ease), background-color 160ms var(--teacher-ease), opacity 160ms var(--teacher-ease); }
.teacher-search-box:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teacher-brand) 8%, transparent); }
.button:active:not(:disabled), .search-submit:active:not(:disabled), .close-button:active:not(:disabled), .teacher-card:active:not(:disabled) { transform: scale(.98); }
.teacher-fab:active:not(:disabled) { transform: scale(.95); }
.teacher-dialog[data-motion-closing="true"] > * { pointer-events: none; }
.teacher-dialog[open]::backdrop { animation: teacherBackdropIn 240ms var(--teacher-ease) both; }
.teacher-dialog[data-motion-closing="true"]::backdrop { animation: teacherBackdropOut 200ms var(--teacher-ease) both; }
@keyframes teacherBackdropIn { from { opacity: var(--teacher-backdrop-enter-from, 0); } to { opacity: 1; } }
@keyframes teacherBackdropOut { from { opacity: var(--teacher-backdrop-from, 1); } to { opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .teacher-card:hover { transform: translateY(-2px); }
  .teacher-fab:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #5d2f2538; }
  .button:hover:not(:disabled), .search-submit:hover:not(:disabled) { transform: translateY(-1px); }
  .close-button:hover { transform: rotate(5deg); }
  .button:active:not(:disabled), .search-submit:active:not(:disabled), .close-button:active:not(:disabled), .teacher-card:active:not(:disabled) { transform: scale(.98); }
  .teacher-fab:active:not(:disabled) { transform: scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .teacher-dialog::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .teacher-card:hover, .teacher-card:active:not(:disabled), .teacher-fab:hover, .teacher-fab:active:not(:disabled), .button:hover:not(:disabled), .button:active:not(:disabled), .search-submit:hover:not(:disabled), .search-submit:active:not(:disabled), .close-button:hover, .close-button:active:not(:disabled) { transform: none !important; }
}
