/* 学生端统一样式：放在学生页面所有样式的最后加载。
   和老师后台同一套配色（深蓝主色、琥珀点缀），圆角稍大、更亲切；不用渐变、毛玻璃、大阴影。 */
:root {
  --bg: #f6f4ef;
  --bg-2: #f6f4ef;
  --panel: #fff;
  --panel-strong: #fff;
  --panel-soft: #faf8f4;
  --ink: #1c2433;
  --ink-soft: #3d3a33;
  --muted: #6f6a60;
  --line: #e6e1d6;
  --line-strong: #d3ccbd;
  --blue: #17325e;
  --blue-2: #17325e;
  --violet: #17325e;
  --violet-2: #17325e;
  --cyan: #17325e;
  --brand: #17325e;
  --brand-soft: #edf0f5;
  --accent: #b8862b;
  --shadow: 0 1px 3px rgba(23,50,94,.06);
  --shadow-soft: 0 1px 3px rgba(23,50,94,.06);
  --shadow-tiny: none;
  --glow: none;
  --radius: 12px;
  --radius-sm: 8px;
}
html, body, html body { background: var(--bg); }

/* 面板：白底细边框 */
html #app .sidebar, html #app .main, html .login-box {
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 12px;
}
html #app .topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: none; }
html #app .topbar h2 { color: var(--ink); font-weight: 700; }

/* 左上角标记：深蓝方块里一个字 */
.mark { background: var(--brand); color: #fff; box-shadow: none; border-radius: 8px; font-weight: 700; font-size: 16px; }
.mark::before, .mark::after { display: none; }
.brand h1 { color: var(--ink); font-weight: 700; }

/* 按钮 */
.ghost, .primary, .stop-button, .tone, .attach-label, .home-link, .lesson-item, .side-tool { box-shadow: none; transition: background .12s, border-color .12s, color .12s; }
.ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-soft); border-radius: 8px; font-weight: 600; }
.ghost:hover { background: #faf8f4; border-color: #a39d90; transform: none; box-shadow: none; }
.primary, .tone.active, .home-link { background: var(--brand); border: 1px solid var(--brand); color: #fff; box-shadow: none; border-radius: 8px; font-weight: 600; }
.primary:hover, .home-link:hover { background: #10264a; transform: none; box-shadow: none; }
.primary::before, .home-link::before { display: none; }
[data-open-novel] { background: #fff; color: var(--brand); border: 1px solid var(--line-strong); box-shadow: none; }

/* 左侧工具和列表：图标改成单色，当前项浅蓝底加一条主色竖线 */
.side-tool { border-radius: 8px; border-color: transparent; background: transparent; font-weight: 600; color: var(--ink-soft); }
.side-tool:hover { background: #f3f0e9; }
.side-icon, .side-icon.geo, .side-icon.cuoti, .side-icon.note { background: transparent; color: var(--brand); border-radius: 6px; }
.home-thread-row, .lesson-item { border-radius: 8px; }
.home-thread-row.active, .lesson-item.active { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); color: var(--brand); }

/* 首页空状态：不要渐变大字和重复的入口 */
.home-empty { background: none; border: 0; box-shadow: none; }
.hero-kicker { display: none; }
.home-empty h3 { color: var(--ink); text-shadow: none; font-weight: 700; font-size: clamp(24px, 3.4vw, 32px); }
.home-empty p { color: var(--muted); }

/* 对话 */
html #app .msg { background: #fff; border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
html #app .msg.user { background: var(--brand-soft); border-color: #d7dde8; }
.msg-content strong, .line div strong { background: linear-gradient(transparent 62%, rgba(184,134,43,.22) 62%); }
html #app .composer { background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 1px 3px rgba(23,50,94,.06); backdrop-filter: none; border-radius: 12px; }
.tones { background: #f3f0e9; border-color: var(--line); border-radius: 10px; }
.tone { border-radius: 8px; color: var(--muted); font-weight: 600; }
.tone.active { color: #fff; }
.divider { background: linear-gradient(90deg, transparent 0, transparent 4px, var(--line-strong) 4px, var(--line-strong) 6px, transparent 6px); }
.divider:hover { background: linear-gradient(90deg, transparent 0, transparent 4px, var(--brand) 4px, var(--brand) 6px, transparent 6px); }

/* 讲义阅读页 */
html #app .lesson-main, html #app .lesson-main .lesson-view, html #app .lesson-main .pdf-wrap, html #app .lesson-main .side-chat { background: #fff; }
html #app .lesson-main .pdf-wrap { background: #f3f0e9; }
.mobile-lesson-tabs, html #app .lesson-main .mobile-lesson-tabs { backdrop-filter: none; background: #fff; }

/* 小说讲义、留言等浮层 */
.novel-overlay { background: var(--bg); }
.novel-head, .novel-controls, .line { backdrop-filter: none; box-shadow: none; }
.line { background: #fff; border: 1px solid var(--line); }
.line.right { background: var(--brand-soft); }
.feedback-overlay, .mobile-sidebar-backdrop { backdrop-filter: none; }

/* 进班级 / 登录页 */
html .login-page { background: var(--bg); }
html .login-box h1 { color: var(--ink); font-weight: 700; }
html .login-box input { border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(23,50,94,.22); outline-offset: 0; border-color: var(--brand); box-shadow: none; }
::placeholder { color: #a39d90; }

@media (max-width: 760px) {
  html #app .sidebar, html #app .main { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
}

/* 小控件统一圆角，去掉胶囊形 */
.attach-label, .classroom-entry, .chip, .search input, .home-history-head button, .voice-entry-top, .mobile-tone-select { border-radius: 8px; box-shadow: none; }
.classroom-entry { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-soft); font-weight: 600; }
.classroom-entry[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.attach-label { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.home-history-head button { background: #fff; border: 1px solid var(--line); color: var(--brand); font-weight: 600; }
.voice-entry-top { background: var(--brand-soft); color: var(--brand); border: 1px solid #d7dde8; font-weight: 600; }
html #app .top-actions .ghost { font-weight: 600; }

/* 输入区压矮：风格选择一排小按钮（放不下左右滑），输入框 2 行起、随内容长高 */
html #app .composer { gap: 8px; padding: 8px 12px; }
html #app .tones { display: flex; flex-wrap: nowrap; gap: 2px; padding: 2px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html #app .tones::-webkit-scrollbar { display: none; }
html #app .tone { flex: 0 0 auto; min-height: 28px; padding: 0 12px; font-size: 14px; }
html #app .composer textarea, html #app .side-chat .composer textarea { min-height: 60px; height: 60px; max-height: 220px; resize: none; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; line-height: 1.6; }
html #app .composer-actions .attach-label, html #app .composer-actions .classroom-entry, html #app .composer-actions .primary { min-height: 34px; }
@media (max-width: 760px) {
  html #app .composer textarea, html #app .side-chat .composer textarea { min-height: 48px; height: 48px; max-height: 120px; }
}

/* 进班级页：左边墨蓝品牌区（坐标网格 + 抛物线），右边表单；手机上品牌区在上面 */
html #app .login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
html #app .login-page { grid-template-columns: minmax(0, 380px) minmax(0, 420px); place-content: center; gap: 0; }
.login-brand { position: relative; align-self: stretch; justify-self: stretch; overflow: hidden; display: flex; align-items: flex-end; min-height: 420px; padding: 32px; background: #17325e; color: #c9d3e3; border-radius: 12px 0 0 12px; }
.login-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-curve { stroke: #c99a3e; }
.login-dot { fill: #c99a3e; }
.login-brand-copy { position: relative; display: grid; gap: 8px; }
.login-brand-name { font-size: 14px; letter-spacing: .2em; color: #c99a3e; }
.login-brand-copy strong { font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .06em; }
.login-brand-copy small { font-size: 14px; color: #aab7cc; }
html #app .login-box { align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; width: 100%; padding: 40px 32px; border-radius: 0 12px 12px 0; border: 1px solid var(--line); border-left: 0; box-shadow: 0 1px 3px rgba(23,50,94,.06); }
html #app .login-box h1 { margin: 0; font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif; font-size: 28px; font-weight: 700; letter-spacing: .04em; }
html #app .login-box > p { margin: 0 0 8px; color: var(--muted); }
html #app .login-box input { min-height: 46px; padding: 0 12px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; letter-spacing: .04em; }
html #app .login-box .primary { min-height: 46px; font-size: 16px; letter-spacing: .1em; }
.login-hint { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.login-back { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 8px; background: #f3f0e9; border: 1px solid var(--line); }
.login-roles button { min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; box-shadow: none; }
.login-roles button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23,50,94,.1); }
.login-link { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 14px; cursor: pointer; box-shadow: none; }
@media (max-width: 760px) {
  html #app .login-page { grid-template-columns: 1fr; place-content: start stretch; padding: 0; }
  .login-brand { min-height: 168px; padding: 24px; border-radius: 0; }
  .login-brand-copy strong { font-size: 24px; }
  .login-art { left: 38%; width: 62%; opacity: .55; }
  .login-art circle { display: none; }
  html #app .login-box { padding: 24px 24px; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
}

/* 左侧栏：墨蓝底、金色点缀，和进班级页同一套 */
html #app .sidebar { background: #17325e; border-color: #17325e; color: #c9d3e3; }
html #app .sidebar .brand h1 { color: #fff; font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif; letter-spacing: .02em; }
html #app .sidebar .mark { background: #c99a3e; color: #17325e; }
html #app .sidebar .home-link { background: #fff; border-color: #fff; color: #17325e; }
html #app .sidebar .home-link:hover { background: #f3efe6; }
html #app .sidebar .side-tool { color: #d6deea; background: transparent; }
html #app .sidebar .side-tool:hover { background: rgba(255,255,255,.07); }
html #app .sidebar .side-icon { color: #c99a3e; background: transparent; }
html #app .sidebar .home-history-head, html #app .sidebar .search span, html #app .sidebar .lesson-group { color: #8fa0bb; }
html #app .sidebar .home-history-head button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #e6ebf3; }
html #app .sidebar .home-history { border-color: rgba(255,255,255,.1); }
html #app .sidebar .muted { color: #8fa0bb; }
html #app .sidebar .home-thread-row, html #app .sidebar .lesson-item { background: transparent; border-color: transparent; color: #d6deea; }
html #app .sidebar .home-thread, html #app .sidebar .home-thread span, html #app .sidebar .lesson-item strong { color: inherit; }
html #app .sidebar .home-thread-row:hover, html #app .sidebar .lesson-item:hover { background: rgba(255,255,255,.06); }
html #app .sidebar .home-thread-row.active, html #app .sidebar .lesson-item.active { background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 #c99a3e; color: #fff; }
html #app .sidebar .home-thread-delete { color: #8fa0bb; background: transparent; }
html #app .sidebar .search input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
html #app .sidebar .search input::placeholder { color: #8fa0bb; }
html #app .sidebar hr, html #app .sidebar .lesson-list { border-color: rgba(255,255,255,.1); }
html #app .sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }

/* 主区标题用衬线字，和入口页呼应 */
.home-empty h3 { font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif; letter-spacing: .04em; }
