/* 芸芸知声 · 系统页面共用样式（宣纸 + 朱砂 · 质感升级版） */
:root {
  --paper: #f7f3ea; --paper-deep: #efe9db; --card: #fbf8f1;
  --ink: #2b2a26; --ink-light: #6b675e;
  --cinnabar: #9e2b25; --cinnabar-deep: #7e1f1a; --cinnabar-soft: rgba(158,43,37,.08);
  --gold: #a9812e; --line: rgba(43,42,38,.14);
  --ok: #3c7a4e;
  /* 阴影体系（暖褐调，避免纯黑的生硬） */
  --shadow-sm: 0 1px 3px rgba(60,40,30,.05), 0 3px 10px rgba(60,40,30,.06);
  --shadow-md: 0 4px 14px rgba(60,40,30,.1), 0 2px 4px rgba(60,40,30,.06);
  --shadow-lg: 0 12px 32px rgba(30,24,18,.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  background: var(--paper); color: var(--ink); line-height: 1.8;
  overflow-x: hidden; -webkit-text-size-adjust: 100%; min-height: 100vh;
}
/* 纸面点阵纹理 */
body::before {
  content: ""; position: fixed; inset: 0;
  background-image: radial-gradient(rgba(43,42,38,.028) 1px, transparent 1px), radial-gradient(rgba(43,42,38,.02) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px; background-position: 0 0, 4px 6px;
  pointer-events: none; z-index: 0;
}
/* 质感升级：纸张暖光晕染（上亮下沉，模拟光照不均的宣纸） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(169,129,46,.06), transparent 60%),
    radial-gradient(90% 50% at 50% 108%, rgba(158,43,37,.04), transparent 60%);
}
a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(158,43,37,.16); }
/* 质感升级：细滚动条（桌面） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(107,103,94,.28); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(107,103,94,.45); }
::-webkit-scrollbar-track { background: transparent; }

.wrap { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 26px 5vw 60px; animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 顶栏（毛玻璃 + 柔和投影） */
.sysbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 5vw; background: rgba(247,243,234,.88); backdrop-filter: blur(12px) saturate(1.05); -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border-bottom: 1px solid rgba(43,42,38,.1);
  box-shadow: 0 1px 14px rgba(60,40,30,.06);
}
.sysbar .logo { display: flex; align-items: center; gap: 10px; font-weight: bold; letter-spacing: 4px; font-size: 17px; white-space: nowrap; }
.sysbar a.logo, .sysbar a.logo:hover { color: var(--ink); }
/* 质感升级：印章 hover 的「盖章手感」 */
a.logo .logo-slot, a.logo .seal { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
a.logo:hover .logo-slot, a.logo:hover .seal { transform: rotate(-3deg) scale(1.06); }
.seal {
  width: 32px; height: 32px; background: var(--cinnabar); color: #f7f3ea; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1.15;
  writing-mode: vertical-rl; box-shadow: 0 2px 6px rgba(158,43,37,.3); flex-shrink: 0;
}
.logo-slot { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.logo-svg {
  width: 100%; height: 100%; border-radius: 10px; display: block;
  box-shadow: 0 2px 6px rgba(158,43,37,.3);
}
.logo-title { display: inline; }
.sysbar .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-light); white-space: nowrap; }
.sysbar .who b { color: var(--cinnabar); }
.sysbar a { color: var(--ink-light); text-decoration: none; transition: color .2s; }
.sysbar a:hover { color: var(--cinnabar); }

/* 标题（页面主标题加两侧渐变饰线） */
h1.page-title {
  text-align: center; font-size: clamp(26px, 5vw, 36px); letter-spacing: 10px; text-indent: 10px; margin: 26px 0 6px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
h1.page-title::before, h1.page-title::after { content: ""; flex: 0 0 34px; height: 1px; }
h1.page-title::before { background: linear-gradient(90deg, transparent, rgba(158,43,37,.55)); }
h1.page-title::after { background: linear-gradient(90deg, rgba(158,43,37,.55), transparent); }
p.page-sub { text-align: center; color: var(--ink-light); font-size: 14px; letter-spacing: 3px; margin-bottom: 30px; }
h2.sec { font-size: 19px; letter-spacing: 5px; margin: 38px 0 16px; display: flex; align-items: center; gap: 12px; }
h2.sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* 卡片（统一圆角 + 分层柔影 + 桌面 hover 微升起） */
.card { background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: var(--r, 10px); padding: 22px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 18px; letter-spacing: 3px; }
.muted { color: var(--ink-light); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid rgba(169,129,46,.4); padding: 1px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }

/* 按钮（朱砂渐变 + 按压反馈 + 柔影） */
.btn {
  display: inline-block; border: 1px solid var(--cinnabar);
  background: linear-gradient(135deg, #a8332c, var(--cinnabar)); color: #f7f3ea;
  font-family: inherit; font-size: 15px; letter-spacing: 3px; padding: 9px 22px; cursor: pointer;
  border-radius: 5px; transition: transform .18s ease, box-shadow .22s ease, filter .22s ease, background .22s ease, opacity .22s; text-decoration: none;
  box-shadow: 0 2px 6px rgba(158,43,37,.24);
}
.btn:hover { box-shadow: 0 5px 14px rgba(158,43,37,.3); transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.96); box-shadow: 0 1px 4px rgba(158,43,37,.28); }
.btn.ghost { background: transparent; color: var(--cinnabar); box-shadow: none; }
.btn.ghost:hover { background: var(--cinnabar-soft); box-shadow: none; transform: none; filter: none; }
.btn.ghost:active { transform: scale(.96); }
.btn.ok { background: linear-gradient(135deg, #46895d, var(--ok)); border-color: var(--ok); }
.btn.sm { font-size: 13px; padding: 5px 14px; letter-spacing: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; filter: none; }

/* 表单（focus 朱砂描边 + 柔光晕） */
label.f { display: block; margin: 16px 0 6px; font-size: 14px; letter-spacing: 2px; color: var(--ink-light); }
input[type=text], input[type=password], input[type=date], textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(43,42,38,.18); padding: 10px 12px; border-radius: 6px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus { border-color: var(--cinnabar); box-shadow: 0 0 0 3px rgba(158,43,37,.12); background: #fffdf8; }
textarea { resize: vertical; min-height: 70px; }

/* 提示条 */
.msg { min-height: 22px; font-size: 14px; margin-top: 12px; }
.msg.err { color: var(--cinnabar); }
.msg.ok { color: var(--ok); }

/* 打卡 */
.check .upload-zone { margin: 10px 0 4px; padding: 10px; border: 1px dashed rgba(158,43,37,.35); border-radius: 6px; background: rgba(158,43,37,.04); }
.check .upload-zone .st { margin: 6px 0 0; }
audio { border-radius: 4px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check {
  background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 10px; text-align: center; padding: 26px 14px 22px; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.check:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.check.done { box-shadow: 0 0 0 1px rgba(158,43,37,.22), var(--shadow-sm); }
.check .glyph {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--cinnabar-soft); border: 1px solid rgba(158,43,37,.25);
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: var(--cinnabar);
  transition: background .3s, color .3s;
}
.check.done .glyph { background: var(--cinnabar); color: #f7f3ea; box-shadow: 0 3px 10px rgba(158,43,37,.32); }
.check h3 { font-size: 18px; letter-spacing: 4px; }
.check .st { font-size: 13px; color: var(--ink-light); margin: 6px 0 12px; }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 10px; text-align: center; padding: 18px 8px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 30px; color: var(--cinnabar); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.stat span { font-size: 13px; color: var(--ink-light); letter-spacing: 2px; }
.week { display: flex; gap: 8px; margin-top: 14px; }
.wd { flex: 1; text-align: center; font-size: 12px; color: var(--ink-light); }
.wd i {
  display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 6px;
  background: var(--paper-deep); border: 1px solid var(--line); font-style: normal; margin-bottom: 4px; font-size: 14px;
  transition: background .3s;
}
.wd i.lv1 { background: rgba(158,43,37,.18); }
.wd i.lv2 { background: rgba(158,43,37,.4); color: #fff; }
.wd i.lv3 { background: var(--cinnabar); color: #fff; box-shadow: 0 2px 6px rgba(158,43,37,.25); }

/* 列表行 */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 180px; }

/* 登录页 */
.login-box { max-width: 380px; margin: 8vh auto 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tabs button {
  flex: 1; background: none; border: none; font-family: inherit; font-size: 17px; letter-spacing: 6px;
  padding: 12px 0; color: var(--ink-light); cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s;
}
.tabs button.on { color: var(--cinnabar); border-bottom-color: var(--cinnabar); font-weight: bold; }
.pin-wrap { display: flex; gap: 10px; }
.pin-wrap input { text-align: center; letter-spacing: 8px; font-size: 22px; }

/* 隐藏 */
.hidden { display: none !important; }

/* 日诵日报 */
canvas.report-canvas { display: block; width: 100%; max-width: 360px; margin: 16px auto 0; border-radius: 12px; box-shadow: var(--shadow-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 640px) {
  /* 小屏：只留红色“芸芸知声”方章，文字隐藏 */
  .logo-title { display: none; }
  .sysbar { padding: 10px 12px; }
  .sysbar .who { gap: 9px; font-size: 12.5px; }
  .check-grid { grid-template-columns: 1fr; }
  .check { display: flex; align-items: center; text-align: left; gap: 14px; padding: 16px; }
  .check .glyph { margin: 0; }
  .check .ck-right { flex: 1; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 22px; }
  .login-box { margin-top: 4vh; }
}

/* 日诵海报弹层 */
.poster-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 24, 18, .78);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: maskIn .28s ease both;
}
.poster-modal {
  background: var(--card); border-radius: 14px; padding: 14px;
  max-width: 400px; width: 100%; max-height: 94vh;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .32s cubic-bezier(.2,.9,.3,1.08) both;
}
.poster-title { text-align: center; font-weight: 700; letter-spacing: 4px; color: var(--cinnabar); font-size: 17px; }
.poster-scroll { overflow-y: auto; border-radius: 8px; -webkit-overflow-scrolling: touch; }
.poster-scroll canvas { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 14px rgba(43,42,38,.18); }
.poster-tip { font-size: 12.5px; color: var(--ink-light); line-height: 1.6; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* 弹层入场动画（display 切换重放） */
@keyframes maskIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 日诵任务（人民日报） ---------- */
.task-box {
  margin: 10px 0 4px; padding: 12px 14px;
  border: 1px solid rgba(158,43,37,.3); border-left: 3px solid var(--cinnabar);
  background: rgba(158,43,37,.05); border-radius: 6px; text-align: left;
}
.task-box .tb-label { font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.task-box .tb-title { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--ink); font-weight: 700; }
.task-box .tb-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-light); }
.task-box .tb-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 阅读弹层（内嵌人民日报） ---------- */
.reader-mask {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(30, 24, 18, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  animation: maskIn .28s ease both;
}
.reader-modal {
  background: var(--card); border-radius: 14px; width: 100%; max-width: 860px;
  height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn .32s cubic-bezier(.2,.9,.3,1.08) both;
}
.reader-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-deep);
}
.reader-head b {
  font-size: 14.5px; color: var(--ink); letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.reader-frame-wrap { flex: 1; position: relative; background: #fff; }
.reader-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reader-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- 弹窗提醒（Toast） ---------- */
.toast-wrap {
  position: fixed; top: 64px; right: 12px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; max-width: 330px; width: calc(100vw - 24px);
  pointer-events: none;
}
.toast {
  pointer-events: auto; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cinnabar);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(30,24,18,.22);
  animation: toastIn .45s cubic-bezier(.2,.9,.3,1.2) both;
}
.toast.out { animation: toastOut .4s ease both; }
.toast .t-kind { font-size: 12px; letter-spacing: 2px; color: var(--cinnabar); font-weight: 700; }
.toast .t-body { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.toast .t-sub { margin-top: 3px; font-size: 12px; color: var(--ink-light); }
.toast.guide { border-left-color: var(--gold); }
.toast.guide .t-kind { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- 今日诵读（全员音频） ---------- */
.listen-list { display: flex; flex-direction: column; gap: 12px; }
.listen-item { background: var(--card); border: 1px solid rgba(43,42,38,.1); padding: 14px 16px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.listen-item .li-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.listen-item .li-name { font-weight: 700; font-size: 15.5px; color: var(--cinnabar); }
.listen-item .li-time { font-size: 12px; color: var(--ink-light); }
.listen-item audio { width: 100%; margin-top: 8px; height: 38px; }

/* ---------- 互听·前 7 天折叠区 ---------- */
.past-toggle {
  display: inline-block; font-size: 13.5px; letter-spacing: 1px; cursor: pointer;
  color: var(--ink-light); padding: 7px 18px; border: 1px dashed var(--line);
  border-radius: 999px; transition: color .15s, border-color .15s;
}
.past-toggle:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.past-day { margin: 18px 0 10px; }
.past-audio .listen-item { margin-top: 10px; }

/* ---------- 我的打卡足迹 ---------- */
.ftabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ftabs button {
  font-family: inherit; font-size: 13.5px; letter-spacing: 2px; cursor: pointer;
  padding: 5px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-light); transition: all .2s;
}
.ftabs button:active { transform: scale(.95); }
.ftabs button.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #f7f3ea; box-shadow: 0 2px 8px rgba(158,43,37,.28); }
.hist-group { margin-bottom: 18px; }
.hist-day {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--ink);
  padding: 2px 12px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px;
}
.hist-item {
  margin-top: 10px; background: var(--card); border: 1px solid rgba(43,42,38,.1);
  border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.hist-item .hi-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hist-item .hi-type { font-size: 13px; color: #f7f3ea; background: var(--cinnabar); border-radius: 3px; padding: 1px 8px; letter-spacing: 2px; }
.hist-item .hi-note { margin-top: 6px; font-size: 14px; color: var(--ink-light); line-height: 1.6; }
.hist-item audio { width: 100%; margin-top: 8px; height: 38px; }
.hist-more { text-align: center; margin-top: 6px; }

/* ---------- 消息提醒开关条 ---------- */
.push-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: -16px 0 26px;
}
.push-bar .muted { font-size: 12.5px; }

/* ---------- 聊天室（声声阁） ---------- */
.chat-box {
  background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 12px;
  height: calc(100vh - 300px); min-height: 380px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.chat-scroll { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 86%; display: flex; gap: 8px; align-items: flex-start; animation: msgIn .3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .c-main { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.chat-msg.mine .c-main { align-items: flex-end; }
.chat-msg .c-name { font-size: 12px; color: var(--ink-light); margin: 0 4px 3px; }
.chat-msg .c-bubble {
  padding: 8px 13px; border-radius: 12px; font-size: 15px; line-height: 1.6;
  background: #fff; border: 1px solid rgba(43,42,38,.1); word-break: break-word; white-space: pre-wrap;
  box-shadow: 0 1px 3px rgba(60,40,30,.05);
}
.chat-msg.mine .c-bubble { background: linear-gradient(135deg, #a8332c, var(--cinnabar)); border-color: var(--cinnabar); color: #f7f3ea; }
.chat-msg .c-time { font-size: 11px; color: var(--ink-light); margin: 3px 4px 0; }
.chat-divider { text-align: center; font-size: 12px; color: var(--ink-light); margin: 4px 0; }
.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--paper-deep); }
.chat-input-row textarea {
  flex: 1; min-height: 42px; max-height: 120px; font-size: 15px; resize: none;
  border-radius: 8px;
}
.chat-input-row .btn { flex-shrink: 0; align-self: flex-end; }
.chat-input-row .emoji-btn { align-self: flex-end; }

/* ---------- 头像（聊天 + 论坛通用） ---------- */
.c-avatar, .avatar-ph { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.c-avatar { object-fit: cover; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 3px rgba(60,40,30,.08); }
.avatar-ph {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #cfa88a, #b98d6f); color: #fff;
  font-size: 17px; font-family: "Kaiti SC", "KaiTi", "STKaiti", serif;
}
.chat-msg:not(.mine) .c-avatar, .chat-msg:not(.mine) .avatar-ph { margin-top: 21px; }
.chat-msg.mine .c-avatar, .chat-msg.mine .avatar-ph { cursor: pointer; }
.p-ava, .r-ava, .d-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -6px; border: 1px solid var(--line); background: var(--card); }
.avatar-ph.ph-sm { width: 22px; height: 22px; font-size: 12.5px; display: inline-flex; vertical-align: -6px; }
.p-ava-row { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 社员名录（app.html） ---------- */
.roster {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.rs-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); letter-spacing: 1px; }
.rs-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
.avatar-ph.rs-ava { width: 30px; height: 30px; font-size: 14px; }

/* ---------- 模块折叠（admin.html / app.html / my.html 通用） ---------- */
h2.sec.mod-head { cursor: pointer; user-select: none; -webkit-user-select: none; }
h2.sec.mod-head::after { content: "▾"; float: right; font-size: 18px; color: #8a857a; transition: transform .2s ease; }
h2.sec.mod-head.collapsed::after { content: "▸"; }

/* ---------- emoji 表情面板 ---------- */
.emoji-btn {
  flex-shrink: 0; height: 42px; min-width: 42px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s, transform .15s;
}
.emoji-btn:active { background: var(--paper-deep); transform: scale(.94); }
.emoji-panel {
  position: fixed; z-index: 999; width: 300px; max-width: calc(100vw - 16px);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 32px rgba(43, 42, 38, .22); overflow: hidden;
  animation: emojiIn .22s ease both;
}
@keyframes emojiIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.emoji-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.emoji-tab { flex: 1; border: 0; background: transparent; padding: 7px 0; font-size: 17px; cursor: pointer; opacity: .45; }
.emoji-tab.on { opacity: 1; background: #fff; }
.emoji-body { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 168px; overflow-y: auto; }
.emoji-it { border: 0; background: transparent; font-size: 21px; padding: 4px 0; border-radius: 6px; cursor: pointer; line-height: 1.3; transition: transform .12s; }
.emoji-it:hover { transform: scale(1.15); }
.emoji-it:active { background: var(--paper-deep); }

/* ---------- 个人资料卡 + 编辑弹层（app.html） ---------- */
.pf-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 12px;
  padding: 12px 14px; margin: -6px 0 22px; box-shadow: var(--shadow-sm);
}
.pf-ava { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex-shrink: 0; transition: transform .25s; }
.pf-ava:hover { transform: scale(1.04); }
.avatar-ph.pf-ava { width: 58px; height: 58px; font-size: 25px; cursor: pointer; }
.pf-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pf-meta b { font-size: 16.5px; letter-spacing: 1px; }
.pf-meta .muted { font-size: 12.5px; line-height: 1.5; word-break: break-word; }
.pf-modal {
  background: var(--card); border-radius: 14px; width: 100%; max-width: 420px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn .32s cubic-bezier(.2,.9,.3,1.08) both;
}
.pf-body { padding: 16px 16px 18px; overflow-y: auto; }
.pf-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pf-row-txt { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- 论坛 ---------- */
.post-item {
  background: var(--card); border: 1px solid rgba(43,42,38,.1); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.post-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-item h3 { font-size: 16.5px; letter-spacing: 1px; line-height: 1.5; }
.post-item .p-meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-light); display: flex; gap: 10px; flex-wrap: wrap; }
.reply-item { margin-top: 10px; padding: 10px 12px; background: rgba(169,129,46,.06); border: 1px solid rgba(169,129,46,.18); border-radius: 8px; }
.reply-item .r-head { font-size: 12.5px; color: var(--ink-light); }
.reply-item .r-body { margin-top: 4px; font-size: 14.5px; line-height: 1.65; word-break: break-word; }
.forum-float {
  position: fixed; right: 18px; bottom: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #a8332c, var(--cinnabar)); color: #f7f3ea; font-size: 24px; font-family: inherit;
  box-shadow: 0 8px 22px rgba(158,43,37,.4); line-height: 52px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.forum-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(158,43,37,.46); }
.forum-float:active { transform: scale(.94); }

/* ===== 声声相闻 · 互评留言 ===== */
.cmt-bar { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; }
.cmt-toggle { font-size: 13px; color: var(--ink-light); cursor: pointer; letter-spacing: 1px; user-select: none; -webkit-tap-highlight-color: transparent; }
.cmt-toggle:active { transform: scale(.96); }
.cmt-toggle b { color: var(--cinnabar); font-weight: 700; }
.audio-cmts { margin-top: 8px; }
.cmt-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.cmt-item { display: flex; gap: 8px; align-items: flex-start; }
.cmt-ava { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; margin-top: 2px; }
.cmt-body { flex: 1; min-width: 0; background: var(--cinnabar-soft); border-radius: 2px 10px 10px 10px; padding: 6px 10px; }
.cmt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cmt-name { color: var(--cinnabar); font-weight: 700; letter-spacing: 1px; }
.cmt-del { margin-left: auto; color: var(--ink-light); font-size: 11.5px; cursor: pointer; letter-spacing: 1px; }
.cmt-del:active { transform: scale(.94); }
.cmt-text { font-size: 13.5px; line-height: 1.65; word-break: break-word; color: var(--ink); }
.cmt-inputrow { display: flex; gap: 8px; margin-top: 8px; }
.cmt-inputrow input { flex: 1; min-width: 0; font-size: 13.5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--ink); font-family: inherit; }
.cmt-inputrow input:focus { outline: none; border-color: var(--cinnabar); box-shadow: 0 0 0 3px rgba(158,43,37,.12); }
.cmt-inputrow button { border: none; background: linear-gradient(135deg, #a8332c, var(--cinnabar)); color: #f7f3ea; border-radius: 8px; padding: 0 14px; font-size: 13px; letter-spacing: 2px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.cmt-inputrow button:active { transform: scale(.94); }
