/* A · 轻盈纸感。仅新平台的视觉层；不改变收集、语音与数据规则。 */
:root {
  --ink: #254a3d;
  --muted: #6d776d;
  --green: #2d5845;
  --green-dark: #204333;
  --line: #e2dfd5;
  --bg: #f7f5ef;
  --paper-type: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
body { background: var(--bg); }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #416f53; outline-offset: 4px; }
.button { border-color: #d9d7ce; border-radius: 11px; background: #fffdfa; font-size: 16px; min-height: 46px; box-shadow: 0 2px 3px #40362205; }
.button:hover { background: #f0f1e9; }
.button.primary { background: linear-gradient(135deg, #38604b, #264b3c); box-shadow: 0 3px 7px #294d3914; }
.brand { color: var(--ink); font-size: 27px; letter-spacing: .04em; }
.brand small { color: #737e72; font-size: 12px; letter-spacing: .16em; margin-top: 5px; }
.brand img { width: 44px; height: 44px; }
.sidebar { width: 232px; padding: 34px 17px 24px; background: #fcfbf8; border-color: var(--line); }
.sidebar .brand { padding: 0 12px 31px; }
.sidebar-title { color: #365342; font-size: 16px; padding: 12px; }
.class-item { border-left: 3px solid transparent; padding: 15px 10px; border-radius: 12px; gap: 10px; }
.class-item.active { border-left-color: #315f47; background: #e9eee3; color: #254a3d; }
.class-item:hover { background: #eef1e9; }
.class-symbol, .class-item.active .class-symbol { background: transparent; width: 26px; }
.class-item strong { font-size: 15px; line-height: 1.65; font-weight: 600; }
.class-item small { color: #647660; font-size: 13px; line-height: 1.5; }
.class-total { color: #53654f; background: #ffffff8c; font-size: 12px; }
.new-class { color: #61765c; border-color: #d5dccf; background: transparent; min-height: 44px; }
.sidebar-bottom { border-color: var(--line); gap: 16px; }
.sidebar-bottom button, .sidebar-bottom a { color: #425f4d; font-size: 14px; min-height: 30px; }
.main-panel { margin-left: 232px; }
.topbar { height: 58px; padding: 0 42px; background: #fbfaf6; border-color: #e8e5dc; }
.breadcrumb, .topbar-right { color: #788174; }
.workspace { padding: 30px 42px 24px; max-width: 1680px; }
.lesson-heading { margin-bottom: 31px; gap: 26px; }
.lesson-heading > div:first-child { min-width: 0; }
.lesson-heading .eyebrow { font-size: 16px; font-weight: 500; color: #365846; letter-spacing: .08em; }
.lesson-heading h1 { font-family: var(--paper-type); font-size: clamp(30px, 2.8vw, 43px); font-weight: 700; letter-spacing: .03em; margin: 9px 0 0; overflow-wrap: anywhere; }
.lesson-heading h1::after { content: ""; display: block; width: 150px; max-width: 65%; height: 7px; margin-top: 10px; background: #c2cfb3; opacity: .8; clip-path: polygon(0 45%, 18% 12%, 39% 25%, 62% 5%, 84% 40%, 100% 75%, 79% 68%, 52% 95%, 26% 73%, 1% 100%); }
.lesson-heading p { display: none; }
.heading-actions { gap: 12px; }
.heading-actions .button { font-size: 16px; padding: 11px 18px; }
.collection-bar { padding: 15px 20px; margin-bottom: 26px; gap: 24px; background: #fffdfa; border-color: #e0dcd1; border-radius: 13px; box-shadow: 0 3px 10px #44381903; }
.collect-state { font-size: 16px; color: #6b7468; }
.collect-state.open { color: #31543d; }
.collect-state strong { font-weight: 600; }
.collect-state.open .status-dot { background: #7b9e58; box-shadow: 0 0 0 4px #e1eacb; }
.collect-state .text-button { color: #5d7056; font-size: 14px; text-decoration: none; border-bottom: 1px solid #bdc8b5; border-radius: 0; padding: 3px 1px; margin-left: 9px; }
.quota-summary { color: #4a604b; font-size: 15px; border-color: #d9d6c9; padding-left: 24px; }
.quota-summary .icon { display: none; }
.share-button { color: #2c543f; border-color: #708a70; background: transparent; min-height: 40px; font-size: 15px; }
.wall-toolbar { gap: 20px; }
.wall-tabs { gap: 12px; }
.wall-tabs button { background: #fffdfa; border: 1px solid #dedbd0; border-radius: 10px; color: #365342; font-size: 16px; padding: 10px 15px; min-height: 44px; }
.wall-tabs button.active { color: #fff; background: #426a45; border-color: #426a45; box-shadow: 0 2px 4px #2d4c1b0a; }
.wall-tabs button span { font-size: 14px; border-radius: 8px; background: #ebece5; color: #37583d; padding: 1px 6px; }
.wall-tabs button.active span { color: #36583d; background: #f8f9f2; }
.wall-tools { gap: 14px; }
.people-count { color: #66735f; font-size: 14px; }
.search-box { background: #fffdfa; border-color: #dedbd0; border-radius: 10px; max-width: 245px; padding: 0 13px; box-shadow: 0 2px 3px #40362204; }
.search-box input { min-height: 43px; font-size: 15px; }
.search-box input::placeholder { color: #858774; }
.wall-caption { color: #7a816e; font-size: 13px; padding-top: 15px; border-top: 1px solid var(--line); margin: 19px 0 30px; }
.note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; padding: 5px 0 22px; }
.c0 { --note: #fae9c4; --note-dark: #756744; }
.c1 { --note: #eee3f0; --note-dark: #73677a; }
.c2 { --note: #e5eed9; --note-dark: #61734e; }
.c3 { --note: #f7e2df; --note-dark: #82645d; }
.c4 { --note: #e1eced; --note-dark: #5e7774; }
.c5 { --note: #f2edcf; --note-dark: #756e47; }
.note { min-height: 260px; border: 1px solid #65502a06; border-radius: 15px; transform: none; background: linear-gradient(115deg, #ffffff10, #ffffff00 58%, #594b1f03), var(--note); box-shadow: 0 3px 5px #49381c09, 0 11px 22px -15px #69542f38; }
.note::after { display: none; }
.note:hover { transform: translateY(-3px); box-shadow: 0 5px 8px #49381c0a, 0 14px 25px -12px #69542f30; }
.note.is-core { border-left: 4px solid #315b43; outline: none; }
.tape { top: -12px; left: calc(50% - 34px); width: 68px; height: 26px; background: linear-gradient(100deg, #fffef781, #fffefaac 50%, #fffdf078); box-shadow: 0 3px 6px #6355350c; transform: rotate(-7deg); clip-path: polygon(0 9%, 96% 0, 100% 85%, 6% 100%); }
.note:nth-child(3n) .tape { transform: rotate(5deg); }
.note-head { min-height: 48px; padding: 18px 25px 0; }
.note-label { visibility: hidden; }
.core-label { color: #fffef6; background: #335c46; border-radius: 20px; font-size: 13px; font-weight: 500; padding: 4px 10px; gap: 5px; }
.core-label .icon { fill: #fffef6; width: 14px; height: 14px; }
.note-content { color: #264c3d; font-family: var(--paper-type); font-weight: 700; font-size: clamp(22px, 1.75vw, 28px); line-height: 1.65; padding: 9px 26px 24px; -webkit-line-clamp: 5; }
.note-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 25px; padding: 11px 0 12px; border-top: 1px solid #6a5c3217; }
.note-foot { display: flex; flex: 1 0 auto; margin: 0; padding: 0; color: #3a5945; font-size: 14px; opacity: 1; }
.note-foot > span { overflow-wrap: anywhere; }
.note-foot time { display: none; }
.note-actions { display: flex; flex: 0 0 auto; gap: 7px; padding: 0; border: 0; }
.pin { min-height: 36px; color: #3d5b45; font-size: 14px; padding: 4px 0; gap: 5px; }
.pin .icon { width: 18px; height: 18px; }
.pin.pinned { color: #305940; font-weight: 500; }
.pin.pinned .icon { fill: #315c43; }
.move-controls { opacity: .65; }
.move-controls button { color: #496047; padding: 4px 1px; min-height: 34px; }
.move-controls .icon { width: 18px; height: 18px; }
.note-grip { color: #5b6b4f; opacity: .7; display: flex; align-items: center; justify-content: center; padding: 5px 0; min-height: 34px; }
.note-grip .icon { width: 16px; height: 20px; }
.note.dragging { transform: scale(.98); }
.wall-bottom, .site-footer { color: #77806d; border-color: var(--line); }
.site-footer { font-size: 12px; }
.demo-banner { background: #ecefdf; color: #596b46; }
.login-page, .student-page, .presentation { background: radial-gradient(ellipse at 30% 5%, #faf8f2, transparent 65%), var(--bg); }
.login-intro h1, .student-main > h1, .presentation-heading h1, .detail-original { font-family: var(--paper-type); font-weight: 700; color: var(--ink); }
.login-intro > p, .student-lead { color: #738067; }
.login-panel, .student-form-panel { background: #fffdfa; border-color: #e2dfd3; border-radius: 16px; box-shadow: 0 6px 28px #4b3e2106; }
.student-badge { color: #4e6a4c; background: #fffdf8; border-color: #e1dfd0; }
.remaining-card { color: #42623d; background: #e9eeda; border-color: #dce4c8; }
.remaining-card.finished { color: #7e6d3e; }
.input-meta, .my-question-heading > span { color: #77806d; font-size: 12px; }
.student-note { border-radius: 12px; box-shadow: 0 4px 12px #6a532c0a; }
.student-note p { color: #2b4e3d; font-size: 18px; line-height: 1.8; }
.voice-heading, .voice-review > strong { color: #3e633e; }
.voice-heading small, .voice-help, .voice-privacy, .voice-review > p, .voice-review details { color: #6e7c61; }
.voice-review { background: #eff2e6; border-color: #dce4cf; }
.voice-record { background: #eaf0df; border-color: #c9d7b9; color: #365e37; }
.presentation-heading h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: .04em; }
.presentation-label, .presentation-heading > p, .presentation-footer { color: #6a7a5c; }
.presentation-toolbar { background: #fffdf9b8; border-color: #e0ddcf; }
.presentation-grid { gap: 35px; }
.presentation-grid .note { min-height: 270px; }
.presentation-grid .note-content { font-family: var(--paper-type); font-size: calc(clamp(24px, 2.05vw, 34px) * var(--font-scale)); line-height: 1.65; }
.presentation-grid.auto-count-1 .note-content { font-size: calc(36px * var(--font-scale)); }
.presentation-grid .note-foot { font-size: 16px; }
.presentation-grid .note-foot time { display: inline; color: #6f795e; font-size: 14px; }
.presentation-options label, .presentation-options select { color: #576c4c; }
.detail-paper { border-radius: 15px; }
.detail-original { line-height: 1.85 !important; }
.detail-meta, .detail-controls { color: #586e4d; }
@media (min-width: 1800px) { .teacher-shell .note-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1250px) {
  .sidebar { width: 210px; padding: 27px 12px 22px; }
  .main-panel { margin-left: 210px; }
  .workspace { padding: 28px; }
  .topbar { padding: 0 28px; }
  .heading-actions .button { font-size: 15px; padding: 10px 14px; }
  .collection-bar { gap: 16px; padding: 15px; }
  .quota-summary { padding-left: 16px; }
  .note-grid { gap: 32px 22px; }
  .note-bottom { margin: 0 20px; gap: 4px; }
  .note-actions { gap: 5px; }
  .note-head { padding-left: 22px; padding-right: 22px; }
  .note-content { padding-left: 22px; padding-right: 22px; }
  .note-grip { display: none; }
}
@media (max-width: 1100px) {
  .teacher-shell .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-toolbar { flex-wrap: wrap; }
  .wall-tools { margin-left: auto; }
}
@media (max-width: 1050px) { .quota-summary { padding-left: 0; border-left: 0; } }
@media (max-width: 960px) {
  .sidebar { width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 25px #0001; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-panel { margin-left: 0; }
  .mobile-menu { display: flex; }
}
@media (max-width: 760px) {
  .sidebar { width: 260px; padding: 30px 17px 23px; }
  .main-panel { margin-left: 0; }
  .topbar { height: 58px; padding: 0 17px; }
  .workspace { padding: 26px 20px; }
  .lesson-heading { flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .lesson-heading .eyebrow { font-size: 14px; }
  .lesson-heading h1 { font-size: 31px; }
  .heading-actions { flex-direction: row; width: 100%; gap: 10px; }
  .heading-actions .button { flex: 1; width: auto; min-height: 44px; font-size: 14px; }
  .heading-actions .button .icon { display: inline; width: 18px; }
  .collection-bar { gap: 12px; padding: 16px; }
  .collect-state { font-size: 15px; }
  .collect-state .text-button { font-size: 14px; margin-left: 5px; }
  .share-button { margin-left: 0; font-size: 14px; min-height: 40px; }
  .quota-summary { font-size: 14px; padding-top: 12px; }
  .wall-tabs { gap: 9px; }
  .wall-tabs button { font-size: 15px; padding: 9px 12px; }
  .wall-caption { font-size: 13px; margin: 17px 0 28px; }
  .note-grid { gap: 32px 20px; }
  .note-content { font-size: 23px; }
  .note-foot { font-size: 14px; }
  .note-bottom { margin: 0 21px; }
  .note-grip { display: none; }
  .note-head { padding: 19px 22px 0; }
  .pin { font-size: 14px; }
  .move-controls button { min-width: 27px; min-height: 40px; }
  .site-footer { font-size: 12px; }
  .student-main > h1 { font-size: 29px; line-height: 1.6; }
  .student-form-panel { padding: 24px 20px; }
  .presentation-grid .note-content { font-size: calc(24px * var(--font-scale)); }
  .presentation-grid.auto-count-1 .note-content { font-size: calc(28px * var(--font-scale)); }
  .presentation-grid .note { min-height: 245px; }
}
@media (max-width: 520px) {
  .teacher-shell .note-grid { grid-template-columns: minmax(0, 1fr); }
  .wall-tools, .search-box { width: 100%; max-width: none; }
  .note-content { font-size: 25px; padding: 12px 25px 25px; }
  .note { min-height: 245px; }
  .note-bottom { margin: 0 23px; }
  .collection-bar { align-items: flex-start; }
  .quota-summary { order: 2; }
  .share-button { order: 3; width: 100%; }
  .presentation-grid, .presentation-grid.cols-2, .presentation-grid.cols-3, .presentation-grid.cols-4,
  .presentation-grid.auto-count-1, .presentation-grid.auto-count-2, .presentation-grid.auto-count-4 { grid-template-columns: minmax(0, 1fr); }
  .student-header { padding: 20px; }
  .student-header .brand { font-size: 22px; }
}
