:root { --bg:#f7f5ef; --fg:#2a2a2a; --accent:#8a5a2b; --line:#e3ddcf; --card:#fffdf8; --muted:#8a8175; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg);
  font-family:"Noto Sans SC", system-ui, "PingFang SC", sans-serif; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; }

/* ================= 顶部：品牌 + 登录 + 导航 ================= */
/* 整块页头吸顶：滚动时品牌、导航、搜索一起留在顶部，全站一致 */
.site-header { position:sticky; top:0; z-index:50; background:var(--card);
  border-bottom:1px solid var(--line); }
/* 往下滚一段后收起来：搜索条隐藏、品牌行变矮，给正文腾地方（见 assets/nav.js） */
.site-header.is-condensed .search-bar { display:none; }
.site-header.is-condensed .site-top { padding-top:7px; padding-bottom:7px; }
.site-header.is-condensed .brand-txt em { display:none; }
.site-header.is-condensed .brand-mark { width:34px; height:34px; }
.site-header.is-condensed .brand-txt strong { font-size:19px; }
.site-header.is-condensed .brand-ribbon { font-size:10.5px; letter-spacing:1px; padding-top:3px; padding-bottom:3px; }
.site-top { max-width:1180px; margin:0 auto; padding:14px 22px;
  display:flex; align-items:center; gap:16px; }
.brand { display:flex; align-items:center; gap:11px; min-width:0; }
.brand-mark { width:42px; height:42px; display:block; flex:none; }
.brand-txt { min-width:0; }
.brand-txt strong { display:block; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:23px; letter-spacing:.5px; color:var(--accent); line-height:1.1; }
.brand-txt em { display:block; font-style:normal; font-size:10.5px; letter-spacing:.4px;
  color:var(--muted); margin-top:3px; white-space:nowrap; }
/* 字标旁的飘带标语：挂一段口号，左端折角、右端燕尾，轻微摆动 */
.brand-ribbon { position:relative; display:inline-flex; align-items:center;
  padding:3px 12px 3px 14px; margin-left:10px; vertical-align:middle;
  background:linear-gradient(135deg,#b27b3a,#8a5a2b); color:#fff;
  font-family:"Noto Serif SC","Songti SC",serif; font-size:12px; letter-spacing:1.5px;
  line-height:1.4; border-radius:4px 8px 8px 4px; box-shadow:0 2px 8px rgba(138,90,43,.30);
  white-space:nowrap; transform-origin:0 50%; animation:ribbon-sway 5s ease-in-out infinite; }
.brand-ribbon::before { content:""; position:absolute; left:-7px; top:50%;
  transform:translateY(-50%); border-style:solid; border-width:6px 7px 6px 0;
  border-color:transparent #8a5a2b transparent transparent; }
.brand-ribbon::after { content:""; position:absolute; right:-8px; top:50%;
  transform:translateY(-50%); width:8px; height:8px; background:#8a5a2b;
  clip-path:polygon(0 0,100% 50%,0 100%); }
@keyframes ribbon-sway { 0%,100% { transform:rotate(0deg); } 50% { transform:rotate(-2.6deg); } }
@media (prefers-reduced-motion:reduce) { .brand-ribbon { animation:none; } }
.top-right { margin-left:auto; display:flex; align-items:center; gap:10px; }

.authbar { display:flex; justify-content:flex-end; align-items:center; gap:8px; font-size:14px; }
.authbar .uname { color:var(--muted); margin-right:2px; }
.authbar .btn { background:transparent; border:1px solid var(--line); color:var(--fg);
  padding:6px 15px; border-radius:999px; cursor:pointer; font-size:14px; line-height:1.5;
  white-space:nowrap; }
.authbar .btn:hover { border-color:var(--accent); color:var(--accent); }
.authbar .btn.ghost { background:transparent; }
.authbar #regBtn, .authbar .btn.primary { background:var(--accent); border-color:var(--accent);
  color:#fff; }
.authbar #regBtn:hover { background:#774d24; color:#fff; }

/* 汉堡按钮（仅窄屏可见） */
.nav-toggle { display:none; width:40px; height:40px; padding:0; border:1px solid var(--line);
  background:transparent; border-radius:10px; cursor:pointer; color:var(--fg); flex:none; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display:block; width:17px; height:1.8px; background:currentColor; border-radius:2px;
  margin:0 auto; transition:transform .18s, opacity .18s; }
.nav-toggle .bars { position:relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content:""; position:absolute; left:0; }
.nav-toggle .bars::before { top:-6px; }
.nav-toggle .bars::after { top:6px; }
body.nav-open .nav-toggle { color:var(--accent); border-color:#e3cfa8; }

/* ---- 主导航（页头本身已吸顶，这里不再单独 sticky，避免两层叠在一起）---- */
.site-nav { background:var(--card);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.nav-inner { max-width:1180px; margin:0 auto; padding:0 22px;
  display:flex; align-items:center; gap:2px; }
.nav-link { display:inline-flex; align-items:center; gap:6px; padding:12px; font-size:14px;
  color:var(--muted); border-bottom:2px solid transparent; white-space:nowrap;
  transition:color .15s; }
.nav-link:hover { color:var(--fg); }
.nav-link.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
.nav-count { font-size:10.5px; color:var(--muted); background:#f6efe2; border-radius:999px;
  padding:0 6px; line-height:1.7; }
.nav-item { position:relative; }
.nav-caret { display:none; }
.caret { width:5px; height:5px; border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; opacity:.55; }

/* 子分类下拉（桌面 hover / 点击均可） */
.sub-menu { position:absolute; top:100%; left:0; z-index:60; display:none;
  min-width:330px; padding:10px; background:var(--card); border:1px solid var(--line);
  border-radius:14px; box-shadow:0 20px 48px rgba(60,40,20,.16); }
.nav-item:hover .sub-menu, .nav-item.open .sub-menu { display:block; }
@media (min-width: 981px) {
  .nav-item:focus-within .sub-menu { display:block; }
}
.sub-inner { display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.sub-inner a { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 10px; border-radius:8px; font-size:13.5px; color:var(--fg); }
.sub-inner a:hover { background:var(--line); color:var(--accent); }
.sub-inner em { font-style:normal; color:var(--muted); font-size:11.5px; }
.sub-inner .sub-all { grid-column:1/-1; font-weight:600; border-bottom:1px dashed var(--line);
  border-radius:8px 8px 0 0; margin-bottom:5px; }

/* ---- 通栏搜索条（紧贴导航栏下方） ---- */
.search-bar { background:var(--card); border-bottom:1px solid var(--line); padding:12px 22px; }
.search-inner { position:relative; max-width:1180px; margin:0 auto; display:flex; gap:8px; }
.search-inner::before { content:""; position:absolute; left:17px; top:calc(50% - 10px);
  width:12px; height:12px; border:2px solid var(--muted); border-radius:50%; pointer-events:none; }
.search-inner::after { content:""; position:absolute; left:27px; top:calc(50% + 1px);
  width:7px; height:2px; background:var(--muted); transform:rotate(45deg);
  border-radius:1px; pointer-events:none; }
#search { flex:1; min-width:0; width:100%; padding:12px 18px 12px 44px; border:1px solid var(--line);
  border-radius:10px; font-size:15px; outline:none; background:var(--card); color:var(--fg);
  font-family:inherit; transition:border-color .15s, box-shadow .15s; }
#search:hover { border-color:#d5c9b2; }
#search:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(138,90,43,.10); }
#search::-webkit-search-cancel-button { cursor:pointer; }
.search-btn { flex:none; padding:0 22px; border-radius:10px; border:1px solid var(--accent);
  background:var(--accent); color:#fff; font-size:14.5px; cursor:pointer; font-family:inherit;
  transition:background .15s; }
.search-btn:hover { background:#774d24; border-color:#774d24; }

/* ================= Hero ================= */
.hero-inner { max-width:1180px; margin:0 auto; padding:46px 22px 36px;
  display:grid; grid-template-columns:1.02fr .98fr; gap:52px; align-items:center; }
.hero-kicker { display:inline-block; font-size:12px; letter-spacing:2px; color:var(--accent);
  background:#f6efe2; border:1px solid #eadfc8; padding:5px 12px; border-radius:999px;
  margin:0 0 18px; }
.hero-title { font-family:"Noto Serif SC","Songti SC",serif; font-size:clamp(27px,3.9vw,44px);
  line-height:1.3; margin:0 0 16px; letter-spacing:1px; color:#332a20; }
.hero-title .hl { color:var(--accent); }
.hero-lead { font-size:15.5px; line-height:1.85; color:#5f564a; margin:0 0 24px; max-width:34em; }
.hero-lead b { color:var(--accent); font-weight:600; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; }
.hero-cta .btn { display:inline-block; padding:11px 22px; border-radius:999px; font-size:15px;
  border:1px solid var(--line); color:var(--fg); background:transparent; transition:all .16s; }
.hero-cta .btn.solid { background:var(--accent); border-color:var(--accent); color:#fff; }
.hero-cta .btn.solid:hover { background:#774d24; border-color:#774d24; }
.hero-cta .btn.ghost:hover { border-color:var(--accent); color:var(--accent); }
/* 右侧：本周共读榜三本 */
.hero-right { background:linear-gradient(180deg,#f5eddf,#efe5d2);
  border:1px solid #e6dcc6; border-radius:20px; padding:20px 20px 16px;
  box-shadow:0 18px 40px rgba(88,62,32,.10); }
.rank-head { display:flex; align-items:center; gap:9px; font-family:"Noto Serif SC","Songti SC",serif;
  font-size:17px; color:#4a3826; font-weight:600; }
.rank-dot { width:8px; height:8px; border-radius:50%; background:#c0392b;
  box-shadow:0 0 0 4px rgba(192,57,43,.12); }
.rank-sub { font-family:"Noto Sans SC",sans-serif; font-weight:400; font-size:11.5px;
  color:var(--muted); margin-left:auto; }
.book-fan { display:flex; justify-content:center; align-items:flex-end; gap:16px;
  padding:20px 2px 4px; }
.fan-item { display:flex; flex-direction:column; align-items:center; text-align:center;
  width:31%; max-width:136px; }
.fan-cover { position:relative; display:block; width:100%; height:0; padding-bottom:150%;
  border-radius:4px 9px 9px 4px; overflow:hidden; background:#e6dcc6;
  box-shadow:0 10px 22px rgba(60,40,20,.22), inset 2px 0 0 rgba(255,255,255,.16);
  transition:transform .18s, box-shadow .18s; }
.fan-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
.fan-item:hover .fan-cover { transform:translateY(-7px); box-shadow:0 18px 32px rgba(60,40,20,.3); }
.fan-item:nth-child(2):nth-last-child(2) { transform:translateY(-12px); }
.fan-title { margin-top:10px; font-size:13px; line-height:1.4; font-weight:600; color:#3d3226;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.fan-author { font-size:11.5px; color:var(--muted); margin-top:2px; }
.fan-stat { font-size:11px; color:#a2601f; margin-top:4px; }
.rank-note { text-align:center; font-size:11.5px; color:var(--muted); margin:12px 0 0; }

/* 三步说明 */
.hero-steps { max-width:1180px; margin:0 auto; padding:0 22px 30px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.step { background:var(--bg); border:1px solid var(--line); border-radius:12px;
  padding:13px 16px; font-size:13.5px; color:#4d453b; line-height:1.65;
  display:flex; gap:10px; align-items:flex-start; }
.step-n { flex:none; width:22px; height:22px; border-radius:50%; background:var(--accent);
  color:#fff; font-size:12px; display:inline-flex; align-items:center;
  justify-content:center; margin-top:1px; }

/* ================= 书单行：最受欢迎 / 最新上架 / 热烈讨论 ================= */
.row-sec { max-width:1180px; margin:0 auto; padding:34px 22px 0; }
.row-head { display:flex; align-items:baseline; gap:12px; margin-bottom:16px;
  border-bottom:1px solid var(--line); padding-bottom:10px; }
.row-head h2 { font-family:"Noto Serif SC","Songti SC",serif; font-size:20px;
  margin:0; color:#3d3226; letter-spacing:1px; }
.row-sub { font-size:12.5px; color:var(--muted); }
.row-more { margin-left:auto; font-size:13px; color:var(--accent); }
.row-more:hover { text-decoration:underline; }
.row-list { display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.row-item { display:flex; flex-direction:column; gap:5px; }
.row-cover { position:relative; display:block; width:100%; height:0; padding-bottom:150%;
  border-radius:4px 9px 9px 4px; overflow:hidden; background:#e6dcc6;
  box-shadow:0 6px 16px rgba(60,40,20,.16); transition:transform .16s, box-shadow .16s; }
.row-item:hover .row-cover { transform:translateY(-5px); box-shadow:0 14px 26px rgba(60,40,20,.24); }
.row-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
.row-title { font-size:13.5px; font-weight:600; line-height:1.4; margin-top:4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.row-author { font-size:12px; color:var(--muted); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.row-meta { font-size:11.5px; color:var(--accent); }
.row-empty { grid-column:1/-1; margin:0; padding:22px; text-align:center;
  color:var(--muted); font-size:13.5px; line-height:1.8;
  background:var(--card); border:1px dashed var(--line); border-radius:12px; }

/* ================= 馆藏书目 ================= */
.shelf { max-width:1180px; margin:0 auto; padding:44px 22px 64px; scroll-margin-top:64px; }
.shelf-head { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; }
.shelf-head h2 { font-family:"Noto Serif SC","Songti SC",serif; font-size:22px;
  margin:0; color:#3d3226; letter-spacing:1px; }
.shelf-count { margin-left:auto; font-size:12.5px; color:var(--muted); }
.cat-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.chip { display:inline-flex; align-items:center; gap:5px; border:1px solid var(--line);
  background:var(--card); color:#4d453b; padding:6px 13px; border-radius:999px; font-size:13px;
  cursor:pointer; font-family:inherit; transition:all .15s; }
.chip em { font-style:normal; color:var(--muted); font-size:11.5px; }
.chip:hover { border-color:var(--accent); color:var(--accent); }
.chip.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.chip.active em { color:rgba(255,255,255,.75); }
.shelf-more { display:flex; justify-content:center; margin-top:28px; }
.shelf-more .btn { display:inline-block; padding:11px 26px; border-radius:999px;
  background:var(--accent); border:1px solid var(--accent); color:#fff; font-size:14.5px;
  transition:background .15s; }
.shelf-more .btn:hover { background:#774d24; border-color:#774d24; }

.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(178px, 1fr)); gap:24px 18px; }
.card { display:flex; flex-direction:column; gap:5px; }
.card-cover { position:relative; display:block; width:100%; height:0; padding-bottom:150%;
  border-radius:4px 9px 9px 4px; overflow:hidden; background:#e6dcc6;
  box-shadow:0 5px 14px rgba(60,40,20,.14); transition:transform .15s, box-shadow .15s; }
.card:hover .card-cover { transform:translateY(-5px); box-shadow:0 14px 26px rgba(60,40,20,.22); }
.card-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }

/* ---- 书脊 / 书口：平面封面加一层立体，看起来才"是一本书" ---- */
.card-cover, .row-cover, .fan-cover, .bk-cover { position:relative; }
.card-cover::after, .row-cover::after, .fan-cover::after, .bk-cover::after {
  content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:
    linear-gradient(90deg, rgba(0,0,0,.46) 0, rgba(0,0,0,.20) 6px,
                    rgba(255,255,255,.30) 7px, rgba(255,255,255,.06) 10px,
                    rgba(255,255,255,0) 16px),
    linear-gradient(180deg, rgba(255,255,255,.07) 0, rgba(255,255,255,0) 20%,
                    rgba(0,0,0,.13) 100%);
  box-shadow: inset -2px 0 0 rgba(250,244,228,.62),
              inset 0 -2px 0 rgba(250,244,228,.42),
              inset -8px 0 10px rgba(0,0,0,.13);
}
.card-title { font-size:14px; font-weight:600; line-height:1.4; margin-top:4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-author { font-size:12px; color:var(--muted); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.card-tag { font-size:11.5px; color:var(--accent); }
.card-tag.is-done { color:#2f7d4f; }
.card-tag.is-done::before { content:"● "; }
.card-tag.is-part { color:#d97706; }
.card-tag.is-part::before { content:"◐ "; }
.card-tag.is-todo { color:#8a7a4e; }
.card-tag.is-todo::before { content:"○ "; }
.grid-empty { grid-column:1/-1; text-align:center; color:var(--muted); font-size:14px; padding:40px 0; }

/* ================= 页脚 / 关于 ================= */
.site-foot { text-align:center; padding:32px 20px; color:var(--muted); font-size:13px;
  border-top:1px solid var(--line); }
.site-foot a { color:var(--accent); }

.about-wrap { max-width:760px; margin:0 auto; padding:40px 20px; line-height:1.8; }
.about-wrap h1 { color:var(--accent); }
.about-wrap h2 { margin-top:1.6em; color:var(--accent); }
.about-wrap .muted { color:var(--muted); font-size:13px; }
.about-wrap .about-list { margin:.6em 0 1em; padding-left:1.25em; }
.about-wrap .about-list li { margin:.35em 0; }
.about-wrap .mail-addr { font-weight:600; }
.about-top { max-width:900px; }

/* ================= 登录 / 注册页 ================= */
/* 这三页现在也带全站页头，表单居中放在它下面 */
.auth-stage { min-height:56vh; }
.auth-wrap { max-width:380px; width:calc(100% - 32px); box-sizing:border-box;
  margin:6vh auto 8vh; padding:28px 26px; background:var(--card);
  border:1px solid var(--line); border-radius:14px; }
.auth-logo { display:block; margin:0 auto 10px; }
.auth-wrap h1 { margin:0 0 18px; color:var(--accent); text-align:center; }
.auth-wrap label { display:block; margin-bottom:14px; font-size:14px; color:var(--muted); }
.auth-wrap input { width:100%; margin-top:6px; padding:10px 12px; border:1px solid var(--line);
  border-radius:8px; font-size:15px; background:#fff; color:var(--fg); }
.auth-wrap .btn { width:100%; background:var(--accent); border:none; color:#fff; padding:11px;
  border-radius:8px; cursor:pointer; font-size:15px; margin-top:4px; }
.auth-wrap .msg { color:#b23b3b; font-size:13px; min-height:1em; }
.auth-wrap .muted { color:var(--muted); font-size:13px; text-align:center; margin-top:14px; }
.auth-wrap a { color:var(--accent); }
.auth-lead { margin:-10px 0 16px; font-size:13px; color:var(--muted); text-align:center; line-height:1.7; }
.auth-lead b { color:var(--accent); }

/* 注册人机验证 */
.cap-block { margin:0 0 16px; }
.cap-q { display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:13.5px; color:var(--fg); margin-bottom:9px; }
.cap-q button { border:none; background:none; color:var(--accent); font-size:13px;
  cursor:pointer; padding:0; font-family:inherit; }
.cap-grid { position:relative; width:194px; margin:0 auto; }
.cap-grid img { display:block; width:194px; height:194px; border-radius:9px; }
.cap-cells { position:absolute; left:8px; top:8px; width:178px; height:178px;
  display:grid; grid-template-columns:repeat(3,54px); grid-template-rows:repeat(3,54px); gap:8px; }
.cap-cells button { border:2px solid transparent; background:transparent; border-radius:8px;
  padding:0; cursor:pointer; transition:background .12s,border-color .12s; }
.cap-cells button:hover { background:rgba(138,90,43,.08); }
.cap-cells button.sel { border-color:var(--accent); background:rgba(138,90,43,.16); }
.cap-tip { margin:9px 0 0; font-size:12px; color:var(--muted); text-align:center; line-height:1.6; }
.cap-row { display:flex; gap:8px; margin-top:6px; }
.cap-row input { flex:1; margin-top:0 !important; letter-spacing:2px; }
.cap-row button { flex:none; padding:0 14px; border:1px solid var(--accent); border-radius:8px;
  background:transparent; color:var(--accent); font-size:13.5px; cursor:pointer; font-family:inherit; }
.cap-row button:disabled { border-color:var(--line); color:var(--muted); cursor:default; }

/* ================= 弹窗登录 ================= */
body.auth-open { overflow:hidden; }
.auth-modal { position:fixed; inset:0; background:rgba(20,16,10,.5); z-index:200;   /* 要盖在正文页的修订弹窗(120)之上 */
  display:flex; align-items:center; justify-content:center; padding:20px; }
/* 弹窗顶部那句「为什么要登录」的说明 */
.auth-notice { margin:0 0 12px; padding:9px 12px; border-radius:9px; font-size:13px;
  line-height:1.6; background:#fdf6e6; border:1px solid #ecd9b0; color:#7a5c22; }

.auth-card { position:relative; width:min(400px, 94vw); max-height:92vh; overflow:auto;
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:26px 24px 22px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.auth-card h2 { margin:0 0 16px; color:var(--accent); font-size:20px; text-align:center; }
.auth-close { position:absolute; top:10px; right:12px; border:none; background:transparent;
  font-size:24px; line-height:1; color:var(--muted); cursor:pointer; }
.auth-view input { width:100%; margin-bottom:12px; padding:11px 13px; border:1px solid var(--line);
  border-radius:9px; font-size:15px; background:#fff; color:var(--fg); outline:none; }
.auth-view input:focus { border-color:var(--accent); }
.auth-primary { width:100%; background:var(--accent); border:none; color:#fff; padding:11px;
  border-radius:9px; cursor:pointer; font-size:15px; }
.auth-links { display:flex; justify-content:space-between; margin-top:14px; font-size:13px; }
.auth-links a { color:var(--accent); }
.auth-err { color:#b23b3b; font-size:13px; min-height:1.1em; margin-bottom:6px; }
.auth-hint { color:var(--muted); font-size:13px; margin:0 0 12px; }
.auth-dev { margin-top:12px; padding:10px 12px; background:#fbf6ea; border:1px dashed var(--line);
  border-radius:8px; font-size:12px; word-break:break-all; color:var(--muted); }
.auth-dev a { color:var(--accent); }

/* ================= 重置密码页 ================= */
.reset-wrap { max-width:420px; }
.reset-wrap input { width:100%; padding:11px 13px; border:1px solid var(--line);
  border-radius:9px; font-size:15px; margin-bottom:12px; }
.reset-wrap .btn { background:var(--accent); color:#fff; border:none; padding:11px 20px;
  border-radius:9px; cursor:pointer; font-size:15px; }

.linkbtn { background:none; border:none; color:var(--accent); cursor:pointer; padding:0; font-size:inherit; }

/* 保证 hidden 属性生效（避免 display:flex 覆盖导致弹窗常显） */
[hidden] { display:none !important; }

/* ================= 响应式 ================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns:1fr; gap:34px; padding-top:34px; }
  .hero-right { order:2; max-width:560px; margin:0 auto; width:100%; }
  .hero-steps { grid-template-columns:1fr; }
  .row-list { grid-template-columns:repeat(3,1fr); }
  .row-head { flex-wrap:wrap; }
}
@media (max-width: 620px) {
  .site-top { padding:12px 16px; }
  .brand-mark { width:34px; height:34px; }
  .brand-txt strong { font-size:19px; }
  .brand-txt em { font-size:8.5px; letter-spacing:0; }
  .brand-ribbon { display:none; }
  .authbar .btn { padding:5px 12px; font-size:13px; }
  .site-nav { padding-left:10px; padding-right:10px; }
  .site-nav a { padding:10px 9px; font-size:13.5px; }
  .hero-inner { padding:26px 16px 26px; }
  .hero-lead { font-size:14.5px; }
  .hero-steps { padding:0 16px 24px; }
  .row-sec { padding:26px 16px 0; }
  .row-list { grid-template-columns:repeat(2,1fr); gap:14px; }
  .row-head h2 { font-size:18px; }
  .shelf { padding:32px 16px 52px; }
  .grid { grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:18px 12px; }
  .book-fan { gap:10px; }
  .fan-item { max-width:100px; }
  .fan-stat { display:none; }
  .rank-sub { display:none; }
}

/* ================= 参与校译（join.html） ================= */
.join-wrap { max-width:960px; margin:0 auto; padding:0 22px 72px; }
.join-hero { padding:54px 0 6px; text-align:center; }
.join-kicker { margin:0; font-size:12px; letter-spacing:.22em; color:var(--accent); }
.join-hero h1 { margin:14px 0 0; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:38px; line-height:1.44; letter-spacing:.5px; }
.join-hero h1 .hl { color:var(--accent); }
.join-lead { max-width:620px; margin:20px auto 26px; font-size:16px; line-height:2.05; color:#4a443c; }
.join-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.join-page .btn { display:inline-block; padding:11px 22px; border-radius:999px; font-size:15px;
  border:1px solid var(--line); background:transparent; color:inherit; cursor:pointer;
  transition:background .15s, border-color .15s, color .15s; }
.join-page .btn.solid { background:var(--accent); border-color:var(--accent); color:#fff; }
.join-page .btn.solid:hover { background:#774d24; border-color:#774d24; color:#fff; }
.join-page .btn.ghost:hover { border-color:var(--accent); color:var(--accent); }
.join-note { margin:12px 0 0; font-size:12.5px; color:var(--muted); }

.join-sec { margin-top:56px; }
.join-sec h2 { margin:0 0 6px; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:23px; letter-spacing:.3px; }
.join-sub { margin:0 0 20px; color:var(--muted); font-size:14px; }

.join-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.step-card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px 18px; }
.step-num { display:inline-flex; width:26px; height:26px; border-radius:50%; background:var(--accent);
  color:#fff; font-size:13px; align-items:center; justify-content:center; margin-bottom:12px; }
.step-card b { display:block; font-size:16px; margin-bottom:6px; }
.step-card p { margin:0; font-size:13.5px; line-height:1.85; color:var(--muted); }
.join-tip { margin:18px 0 0; padding:14px 18px; background:#fbf6ea; border:1px dashed var(--line);
  border-radius:12px; font-size:14px; color:#5a5247; }

.join-flow { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.flow-item { padding:2px 0 2px 16px; border-left:2px solid var(--line); }
.flow-ico { font-size:19px; }
.flow-item b { display:block; margin:8px 0 6px; font-size:15px; }
.flow-item p { margin:0; font-size:13.5px; line-height:1.85; color:var(--muted); }

/* 翻译生命周期：0 → 0.5 初译 → 打磨 → 定稿（参与校译页） */
.join-lifeline { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  gap:10px; align-items:stretch; }
.life-step { background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:18px 16px; }
.life-arrow { align-self:center; color:var(--muted); font-size:18px; }
.life-tag { display:inline-block; font-size:11px; font-weight:600; padding:2px 9px;
  border-radius:999px; margin-bottom:9px; }
.life-tag.is-zero { background:#f0ece2; color:#8a7a4e; border:1px solid #e3dccb; }
.life-tag.is-half { background:#fdf6ea; color:#d97706; border:1px solid #f3dfc0; }
.life-tag.is-polish { background:#eef4fb; color:#3a6ea5; border:1px solid #d5e4f2; }
.life-tag.is-done { background:#eef7f1; color:#2f7d4f; border:1px solid #cfe3d6; }
.life-step b { display:block; font-size:15px; margin-bottom:6px; }
.life-step p { margin:0; font-size:13px; line-height:1.8; color:var(--muted); }

.join-account { display:grid; grid-template-columns:1.06fr .94fr; gap:40px; align-items:center; }
.account-list { margin:0 0 16px; padding-left:20px; font-size:14px; line-height:2.05; color:#4a443c; }
.account-quote { margin:0 0 20px; padding-left:14px; border-left:3px solid var(--accent);
  font-family:"Noto Serif SC","Songti SC",Georgia,serif; font-size:15px; color:var(--accent); line-height:1.9; }

.me-mock { background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:18px 18px 8px; box-shadow:0 16px 44px rgba(90,54,22,.10); }
.mock-head { font-size:11.5px; letter-spacing:.16em; color:var(--muted); }
.mock-stats { display:flex; gap:18px; margin:8px 0 6px; font-size:12px; color:var(--muted); }
.mock-stats b { font-family:"Noto Serif SC",Georgia,serif; font-size:21px; color:var(--accent); margin-right:3px; }
.mock-row { border-top:1px dashed var(--line); padding:12px 0; }
.mock-title { display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:13px; font-weight:600; }
.mock-badge { font-size:11px; font-weight:400; background:#f6e7c2; color:#7a5a12;
  border-radius:999px; padding:1px 9px; }
.mock-vote { font-size:11.5px; font-weight:400; color:var(--muted); }
.mock-orig { margin-top:6px; font-size:12px; color:var(--muted); }
.mock-mine { margin-top:4px; font-size:13px; color:var(--fg); }

.join-end { margin-top:60px; text-align:center; padding:38px 22px; background:var(--card);
  border:1px solid var(--line); border-radius:18px; }
.join-end h2 { margin:0; font-family:"Noto Serif SC","Songti SC",Georgia,serif; font-size:24px; }
.join-end p { margin:10px 0 22px; color:var(--muted); font-size:15px; line-height:2; }

/* ================= 我的校译（me.html） ================= */
.me-wrap { max-width:900px; margin:0 auto; padding:36px 22px 72px; }
.me-guest { text-align:center; padding:80px 0; }
.me-guest h1 { margin:0 0 10px; font-family:"Noto Serif SC",Georgia,serif; font-size:24px; }
.me-guest p { margin:0 0 24px; color:var(--muted); font-size:14px; }
.me-guest-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.me-page .btn { display:inline-block; padding:10px 20px; border-radius:999px; font-size:14.5px;
  border:1px solid var(--line); background:transparent; color:inherit; cursor:pointer; transition:.15s; }
.me-page .btn.solid { background:var(--accent); border-color:var(--accent); color:#fff; }
.me-page .btn.solid:hover { background:#774d24; border-color:#774d24; }
.me-page .btn.ghost:hover { border-color:var(--accent); color:var(--accent); }

.me-head { display:flex; align-items:center; gap:16px; }
.me-avatar { width:52px; height:52px; border-radius:50%; background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center; flex:none;
  font-family:"Noto Serif SC",Georgia,serif; font-size:22px; }
.me-hello h1 { margin:0; font-family:"Noto Serif SC",Georgia,serif; font-size:20px; font-weight:600; }
.me-hello p { margin:5px 0 0; font-size:12.5px; }
.me-head .me-back { margin-left:auto; flex:none; }

.me-stats { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin:24px 0 26px; }
.me-stats .stat { background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:14px 8px; text-align:center; }
.me-stats .stat b { display:block; font-family:"Noto Serif SC",Georgia,serif; font-size:24px;
  color:var(--accent); line-height:1.2; }
.me-stats .stat span { font-size:12.5px; color:var(--muted); }
.me-stats .stat.accent { background:linear-gradient(180deg,#fdf5e3,#f9edd6); border-color:#ecdcb8; }

.me-reading { margin:0 0 26px; }
.me-reading-title { font-size:14px; font-weight:600; color:var(--fg); margin:0 0 12px; }
.reading-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.reading-item { display:flex; gap:11px; align-items:center; background:var(--card);
  border:1px solid var(--line); border-radius:12px; padding:10px; text-decoration:none;
  color:inherit; transition:border-color .15s, transform .15s; }
.reading-item:hover { border-color:var(--accent); transform:translateY(-2px); }
.reading-cover { width:52px; height:74px; object-fit:cover; border-radius:6px; flex:none;
  background:#e8e5dc; }
.reading-meta { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.reading-title { font-size:13px; font-weight:600; line-height:1.3; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.reading-author { font-size:12px; color:var(--muted); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.reading-bar { height:4px; border-radius:2px; background:var(--line); overflow:hidden; }
.reading-bar i { display:block; height:100%; background:var(--accent); }
.reading-pct { font-size:11px; color:var(--muted); font-style:normal; }

.me-tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.me-tabs .tab { background:none; border:none; padding:9px 14px; font-size:14px; color:var(--muted);
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
.me-tabs .tab.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }

.mc-item { background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:16px 18px; margin-bottom:14px; }
.mc-item.adopted { border-color:#e6d3a4; box-shadow:0 8px 22px rgba(140,101,30,.07); }
.mc-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.mc-book { font-weight:600; font-size:14.5px; }
.mc-book:hover { color:var(--accent); }
.mc-badge { font-size:11.5px; border-radius:999px; padding:2px 9px; }
.mc-badge.adopted { background:#f6e7c2; color:#7a5a12; }
.mc-badge.review { background:#f0ece1; color:var(--muted); }
.mc-badge.pending { background:#fdf0d8; color:#9a6a10; }
.mc-badge.rejected { background:#f7e3e3; color:#a84242; }
.mc-time { margin-left:auto; font-size:12px; color:var(--muted); }
.mc-en { margin-top:10px; padding-left:10px; border-left:2px solid var(--line);
  font-size:12.5px; font-style:italic; color:var(--muted); line-height:1.75; }
.mc-compare { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:12px; }
.mc-col em { font-style:normal; font-size:11.5px; letter-spacing:.08em; color:var(--muted); }
.mc-col p { margin:5px 0 0; font-size:14px; line-height:1.9; }
.mc-col.mine p { color:var(--accent); }
.mc-foot { display:flex; align-items:center; gap:14px; margin-top:12px;
  font-size:12.5px; color:var(--muted); }
.mc-goto { margin-left:auto; color:var(--accent); }
.mc-del { border:none; background:transparent; color:var(--muted); font-size:12.5px;
  cursor:pointer; padding:0; opacity:.7; }
.mc-del:hover { color:#b23b3b; opacity:1; text-decoration:underline; }
.me-empty { text-align:center; padding:44px 0; font-size:14px; color:var(--muted); line-height:2; }
.me-empty a { color:var(--accent); }

/* ================= 响应式（join / me） ================= */
@media (max-width: 820px) {
  .join-steps, .join-flow { grid-template-columns:1fr; }
  .join-flow { gap:16px; }
  .join-account { grid-template-columns:1fr; gap:26px; }
  .join-lifeline { grid-template-columns:1fr; gap:6px; }
  .life-arrow { align-self:center; transform:rotate(90deg); }
  .join-hero h1 { font-size:28px; }
  .join-hero { padding-top:36px; }
  .join-lead { font-size:15px; }
  .me-stats { grid-template-columns:repeat(2,1fr); }
  .mc-compare { grid-template-columns:1fr; gap:10px; }
  .me-head { flex-wrap:wrap; }
  .me-head .me-back { margin-left:0; }
  .mc-time { margin-left:0; }
}

/* ================= 列表页：全部书目 / 分类 / 搜索 ================= */
.listing { max-width:1180px; margin:0 auto; padding:18px 22px 64px; }
.crumb { display:flex; flex-wrap:wrap; align-items:center; gap:7px;
  font-size:12.5px; color:var(--muted); padding:2px 0 14px; }
.crumb a { color:var(--muted); }
.crumb a:hover { color:var(--accent); }
.crumb .sep { opacity:.45; }
.crumb [aria-current] { color:var(--fg); }

.list-head { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap;
  padding-bottom:14px; border-bottom:1px solid var(--line); }
.list-head-main { min-width:0; }
.list-head h1 { margin:0; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:26px; letter-spacing:1px; color:#3d3226; }
.list-lead { margin:9px 0 0; color:var(--muted); font-size:13.5px; line-height:1.85; max-width:62ch; }
.list-lead a { color:var(--accent); }
.list-tools { margin-left:auto; display:flex; gap:10px; align-items:center;
  font-size:13px; color:var(--muted); }
.sort-wrap { display:flex; align-items:center; gap:7px; }
#list-sort, #list-tr-filter { padding:7px 10px; border:1px solid var(--line); border-radius:8px;
  background:var(--card); font-family:inherit; font-size:13px; color:var(--fg); cursor:pointer; }
#list-sort:focus, #list-tr-filter:focus { outline:none; border-color:var(--accent); }
.listing .cat-chips { margin:16px 0 4px; }
.list-count { margin:16px 0 10px; font-size:12.5px; color:var(--muted); }

.book-list { display:flex; flex-direction:column; gap:10px; }
.bk { display:grid; grid-template-columns:74px minmax(0,1fr) auto; gap:16px; align-items:center;
  padding:12px 16px; background:var(--card); border:1px solid var(--line); border-radius:12px;
  transition:border-color .15s, box-shadow .15s, transform .15s; }
.bk:hover { border-color:#d8c9ab; box-shadow:0 12px 28px rgba(90,60,20,.08); }
.bk-cover { position:relative; width:74px; height:0; padding-bottom:111px;
  border-radius:3px 7px 7px 3px; overflow:hidden;
  background:#e6dcc6; box-shadow:0 6px 14px rgba(60,40,20,.18); display:block; }
.bk-cover img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
.bk-main { min-width:0; }
.bk-title { margin:0; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:16.5px; line-height:1.45; font-weight:600; }
.bk-title a:hover { color:var(--accent); }
.bk-author { margin:4px 0 0; font-size:12.5px; color:var(--muted); }
.bk-tags { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; }
.bk-tag { font-size:11px; color:#7a6a52; background:#f6efe2; border:1px solid #eadfc8;
  border-radius:999px; padding:1px 8px; text-decoration:none; }
.bk-tag:hover { background:#efe4cf; color:var(--accent); border-color:var(--accent); }
.bk-side { display:flex; flex-direction:column; align-items:flex-end; gap:5px;
  text-align:right; font-size:12px; color:var(--muted); }
.bk-go { color:var(--accent); font-size:13px; white-space:nowrap; }
.bk-meta.is-done { color:#2f7d4f; }
.bk-meta.is-done::before { content:"● "; }
.bk-meta.is-part { color:#d97706; }
.bk-meta.is-part::before { content:"◐ "; }
.bk-meta.is-todo { color:#8a7a4e; }
.bk-meta.is-todo::before { content:"○ "; }
.bk-go:hover { text-decoration:underline; }
mark { background:#fbe6a8; color:inherit; padding:0 1px; border-radius:2px; }

.list-empty { text-align:center; padding:56px 20px; color:var(--muted); font-size:14px;
  line-height:2; background:var(--card); border:1px dashed var(--line); border-radius:14px; }
.list-empty a { color:var(--accent); }

.pager { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:26px; }
.pg { min-width:36px; height:34px; padding:0 12px; border:1px solid var(--line);
  background:var(--card); border-radius:8px; font-size:13px; color:var(--fg);
  cursor:pointer; font-family:inherit; }
.pg:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
.pg.current { background:var(--accent); border-color:var(--accent); color:#fff; cursor:default; }
.pg:disabled { opacity:.45; cursor:not-allowed; }
.pg-gap { align-self:center; color:var(--muted); font-size:13px; padding:0 2px; }

/* ================= 会员中心：子页签 / 账号 ================= */
.me-panel { display:block; }
.me-subtabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.subtab { padding:6px 13px; border-radius:999px; border:1px solid var(--line);
  background:var(--card); font-size:12.5px; color:var(--muted); cursor:pointer;
  font-family:inherit; }
.subtab:hover { border-color:var(--accent); color:var(--accent); }
.subtab.active { background:#f6efe2; border-color:#e3cfa8; color:var(--accent); font-weight:600; }
.mc-quote { margin-top:10px; padding-left:10px; border-left:2px solid var(--accent);
  font-size:12.5px; color:var(--muted); line-height:1.8; }
.acct-card { background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:22px 20px; }
.acct { display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px 14px; margin:0 0 16px;
  font-size:14px; }
.acct dt { color:var(--muted); font-size:13px; }
.acct dd { margin:0; word-break:break-word; }
.acct-note { margin:0 0 16px; color:var(--muted); font-size:12.5px; line-height:1.85; }
/* 改昵称：默认显示昵称 +「修改」，点开才出现输入框，不占版面 */
.acct-name-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.acct-name-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.acct-name-form input { width:190px; max-width:100%; padding:7px 10px; font-size:14px;
  border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; }
.acct-name-form .btn { padding:6px 12px; font-size:13px; }
.acct-name-hint { color:var(--accent); font-size:12.5px; font-style:normal; }
/* 改密码：默认显示掩码 +「修改」，点开竖排三框（旧/新/确认） */
.acct-pw-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px 10px; }
.acct-pw-form { display:flex; flex-direction:column; align-items:stretch; gap:8px; width:100%; max-width:280px; }
.acct-pw-form input { width:100%; padding:7px 10px; font-size:14px;
  border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; }
.acct-pw-actions { display:flex; align-items:center; gap:8px; }
.acct-pw-actions .btn { padding:6px 12px; font-size:13px; }
@media (max-width:620px) {
  .acct-name-form input { width:100%; }
}

/* ================= 断点：导航抽屉 / 列表 ================= */
@media (max-width: 1100px) {
  .nav-inner { padding:0 16px; }
  .nav-link { padding:11px 9px; font-size:13.5px; }
}
@media (max-width: 980px) {
  .js .nav-toggle { display:grid; place-items:center; }
  .js .site-nav { display:none; position:static; border-top:1px solid var(--line); }
  .js body.nav-open .site-nav { display:block; }
  .nav-inner { flex-direction:column; align-items:stretch; padding:4px 16px 12px; gap:0; }
  .nav-link { padding:13px 4px; font-size:15px; border-bottom:1px solid var(--line);
    justify-content:space-between; }
  .nav-link.active { border-bottom-color:var(--line); color:var(--accent); }
  .nav-count { display:none; }
  .nav-item { display:flex; flex-wrap:wrap; align-items:center; border-bottom:1px solid var(--line); }
  .nav-item .nav-link { flex:1; border-bottom:none; }
  .nav-item .caret { display:none; }
  .nav-caret { display:grid; place-items:center; width:46px; height:46px; border:none;
    background:transparent; color:var(--muted); cursor:pointer; }
  .nav-caret::before { content:""; width:7px; height:7px; border-right:1.6px solid currentColor;
    border-bottom:1.6px solid currentColor; transform:rotate(45deg); transition:transform .18s; }
  .nav-item.open .nav-caret::before { transform:rotate(-135deg); }
  .nav-item .sub-menu { position:static; width:100%; min-width:0; padding:2px 0 12px;
    border:none; box-shadow:none; background:transparent; }
  .nav-item.open .sub-menu { display:block; }
  .sub-inner a { padding:10px 8px; font-size:14px; }
  .search-bar { padding:10px 16px; }
  .list-head h1 { font-size:23px; }
  .list-tools { margin-left:0; width:100%; justify-content:space-between; }
}
@media (max-width: 620px) {
  .site-top { padding:11px 14px; gap:10px; }
  .top-right { gap:6px; }
  .brand-mark { width:34px; height:34px; }
  .brand-txt strong { font-size:19px; }
  .brand-txt em { font-size:8.5px; letter-spacing:0; }
  .authbar .btn { padding:5px 11px; font-size:13px; }
  .authbar .uname, .authbar .btn.me-link { display:none; }
  #search { font-size:14.5px; padding:11px 14px 11px 40px; }
  .search-btn { padding:0 16px; font-size:14px; }
  .listing { padding:14px 14px 52px; }
  .list-head { gap:10px; }
  .list-head h1 { font-size:21px; }
  .list-lead { font-size:13px; }
  .bk { grid-template-columns:60px minmax(0,1fr); gap:12px; padding:11px 12px; }
  .bk-cover { width:60px; }
  .bk-title { font-size:15px; }
  .bk-side { grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between;
    text-align:left; border-top:1px dashed var(--line); padding-top:8px; margin-top:2px; }
  .bk-tags { margin-top:6px; }
  .bk-tag:nth-child(n+3) { display:none; }
  .acct { grid-template-columns:78px minmax(0,1fr); font-size:13.5px; }
  .me-stats { grid-template-columns:repeat(2,1fr); }
}

/* ================= 列表项：简介 + 作者链接 ================= */
/* 作者名是链接，但不抢书名——用浅点线给出「可点」的暗示 */
.bk-author-link { color:var(--muted); border-bottom:1px dotted rgba(0,0,0,.25); }
.bk-author-link:hover { color:var(--accent); border-bottom-color:var(--accent); }
.bk-ex { margin:7px 0 0; font-size:13px; line-height:1.75; color:#5f5749;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bk-ex mark { background:#fbe6a8; }

/* ================= 书籍详情页 ================= */
.detail { max-width:1180px; margin:0 auto; padding:4px 22px 44px; }
.detail .crumb { margin:16px 0 0; }
.detail-top { display:grid; grid-template-columns:236px minmax(0,1fr); gap:34px;
  align-items:start; padding:20px 0 6px; }
.detail-cover { position:relative; border-radius:5px 11px 11px 5px; overflow:hidden;
  background:#e6dcc6; box-shadow:0 16px 36px rgba(60,40,20,.22); }
.detail-cover img { display:block; width:100%; height:auto; }
.detail-cover::after { content:""; position:absolute; inset:0; pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(0,0,0,.44) 0, rgba(0,0,0,.16) 8px,
             rgba(255,255,255,.26) 9px, rgba(255,255,255,.04) 13px, rgba(255,255,255,0) 20px),
             linear-gradient(180deg, rgba(255,255,255,.06) 0, rgba(0,0,0,.12) 100%); }
.detail-main h1 { margin:0; font-family:"Noto Serif SC","Songti SC",Georgia,serif;
  font-size:29px; line-height:1.32; }
.detail-sub { margin:7px 0 0; color:var(--muted); font-size:14px; }
.detail-author { margin:13px 0 0; font-size:15px; }
.detail-author a { color:var(--accent); font-weight:600; }
.detail-author a:hover { text-decoration:underline; }
.detail-author-en { color:var(--muted); font-size:13px; margin-left:6px; }
.detail-tags { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:15px 0 0; }
.dtag { font-size:11.5px; padding:2px 9px; border-radius:999px;
  border:1px solid var(--line); background:#f6efe2; color:#7a6a52; }
.dtag.is-done { color:#2f7d4f; border-color:#cfe3d6; background:#eef7f1; }
.dtag.is-part { color:#d97706; border-color:#f3dfc0; background:#fdf6ea; }
.dtag.is-todo { color:#8a7a4e; }
/* 「多少章」计数标签：中性虚线，跟「已译」状态标签、可点击的主题标签区分开 */
.dtag.is-count { color:var(--muted); background:transparent; border:1px dashed var(--line); }
/* 主题标签：点了进「同标签书目列表」 */
a.dtag-link { cursor:pointer; transition:border-color .15s, color .15s, background .15s; }
a.dtag-link:hover { border-color:var(--accent); color:var(--accent); background:#fdf6ea; }
.tag-banner { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  margin:0 0 14px; padding:10px 14px; background:var(--card); border:1px solid var(--line);
  border-radius:12px; font-size:13.5px; color:#5f5749; }
.tag-banner b { color:var(--accent); }
.tag-banner a { color:var(--accent); font-size:12.5px; }
.detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0 0; }
.detail-actions .btn { display:inline-block; padding:9px 20px; border-radius:999px;
  font-size:14px; border:1px solid var(--line); background:var(--card); color:var(--fg); }
.detail-actions .btn.solid { background:var(--accent); border-color:var(--accent); color:#fff; }
.detail-actions .btn.solid:hover { background:#774d24; border-color:#774d24; }
.detail-actions .btn.ghost:hover { border-color:var(--accent); color:var(--accent); }
.detail-links { margin:16px 0 0; font-size:12.5px; color:var(--muted); line-height:2; }
.detail-links a { color:var(--accent); }
.detail-links a:hover { text-decoration:underline; }
.detail-sec { margin-top:34px; }
.detail-sec h2 { margin:0 0 12px; padding-left:10px; border-left:3px solid var(--accent);
  font-family:"Noto Serif SC","Songti SC",Georgia,serif; font-size:17px; font-weight:600; }
.detail-count { margin-left:6px; font-size:12px; font-weight:400; color:var(--muted); }
.detail-summary { margin:0; font-size:15px; line-height:2; }
.detail-summary.is-en { color:#4a453c; }
.detail-note { margin:0 0 8px; color:var(--muted); font-size:12.5px; line-height:1.8; }
.detail-meta { width:100%; border-collapse:collapse; font-size:13.5px;
  background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.detail-meta td .detail-note { display:inline; margin-left:6px; font-size:12px; }
.detail-meta th { width:132px; padding:9px 14px; text-align:left; vertical-align:top;
  font-weight:400; color:var(--muted); background:#faf6ee; border-bottom:1px solid var(--line); }
.detail-meta td { padding:9px 14px; border-bottom:1px solid var(--line); line-height:1.75; }
.detail-meta tr:last-child th, .detail-meta tr:last-child td { border-bottom:0; }
.detail-toc { columns:2; column-gap:34px; margin:0; padding-left:20px;
  font-size:14px; line-height:2.1; }
.detail-toc a { color:var(--fg); }
.detail-toc a:hover { color:var(--accent); }
.author-grid { margin-top:10px; }

@media (max-width:760px) {
  .detail { padding:0 16px 32px; }
  .detail-top { grid-template-columns:108px minmax(0,1fr); gap:16px; padding-top:14px; }
  .detail-main h1 { font-size:21px; }
  .detail-sub { font-size:12.5px; }
  .detail-actions .btn { padding:8px 14px; font-size:13.5px; }
  .detail-toc { columns:1; }
  .detail-meta th { width:92px; padding:8px 10px; }
  .detail-meta td { padding:8px 10px; font-size:13px; }
  .bk-ex { -webkit-line-clamp:2; font-size:12.5px; }
}
