:root {
  --bg: #f3efe7;
  --paper: #fffdf8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5dccd;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b45309;
  --chip: #eef9f7;
  --rank: #fff5e6;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  background:
    radial-gradient(1000px 420px at 0 -10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(900px 520px at 100% 0, #ffedd5 0%, transparent 50%),
    var(--bg);
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 18px 14px 36px; }

.top {
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
}
.top-1 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { margin: 0; font-size: 20px; letter-spacing: 1px; }
.logo small, .latest small { font-size: 13px; color: var(--muted); margin-left: 8px; }
.latest small { color: var(--accent); }
.top-links {
  display: flex;
  gap: 8px 10px;
  font-size: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: #475569;
  line-height: 1.7;
}
.top-links em {
  color: #b45309;
  font-style: normal;
  font-weight: 700;
  background: #fff4d9;
  border: 1px solid #f2d8a5;
  border-radius: 999px;
  padding: 1px 8px;
}
.top-links > a,
.top-links .blue,
.top-links .green {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.top-links .strong {
  font-weight: 700;
}
.top-links > a:hover,
.top-links .blue:hover,
.top-links .green:hover {
  background: transparent;
  border-color: transparent;
  color: #0b5f58;
  text-decoration: none;
  transform: none;
}

.search {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
}
.search input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 13px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search input:hover {
  border-color: #d6c6ad;
}
.search input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.search input::selection {
  background: rgba(15, 118, 110, 0.22);
  color: inherit;
}
.search button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,var(--brand),var(--brand-dark));
  color: #fff;
  padding: 3px 0;
  font-size: 15px;
  cursor: pointer;
}

.nav-main, .nav-sub { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.nav-main a, .nav-sub a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}
.nav-main a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed #d1c7b5;
  border-radius: 12px;
  background: #fff7ea;
  font-size: 13px;
}

.hero {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(15,118,110,.12), rgba(180,83,9,.12));
  padding: 18px;
}

.kpi {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.kpi .item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.kpi .num { font-size: 22px; color: var(--brand-dark); font-weight: bold; line-height: 1.2; }
.kpi .txt { font-size: 12px; color: var(--muted); }

.layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 14px;
}
.layout > section,
.layout > aside {
  min-width: 0;
  max-width: 100%;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.panel h3 {
  margin: 0;
  border-bottom: 1px solid rgba(255, 214, 224, 0.28);
  font-size: 18px;
}
.body { padding: 12px 14px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.new {
	color:#F03;
}
.old {
  color: #999;
}
.book {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  overflow: hidden;
}

.book a:hover {
	color:#09B295;
	text-decoration:none
}
 
.book img {
  width: 88px;
  height: 122px;
  object-fit: cover;
  border-radius: 8px;
  float: left;
  margin-right: 10px;
}
.book h4 { margin: 0; font-size: 15px; line-height: 1.4; }

.book .desc {
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.55;
}
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.meta small { font-size: inherit; }
.meta a { color: #AE8F00; font-size: inherit; text-decoration: none; }
.meta a:hover { color: #EAC100; text-decoration: none; }
.badge {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
}

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding: 7px 0;
}
.lines li:last-child { border-bottom: 0; }
.date { color: var(--muted); font-size: 12px; white-space: nowrap; }

.lines-books li {
  align-items: center;
  padding: 9px 0;
}
.lines-books .line-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.lines-books .cat {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  color: #0f766e;
  background: #e8f7f4;
  border: 1px solid #b9e3dc;
  border-radius: 999px;
  padding: 4px 8px;
}
.lines-books .line-main > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lines-books .author {
  flex: 0 0 auto;
  font-size: 12px;
  color: #64748b;
}
.lines-books .date {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: left;
}

.rank { background: var(--rank); }
.rank .no {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  font-weight: bold;
  color: #9a3412;
}
.rank .lines li{
  justify-content:flex-start;
}
.rank .lines li > a{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank .lines .no{
  margin-right:4px;
  flex:0 0 auto;
}
.rank .lines .date{
  margin-left:auto;
  text-align:right;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  border: 1px solid #cae8e3;
  background: var(--chip);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}
/* 会员头像调用 */
.today-qd-users{margin:0;padding:12px 13px 8px 16px;border:1px solid #e8dcc7;border-radius:12px;background:#fffdf8;}
.today-qd-users h3{margin:0 0 10px;font-size:16px;color:#2d4a40;}
.qd-user-list{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
  }

  .qd-user-list li a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:4px;
    padding:0;
    /*border:1px solid #eee2cf;*/
    border-radius:12px;
    background:#fff;
    text-decoration:none;
  }

  .qd-user-list li a:hover{border-color:#d8b06a;}

  .qd-user-list img{
    width:54px;
    height:54px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #f0dfbf;
    background:#f7f7f7;
  }

  .qd-user-list span{
    display:block;
    width:100%;
    text-align:center;
    font-size:13px;
    line-height:1.35;
    color:#3d4b52;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  @media (max-width:900px){
    .qd-user-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  }
  @media (max-width:560px){
    .qd-user-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  }
/* 筛选css */
    .saixuan {
      margin: 12px 14px 0;
      padding: 12px 14px;
      border: 1px solid #ead7bc;
      border-radius: 12px;
      background: linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    .saixuan dl {
      margin: 0;
      padding: 8px 0;
      display: flex;
      align-items: flex-start;
      border-top: 1px dashed #e8d7bf;
    }
    .saixuan dl:first-child {
      padding-top: 0;
      border-top: 0;
    }
    .saixuan dl:last-child {
      padding-bottom: 0;
    }
    .saixuan dt {
      flex: 0 0 84px;
      margin: 0;
      color: #7b664a;
      font-size: 13px;
      line-height: 30px;
      font-weight: 700;
    }
    .saixuan dd {
      margin: 0;
      min-width: 0;
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .saixuan dd a {
      display: inline-block;
      padding: 5px 11px;
      border: 1px solid #e9dcc8;
      border-radius: 999px;
      background: #fff;
      color: #5a4b3a;
      font-size: 13px;
      line-height: 1.35;
      text-decoration: none;
      transition: all .18s ease;
    }
    .saixuan dd a:hover {
      border-color: #2f7d6a;
      color: #195848;
      background: #f3fbf8;
      text-decoration: none;
    }
    .saixuan dd a.selected {
      border-color: #0f6a57;
      background: linear-gradient(180deg, #1f8a72 0%, #0f6a57 100%);
      color: #fff;
      font-weight: 700;
      box-shadow: 0 4px 10px rgba(15, 106, 87, 0.22);
    }
    .saixuan dd a.selected:hover {
      border-color: #0a5a49;
      background: linear-gradient(180deg, #167a65 0%, #0a5a49 100%);
      color: #fff;
    }
    @media (max-width: 680px) {
      .saixuan {
        margin: 10px 10px 0;
        padding: 10px;
        border-radius: 10px;
      }
      .saixuan dl {
        display: block;
        padding: 8px 0;
      }
      .saixuan dt {
        line-height: 1.45;
        margin-bottom: 6px;
      }
      .saixuan dd {
        gap: 7px;
      }
      .saixuan dd a {
        padding: 5px 10px;
        font-size: 12px;
      }
    }


.filters { margin: 8px 0 2px; }
.filters .row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  background: #fff;
}
.filters a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.desc {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ece2d2;
  background: #fff;
  color: #374151;
  font-size: 14px;
}

.desc > .topic-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.desc > .topic-link strong {
  color: var(--brand-dark);
}
.desc:hover {
  border-color: #d8c9b0;
  background: #fffaf1;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}
.desc:hover > .topic-link strong {
  color: var(--brand);
  text-decoration: underline;
}

.page-info .panel .body .tips{
  position:relative;
  margin-top:12px;
  padding:12px 14px 12px 44px;
  border:2px dashed #efd3bb;
  border-radius:10px;
  background:linear-gradient(180deg,#fffdf9 0%,#fff8f1 100%);
  color:#8b4a22;
  line-height:1.8;
  font-size:13px;
}
.page-info .panel .body .tips::before{
  content:"TIP";
  position:absolute;
  left:12px;
  top:24px;
  transform:translateY(-50%);
  display:inline-block;
  padding:1px 6px;
  border-radius:999px;
  background:#d86a2f;
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
  line-height:16px;
}
.page-info .intro-panel{
  --intro-fade-color: #fff;     /* override per-theme by setting on .intro-panel */
}
.page-info .intro-panel .desc{
  font-size:15px;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  position:relative;
  overflow:hidden;
  transition: max-height .28s ease;
}
.page-info .intro-panel .desc:hover{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.page-info .intro-panel .desc.collapsed{
  max-height:420px;
  padding-bottom:30px;       /* room for the fade tail only when collapsed */
}
.page-info .intro-panel .desc.collapsed::after{
  background:linear-gradient(to bottom, transparent, var(--intro-fade-color, #fff) 92%);
}
.page-info .intro-panel .intro-more-tail{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#8b4a22;
  font-size:13px;
  line-height:1.7;
  position:absolute;
  right:0;
  bottom:0;
  z-index:3;
  padding:6px 10px 6px 28px;
  cursor:pointer;
  background:linear-gradient(
    to right,
    transparent,
    var(--intro-fade-color, #fff) 30%,
    var(--intro-fade-color, #fff) 100%
  );
}
.page-info .intro-panel .intro-more-tail:hover .intro-more-btn{ color:#d6766d; }
.page-info .intro-panel .intro-more-btn{
  border:0;
  background:transparent;
  color:#e78e8f;
  padding:0;
  line-height:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.page-info .intro-panel .intro-more-btn:focus-visible{
  outline:2px solid #f59e0b;
  outline-offset:2px;
  border-radius:3px;
}
.page-info .intro-panel .intro-more-btn:hover,
.page-info .intro-panel .intro-more-btn:visited{
  color:#d6766d;
  text-decoration:none;
}
.page-info .intro-panel .intro-more-chev{
  font-size:10px;
  line-height:1;
  transition: transform .2s ease;
  display:inline-block;
}
.page-info .intro-panel .desc:not(.collapsed) .intro-more-tail{
  background:transparent;          /* expanded: no fade behind the button */
  position:static;
  display:flex;
  justify-content:flex-end;
  padding:6px 10px 0 0;
}
@media (prefers-reduced-motion: reduce){
  .page-info .intro-panel .desc{ transition:none; }
  .page-info .intro-panel .intro-more-chev{ transition:none; }
}
.page-info .detail .kv{
  min-width:0;
}
.page-info .detail .author-side{
  position:static;
  width:235px;
  padding:10px 12px;
  border:1px dashed #d6b89d;
  border-radius:10px;
  background:#fff8f2;
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:8px;
  row-gap:4px;
  align-items:center;
}
.page-info .detail .author-side h4{
  margin:0 0 6px;
  font-size:13px;
  color:#965a31;
  grid-column:1 / -1;
}
.page-info .detail .author-side .classname{
  font-size:13px;
  line-height:1.7;
  color:#965a31;
  white-space:nowrap;
}
.page-info .detail .author-side a{
  display:block;
  line-height:1.7;
  font-size:13px;
  color:#915127;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.page-info .detail .author-side a:hover{
  color:#c4551f;
  text-decoration:underline;
}

.detail {
  display: grid;
  grid-template-columns: 122px minmax(0,1fr) 235px;
  gap: 14px;
  align-items:start;
}
.detail .pic{
  padding: 6px 0 0 0;
  grid-column:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  align-self:start;
}
.detail .kv{
  grid-column:2;
  align-self:start;
}
.detail .author-side{
  grid-column:3;
}
.detail img {
  width: 112px;
  height: 148px;
  object-fit: cover;
  display:block;
  border-radius: 0;
  border: 1px solid #d1d5db;
  padding: 1px;
  background:#fff;
}
.kv p { margin:0 0 4px 4px; }
.kv a:hover {
	color:#09B295;
	text-decoration:none
}
.sfwj {
    background: #09B295;
    border-radius: 9px;
    color: #fff;
    padding: 1px 8px 3px 6px;
}

.download-box {
  border: 1px solid #bfe2dc;
  border-radius: 12px;
  background: #f2fbf9;
  padding: 12px;
}
.download-box .download-head{
  display:grid;
  grid-template-columns:124px 1fr;
  gap:14px;
  align-items:start;
}
.download-box .download-meta p{
  margin:6px 0;
  color:#6b7280;
}
.download-box .download-meta p strong{
  color:#374151;
}
.download-box .download-cover{
  order:1;
  justify-self:start;
}
.download-box .download-meta{
  order:2;
}
.download-box .download-cover img{
  display:block;
  width:124px;
  height:168px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #cfe3dd;
  box-shadow:0 8px 16px rgba(15,23,42,.12);
}
.download-box .download-links{
  margin:10px 0 0;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.download-box .download-links a{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #c8ddd7;
  background:#ffffff;
  color:#165f50;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.download-box .download-links a:hover{
  background:#eef9f6;
  border-color:#9ccdc2;
  text-decoration:none;
  transform:translateY(-1px);
}
.download-box .download-links .link-sep{
  color:#7f9d95;
}

.download-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:184px;
      margin:0 10px 10px 0;
      border-radius:12px;
      padding:11px 16px;
      color:#fff !important;
      text-decoration:none;
      font-weight:700;
      background:linear-gradient(135deg,#da5627,#b13e18);
      box-shadow:0 10px 18px rgba(184,70,29,.24);
      transition:background .2s ease, box-shadow .2s ease;
    }

.download-btn:hover{
  text-decoration:none;
  background:linear-gradient(135deg,#c94a20,#9e350f);
  box-shadow:0 12px 20px rgba(184,70,29,.3);
}

.download-box .download_1,
.download-box .download_2{
  display:block;
  margin:10px 0 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
  text-decoration:none;
  box-shadow:0 8px 16px rgba(15,23,42,.08);
  transition:filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.download-box .download_1{
  color:#6a4300;
  border-color:#efd78a;
  background:linear-gradient(135deg,#fff7d6,#ffe4a3);
}
.download-box .download_2{
  color:#0f5132;
  border-color:#9fdbbd;
  background:linear-gradient(135deg,#e9faef,#c9f0d9);
}
.download-box .download_1:hover,
.download-box .download_2:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
  text-decoration:none;
  box-shadow:0 12px 20px rgba(15,23,42,.12);
}

.qa { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.qa p { margin: 6px 0; }

.pager { margin-top: 14px; display: flex; gap: 3px; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 5px;
  line-height: 1;
  height: 30px;
  text-decoration: none;
}
.pager a:hover {
  background: #f3ede1;
  text-decoration: none;
}
.pager > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 5px 9px;
  line-height: 1;
  height: 30px;
  font-weight: 700;
  vertical-align: middle;
}
.pager span { background: var(--brand); border-color: var(--brand); color: #fff; }

.foot {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .kpi { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px){
  .detail{
    grid-template-columns:102px minmax(0,1fr) 200px;
    gap:10px;
  }
  .page-info .detail .author-side{
    width:200px;
  }
}
@media (max-width: 680px) {
  .logo { font-size: 20px; }
  .search { grid-template-columns: 1fr; }
  .page-info .detail {
    grid-template-columns:84px minmax(0,1fr);
    grid-template-areas:
      "pic kv"
      "author author";
    gap:8px;
  }
  .page-info .detail .pic{
    grid-area:pic;
  }
  .page-info .detail .kv{
    grid-area:kv;
  }
  .page-info .detail .author-side{
    grid-area:author;
    width:auto;
    margin-top:6px;
    padding:7px 8px;
  }
  .detail {
    grid-template-columns:84px minmax(0,1fr) 160px;
    gap:8px;
  }
  .detail img{
    width:84px;
    height:115px;
  }
  .page-info .detail .author-side .classname,
  .page-info .detail .author-side a{
    font-size:12px;
    line-height:1.5;
  }
  .download-box .download-head{
    grid-template-columns:96px 1fr;
    gap:10px;
  }
  .download-box .download-cover{
    order:1;
    justify-self:start;
  }
  .download-box .download-meta{
    order:2;
  }
  .download-box .download-cover img{
    width:96px;
    height:132px;
  }
  .download-box .download-links{
    gap:6px;
  }
  .download-box .download-links a{
    padding:5px 10px;
    font-size:12px;
  }
}

.search-history { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-history a {
  font-size: 12px;
  color: #0f766e;
  background: #edf9f6;
  border: 1px solid #c8e8e2;
  border-radius: 999px;
  padding: 3px 10px;
}

.functional-bar { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.functional-bar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.float-tools {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-tools button {
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(15,118,110,.28);
  cursor: pointer;
}

.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.copy-btn {
  border: 1px solid #b8ddd6;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  color: #0f766e;
  cursor: pointer;
}

.copy-btn:hover {
  background: #e5fcfa;
  color: #0f766e;
  text-decoration:none;
  cursor: pointer;
}

.fav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  white-space:nowrap;
  align-self:center;
}

.desc.collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.desc.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}


.checkin { background: #f7fbff; }
.checkin-list { list-style: none; margin: 0; padding: 0; }
.checkin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.checkin-list li:last-child { border-bottom: 0; }
.checkin-list .user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.checkin-list img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dbe7f3; object-fit: cover; }
.checkin-list .name { font-size: 13px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-list .times { font-size: 12px; color: #64748b; white-space: nowrap; }

body { padding-top: 58px; }

.top-float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(110, 28, 43, 0.68);
  border-bottom: 1px solid rgba(255, 214, 224, 0.28);
  backdrop-filter: blur(12px) saturate(145%);
  box-shadow: 0 8px 24px rgba(60, 10, 20, 0.28);
}
.top-float-inner {
  width: 100%;
  margin: 0 auto;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.top-float .site {
  font-size: 18px;
  font-weight: 700;
  color: #dbe7f3;
  white-space: nowrap;
}
.top-float-nav {
  display: flex;
  gap: 5px;
  flex: 0 1 auto;
  justify-content: center;
  overflow: visible;
  white-space: nowrap;
}
.nav-more-wrap {
  position: relative;
  display: none;
  align-items: center;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.nav-more-btn:hover,
.nav-more-wrap.open .nav-more-btn,
.nav-more-btn.has-active {
  background: rgba(255, 255, 255, 0.28);
}
.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5ddd0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  display: none;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 6px;
  z-index: 1350;
}
.nav-more-wrap.open .nav-more-menu {
  display: grid;
}
.nav-more-menu a,
.nav-more-menu a:hover,
.nav-more-menu a:focus {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #faf7f2;
  color: #2b2622;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.nav-more-menu a:hover,
.nav-more-menu a.active,
.nav-more-menu a.active:hover {
  background: #0f766e;
  color: #ffffff;
}
html[data-theme="dark"] .nav-more-menu {
  background: #23272c;
  border-color: #3a3f46;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .nav-more-menu a,
html[data-theme="dark"] .nav-more-menu a:focus {
  background: #2c3036;
  color: #e5e7eb;
}
html[data-theme="dark"] .nav-more-menu a:hover,
html[data-theme="dark"] .nav-more-menu a.active,
html[data-theme="dark"] .nav-more-menu a.active:hover {
  background: #2c8378;
  color: #ffffff;
}
.top-float-nav a {
  display: inline-block;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  background: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.top-float-auth {
  display: flex;
  gap: 10px;
  margin-left: 4px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  body { padding-top: 54px; }
  .top-float-inner { gap: 8px; padding: 7px 10px; }
  .top-float .site { font-size: 15px; }
  .top-float-nav a { font-size: 12px; padding: 7px 8px; }
  .top-float-auth a { font-size: 12px; padding: 7px 8px; }
}

/* top-float link square */
.top-float-nav a,
.top-float-auth a {
  border-radius: 0;
}

/* top-float hover-only background */
.top-float-nav a,
.top-float-auth a {
  background: transparent;
  box-shadow: none;
}

/* top-float no-border light-hover */
.top-float-nav a,
.top-float-auth a {
  border: 0;
  border-color: transparent;
  background: transparent;
}
.top-float-nav a:hover,
.top-float-auth a:hover {
  background: rgba(255, 214, 226, 0.28);
  border: 0;
  border-color: transparent;
}

/* top-float white-link button-auth */
.top-float-nav a,
.top-float-nav a:hover,
.top-float-nav a:focus {
  color: #ffffff;
  text-decoration: none;
}

.top-float-nav a:hover {
  border-radius: 8px;
}

.top-float-auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 232, 239, 0.35);
}
.top-float-auth a:hover,
.top-float-auth a:focus {
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 239, 244, 0.58);
}

/* top-float deeper-bg auth-round-no-shift */
.top-float {
  background: rgba(52, 6, 16, 0.86);
}
.top-float-auth a {
  border-radius: 6px;
}
.avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-link .user-avatar {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  max-width: none;
}
.top-float-auth .avatar-link {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 2px;
}
.top-float-auth .user-name-link {
  max-width: 120px;
  padding: 0;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-float-auth a:hover,
.top-float-auth a:focus,
.top-float-auth a:active {
  transform: none;
}

/* auth button fixed-border on click */
.top-float-auth a:hover,
.top-float-auth a:focus,
.top-float-auth a:active {
  border-color: rgba(255, 232, 239, 0.35);
}
.top-float-auth a:active {
  background: rgba(255, 255, 255, 0.30);
}

.top-float-auth a.user-name-link {
  border-style: none;
  background: none;
}

.top-float-auth a:hover.user-name-link {
  color: rgba(255, 255, 255, 0.30);
}

/* home selected state */
.top-float-nav a.active,
.top-float-nav a.active:hover,
.top-float-nav a.active:focus {
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

/* heading polish: h1/h2/h3/h4 */
.top .logo {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.2;
  color: #7c2d12;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}
.top .logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: min(210px, 58%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b45309, rgba(180, 83, 9, 0));
}
.top .logo small {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0;
}

.hero h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 6px;
  padding-right: 8px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: #0f4f4a;
  letter-spacing: 1px;
}
.hero h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,118,110,.72), rgba(180,83,9,.18));
}
.hero small { font-size: 13px; color: var(--muted); margin-left: 8px; }
.hero p { margin:6px 0 0 0; color: #374151; font-size: 13px; }

.panel h3 {
  position: relative;
  padding: 12px 12px 12px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #1f3f3a;
  letter-spacing: .4px;
}
.panel h3::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: currentColor; /* 与标题文字同色（2026-10-23 原为青绿到橙棕渐变） */
}

@media (max-width: 680px) {
  .top .logo {
    font-size: 20px;
    letter-spacing: .6px;
  }
  .top .logo::after {
    bottom: -6px;
    height: 3px;
    width: 52%;
  }
  .hero h2 {
    font-size: 20px;
  }
  .panel h3 {
    font-size: 18px;
  }
  .lines-books .line-main {
    gap: 6px;
  }
  .lines-books .cat {
    padding: 3px 6px;
    font-size: 10px;
  }
  .lines-books .author {
    display: none;
  }
}

/* latest-upload section title row beautify */
.panel.latest-upload .body.grid2 > div > h4 {
  margin: 0 0 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8ece7;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4fbf9 0%, #ffffff 100%);
  color: #134e4a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.panel.latest-upload .body.grid2 > div > h4 > a {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: #e9f8f4;
  border: 1px solid #bfe5dc;
  border-radius: 999px;
  padding: 2px 9px;
  text-decoration: none;
}
.panel.latest-upload .body.grid2 > div > h4 > a:hover {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
  text-decoration: none;
}
@media (max-width: 680px) {
  .panel.latest-upload .body.grid2 > div > h4 {
    font-size: 14px;
    padding: 7px 9px;
  }
  .panel.latest-upload .body.grid2 > div > h4 > a {
    font-size: 11px;
    padding: 2px 8px;
  }
}

.layout > aside {
  position: sticky;
  top: 70px;
  align-self: start;
  height: fit-content;
}

@media (max-width: 980px) {
  .layout > aside {
    position: static;
    top: auto;
    height: auto;
  }
}

.mobile-nav-tools,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 680px) {
  .top-float-inner {
    justify-content: space-between;
  }
  .top-float-nav,
  .top-float-auth {
    display: none;
  }
  .mobile-nav-tools {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .mobile-nav-back,
  .mobile-nav-menu {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 232, 239, 0.4);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 34px;
    cursor: pointer;
  }
  .mobile-nav-menu::before {
    content: "≡ ";
    font-weight: 700;
  }
  .mobile-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1201;
    padding: 10px;
    background: rgba(52, 6, 16, 0.97);
    border-top: 1px solid rgba(255, 214, 224, 0.3);
    box-shadow: 0 10px 24px rgba(20, 2, 6, 0.35);
  }
  .top-float.mobile-open .mobile-nav-panel {
    display: block;
  }
  .mobile-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 62vh;
    overflow-y: auto;
  }
  .mobile-nav-list a {
    display: block;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 232, 239, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
  }
  .mobile-nav-list a.mobile-auth-link {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
  }
  .mobile-nav-list a.avatar-link {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    justify-content: center;
  }
  .mobile-nav-list a.avatar-link .user-avatar {
    width: 32px;
    height: 32px;
  }
  .mobile-nav-list a.user-name-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
  }
}

/* support/info page content */
.layout > .cenMain {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.cenMain .path {
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px dashed #ddcfb8;
  border-radius: 10px;
  background: #fff8ee;
  color: #7a6750;
  font-size: 13px;
  line-height: 1.6;
}
.cenMain .articleInfo h1 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eadfcd;
  font-size: 20px;
  line-height: 1.35;
  color: #1f3f3a;
  text-align: center;
}
.cenMain .writerIntro {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #e8d4b8;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8ef 0%, #fffdf7 100%);
  color: #4d4439;
  font-size: 12px;
  line-height: 1.9;
  text-align: justify;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.cenMain .catalog {
  margin-top: 4px;
}
.cenMain .catalog .listbg {
  position: relative;
  margin: 0 0 14px;
  min-height: 144px;
  padding: 16px 16px 14px 118px;
  border: 1px solid #ecdcc6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefa 0%, #fffaf1 100%);
  box-shadow: 0 8px 18px rgba(146, 109, 58, 0.08);
  overflow: hidden;
}
.cenMain .catalog .listbg:last-child {
  margin-bottom: 0;
}
.cenMain .catalog .listbg .img {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 92px;
  height: 128px;
  box-sizing: border-box;
  padding: 1px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}
.cenMain .catalog .listbg .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cenMain .catalog .listbg .classname, .book .classname {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 2px 6px;
  border: 1px solid #d6ebde;
  border-radius: 999px;
  background: #f1faf6;
  color: #2a7b5f;
  font-size: 12px;
  line-height: 1.45;
  vertical-align: baseline;
}
.cenMain .catalog .listbg .title {
  display: inline;
  margin-right: 8px;
  vertical-align: baseline;
}
.cenMain .catalog .listbg .title a {
  color: #0b3b2e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}
.cenMain .catalog .listbg .title a:hover {
  color: #09B295;
}
.cenMain .catalog .listbg .new, .cenMain .catalog .listbg .old {
  margin-left: 0;
  font-size: 12px;
  white-space: nowrap;
}
.cenMain .catalog .listbg > div[style] {
  clear: right;
  margin-top: 8px;
  padding: 0 !important;
  color: #555;
  font-size: 14px;
  line-height: 1.82;
}
.cenMain .catalog .listbg .mainGreen {
  display: block;
  word-break: break-word;
  color: #555;
  font-size: 13px;
  line-height: 1.85;
}
.cenMain .catalog .listbg .mainGreen small {
  display: inline;
  color: #aaa;
  font-size: 13px;
  line-height: inherit;
  vertical-align: baseline;
  margin-left: 3px;
  margin-right: 1px;
}
.cenMain .cenContent {
  padding: 4px 2px 0;
  color: #374151;
  font-size: 15px;
  line-height: 2.05;
}
.cenMain .cenContent h4 {
  margin: 14px 0 8px;
  color: #0f766e;
  font-size: 18px;
  line-height: 1.45;
}
.cenContent a:hover { text-decoration: none; }
.cenMain .cenContent p {
  margin: 0 0 14px;
  line-height: 2.05;
  text-align: justify;
  word-break: break-word;
}
.cenMain .cenContent br {
  display: block;
  margin-bottom: .55em;
}

@media (max-width: 680px) {
  .layout > .cenMain {
    padding: 11px 12px;
  }
  .cenMain .path {
    padding: 8px 10px;
    font-size: 12px;
  }
  .cenMain .articleInfo h1 {
    margin-bottom: 10px;
    font-size: 18px;
  }
  .cenMain .writerIntro {
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.82;
  }
  .cenMain .catalog .listbg {
    min-height: 116px;
    padding: 12px 12px 12px 100px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(146, 109, 58, 0.08);
  }
  .cenMain .catalog .listbg .img {
    position: absolute;
    left: 12px;
    top: 12px;
    float: none;
    margin: 0;
    width: 76px;
    height: 104px;
    border-radius: 0;
  }
  .cenMain .catalog .listbg .title a {
    font-size: 16px;
  }
  .cenMain .catalog .listbg .new, .cenMain .catalog .listbg .old {
    display: block;
    margin: 4px 0 0;
  }
  .cenMain .catalog .listbg > div[style] {
    clear: none;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.75;
  }
  .cenMain .catalog .listbg .mainGreen {
    font-size: 12px;
    line-height: 1.75;
  }
  .cenMain .catalog .listbg .mainGreen small {
    font-size: 12px;
  }
  .cenMain .cenContent {
    font-size: 14px;
    line-height: 1.95;
  }
  .cenMain .cenContent h4 {
    margin: 12px 0 7px;
    font-size: 16px;
  }
}

/* mobile text wrap tune */
@media (max-width: 680px) {
  .lines li > a,
  .rank .lines li > a,
  .lines-books .line-main > a,
  .download-box a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* iOS input focus zoom fix */
@media (max-width: 680px) {
  input[type='text'],
  input[type='search'],
  input[type='number'],
  input[type='email'],
  input[type='tel'],
  input[type='password'],
  textarea,
  select,
  .search input {
    font-size: 16px !important;
  }
}

/* 顶部导航全局隐藏横向滚动条（功能保留，仅去除可视滚动条） */
.top-float-nav { scrollbar-width: none; -ms-overflow-style: none; }
.top-float-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 顶部 nav 保持单行，加载完成前裁剪溢出避免短暂换行，完成后展开下拉 */
.top-float-nav { flex-wrap: nowrap; justify-content: center; }
.top-float:not(.nav-ready) .top-float-nav { overflow: hidden; max-width: 100%; }
.top-float-nav .nav-more-menu a,
.top-float-nav .nav-more-menu a:focus {
  display: block;
  padding: 7px 10px;
  border-radius: 8px !important;
  background: #faf7f2 !important;
  color: #2b2622 !important;
  font-size: 13px;
  font-weight: 700 !important;
  text-align: center;
  box-shadow: none !important;
}
.top-float-nav .nav-more-menu a:hover,
.top-float-nav .nav-more-menu a.active,
.top-float-nav .nav-more-menu a.active:hover {
  background: #0f766e !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}
html[data-theme="dark"] .top-float-nav .nav-more-menu a,
html[data-theme="dark"] .top-float-nav .nav-more-menu a:focus {
  background: #2c3036 !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .top-float-nav .nav-more-menu a:hover,
html[data-theme="dark"] .top-float-nav .nav-more-menu a.active,
html[data-theme="dark"] .top-float-nav .nav-more-menu a.active:hover {
  background: #2c8378 !important;
  color: #ffffff !important;
}

/* 顶部导航栏立体化: 渐变 + 多层阴影 */
.top-float {
  background: linear-gradient(180deg,
    rgba(85, 15, 28, 0.94) 0%,
    rgba(60, 8, 20, 0.94) 50%,
    rgba(38, 4, 12, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(20, 5, 10, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 230, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(40, 5, 12, 0.22),
    0 2px 4px rgba(40, 5, 12, 0.12) !important;
}
.top-float-nav a:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 700 !important;
}
.top-float-nav a.active,
.top-float-nav a.active:hover,
.top-float-nav a.active:focus {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.18) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  border: 0 !important;
  font-weight: 700 !important;
}

/* AI 点评 — 仿 Discuz X 论坛点评风格,多家 AI */
.ai-review-box {
  margin-top: 14px;
  padding: 8px 12px 10px;
  background: #fdfaf2;
  border: 1px dashed #ece5d2;
  border-radius: 8px;
}
.ai-review-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6f4f34;
  border: 0;
}
.ai-review-list { display: flex; flex-direction: column; }
.ai-review-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dotted #ece5d2;
}
.ai-review-list .ai-review-item:first-child { border-top: 0; padding-top: 4px; }
.ai-review-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 2px;
  display: inline-block;
  background: #eee;
  border: 1px solid #e5dccd;
}
.ai-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-review-name {
  text-decoration: none;
}
.ai-review-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}
.ai-review-name {
  color: var(--brand-dark);
  font-weight: 600;
  margin-right: 6px;
}
.ai-review-text { color: #333; }
.ai-review-date {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
  white-space: nowrap;
}
.ai-review-actions {
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.ai-review-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #d8cab7;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8ec 0%, #f7ecd0 100%);
  color: #6f4f34;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ai-review-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff3d6 0%, #f0e0b0 100%);
  transform: translateY(-1px);
}
.ai-review-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.ai-review-status {
  margin-left: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* book_r */
.book_r {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
  overflow: hidden;
}
.book_r > img,
.book_r > a {
  grid-column: 1;
  grid-row: 1 / span 3;
}
.book_r > a {
  display: block;
  line-height: 0;
}
.book_r img {
  display: block;
  width: 78px;
  height: 106px;
  object-fit: cover;
  padding: 1px;
  border: 1px solid #d1d1d1;
  border-radius: 0;
}
.book_r > h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book_r > h4 > a { color: var(--brand-dark); text-decoration: none; }
.book_r > h4 > a:hover { color: #09B295; text-decoration: none; }
.book_r > .meta {
  grid-column: 2;
  grid-row: 2;
}
.book_r > .desc {
  grid-column: 2;
  grid-row: 3;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.book_r > .desc:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

/* lines-books-2col: dedicated modifier — turn the book list into a 2-col grid.
   Scoped to this class only, so other .lines-books usages are unaffected. */
.lines-books-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
.lines-books-2col li {
  min-width: 0;
}
.lines-books-2col li:nth-last-child(-n+2) {
  border-bottom: 0;
}
@media (max-width: 980px) {
  .lines-books-2col {
    grid-template-columns: minmax(0, 1fr);
  }
  .lines-books-2col li:nth-last-child(-n+2) {
    border-bottom: 1px dashed var(--line);
  }
  .lines-books-2col li:last-child {
    border-bottom: 0;
  }
}

/* User review (member-submitted) — shares look-and-feel with .ai-review-* */
.user-review-box { margin-top: 14px; }
.user-review-box .ai-review-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f59e0b;
  vertical-align: middle;
}
.user-review-empty {
  padding: 8px 4px;
  color: #999;
  font-size: 13px;
}
.user-review-btn {
  background: linear-gradient(180deg, #fff3d6 0%, #f5d99a 100%) !important;
  color: #6f4f34 !important;
}
.user-review-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe6a3 0%, #f0c97c 100%) !important;
}
.user-review-form {
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ece5d2;
  border-radius: 8px;
}
.user-review-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  background: #fdfaf2;
  border: 1px solid #ece5d2;
  border-radius: 6px;
  resize: none;
  outline: none;
  font-family: inherit;
}
.user-review-form textarea:focus {
  border-color: #d8b97c;
  background: #fff;
}
.user-review-form-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.user-review-counter {
  font-size: 12px;
  color: #999;
}
.user-review-form-bar .ai-review-status {
  flex: 1;
  min-width: 0;
}
.user-review-cancel-btn {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
}
.user-review-cancel-btn:hover:not(:disabled) {
  background: #e5e7eb !important;
}
.user-review-submit-btn {
  background: linear-gradient(135deg, var(--brand, #f59e0b), var(--brand-dark, #d97706)) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.user-review-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-dark, #d97706), var(--brand, #f59e0b)) !important;
}
.user-review-item .ai-review-name {
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
}

/* "加载更多" button under the review list */
.review-load-more {
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  padding: 8px 14px;
  border: 1px dashed #d8cab7;
  border-radius: 8px;
  background: #fff;
  color: #6f4f34;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}
.review-load-more:hover:not(:disabled) {
  background: #fff3d6;
  border-color: #c8a973;
}
.review-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Make textarea height fixed (not user-resizable) */
.user-review-form textarea {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
}

/* 搜索框下拉 */
.search-suggest-wrap {
  position: relative;
  display: block;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.search .search-suggest-wrap input {
  width: 100%;
}

.search-suggest {
  display: none;
  position: absolute;
  z-index: 99;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  overflow: hidden;
}

.search-suggest a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
}

.search-suggest a:last-child {
  border-bottom: 0;
}

.search-suggest a:hover {
  background: #fffaf0;
}

.search-suggest .suggest-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest .suggest-author {
  color: #999;
  margin-left: 18px;
}

.search-suggest em {
  color: #999;
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .search {
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: start;
  }

  .search-suggest {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }

  .search button {
    height: 44px;
    padding: 0;
    white-space: nowrap;
  }
}
/* ===== 夜间模式（html[data-theme="dark"]，由 theme.js 切换、common.js 首屏预置） ===== */
html[data-theme="dark"] {
  --bg: #15171a;
  --paper: #1e2125;
  --ink: #d4d2cc;
  --muted: #8f949b;
  --line: #33383f;
  --brand: #3aa597;
  --brand-dark: #5cc2b4;
  --accent: #e0954a;
  --chip: #1f2b2a;
  --rank: #231f1a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1000px 420px at 0 -10%, rgba(30, 64, 90, .35) 0%, transparent 60%),
    radial-gradient(900px 520px at 100% 0, rgba(90, 50, 20, .25) 0%, transparent 50%),
    var(--bg);
}
html[data-theme="dark"] a:hover { color: #7fd6ca; }
html[data-theme="dark"] .top { background: rgba(30, 33, 37, .92); }
html[data-theme="dark"] .top .logo { color: #e8a36a; }
html[data-theme="dark"] .top .logo small,
html[data-theme="dark"] .top-links { color: #a3a8ae; }
html[data-theme="dark"] .top-links em { color: #f0b46a; background: #2d2518; border-color: #4a3b22; }
html[data-theme="dark"] .top-links .green { color: #5cc2b4; }
html[data-theme="dark"] .search input:hover { border-color: #4a5058; }
html[data-theme="dark"] .search input:focus { background: #23272c; border-color: rgba(92, 194, 180, .5); box-shadow: 0 0 0 3px rgba(92, 194, 180, .15); }
html[data-theme="dark"] .search input::placeholder { color: #737880; }
html[data-theme="dark"] .search-history a { color: #7fd6ca; background: #1f2b2a; border-color: #2f4542; }

html[data-theme="dark"] .nav-main a,
html[data-theme="dark"] .nav-sub a,
html[data-theme="dark"] .kpi .item,
html[data-theme="dark"] .book,
html[data-theme="dark"] .filters a,
html[data-theme="dark"] .pager a,
html[data-theme="dark"] .pager span,
html[data-theme="dark"] .functional-bar button,
html[data-theme="dark"] .qd-user-list li a,
html[data-theme="dark"] .detail img,
html[data-theme="dark"] .cenMain .catalog .listbg .img { background: #23272c; }
html[data-theme="dark"] .pager a:hover { background: #2c3137; }
html[data-theme="dark"] .pager span,
html[data-theme="dark"] .pager > b,
html[data-theme="dark"] .nav-main a.active,
html[data-theme="dark"] .filters a.on { background: var(--brand); color: #fff; }

html[data-theme="dark"] .notice { background: #262119; border-color: #4a4030; }
html[data-theme="dark"] .hero { background: linear-gradient(120deg, rgba(58,165,151,.12), rgba(224,149,74,.10)); border-color: var(--line); }
html[data-theme="dark"] .hero h2 { color: #7fd6ca; }
html[data-theme="dark"] .hero p { color: #b5b3ad; }
html[data-theme="dark"] .panel h3 { color: #cfe7e2; border-bottom-color: var(--line); }
html[data-theme="dark"] .panel.latest-upload .body.grid2 > div > h4 { background: linear-gradient(90deg, #1f2b2a 0%, #1e2125 100%); border-color: #2f4542; color: #a8ddd4; }
html[data-theme="dark"] .panel.latest-upload .body.grid2 > div > h4 > a { color: #7fd6ca; background: #1f2b2a; border-color: #2f4542; }
html[data-theme="dark"] .panel.latest-upload .body.grid2 > div > h4 > a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
html[data-theme="dark"] .latest-upload-expand .latest-upload-more { background: #23272c; border-color: var(--line); color: #b5b3ad; }
html[data-theme="dark"] .latest-upload-expand .latest-upload-more:hover { background: #2d2518; border-color: #8a6a2e; color: #f0b46a; }

html[data-theme="dark"] .book a:hover,
html[data-theme="dark"] .kv a:hover,
html[data-theme="dark"] .book_r > h4 > a:hover,
html[data-theme="dark"] .cenMain .catalog .listbg .title a:hover { color: #4fd1b5; }
html[data-theme="dark"] .book .desc { color: #8f949b; }
html[data-theme="dark"] .meta a { color: #d4b64a; }
html[data-theme="dark"] .old { color: #7d8187; }
html[data-theme="dark"] .new { color: #c0504d; }
html[data-theme="dark"] .lines-books .cat,
html[data-theme="dark"] .cenMain .catalog .listbg .classname,
html[data-theme="dark"] .book .classname { color: #7fd6ca; background: #1f2b2a; border-color: #2f4542; }
html[data-theme="dark"] .lines-books .author { color: #8f949b; }
html[data-theme="dark"] .rank .no { color: #f0a066; }
html[data-theme="dark"] .tags a { border-color: #2f4542; }

html[data-theme="dark"] .today-qd-users { background: #1e2125; border-color: var(--line); }
html[data-theme="dark"] .today-qd-users h3 { color: #cfe7e2; }
html[data-theme="dark"] .qd-user-list img { border-color: #4a4030; background: #2a2e33; }
html[data-theme="dark"] .qd-user-list span { color: #b5b3ad; }
html[data-theme="dark"] .checkin { background: #1c2128; }
html[data-theme="dark"] .checkin-list img { border-color: #33383f; }
html[data-theme="dark"] .checkin-list .name { color: #d4d2cc; }
html[data-theme="dark"] .checkin-list .times { color: #8f949b; }

/* 分类筛选 / 列表页 */
html[data-theme="dark"] .saixuan { background: linear-gradient(180deg, #1f2226 0%, #1b1e22 100%); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .saixuan dl { border-top-color: #33383f; }
html[data-theme="dark"] .saixuan dt { color: #b9a68a; }
html[data-theme="dark"] .saixuan dd a { background: #23272c; border-color: #3a3f46; color: #c9c5bd; }
html[data-theme="dark"] .saixuan dd a:hover { background: #1f2b2a; border-color: #3aa597; color: #7fd6ca; }
html[data-theme="dark"] .saixuan dd a.selected { background: linear-gradient(180deg, #3aa597 0%, #2c8378 100%); border-color: #3aa597; color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(58, 165, 151, .25); }
html[data-theme="dark"] .saixuan dd a.selected:hover { background: linear-gradient(180deg, #45b5a6 0%, #33968a 100%); border-color: #45b5a6; color: #fff; }
html[data-theme="dark"] .cenMain .path { background: #262119; border-color: #4a4030; color: #b9a68a; }
html[data-theme="dark"] .cenMain .articleInfo h1 { color: #cfe7e2; border-bottom-color: var(--line); }
html[data-theme="dark"] .cenMain .writerIntro { background: linear-gradient(135deg, #262119 0%, #1f2226 100%); border-color: #4a4030; color: #c9c5bd; box-shadow: none; }
html[data-theme="dark"] .cenMain .catalog .listbg { background: linear-gradient(180deg, #1f2226 0%, #1c1f23 100%); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .cenMain .catalog .listbg .title a { color: #cfe7e2; }
html[data-theme="dark"] .cenMain .catalog .listbg > div[style],
html[data-theme="dark"] .cenMain .catalog .listbg .mainGreen { color: #a3a8ae; }
html[data-theme="dark"] .cenMain .catalog .listbg .mainGreen small { color: #7d8187; }
html[data-theme="dark"] .cenMain .cenContent { color: #c9c5bd; }
html[data-theme="dark"] .cenMain .cenContent h4 { color: #7fd6ca; }

/* 详情页 */
html[data-theme="dark"] .desc { background: #23272c; border-color: var(--line); color: #c9c5bd; }
html[data-theme="dark"] .desc:hover { background: #262a30; border-color: #4a5058; }
html[data-theme="dark"] .desc.collapsed::after { background: linear-gradient(to bottom, rgba(35,39,44,0), rgba(35,39,44,1)); }
html[data-theme="dark"] .page-info .intro-panel { --intro-fade-color: #23272c; }
html[data-theme="dark"] .page-info .panel .body .tips { background: linear-gradient(180deg, #262119 0%, #231e17 100%); border-color: #5a4630; color: #e0b48a; }
html[data-theme="dark"] .page-info .detail .author-side { background: #262119; border-color: #5a4630; }
html[data-theme="dark"] .page-info .detail .author-side h4,
html[data-theme="dark"] .page-info .detail .author-side .classname,
html[data-theme="dark"] .page-info .detail .author-side a { color: #e0b48a; }
html[data-theme="dark"] .detail img,
html[data-theme="dark"] .book_r img { border-color: #3a3f46; }
html[data-theme="dark"] .download-box { background: #1b2524; border-color: #2f4542; }
html[data-theme="dark"] .download-box .download-meta p { color: #8f949b; }
html[data-theme="dark"] .download-box .download-meta p strong { color: #d4d2cc; }
html[data-theme="dark"] .download-box .download-cover img { border-color: #2f4542; }
html[data-theme="dark"] .download-box .download-links a { background: #23272c; border-color: #2f4542; color: #7fd6ca; }
html[data-theme="dark"] .download-box .download-links a:hover { background: #1f2b2a; border-color: #3aa597; }
html[data-theme="dark"] .download-box .download_1 { color: #f3d58a; border-color: #6a5420; background: linear-gradient(135deg, #3a2f14, #4a3a14); }
html[data-theme="dark"] .download-box .download_2 { color: #9fe6c0; border-color: #2f6a4a; background: linear-gradient(135deg, #16302a, #1b3d2e); }
html[data-theme="dark"] .copy-btn { background: #23272c; border-color: #2f4542; color: #7fd6ca; }
html[data-theme="dark"] .copy-btn:hover { background: #1f2b2a; color: #7fd6ca; }

/* 点评 */
html[data-theme="dark"] .ai-review-box { background: #1f2226; border-color: #3a3f46; }
html[data-theme="dark"] .ai-review-title { color: #e0b48a; }
html[data-theme="dark"] .ai-review-item { border-top-color: #33383f; }
html[data-theme="dark"] .ai-review-avatar { background: #2a2e33; border-color: #3a3f46; }
html[data-theme="dark"] .ai-review-body,
html[data-theme="dark"] .ai-review-text { color: #c9c5bd; }
html[data-theme="dark"] .ai-review-date,
html[data-theme="dark"] .user-review-empty,
html[data-theme="dark"] .user-review-counter { color: #7d8187; }
html[data-theme="dark"] .ai-review-btn { background: linear-gradient(180deg, #2d2518 0%, #262014 100%); border-color: #4a3b22; color: #e0b48a; }
html[data-theme="dark"] .ai-review-btn:hover:not(:disabled) { background: linear-gradient(180deg, #3a2f1c 0%, #2d2518 100%); }
html[data-theme="dark"] .user-review-btn { background: linear-gradient(180deg, #3a2f1c 0%, #2d2518 100%) !important; color: #f0c98a !important; }
html[data-theme="dark"] .user-review-form { background: #1e2125; border-color: #3a3f46; }
html[data-theme="dark"] .user-review-form textarea { background: #23272c; border-color: #3a3f46; color: #d4d2cc; }
html[data-theme="dark"] .user-review-form textarea:focus { background: #262a30; border-color: #8a6a2e; }
html[data-theme="dark"] .user-review-cancel-btn { background: #2a2e33 !important; color: #a3a8ae !important; border-color: #3a3f46 !important; }
html[data-theme="dark"] .user-review-item .ai-review-name { color: #f0a066; }

/* 弹窗 */
html[data-theme="dark"] .theme-dialog-box { background: #1e2125 !important; color: #d4d2cc !important; }

/* 夜间切换按钮 */
.float-tools .theme-toggle-btn { background: #374151; box-shadow: 0 8px 20px rgba(17, 24, 39, .25); }
html[data-theme="dark"] .float-tools .theme-toggle-btn { background: #e0b04a; color: #1b1b1b; }
html[data-theme="dark"] .float-tools button { box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }

/* 夜间：章节目录页 /read/<id>/（模板内联样式） */
html[data-theme="dark"] .read-panel { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
html[data-theme="dark"] .read-title { color: #cfe7e2; }
html[data-theme="dark"] .read-meta,
html[data-theme="dark"] .read-foot { color: #8f949b; }
html[data-theme="dark"] .read-meta a { color: #5cc2b4; }
html[data-theme="dark"] .read-intro { background: #23272c; border-color: var(--line); color: #c9c5bd; }
html[data-theme="dark"] .chapter-list li { background: #23272c; border-color: #33383f; }
html[data-theme="dark"] .chapter-list li a { color: #d4d2cc; }
html[data-theme="dark"] .chapter-list li a:visited { color: #7d8187; }
html[data-theme="dark"] .chapter-list li:hover { background: #262c33; border-color: #4a5058; }

/* 夜间：友情链接 / 网站地图（模板内联样式） */
html[data-theme="dark"] .cenContent .links li a,
html[data-theme="dark"] .sitemap a { background: #262119; border-color: #4a3b22; color: #e0b48a; box-shadow: none; }
html[data-theme="dark"] .cenContent .links li a:hover,
html[data-theme="dark"] .sitemap a:hover { background: #2f281c; border-color: #8a6a2e; color: #f0c98a; }
html[data-theme="dark"] .sitemap h3 { background: linear-gradient(90deg, #2d2518 0%, #1e2125 70%); border-left-color: #c08a2e; color: #f0c98a; }

/* 夜间：页面内容不满一屏时，画布底色接上，避免页脚下方出现接缝 */
html[data-theme="dark"] { background: var(--bg); }
html[data-theme="dark"] body { min-height: 100vh; }

/* 夜间：留言板 /e/tool/gbook/（模板内联样式） */
html[data-theme="dark"] .gbook-path { color: #8f949b; }
html[data-theme="dark"] .gbook-card,
html[data-theme="dark"] .xglj_t { background: rgba(30, 33, 37, .92); border-color: var(--line); box-shadow: var(--shadow); }
html[data-theme="dark"] .gbook-card-hd,
html[data-theme="dark"] .xglj_t h3 { background: linear-gradient(180deg, #262119 0%, #211d17 100%); border-bottom-color: #3a3226; color: #e0b48a; }
html[data-theme="dark"] .gbook-label { color: #c9b89f; }
html[data-theme="dark"] .gbook-required { color: #ff6b6b; }
html[data-theme="dark"] .gbook-input,
html[data-theme="dark"] .gbook-textarea { background: #23272c; border-color: #3a3f46; color: #d4d2cc; }
html[data-theme="dark"] .gbook-input:focus,
html[data-theme="dark"] .gbook-textarea:focus { border-color: #8a6a2e; box-shadow: 0 0 0 3px rgba(224, 149, 74, .18); }
html[data-theme="dark"] .gbook-btn.reset { background: #2a2620; border-color: #5a4630; color: #e0b48a; }
html[data-theme="dark"] .gbook-note { color: #8f949b; }
html[data-theme="dark"] .gbook-note a { color: #8fcf5a; }
html[data-theme="dark"] .gbook-note a:hover { color: #4fd1b5; }
html[data-theme="dark"] .msg-item { background: #23272c; border-color: #33383f; }
html[data-theme="dark"] .msg-meta { color: #8f949b; }
html[data-theme="dark"] .msg-text { color: #d4d2cc; }
html[data-theme="dark"] .msg-reply { background: #1b2a20; border-left-color: #4f8a5e; color: #9fd8ae; }
html[data-theme="dark"] .gbook-pagination { border-top-color: #33383f; color: #8f949b; }
html[data-theme="dark"] .gbook-pagination .main { color: #c9c5bd; }
html[data-theme="dark"] .gbook-pagination a { color: #d4b64a; }
html[data-theme="dark"] .xglj li + li { border-top-color: #33383f; }
html[data-theme="dark"] .xglj li:hover,
html[data-theme="dark"] .xglj li:focus-within,
html[data-theme="dark"] .xglj li:has(a:hover),
html[data-theme="dark"] .xglj a:hover,
html[data-theme="dark"] .xglj a:focus-visible { background: #2a2620; }

/* 夜间：搜索结果页 /search/result-*（search.css + 内联 .search-hit） */
html[data-theme="dark"] .searchTitle h1 { background: linear-gradient(180deg, #2a2418 0%, #221e17 100%); border-color: #4a3b22; color: #f0c98a; }
html[data-theme="dark"] .searchTitle h1 em,
html[data-theme="dark"] #searchList em { color: #ff7a6b; }
html[data-theme="dark"] #searchTop { background: #1f2226; border-color: #4a3b22; }
html[data-theme="dark"] .sso_select2 select { background-color: #23272c; color: #e0b48a; }
html[data-theme="dark"] .sso_select_bg2,
html[data-theme="dark"] .sso_select_bg3,
html[data-theme="dark"] .sso_select2,
html[data-theme="dark"] .sso_input,
html[data-theme="dark"] .sso_button { border-color: #5a4630; }
html[data-theme="dark"] .sso_input input { background: #23272c; color: #d4d2cc; }
html[data-theme="dark"] .sso_input input::placeholder { color: #737880; }
html[data-theme="dark"] .sso_button input { background: linear-gradient(180deg, #4a3a1c 0%, #3a2d15 100%); color: #f0c98a; }
html[data-theme="dark"] .sso_button input:hover { background: linear-gradient(180deg, #5a4622 0%, #4a3a1c 100%); }
html[data-theme="dark"] .searchTopic { background: linear-gradient(180deg, #262119 0%, #231f18 100%); border-color: #3a3226; border-left-color: #4a3b22; color: #c9b89f; }
html[data-theme="dark"] .searchTopic.is-hover { background: linear-gradient(180deg, #2d2619 0%, #2a2318 100%); }
html[data-theme="dark"] .searchTopic a { color: #7fb4f0; }
html[data-theme="dark"] .searchTopic a:hover { color: #a8ccf7; }
html[data-theme="dark"] .search-rank { background: linear-gradient(180deg, #3a2f1c 0%, #2d2518 100%); border-color: #5a4630; color: #f0c98a; }
html[data-theme="dark"] .searchIntro,
html[data-theme="dark"] .searchInfo { background: #1f2226; border-color: #33383f; border-left-color: #4a3b22; }
html[data-theme="dark"] .searchIntro { color: #c9c5bd; }
html[data-theme="dark"] .searchInfo { color: #8f949b; border-top-color: #33383f; }
html[data-theme="dark"] .searchInfo.is-hover { background: #23272c; border-left-color: #c08a2e; }
html[data-theme="dark"] .searchInfo a { color: #5cc2b4; }
html[data-theme="dark"] .searchInfo a:hover { color: #a3a8ae; }
html[data-theme="dark"] .search-hit { background: #5a4a14; color: #ffd27a; }
html[data-theme="dark"]:has(#searchTop) .layout aside .panel { background: linear-gradient(180deg, #1c2421 0%, #1b211f 100%); border-color: #2f4542; box-shadow: var(--shadow); }
html[data-theme="dark"]:has(#searchTop) .layout aside .panel > h3 { background: linear-gradient(180deg, #1f2b27 0%, #1c2622 100%); border-bottom-color: #2f4542; color: #7fd6ca; }
html[data-theme="dark"]:has(#searchTop) .layout aside .panel .topsideSpecial li a { background: #23272c; border-color: #2f4542; color: #a8ddd4; }
html[data-theme="dark"]:has(#searchTop) .layout aside .panel .topsideSpecial li a:hover { background: #1f2b2a; border-color: #3aa597; color: #7fd6ca; }
html[data-theme="dark"] .pager { background-color: #1f2226; border-color: #4a3b22; }

/* 夜间：阅读记录页 /readmark.html（模板内联样式） */
html[data-theme="dark"] .history-shell { background: linear-gradient(180deg, #1f2226 0%, #1c1f23 100%); border-color: #4a3b22; }
html[data-theme="dark"] .history-table thead th { background: #2a2418; border-bottom-color: #4a3b22; color: #f0c98a; }
html[data-theme="dark"] .history-table tbody td { border-bottom-color: #33383f; color: #c9c5bd; }
html[data-theme="dark"] .history-table tbody tr:hover { background: #262119; }
html[data-theme="dark"] .history-table .book-title a { color: #7fb4f0; }
html[data-theme="dark"] .history-table .read-link a { color: #e0b48a; }
html[data-theme="dark"] .history-table .read-link a:hover { color: #f0c98a; }
html[data-theme="dark"] .history-btn { background: linear-gradient(180deg, #3a2f1c 0%, #2d2518 100%); border-color: #5a4630; color: #f0c98a; }
html[data-theme="dark"] .history-btn:hover { background: linear-gradient(180deg, #4a3a1c 0%, #3a2f1c 100%); }
html[data-theme="dark"] .history-empty { background: #262119; border-color: #5a4630; color: #c9a878; }
html[data-theme="dark"] .history-table tbody td::before { color: #b9a68a; }
html[data-theme="dark"] .tjxs { background: #23272c; color: #c9c5bd; }
html[data-theme="dark"] .s,
html[data-theme="dark"] .bn,
html[data-theme="dark"] .t { border-bottom-color: #33383f; }
html[data-theme="dark"] td.s a { color: #8fcf91; }
@media (max-width: 768px) {
  html[data-theme="dark"] .history-table tbody tr { background: #1f2226; border-color: #4a3b22; }
  html[data-theme="dark"] .history-table tbody td { border-bottom-color: #33383f; }
}

/* 夜间：jNotify 操作结果提示框（jSuccess/jError，原样式在 /yecha/Common.css，浅灰底） */
html[data-theme="dark"] #jSuccess,
html[data-theme="dark"] #jError,
html[data-theme="dark"] #jNotify { background: #23272c; border-color: #3a3f46; color: #d4d2cc; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html[data-theme="dark"] #jSuccess span { color: #9fd8ae; }
html[data-theme="dark"] #jError span { color: #f3a5a5; }
html[data-theme="dark"] #jNotify span { color: #d4d2cc; }
html[data-theme="dark"] #jSuccess a { color: #8fcf5a; }
html[data-theme="dark"] #jError a { color: #ff8a8a; }
html[data-theme="dark"] #jNotify a { color: #7fd6ca; }

/* 夜间：artDialog 弹窗外框（登录/注册/AI 聊天等，原样式在 /yecha/Common.css；iframe 内页见 popup-dark.css） */
html[data-theme="dark"] .aui_inner,
html[data-theme="dark"] .aui_state_noTitle .aui_inner { background: #1e2125; border-color: #3a3f46; }
html[data-theme="dark"] .aui_title { background: #262a2f; border-bottom-color: #33383f; color: #d4d2cc; }
html[data-theme="dark"] .aui_state_focus .aui_title { color: #e8e6e1; }
html[data-theme="dark"] .aui_state_lock .aui_nw, html[data-theme="dark"] .aui_state_lock .aui_n, html[data-theme="dark"] .aui_state_lock .aui_ne,
html[data-theme="dark"] .aui_state_lock .aui_w, html[data-theme="dark"] .aui_state_lock .aui_e,
html[data-theme="dark"] .aui_state_lock .aui_sw, html[data-theme="dark"] .aui_state_lock .aui_s, html[data-theme="dark"] .aui_state_lock .aui_se { background: rgba(58, 63, 70, .9); }
html[data-theme="dark"] .aui_close { color: #8f949b; text-shadow: none; }
html[data-theme="dark"] .aui_close:hover { color: #5cc2b4; }
html[data-theme="dark"] .aui_content,
html[data-theme="dark"] .aui_state_focus .aui_content { color: #d4d2cc; }
html[data-theme="dark"] .aui_content iframe { background: #1e2125; }
html[data-theme="dark"] .aui_buttons { background-color: #191b1f; border-top-color: #2a2e34; }
html[data-theme="dark"] .aui_buttons button { background: #2c3036; border-color: #3a3f46; color: #d4d2cc; }
html[data-theme="dark"] .aui_buttons button:hover { color: #fff; border-color: #5a6068; }

/* 夜间：会员登录后左侧签到信息窗 #qiandao（/e/extend/qd/show.php 输出，原样式在 /yecha/Common.css） */
html[data-theme="dark"] #qiandao { background: linear-gradient(165deg, #1f2a29 0%, #1e2125 100%); border-color: #2f4744; color: #d4d2cc; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
html[data-theme="dark"] #qiandao.is-expanded { box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
html[data-theme="dark"] #qiandao .qdleft ul li { border-bottom-color: #33383f; }
html[data-theme="dark"] #qiandao .cblue { color: #6cb6ff; }
html[data-theme="dark"] #qiandao .corg { color: #ff8a5c; }
html[data-theme="dark"] #qiandao .cgray,
html[data-theme="dark"] #qiandao .scread { color: #8f949b; }
html[data-theme="dark"] #qiandao a.noqd { background: linear-gradient(to top, #b07a10, #c9971e); border-color: #8a6410; color: #1e1a12; box-shadow: none; }
html[data-theme="dark"] #qiandao a.haveqd { background: #2d2a1c; border-color: #5a5124; color: #b8a77a; }
html[data-theme="dark"] #qiandao a.btn_red { background: #c4453f; color: #fff; }
html[data-theme="dark"] #qiandao .qdbutton { background: linear-gradient(180deg, #2c8378 0%, #1f625a 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }

/* 签到信息窗里的「每日签到 / 已签到」按钮（原为 /yecha/qd.png、haveqd.png 图片，改由 show.php 输出文字按钮） */
#qiandao .qd-btn { display: inline-block; box-sizing: border-box; min-width: 73px; height: 24px; line-height: 22px; padding: 0 8px; border: 1px solid #f0703c; border-radius: 3px; background: #fff; color: #ec5a23; font-size: 13px; letter-spacing: 1px; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; }
#qiandao a.qd-btn:hover { background: #fff3ec; color: #d9480f; }
#qiandao .qd-btn-done { border-color: #5cb85c; color: #3c9a3c; cursor: default; }
html[data-theme="dark"] #qiandao .qd-btn { background: #2a211c; border-color: #b8572c; color: #ff8a5c; }
html[data-theme="dark"] #qiandao a.qd-btn:hover { background: #3a2a20; color: #ffa47e; }
html[data-theme="dark"] #qiandao .qd-btn-done { background: #1b2a20; border-color: #3f7a4f; color: #8fd0a0; }

/* 列表页书名行右侧的会员收藏按钮（fava-pc.js 注入，右浮动） */
.listbg .fav-btn { float: right; position: relative; z-index: 1; display: inline-block; box-sizing: border-box; margin: 4px 0 0 10px; padding: 0 10px; height: 22px; line-height: 20px; font-size: 12px; font-weight: normal; color: #e8541e; background: #fff; border: 1px solid #e8541e; border-radius: 11px; cursor: pointer; white-space: nowrap; vertical-align: 3px; -webkit-user-select: none; user-select: none; transition: background .15s, color .15s; }
.listbg .fav-btn:before { content: "\2606 "; }
.listbg .fav-btn:hover { background: #fff3ec; }
.listbg .fav-btn.faved { color: #fff; background: #e8541e; }
.listbg .fav-btn.faved:before { content: "\2605 "; }
.listbg .fav-btn.faved:hover { background: #d9480f; border-color: #d9480f; }
.listbg .fav-btn.loading { opacity: .45; pointer-events: none; }
html[data-theme="dark"] .listbg .fav-btn { color: #ff8a5c; background: transparent; border-color: #b8572c; }
html[data-theme="dark"] .listbg .fav-btn:hover { background: #3a2a20; }
html[data-theme="dark"] .listbg .fav-btn.faved { color: #1e1a12; background: #e07a4a; border-color: #e07a4a; }
html[data-theme="dark"] .listbg .fav-btn.faved:hover { background: #ec8a5c; border-color: #ec8a5c; }

/* ===== 2026-10-22 站点 logo(方案 A:书 + 心 + 毛笔字,SVG 文件 /skin/yellow/logo-a*.svg) ===== */
.top .logo.has-img { display: block; line-height: 0; }
.top .logo.has-img::after { display: none; }
.top .logo.has-img a { display: inline-block; }
.top .logo.has-img img { display: block; width: auto; height: 48px; }
.top .logo.has-img .logo-dark { display: none; }
html[data-theme="dark"] .top .logo.has-img .logo-light { display: none; }
html[data-theme="dark"] .top .logo.has-img .logo-dark { display: block; }
@media (max-width: 768px) {
  .top .logo.has-img img { height: 38px; }
}

/* 2026-10-29：夜间模式「我要点评」悬停/点按后（手机上点过会一直停在悬停状态）原来是浅底浅字；发布框去掉外边框；表情面板 */
html[data-theme="dark"] .user-review-btn:hover:not(:disabled) { background: linear-gradient(180deg, #4a3c22 0%, #3a2f1c 100%) !important; color: #ffd99a !important; }
.user-review-form { padding: 0; background: transparent; border: 0; border-radius: 0; }
html[data-theme="dark"] .user-review-form { background: transparent; }
.user-review-emoji-btn { padding: 3px 10px !important; font-size: 15px !important; line-height: 1.3; }
.user-review-emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; margin-top: 8px; padding: 6px; background: #fdfaf2; border: 1px solid #ece5d2; border-radius: 8px; }
.user-review-emoji-panel[hidden] { display: none; }
.user-review-emoji-panel button { height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 20px; line-height: 34px; cursor: pointer; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.user-review-emoji-panel button:hover { background: #f5e7c4; }
html[data-theme="dark"] .user-review-emoji-panel { background: #23272c; border-color: #3a3f46; }
html[data-theme="dark"] .user-review-emoji-panel button:hover { background: #33383f; }

/* ===== 书籍页风格（2026-11-01）：上传者投稿时选，ShowInfo.php 在 <html> 上输出 data-book-style（规则见 e/member/class/md_book_style.php）=====
   只作用于信息页 body.page-info；每种风格一套日间变量 + 一套夜间变量（html[data-theme=dark]），下面的通用规则只引用变量 */
html[data-book-style] body.page-info{background:var(--bg);color:var(--ink)}
html[data-book-style] body.page-info .top{background:var(--paper);border-color:var(--line)}
html[data-book-style] body.page-info .panel{background:var(--paper);border-color:var(--line)}
html[data-book-style] body.page-info .panel h3{color:var(--ink);border-bottom-color:var(--line)}
html[data-book-style] body.page-info .panel h3::before{background:var(--accent)}
html[data-book-style] body.page-info .rank{background:var(--rank)}
html[data-book-style] body.page-info .wrap a{color:var(--brand-dark)}
html[data-book-style] body.page-info .wrap a:hover{color:var(--brand)}
html[data-book-style] body.page-info .search-history a{border-color:var(--line);background:var(--chip);color:var(--brand-dark)}
html[data-book-style] body.page-info .publisher-card{background:var(--paper);border-color:var(--line)}
html[data-book-style] body.page-info .publisher-card h3{background:var(--chip);border-bottom-color:var(--line);color:var(--ink)}
html[data-book-style] body.page-info .publisher-follow{background:linear-gradient(135deg,var(--btn1),var(--btn2));border-color:var(--btn2);color:#fff}
html[data-book-style] body.page-info .publisher-follow:hover{background:var(--btn2)}
html[data-book-style] body.page-info .publisher-follow[aria-pressed="true"]{background:var(--chip);border-color:var(--line);color:var(--brand-dark)}
html[data-book-style] body.page-info .top-links a,html[data-book-style] body.page-info .top-links .blue,html[data-book-style] body.page-info .top-links .green{color:var(--brand-dark)}
html[data-book-style] body.page-info .search button{background:linear-gradient(135deg,var(--btn1),var(--btn2));border-color:var(--btn2)}
html[data-book-style] body.page-info .search input{background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-book-style] body.page-info .intro-panel{--intro-fade-color:var(--paper)}
html[data-book-style] body.page-info .panel .body .tips{border-color:var(--line);background:var(--chip);color:var(--ink)}
html[data-book-style] body.page-info .panel .body .tips::before{background:var(--accent)}
html[data-book-style] body.page-info .detail .author-side{border-color:var(--line);background:var(--chip)}
html[data-book-style] body.page-info .detail .author-side h4,html[data-book-style] body.page-info .detail .author-side .classname,html[data-book-style] body.page-info .detail .author-side a{color:var(--brand-dark)}
html[data-book-style] body.page-info .copy-btn{border-color:var(--line);background:var(--paper);color:var(--brand)}
html[data-book-style] body.page-info .copy-btn:hover{background:var(--chip)}
html[data-book-style] body.page-info .sfwj{background:var(--brand);color:var(--on-brand)}
html[data-book-style] body.page-info .download-btn{background:linear-gradient(135deg,var(--btn1),var(--btn2));box-shadow:0 8px 16px var(--btn-shadow);color:#fff!important}
html[data-book-style] body.page-info .download-btn:hover{background:var(--btn2)}
html[data-book-style] body.page-info .mdi-one{border-left-color:var(--accent);background:var(--chip)}
html[data-book-style] body.page-info .ai-review-box{border-color:var(--line);background:var(--chip)}
html[data-book-style] body.page-info .book{border-color:var(--line);background:var(--paper)}

/* 书卷 */
html[data-book-style="paper"] body.page-info{--bg:#ece2cc;--paper:#fbf6e9;--ink:#3d3125;--muted:#7a6a58;--line:#dccbae;--brand:#8a5a2b;--brand-dark:#6f4520;--accent:#a0522d;--chip:#f3e9d4;--rank:#f6eedb;--on-brand:#fff;
  --btn1:#a0682f;--btn2:#7c4a1e;--btn-shadow:rgba(124,74,30,.22);--radius:6px;--shadow:0 2px 10px rgba(80,55,20,.10);
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif}
html[data-theme="dark"][data-book-style="paper"] body.page-info{--bg:#1c1813;--paper:#26201a;--ink:#e2d6c3;--muted:#a8977f;--line:#3d3327;--brand:#d3a26a;--brand-dark:#e2b884;--accent:#d08a52;--chip:#2e261d;--rank:#2a231b;--on-brand:#1c1813;
  --btn1:#a8743d;--btn2:#855a2c;--btn-shadow:rgba(0,0,0,.3);--shadow:0 2px 10px rgba(0,0,0,.35)}
html[data-book-style="paper"] body.page-info .intro-panel .desc,html[data-book-style="ink"] body.page-info .intro-panel .desc{font-size:16px;line-height:2}
html[data-book-style="paper"] body.page-info .panel h3{letter-spacing:.06em}

/* 水墨 */
html[data-book-style="ink"] body.page-info{--bg:#efeee9;--paper:#fcfcfa;--ink:#1d1d1d;--muted:#6b6b6b;--line:#d9d7cf;--brand:#2b2b2b;--brand-dark:#111;--accent:#a3271f;--chip:#f2f1ec;--rank:#f4f3ee;--on-brand:#fff;
  --btn1:#2b2b2b;--btn2:#111;--btn-shadow:rgba(0,0,0,.18);--radius:2px;--shadow:none;
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif}
html[data-theme="dark"][data-book-style="ink"] body.page-info{--bg:#121212;--paper:#1b1b1b;--ink:#e6e6e6;--muted:#9a9a9a;--line:#333;--brand:#d8d8d8;--brand-dark:#f0f0f0;--accent:#d0453a;--chip:#232323;--rank:#202020;--on-brand:#121212;
  --btn1:#3a3a3a;--btn2:#262626;--btn-shadow:rgba(0,0,0,.35)}
html[data-book-style="ink"] body.page-info .download-btn:first-child{background:var(--accent)}

/* 青柠 */
html[data-book-style="fresh"] body.page-info{--bg:#e8f4ec;--paper:#fff;--ink:#1f3a2d;--muted:#5f7a6c;--line:#cfe6d8;--brand:#2f8f5b;--brand-dark:#237049;--accent:#e09f1f;--chip:#eaf7ef;--rank:#effaf3;--on-brand:#fff;
  --btn1:#38a169;--btn2:#2a7f52;--btn-shadow:rgba(42,127,82,.22);--radius:18px;--shadow:0 8px 24px rgba(47,143,91,.10)}
html[data-theme="dark"][data-book-style="fresh"] body.page-info{--bg:#111b16;--paper:#18241e;--ink:#d5e8dc;--muted:#8fae9c;--line:#2c3f34;--brand:#5cc48a;--brand-dark:#7fd6a4;--accent:#e0b04a;--chip:#1e2d25;--rank:#1c2922;--on-brand:#0f1a14;
  --btn1:#2f8f5b;--btn2:#237049;--btn-shadow:rgba(0,0,0,.35);--shadow:0 8px 24px rgba(0,0,0,.3)}

/* 樱粉 */
html[data-book-style="sakura"] body.page-info{--bg:#fbeef3;--paper:#fffafc;--ink:#4a2a36;--muted:#8d6b77;--line:#f1d3dd;--brand:#c4517a;--brand-dark:#a83f65;--accent:#e07a5f;--chip:#fdecf2;--rank:#fff1f6;--on-brand:#fff;
  --btn1:#e06b93;--btn2:#c4517a;--btn-shadow:rgba(196,81,122,.22);--radius:18px;--shadow:0 8px 24px rgba(196,81,122,.10)}
html[data-theme="dark"][data-book-style="sakura"] body.page-info{--bg:#1d1418;--paper:#271b20;--ink:#f0d9e2;--muted:#b893a2;--line:#44303a;--brand:#f08cb0;--brand-dark:#f6a9c5;--accent:#f09a7f;--chip:#32222a;--rank:#2e1f26;--on-brand:#1d1418;
  --btn1:#c4517a;--btn2:#a83f65;--btn-shadow:rgba(0,0,0,.35);--shadow:0 8px 24px rgba(0,0,0,.3)}

/* 简白 */
html[data-book-style="simple"] body.page-info{--bg:#f5f6f8;--paper:#fff;--ink:#222;--muted:#777;--line:#e5e7eb;--brand:#2563eb;--brand-dark:#1d4ed8;--accent:#2563eb;--chip:#f1f5ff;--rank:#f8fafc;--on-brand:#fff;
  --btn1:#3b82f6;--btn2:#2563eb;--btn-shadow:rgba(37,99,235,.18);--radius:8px;--shadow:none}
html[data-theme="dark"][data-book-style="simple"] body.page-info{--bg:#15171b;--paper:#1e2127;--ink:#e5e7eb;--muted:#9ca3af;--line:#343a44;--brand:#60a5fa;--brand-dark:#93c5fd;--accent:#60a5fa;--chip:#232a35;--rank:#20242c;--on-brand:#0f172a;
  --btn1:#3b82f6;--btn2:#2563eb;--btn-shadow:rgba(0,0,0,.35)}

/* 2026-11-01 排行榜页（列表模板 6/7 外层 .body.grid2 两列）里的 .listbg 卡片：后台把列表项换成了分类页的 .listbg，
   原样式只给 .cenMain .catalog 单列用，两列里挤乱。这里按两列重新排：封面左侧固定，「荐」角标压在封面左上，
   标题单行省略，时间单独一行，简介两行，作者/大小/进度/上传用户在底部；收藏按钮固定右上角 */
.body.grid2 > .listbg {
  position: relative;
  min-width: 0;
  min-height: 146px;
  padding: 14px 14px 12px 112px;
  border: 1px solid #ecdcc6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefa 0%, #fffaf1 100%);
  box-shadow: 0 6px 14px rgba(146, 109, 58, 0.07);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}
.body.grid2 > .listbg:hover { border-color: #d9c19c; box-shadow: 0 8px 18px rgba(146, 109, 58, 0.12); }
.body.grid2 > .listbg > .img {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 84px;
  height: 118px;
  border: 1px solid #e3d6c3;
  border-radius: 3px 6px 6px 3px;
  background: #fff;
  overflow: hidden;
  box-shadow: 2px 3px 0 rgba(146, 109, 58, 0.08);
}
.body.grid2 > .listbg > .img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.body.grid2 > .listbg > .badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  margin: 0;
  padding: 0 6px;
  border-radius: 3px 0 6px 0;
  font-size: 11px;
  line-height: 18px;
}
.body.grid2 > .listbg > .classname {
  display: inline-block;
  margin: 0 4px 0 0;
  padding: 0 6px;
  border: 1px solid #d6ebde;
  border-radius: 999px;
  background: #f1faf6;
  color: #2a7b5f;
  font-size: 11px;
  line-height: 18px;
  vertical-align: 2px;
}
.body.grid2 > .listbg > .title {
  display: block;
  margin-right: 58px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.body.grid2 > .listbg > .classname + .title { display: inline-block; max-width: calc(100% - 120px); vertical-align: top; }
.body.grid2 > .listbg > .title a { color: #0b3b2e; font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.body.grid2 > .listbg > .title a:hover { color: #09B295; }
.body.grid2 > .listbg .fav-btn { position: absolute; top: 12px; right: 12px; float: none; margin: 0; }
.body.grid2 > .listbg > .new,
.body.grid2 > .listbg > .old { display: block; margin: 1px 0 0; font-size: 12px; color: #999; }
.body.grid2 > .listbg > .new { color: #e8541e; }
.body.grid2 > .listbg > .new .oldDate { color: inherit; }
.body.grid2 > .listbg > div[style] { padding: 0 !important; }
.body.grid2 > .listbg > div[style]:nth-of-type(2) {
  margin-top: 6px;
  padding-top: 6px !important;
  border-top: 1px dashed #eadfcd;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}
.body.grid2 > .listbg > div[style]:nth-of-type(1) { margin-top: 2px; }/* 2026-11-01 模板里信息行移到简介上面 */
.body.grid2 > .listbg .mainGreen { display: block; color: #555; font-size: 12px; line-height: 1.8; word-break: break-word; }
.body.grid2 > .listbg .mainGreen small { color: #aaa; font-size: 12px; white-space: nowrap; }
.body.grid2 > .listbg .mainGreen small:nth-of-type(3)::before { content: "\A"; white-space: pre; }/* 写作进度起另起一行：作者+大小一行，进度+上传用户一行 */
.body.grid2 > .listbg .mainGreen a { color: var(--brand); }
html[data-theme="dark"] .body.grid2 > .listbg { background: linear-gradient(180deg, #1f2226 0%, #1c1f23 100%); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .body.grid2 > .listbg:hover { border-color: #3a4a46; }
html[data-theme="dark"] .body.grid2 > .listbg > .img { background: #23272c; border-color: #33383e; box-shadow: none; }
html[data-theme="dark"] .body.grid2 > .listbg > .title a { color: #cfe7e2; }
html[data-theme="dark"] .body.grid2 > .listbg > .title a:hover { color: #4fd1b5; }
html[data-theme="dark"] .body.grid2 > .listbg > .classname { background: transparent; border-color: #2f4542; color: #7fd6ca; }
html[data-theme="dark"] .body.grid2 > .listbg > div[style]:nth-of-type(2),
html[data-theme="dark"] .body.grid2 > .listbg .mainGreen { color: #a3a8ae; }
html[data-theme="dark"] .body.grid2 > .listbg > div[style]:nth-of-type(2) { border-top-color: #33383e; }
html[data-theme="dark"] .body.grid2 > .listbg .mainGreen small { color: #7d8187; }
@media (max-width: 560px) {
  .body.grid2 > .listbg { min-height: 128px; padding: 12px 12px 10px 92px; }
  .body.grid2 > .listbg > .img, .body.grid2 > .listbg > .badge { left: 12px; top: 12px; }
  .body.grid2 > .listbg > .img { width: 70px; height: 98px; }
  .body.grid2 > .listbg > .title a { font-size: 15px; }
}

/* 2026-11-01 站长要求简介第二行延伸到封面下面：封面改为左浮动、文字环绕（简介不再用 -webkit-line-clamp 截两行，
   那样会形成独立块整块避开封面；简介长度由模板 [!--smalltext--] 截断控制） */
.body.grid2 > .listbg { min-height: 0; padding-left: 14px; }
.body.grid2 > .listbg > .img { position: relative; left: auto; top: auto; float: left; margin: 0 14px 4px 0; }
.body.grid2 > .listbg > div[style]:nth-of-type(2) { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media (max-width: 560px) {
  .body.grid2 > .listbg { padding-left: 12px; }
  .body.grid2 > .listbg > .img { margin-right: 12px; }
}

/* 2026-11-04 列表页收藏按钮重新设计：书签图标 + 灰色描边圆角；已收藏为主题色实心（覆盖上面旧的橙色样式） */
.listbg .fav-btn{display:inline-flex;align-items:center;gap:4px;margin:2px 0 0 10px;padding:0 12px 0 10px;height:26px;line-height:24px;font-size:12px;font-weight:500;color:var(--muted,#6b7280);background:var(--paper,#fff);border:1px solid var(--line,#e5dccd);border-radius:999px;box-shadow:none;transition:color .15s,background .15s,border-color .15s,box-shadow .15s}
.listbg .fav-btn:before{content:"";display:inline-block;width:13px;height:13px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E") center/contain no-repeat}
.listbg .fav-btn:hover{color:var(--brand-dark,#115e59);background:var(--chip,#eef9f7);border-color:var(--brand,#0f766e)}
.listbg .fav-btn.faved,.listbg .fav-btn.faved:hover{color:#fff;background:linear-gradient(135deg,var(--brand,#0f766e),var(--brand-dark,#115e59));border-color:transparent;box-shadow:0 2px 6px rgba(15,118,110,.25)}
.listbg .fav-btn.faved:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E")}
.listbg .fav-btn.faved:hover{filter:brightness(1.08)}
.listbg .fav-btn.loading{opacity:.5;pointer-events:none}
html[data-theme="dark"] .listbg .fav-btn{color:var(--muted);background:transparent;border-color:var(--line)}
html[data-theme="dark"] .listbg .fav-btn:hover{color:var(--brand-dark);background:var(--chip);border-color:var(--brand)}
html[data-theme="dark"] .listbg .fav-btn.faved,html[data-theme="dark"] .listbg .fav-btn.faved:hover{color:var(--bg);background:var(--brand);border-color:var(--brand);box-shadow:none}

/* 2026-11-04 详情页封面下「加入收藏」按钮重新设计（与列表页收藏按钮同款：书签图标；已收藏=主题色实心，覆盖 theme.js setFavCollected 写的行内样式） */
body.page-info .detail .pic a.copy-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;width:112px;height:32px;margin:0;padding:0 10px;border:1px solid var(--line,#e5dccd);border-radius:999px;background:var(--paper,#fff);color:var(--muted,#6b7280);font-size:13px;font-weight:500;line-height:30px;text-decoration:none;box-shadow:none;transition:color .15s,background .15s,border-color .15s}
body.page-info .detail .pic a.copy-btn:before{content:"";flex:none;width:13px;height:13px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E") center/contain no-repeat}
body.page-info .detail .pic a.copy-btn:hover{color:var(--brand-dark,#115e59);background:var(--chip,#eef9f7);border-color:var(--brand,#0f766e)}
body.page-info .detail .pic a.copy-btn[aria-disabled="true"]{color:#fff!important;background:linear-gradient(135deg,var(--brand,#0f766e),var(--brand-dark,#115e59))!important;border-color:transparent!important;cursor:default!important;opacity:1!important;box-shadow:0 2px 6px rgba(15,118,110,.25)}
body.page-info .detail .pic a.copy-btn[aria-disabled="true"]:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5h12v17l-6-4.2-6 4.2z'/%3E%3C/svg%3E")}
html[data-theme="dark"] body.page-info .detail .pic a.copy-btn{background:transparent;color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] body.page-info .detail .pic a.copy-btn:hover{color:var(--brand-dark);border-color:var(--brand);background:var(--chip)}
html[data-theme="dark"] body.page-info .detail .pic a.copy-btn[aria-disabled="true"]{color:var(--bg)!important;background:var(--brand)!important;border-color:var(--brand)!important;box-shadow:none}
@media (max-width:680px){body.page-info .detail .pic a.copy-btn{width:84px;height:28px;font-size:12px;padding:0 6px}}
/* [2026-11-29] compact header & search-history (aligned with 104) */
.wrap {
  padding-top: 15px;
}
header.top,
html[data-theme="dark"] header.top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 4px !important;
}
header.top > .search {
  margin-top: 0;
}
header.top > .search-history {
  margin-top: 0 !important;
  gap: 6px !important;
  align-items: center;
}
header.top > .search-history a {
  border: 0 !important;
  background: #efe9dc !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  font-size: 13px !important;
  line-height: 1.5;
  color: #5c5449 !important;
  box-shadow: none !important;
  transition: background-color 0.15s, color 0.15s;
}
header.top > .search-history a:nth-of-type(-n+3) {
  background: #faead7 !important;
  color: #b45309 !important;
  font-weight: 500;
}
header.top > .search-history a:hover {
  background: rgba(15, 118, 110, 0.12) !important;
  color: #0b5f58 !important;
  text-decoration: none !important;
}
header.top > .search-history a:nth-of-type(-n+3):hover {
  background: #f5d8b8 !important;
  color: #92400e !important;
}
html[data-theme="dark"] header.top > .search-history a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] header.top > .search-history a:nth-of-type(-n+3) {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
}
html[data-theme="dark"] header.top > .search-history a:hover {
  background: rgba(94, 234, 212, 0.16) !important;
  color: #99f6e4 !important;
}
html[data-theme="dark"] header.top > .search-history a:nth-of-type(-n+3):hover {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fde68a !important;
}
/* [2026-11-28] clean flat pager */
.panel > .body + .body:has(> .pager) {
  padding-top: 0 !important;
}
.body > .pager:first-child {
  margin-top: 0 !important;
}
.pager,
html[data-theme="dark"] .pager {
  margin-top: 12px;
  padding: 4px 0 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 6px;
  font-size: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pager span.pager-total,
html[data-theme="dark"] .pager span.pager-total {
  border: 0 !important;
  background: transparent !important;
  color: var(--muted, #6b7280) !important;
  padding: 0 !important;
  min-width: auto !important;
  height: auto !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  margin-right: 10px;
}
.pager a {
  border: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
  min-width: 26px;
  height: 28px;
  padding: 0 7px !important;
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  line-height: 1;
  color: #5c5449 !important;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.pager a:hover {
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
}
.pager > b,
.pager > span:not(.pager-total) {
  border: 0 !important;
  background: rgba(15, 118, 110, 0.13) !important;
  color: #0f766e !important;
  font-weight: 600;
  border-radius: 6px !important;
  min-width: 26px;
  height: 28px;
  padding: 0 7px !important;
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  line-height: 1;
}
.pager .pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted, #6b7280);
}
.pager .pager-jump input {
  width: 52px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 13px;
}
.pager .pager-jump button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line, #dcd4c6) !important;
  background: transparent !important;
  color: #5c5449 !important;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.pager .pager-jump button:hover {
  border-color: #0f766e !important;
  background: rgba(15, 118, 110, 0.08) !important;
  color: #0f766e !important;
}
html[data-theme="dark"] .pager a {
  color: #9ca3af !important;
}
html[data-theme="dark"] .pager a:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .pager > b,
html[data-theme="dark"] .pager > span:not(.pager-total) {
  background: rgba(58, 165, 151, 0.2) !important;
  color: #5eead4 !important;
}
html[data-theme="dark"] .pager .pager-jump input {
  background: #23272c;
  border-color: #363c46;
  color: #e5e7eb;
}
html[data-theme="dark"] .pager .pager-jump button {
  border-color: #363c46 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .pager .pager-jump button:hover {
  border-color: #3aa597 !important;
  background: rgba(58, 165, 151, 0.15) !important;
  color: #5eead4 !important;
}
/* [2026-11-28] saixuan scheme 1 */
.saixuan,
html[data-theme="dark"] .saixuan {
  margin: 4px 14px 0;
  padding: 6px 0 8px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.saixuan dl {
  display: flex;
  align-items: baseline;
  margin: 0;
  padding: 7px 0;
  border-top: 1px dashed var(--line, #e8dfd0);
}
.saixuan dl:first-child {
  padding-top: 2px;
  border-top: 0;
}
.saixuan dl:last-child {
  padding-bottom: 2px;
}
.saixuan dt {
  flex: 0 0 76px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #8a7f70);
  line-height: 1.6;
}
.saixuan dd {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
}
.saixuan dd a {
  display: inline-block;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  padding: 3px 9px !important;
  font-size: 13px;
  line-height: 1.5;
  color: #5c5449 !important;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.saixuan dd a:hover {
  background: rgba(15, 118, 110, 0.08) !important;
  color: #0f766e !important;
  text-decoration: none !important;
}
.saixuan dd a.selected {
  border: 0 !important;
  background: rgba(15, 118, 110, 0.12) !important;
  color: #0f766e !important;
  font-weight: 600;
  box-shadow: none !important;
}
html[data-theme="dark"] .saixuan dl {
  border-top-color: #2f353e;
}
html[data-theme="dark"] .saixuan dt {
  color: #8c95a3;
}
html[data-theme="dark"] .saixuan dd a {
  color: #9ca3af !important;
}
html[data-theme="dark"] .saixuan dd a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .saixuan dd a.selected {
  background: rgba(58, 165, 151, 0.18) !important;
  color: #5eead4 !important;
}
.saixuan dd a.sx-yr-hidden {
  display: none !important;
}
.saixuan dd .sx-yr-toggle {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  color: #0f766e;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.saixuan dd .sx-yr-toggle:hover {
  background: rgba(15, 118, 110, 0.08);
  color: #0b5f58;
}
html[data-theme="dark"] .saixuan dd .sx-yr-toggle {
  color: #5eead4;
}
html[data-theme="dark"] .saixuan dd .sx-yr-toggle:hover {
  background: rgba(58, 165, 151, 0.14);
  color: #99f6e4;
}
.saixuan .sx-mob-txt {
  display: none;
}
@media (max-width: 680px) {
  .saixuan,
  html[data-theme="dark"] .saixuan {
    margin: 4px 10px 0;
    padding: 4px 0 6px;
  }
  .saixuan dl {
    display: block;
    padding: 6px 0;
  }
  .saixuan dt {
    display: none;
  }
  .saixuan .sx-pc-txt {
    display: none;
  }
  .saixuan .sx-mob-txt {
    display: inline;
  }
  .saixuan dd {
    gap: 4px 6px;
  }
  .saixuan dd a,
  .saixuan dd .sx-yr-toggle {
    padding: 3px 8px !important;
    font-size: 13px;
  }
}
/* [2026-11-28] unified header search bar with filters */
header.top form.search {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 102px 102px minmax(0, 1fr) 118px;
  gap: 0;
  align-items: stretch;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: visible;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
header.top form.search:hover {
  border-color: #d6c6ad;
}
header.top form.search:focus-within {
  border-color: rgba(15, 118, 110, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
header.top form.search .search-sel {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
header.top form.search .search-sel:first-of-type {
  border-radius: 9px 0 0 9px;
  overflow: hidden;
}
header.top form.search .search-sel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  bottom: 11px;
  width: 1px;
  background: rgba(120, 100, 70, 0.18);
  pointer-events: none;
}
header.top form.search .search-sel select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 24px 0 12px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  color: #5c4b34;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c7a62' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 10px 6px;
  transition: background-color .15s ease;
}
header.top form.search .search-sel select:hover {
  background-color: rgba(15, 118, 110, 0.05);
}
header.top form.search .search-sel select:focus {
  outline: none;
}
header.top form.search .search-suggest-wrap {
  position: relative;
  min-width: 0;
}
header.top form.search input[type="text"],
html[data-theme="dark"] header.top form.search input[type="text"] {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 13px;
  background: transparent;
  box-shadow: none;
}
header.top form.search input[type="text"]:hover,
header.top form.search input[type="text"]:focus,
html[data-theme="dark"] header.top form.search input[type="text"]:hover,
html[data-theme="dark"] header.top form.search input[type="text"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
header.top form.search button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: -1px -1px -1px 0;
  min-height: 46px;
  height: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: filter .15s ease;
}
header.top form.search button:hover {
  filter: brightness(1.06);
}
html[data-theme="dark"] header.top form.search:hover {
  border-color: #4a5058;
}
html[data-theme="dark"] header.top form.search:focus-within {
  background: #23272c;
  border-color: rgba(92, 194, 180, 0.5);
  box-shadow: 0 0 0 3px rgba(92, 194, 180, 0.15);
}
html[data-theme="dark"] header.top form.search .search-sel::after {
  background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] header.top form.search .search-sel select {
  color: #d1d5db;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] header.top form.search .search-sel select:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] header.top form.search .search-sel select option {
  background: #23272c;
  color: #e5e7eb;
}
@media (max-width: 680px) {
  header.top form.search {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  header.top form.search .search-sel {
    border-bottom: 1px solid var(--line);
  }
  header.top form.search .search-sel:first-of-type {
    grid-column: 1 / 4;
    border-radius: 9px 0 0 0;
  }
  header.top form.search .search-sel:nth-of-type(2) {
    grid-column: 4 / 7;
    border-radius: 0 9px 0 0;
    overflow: hidden;
  }
  header.top form.search .search-sel:nth-of-type(2)::after {
    display: none;
  }
  header.top form.search .search-sel select {
    height: 38px;
    line-height: 38px;
    font-size: 14px !important;
  }
  header.top form.search .search-suggest-wrap {
    grid-column: 1 / 5;
  }
  header.top form.search button {
    grid-column: 5 / 7;
    margin: 0 -1px -1px 0;
    min-height: 45px;
    height: auto;
    border-radius: 0 0 10px 0;
  }
}
/* [2026-11-29] review area plan B */
.page-info .intro-panel .ai-review-box,
html[data-book-style] body.page-info .ai-review-box,
html[data-theme="dark"] .page-info .intro-panel .ai-review-box,
html[data-theme="dark"] html[data-book-style] body.page-info .ai-review-box {
  margin-top: 18px !important;
  padding: 16px 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--line, #e6e0d5) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .page-info .intro-panel .ai-review-box {
  border-top-color: #333840 !important;
}
.ur-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.ur-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ur-head .ai-review-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink, #1f2937) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ur-head .ai-review-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand, #0f766e);
}
.ur-count {
  font-size: 13px;
  color: var(--muted, #6b7280);
  font-weight: 500;
}
.ur-rec-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(207, 138, 58, 0.09);
  color: #cf8a3a;
  font-size: 12px;
  font-weight: 600;
}
.ur-rec-pill[hidden],
.ur-rec-pill:empty,
.ur-tags-bar[hidden],
.ur-tags-bar:empty,
.ur-count[hidden],
.ai-review-box .user-review-empty[hidden],
.ur-like-cnt:empty {
  display: none !important;
}
.ai-review-box .ai-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  margin: 10px 0 0 !important;
  padding-top: 0 !important;
}
.ai-review-box .ai-review-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line, #dcd4c6);
  background: var(--paper, #fff);
  color: var(--ink, #374151);
  box-shadow: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.ai-review-box .ai-review-btn:hover:not(:disabled) {
  transform: none;
  border-color: var(--brand, #0f766e);
  background: var(--chip, #eef9f7);
  color: var(--brand-dark, #115e59);
}
.ai-review-box .ai-review-btn.ai-review-btn-ai,
.ai-review-box .ai-review-btn.user-review-btn {
  background: transparent !important;
  border-color: var(--line, #dcd4c6) !important;
  color: var(--muted, #6b7280) !important;
  font-weight: 500;
}
.ai-review-box .ai-review-btn.ai-review-btn-ai:hover:not(:disabled),
.ai-review-box .ai-review-btn.user-review-btn:hover:not(:disabled) {
  background: var(--chip, #eef9f7) !important;
  border-color: var(--brand, #0f766e) !important;
  color: var(--brand-dark, #115e59) !important;
}
.ur-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--line, #e6e0d5);
}
.ur-tags-lbl {
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.ur-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--ink, #374151);
  font-size: 12px;
}
.ur-tag-pill em {
  font-style: normal;
  color: #cf8a3a;
  font-weight: 600;
}

/* Single-layer composer form */
.ai-review-box .user-review-form {
  margin: 10px 0 4px !important;
  padding: 0 !important;
  border: 1px solid var(--line, #dcd4c6) !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.015) !important;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ai-review-box .user-review-form:focus-within {
  border-color: var(--brand, #0f766e) !important;
  background: var(--paper, #fff) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.ur-compose-top {
  padding: 8px 12px;
  border-bottom: 1px dashed var(--line, #e6e0d5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ur-compose-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.ur-compose-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  margin-right: 2px;
}
.ur-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid var(--line, #dcd4c6);
  background: var(--paper, #fff);
  color: var(--muted, #6b7280);
  cursor: pointer;
  transition: all .15s ease;
}
.ur-chip:hover {
  border-color: var(--brand, #0f766e);
  color: var(--ink, #1f2937);
}
.ur-chip.on {
  background: var(--chip, #eef9f7);
  border-color: var(--brand, #0f766e);
  color: var(--brand-dark, #115e59);
  font-weight: 600;
}
.ai-review-box .user-review-form textarea {
  display: block;
  width: 100%;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 140px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink, #1f2937);
}
.ai-review-box .user-review-form textarea:focus {
  border: 0 !important;
  background: transparent !important;
}
.ai-review-box .user-review-form-bar {
  margin-top: 0 !important;
  padding: 7px 12px;
  border-top: 1px solid var(--line, #e6e0d5);
  background: var(--paper, #fff);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ur-spoiler-chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, #6b7280);
  cursor: pointer;
  user-select: none;
}
.ur-spoiler-chk input {
  accent-color: var(--brand, #0f766e);
  cursor: pointer;
}
.ai-review-box .user-review-submit-btn {
  background: var(--brand, #0f766e) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.ai-review-box .user-review-submit-btn:hover:not(:disabled) {
  background: var(--brand-dark, #115e59) !important;
}
.ai-review-box .user-review-cancel-btn {
  background: transparent !important;
  border-color: var(--line, #dcd4c6) !important;
  color: var(--muted, #6b7280) !important;
}
.ai-review-box .user-review-cancel-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--ink, #1f2937) !important;
}
.ai-review-box .user-review-emoji-panel {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px dashed var(--line, #e6e0d5) !important;
  border-radius: 0 !important;
  background: var(--paper, #fff) !important;
}

/* Unified review items (shared by both user & AI reviews) */
.ai-review-box .ai-review-item {
  padding: 12px 2px !important;
  gap: 11px !important;
  border-top: 1px solid var(--line, #ece6da) !important;
}
.ai-review-box .ai-review-list .ai-review-item:first-child {
  border-top: 0 !important;
  padding-top: 8px !important;
}
.ai-review-box .ai-review-avatar {
  width: 34px !important;
  height: 34px !important;
  border-color: var(--line, #e5ddd0) !important;
}
.ai-review-box .ai-review-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.7;
}
.ur-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}
.ur-row-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.ai-review-box .ai-review-name,
.ai-review-box .user-review-item .ai-review-name {
  margin-right: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--brand-dark, #115e59) !important;
}
.ur-row-top .ai-review-date {
  margin-left: 0 !important;
  font-size: 12px;
  color: var(--muted, #9ca3af);
}
.ur-att {
  display: inline-block;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.ur-att-1, .ur-att-2 { background: rgba(207, 138, 58, 0.09); color: #cf8a3a; }
.ur-att-3 { background: rgba(107, 114, 128, 0.10); color: #6b7280; }
.ur-att-4 { background: rgba(220, 38, 38, 0.10); color: #dc2626; }
.ur-row-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 1px 0 2px;
}
.ur-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted, #6b7280);
}
.ur-row-text {
  color: var(--ink, #1f2937);
  word-break: break-word;
  white-space: normal;
}
.ur-row-text .ai-review-text {
  white-space: pre-line;
}
.ur-spoiler {
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.035);
  vertical-align: middle;
  cursor: pointer;
}
.ur-spoiler.is-hidden .ai-review-text {
  filter: blur(5px);
  opacity: 0.5;
  user-select: none;
}
.ur-spoiler.is-hidden::after {
  content: "含剧透内容 · 点击查看";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark, #115e59);
}
.ur-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 1px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a8adb8;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: -2px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.ur-heart-ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #b8bec8;
  stroke-width: 1.8;
  transition: fill .15s ease, stroke .15s ease, transform .15s ease;
}
.ur-like-btn:hover:not(:disabled) {
  background: rgba(217, 107, 117, 0.08);
  color: #c96470;
}
.ur-like-btn:hover:not(:disabled) .ur-heart-ico {
  fill: rgba(217, 107, 117, 0.14);
  stroke: #c96470;
}
.ur-like-btn.is-liked {
  color: #c96470;
  font-weight: 500;
}
.ur-like-btn.is-liked .ur-heart-ico {
  fill: #d96b75;
  stroke: #d96b75;
}
.ur-like-btn.is-liked:hover:not(:disabled) .ur-heart-ico {
  fill: #c95c66;
  stroke: #c95c66;
}
.ur-like-btn:active:not(:disabled) .ur-heart-ico {
  transform: scale(1.18);
}
.user-review-del {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted, #9ca3af);
  text-decoration: none;
  vertical-align: baseline;
}
.user-review-del:hover {
  color: #dc2626;
}
.ai-review-box .user-review-empty {
  text-align: center;
  padding: 14px 8px 6px;
  font-size: 13px;
  color: var(--muted, #9ca3af);
}
.ai-review-box .review-load-more {
  margin: 10px 0 2px;
  border: 1px dashed var(--line, #d8d0c2);
  border-radius: 8px;
  background: transparent;
  color: var(--brand-dark, #115e59);
}
.ai-review-box .review-load-more:hover:not(:disabled) {
  background: var(--chip, #eef9f7);
  border-color: var(--brand, #0f766e);
}

/* Dark theme overrides */
html[data-theme="dark"] .ur-head .ai-review-title { color: #e5e7eb !important; }
html[data-theme="dark"] .ur-head .ai-review-title::before { background: #3aa597; }
html[data-theme="dark"] .ur-rec-pill { background: rgba(207, 138, 58, 0.16); color: #e0a052; }
html[data-theme="dark"] .ur-tags-bar { border-bottom-color: #333840; }
html[data-theme="dark"] .ur-tag-pill { background: rgba(255, 255, 255, 0.05); color: #cbd5e1; }
html[data-theme="dark"] .ur-tag-pill em { color: #e0a052; }
html[data-theme="dark"] .ai-review-box .ai-review-btn { background: #23272c; border-color: #3a3f46; color: #cbd5e1; }
html[data-theme="dark"] .ai-review-box .ai-review-btn:hover:not(:disabled) { background: rgba(58, 165, 151, 0.14); border-color: #3aa597; color: #5eead4; }
html[data-theme="dark"] .ai-review-box .ai-review-btn.ai-review-btn-ai,
html[data-theme="dark"] .ai-review-box .ai-review-btn.user-review-btn { background: transparent !important; border-color: #3a3f46 !important; color: #9ca3af !important; }
html[data-theme="dark"] .ai-review-box .ai-review-btn.ai-review-btn-ai:hover:not(:disabled),
html[data-theme="dark"] .ai-review-box .ai-review-btn.user-review-btn:hover:not(:disabled) { background: rgba(58, 165, 151, 0.14) !important; border-color: #3aa597 !important; color: #5eead4 !important; }
html[data-theme="dark"] .ai-review-box .user-review-submit-btn { background: #256e65 !important; color: #ecfdf5 !important; }
html[data-theme="dark"] .ai-review-box .user-review-submit-btn:hover:not(:disabled) { background: #2f857a !important; }
html[data-theme="dark"] .ai-review-box .user-review-form { border-color: #3a3f46 !important; background: #1e2227 !important; }
html[data-theme="dark"] .ai-review-box .user-review-form:focus-within { border-color: #3aa597 !important; background: #23272c !important; box-shadow: 0 0 0 3px rgba(58, 165, 151, 0.16); }
html[data-theme="dark"] .ur-compose-top { border-bottom-color: #333840; }
html[data-theme="dark"] .ur-chip { background: #23272c; border-color: #3a3f46; color: #9ca3af; }
html[data-theme="dark"] .ur-chip:hover { border-color: #3aa597; color: #e5e7eb; }
html[data-theme="dark"] .ur-chip.on { background: rgba(58, 165, 151, 0.18); border-color: #3aa597; color: #5eead4; }
html[data-theme="dark"] .ai-review-box .user-review-form textarea { color: #e5e7eb !important; background: transparent !important; }
html[data-theme="dark"] .ai-review-box .user-review-form-bar,
html[data-theme="dark"] .ai-review-box .user-review-emoji-panel { background: #23272c !important; border-color: #333840 !important; }
html[data-theme="dark"] .ai-review-box .user-review-cancel-btn { border-color: #3a3f46 !important; color: #9ca3af !important; }
html[data-theme="dark"] .ai-review-box .ai-review-item { border-top-color: #2f343c !important; }
html[data-theme="dark"] .ai-review-box .ai-review-name,
html[data-theme="dark"] .ai-review-box .user-review-item .ai-review-name { color: #5eead4 !important; }
html[data-theme="dark"] .ur-row-text { color: #d1d5db; }
html[data-theme="dark"] .ur-att-1, html[data-theme="dark"] .ur-att-2 { background: rgba(207, 138, 58, 0.16); color: #e0a052; }
html[data-theme="dark"] .ur-att-3 { background: rgba(156, 163, 175, 0.14); color: #9ca3af; }
html[data-theme="dark"] .ur-att-4 { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
html[data-theme="dark"] .ur-tag { background: rgba(255, 255, 255, 0.06); color: #9ca3af; }
html[data-theme="dark"] .ur-spoiler { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .ur-spoiler.is-hidden::after { color: #5eead4; }
html[data-theme="dark"] .ur-like-btn { color: #6b7280; }
html[data-theme="dark"] .ur-heart-ico { fill: none; stroke: #6b7280; }
html[data-theme="dark"] .ur-like-btn:hover:not(:disabled) { background: rgba(217, 119, 130, 0.12); color: #d6858f; }
html[data-theme="dark"] .ur-like-btn:hover:not(:disabled) .ur-heart-ico { fill: rgba(217, 119, 130, 0.16); stroke: #d6858f; }
html[data-theme="dark"] .ur-like-btn.is-liked { color: #d6858f; }
html[data-theme="dark"] .ur-like-btn.is-liked .ur-heart-ico { fill: #cf727d; stroke: #cf727d; }
html[data-theme="dark"] .ur-like-btn.is-liked:hover:not(:disabled) .ur-heart-ico { fill: #dc7e89; stroke: #dc7e89; }
html[data-theme="dark"] .ai-review-box .review-load-more { border-color: #3a3f46; color: #5eead4; }
html[data-theme="dark"] .ai-review-box .review-load-more:hover:not(:disabled) { background: rgba(58, 165, 151, 0.14); border-color: #3aa597; }


/* [2026-11-29] mobile top-nav plan A (crimson solid + 5 color groups) */
.mobile-nav-tools,
.mobile-nav-panel,
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 680px) {
  body {
    padding-top: 52px;
  }
  .top-float-inner {
    height: 46px;
    padding: 0 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .top-float-nav {
    display: none !important;
  }
  .top-float-auth {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
  .top-float-auth .top-avatar-menu {
    display: none !important;
  }
  .top-float-auth .user-name-link {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    padding: 0 2px !important;
  }
  .top-float-auth a:not(.avatar-link):not(.user-name-link):not(.user-msg-badge) {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 28px;
  }
  .mobile-nav-tools {
    width: auto !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }
  .mobile-nav-back,
  .mobile-nav-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-height: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s;
  }
  .mobile-nav-back svg,
  .mobile-nav-home svg {
    display: block;
  }
  .mobile-nav-back:hover,
  .mobile-nav-home:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .mobile-nav-menu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    height: 36px;
    padding: 0 4px;
    border-radius: 6px;
    border: 0 !important;
    background: transparent !important;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: opacity .15s;
  }
  .mobile-nav-menu svg {
    display: block;
    flex: 0 0 auto;
  }
  .mobile-nav-menu::before {
    content: none !important;
    display: none !important;
  }
  .top-float.mobile-open .mobile-nav-menu,
  .mobile-nav-menu:hover {
    background: transparent !important;
    border: 0 !important;
    opacity: 0.85;
  }
  .mobile-nav-backdrop {
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 18, 24, 0.48);
    z-index: 1200;
    display: none;
  }
  .top-float.mobile-open .mobile-nav-backdrop {
    display: block;
  }
  .mobile-nav-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 8px !important;
    right: 8px !important;
    z-index: 1202 !important;
    padding: 0 !important;
    background: #3b0b17 !important;
    border: 1px solid #5c192a !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 32px rgba(10, 2, 5, 0.48) !important;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    display: none;
  }
  .top-float.mobile-open .mobile-nav-panel {
    display: block;
  }
  .mnav-head {
    padding: 9px 12px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #dfb7c0;
    border-bottom: 1px dashed #561828;
  }
  .mnav-home {
    color: #5eead4;
    font-weight: 600;
    text-decoration: none;
  }
  .mnav-body {
    padding: 9px 10px 10px;
  }
  .mnav-grp {
    margin-bottom: 9px;
  }
  .mnav-grp:last-child {
    margin-bottom: 0;
  }
  .mnav-grp-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
  }
  .mnav-bar {
    width: 3px;
    height: 11px;
    border-radius: 99px;
    display: inline-block;
  }
  .mnav-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .mnav-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .mnav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    color: #fff5f7;
    border: 1px solid transparent;
    transition: all .14s ease;
  }
  .mnav-grp-fem .mnav-grp-hd { color: #ffb8cc; }
  .mnav-grp-fem .mnav-bar    { background: #ffb8cc; }
  .mnav-grp-fem .mnav-pill   { background: rgba(255, 184, 204, 0.14); border-color: rgba(255, 184, 204, 0.28); }
  .mnav-grp-fem .mnav-pill.active { background: #ffb8cc; border-color: #ffb8cc; color: #2b0711; font-weight: 700; }

  .mnav-grp-bl .mnav-grp-hd  { color: #dec8ff; }
  .mnav-grp-bl .mnav-bar     { background: #dec8ff; }
  .mnav-grp-bl .mnav-pill    { background: rgba(222, 200, 255, 0.14); border-color: rgba(222, 200, 255, 0.28); }
  .mnav-grp-bl .mnav-pill.active { background: #dec8ff; border-color: #dec8ff; color: #200c33; font-weight: 700; }

  .mnav-grp-ncp .mnav-grp-hd { color: #99f6e4; }
  .mnav-grp-ncp .mnav-bar    { background: #99f6e4; }
  .mnav-grp-ncp .mnav-pill   { background: rgba(153, 246, 228, 0.14); border-color: rgba(153, 246, 228, 0.28); }
  .mnav-grp-ncp .mnav-pill.active { background: #99f6e4; border-color: #99f6e4; color: #082f2c; font-weight: 700; }

  .mnav-grp-mal .mnav-grp-hd { color: #b8dbff; }
  .mnav-grp-mal .mnav-bar    { background: #b8dbff; }
  .mnav-grp-mal .mnav-pill   { background: rgba(184, 219, 255, 0.14); border-color: rgba(184, 219, 255, 0.28); }
  .mnav-grp-mal .mnav-pill.active { background: #b8dbff; border-color: #b8dbff; color: #0c223b; font-weight: 700; }

  .mnav-grp-oth .mnav-grp-hd { color: #ffd6a3; }
  .mnav-grp-oth .mnav-bar    { background: #ffd6a3; }
  .mnav-grp-oth .mnav-pill   { background: rgba(255, 214, 163, 0.14); border-color: rgba(255, 214, 163, 0.28); }
  .mnav-grp-oth .mnav-pill.active { background: #ffd6a3; border-color: #ffd6a3; color: #331c05; font-weight: 700; }

  .mnav-foot {
    padding: 9px 10px;
    border-top: 1px solid #561828;
    background: #320813;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
  }
  .mnav-foot a {
    font-size: 12px;
    color: #ecd1d8;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
  }
  .mnav-foot a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
  .mnav-foot a.mnav-danger:hover {
    color: #fca5a5;
  }
}

@media (max-width: 360px) {
  .mnav-pill {
    font-size: 11.5px;
    padding: 0 2px;
  }
  .top-float-auth .user-name-link {
    max-width: 56px;
  }
}


/* [2026-11-29] mobile catalog/search/toplist card scheme B (status title-right + 2-row sub meta + fav/cat under cover + lighter intro) */
.cenMain .catalog .listbg .m-status-pill,
.cenMain .catalog .listbg .m-card-sub,
.cenMain .catalog .listbg .m-left-cat,
.body.grid2 > .listbg .m-status-pill,
.body.grid2 > .listbg .m-card-sub,
.body.grid2 > .listbg .m-left-cat {
  display: none;
}

@media (max-width: 680px) {
  .cenMain .catalog .listbg {
    position: relative;
    min-height: 0;
    margin: 0 0 11px;
    padding: 12px 12px 10px 12px;
    border-radius: 14px;
    overflow: hidden;
  }
  .cenMain .catalog .listbg .img {
    position: relative;
    left: auto;
    top: auto;
    float: left;
    width: 72px;
    height: 100px;
    margin: 0 11px 32px 0;
    padding: 0;
    border-radius: 7px;
    border: 1px solid #ecdcc6;
    box-shadow: 0 3px 8px rgba(33, 21, 11, 0.12);
    overflow: hidden;
  }
  .cenMain .catalog .listbg.m-has-cat .img,
  .body.grid2 > .listbg.m-has-cat > .img {
    margin-bottom: 62px;
  }
  .cenMain .catalog .listbg > .fav-btn,
  .body.grid2 > .listbg > .fav-btn {
    position: absolute;
    left: 12px;
    right: auto;
    top: 118px;
    float: none;
    width: 72px;
    height: 24px;
    margin: 0 !important;
    padding: 0 4px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11.5px;
    line-height: 22px;
    border-radius: 999px;
    z-index: 2;
  }
  .cenMain .catalog .listbg > .fav-btn:before,
  .body.grid2 > .listbg > .fav-btn:before {
    width: 11px;
    height: 11px;
  }
  .cenMain .catalog .listbg > .m-left-cat,
  .body.grid2 > .listbg > .m-left-cat {
    position: absolute;
    left: 12px;
    top: 148px;
    width: 72px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(215, 202, 182, 0.55);
    background: rgba(255, 255, 255, 0.45);
    color: #8c8275;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
    overflow: hidden;
    z-index: 2;
  }
  .cenMain .catalog .listbg > .m-left-cat a,
  .body.grid2 > .listbg > .m-left-cat a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    line-height: 22px;
  }
  .cenMain .catalog .listbg > .m-left-cat mark.search-hit,
  .body.grid2 > .listbg > .m-left-cat mark.search-hit {
    padding: 0 1px;
  }
  .cenMain .catalog .listbg > .m-status-pill,
  .body.grid2 > .listbg > .m-status-pill {
    float: right;
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin: 2px 0 2px 8px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .cenMain .catalog .listbg .m-status-done,
  .body.grid2 > .listbg .m-status-done {
    background: #ecf9f4;
    border: 1px solid #b7e4d3;
    color: #0f766e;
  }
  .cenMain .catalog .listbg .m-status-extra,
  .body.grid2 > .listbg .m-status-extra {
    background: #fff5e9;
    border: 1px solid #f2cf9e;
    color: #b45309;
  }
  .cenMain .catalog .listbg .m-status-ing,
  .body.grid2 > .listbg .m-status-ing {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #4b5563;
  }
  .cenMain .catalog .listbg .badge {
    display: inline-block;
    margin: 0 5px 0 0;
    padding: 0 5px;
    font-size: 11px;
    line-height: 18px;
    border-radius: 4px;
    vertical-align: 1px;
  }
  .cenMain .catalog .listbg .classname,
  .body.grid2 > .listbg .classname {
    margin: 0 5px 0 0;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.4;
    vertical-align: 1px;
  }
  .cenMain .catalog .listbg[data-mcard-v1="1"].m-has-cat > .classname,
  .body.grid2 > .listbg[data-mcard-v1="1"].m-has-cat > .classname {
    display: none !important;
  }
  .cenMain .catalog .listbg .title {
    display: inline;
  }
  .cenMain .catalog .listbg .title a,
  .body.grid2 > .listbg > .title a {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.42;
    word-break: break-word;
  }
  .cenMain .catalog .listbg[data-mcard-v1="1"] > .new,
  .cenMain .catalog .listbg[data-mcard-v1="1"] > .old,
  .cenMain .catalog .listbg[data-mcard-v1="1"] > .m-card-meta,
  .body.grid2 > .listbg[data-mcard-v1="1"] > .new,
  .body.grid2 > .listbg[data-mcard-v1="1"] > .old,
  .body.grid2 > .listbg[data-mcard-v1="1"] > .m-card-meta {
    display: none !important;
  }
  .cenMain .catalog .listbg .m-card-sub,
  .body.grid2 > .listbg .m-card-sub {
    display: flex;
    flex-direction: column;
    gap: 3px;
    clear: right;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
  }
  .cenMain .catalog .listbg .m-sub-row1,
  .body.grid2 > .listbg .m-sub-row1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .cenMain .catalog .listbg .m-sub-author,
  .body.grid2 > .listbg .m-sub-author {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: #555;
  }
  .cenMain .catalog .listbg .m-sub-author small,
  .cenMain .catalog .listbg .m-sub-size small,
  .cenMain .catalog .listbg .m-sub-uploader small,
  .body.grid2 > .listbg .m-sub-author small,
  .body.grid2 > .listbg .m-sub-size small,
  .body.grid2 > .listbg .m-sub-uploader small {
    color: #9a8f80;
    font-size: 11.5px;
    flex: none;
    white-space: nowrap;
  }
  .cenMain .catalog .listbg .m-sub-author a,
  .body.grid2 > .listbg .m-sub-author a {
    color: var(--brand, #0f766e);
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cenMain .catalog .listbg .m-sub-size,
  .body.grid2 > .listbg .m-sub-size {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex: none;
    color: #6b6256;
  }
  .cenMain .catalog .listbg .m-sub-row2,
  .body.grid2 > .listbg .m-sub-row2 {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .cenMain .catalog .listbg .m-sub-uploader,
  .body.grid2 > .listbg .m-sub-uploader {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: #6b6256;
  }
  .cenMain .catalog .listbg .m-sub-uploader a,
  .body.grid2 > .listbg .m-sub-uploader a {
    color: var(--brand, #0f766e);
    opacity: 0.9;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cenMain .catalog .listbg .m-sub-time,
  .body.grid2 > .listbg .m-sub-time {
    white-space: nowrap;
    flex: none;
    color: #9a8f80;
  }
  .cenMain .catalog .listbg .m-sub-time.is-new,
  .cenMain .catalog .listbg .m-sub-time.is-new .oldDate,
  .body.grid2 > .listbg .m-sub-time.is-new,
  .body.grid2 > .listbg .m-sub-time.is-new .oldDate {
    color: #d9481f;
  }
  .cenMain .catalog .listbg > div[style]:not(.m-card-meta):not(:has(> .mainGreen)),
  .cenMain .catalog .listbg > .m-card-intro {
    display: block;
    clear: none;
    margin-top: 6px;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.65;
    color: #9b948a;
    word-break: break-word;
  }
  .body.grid2:has(> .listbg) {
    gap: 0;
    padding: 4px 10px 8px;
  }
  .body.grid2 > .listbg {
    margin: 0;
    min-height: 0;
    padding: 14px 8px 14px 8px;
    border: 0;
    border-bottom: 1px solid rgba(180, 155, 115, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .body.grid2 > .listbg:last-child {
    border-bottom: 0;
  }
  .body.grid2 > .listbg:hover {
    background: rgba(15, 118, 110, 0.03);
    border-radius: 10px;
    box-shadow: none;
  }
  .body.grid2 > .listbg > .img {
    position: relative;
    left: auto;
    top: auto;
    float: left;
    width: 72px;
    height: 100px;
    margin: 0 11px 32px 0;
    padding: 0;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 8px rgba(33, 21, 11, 0.12);
    overflow: hidden;
  }
  .body.grid2 > .listbg > .fav-btn {
    left: 8px;
    top: 120px;
  }
  .body.grid2 > .listbg > .m-left-cat {
    left: 8px;
    top: 150px;
  }
  .body.grid2 > .listbg > .badge {
    position: static;
    left: auto;
    top: auto;
    display: inline-block;
    margin: 0 5px 0 0;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 18px;
    vertical-align: 1px;
  }
  .body.grid2 > .listbg > .title,
  .body.grid2 > .listbg > .classname + .title {
    display: inline;
    margin-right: 0;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    vertical-align: baseline;
  }
  .body.grid2 > .listbg > div[style]:nth-of-type(2),
  .body.grid2 > .listbg > .m-card-intro {
    display: block;
    clear: none;
    margin-top: 6px;
    padding: 0 !important;
    border-top: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #9b948a;
    word-break: break-word;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .img {
    border-color: #33383e;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  }
  html[data-theme="dark"] .body.grid2 > .listbg {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
  }
  html[data-theme="dark"] .body.grid2 > .listbg:last-child {
    border-bottom: 0;
  }
  html[data-theme="dark"] .body.grid2 > .listbg:hover {
    background: rgba(255, 255, 255, 0.025);
  }
  html[data-theme="dark"] .body.grid2 > .listbg > .img {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  }
  html[data-theme="dark"] .cenMain .catalog .listbg > .m-left-cat,
  html[data-theme="dark"] .body.grid2 > .listbg > .m-left-cat {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.03);
    color: #8b949e;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg > div[style]:not(.m-card-meta):not(:has(> .mainGreen)),
  html[data-theme="dark"] .cenMain .catalog .listbg > .m-card-intro,
  html[data-theme="dark"] .body.grid2 > .listbg > div[style]:nth-of-type(2),
  html[data-theme="dark"] .body.grid2 > .listbg > .m-card-intro {
    color: #6d747e;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-author,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-size,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-uploader,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-author,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-size,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-uploader {
    color: #9ca3af;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-author small,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-size small,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-uploader small,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-time,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-author small,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-size small,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-uploader small,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-time {
    color: #6e7681;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-author a,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-uploader a,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-author a,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-uploader a {
    color: #4fd1b5;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-time.is-new,
  html[data-theme="dark"] .cenMain .catalog .listbg .m-sub-time.is-new .oldDate,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-time.is-new,
  html[data-theme="dark"] .body.grid2 > .listbg .m-sub-time.is-new .oldDate {
    color: #f4845f;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-status-done,
  html[data-theme="dark"] .body.grid2 > .listbg .m-status-done {
    background: rgba(79, 209, 181, 0.12);
    border-color: rgba(79, 209, 181, 0.28);
    color: #5eead4;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-status-extra,
  html[data-theme="dark"] .body.grid2 > .listbg .m-status-extra {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
  }
  html[data-theme="dark"] .cenMain .catalog .listbg .m-status-ing,
  html[data-theme="dark"] .body.grid2 > .listbg .m-status-ing {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
  }
}

/* [2026-11-30] mobile float tools Option D: topbar qd+theme icons & on-demand circular back-to-top */
.top-mobile-tools {
  display: none;
}
.float-tools #toolTop .ft-ico {
  display: none;
}

@media (max-width: 680px) {
  .top-float-inner {
    gap: 6px;
  }
  .top-mobile-tools {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .top-mobile-tools + .top-float-auth {
    margin-left: 0 !important;
  }
  .top-float-auth .user-name-link {
    max-width: 62px;
  }
  .top-qd-btn,
  .top-theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 36px;
    padding: 0;
    border-radius: 7px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background-color .15s, transform .12s;
  }
  .top-qd-btn svg,
  .top-theme-btn svg {
    display: block;
  }
  .top-qd-btn:hover,
  .top-theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .top-qd-btn[hidden] {
    display: none !important;
  }
  .top-qd-btn {
    color: #d8f5ee;
  }
  .top-qd-btn.is-unsigned {
    color: #7ef2de;
  }
  .top-qd-btn .top-qd-dot {
    display: none;
    position: absolute;
    top: 6px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 1.5px #4b1821;
  }
  .top-qd-btn.is-unsigned .top-qd-dot {
    display: block;
  }
  html[data-theme="dark"] .top-qd-btn .top-qd-dot {
    box-shadow: 0 0 0 1.5px #241418;
  }
  .top-theme-btn {
    color: #fff5e6;
  }
  .top-theme-btn.is-dark {
    color: #fcd34d;
  }
  .top-qd-btn:active,
  .top-theme-btn:active {
    transform: scale(0.94);
  }

  html.has-top-theme .float-tools .theme-toggle-btn {
    display: none !important;
  }
  .float-tools {
    right: 12px;
    bottom: 16px;
    gap: 0;
  }
  .float-tools #toolTop {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    border: 1px solid #dfd7c8;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.92);
    transition: opacity .2s ease, transform .2s ease;
  }
  html[data-theme="dark"] .float-tools #toolTop {
    background: rgba(34, 40, 48, 0.85);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
  }
  .float-tools #toolTop.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .float-tools #toolTop .ft-txt {
    display: none;
  }
  .float-tools #toolTop .ft-ico {
    display: block;
  }
  .aui_state_lock,
  .aui_outer {
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box;
  }
  .aui_content iframe {
    max-width: 100% !important;
  }
}

@media (max-width: 360px) {
  .top-float-auth .user-name-link {
    max-width: 48px;
  }
  .top-qd-btn,
  .top-theme-btn {
    width: 30px;
    height: 34px;
  }
}

/* [2026-11-30] 登录/注册弹窗背景虚化遮罩（大小屏统一生效） */
.auth-dialog-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-dialog-backdrop > div {
  background: rgba(15, 23, 42, 0.30) !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .auth-dialog-backdrop > div {
  background: rgba(0, 0, 0, 0.48) !important;
  opacity: 1 !important;
}
html.auth-modal-open .aui_state_lock .aui_outer {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="dark"].auth-modal-open .aui_state_lock .aui_outer {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.65) !important;
}

/* [2026-11-30] 阅读目录页 /read/<id>/ 注释弱化与小屏内容提要三行折叠 */
.read-panel .read-meta .rm-label {
  color: #94a3b8;
  font-weight: 400;
}
.read-panel .read-meta .rm-sep {
  color: #cbd5e1;
  margin: 0 6px;
}
.read-panel .read-meta .rm-val {
  color: #334155;
  font-weight: 500;
}
.read-panel .read-intro .ri-body {
  color: #2c3e50;
}
.read-panel .read-intro .ri-label {
  color: #8c99ab;
  font-weight: 400;
}

html[data-theme="dark"] .read-panel .read-meta .rm-label {
  color: #6e7681;
}
html[data-theme="dark"] .read-panel .read-meta .rm-sep {
  color: #3f4650;
}
html[data-theme="dark"] .read-panel .read-meta .rm-val {
  color: #d4d2cc;
}
html[data-theme="dark"] .read-panel .read-intro .ri-body {
  color: #d4d2cc;
}
html[data-theme="dark"] .read-panel .read-intro .ri-label {
  color: #747d89;
}

@media (max-width: 680px) {
  .read-panel .read-intro.is-collapsible {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .read-panel .read-intro.is-collapsible .ri-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .read-panel .read-intro.is-collapsible.is-expanded .ri-body {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

/* [2026-11-30] 下载页 /txt/dl-<id>.html 方案1 美化（保留原黄绿下载卡配色） */
.dl-panel-body {
  padding: 16px;
}
.dl-book-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dl-cover {
  flex: none;
}
.dl-cover img {
  display: block;
  width: 104px;
  height: 142px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5dfd2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.dl-book-info {
  flex: 1;
  min-width: 0;
}
.dl-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dl-book-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #1e293b;
}
.dl-book-title a {
  color: inherit;
  text-decoration: none;
}
.dl-book-title a:hover {
  color: #0f766e;
  text-decoration: none;
}
.dl-status-pill {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ecf8f5;
  border: 1px solid #c5e3dd;
  color: #0f766e;
  font-weight: 600;
  white-space: nowrap;
}
.dl-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  font-size: 13px;
}
.dl-meta-item {
  min-width: 0;
}
.dl-meta-lbl {
  color: #94a3b8;
  font-weight: 400;
  margin-right: 6px;
}
.dl-meta-val {
  color: #334155;
  font-weight: 500;
}
.dl-fill-row {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #e5dfd2;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.dl-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}
.dl-card-grid.is-single {
  grid-template-columns: 1fr;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.dl-card.download_1 {
  color: #6a4300;
  border-color: #efd78a;
  background: linear-gradient(135deg, #fff7d6, #ffe4a3);
}
.dl-card.download_2 {
  color: #0f5132;
  border-color: #9fdbbd;
  background: linear-gradient(135deg, #e9faef, #c9f0d9);
}
.dl-card:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
}
.dl-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dl-fmt-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.3;
  flex: none;
}
.dl-card.download_1 .dl-fmt-badge {
  background: rgba(106, 67, 0, .12);
  color: #6a4300;
}
.dl-card.download_2 .dl-fmt-badge {
  background: rgba(15, 81, 50, .12);
  color: #0f5132;
}
.dl-tag-txt {
  font-size: 13px;
  font-weight: 600;
}
.dl-fen-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.dl-card.download_1 .dl-fen-badge {
  background: rgba(255, 255, 255, .62);
  color: #7c4d00;
}
.dl-card.download_2 .dl-fen-badge {
  background: rgba(255, 255, 255, .62);
  color: #0f5132;
}
.dl-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: .86;
}
.dl-mob-only {
  display: none;
}
.dl-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #7c8796;
}
.dl-panel-body .download-links {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-panel-body .download-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c8ddd7;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.dl-panel-body .download-links a:hover {
  background: #eef9f6;
  border-color: #9ccdc2;
  text-decoration: none;
  transform: translateY(-1px);
}
.dl-panel-body .download-links .link-sep {
  color: #7f9d95;
}

html[data-theme="dark"] .dl-cover img {
  border-color: #2f4542;
}
html[data-theme="dark"] .dl-book-title {
  color: #e2e8f0;
}
html[data-theme="dark"] .dl-book-title a:hover {
  color: #5eead4;
}
html[data-theme="dark"] .dl-status-pill {
  background: rgba(45, 212, 191, .12);
  border-color: rgba(45, 212, 191, .28);
  color: #5eead4;
}
html[data-theme="dark"] .dl-meta-lbl {
  color: #6e7681;
}
html[data-theme="dark"] .dl-meta-val {
  color: #d4d2cc;
}
html[data-theme="dark"] .dl-fill-row {
  border-top-color: #33383f;
}
html[data-theme="dark"] .dl-card.download_1 {
  color: #f3d58a;
  border-color: #6a5420;
  background: linear-gradient(135deg, #3a2f14, #4a3a14);
}
html[data-theme="dark"] .dl-card.download_2 {
  color: #9fe6c0;
  border-color: #2f6a4a;
  background: linear-gradient(135deg, #16302a, #1b3d2e);
}
html[data-theme="dark"] .dl-card.download_1 .dl-fmt-badge {
  background: rgba(243, 213, 138, .16);
  color: #f3d58a;
}
html[data-theme="dark"] .dl-card.download_2 .dl-fmt-badge {
  background: rgba(159, 230, 192, .16);
  color: #9fe6c0;
}
html[data-theme="dark"] .dl-card.download_1 .dl-fen-badge {
  background: rgba(0, 0, 0, .28);
  color: #f3d58a;
}
html[data-theme="dark"] .dl-card.download_2 .dl-fen-badge {
  background: rgba(0, 0, 0, .28);
  color: #9fe6c0;
}
html[data-theme="dark"] .dl-hint {
  color: #8f949b;
}
html[data-theme="dark"] .dl-panel-body .download-links a {
  background: #23272c;
  border-color: #2f4542;
  color: #7fd6ca;
}
html[data-theme="dark"] .dl-panel-body .download-links a:hover {
  background: #1f2b2a;
  border-color: #3aa597;
}
html[data-theme="dark"] .dl-panel-body .download-links .link-sep {
  color: #4b5563;
}

@media (max-width: 680px) {
  .dl-panel-body {
    padding: 12px;
  }
  .dl-book-head {
    gap: 12px;
    margin-bottom: 12px;
  }
  .dl-cover img {
    width: 78px;
    height: 108px;
  }
  .dl-book-title {
    font-size: 16px;
  }
  .dl-meta-grid {
    gap: 5px 10px;
    font-size: 12px;
  }
  .dl-fill-row {
    font-size: 12px;
  }
  .dl-card-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .dl-card {
    padding: 11px 12px;
    gap: 0;
  }
  .dl-pc-only {
    display: none !important;
  }
  .dl-mob-only {
    display: inline;
  }
  .dl-panel-body .download-links {
    gap: 6px;
  }
  .dl-panel-body .download-links a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* ===== [2026-11-30] 前台 5 套扩展色系（blue/gray/green/warm/pink）日间与夜间，与阅读页/移动端会员中心联动 ===== */
html[data-site-pal="blue"] {
  --bg: #eaf1f8; --paper: #f8fcff; --ink: #182838; --muted: #4f6982; --line: #c2d6ea;
  --brand: #1e4d7b; --brand-dark: #163b60; --accent: #266096; --chip: #e6f0fa; --rank: #edf4fb;
  --shadow: 0 10px 30px rgba(30, 77, 123, 0.09);
  --pal-glow1: rgba(180, 214, 248, 0.65); --pal-glow2: rgba(206, 228, 250, 0.55);
  --pal-surface: #eef5fc; --pal-chip-border: #b8d0e8; --pal-head: #1a456e;
  --pal-head-bg: linear-gradient(90deg, #e6f0fa 0%, #f8fcff 100%);
  --pal-notice-bg: #edf4fb; --pal-notice-border: #b8d0e8;
  --pal-selected-grad: linear-gradient(180deg, #266096 0%, #1a456e 100%);
  --pal-btn-grad: linear-gradient(135deg, #266096, #163b60);
  --pal-btn-hover: #e5eff9;
  --pal-bar-bg: linear-gradient(180deg, rgba(28, 66, 108, 0.94) 0%, rgba(19, 49, 82, 0.94) 50%, rgba(13, 34, 58, 0.96) 100%);
  --pal-bar-border: rgba(16, 40, 68, 0.6);
  --pal-bar-shadow: inset 0 1px 0 rgba(200, 226, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(13, 34, 58, 0.22);
  --pal-bar-hover: rgba(255, 255, 255, 0.22);
  --pal-nav-panel-bg: #143252; --pal-nav-panel-border: #254f7d; --pal-qd-dot-ring: #133152;
}
html[data-site-pal="gray"] {
  --bg: #eceff2; --paper: #fafbfc; --ink: #1e293b; --muted: #5b6778; --line: #cdd4dc;
  --brand: #334155; --brand-dark: #1f2937; --accent: #475569; --chip: #eaeef2; --rank: #f1f4f7;
  --shadow: 0 10px 30px rgba(51, 65, 85, 0.08);
  --pal-glow1: rgba(208, 216, 226, 0.55); --pal-glow2: rgba(220, 226, 234, 0.45);
  --pal-surface: #f1f4f7; --pal-chip-border: #cbd2da; --pal-head: #243040;
  --pal-head-bg: linear-gradient(90deg, #eaeef2 0%, #fafbfc 100%);
  --pal-notice-bg: #eff2f5; --pal-notice-border: #cbd2da;
  --pal-selected-grad: linear-gradient(180deg, #475569 0%, #2b3645 100%);
  --pal-btn-grad: linear-gradient(135deg, #475569, #243040);
  --pal-btn-hover: #e8ecf0;
  --pal-bar-bg: linear-gradient(180deg, rgba(52, 63, 78, 0.94) 0%, rgba(36, 44, 56, 0.94) 50%, rgba(24, 30, 38, 0.96) 100%);
  --pal-bar-border: rgba(20, 26, 34, 0.6);
  --pal-bar-shadow: inset 0 1px 0 rgba(220, 228, 238, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(20, 26, 34, 0.22);
  --pal-bar-hover: rgba(255, 255, 255, 0.22);
  --pal-nav-panel-bg: #242c38; --pal-nav-panel-border: #3d4859; --pal-qd-dot-ring: #242c38;
}
html[data-site-pal="green"] {
  --bg: #dcecd9; --paper: #f6fbf5; --ink: #1f3b29; --muted: #4f6c58; --line: #bad3b7;
  --brand: #2f6e44; --brand-dark: #235534; --accent: #3d8052; --chip: #e4f3e2; --rank: #edf7ec;
  --shadow: 0 10px 30px rgba(47, 110, 68, 0.09);
  --pal-glow1: rgba(190, 226, 186, 0.60); --pal-glow2: rgba(214, 238, 205, 0.50);
  --pal-surface: #ebf6e9; --pal-chip-border: #a9d3a7; --pal-head: #2b4a30;
  --pal-head-bg: linear-gradient(90deg, #e3f3e2 0%, #f6fbf5 100%);
  --pal-notice-bg: #ebf7ea; --pal-notice-border: #b3d9b1;
  --pal-selected-grad: linear-gradient(180deg, #3d7d52 0%, #2b5c3b 100%);
  --pal-btn-grad: linear-gradient(135deg, #3d7d52, #235534);
  --pal-btn-hover: #e3f2e1;
  --pal-bar-bg: linear-gradient(180deg, rgba(40, 88, 55, 0.94) 0%, rgba(28, 66, 40, 0.94) 50%, rgba(18, 46, 27, 0.96) 100%);
  --pal-bar-border: rgba(16, 40, 24, 0.6);
  --pal-bar-shadow: inset 0 1px 0 rgba(205, 240, 210, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(18, 46, 27, 0.22);
  --pal-bar-hover: rgba(255, 255, 255, 0.22);
  --pal-nav-panel-bg: #1d4429; --pal-nav-panel-border: #326b44; --pal-qd-dot-ring: #1c4228;
}
html[data-site-pal="warm"] {
  --bg: #efe3c4; --paper: #fcf8eb; --ink: #473716; --muted: #7a6238; --line: #d9c598;
  --brand: #9c5a26; --brand-dark: #784218; --accent: #b36b28; --chip: #f5ead0; --rank: #f9f1db;
  --shadow: 0 10px 30px rgba(156, 90, 38, 0.09);
  --pal-glow1: rgba(242, 220, 168, 0.60); --pal-glow2: rgba(248, 232, 190, 0.50);
  --pal-surface: #f7eed6; --pal-chip-border: #cdb586; --pal-head: #5a3010;
  --pal-head-bg: linear-gradient(90deg, #f5ead0 0%, #fcf8eb 100%);
  --pal-notice-bg: #f8efd8; --pal-notice-border: #dcc79c;
  --pal-selected-grad: linear-gradient(180deg, #ad6a32 0%, #8b4a1c 100%);
  --pal-btn-grad: linear-gradient(135deg, #ad6a32, #784218);
  --pal-btn-hover: #f4e8ca;
  --pal-bar-bg: linear-gradient(180deg, rgba(112, 64, 24, 0.94) 0%, rgba(84, 46, 16, 0.94) 50%, rgba(58, 30, 10, 0.96) 100%);
  --pal-bar-border: rgba(48, 24, 8, 0.6);
  --pal-bar-shadow: inset 0 1px 0 rgba(255, 232, 195, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(58, 30, 10, 0.22);
  --pal-bar-hover: rgba(255, 255, 255, 0.22);
  --pal-nav-panel-bg: #4d290e; --pal-nav-panel-border: #78441b; --pal-qd-dot-ring: #542e10;
}
html[data-site-pal="pink"] {
  --bg: #f8e2ea; --paper: #fff8fb; --ink: #4a1f30; --muted: #845063; --line: #e9c2cf;
  --brand: #c43e6c; --brand-dark: #9e2d54; --accent: #d4527e; --chip: #fceef3; --rank: #fdf3f7;
  --shadow: 0 10px 30px rgba(196, 62, 108, 0.09);
  --pal-glow1: rgba(244, 198, 215, 0.58); --pal-glow2: rgba(250, 218, 230, 0.48);
  --pal-surface: #fbf0f4; --pal-chip-border: #e6a8bd; --pal-head: #7a1f3d;
  --pal-head-bg: linear-gradient(90deg, #fdf0f4 0%, #fff8fb 100%);
  --pal-notice-bg: #fdf1f5; --pal-notice-border: #efc3d2;
  --pal-selected-grad: linear-gradient(180deg, #d8527f 0%, #b53560 100%);
  --pal-btn-grad: linear-gradient(135deg, #d8527f, #9e2d54);
  --pal-btn-hover: #fae6ed;
  --pal-bar-bg: linear-gradient(180deg, rgba(138, 42, 76, 0.94) 0%, rgba(104, 28, 56, 0.94) 50%, rgba(74, 18, 38, 0.96) 100%);
  --pal-bar-border: rgba(60, 14, 30, 0.6);
  --pal-bar-shadow: inset 0 1px 0 rgba(255, 215, 230, 0.20), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(74, 18, 38, 0.22);
  --pal-bar-hover: rgba(255, 255, 255, 0.24);
  --pal-nav-panel-bg: #5c1932; --pal-nav-panel-border: #8a2c4f; --pal-qd-dot-ring: #681c38;
}

html[data-theme="dark"][data-site-pal="blue"] {
  --bg: #0d141c; --paper: #141e2a; --ink: #cddbeb; --muted: #8aa3bd; --line: #223447;
  --brand: #4f8fd0; --brand-dark: #75ade6; --accent: #6aa4e0; --chip: #162536; --rank: #182332;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --pal-glow1: rgba(30, 77, 123, 0.34); --pal-glow2: rgba(22, 52, 88, 0.26);
  --pal-surface: #192533; --pal-chip-border: #28425e; --pal-head: #9ec8f2;
  --pal-head-bg: linear-gradient(90deg, #162536 0%, #141e2a 100%);
  --pal-notice-bg: #172330; --pal-notice-border: #28425e;
  --pal-selected-grad: linear-gradient(180deg, #4f8fd0 0%, #3570ad 100%);
  --pal-btn-grad: linear-gradient(135deg, #3570ad, #245182);
  --pal-btn-hover: #1f2e40;
  --pal-bar-bg: linear-gradient(180deg, rgba(20, 42, 66, 0.96) 0%, rgba(13, 28, 46, 0.96) 50%, rgba(9, 20, 34, 0.98) 100%);
  --pal-bar-border: rgba(34, 58, 86, 0.65);
  --pal-bar-shadow: inset 0 1px 0 rgba(160, 205, 250, 0.12), 0 4px 12px rgba(0, 0, 0, 0.42);
  --pal-bar-hover: rgba(117, 173, 230, 0.22);
  --pal-nav-panel-bg: #102133; --pal-nav-panel-border: #24405e; --pal-qd-dot-ring: #0d1c2e;
}
html[data-theme="dark"][data-site-pal="gray"] {
  --bg: #111316; --paper: #1a1d22; --ink: #d4dae3; --muted: #919aa8; --line: #2b313a;
  --brand: #7d91a8; --brand-dark: #9bb0c7; --accent: #91a4ba; --chip: #20252d; --rank: #1e2229;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --pal-glow1: rgba(71, 85, 105, 0.28); --pal-glow2: rgba(51, 65, 85, 0.22);
  --pal-surface: #20242b; --pal-chip-border: #353d4a; --pal-head: #c0ccd9;
  --pal-head-bg: linear-gradient(90deg, #20252d 0%, #1a1d22 100%);
  --pal-notice-bg: #1d2127; --pal-notice-border: #353d4a;
  --pal-selected-grad: linear-gradient(180deg, #7d91a8 0%, #5b6d82 100%);
  --pal-btn-grad: linear-gradient(135deg, #526378, #394656);
  --pal-btn-hover: #272c34;
  --pal-bar-bg: linear-gradient(180deg, rgba(36, 42, 50, 0.96) 0%, rgba(24, 28, 34, 0.96) 50%, rgba(17, 20, 24, 0.98) 100%);
  --pal-bar-border: rgba(53, 61, 74, 0.65);
  --pal-bar-shadow: inset 0 1px 0 rgba(200, 212, 226, 0.10), 0 4px 12px rgba(0, 0, 0, 0.42);
  --pal-bar-hover: rgba(155, 176, 199, 0.20);
  --pal-nav-panel-bg: #1c2026; --pal-nav-panel-border: #333a45; --pal-qd-dot-ring: #181c22;
}
html[data-theme="dark"][data-site-pal="green"] {
  --bg: #0f1712; --paper: #16221a; --ink: #c8dbc9; --muted: #8ca890; --line: #263b2c;
  --brand: #5a9c67; --brand-dark: #7ec48c; --accent: #6eb37c; --chip: #182a1d; --rank: #19261d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --pal-glow1: rgba(45, 105, 62, 0.32); --pal-glow2: rgba(33, 77, 45, 0.24);
  --pal-surface: #1b2920; --pal-chip-border: #2d4f36; --pal-head: #a8dab0;
  --pal-head-bg: linear-gradient(90deg, #182a1d 0%, #16221a 100%);
  --pal-notice-bg: #18261c; --pal-notice-border: #2d4f36;
  --pal-selected-grad: linear-gradient(180deg, #5a9c67 0%, #417d4d 100%);
  --pal-btn-grad: linear-gradient(135deg, #417d4d, #2d5936);
  --pal-btn-hover: #203126;
  --pal-bar-bg: linear-gradient(180deg, rgba(24, 52, 32, 0.96) 0%, rgba(16, 36, 22, 0.96) 50%, rgba(11, 26, 16, 0.98) 100%);
  --pal-bar-border: rgba(45, 79, 54, 0.65);
  --pal-bar-shadow: inset 0 1px 0 rgba(168, 218, 176, 0.12), 0 4px 12px rgba(0, 0, 0, 0.42);
  --pal-bar-hover: rgba(126, 196, 140, 0.20);
  --pal-nav-panel-bg: #142b1b; --pal-nav-panel-border: #2a4d34; --pal-qd-dot-ring: #102416;
}
html[data-theme="dark"][data-site-pal="warm"] {
  --bg: #16120c; --paper: #201a11; --ink: #dbd0bc; --muted: #a6947a; --line: #382d1e;
  --brand: #c48a47; --brand-dark: #d8a466; --accent: #d49852; --chip: #2b2013; --rank: #241d12;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --pal-glow1: rgba(156, 90, 38, 0.28); --pal-glow2: rgba(120, 66, 24, 0.22);
  --pal-surface: #261f15; --pal-chip-border: #4f3b22; --pal-head: #e6be8c;
  --pal-head-bg: linear-gradient(90deg, #2b2013 0%, #201a11 100%);
  --pal-notice-bg: #241d13; --pal-notice-border: #4f3b22;
  --pal-selected-grad: linear-gradient(180deg, #c48a47 0%, #9b682c 100%);
  --pal-btn-grad: linear-gradient(135deg, #9b682c, #6e471a);
  --pal-btn-hover: #2e2519;
  --pal-bar-bg: linear-gradient(180deg, rgba(64, 40, 18, 0.96) 0%, rgba(44, 27, 12, 0.96) 50%, rgba(30, 18, 8, 0.98) 100%);
  --pal-bar-border: rgba(79, 59, 34, 0.65);
  --pal-bar-shadow: inset 0 1px 0 rgba(230, 190, 140, 0.12), 0 4px 12px rgba(0, 0, 0, 0.42);
  --pal-bar-hover: rgba(216, 164, 102, 0.20);
  --pal-nav-panel-bg: #301d0d; --pal-nav-panel-border: #523519; --pal-qd-dot-ring: #2c1b0c;
}
html[data-theme="dark"][data-site-pal="pink"] {
  --bg: #181014; --paper: #23171d; --ink: #e0ccd5; --muted: #ab8c99; --line: #3b2530;
  --brand: #cf6689; --brand-dark: #e086a4; --accent: #da7597; --chip: #2b1820; --rank: #26181e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --pal-glow1: rgba(176, 63, 111, 0.30); --pal-glow2: rgba(138, 44, 82, 0.22);
  --pal-surface: #291b22; --pal-chip-border: #4f2b3a; --pal-head: #ebb2c6;
  --pal-head-bg: linear-gradient(90deg, #2b1820 0%, #23171d 100%);
  --pal-notice-bg: #26181f; --pal-notice-border: #4f2b3a;
  --pal-selected-grad: linear-gradient(180deg, #cf6689 0%, #a84566 100%);
  --pal-btn-grad: linear-gradient(135deg, #a84566, #782b45);
  --pal-btn-hover: #32212a;
  --pal-bar-bg: linear-gradient(180deg, rgba(72, 24, 44, 0.96) 0%, rgba(50, 16, 30, 0.96) 50%, rgba(34, 10, 20, 0.98) 100%);
  --pal-bar-border: rgba(79, 43, 58, 0.65);
  --pal-bar-shadow: inset 0 1px 0 rgba(235, 178, 198, 0.14), 0 4px 12px rgba(0, 0, 0, 0.42);
  --pal-bar-hover: rgba(224, 134, 164, 0.20);
  --pal-nav-panel-bg: #361221; --pal-nav-panel-border: #5c223a; --pal-qd-dot-ring: #32101e;
}

/* 5 套扩展色系公共结构覆盖（日/夜通用，不影响默认酒红与书籍独立风格页 html[data-book-style]） */
html[data-site-pal] body {
  background:
    radial-gradient(1000px 420px at 0 -10%, var(--pal-glow1) 0%, transparent 60%),
    radial-gradient(900px 520px at 100% 0, var(--pal-glow2) 0%, transparent 50%),
    var(--bg);
}
html[data-site-pal] a:hover,
html[data-site-pal] .book a:hover,
html[data-site-pal] .kv a:hover,
html[data-site-pal] .book_r > h4 > a:hover,
html[data-site-pal] .cenMain .catalog .listbg .title a:hover,
html[data-site-pal] .dl-book-title a:hover { color: var(--brand-dark); }

/* 顶部通栏（与默认酒红通栏同款 3D 毛玻璃质感 + 透明白字，随 5 套色系变化） */
html[data-site-pal] .top-float {
  background: var(--pal-bar-bg) !important;
  border-bottom: 1px solid var(--pal-bar-border) !important;
  box-shadow: var(--pal-bar-shadow) !important;
}
html[data-site-pal] .top-float-nav a,
html[data-site-pal] .top-float-nav a:focus,
html[data-site-pal] .top-float-nav .nav-more-btn {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
}
html[data-site-pal] .top-float-nav a:hover,
html[data-site-pal] .top-float-nav .nav-more-btn:hover,
html[data-site-pal] .top-float-nav .nav-more-wrap.open .nav-more-btn {
  background: var(--pal-bar-hover) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
html[data-site-pal] .top-float-nav a.active,
html[data-site-pal] .top-float-nav a.active:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)) !important;
  color: #ffffff !important;
}
html[data-site-pal] .top-float-nav .nav-more-menu { background: var(--paper); border-color: var(--line); }
html[data-site-pal] .top-float-nav .nav-more-menu a,
html[data-site-pal] .top-float-nav .nav-more-menu a:focus { background: var(--pal-surface) !important; color: var(--ink) !important; }
html[data-site-pal] .top-float-nav .nav-more-menu a:hover,
html[data-site-pal] .top-float-nav .nav-more-menu a.active,
html[data-site-pal] .top-float-nav .nav-more-menu a.active:hover { background: var(--brand) !important; color: #fff !important; }
html[data-site-pal] .top-qd-btn { color: #ffffff; }
html[data-site-pal] .top-qd-btn .top-qd-dot { box-shadow: 0 0 0 1.5px var(--pal-qd-dot-ring); }
@media (max-width: 680px) {
  html[data-site-pal] .mobile-nav-panel {
    background: var(--pal-nav-panel-bg) !important;
    border-color: var(--pal-nav-panel-border) !important;
  }
}

/* 顶部搜索栏、搜索按钮与热搜标签（覆盖写死的 #efe9dc / #faead7 / #0f766e 等 !important） */
html[data-site-pal] .top:not(header.top) { background: var(--paper); border-color: var(--line); }
html[data-site-pal] header.top { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html[data-site-pal] .top-links { color: var(--muted); }
html[data-site-pal] .top-links > a,
html[data-site-pal] .top-links .blue,
html[data-site-pal] .top-links .green { color: var(--brand-dark); }
html[data-site-pal] .top-links > a:hover,
html[data-site-pal] .top-links .blue:hover,
html[data-site-pal] .top-links .green:hover { color: var(--brand); }
html[data-site-pal] .top-links em { color: var(--brand-dark); background: var(--chip); border-color: var(--pal-chip-border); }
html[data-site-pal] header.top form.search { background: var(--paper); border-color: var(--line); }
html[data-site-pal] header.top form.search:hover { border-color: var(--pal-chip-border); }
html[data-site-pal] header.top form.search:focus-within { border-color: var(--brand); background: var(--paper); box-shadow: 0 0 0 3px var(--chip); }
html[data-site-pal] header.top form.search .search-sel select { color: var(--ink); }
html[data-site-pal] header.top form.search .search-sel select:hover { background-color: var(--chip); }
html[data-site-pal] .search input { background: var(--paper); border-color: var(--line); color: var(--ink); }
html[data-site-pal] .search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--chip); }
html[data-site-pal] .search input::selection { background: var(--chip); }
html[data-site-pal] .search button,
html[data-site-pal] header.top form.search button { background: var(--pal-btn-grad) !important; color: #fff !important; }
html[data-site-pal] .search-history a,
html[data-site-pal] header.top > .search-history a {
  background: var(--pal-surface) !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
}
html[data-site-pal] header.top > .search-history a:nth-of-type(-n+3) {
  background: var(--chip) !important;
  color: var(--brand-dark) !important;
  border-color: var(--pal-chip-border) !important;
}
html[data-site-pal] .search-history a:hover,
html[data-site-pal] header.top > .search-history a:hover,
html[data-site-pal] header.top > .search-history a:nth-of-type(-n+3):hover {
  background: var(--pal-btn-hover) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* 导航、标签、内容面板与角标 */
html[data-site-pal] .nav-main a,
html[data-site-pal] .nav-sub a,
html[data-site-pal] .kpi .item,
html[data-site-pal] .book,
html[data-site-pal] .filters a,
html[data-site-pal] .functional-bar button { background: var(--pal-surface); border-color: var(--line); color: var(--ink); }
html[data-site-pal] .nav-main a.active,
html[data-site-pal] .filters a.on,
html[data-site-pal] .sfwj { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-site-pal] .notice { background: var(--pal-notice-bg); border-color: var(--pal-notice-border); }
html[data-site-pal] .hero { background: linear-gradient(120deg, var(--pal-glow1), var(--pal-glow2)); border-color: var(--line); }
html[data-site-pal] .hero h2 { color: var(--pal-head); }
html[data-site-pal] .panel { background: var(--paper); border-color: var(--line); }
html[data-site-pal] .panel h3 { color: var(--pal-head); border-bottom-color: var(--line); }
html[data-site-pal] .panel h3::before,
html[data-site-pal] .ur-head .ai-review-title::before { background: var(--brand); }
html[data-site-pal] .panel.latest-upload .body.grid2 > div > h4 { background: var(--pal-head-bg); border-color: var(--pal-chip-border); color: var(--pal-head); }
html[data-site-pal] .panel.latest-upload .body.grid2 > div > h4 > a { color: var(--brand-dark); background: var(--chip); border-color: var(--pal-chip-border); }
html[data-site-pal] .panel.latest-upload .body.grid2 > div > h4 > a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
html[data-site-pal] .lines-books .cat,
html[data-site-pal] .cenMain .catalog .listbg .classname,
html[data-site-pal] .book .classname,
html[data-site-pal] .body.grid2 > .listbg > .classname,
html[data-site-pal] .dl-status-pill { color: var(--brand-dark); background: var(--chip); border-color: var(--pal-chip-border); }
html[data-site-pal] .rank { background: var(--rank); }

/* 扁平分页（保留透明扁平风格并跟随色系） */
html[data-site-pal] .pager { background: transparent !important; border: 0 !important; }
html[data-site-pal] .pager a { background: transparent !important; border: 0 !important; color: var(--muted) !important; }
html[data-site-pal] .pager a:hover { background: var(--chip) !important; color: var(--brand-dark) !important; }
html[data-site-pal] .pager > b,
html[data-site-pal] .pager > span:not(.pager-total) { background: var(--chip) !important; border: 0 !important; color: var(--brand-dark) !important; }
html[data-site-pal] .pager .pager-jump input { background: var(--paper); border-color: var(--line); color: var(--ink); }
html[data-site-pal] .pager .pager-jump button { border-color: var(--line) !important; color: var(--ink) !important; }
html[data-site-pal] .pager .pager-jump button:hover { border-color: var(--brand) !important; background: var(--chip) !important; color: var(--brand-dark) !important; }

/* 筛选条 .saixuan（保留方案一扁平风格并跟随色系） */
html[data-site-pal] .saixuan { background: transparent !important; border: 0 !important; }
html[data-site-pal] .saixuan dl { border-top-color: var(--line); }
html[data-site-pal] .saixuan dt { color: var(--muted); }
html[data-site-pal] .saixuan dd a { background: transparent !important; border: 0 !important; color: var(--ink) !important; }
html[data-site-pal] .saixuan dd a:hover,
html[data-site-pal] .saixuan dd a.selected,
html[data-site-pal] .saixuan dd a.selected:hover { background: var(--chip) !important; border: 0 !important; color: var(--brand-dark) !important; }
html[data-site-pal] .saixuan dd .sx-yr-toggle { color: var(--brand-dark); }
html[data-site-pal] .saixuan dd .sx-yr-toggle:hover { background: var(--chip); color: var(--brand); }

/* 列表、目录、下载、点评与浮窗按钮 */
html[data-site-pal] .cenMain .path { background: var(--pal-notice-bg); border-color: var(--pal-notice-border); color: var(--muted); }
html[data-site-pal] .cenMain .articleInfo h1 { color: var(--pal-head); border-bottom-color: var(--line); }
html[data-site-pal] .cenMain .writerIntro { background: linear-gradient(135deg, var(--chip) 0%, var(--paper) 100%); border-color: var(--pal-chip-border); color: var(--ink); }
html[data-site-pal] .cenMain .catalog .listbg,
html[data-site-pal] .body.grid2 > .listbg { background: linear-gradient(180deg, var(--paper) 0%, var(--pal-surface) 100%); border-color: var(--line); }
html[data-site-pal] .cenMain .catalog .listbg .title a,
html[data-site-pal] .body.grid2 > .listbg > .title a { color: var(--pal-head); }
html[data-site-pal] .today-qd-users,
html[data-site-pal] .checkin { background: var(--paper); border-color: var(--line); }
html[data-site-pal] .today-qd-users h3 { color: var(--pal-head); }
html[data-site-pal] .read-panel { background: var(--paper); border-color: var(--line); }
html[data-site-pal] .read-title { color: var(--pal-head); }
html[data-site-pal] .read-meta a,
html[data-site-pal] .searchInfo a { color: var(--brand-dark); }
html[data-site-pal] .read-intro,
html[data-site-pal] .chapter-list li { background: var(--pal-surface); border-color: var(--line); }
html[data-site-pal] .chapter-list li a { color: var(--ink); }
html[data-site-pal]:not([data-book-style]) .desc { background: var(--pal-surface); border-color: var(--line); color: var(--ink); }
html[data-site-pal]:not([data-book-style]) .page-info .intro-panel { --intro-fade-color: var(--pal-surface); }
html[data-site-pal]:not([data-book-style]) .download-box { background: var(--chip); border-color: var(--pal-chip-border); }
html[data-site-pal]:not([data-book-style]) .download-box .download-links a,
html[data-site-pal]:not([data-book-style]) .copy-btn,
html[data-site-pal] .dl-panel-body .download-links a,
html[data-site-pal] .topsideSpecial li a { background: var(--paper); border-color: var(--pal-chip-border); color: var(--brand-dark); }
html[data-site-pal] .dl-panel-body .download-links a:hover,
html[data-site-pal] .topsideSpecial li a:hover { background: var(--chip); border-color: var(--brand); }
html[data-site-pal] .ai-review-box { background: var(--pal-surface); border-color: var(--line); }
html[data-site-pal] .ai-review-box .ai-review-btn:hover:not(:disabled),
html[data-site-pal] .ai-review-box .ai-review-btn.user-review-btn:hover:not(:disabled),
html[data-site-pal] .ai-review-box .review-load-more:hover:not(:disabled) { background: var(--chip) !important; border-color: var(--brand) !important; color: var(--brand-dark) !important; }
html[data-site-pal] .ai-review-box .user-review-submit-btn { background: var(--brand) !important; color: #fff !important; }
html[data-site-pal] .ai-review-box .user-review-form { background: var(--paper) !important; border-color: var(--line) !important; }
html[data-site-pal] .ai-review-box .user-review-form:focus-within { border-color: var(--brand) !important; background: var(--paper) !important; box-shadow: 0 0 0 3px var(--chip) !important; }
html[data-site-pal] .ur-chip { background: var(--paper); border-color: var(--line); color: var(--muted); }
html[data-site-pal] .ur-chip:hover { border-color: var(--brand); color: var(--ink); }
html[data-site-pal] .ur-chip.on { background: var(--chip); border-color: var(--brand); color: var(--brand-dark); }
html[data-site-pal] .ai-review-box .ai-review-name,
html[data-site-pal] .ai-review-box .user-review-item .ai-review-name,
html[data-site-pal] .ur-spoiler.is-hidden::after { color: var(--brand-dark) !important; }
html[data-site-pal] .float-tools .theme-toggle-btn { background: var(--brand); color: #fff; }
html[data-site-pal] #qiandao { background: linear-gradient(165deg, var(--chip) 0%, var(--paper) 100%); border-color: var(--pal-chip-border); color: var(--ink); }
html[data-site-pal] #qiandao .qdbutton { background: var(--pal-selected-grad); }

/* 首页模块（home.css / home-hot-periods.css，加载在 style.css 之后，用 html[data-site-pal] body 压过其写死色与夜间固定青绿） */
html[data-site-pal] body .hc-top-l svg,
html[data-site-pal] body .hc-all-btn:hover,
html[data-site-pal] body .hc-name:hover,
html[data-site-pal] body .hc-detail:hover,
html[data-site-pal] body .hc-like-grid a:hover b,
html[data-site-pal] body .lu-today-badge,
html[data-site-pal] body .lu-tab.on,
html[data-site-pal] body .lu-today,
html[data-site-pal] body .lu-collapse:hover,
html[data-site-pal] body .hw-tab:hover,
html[data-site-pal] body .hh-cat-tabs button:hover,
html[data-site-pal] body .hh-pcard:hover .hh-pinfo b,
html[data-site-pal] body .hh-more-inline,
html[data-site-pal] body .hh-rest-grid a:hover,
html[data-site-pal] body .hh-more-link:hover { color: var(--brand-dark) !important; }
html[data-site-pal] body .hc-top-l b,
html[data-site-pal] body .hc-name,
html[data-site-pal] body .hc-hist-info a,
html[data-site-pal] body .lu-hp-info b,
html[data-site-pal] body .hw-card,
html[data-site-pal] body .hh-pinfo b,
html[data-site-pal] body .hh-rest-grid a,
html[data-site-pal] body .hf-list a { color: var(--ink); }
html[data-site-pal] body .hc-top-l span,
html[data-site-pal] body .hc-chap,
html[data-site-pal] body .hc-prog-txt,
html[data-site-pal] body .hc-detail,
html[data-site-pal] body .hc-all-btn,
html[data-site-pal] body .hc-like h4,
html[data-site-pal] body .hc-like-grid .hc-li span,
html[data-site-pal] body .lu-tab,
html[data-site-pal] body .hw-au,
html[data-site-pal] body .hw-card p,
html[data-site-pal] body .hh-pau,
html[data-site-pal] body .hh-rest-grid .author,
html[data-site-pal] body .hh-period-tabs button { color: var(--muted); }
html[data-site-pal] body .hc-all-btn:hover,
html[data-site-pal] body .hh-more-inline:hover { background: var(--chip); }
html[data-site-pal] body .hc-item,
html[data-site-pal] body .hh-pcard,
html[data-site-pal] body .hh-pcard.hh-r1 { background: var(--pal-surface); border-color: var(--line); color: var(--ink); }
html[data-site-pal] body .hc-item:hover { border-color: var(--brand); }
html[data-site-pal] body .hh-pcard:hover,
html[data-site-pal] body .hh-pcard.hh-r1:hover { background: var(--pal-btn-hover); }
html[data-site-pal] body .hc-prog-bar { background: var(--line); }
html[data-site-pal] body .hc-prog-bar i,
html[data-site-pal] body .lu-tab.on::after { background: var(--brand); }
html[data-site-pal] body .hc-go { background: var(--brand) !important; }
html[data-site-pal] body .hc-like,
html[data-site-pal] body .hh-v3b .hh-head,
html[data-site-pal] body .hh-podium,
html[data-site-pal] body .hh-rest-grid li,
html[data-site-pal] body .hh-bfoot,
html[data-site-pal] body .hf-list li { border-color: var(--line); }
html[data-site-pal] body .hc-basis-btn,
html[data-site-pal] body .hc-swap,
html[data-site-pal] body .lu-collapse,
html[data-site-pal] body .hw-tab,
html[data-site-pal] body .hh-cat-tabs button { background: var(--paper); border-color: var(--line); color: var(--ink); }
html[data-site-pal] body .hc-basis-btn:hover,
html[data-site-pal] body .hc-swap:hover,
html[data-site-pal] body .lu-collapse:hover,
html[data-site-pal] body .hw-tab:hover,
html[data-site-pal] body .hh-cat-tabs button:hover { border-color: var(--brand); }
html[data-site-pal] body .hc-basis-btn.on { border-color: var(--brand); background: var(--chip); color: var(--brand-dark); }
html[data-site-pal] body .hw-tab.on,
html[data-site-pal] body .hh-cat-tabs button.on { border-color: var(--brand); background: var(--brand); color: #fff !important; }
html[data-site-pal] body .hc-like-grid a { color: var(--ink); }
html[data-site-pal] body .hc-like-grid a:hover { background: var(--chip); }
html[data-site-pal] body .lu-bar { background: var(--pal-surface); border-bottom-color: var(--line); }
html[data-site-pal] body .lu-hover-pop { background: var(--paper); border-color: var(--brand); }
html[data-site-pal] body .lu-hp-tags span,
html[data-site-pal] body .hw-tags span,
html[data-site-pal] body .hh-ptags span,
html[data-site-pal] body .hh-rk { background: var(--chip); color: var(--brand-dark); }
html[data-site-pal] body .hh-period-tabs { background: var(--pal-surface); border-color: var(--line); }
html[data-site-pal] body .hh-period-tabs button.on { background: var(--paper); color: var(--brand-dark); }
