/* 铁翼理论 H5 · 学习强国红主题 */
:root {
  --red: #E60012;
  --red-dark: #C00000;
  --red-grad: linear-gradient(135deg, #F02B2B 0%, #C00000 100%);
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #262626;
  --ink: #1A1A1A;
  --muted: #8A8A8A;
  --line: #EEEEEE;
  --green: #09A35B;
  --orange: #FF8F00;
  --blue: #1E88E5;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
  background: #E9EBEF;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 手机外壳 */
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
  overflow: hidden;
  padding-bottom: 62px;
}
@media (min-width: 500px) {
  body { padding: 20px 0; }
  .phone { min-height: calc(100vh - 40px); border-radius: 22px; }
}

/* 顶部通栏 */
.topbar {
  background: var(--red-grad);
  color: #fff;
  padding: 14px 16px 12px;
  position: sticky; top: 0; z-index: 30;
}
.topbar-row { display: flex; align-items: center; gap: 10px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.brand small { display: block; font-size: 9px; font-weight: 400; opacity: .8; letter-spacing: 2px; }
.search {
  flex: 1; height: 34px; background: rgba(255,255,255,.22);
  border-radius: 17px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 13px; color: rgba(255,255,255,.9);
}
.search input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0;
  font-size: 13px; color: #fff; padding: 0;
}
.search input::placeholder { color: rgba(255,255,255,.75); }
.search-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: rgba(255,255,255,.9);
}
.top-icon { width: 34px; text-align: center; font-size: 13px; }
.top-icon .pts { display: block; font-size: 14px; font-weight: 800; color: #FFE082; }

/* 频道栏 */
.channels {
  display: flex; gap: 20px; overflow-x: auto; background: var(--card);
  padding: 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.channels::-webkit-scrollbar { display: none; }
.channel {
  flex: 0 0 auto; padding: 13px 0 11px; font-size: 15px; color: #555;
  position: relative; white-space: nowrap; cursor: pointer;
}
.channel.active { color: var(--red); font-weight: 700; }
.channel.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--red); border-radius: 2px;
}

/* 胶囊筛选 */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; padding: 7px 15px; border-radius: 18px; font-size: 13px;
  background: #ECEEF1; color: #555; cursor: pointer; border: none;
}
.pill.active { background: var(--red); color: #fff; font-weight: 600; }

/* 通用区块 */
.wrap { padding: 0 16px; }
.section { margin-top: 16px; }
.section-title {
  display: flex; align-items: center; font-size: 17px; font-weight: 700;
  color: var(--ink); margin: 0 0 12px;
}
.section-title::before {
  content: ''; width: 3px; height: 17px; background: var(--red);
  border-radius: 2px; margin-right: 9px;
}
.section-title .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; cursor: pointer; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 继续学习横幅 */
.continue-banner {
  margin: 12px 16px 0; padding: 14px 16px; border-radius: var(--radius);
  background: var(--red-grad); color: #fff; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 16px rgba(230,0,18,.25);
}
.continue-banner .cb-icon { font-size: 26px; }
.continue-banner .cb-txt { flex: 1; }
.continue-banner .cb-t1 { font-size: 15px; font-weight: 700; }
.continue-banner .cb-t2 { font-size: 12px; opacity: .85; margin-top: 2px; }
.continue-banner .cb-btn { background: #fff; color: var(--red); padding: 6px 14px; border-radius: 15px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 双模式入口 */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { padding: 16px; border-radius: var(--radius); color: #fff; cursor: pointer; position: relative; overflow: hidden; min-height: 96px; }
.mode-card.normal { background: linear-gradient(135deg, #E60012, #B5000E); }
.mode-card.fun { background: linear-gradient(135deg, #FF6B00, #E60012); }
.mode-card .mc-icon { font-size: 26px; }
.mode-card .mc-t { font-size: 16px; font-weight: 700; margin-top: 6px; }
.mode-card .mc-d { font-size: 11px; opacity: .85; margin-top: 3px; }
.mode-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border: 12px solid rgba(255,255,255,.12); border-radius: 50%; }

/* 板块入口 */
.section-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.sec-item { text-align: center; cursor: pointer; padding: 6px 0; }
.sec-ico {
  width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 14px;
  background: #FDECEC; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--red);
}
.sec-item .sec-name { font-size: 11px; color: #444; }

/* 文章卡片 */
.article { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.article:last-child { border-bottom: none; }
.article .a-thumb {
  width: 104px; height: 70px; border-radius: 8px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 12px; font-weight: 700; text-align: center; padding: 4px;
  background: linear-gradient(135deg, #E60012, #C00000);
}
.article .a-thumb.video { background: linear-gradient(135deg, #3949AB, #1E88E5); }
.article .a-thumb.tu { background: linear-gradient(135deg, #FF8F00, #E60012); }
.article .a-body { flex: 1; min-width: 0; }
.article .a-t { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article .a-d { font-size: 12px; color: var(--muted); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article .a-meta { font-size: 11px; color: #AAA; margin-top: 6px; }

/* 游戏卡片 */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card { padding: 15px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; }
.game-card .g-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.game-card .g-t { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.game-card .g-d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.game-card .g-meta { display: flex; gap: 6px; margin-top: 10px; }
.game-tag { font-size: 10px; padding: 3px 7px; border-radius: 8px; background: #F5F5F5; color: #888; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px; background: #fff;
  border-top: 1px solid var(--line); display: flex; z-index: 40;
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
}
.tab { flex: 1; text-align: center; padding-top: 8px; cursor: pointer; color: #999; }
.tab .t-ico { font-size: 21px; line-height: 1; }
.tab .t-t { font-size: 11px; margin-top: 3px; }
.tab.active { color: var(--red); }

/* 页面（视图） */
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform:none;} }

/* 答题页 */
.quiz-page { min-height: 100vh; background: linear-gradient(180deg, #F2F6FA, #EAF0F6); padding-bottom: 30px; }
.quiz-head { background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.qh-back { font-size: 22px; cursor: pointer; color: #555; }
.qh-title { font-size: 16px; font-weight: 700; flex: 1; }
.qh-timer { font-size: 18px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.qh-progress { font-size: 13px; color: var(--muted); }
.quiz-body { padding: 20px 16px; }
.q-meta { display: flex; gap: 8px; margin-bottom: 14px; }
.q-badge { font-size: 11px; padding: 4px 10px; border-radius: 10px; background: #E8F0FE; color: var(--blue); }
.q-badge.red { background: #FDECEC; color: var(--red); }
.q-stem { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.55; margin: 0 0 22px; }
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px;
  background: #fff; border: 2px solid #E0E0E0; border-radius: 12px;
  font-size: 17px; line-height: 1.5; cursor: pointer; transition: .15s; min-height: 50px;
}
.q-opt .opt-key { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #F0F0F0; color: #666; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.q-opt.selected { border-color: var(--red); background: #FDEEEE; }
.q-opt.selected .opt-key { background: var(--red); color: #fff; }
.q-opt.correct { border-color: var(--green); background: #E9F7F0; }
.q-opt.correct .opt-key { background: var(--green); color: #fff; }
.q-opt.wrong { border-color: var(--red); background: #FDEEEE; }
.q-opt.wrong .opt-key { background: var(--red); color: #fff; }
.q-opt.disabled { cursor: default; }
.q-input {
  width: 100%; padding: 14px 16px; font-size: 18px; border: 2px solid #E0E0E0;
  border-radius: 12px; outline: none; font-family: inherit;
}
.q-input:focus { border-color: var(--red); }
.q-textarea { width: 100%; min-height: 130px; padding: 14px 16px; font-size: 16px; border: 2px solid #E0E0E0; border-radius: 12px; outline: none; font-family: inherit; line-height: 1.6; resize: vertical; }
.q-textarea:focus { border-color: var(--red); }

.q-analysis { margin-top: 18px; padding: 16px; background: #fff; border-radius: 12px; border-left: 4px solid var(--orange); }
.qa-head { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.qa-ok { color: var(--green); }
.qa-no { color: var(--red); }
.qa-text { font-size: 14px; color: #555; line-height: 1.6; }
.qa-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.qa-src a { color: var(--red); text-decoration: none; }

.q-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn {
  flex: 1; padding: 15px; border: none; border-radius: 26px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn-gray { background: #F0F0F0; color: #666; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 结果页 */
.result-hero { text-align: center; padding: 32px 20px 20px; }
.result-score { font-size: 56px; font-weight: 800; color: var(--red); line-height: 1; }
.result-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.result-stats { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.rs-item { text-align: center; }
.rs-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.rs-txt { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 我的页 */
.profile-head { background: var(--red-grad); padding: 24px 20px 60px; color: #fff; position: relative; }
.pf-row { display: flex; align-items: center; gap: 14px; }
.pf-avatar { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 2px solid rgba(255,255,255,.5); }
.pf-name { font-size: 19px; font-weight: 700; }
.pf-unit { font-size: 12px; opacity: .85; margin-top: 3px; }
.pf-level { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 12px; font-size: 12px; }
.pf-card { margin: -44px 16px 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative; }
.pf-nums { display: flex; }
.pf-num { flex: 1; text-align: center; position: relative; }
.pf-num + .pf-num::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.pf-num .n { font-size: 24px; font-weight: 800; color: var(--red); }
.pf-num .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.menu-list { margin: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-ico { width: 34px; height: 34px; border-radius: 10px; background: #FDECEC; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.menu-t { flex: 1; font-size: 15px; }
.menu-arrow { color: #CCC; }

/* 排行榜 */
.rank-top { background: var(--red-grad); padding: 26px 20px 50px; color: #fff; text-align: center; }
.rank-top .trophy { font-size: 44px; }
.rank-top .rt-t { font-size: 18px; font-weight: 700; margin-top: 6px; }
.rank-list { margin: -30px 16px 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: none; }
.rank-no { width: 28px; height: 28px; border-radius: 50%; background: #F0F0F0; color: #888; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rank-no.top1 { background: #FFD700; color: #7A5C00; }
.rank-no.top2 { background: #C0C8D0; color: #fff; }
.rank-no.top3 { background: #CD9B6A; color: #fff; }
.rank-name { flex: 1; font-size: 15px; }
.rank-unit { font-size: 11px; color: var(--muted); }
.rank-pts { font-size: 16px; font-weight: 700; color: var(--red); }

/* 列表通用 */
.list-card { margin: 12px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }
.lr-main { flex: 1; min-width: 0; }
.lr-t { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .e-ico { font-size: 46px; opacity: .4; }

/* 关卡地图 */
.level-map { padding: 20px 16px; }
.level-node {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; cursor: pointer;
  position: relative;
}
.level-node.locked { opacity: .55; }
.level-node.boss { background: linear-gradient(135deg, #FFF3E0, #FFE0E0); }
.level-circle { width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex: 0 0 auto; }
.level-node.locked .level-circle { background: #CCC; }
.level-info { flex: 1; }
.level-name { font-size: 15px; font-weight: 700; }
.level-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.level-stars { color: #FFB300; font-size: 14px; letter-spacing: 2px; }

/* 连连看 */
.llk-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.llk-item { padding: 14px; background: #fff; border: 2px solid #E0E0E0; border-radius: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; min-height: 60px; }
.llk-item.sel { border-color: var(--red); background: #FDEEEE; }
.llk-item.ok { border-color: var(--green); background: #E9F7F0; opacity: .5; }
.llk-item.err { border-color: var(--red); background: #FDEEEE; }

/* 大富翁 */
.monopoly-board { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 16px; }
.mono-cell { aspect-ratio: 1; border-radius: 10px; background: #fff; border: 2px solid #E8E8E8; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; text-align: center; position: relative; padding: 4px; }
.mono-cell.q { background: #FDECEC; }
.mono-cell.event { background: #E8F5E9; }
.mono-cell.start { background: var(--red); color: #fff; font-weight: 700; }
.mono-cell .pawn { font-size: 18px; position: absolute; top: -6px; }
.dice-btn { text-align: center; padding: 16px; }
.dice-num { font-size: 48px; }

/* 游戏通用 */
.game-hud { display: flex; justify-content: space-around; padding: 14px 16px; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.hud-item { text-align: center; }
.hud-num { font-size: 22px; font-weight: 800; color: var(--red); }
.hud-label { font-size: 11px; color: var(--muted); }
.combo { color: var(--orange); }

/* 后台管理看板（桌面/移动自适应） */
.admin { max-width: 1200px; margin: 0 auto; padding: 20px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { font-size: 22px; color: var(--ink); margin: 0; }
.admin-head .badge-local { font-size: 12px; background: #E8F5E9; color: var(--green); padding: 6px 12px; border-radius: 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); border-top: 3px solid var(--red); }
.kpi .k-label { font-size: 13px; color: var(--muted); }
.kpi .k-num { font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.kpi .k-num.red { color: var(--red); }
.kpi .k-sub { font-size: 11px; color: #AAA; margin-top: 4px; }
.panel { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h3 { margin: 0 0 16px; font-size: 16px; color: var(--ink); }
.panel h3 .h-note { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 42px; background: linear-gradient(180deg, var(--red), #FF8A8A); border-radius: 6px 6px 0 0; min-height: 2px; transition: height .4s; }
.bar-label { font-size: 11px; color: var(--muted); margin-top: 8px; white-space: nowrap; }
.bar-val { font-size: 11px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hbar-name { width: 130px; font-size: 13px; text-align: right; flex: 0 0 auto; }
.hbar-track { flex: 1; height: 18px; background: #F0F0F0; border-radius: 9px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, var(--red), #FF8A8A); border-radius: 9px; }
.hbar-val { width: 60px; font-size: 13px; font-weight: 700; }
table.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dtable th, table.dtable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.dtable th { background: #FDECEC; color: var(--red-dark); font-weight: 700; }
table.dtable tr:hover td { background: #FAFAFA; }
.tabs-admin { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-admin { padding: 8px 16px; border-radius: 18px; background: #F0F0F0; color: #666; cursor: pointer; font-size: 13px; border: none; }
.tab-admin.active { background: var(--red); color: #fff; }

/* 弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 360px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; }
.modal input { width: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 12px; font-family: inherit; }
.toast { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 12px 20px; border-radius: 22px; font-size: 14px; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }

.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.15em; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ===== 铁翼理论 v2 新增：登录弹窗 / 章节列表 ===== */
.login-mask { position: fixed; inset: 0; background: linear-gradient(160deg,#C00000,#8E0000); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 22px; }
.login-box { background: #fff; border-radius: 18px; padding: 28px 24px 22px; width: 100%; max-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.login-logo { font-size: 26px; font-weight: 900; color: var(--red); text-align: center; letter-spacing: 2px; }
.login-sub { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.login-tip { font-size: 13px; color: var(--text); text-align: center; margin: 20px 0 16px; line-height: 1.6; }
.login-input { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 12px; font-family: inherit; transition: border-color .2s; }
.login-input:focus { outline: none; border-color: var(--red); }
.login-err { color: var(--red); font-size: 12px; min-height: 16px; margin-bottom: 2px; }
.login-foot { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.5; }

.chapter-list { padding: 0 16px 16px; }
.chapter-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.chapter-item:active { transform: scale(.98); }
.chapter-item.done { background: #F1FBF5; }
.ch-no { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--red-grad); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ch-no.ok { background: var(--green); }
.ch-body { flex: 1; min-width: 0; }
.ch-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
