/* 乐乐妈妈 · 家庭作业辅导 · Web 用户站（对齐网站原型：暖纸底 #e9e5dd、主色 #e0603a、科目色、圆角阴影）
   字体用系统栈（PingFang/雅黑）：原 Google Fonts @import 在大陆网络拉不到，页面会卡到超时 */
* { box-sizing: border-box; }
[v-cloak] { display: none; }
:root {
  --accent: #e0603a; --accent-deep: #c44e2c;
  --accent-soft: rgba(224, 96, 58, .09);
  --accent-soft2: rgba(224, 96, 58, .6);
  --accent-softb: rgba(224, 96, 58, .27);
  --ink: #221e1a; --ink2: #443d35; --ink3: #6a6055;
  --muted: #7d7569; --faint: #938a7c;
  --line: #f0ebe3; --line2: #ece6dc; --line3: #e6ddd0; --line4: #e3dccf;
  --bg-soft: #f6f2ea; --bg-soft2: #faf7f1;
  --gold: #c99a3a; --gold-bg: #fbf1de;
  --green: #2f9e6b; --green-bg: #e9f5ee;
}
body {
  margin: 0; background: radial-gradient(1400px 800px at 50% -10%, #f4efe7, #e6e1d8);
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font-family: inherit; }
.sc::-webkit-scrollbar { width: 8px; }
.sc::-webkit-scrollbar-thumb { background: #d8d0c4; border-radius: 4px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(100%); } to { transform: translateX(0); } }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* ---------- 应用外框（grid：左列侧栏从顶栏下开始；公告/动态条只占内容列） ---------- */
.app {
  max-width: 1360px; margin: 26px auto; background: #fff; border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(60, 44, 30, .45);
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "side main";
  min-height: calc(100vh - 52px); position: relative;
}
/* 非浏览视图（VIP 等）：无侧栏，单列全宽 */
.app.plain {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "main";
}
/* 主列（公告/动态/内容/VIP）自成 flex 纵列：行高只由自身内容决定。
   旧结构里侧栏跨 nb/act/body 三行，筛选后内容变矮时侧栏多余高度会被 grid
   均摊到三个 auto 行上，把公告/动态条撑高（41→169px / 122→250px），故重构 */
.main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }

/* ---------- 顶部导航 ---------- */
.topbar {
  grid-area: top;
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 26px; z-index: 20;
  border-radius: 14px 14px 0 0; position: sticky; top: 0;
}
.brand { display: flex; align-items: center; flex: none; cursor: pointer; }
/* 横版品牌 logo（已裁透明留白至 840×276 透明底深字，白顶栏用）：高度定值、宽度按比例自适应 */
.brand-img { height: 46px; width: auto; display: block; }
.region-wrap { position: relative; flex: none; }
.region-btn {
  border: 1px solid var(--line2); background: var(--accent-soft); border-radius: 9px;
  padding: 8px 12px; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.region-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.region-btn b { font-size: 13px; font-weight: 700; color: var(--ink); }
.region-btn small { font-size: 10px; color: var(--muted); }
.searchbar {
  flex: 1; background: var(--bg-soft); border: 1.5px solid var(--line2); border-radius: 10px; height: 40px;
  display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px;
  /* 桌面左缘对齐内容列公告条/卡片左缘：顶栏内边距 26 + logo 190 + 间距 18 + 14
     = 248 = 侧栏列宽 224 + 内容内边距 24（≤1180px 段归零，移动端搜索行仍通栏）
     logo 宽随品牌图资产变化，换图后须重校此值 */
  margin-left: 14px;
}
.search-ico { width: 16px; height: 16px; border: 2px solid #b3a595; border-radius: 50%; position: relative; flex: none; }
.search-ico::after {
  content: ""; position: absolute; width: 6px; height: 2px; background: #b3a595; bottom: -3px; right: -4px; transform: rotate(45deg);
}
.searchbar input { flex: 1; border: none; background: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); }
.search-go {
  border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 22px; border-radius: 8px; cursor: pointer;
}
.nav-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav-link { border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink2); padding: 0; }
.nav-link.on { font-weight: 800; color: var(--accent); }
/* 免费工具标签二级菜单（口算/字帖工具入口，独立一级标签、位于家长问答之后）：hover/focus-within 展开；仅桌面顶栏渲染（≤1180px nav 隐藏） */
.nav-group { position: relative; display: inline-flex; }
.nav-hasdrop { display: inline-flex; align-items: center; gap: 3px; }
.nav-hasdrop .ico { color: var(--faint); transition: transform .15s ease; }
.nav-group:hover .nav-hasdrop .ico, .nav-group:focus-within .nav-hasdrop .ico { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 252px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(31, 23, 18, .16); z-index: 70;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }   /* 悬停桥：跨过链接与菜单间的空隙 */
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; }
.nav-drop a:hover { background: var(--accent-soft); }
.nav-drop .ico { color: var(--accent); flex: none; }
.nd-txt { min-width: 0; }
.nd-txt b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.nd-txt small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-upload {
  border: 1px solid var(--accent); background: #fff; color: var(--accent); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 9px; cursor: pointer;
}
.btn-upload:hover { background: var(--accent-soft); }
.user-chip { display: flex; align-items: center; gap: 7px; padding-left: 4px; }
.avatar {
  height: 32px; min-width: 32px; max-width: 120px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12.5px; cursor: pointer; border: none;
  white-space: nowrap; overflow: hidden;
}

/* ---------- 地区菜单 ---------- */
.region-menu {
  position: absolute; top: 46px; left: 0; z-index: 40; background: #fff; border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(60, 44, 30, .3); padding: 14px; width: 300px;
  animation: fade .15s ease;
}
.rm-tip { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rm-nation {
  width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 10px; color: #332d26;
}
.rm-nation.on { border-color: var(--accent); background: var(--accent-soft); }
.rm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rm-city {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 4px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.rm-city.on { border-color: var(--accent); background: var(--accent-soft); }
.rm-city b { font-size: 12.5px; font-weight: 700; color: #332d26; }
.rm-city.on b { color: var(--accent); }
.rm-city small { font-size: 10px; color: var(--faint); }

/* ---------- 右上角 App 下载弹层 ---------- */
.apk-wrap { position: relative; flex: none; }
.nav-apk {
  border: 1px solid var(--line2); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--ink2); padding: 6px 12px; border-radius: 9px; white-space: nowrap;
}
.nav-apk:hover { border-color: var(--accent); color: var(--accent); }
.apk-menu {
  position: absolute; top: 46px; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(60, 44, 30, .3); padding: 14px; width: 216px;
  text-align: center; animation: fade .15s ease;
}
.apk-tip { font-size: 12px; font-weight: 700; color: var(--ink2); margin-bottom: 10px; }
.apk-qr { display: flex; align-items: center; justify-content: center; min-height: 168px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.apk-qr img { display: block; }
.apk-noqr { font-size: 12px; color: var(--muted); line-height: 1.7; padding: 30px 0; }
.apk-link {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px;
  font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: none;
  padding: 11px 8px; border-radius: 10px; background: var(--accent);
  box-shadow: 0 2px 8px rgba(224, 96, 58, .35);
}
.apk-link:hover { background: var(--accent-deep); color: #fff; }
.apk-sub { font-size: 10.5px; color: var(--faint); margin-top: 9px; line-height: 1.6; }

/* ---------- 浏览：侧栏（左列，与公告/动态条并排）+ 内容 ---------- */
.side {
  grid-area: side;
  border-right: 1px solid var(--line); padding: 18px 16px;
  position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow-y: auto;
}
.local-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-radius: 12px;
  padding: 14px; color: #fff; margin-bottom: 18px;
}
.lc-kicker { font-size: 11px; opacity: .9; font-weight: 500; margin-bottom: 5px; }
.lc-title { font-size: 15px; font-weight: 900; line-height: 1.35; }
.lc-badge {
  margin-top: 8px; font-size: 11px; background: rgba(255, 255, 255, .22); display: inline-block;
  padding: 3px 8px; border-radius: 12px; font-weight: 600;
}
.fgroup { margin-bottom: 18px; }
.fg-title { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 9px; }
/* 搜索态：年级/科目/册次不参与结果过滤（关键词已含分类词），整组置灰禁点示意 */
.fg-hint { font-size: 11px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 5px 9px; margin-bottom: 12px; }
.fgroup.dim .fg-title { color: var(--muted); }
.fgroup.dim .chip { opacity: .45; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line2); background: #fff; color: var(--ink3); font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 16px; cursor: pointer;
}
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.content { min-width: 0; padding: 18px 24px; animation: fade .2s ease; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.crumb-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* 内容区主标题挂一道品牌色短竖线：弱化全站「标题一律加粗」造成的扁平感，给锚点一个视觉抓手 */
.crumb { position: relative; padding-left: 14px; font-size: 18px; font-weight: 900; color: var(--ink); }
.crumb::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 16px;
  transform: translateY(-50%); border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.crumb-count { font-size: 13px; color: var(--muted); }
.crumb-count b { color: var(--accent); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sorts { display: flex; gap: 14px; font-size: 13px; }
.sort { color: var(--muted); cursor: pointer; font-weight: 500; }
.sort.on { font-weight: 800; color: var(--accent); }
.flowtoggle { display: flex; background: var(--line); border-radius: 8px; padding: 3px; }
.ft-btn {
  border: none; cursor: pointer; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: transparent; color: var(--muted);
}
.ft-btn.on { background: #fff; color: var(--accent); }
/* 首页「教材/教辅」分区切换（与视图切换同款分段控件；教辅=非教材类型，教材=课本） */
.cattabs { display: flex; background: var(--line); border-radius: 8px; padding: 3px; }
.ct-btn {
  border: none; cursor: pointer; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: transparent; color: var(--muted);
}
.ct-btn.on { background: #fff; color: var(--accent); }

.batchbar {
  background: var(--accent-soft); border: 1px solid var(--accent-softb); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.batchbar span { font-size: 13px; color: #7a5a3a; }
.batchbar b { color: var(--accent-deep); }
.batch-btn {
  border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 8px; cursor: pointer; flex: none;
}
.batch-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 骨架屏：首次/重置加载时占位，形状贴合真实卡片，避免内容「闪现」造成的跳动感 ---------- */
.skel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.skel-cover, .skel-line {
  border-radius: 10px; background: linear-gradient(100deg, var(--line2) 28%, var(--line) 50%, var(--line2) 72%);
  background-size: 200% 100%; animation: skelShine 1.6s ease-in-out infinite;
}
.skel-cover { width: 100%; aspect-ratio: 210 / 297; }
.skel-line { height: 11px; border-radius: 6px; }
.skel-line.w90 { width: 88%; }
.skel-line.w60 { width: 58%; margin-top: 2px; }
.skel-line.w40 { width: 36%; margin-top: auto; }
@keyframes skelShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel-cover, .skel-line { animation: none; background: var(--line2); }
  .morebar .ico, .act-ico .ico, .rtag-chal { animation: none; }
}

/* ---------- 卡片网格（A4 竖版封面：210:297 真实试卷比例 + 悬浮标签，下载按钮直接下载） ---------- */
.grid3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rcard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  box-shadow: 0 2px 10px rgba(120, 80, 40, .05); position: relative;
  display: flex; flex-direction: column;
}
.rcard-sel { position: absolute; top: 12px; right: 12px; z-index: 2; }
/* 封面横幅：无封面时科目色底纹 + 居中 PDF 图标占位（旧版 60×78 缩略图过小、右侧大量留白） */
/* 封面按 A4 比例（预览图即 A4 页渲染，cover 不裁切）；无封面时科目色底纹 + 居中 PDF 图标占位 */
.rcover {
  position: relative; width: 100%; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--sttint), var(--sttint) 7px, #fff 7px, #fff 9px);
  border: 1px solid var(--sttint);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--stcolor); }
.rc-empty .ico { width: 34px; height: 34px; opacity: .8; }
.rc-empty b { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; }
.rtags { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.rtag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; box-shadow: 0 1px 4px rgba(40, 26, 12, .16); }
.rtitle {
  margin-top: 10px; min-height: 2.7em; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; cursor: pointer;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rtitle:hover { color: var(--accent-deep); }
.rmeta { font-size: 11px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.rfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rprice { font-size: 15px; font-weight: 800; color: var(--accent); }
.rprice small { font-size: 11px; font-weight: 500; color: var(--faint); }
.btn-dl {
  border: none; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
}
.btn-dl:hover { background: var(--accent); color: #fff; }

/* ---------- 列表视图 ---------- */
.ltable { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
/* 列表视图表头/行（改名 lthead/ltrow：原 .lhead/.lrow 与登录弹窗撞名，会把
   padding/灰底/hover 泄漏进登录框，造成输入行缩进错位） */
.lthead, .ltrow { display: flex; align-items: center; padding: 11px 16px; }
.lthead { background: var(--bg-soft2); font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.ltrow { border-bottom: 1px solid #f4efe7; font-size: 13px; }
.ltrow:last-child { border-bottom: none; }
.ltrow:hover { background: #fdfbf7; }
.lcol-sel { width: 28px; flex: none; }
.lcol-title { flex: 1; min-width: 0; }
.lcol-title-in { font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lcol-title-in em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcol-title-in:hover em { color: var(--accent-deep); }
.lbar { width: 5px; height: 20px; border-radius: 3px; flex: none; }
.lcol-subj { width: 80px; font-weight: 700; }
.lcol-ver { width: 100px; color: var(--muted); }
.lcol-page { width: 60px; color: var(--muted); }
.lcol-pt { width: 70px; color: var(--accent); font-weight: 800; }
.lcol-act { width: 80px; }
.loc-pill { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; flex: none; }

/* ---------- 无限加载（替代分页）：哨兵滑进视口自动拉下一页，点击兜底 ---------- */
.morebar {
  text-align: center; padding: 24px 0 6px; font-size: 13px; color: var(--muted);
  cursor: pointer; user-select: none;
}
.morebar:hover { color: var(--accent); }
.morebar .ico { animation: actspin 2.2s linear infinite; vertical-align: -3px; margin-right: 5px; }
/* 回到顶部（列表滑深后浮现；无限滚动后回筛选区的快捷入口） */
.backtop {
  position: fixed; right: 26px; bottom: 34px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line2); color: var(--ink3);
  box-shadow: 0 8px 22px -8px rgba(60, 44, 30, .3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, border-color .15s ease, color .15s ease;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.backtop:hover { color: var(--accent); border-color: var(--accent-softb); }

/* ---------- 空态：吉祥物替代通用线框图标，呼应品牌（原仅登录弹窗用过一次） ---------- */
.empty { text-align: center; padding: 56px 0 64px; color: var(--muted); font-size: 14px; }
.empty-mascot { width: 92px; height: auto; display: block; margin: 0 auto 16px; filter: drop-shadow(0 10px 18px rgba(120, 80, 40, .14)); }
.empty-text { font-weight: 700; color: var(--ink3); }
.loading { text-align: center; padding: 40px 0; color: var(--faint); font-size: 13px; }

/* ---------- VIP 视图 ---------- */
/* 不设 overflow-y:auto：vipwrap 无高度约束，永远装得下内容、自身从不滚动，
   反而成了"假滚动容器"——华为等 OEM 内核会把手势吃在这种容器上不外链给 body
   （表现为会员页滑不动）；去掉后与浏览视图同走 body 滚动 */
.vipwrap { animation: fade .2s ease; margin-top: 32px; }  /* 通知条底边距 hero 顶零空隙（上下不对称），补 32px 与 vipbody padding-top 同值 */
/* 2026-11-02 三版定稿：深棕黑太突兀→浅金又与通知条 --gold-bg 撞色→改白底。
   会员的「金」质感收敛到三处细节：顶部金渐变细边、金徽章 kicker、金价格体系 */
.viphero {
  background: linear-gradient(180deg, #fffdf8, #fdfaf3);
  padding: 38px 48px 34px; color: var(--ink); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line3);
}
.viphero::before {                                  /* 顶缘金→暖橙渐变细线：金会员的视觉锚点 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), #e6bd6e 38%, #d99a4e 72%, var(--accent-softb));
}
.viphero::after {
  content: ""; position: absolute; right: -8px; bottom: -22px; width: 196px; height: 196px;
  background: url("../img/mascot-512.png") no-repeat center / contain;
  opacity: .15; pointer-events: none;
}
.viphero .kicker, .viphero h2, .viphero p { position: relative; z-index: 1; }
.viphero .kicker {                                   /* 徽章化：金描边空心 pill，区别于通知条的实底金字 */
  display: inline-block; font-size: 12px; letter-spacing: 2px; color: #a8781f;
  font-weight: 800; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(201, 154, 58, .45); background: rgba(201, 154, 58, .08);
}
.viphero h2 { font-size: 28px; font-weight: 900; margin: 0 0 6px; color: var(--ink); }
.viphero p { font-size: 14px; color: var(--ink3); margin: 0; }
.vipbody { padding: 32px 48px; }
.vipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vcard {
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: 0 4px 16px rgba(120, 80, 40, .06); position: relative;
}
.vcard.owned { border-color: #2f9e6b55; }
.vowned {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  color: var(--green); background: var(--green-bg); padding: 3px 10px; border-radius: 12px;
}
.vgrade { font-size: 18px; font-weight: 900; color: var(--ink); }
.vprice { margin-top: 12px; display: flex; align-items: baseline; gap: 2px; }
.vprice .cur { font-size: 15px; color: var(--gold); font-weight: 700; }
.vprice .num { font-size: 36px; font-weight: 900; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vprice .per { font-size: 13px; color: var(--faint); }
.vbenefits { margin-top: 12px; font-size: 12.5px; color: var(--ink3); line-height: 1.9; }
.vweekly { margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; }
.vbtn {
  width: 100%; margin-top: 16px; border: none; cursor: pointer; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 14px; padding: 11px; border-radius: 10px;
}
.vbtn.owned { background: var(--green-bg); color: var(--green); }

/* ---------- 详情抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(20, 14, 8, .35); z-index: 50; animation: fade .2s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: var(--bg-soft);
  overflow-y: auto; animation: slidein .28s cubic-bezier(.2, .9, .3, 1);
  box-shadow: -20px 0 50px -20px rgba(60, 44, 30, .35); z-index: 51;
}
.d-inner { padding: 26px 28px 0; }
.d-close {
  border: none; background: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px;
  cursor: pointer; color: var(--ink2); box-shadow: 0 2px 8px rgba(120, 80, 40, .1); margin-bottom: 16px;
}
.d-title { font-size: 21px; font-weight: 900; line-height: 1.4; color: var(--ink); }
.dtags { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.dtag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.dmeta {
  background: #fff; border-radius: 14px; padding: 18px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 16px; box-shadow: 0 2px 12px rgba(120, 80, 40, .06);
}
.dm-num { font-size: 17px; font-weight: 900; }
.dm-num.acc { color: var(--accent); }
.dm-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.d-sec-title { margin: 20px 0 10px; font-size: 15px; font-weight: 900; }
.d-sec-title small { font-size: 12px; font-weight: 500; color: var(--faint); }
.d-preview { padding: 0 28px; }
.preview-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(120, 80, 40, .06); }
.preview-card img { width: 100%; display: block; border-radius: 6px; }
.locknote { text-align: center; padding: 16px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- 详情抽屉 · 评论打分 ---------- */
.d-comments { padding: 4px 28px 24px; }
.cm-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.cm-title { font-size: 15px; font-weight: 900; }
.cm-avg { font-size: 14px; font-weight: 800; color: var(--gold, #c99a3a); }
.cm-avg small { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.cm-avg.none { font-size: 12px; font-weight: 500; color: var(--faint); }
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-item { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 12px rgba(120, 80, 40, .06); }
.cm-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cm-main { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: center; gap: 8px; }
.cm-top b { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.cm-top small { font-size: 11px; color: var(--faint); }
.cm-del { margin-left: auto; border: none; background: none; font-size: 11.5px; color: var(--faint); cursor: pointer; padding: 2px 4px; }
.cm-del:hover { color: #c0392b; }
.cm-stars { display: inline-flex; }
.cm-stars i { font-style: normal; font-size: 12px; color: var(--line3); line-height: 1; }
.cm-stars i.on { color: #e8a33d; }
.cm-text { font-size: 13px; color: var(--ink2); line-height: 1.65; margin-top: 5px; word-break: break-word; }
.cm-text.none { color: var(--faint); font-size: 12px; }
.cm-empty { text-align: center; font-size: 12.5px; color: var(--faint); padding: 22px 0; background: #fff; border-radius: 12px; }
.cm-editor { margin-top: 14px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 12px rgba(120, 80, 40, .06); }
.cm-picker { display: flex; align-items: center; gap: 4px; }
.cm-pick-label { font-size: 12px; color: var(--muted); margin-right: 6px; }
.cm-star { border: none; background: none; font-size: 22px; line-height: 1; color: var(--line3); cursor: pointer; padding: 2px; transition: transform .1s ease; }
.cm-star.on { color: #e8a33d; }
.cm-star:hover { transform: scale(1.15); }
.cm-picker b { font-size: 13px; color: var(--ink2); margin-left: 8px; }
.cm-ta { width: 100%; margin-top: 10px; border: 1.5px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; outline: none; resize: vertical; min-height: 64px; background: var(--bg-soft); box-sizing: border-box; }
.cm-ta:focus { border-color: var(--accent); background: #fff; }
.cm-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cm-note { font-size: 11.5px; color: var(--faint); }
.cm-submit { border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: 13px; padding: 9px 22px; border-radius: 10px; cursor: pointer; }
.cm-submit:disabled { opacity: .6; cursor: default; }
/* ---- 评论晒图：编辑器缩略图行（选中即传）+ 评论项图片（点击进灯箱） ---- */
.cm-imgrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cm-img { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1.5px solid var(--line2); }
.cm-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.cm-img-st { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(30, 24, 18, .52); text-align: center; }
.cm-img.bad { border-color: #d9534f; }
.cm-img.bad img { opacity: .35; }
.cm-img-x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(30, 24, 18, .55); color: #fff; font-size: 10px; line-height: 1; cursor: pointer; padding: 0; }
.cm-img-x:hover { background: #d9534f; }
.cm-img-add {
  width: 64px; height: 64px; border: 1.5px dashed var(--line3); border-radius: 9px;
  background: var(--bg-soft2); color: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer;
  font-size: 10.5px; font-weight: 700;
}
.cm-img-add .ico { width: 18px; height: 18px; }
.cm-img-add:hover { border-color: var(--accent); color: var(--accent); }
.cm-img-tip { font-size: 11px; color: var(--faint); margin-top: 6px; line-height: 1.6; }
.cm-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cm-imgs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line2); display: block; }
.dfoot {
  position: sticky; bottom: 0; background: rgba(246, 242, 234, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line3); padding: 16px 28px; display: flex; gap: 12px; align-items: center;
}
.btn-fav {
  border: none; background: #fff; border: 1px solid var(--line3); cursor: pointer; padding: 12px 16px;
  border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--muted); flex: none;
}
.btn-fav.on { color: #e05656; border-color: #f3c9c9; background: #fbeeed; }
/* 下载主按钮：全站统一「立即下载」两行式（主行 + 结算方式小字）；金色 = 本次走 VIP 免费通道 */
.btn-dlmain {
  flex: 1; border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff;
  padding: 8px 13px; border-radius: 11px; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: inherit;
}
.btn-dlmain .dl-t { font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.btn-dlmain .dl-sub { font-size: 11px; font-weight: 600; opacity: .88; letter-spacing: .3px; }
.btn-dlmain.vip { background: linear-gradient(120deg, #d4a95a, #c99a3a); }
.btn-dlmain:disabled { opacity: .7; cursor: wait; }
/* ¥ 免登录直购入口（详情抽屉 dfoot、未登录+付费资料）：与「立即下载」并排的实底次级按钮，
   两行式与 .btn-dlmain 同构（主行 + 副行小字）。配色取 logo 小人套色：小人黄 #ffc24b 底 + 线稿深棕 #3a2a22 字。
   .dfoot.split 时底栏两行：收藏/邀请/反馈占一行（basis 30% 挤不下并排的下载按钮自动换行），双下载按钮各半一行 */
.dbuy-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid #ffc24b; background: #ffc24b; color: #3a2a22;
  padding: 6.5px 6px; border-radius: 11px; cursor: pointer; font-family: inherit;
}
.dbuy-btn .dl-t { font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.dbuy-btn .dl-sub { font-size: 11px; font-weight: 600; color: rgba(58, 42, 34, .72); letter-spacing: .3px; }
.dbuy-btn:active { background: #f0b23a; border-color: #f0b23a; }
.dbuy-btn.bought { border-color: var(--line3); background: #fff; color: var(--muted); }
.dbuy-btn.bought .dl-sub { color: var(--faint); }
.dfoot.split { flex-wrap: wrap; }
.dfoot.split .btn-fav { flex: 1 1 30%; justify-content: center; padding-left: 8px; padding-right: 8px; }
.dfoot.split .btn-dlmain, .dfoot.split .dbuy-btn { flex: 1 1 calc(50% - 6px); align-self: stretch; }

/* ---------- 上传弹窗 ---------- */
.umask { position: fixed; inset: 0; background: rgba(20, 14, 8, .4); z-index: 60; display: flex; align-items: center; justify-content: center; animation: fade .2s ease; }
.umodal {
  width: 680px; max-width: 94vw; max-height: 88vh; background: var(--bg-soft); border-radius: 18px;
  overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(60, 44, 30, .5);
}
.u-head {
  padding: 24px 28px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--bg-soft); z-index: 2;
}
.u-head b { font-size: 18px; font-weight: 900; }
.u-x { border: none; background: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--ink2); }
.u-body { padding: 22px 28px 28px; }
.u-tip {
  background: linear-gradient(115deg, var(--accent-soft), #fff); border: 1px solid var(--accent-softb);
  border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #7a5a3a; margin-bottom: 18px;
}
.dropzone {
  border: 2px dashed var(--accent); border-radius: 14px; padding: 34px; text-align: center;
  background: #fff; margin-bottom: 20px; cursor: pointer;
}
.dropzone.drag { background: var(--accent-soft); }
.dz-ico { font-size: 34px; }
.dz-main { font-size: 15px; font-weight: 700; margin-top: 10px; }
.dz-sub { font-size: 12px; color: var(--faint); margin-top: 5px; }
.dz-file { margin-top: 10px; font-size: 13px; color: var(--accent-deep); font-weight: 700; }

/* ══ 图片合成 PDF 面板（上传弹窗）：缩略图栅格 + 拖拽排序 + 命名行 ══ */
.mergebox { border: 2px dashed var(--accent); border-radius: 14px; background: #fff; margin-bottom: 20px; padding: 14px; }
.mb-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.mb-head b { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-deep); }
.mb-count { font-size: 12px; color: var(--faint); }
.mb-add, .mb-clear { border: none; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 5px 10px; cursor: pointer; }
.mb-add { background: var(--accent-soft); color: var(--accent-deep); }
.mb-add:hover { background: var(--accent); color: #fff; }
.mb-clear { background: #fdecea; color: #d9534f; }
.mb-namerow { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.mb-nlabel { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 700; }
.mb-name { flex: 1; min-width: 0; }
.mb-ext { font-size: 13px; color: var(--faint); font-weight: 700; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 264px; overflow-y: auto; padding: 2px; }
.mb-item { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--bg-soft); cursor: grab; user-select: none; }
.mb-item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; pointer-events: none; }
.mb-item.drag { opacity: .45; cursor: grabbing; }
.mb-item.over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.mb-idx { position: absolute; top: 5px; left: 5px; min-width: 20px; height: 20px; border-radius: 6px; background: rgba(30, 24, 18, .65); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.mb-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(30, 24, 18, .55); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.mb-x:hover { background: #d9534f; }
.mb-move { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.mb-move button { width: 24px; height: 22px; border: none; border-radius: 6px; background: rgba(30, 24, 18, .6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.mb-move button:disabled { opacity: .3; cursor: default; }
.mb-fname { display: block; font-size: 10.5px; color: var(--muted); padding: 3px 5px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-tip { font-size: 11.5px; color: var(--faint); margin-top: 10px; }
/* 坏图标记：缩略图加载/解码失败时盖层提示原因，提交被拦 */
.mb-item.bad img { opacity: .15; }
.mb-bad { position: absolute; inset: 0 0 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; font-size: 10.5px; font-weight: 700; color: #d9534f; text-align: center; line-height: 1.4; }
.u-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.u-field-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.u-field-label i { font-style: normal; color: #d9534f; }
.u-select {
  width: 100%; border: 1px solid var(--line3); background: #fff; border-radius: 9px; padding: 10px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink); font-family: inherit; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c2b8ab' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.u-select.ph { color: #c2b8ab; font-weight: 500; }
.u-codes { grid-column: 1 / -1; }
/* 上传表单知识点点选行（字典随科目联动，与手输自定义共存） */
.u-kps { margin-bottom: 8px; }
.u-kps .chip { padding: 4px 10px; font-size: 11.5px; }
.u-input {
  width: 100%; border: 1px solid var(--line3); background: #fff; border-radius: 9px; padding: 10px 12px;
  font-size: 13px; font-family: inherit; outline: none; color: var(--ink);
}
.u-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; cursor: pointer; }
.u-check input { margin-top: 1px; }
.u-check span { font-size: 12px; color: #7a7268; line-height: 1.55; }
.dkp { margin-top: 10px; font-size: 12.5px; color: var(--ink2); background: var(--bg-soft, #f6f2ea); border-radius: 8px; padding: 8px 12px; line-height: 1.6; }
.u-submit {
  width: 100%; margin-top: 20px; border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  color: #fff; font-weight: 800; font-size: 15px; padding: 14px; border-radius: 12px; cursor: pointer;
  box-shadow: 0 8px 20px -6px var(--accent-soft2);
}
.u-submit:disabled { opacity: .6; cursor: wait; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-8px); z-index: 100;
  background: #2f2a24; color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px;
  border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4); opacity: 0;
  pointer-events: none; transition: all .2s ease; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #8c3a2a; }

/* ---------- 响应式 ----------
   只分两档：≤1180px 统一走文末「移动端 App 布局」（手机 + iPad 竖/横屏，底部 Tabbar），
   >1180px 走本文件默认桌面布局（左侧栏 + 顶栏导航）。原 1100/900 两个中间档已并入移动块
   （结构规则移入其中，避免 769~1180 区间出现「桌面网格 + 手机外壳」的杂交态）。 */

/* ══════════ 登录弹窗 ══════════ */
.lmask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(34, 26, 18, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s ease;
}
.lcard {
  width: 400px; max-width: 100%;
  /* lmask 是 flex 容器，本卡为 item：min-width:auto（内容最小宽）会越过 max-width:100%
     把卡撑出屏幕（移动端 16px 输入框内在宽 ~314px → 整卡 474px > 视口 390px，实测溢出）。
     显式 min-width:0 才能让 max-width 收住；.lrow .li 的 min-width:0 负责让输入框随之收缩 */
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px -25px rgba(60, 44, 30, .45);
  padding: 26px 28px 24px;
  animation: floatup .25s ease;
}
.lhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.llogo {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 900;
}
.llogo img { width: 32px; height: 32px; display: block; }
.lhead-t { flex: 1; min-width: 0; }
.lt { font-size: 17px; font-weight: 900; }
.ls { font-size: 12px; color: var(--muted); margin-top: 3px; }
.lx {
  border: none; background: var(--bg-soft, #f6f2ea); color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.lx:hover { background: var(--line2, #ece6dc); color: var(--ink); }
.ltabs {
  display: flex; gap: 4px; background: var(--bg-soft, #f6f2ea);
  border-radius: 11px; padding: 4px; margin: 20px 0 16px;
}
.ltabs button {
  flex: 1; border: none; background: none; padding: 9px 0; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  font-family: inherit;
}
.ltabs button.on { background: #fff; color: var(--accent); font-weight: 800; box-shadow: 0 2px 8px rgba(120, 80, 40, .12); }
.li {
  width: 100%; height: 46px; border: 1.5px solid var(--line2, #ece6dc); border-radius: 11px;
  padding: 0 14px; font-size: 14px; outline: none;
  background: var(--bg-soft, #f6f2ea); font-family: inherit; box-sizing: border-box;
}
.li:focus { border-color: var(--accent); background: #fff; }
.li + .li, .lrow + .li { margin-top: 12px; }
.lrow { display: flex; gap: 10px; }
/* min-width:0 必需：input 内在宽度按 size=20 字符 × 字体均宽估算，16px 字号（防 iOS 缩放）
   + Noto Sans SC 下约 314px，会把「获取验证码」按钮挤出卡片、整卡溢出视口，须允许收缩 */
.lrow .li { flex: 1; min-width: 0; }
.lcode {
  flex: none; height: 46px; border: 1.5px solid var(--accent-softb, rgba(224, 96, 58, .27));
  background: var(--accent-soft, rgba(224, 96, 58, .09)); color: var(--accent);
  font-weight: 700; font-size: 12.5px; border-radius: 11px; padding: 0 14px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.lcode:disabled { border-color: var(--line2, #ece6dc); background: var(--bg-soft, #f6f2ea); color: var(--faint); cursor: not-allowed; }
.lhint {
  margin-top: 10px; font-size: 12.5px; color: var(--gold, #c99a3a);
  background: var(--gold-bg, #fbf1de); border-radius: 9px; padding: 8px 12px;
}
.lerr { margin-top: 10px; font-size: 12.5px; color: var(--red, #c0392b); background: var(--red-bg, #fbeeed); border-radius: 9px; padding: 8px 12px; }
.lbtn {
  width: 100%; height: 46px; margin-top: 16px; border: none; border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  color: #fff; font-weight: 800; font-size: 15px; padding: 0; cursor: pointer;
  font-family: inherit;
}
.lbtn:disabled { opacity: .6; cursor: not-allowed; }
.ltip { margin-top: 14px; font-size: 11.5px; color: var(--faint); text-align: center; line-height: 1.7; }

/* 登录弹窗「验证码 / App 扫码」页签 */
.ltabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg); border-radius: 10px; padding: 4px; }
.ltabs button {
  flex: 1; height: 34px; border: none; border-radius: 8px; background: transparent;
  font: 600 13px/1 inherit; color: var(--muted); cursor: pointer; transition: all .15s;
}
.ltabs button.on { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px rgba(60, 44, 30, .1); }

/* App 扫码登录面板：白底二维码卡 + 状态行 */
.qrlogin { display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; }
.qrlogin-box {
  position: relative; width: 200px; height: 200px; background: #fff;
  border: 1px solid var(--line2); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qrlogin-box canvas, .qrlogin-box img { display: block; }
.qrlogin-empty, .qrlogin-expired {
  position: absolute; inset: 0; z-index: 2; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7;
}
.qrlogin-expired a { color: var(--accent); font-weight: 700; text-decoration: none; }
.qrlogin-tip { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.qrlogin-tip.ok { color: #2f9e6b; font-weight: 700; }

/* ══════════ 微信扫码支付弹窗 ══════════ */
.pmask {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(34, 26, 18, .5);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s ease;
}
.pcard {
  width: 340px; max-width: 100%;
  background: #fff; border-radius: 20px;
  box-shadow: 0 30px 70px -25px rgba(60, 44, 30, .5);
  padding: 30px 28px 24px; text-align: center;
  animation: floatup .25s ease;
}
.pt { font-size: 18px; font-weight: 900; }
.psub { font-size: 13px; color: var(--muted); margin-top: 8px; }
.psub b { color: var(--accent); font-size: 16px; }
.pqr {
  width: 210px; height: 210px; margin: 20px auto 0;
  border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; box-sizing: border-box;
}
.pqr img { display: block; }
.pfall { margin-top: 14px; font-size: 12px; color: var(--red, #c0392b); word-break: break-all; }
.ptip { margin-top: 14px; font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.pok, .pfail {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: #fff;
  animation: floatup .3s ease;
}
.pok { background: var(--green, #2f9e6b); }
.pfail { background: var(--faint, #a59a8d); }
.pclose {
  margin-top: 18px; width: 100%; border: none; border-radius: 11px;
  background: var(--bg-soft, #f6f2ea); color: var(--ink2);
  font-weight: 700; font-size: 13.5px; padding: 11px 0; cursor: pointer;
  font-family: inherit;
}
.pclose:hover { background: var(--line2, #ece6dc); }

/* ══════════ 积分充值弹窗 ══════════ */
.rcmask { position: fixed; inset: 0; z-index: 60; background: rgba(30, 24, 18, .5); display: flex; align-items: center; justify-content: center; padding: 22px; animation: rcfade .18s ease; }
@keyframes rcfade { from { opacity: 0; } }
.rccard { background: #fff; border-radius: 16px; width: min(430px, 94vw); box-shadow: 0 30px 70px -20px rgba(40, 26, 12, .5); padding: 22px 22px 16px; }
.rchead { display: flex; align-items: flex-start; gap: 12px; }
.rct-wrap { flex: 1; min-width: 0; }
.rct { font-size: 17px; font-weight: 900; }
.rcs { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.rcx { border: none; background: none; font-size: 15px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.rcx:hover { background: var(--bg-soft); color: var(--ink); }
.rcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.rcitem { position: relative; border: 1.5px solid var(--line2); background: var(--bg-soft); border-radius: 13px; padding: 16px 10px 13px; cursor: pointer; text-align: center; transition: all .15s ease; font-family: inherit; overflow: hidden; }
.rcitem:hover:not(:disabled) { border-color: var(--gold); background: #fffdf8; transform: translateY(-1px); }
.rcitem:disabled { opacity: .55; cursor: default; }
.rc-tag { position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 800; color: #fff; background: var(--gold); padding: 2px 8px; border-radius: 0 0 0 8px; }
.rc-pts { font-size: 21px; font-weight: 900; color: var(--gold); }
.rc-pts small { font-size: 11px; color: var(--muted); font-weight: 600; }
.rc-yuan { font-size: 13px; font-weight: 700; color: var(--ink2); margin-top: 4px; }
.rcfoot { font-size: 11.5px; color: var(--faint); line-height: 1.7; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 11px; }

/* ══════════ 意见反馈弹窗 ══════════ */
.fbmask { position: fixed; inset: 0; z-index: 60; background: rgba(30, 24, 18, .5); display: flex; align-items: center; justify-content: center; padding: 22px; animation: rcfade .18s ease; }
.fbcard { background: #fff; border-radius: 16px; width: min(470px, 94vw); max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(40, 26, 12, .5); }
.fbhead { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: 16px 16px 0 0; position: sticky; top: 0; }
.fbt-wrap { flex: 1; min-width: 0; }
.fbt { font-size: 17px; font-weight: 900; }
.fbs { font-size: 12px; color: var(--muted); margin-top: 5px; }
.fbx { border: none; background: none; font-size: 15px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.fbx:hover { background: var(--line); color: var(--ink); }
.fbbody { padding: 16px 22px 20px; }
.fbtypes { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtype { border: 1.5px solid var(--line2); background: var(--bg-soft); color: var(--ink3); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.fbtype.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fbrel { font-size: 12px; color: var(--ink2); background: var(--gold-bg); border-radius: 8px; padding: 8px 11px; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbta { width: 100%; box-sizing: border-box; min-height: 110px; border: 1.5px solid var(--line2); background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-family: inherit; outline: none; margin-top: 12px; resize: vertical; }
.fbta:focus { border-color: var(--accent); background: #fff; }
.fbcontact { width: 100%; border: 1.5px solid var(--line2); background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-family: inherit; outline: none; margin-top: 10px; }
.fbcontact:focus { border-color: var(--accent); background: #fff; }
.fbsubmit { width: 100%; margin-top: 14px; border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: 14.5px; padding: 12px; border-radius: 11px; cursor: pointer; }
.fbsubmit:disabled { opacity: .6; cursor: default; }
.fbmine-t { font-size: 13px; font-weight: 800; color: var(--ink); margin: 18px 0 10px; }
.fbmine { display: flex; flex-direction: column; gap: 10px; }
.fbmi { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.fbmi-head { display: flex; align-items: center; gap: 8px; }
.fbmi-type { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink3); }
.fbmi-type.t-纠错 { color: #d98a2b; background: #fbf2e4; }
.fbmi-type.t-版权举报 { color: #c0392b; background: #fbeeed; }
.fbmi-type.t-求资料 { color: var(--accent); background: var(--accent-soft); }
.fbmi-status { font-size: 11px; font-weight: 700; }
.fbmi-status.s-待处理 { color: var(--gold); }
.fbmi-status.s-处理中 { color: #3f7fd9; }
.fbmi-status.s-已回复 { color: var(--green); }
.fbmi-time { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.fbmi-content { font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin-top: 7px; }
.fbmi-reply { font-size: 12px; color: var(--ink2); background: var(--green-bg); border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.6; }
.fbmi-reply b { color: var(--green); }

/* ══════════ 首页公告条 ══════════ */
.noticebar {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 24px 0; padding: 10px 18px;
  background: var(--gold-bg); border: 1px solid rgba(201, 154, 58, .28);
  border-radius: 11px; animation: nbslide .25s ease;
}
@keyframes nbslide { from { opacity: 0; transform: translateY(-6px); } }
.nb-ico { font-size: 15px; flex: none; }
.nb-x { border: none; background: none; color: #c99a3a; font-size: 12px; cursor: pointer; padding: 3px 6px; border-radius: 6px; flex: none; }
.nb-x:hover { background: rgba(201, 154, 58, .18); }
/* 多条公告同屏竖排（最多 3 行/屏，超出 3 条翻页轮播）：滚动窗裁切翻页滑动过渡（复用 actup
   过渡类）；行高固定 24px，末页不足 3 行由前端补空行占位，翻页不跳高；≤3 条时高度随行数 */
.nb-roll { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.nb-set { display: flex; flex-direction: column; min-width: 0; }
.nb-line { height: 24px; line-height: 24px; min-width: 0; font-size: 13px; font-weight: 600; color: #8a6a1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-page { flex: none; font-size: 11px; color: #c99a3a; font-variant-numeric: tabular-nums; }

/* ══════════ 空结果 求资料引导 ══════════ */
.eg-row { margin-top: 18px; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eg-btn { border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: 13.5px; padding: 10px 26px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.eg-btn:hover { filter: brightness(1.05); }
.eg-note { font-size: 12px; color: var(--faint); }

/* ══════════ 预览图灯箱 ══════════ */
.lbmask {
  position: fixed; inset: 0; z-index: 80; background: rgba(24, 19, 14, .82);
  display: flex; align-items: center; justify-content: center; gap: 18px; animation: rcfade .18s ease;
}
.lb-stage { display: flex; flex-direction: column; align-items: center; max-width: min(760px, 82vw); }
.lb-stage img {
  max-width: 100%; max-height: 78vh; border-radius: 10px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7); background: #fff;
  animation: lbzoom .18s ease;
}
@keyframes lbzoom { from { opacity: 0; transform: scale(.96); } }
.lb-cap { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .82); text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.lb-nav {
  border: none; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer;
  transition: background .15s ease;
}
.lb-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .3); }
.lb-nav:disabled { opacity: .3; cursor: default; }
.lb-x { position: fixed; top: 22px; right: 26px; border: none; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.lb-x:hover { background: rgba(255, 255, 255, .3); }
.preview-card { position: relative; cursor: zoom-in; }
.preview-card .pv-zoom {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; line-height: 30px;
  text-align: center; border-radius: 50%; font-size: 14px;
  background: rgba(30, 24, 18, .55); color: #fff; opacity: 0; transition: opacity .15s ease;
}
.preview-card:hover .pv-zoom { opacity: 1; }

/* ── 学习圈动态条（首页滚动播报：谁下载/上传了什么，4 行一屏翻页） ── */
.actbar {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 24px 0; padding: 8px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 1px 4px rgba(31, 23, 18, .04);
}
.act-ico { flex: none; font-size: 14px; }
@keyframes actspin { to { transform: rotate(360deg); } }
.act-roll { flex: 1; min-width: 0; height: 104px; overflow: hidden; position: relative; }  /* 4 × 26px 行 */
.act-block { display: block; }
.act-line {
  display: flex; align-items: center; gap: 6px;
  width: 100%; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 13px; color: #6b5b50; white-space: nowrap; overflow: hidden;
}
.act-line b { color: var(--accent-deep, #c44e2c); font-weight: 700; flex: none; }
.act-line small { color: #b3a294; font-size: 11px; flex: none; }
.act-line:hover { color: var(--accent); }
.act-title { font-style: normal; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.act-page { flex: none; font-size: 11px; color: #b3a294; font-variant-numeric: tabular-nums; }
.actup-enter-active, .actup-leave-active { transition: all .38s ease; }
.actup-enter-from { opacity: 0; transform: translateY(14px); }
.actup-leave-to { opacity: 0; transform: translateY(-14px); }

/* ── 通知+广播一行双列：公告条与学习圈动态并排（通知窄列、广播随宽），仅剩一块时占满整行 ── */
.duo-bar { display: flex; gap: 10px; margin: 14px 24px 0; }
.duo-bar > .noticebar { margin: 0; flex: 0 1 360px; }        /* 通知文本超宽截断（原本就 ellipsis） */
.duo-bar > .actbar { margin: 0; flex: 1 1 0; min-width: 0; }  /* 默认 stretch：两卡等高，通知内容垂直居中 */
@media (min-width: 769px) and (max-width: 1180px) { .duo-bar { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 768px) {
  .duo-bar { flex-direction: column; gap: 8px; margin: 10px 12px 0; }   /* 窄屏退回上下堆叠（原版式） */
  .duo-bar > .noticebar { flex: 0 1 auto; }  /* 列方向主轴是纵向：360px basis 会变成高度，退回内容高 */
}

/* ══════════ 头像账号菜单 + 私信入口 ══════════ */
.uwrap { position: relative; }
.umsg-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: #e05656; color: #fff; font-size: 10px; font-weight: 800; padding: 0 4px; text-align: center; }
.umenu { position: absolute; top: 44px; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(60, 44, 30, .3); padding: 8px; width: 212px; animation: fade .15s ease; }
.umenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.umenu-head b { display: block; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-head small { font-size: 11px; color: var(--faint); }
.umenu-pts { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: var(--gold-bg); color: var(--gold); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.umenu-pts:hover { border-color: var(--gold); }
.umenu-pts .up { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--gold); border-radius: 7px; padding: 2px 7px; }
.umenu-item { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink2); padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.umenu-item:hover { background: var(--bg-soft); }
.umenu-item.danger { color: #c0392b; }
.umenu-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 9px; padding: 1px 7px; flex: none; }

/* ══════════ 详情页上传者条 + 评论区私信 ══════════ */
.d-uploader { display: flex; align-items: center; gap: 10px; background: var(--bg-soft2); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink3); }
.d-uploader b { color: var(--ink2); }
.du-btn { margin-left: auto; border: 1px solid var(--accent-softb); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; flex: none; }
.du-btn:hover { background: var(--accent); color: #fff; }
.cm-dm { border: none; background: none; font-size: 11.5px; color: var(--accent); cursor: pointer; padding: 2px 4px; }
.cm-dm:hover { text-decoration: underline; }

/* ══════════ 昵称与宝贝资料弹窗 ══════════ */
.pfcard { text-align: left; }
.pf-tabs { margin: 14px 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pf-preview { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink3); background: var(--gold-bg); border-radius: 8px; padding: 8px 12px; }
.pf-preview b { color: var(--gold); font-size: 14px; margin-left: 6px; }
.pf-roles { display: flex; gap: 8px; }
.pf-role { border: 1.5px solid var(--line2); background: var(--bg-soft); border-radius: 999px; padding: 9px 20px; font-size: 13px; font-weight: 600; color: var(--ink3); cursor: pointer; }
.pf-role.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.pf-grade { margin-top: 14px; }
.pf-grades { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-grades .pf-role { padding: 6px 13px; font-size: 12px; }

/* ══════════ 私信抽屉（IM 聊天风格） ══════════ */
.msgdrawer { width: 460px; display: flex; flex-direction: column; overflow: hidden; }
.msgdrawer > .d-inner { padding-top: 22px; }
.msg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 0 28px 24px; }
.msg-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; cursor: pointer; text-align: left; }
.msg-row:hover { border-color: var(--accent-softb); }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-top { display: flex; align-items: baseline; gap: 8px; }
.msg-top b { font-size: 13.5px; }
.msg-top small { margin-left: auto; font-size: 10.5px; color: var(--faint); flex: none; }
.msg-last { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row .umsg-badge { position: static; flex: none; }
/* 头像圆（会话列表 40 / 聊天区 32） */
.msg-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; user-select: none; }
.msg-ava.sm { width: 32px; height: 32px; font-size: 13px; }
.msg-ava.me { background: linear-gradient(135deg, #f7d9a8, #eec27b); color: #8a5a17; }
.msg-chathead { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line3); background: var(--bg-soft); flex: none; }
.msg-back { border: 1px solid var(--line2); background: #fff; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; font-weight: 700; color: var(--ink3); cursor: pointer; flex: none; line-height: 1; }
.msg-back:hover { color: var(--accent); border-color: var(--accent); }
.msg-peer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-peer b { font-size: 14.5px; }
.msg-peer small { font-size: 11px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-chathead .d-close { margin-bottom: 0; width: 30px; height: 30px; font-size: 15px; flex: none; }
/* 聊天画布：暖灰底（微信式），气泡浮在其上 */
.msg-thread { flex: 1; overflow-y: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft2); }
.msg-more { align-self: center; border: 1px solid var(--line3); background: #fff; border-radius: 999px; font-size: 11.5px; color: var(--muted); padding: 5px 14px; cursor: pointer; margin-bottom: 4px; }
.msg-day { text-align: center; font-size: 12px; color: var(--faint); padding: 18px 0; }
/* 时间分隔条：居中小灰药丸（今天 14:30 / 昨天 / 9月14日） */
.msg-sep { align-self: center; background: #e8e1d5; color: var(--faint); font-size: 11px; border-radius: 999px; padding: 3px 10px; margin: 6px 0 2px; flex: none; }
/* 气泡行：对方头像在左、我的头像在右（row-reverse） */
.bub-row { display: flex; align-items: flex-start; gap: 8px; }
.bub-row.me { flex-direction: row-reverse; }
.bub-wrap { max-width: 74%; display: flex; flex-direction: column; align-items: flex-start; }
.bub-row.me .bub-wrap { align-items: flex-end; }
.bub { background: #fff; border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: 13.5px; line-height: 1.65; color: var(--ink); box-shadow: 0 1px 4px rgba(120, 80, 40, .07); word-break: break-word; white-space: pre-wrap; }
.bub-row.me .bub { background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: 12px 4px 12px 12px; }
/* 组末回执：已读/未读（挂在同发送方连续组的最后一条下） */
.bub-meta { font-size: 10px; color: var(--faint); margin-top: 3px; }
.msg-inputbar { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line3); background: var(--bg-soft); flex: none; }
.msg-inputbar textarea { flex: 1; min-width: 0; border: 1.5px solid var(--line2); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none; resize: none; height: 44px; background: #fff; }
.msg-inputbar textarea:focus { border-color: var(--accent); }
.msg-send { border: none; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: 13.5px; padding: 0 22px; border-radius: 10px; cursor: pointer; }
.msg-send:disabled { opacity: .5; cursor: default; }

/* ═══════════════════════════════════════════════════════════
   2026-09 视觉升级：SVG 图标体系 + 控件对齐统一 + 交互细节
   （追加于文件末尾，同名规则按后者优先覆盖）
   ═══════════════════════════════════════════════════════════ */

/* ---- 图标基础：24 网格 stroke 图标，随文字颜色（currentColor） ---- */
.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.ico.sm { width: 14px; height: 14px; vertical-align: -2.5px; }
.ico.xs { width: 12px; height: 12px; vertical-align: -2px; }
.ico.lg { width: 20px; height: 20px; vertical-align: -4px; }
.ico.xl { width: 30px; height: 30px; }
/* 图标与文字的内联间距（行内场景） */
.u-tip .ico, .dkp .ico, .locknote .ico, .fbrel .ico { margin-right: 6px; vertical-align: -2px; }
.lc-kicker .ico { margin-right: 4px; vertical-align: -2px; }
.nb-ico { display: flex; color: #c99a3a; }
.act-ico { display: flex; color: var(--accent); }
.search-i { color: #b3a595; }
.dz-svg { width: 44px; height: 44px; color: var(--accent); opacity: .85; }
.pv-zoom { display: flex; align-items: center; justify-content: center; }
.rtag-local { color: var(--accent); background: var(--accent-soft); display: inline-flex; align-items: center; gap: 3px; }
.rmeta-eye { display: inline-flex; align-items: center; gap: 3px; }
.loc-pill { display: inline-flex; align-items: center; }
.cm-avg .ico { color: #e8a33d; }

/* ---- 顶栏控件统一：同一行内所有控件等高（38px）、同圆角（10px）、图标-文字等距 ---- */
.region-btn, .nav-apk, .btn-upload {
  height: 38px; display: flex; align-items: center; border-radius: 10px;
}
.region-btn { padding: 0 12px; gap: 6px; }
.nav-apk { padding: 0 12px; gap: 5px; }
.btn-upload { padding: 0 14px; gap: 5px; }
.searchbar { height: 38px; }
.search-go { height: 28px; padding: 0 18px; border-radius: 8px; }
.avatar { height: 38px; }
.user-chip { gap: 8px; }

/* ---- 圆形关闭/返回按钮：统一为图标居中 ---- */
.d-close, .u-x, .lx, .rcx, .fbx, .nb-x, .lb-x, .msg-back, .pok, .pfail {
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.pok .ico, .pfail .ico { color: #fff; }

/* ---- 顶栏其余图标按钮的图标-文字间距 ---- */
.du-btn, .ft-btn, .eg-btn, .rct, .fbt, .cm-title, .umenu-item, .apk-tip, .apk-link, .rm-nation {
  display: flex; align-items: center; gap: 6px;
}
.rct .ico, .fbt .ico, .cm-title .ico { color: var(--accent); }

/* ---- 焦点可达性 + 统一过渡 ---- */
button { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease, opacity .15s ease; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid rgba(224, 96, 58, .45); outline-offset: 2px;
}
button:active:not(:disabled) { transform: scale(.97); }

/* ---- 卡片/分页悬浮反馈 ---- */
.rcard { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(120, 80, 40, .18); border-color: var(--line3); }
.vcard { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(120, 80, 40, .15); }
.pg:hover:not(.on):not(.dis) { border-color: var(--accent); color: var(--accent); }
.chip:hover:not(.on) { border-color: var(--accent-softb); color: var(--ink2); }

/* ---- 详情元信息：六格数值居中 + 等宽数字（位数不同也对齐） ---- */
.dmeta { text-align: center; gap: 14px; }
.dm-num { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.dm-label { margin-top: 4px; letter-spacing: 1px; }

/* ---- 底部操作栏按钮：图标-文字对齐、同高 ---- */
.dfoot .btn-fav { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; }
.dfoot .btn-fav.on .ico { color: #e05656; }

/* ---- 评论星：SVG 星星排版 ---- */
.cm-stars i { display: inline-flex; margin-right: 1px; }
.cm-stars i.on { color: #e8a33d; }
.cm-star { display: inline-flex; padding: 2px; }
.cm-star.on { color: #e8a33d; }

/* ---- 抽屉标题行：关闭按钮与标题呼吸感 ---- */
.d-close { margin-bottom: 14px; color: var(--muted); }
.d-close:hover { color: var(--ink); background: var(--line2); }
.u-x:hover, .lx:hover, .rcx:hover, .fbx:hover { background: var(--line2); color: var(--ink); }

/* ---- 学习圈动态：图标旋转与文字基线 ---- */
.act-ico .ico { animation: actspin 9s linear infinite; }
.act-line { gap: 7px; }

/* ---- VIP 受益清单：对勾统一缩进节奏 ---- */
.vbenefits { line-height: 2; }

/* ═══════════════════════════════════════════════════════════
   2026-09 移动端 App 布局（≤1180px：手机 + iPad 竖/横屏统一）
   · 顶栏两行：地区+搜索 → 整行搜索；动作入口移到底部 Tabbar
   · 侧栏筛选 → <details> 折叠面板（摘要带已选计数徽标）
   · 卡片双列紧凑（平板由下方 769~1180 子档自动多列）、详情抽屉全屏、上传弹窗底部抽屉化
   · 输入框 16px 防 iOS 聚焦缩放；Tabbar/操作栏避开安全区
   ═══════════════════════════════════════════════════════════ */

/* ---- 桌面基础（移动段的前置结构）：顶栏动作组容器 / Tabbar 恒隐 / 折叠摘要恒隐 ---- */
.nav-links { display: flex; align-items: center; gap: 16px; }
.searchrow { display: contents; }   /* 桌面对布局透明：地区/搜索仍是顶栏直接子项 */
.tabbar { display: none; }
.side-box summary { display: none; }
.umenu-item { text-decoration: none; }

@media (max-width: 1180px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* 外框：单列纵排（顶栏→筛选→内容，原 ≤900px 中间档结构并入），全出血贴边（去白边卡片壳） */
  .app, .app.plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "main"; }
  .app { margin: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 58px); }

  /* ---- 顶栏：移动端仅保留「地区+搜索」一行；logo 与头像隐藏，账号功能统一走底部 Tabbar「我的」
     注意：.avatar 可藏，但其祖先（.user-chip/.uwrap）不能 display:none——userMenu 下拉菜单仍挂
     在 .uwrap 内，由「我的」tab 触发，藏了祖先菜单就渲染不出来；空壳容器不占宽高，无副作用 */
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px; border-radius: 0; }
  .brand { display: none; }                /* 去掉左上角 logo */
  .nav-links { display: none; }            /* 分类浏览/会员/App下载/上传 → 底部 Tabbar */
  .nav-actions { display: contents; }      /* 溶器化：apk-wrap/user-chip 直接成为顶栏 flex 项，APK 钮才能与搜索框同排 */
  .avatar, .user-chip .umsg-badge { display: none; }   /* 头像入口移除，未读角标转挂「我的」tab */
  .searchrow { order: 9; flex: 1 1 0; min-width: 0; display: flex; gap: 8px; }   /* basis 0 而非 auto：按内容宽会挤到 APK 钮换行；grow 撑满剩余即可 */
  .searchbar { flex: 1; min-width: 0; height: 42px; margin-left: 0; }   /* 归零桌面段对齐侧栏的 40px 缩进：移动搜索行通栏 */
  .region-btn { height: 42px; padding: 0 10px; }   /* 与搜索框同高同排 */
  .region-btn b { font-size: 12px; }
  .searchbar input { font-size: 16px; min-width: 0; }  /* ≥16px 防 iOS 缩放；min-width:0 允许压进剩余空间（否则默认 min-content ~180px 把搜索钮挤出框外） */
  .search-go { flex: none; padding: 8px 12px; }        /* 窄屏按钮收窄、不参与压缩 */

  /* 顶栏弹出菜单 → 居中/贴边浮层（顶栏只剩搜索一行高约 62px，浮层从 66px 落下） */
  .region-menu { position: fixed; left: 12px; right: 12px; top: 66px; width: auto; }
  .umenu { position: fixed; right: 10px; top: 66px; }
  .apk-menu { position: fixed; right: 12px; top: 66px; }

  /* APK 下载入口：桌面端所有浏览器可见（二维码给手机扫，仍在顶栏动作组原位）；
     移动端仅 Android 浏览器显示直装 CTA（accent 高亮），同一行排在搜索框之后
     （order 10 > searchrow 的 9，flex:none 定宽不压缩；与搜索框同高 42px）——
     iOS 版未上架、微信内装不了，对这类访客藏按钮不占位；
     一次性引导弹层（fs_apk_dlg）不受影响照旧 */
  .apk-wrap { order: 10; flex: none; }
  .apk-wrap .nav-apk { display: none; }
  .apk-wrap.apk-android .nav-apk {
    display: flex; align-items: center; gap: 5px;
    background: var(--accent); border-color: var(--accent); color: #fff;
    height: 42px; padding: 0 12px;
  }

  /* ---- 底部 Tabbar（z 低于遮罩 50：弹层打开时被盖住） ---- */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line2);
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  }
  .tabbar button, .tabbar a {
    text-decoration: none;
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: none; background: none; cursor: pointer; padding: 4px 0;
    font-size: 10.5px; font-weight: 600; color: var(--muted); font-family: inherit;
  }
  .tabbar button .ico, .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar .tb-me { position: relative; }             /* 「我的」未读私信角标（复用 .umsg-badge） */
  .tabbar .umsg-badge { top: 0; right: 12px; }
  .tabbar button.on { color: var(--accent); font-weight: 800; }
  .tabbar button:active:not(:disabled), .tabbar a:active { transform: scale(.94); }

  /* ---- 侧栏 → 折叠筛选面板 ---- */
  .side { position: static; max-height: none; overflow: visible; border-right: none;
          border-bottom: 1px solid var(--line); padding: 0 0 4px; }
  .local-card { display: none; }            /* 地区信息顶栏已有，省首屏空间 */
  .side-box summary {
    display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer;
    padding: 12px 14px; font-size: 14px; font-weight: 800; color: var(--ink);
  }
  .side-box summary::-webkit-details-marker { display: none; }
  .side-box summary::after {
    content: "▾"; margin-left: auto; color: var(--faint); font-size: 12px; transition: transform .2s ease;
  }
  .side-box[open] summary::after { transform: rotate(180deg); }
  .summary-count {
    min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 9px;
    background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; padding: 0 5px;
  }
  .side-box .fgroup { margin-bottom: 14px; padding: 0 14px; }
  .side-box .fgroup:first-of-type { padding-top: 2px; }
  .chip { padding: 7px 13px; }              /* 触控目标加大 */

  /* ---- 内容区收紧 ---- */
  .content { padding: 13px 12px 18px; }
  .toolbar { margin-bottom: 12px; }
  .crumb { font-size: 16px; }
  .noticebar { margin: 10px 12px 0; padding: 9px 12px; }
  .actbar { margin: 8px 12px 0; padding: 7px 12px; }
  .morebar { padding-top: 18px; }
  .backtop { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }

  /* ---- 卡片双列紧凑（封面横幅同步收窄） ---- */
  .grid3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rcard { padding: 10px; border-radius: 12px; }
  .rcover { border-radius: 9px; }
  .rtags { left: 6px; top: 6px; }
  .rtitle { font-size: 13px; margin-top: 8px; min-height: 2.6em; }
  .rmeta { font-size: 10.5px; gap: 5px; margin: 6px 0 8px; }
  .rfoot { gap: 8px; }
  .rprice { font-size: 14px; }
  .btn-dl { padding: 6px 12px; }
  /* ≤380px 也保持双列（原此处强制单列，375px 机型误中）；更窄至 320px 由 gap+卡片内边距自适应 */

  /* ---- 列表视图列宽收紧（版本/页数两列收起，原 ≤900px 档并入） ---- */
  .lcol-ver, .lcol-page { display: none; }
  .lthead, .ltrow { padding: 10px 12px; }
  .lcol-sel { width: 22px; }
  .lcol-subj { width: 56px; }
  .lcol-pt { width: 52px; }
  .lcol-act { width: 62px; }

  /* ---- VIP 页 ---- */
  .viphero { padding: 26px 16px; }
  .viphero::after { width: 128px; height: 128px; right: -10px; bottom: -14px; opacity: .11; }
  .viphero h2 { font-size: 20px; }
  .viphero p { font-size: 12.5px; }
  .vipbody { padding: 18px 12px 26px; }
  .vprice .num { font-size: 30px; }

  /* ---- 详情抽屉 → 全屏面板，底栏按钮重排（收藏行 + 双下载按钮行） ---- */
  .drawer { width: 100%; max-width: 100%; }
  .d-inner { padding: 16px 14px 0; }
  .d-preview, .d-comments { padding-left: 14px; padding-right: 14px; }
  .d-title { font-size: 18px; }
  .dmeta { gap: 10px; padding: 14px; }
  .dfoot {
    flex-wrap: wrap; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .dfoot .btn-fav { flex: 1 1 0; justify-content: center; padding: 10px 6px; font-size: 12.5px; }
  .dfoot .btn-dlmain { flex-basis: 100%; padding: 9px 8px; }

  /* ---- 上传弹窗 → 底部抽屉 ---- */
  .umask { align-items: flex-end; }
  .umodal { width: 100%; max-width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .u-head { padding: 14px 16px; }
  .u-head b { font-size: 16px; }
  .u-body { padding: 14px 16px 20px; }
  .u-tip { font-size: 12px; }
  .dropzone { padding: 22px 12px; }
  .dz-svg { width: 36px; height: 36px; }
  .u-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .u-select, .u-input { font-size: 16px; }  /* 防 iOS 聚焦缩放 */

  /* ---- 各弹窗贴小屏 + 输入 16px ---- */
  .lmask, .pmask, .rcmask, .fbmask { padding: 14px; }
  .lcard { width: 100%; }
  .li, .cm-ta, .fbta, .fbcontact { font-size: 16px; }
  .pf-grid { grid-template-columns: 1fr; }

  /* ---- 灯箱：翻页箭头悬浮图侧，关闭键避开刘海 ---- */
  .lbmask { gap: 0; }
  .lb-stage { max-width: calc(100vw - 92px); }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
  .lb-nav:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
  .lb-nav.prev { left: 6px; }
  .lb-nav.next { right: 6px; }
  .lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }

  /* ---- 私信抽屉全屏 ---- */
  .msgdrawer { width: 100%; }
  .msgdrawer > .d-inner { padding-top: 16px; }
  .msg-list { padding: 0 12px 16px; }
  .msg-thread { padding: 12px 12px 16px; }
  .msg-inputbar { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .msg-inputbar textarea { font-size: 16px; height: 42px; }

  .empty { padding: 48px 0; }
}

/* ═══════════════════════════════════════════════════════════
   平板子档（769~1180，iPad 竖屏 ~810 / 横屏 ~1080）
   · 整体沿用上方手机 App 布局（底部 Tabbar、折叠筛选、单列外框）
   · 仅放宽密度与弹层：卡片 auto-fill 多列（每张 ~170-210px，与手机卡片
     同尺寸，不再「一列巨卡」）；抽屉/弹窗回定宽居中，不占满整屏
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1180px) {
  .content { padding: 16px 16px 24px; }
  .noticebar, .actbar { margin-left: 16px; margin-right: 16px; }
  .side-box summary { padding: 12px 16px; }
  .side-box .fgroup { padding: 0 16px; }

  /* 竖屏 ~810px → 4 列；横屏 ~1080px → 5 列；卡片宽度与手机端一致 */
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  /* VIP 价格卡：手机单列 → 平板 3~4 列 */
  .vipgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

  /* 详情/私信抽屉回到桌面定宽（右侧贴边 560px），不再全屏 */
  .drawer { width: 560px; }
  .msgdrawer { width: 460px; }
  /* 上传/登录弹窗回居中卡片，不做底部抽屉 */
  .umask { align-items: center; }
  .umodal { width: 680px; border-radius: 18px; }
  .lcard { width: 400px; }
}

/* ═══════════════════════════════════════════════════════════
   分享渠道选择弹窗（复用 rcmask/rccard/rchead 骨架，仅渠道按钮区）
   ═══════════════════════════════════════════════════════════ */
.shcard { max-width: 420px; }
.shgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 18px 14px; }
.shbtn { border: 1.5px solid var(--line3); background: var(--bg-soft2); border-radius: 12px;
         padding: 13px 8px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.shbtn b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.shbtn small { color: var(--muted); font-size: 11.5px; letter-spacing: .3px; }
.shbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.shbtn:hover b { color: var(--accent-deep); }
/* ══════════ 积分不足引导弹窗（下载 / 在线打榜结算 402：充值 or VIP 双按钮） ══════════ */
.ngcard { max-width: 430px; }
.ng-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ng-re, .ng-vip {
  border: none; border-radius: 11px; color: #fff; font-weight: 800; font-size: 14px;
  padding: 12px 8px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.ng-re { background: linear-gradient(120deg, var(--accent), var(--accent-deep)); }
.ng-vip { background: linear-gradient(120deg, #d4a95a, var(--gold)); }
.ng-re:hover, .ng-vip:hover { filter: brightness(1.05); }
/* 打榜入口结算中的禁用态（在线打榜结算积分/VIP 期间防重复点击） */
.chal-go:disabled, .way-btn:disabled { opacity: .6; cursor: wait; }

/* ══════════ 打榜挑战（2026-09：打榜资料也是资料；打卡/答案长在评论区，纯荣誉不排名） ══════════ */
/* 卡片/列表角标 */
/* 打榜标识改醒目（2026-09-27）：品牌橙渐变白字 + 呼吸脉冲，原浅金底棕字不够显眼
   脉冲收到 4 次为止（~6.4s）就定住：同屏多张打榜卡同时无限跳动会让整个网格显得很闹，
   品牌色渐变 + 白字本身已经够醒目，脉冲只用来first-glance抓一下注意力 */
.rtag-chal { display: inline-flex; align-items: center; gap: 3px; color: #fff; font-weight: 800;
             background: linear-gradient(115deg, #e0603a, #c44e2c);
             animation: chalPulse 1.6s ease-in-out 4; }
.rtag-chal .ico { color: #ffd9a8; }
.chal-pill { color: #fff; font-weight: 800; background: linear-gradient(115deg, #e0603a, #c44e2c); }
@keyframes chalPulse {
  50% { box-shadow: 0 0 0 3px rgba(224, 96, 58, .35); transform: scale(1.06); }
}
/* 首页打榜横条（actbar 下方，横向滚动卡片） */
.chalbar { display: flex; align-items: center; gap: 12px; margin: 10px 24px 0; padding: 9px 14px;
           background: linear-gradient(115deg, #fdf6e7, #fff); border: 1px solid rgba(201, 154, 58, .35);
           border-radius: 11px; }
.chalbar-tag { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 900; color: #8a5a17; flex: none; }
.chalbar-tag .ico { color: #e8a33d; }
.chalbar-roll { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chalbar-roll::-webkit-scrollbar { height: 4px; }
.chalbar-roll::-webkit-scrollbar-thumb { background: var(--line3); border-radius: 4px; }
.hc-item { flex: none; width: 252px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line2);
           background: #fff; border-radius: 10px; padding: 7px 9px; cursor: pointer; text-align: left;
           transition: border-color .15s, box-shadow .15s; }
.hc-item:hover { border-color: rgba(201, 154, 58, .6); box-shadow: 0 2px 10px rgba(120, 80, 40, .08); }
.hc-item img, .hc-cover { width: 30px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.hc-cover { display: flex; align-items: center; justify-content: center; }
.hc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-main b { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-main small { font-size: 11px; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hc-dot { width: 6px; height: 6px; border-radius: 50%; background: #e8a33d; box-shadow: 0 0 0 2px rgba(232, 163, 61, .25); flex: none; }
/* ---- 免费打印工具条：口算/字帖 SSR 工具页入口（独立路由全页跳转） ---- */
.toolsbar { display: flex; align-items: center; gap: 12px; margin: 10px 24px 0; padding: 9px 14px;
            background: linear-gradient(115deg, #fdeee7, #fff); border: 1px solid rgba(224, 96, 58, .3);
            border-radius: 11px; }
.toolsbar-tag { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 900; color: var(--accent); flex: none; }
.toolsbar-tag .ico { color: var(--accent); }
.titem { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line2);
         background: #fff; border-radius: 10px; padding: 7px 10px; text-decoration: none; cursor: pointer;
         transition: border-color .15s, box-shadow .15s; }
.titem:hover { border-color: rgba(224, 96, 58, .55); box-shadow: 0 2px 10px rgba(120, 80, 40, .08); }
.titem:active { transform: scale(.98); }
.titem-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
             display: flex; align-items: center; justify-content: center; flex: none; }
.titem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.titem-main b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.titem-main small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titem .titem-go { color: var(--faint); flex: none; }
.titem:hover .titem-go { color: var(--accent); }
/* 桌面端工具条隐藏：入口已移至顶栏「免费工具」标签二级菜单（.nav-group）；移动端顶栏隐藏，本条保留 */
@media (min-width: 1181px) { .toolsbar { display: none; } }
/* 详情打榜状态卡 */
.chalcard { background: #fff; border: 1.5px solid rgba(201, 154, 58, .4); border-radius: 14px;
            padding: 13px 15px; margin-top: 12px; box-shadow: 0 2px 12px rgba(120, 80, 40, .06); }
.chal-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.chal-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800;
              padding: 3px 9px; border-radius: 999px; }
.chal-badge.on { color: #8a5a17; background: #fdeecb; }
.chal-badge.on .ico { color: #e8a33d; }
.chal-badge.off { color: var(--muted); background: var(--bg-soft); }
.chal-badge.off .ico { color: var(--green); }
.chal-count { margin-left: auto; font-weight: 700; color: var(--ink3); }
.chal-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.chal-end small { display: block; font-size: 11px; color: var(--faint); margin-bottom: 2px; }
.chal-end b { font-size: 17px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.chal-end b.hot { color: #c0392b; }
.chal-btns { display: flex; gap: 8px; }
.chal-go { border: none; background: linear-gradient(120deg, #d4a95a, var(--gold)); color: #fff; font-weight: 800;
           font-size: 12.5px; padding: 8px 15px; border-radius: 9px; cursor: pointer; }
.chal-go:hover { filter: brightness(1.05); }
.chal-wall { border: 1px solid var(--line3); background: #fff; color: var(--muted); font-weight: 700; font-size: 12px;
             padding: 8px 13px; border-radius: 9px; cursor: pointer; }
.chal-wall:hover { color: var(--accent); border-color: var(--accent-softb); }
.chal-note { margin-top: 9px; font-size: 11.5px; color: #8a5a17; background: var(--gold-bg); border-radius: 8px; padding: 7px 10px; }
/* 上传者补发起打榜 */
.chalstart { margin-top: 12px; }
.chalstart-btn { width: 100%; border: 1.5px dashed rgba(201, 154, 58, .55); background: var(--gold-bg); color: #8a5a17;
                 font-weight: 700; font-size: 12.5px; padding: 10px; border-radius: 11px; cursor: pointer;
                 display: flex; align-items: center; justify-content: center; gap: 6px; }
.chalstart-btn .ico { color: var(--gold); }
.chalstart-btn:hover { background: #fdeecb; }
.chalstart-form { background: #fff; border: 1.5px solid rgba(201, 154, 58, .4); border-radius: 12px; padding: 12px 14px; }
.csf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.csf-acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.csf-acts small { font-size: 11px; color: var(--faint); flex: 1; line-height: 1.5; }
.csf-cancel { border: 1px solid var(--line3); background: #fff; color: var(--muted); font-size: 12px; font-weight: 700;
              padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.csf-ok { border: none; background: linear-gradient(120deg, #d4a95a, var(--gold)); color: #fff; font-size: 12px;
          font-weight: 800; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.csf-ok:disabled { opacity: .6; cursor: default; }
/* 评论区页签（评价 | 打榜打卡） */
.cm-tabs { display: flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: 10px;
           padding: 3px; margin: 6px 0 12px; width: fit-content; max-width: 100%; }
.cm-tabs button { border: none; background: none; padding: 6px 13px; border-radius: 8px; font-size: 13px; font-weight: 700;
                  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cm-tabs button.on { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(120, 80, 40, .12); }
.cm-tabs .cm-avg { margin-left: 8px; }
.cmt-n { font-size: 10.5px; background: var(--accent-soft); color: var(--accent); border-radius: 8px;
         padding: 1px 7px; font-weight: 800; }
/* 打卡墙：置顶答案 + 完成徽标 */
.chal-answer { background: var(--green-bg); border: 1.5px solid rgba(47, 158, 107, .35); border-radius: 12px; padding: 11px 13px; }
.chal-answer.locked { display: flex; align-items: center; gap: 7px; background: var(--bg-soft2); border-color: var(--line2);
                      color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.chal-answer.locked .ico { color: var(--faint); flex: none; }
.ca-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--green); }
.ca-head .ico { color: var(--green); }
.ca-head small { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 500; }
.ca-body { font-size: 13px; color: var(--ink2); line-height: 1.65; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.chal-answer .cm-imgs { margin-top: 7px; }
.chal-done { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--green);
             background: var(--green-bg); padding: 2px 8px; border-radius: 999px; }
.chal-done .ico { color: var(--green); }
.cm-submit.gold { background: linear-gradient(120deg, #d4a95a, var(--gold)); }
/* 上传弹窗打榜块 */
.u-chal { margin-top: 16px; border: 1.5px solid rgba(201, 154, 58, .35); background: linear-gradient(115deg, #fdf6e7, #fff);
          border-radius: 12px; padding: 12px 14px; }
.u-chal .u-check { margin-top: 0; }
.u-chal .u-check b { color: #8a5a17; }
.u-chal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.u-chal-tip { margin-top: 10px; font-size: 11px; color: var(--faint); line-height: 1.5; }

/* ── 打榜 · 移动/平板适配（≤1180px，与 actbar/上传弹窗同口径） ── */
@media (max-width: 1180px) {
  .chalbar { margin: 8px 12px 0; padding: 8px 10px; }
  .chalbar-tag { font-size: 12px; }
  .hc-item { width: 224px; }
  .toolsbar { margin: 8px 12px 0; padding: 8px 10px; gap: 8px; }
  .toolsbar-tag { font-size: 12px; }
  .titem { padding: 7px 8px; gap: 7px; }
  .titem-main small { display: none; }   /* 窄屏只留工具名，条子不折行 */
  .titem-main b { font-size: 12px; }
  .csf-grid { grid-template-columns: 1fr; gap: 8px; }
  .chal-btns { width: 100%; }
  .chal-btns .chal-go, .chal-btns .chal-off { flex: 1; justify-content: center; }
  .cm-tabs { width: 100%; }
  .cm-tabs button { flex: 1; justify-content: center; padding: 7px 6px; font-size: 12.5px; }
  .cm-tabs .cm-avg { display: none; }   /* 窄屏均分挪进页签徽标区，避免挤压 */
}
@media (max-width: 768px) {
  .u-chal-fields { grid-template-columns: 1fr; }
  .csf-acts { flex-wrap: wrap; }
  .csf-acts small { flex-basis: 100%; }
}

/* ══════════ 打榜二期（2026-09：横条年级科目签 + 历史榜单弹窗 + 开始/提交计时作答） ══════════ */
/* 横条卡片：年级·科目科目色小签（历史榜单弹窗条目复用） */
.hc-sub { font-style: normal; font-weight: 700; padding: 1px 6px; border-radius: 6px; font-size: 10px; flex: none; }
.hc-main small { overflow: hidden; }
.hc-hist { width: auto; border-style: dashed; background: var(--gold-bg); color: #8a5a17; font-weight: 800;
           font-size: 12.5px; gap: 5px; padding: 7px 14px; }
.hc-hist .ico { color: var(--gold); }
.hc-hist:hover { background: #fdeecb; }
/* 历史榜单弹窗（rccard 骨架） */
.chlist-card { width: min(540px, 94vw); display: flex; flex-direction: column; max-height: 82vh; padding-bottom: 10px; }
.chl-list { overflow-y: auto; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; padding: 0 4px 6px; }
.chl-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line2); background: #fff;
            border-radius: 11px; padding: 8px 10px; cursor: pointer; text-align: left; transition: border-color .15s; }
.chl-item:hover { border-color: rgba(201, 154, 58, .6); }
.chl-item img, .chl-item .hc-cover { width: 30px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.chl-item .hc-main { flex: 1; min-width: 0; }
.chl-item small { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden;
                  font-size: 11px; color: var(--muted); font-weight: 600; }
.chl-ans { flex: none; font-size: 10.5px; font-weight: 800; color: var(--faint); background: var(--bg-soft);
           padding: 2px 8px; border-radius: 999px; }
.chl-ans.ok { color: var(--green); background: var(--green-bg); }
/* 打卡流程：开始大按钮 / 进行中计时条 / 在线作答徽标 */
.sess-start { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 0 6px; }
.sess-go { display: inline-flex; align-items: center; gap: 8px; border: none;
           background: linear-gradient(120deg, #d4a95a, var(--gold)); color: #fff; font-size: 15px; font-weight: 900;
           padding: 12px 36px; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 14px rgba(201, 154, 58, .35); }
.sess-go .ico { color: #fff; }
.sess-go:hover { filter: brightness(1.05); }
.sess-start small { font-size: 11px; color: var(--faint); text-align: center; line-height: 1.6; }
.sess-bar { display: flex; align-items: center; gap: 8px; background: var(--gold-bg); border-radius: 9px;
            padding: 7px 11px; margin-bottom: 9px; flex-wrap: wrap; }
.sess-bar b { font-size: 12.5px; color: #8a5a17; }
.sess-time { font-size: 15px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.sess-time.over { color: #c0392b; }
.sess-limit { font-size: 11px; color: var(--faint); }
.sess-quit { margin-left: auto; border: none; background: none; color: var(--muted); font-size: 11.5px;
             cursor: pointer; text-decoration: underline; }
.sess-restart { border: none; background: none; color: var(--muted); font-size: 11.5px; cursor: pointer;
                text-decoration: underline; }
.sess-restart:hover { color: #c0392b; }
/* 打榜入口二选一（在线=网页作答结束自动截图 / 离线=触发下载打印拍照） */
.sess-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0; }
.way-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  border: 1.5px solid var(--line3); background: #fff; border-radius: 12px; padding: 13px 14px; cursor: pointer;
  font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.way-btn:hover { border-color: var(--gold); box-shadow: 0 3px 12px rgba(201, 154, 58, .18); }
.way-btn b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; color: #8a5a17; }
.way-btn b .ico { color: var(--gold); }
.way-btn small { font-size: 11px; color: var(--muted); line-height: 1.6; }
/* 状态卡描边款「离线打榜」（金色实心是在线） */
.chal-off {
  display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid rgba(201, 154, 58, .5); background: #fff;
  color: #8a5a17; font-weight: 800; font-size: 12.5px; padding: 8px 13px; border-radius: 9px; cursor: pointer;
}
.chal-off:hover { background: var(--gold-bg); }
.sess-ta { min-height: 110px; }
.chal-online { display: inline-block; font-size: 10.5px; font-weight: 800; color: #8a5a17; background: #fdeecb;
               border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
/* 在线作答多行内容：保留换行（题号分行敲的答案原样展示） */
.d-comments .cm-text { white-space: pre-wrap; }
/* 在线手写作答：方式切换 / 工具条 / 画布（PAD、手机手指或触控笔直接写在卷面上） */
.segm { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; flex-wrap: wrap; }
.segm button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2);
               background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 700;
               padding: 6px 13px; border-radius: 8px; cursor: pointer; }
.segm button.on { border-color: var(--gold); color: #8a5a17; background: var(--gold-bg); }
.segm small { font-size: 11px; color: var(--faint); }
.hw-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
            background: var(--bg-soft); border-radius: 9px; padding: 7px 9px; margin-bottom: 9px; }
.hw-sw { width: 21px; height: 21px; border-radius: 50%; cursor: pointer; flex: none;
         box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.hw-sw.on { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.hw-sep { width: 1px; height: 16px; background: var(--line3); flex: none; }
.hw-wd { width: 30px; height: 30px; border: none; background: none; border-radius: 7px; cursor: pointer;
         display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hw-wd i { background: var(--ink); border-radius: 50%; display: block; }
.hw-wd.on { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.hw-tool { border: none; background: none; color: var(--muted); font-size: 12px; font-weight: 700;
           padding: 5px 8px; border-radius: 7px; cursor: pointer; flex: none; }
.hw-tool.on { background: var(--accent); color: #fff; }
.hw-tool:hover { background: rgba(0, 0, 0, .05); }
.hw-tool.on:hover { background: var(--accent-deep); }
.hw-pg { width: 30px; height: 30px; border: 1px solid var(--line2); background: #fff; border-radius: 7px;
         cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
         color: var(--muted); flex: none; }
.hw-pg:disabled { opacity: .35; cursor: default; }
.hw-pg.flip svg { transform: scaleX(-1); }
.hw-pgnum { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.hw-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hw-canvas { max-width: 100%; max-height: 62vh; border-radius: 8px; border: 1px solid var(--line2);
             box-shadow: 0 2px 10px rgba(60, 50, 30, .08); background: #fff;
             touch-action: none; cursor: crosshair; }
.hw-tip { font-size: 11px; color: var(--faint); text-align: center; line-height: 1.6; }
/* 移动端 */
@media (max-width: 1180px) {
  .hc-hist { padding: 7px 12px; }
  .chl-item small { white-space: normal; }
}
@media (max-width: 768px) {
  .hw-canvas { max-height: 52vh; }
  .hw-tool { padding: 6px 10px; }
  .sess-ways { grid-template-columns: 1fr; }   /* 在线/离线入口窄屏竖排 */
}

/* ═══════════════════════════════════════════════════════════
   触控交互（移动端手势配套，app.js 的 dg/sh/lb 手势与之配对）
   ═══════════════════════════════════════════════════════════ */
html {
  -webkit-tap-highlight-color: transparent;   /* 去系统灰块高亮，反馈交给 :active */
  touch-action: manipulation;                  /* 去双击缩放延迟；捏合缩放保留，画布 .hw-canvas 自身 none 更优先 */
}
body { overscroll-behavior-y: none; }          /* 阻断 Chrome 下拉刷新与整页橡皮筋 */
.sc { overscroll-behavior: contain; }          /* 抽屉/弹窗内滚到头不再链到背景（配合 JS 滚动锁双保险） */

/* 背景滚动锁（app.js pageLocked → _lockBody）：触屏用 position:fixed 才锁得住，
   top 由 JS 按锁定时的滚动位置内联写入，解锁后 scrollTo 还原 */
body.fs-locked { overflow: hidden; }
@media (pointer: coarse) {
  body.fs-locked { position: fixed; left: 0; right: 0; width: 100%; }
}

/* 灯箱手势：stage 全量接管指针（滑动翻页/双指缩放/双击放大），图片禁原生拖拽 */
.lb-stage { touch-action: none; }
.lb-stage img { -webkit-user-drag: none; user-select: none; }

/* 触屏按压反馈（hover 设备保持 hover 态，不叠 :active） */
@media (hover: none) {
  .rcard:active, .chip:active, .ct-btn:active, .ft-btn:active, .sort:active,
  .shbtn:active, .rcitem:active, .way-btn:active, .hc-item:active, .msg-row:active,
  .chl-item:active, .fbtype:active, .pf-role:active, .sess-go:active,
  .cm-img-add:active, .cm-img-x:active, .lcol-title-in:active {
    transform: scale(.97);
  }
  .btn-dl:active:not(:disabled), .btn-dlmain:active:not(:disabled),
  .cm-submit:active:not(:disabled), .u-submit:active:not(:disabled),
  .lbtn:active:not(:disabled), .msg-send:active:not(:disabled),
  .vbtn:active:not(:disabled), .chal-go:active:not(:disabled) {
    filter: brightness(.92);
  }
}

/* ═══════════════ 家长问答（悬赏互助社区；qawrap 主视图 + qdrawer 详情抽屉 + qamodal 提问弹窗） ═══════════════ */
.qawrap { padding: 30px 34px 60px; animation: fade .25s; }
.qa-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 22px 26px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--gold-bg), #f6efdf 70%); border: 1px solid #efe3c8; }
.qa-hero .kicker { font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.qa-hero h2 { margin: 0 0 6px; font-size: 22px; }
.qa-hero p { margin: 0; font-size: 13px; color: var(--ink3); max-width: 560px; line-height: 1.7; }
.qa-askbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px;
  border-radius: 10px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 16px -6px var(--accent-soft2); }
.qa-askbtn:hover { background: var(--accent-deep); }

.qa-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; }
.qa-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 4px; }
.qa-tabs button { border: none; background: none; padding: 8px 16px; border-radius: 8px; font-size: 14px;
  color: var(--ink2); cursor: pointer; font-weight: 600; }
.qa-tabs button.on { background: #fff; color: var(--accent-deep); box-shadow: 0 2px 8px -2px rgba(60,44,30,.18); }
.qa-filters { display: flex; gap: 8px; }
.qa-sel { border: 1px solid var(--line3); background: #fff; border-radius: 8px; padding: 7px 10px;
  font-size: 13px; color: var(--ink2); cursor: pointer; }
.qa-sel.wide { width: 100%; }

.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-card { background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.qa-card:hover { border-color: var(--accent-softb); box-shadow: 0 10px 26px -14px rgba(60,44,30,.35); }
.qa-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.qa-bounty { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-bg); color: var(--gold); font-weight: 800; font-size: 12px; border: 1px solid #ecd9ad; }
.qa-st { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--bg-soft); color: var(--ink3); }
.qa-st.s-open { background: var(--green-bg); color: var(--green); }
.qa-st.s-adopted { background: var(--accent-soft); color: var(--accent-deep); }
.qa-st.s-expired { background: #f3efe8; color: var(--muted); }
.qa-st.s-closed { background: #f3efe8; color: var(--muted); }
.qa-pinned { font-size: 11px; color: var(--gold); font-weight: 700; }
.qa-meta { color: var(--ink3); }
.qa-city { font-size: 11px; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; }
.qa-qtitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-asker { color: var(--ink2); font-weight: 600; }
.qa-time { margin-left: auto; color: var(--faint); font-size: 12px; }
.qa-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 8px 0 8px; line-height: 1.5; }
.qa-title.sm { font-size: 14px; font-weight: 600; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qa-row3 { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.qa-row3 svg { margin-right: 3px; vertical-align: -2px; }
.qa-left { color: var(--gold); font-weight: 600; }
.qa-go { margin-left: auto; color: var(--accent); font-weight: 700; }
.qa-more { text-align: center; padding: 16px 0 4px; font-size: 13px; color: var(--muted); }
.qa-more button { border: 1px solid var(--line3); background: #fff; color: var(--ink2);
  border-radius: 999px; padding: 9px 22px; font-size: 13px; cursor: pointer; }
.qa-more button:hover { border-color: var(--accent-softb); color: var(--accent-deep); }
.qa-empty { text-align: center; padding: 60px 0 40px; color: var(--faint); }
.qa-empty .ico { width: 40px; height: 40px; opacity: .4; }
.qa-empty p { margin: 10px 0 16px; font-size: 14px; }
.qa-empty.slim { padding: 26px 0; }
.qa-empty.slim p { margin: 0; }
.qa-empty-btn { border: none; background: var(--accent); color: #fff; border-radius: 999px;
  padding: 10px 24px; font-size: 14px; font-weight: 700; cursor: pointer; }
.qa-mine-t { font-size: 15px; font-weight: 800; margin: 22px 0 10px; }
.qa-mine-t small { font-weight: 500; color: var(--faint); margin-left: 4px; }

/* ---------- 问答详情抽屉（结构与资料详情抽屉同款：右滑入，移动端全宽） ---------- */
.qdrawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw);
  background: #fff; z-index: 60; box-shadow: -30px 0 80px -30px rgba(60,44,30,.5);
  animation: slidein .22s ease-out; padding: 22px 26px 40px; overflow-y: auto; }
.qdrawer .d-close { position: absolute; top: 16px; right: 16px; }
.qd-loading { text-align: center; padding: 80px 0; color: var(--muted); font-size: 14px; }
.qd-q { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qd-title { margin: 10px 0 6px; font-size: 20px; line-height: 1.45; }
.qd-meta { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.qd-content { font-size: 14px; line-height: 1.8; color: var(--ink2); white-space: pre-wrap; margin: 0 0 10px; }
.qd-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.qd-imgs img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; cursor: zoom-in;
  border: 1px solid var(--line2); }
.qd-rel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-soft2); border: 1px solid var(--line2); cursor: pointer; margin-bottom: 8px; }
.qd-rel:hover { border-color: var(--accent-softb); }
.qd-rel b { font-size: 12px; color: var(--ink3); display: block; }
.qd-rel span { font-size: 13px; color: var(--ink2); }
.qa-rel-go { margin-left: auto; color: var(--faint); }
.qd-acts { display: flex; gap: 8px; justify-content: flex-end; }
.qa-mini { display: inline-flex; align-items: center; gap: 4px; border: none; background: none;
  color: var(--faint); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.qa-mini:hover { color: var(--ink2); background: var(--bg-soft); }

.qd-as-t { font-size: 15px; font-weight: 800; margin: 18px 0 10px; }
.qd-a { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.qd-a.adopted { border-color: #e8cfa4; background: linear-gradient(180deg, #fdf8ee, #fff 60%); }
.qd-a.deleted { opacity: .55; }
.qd-a-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qd-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.qd-a-name { font-size: 13px; }
.qd-a-name em { font-style: normal; font-size: 11px; color: var(--green); background: var(--green-bg);
  border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.qa-adopt-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800;
  color: var(--gold); background: var(--gold-bg); border-radius: 999px; padding: 2px 9px; border: 1px solid #ecd9ad; }
.qd-a-time { margin-left: auto; font-size: 12px; color: var(--faint); }
.qd-a-body { font-size: 14px; line-height: 1.8; color: var(--ink2); white-space: pre-wrap; }
.qd-a-body.deleted { color: var(--faint); font-style: italic; }
.qd-a-acts { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qa-adopt-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--accent);
  background: #fff; color: var(--accent-deep); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer; }
.qa-adopt-btn:hover { background: var(--accent); color: #fff; }
.qd-none { text-align: center; color: var(--faint); font-size: 13px; padding: 26px 0 10px; }

.qd-editor { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--bg-soft2);
  border: 1px solid var(--line2); }
.qd-editor.guest { text-align: center; }
.qd-ed-t { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink2); }
.qd-ed-ta { width: 100%; min-height: 96px; border: 1px solid var(--line3); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; background: #fff; }
.qd-ed-ta:focus { outline: none; border-color: var(--accent-soft2); }
.qd-ed-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.qa-submit { border: none; background: var(--accent); color: #fff; border-radius: 999px;
  padding: 10px 26px; font-size: 14px; font-weight: 700; cursor: pointer; }
.qa-submit:hover:not(:disabled) { background: var(--accent-deep); }
.qa-submit:disabled { opacity: .6; cursor: default; }
.qa-submit.big { width: 100%; padding: 13px 0; margin-top: 16px; }
.qa-ghost { border: 1px solid var(--line3); background: #fff; color: var(--ink3); border-radius: 999px;
  padding: 10px 20px; font-size: 13px; cursor: pointer; }
.qd-closed { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint);
  background: var(--bg-soft); border-radius: 10px; padding: 12px 0; }

/* ---------- 提问弹窗表单 ---------- */
.qamodal { max-width: 620px; }
.qa-f-label { font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.qa-f-label small { font-weight: 500; color: var(--faint); }
.qa-f-title { width: 100%; border: 1px solid var(--line3); border-radius: 10px; padding: 11px 12px;
  font-size: 15px; font-family: inherit; }
.qa-f-title:focus, .qa-f-ta:focus { outline: none; border-color: var(--accent-soft2); }
.qa-f-ta { width: 100%; min-height: 110px; border: 1px solid var(--line3); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.qa-f-row { display: flex; gap: 12px; }
.qa-f-col { flex: 1; }
.qa-bounties { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-bty { border: 1px solid var(--line3); background: #fff; border-radius: 10px; padding: 9px 0;
  flex: 1; min-width: 74px; font-size: 15px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.qa-bty.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.qa-bty-hint { font-size: 12px; color: var(--ink3); background: var(--bg-soft2); border-radius: 8px;
  padding: 8px 12px; margin-top: 8px; line-height: 1.7; }
.qa-anon { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2);
  margin-top: 14px; cursor: pointer; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  .qawrap { padding: 18px 14px 90px; }
  .qa-hero { flex-direction: column; align-items: stretch; padding: 18px; }
  .qa-hero h2 { font-size: 19px; }
  .qa-askbtn { justify-content: center; }
  .qa-bar { flex-direction: column; align-items: stretch; }
  .qa-filters { justify-content: flex-end; }
  .qdrawer { padding: 16px 14px 40px; width: 100vw; }
  .qd-imgs img { width: 92px; height: 92px; }
  .qa-f-row { flex-direction: column; gap: 0; }
  .qa-time { margin-left: 0; width: 100%; order: 9; }
}

/* ---------- Android 浏览器访客：App 下载引导弹层（每设备仅一次） ---------- */
.apkd-mask { position: fixed; inset: 0; z-index: 85; background: rgba(24, 19, 14, .55); display: flex; align-items: center; justify-content: center; padding: 22px; animation: fade .2s ease; }
.apkd-card { position: relative; width: 330px; max-width: 92vw; background: #fff; border-radius: 16px; padding: 30px 22px 18px; text-align: center; box-shadow: 0 18px 50px rgba(20, 14, 8, .28); }
.apkd-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.apkd-x:hover { background: var(--bg-soft); color: var(--ink2); }
.apkd-logo { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.apkd-logo .ico { width: 30px; height: 30px; }
.apkd-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.apkd-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--ink3); }
.apkd-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 12px 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.apkd-btn:hover { background: var(--accent-deep); }
.apkd-wechat { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--gold); background: var(--gold-bg); border-radius: 8px; padding: 7px 9px; }
.apkd-skip { margin-top: 10px; border: 0; background: none; color: var(--faint); font-size: 13px; cursor: pointer; padding: 6px 10px; }
.apkd-skip:hover { color: var(--ink3); text-decoration: underline; }

/* ---------- ICP 备案号页脚（全域名常显，app.js icpNo 返回 ICP_CN；2026-11-16 起 .cn 为主站） ---------- */
.icp-foot { padding: 20px 0 28px; text-align: center; font-size: 12px; color: var(--muted); }
.icp-foot a { color: inherit; text-decoration: none; letter-spacing: .02em; }
.icp-foot a:hover { color: var(--accent); }
