/* ============================================================
   yuyuyu001 · 全站样式
   QQ:279434877
   v1.0.0
   ============================================================ */

/* ============================================================
   1. 主题色（4 套后加了1 套）
   ============================================================ */
:root,
[data-theme="blue"] {
  --brand: #2563eb; --brand-hover: #1d4ed8;
  --brand-soft: #dbeafe;
  --brand-tint: rgba(37, 99, 235, .12);
  --brand-tint-2: rgba(37, 99, 235, .06);
  --brand-tag-bg: #eff6ff;
  --brand-tag-bd: #bfdbfe;
}
[data-theme="green"] {
  --brand: #059669; --brand-hover: #047857;
  --brand-soft: #d1fae5;
  --brand-tint: rgba(5, 150, 105, .12);
  --brand-tint-2: rgba(5, 150, 105, .06);
  --brand-tag-bg: #ecfdf5;
  --brand-tag-bd: #a7f3d0;
}
[data-theme="purple"] {
  --brand: #7c3aed; --brand-hover: #6d28d9;
  --brand-soft: #ede9fe;
  --brand-tint: rgba(124, 58, 237, .12);
  --brand-tint-2: rgba(124, 58, 237, .06);
  --brand-tag-bg: #f5f3ff;
  --brand-tag-bd: #ddd6fe;
}
[data-theme="amber"] {
  --brand: #d97706; --brand-hover: #b45309;
  --brand-soft: #fef3c7;
  --brand-tint: rgba(217, 119, 6, .14);
  --brand-tint-2: rgba(217, 119, 6, .07);
  --brand-tag-bg: #fffbeb;
  --brand-tag-bd: #fde68a;
}

/* ============================================================
   2. 背景色（3 套）
   ============================================================ */
:root,
[data-bg="gray"] {
  --bg: #eaeef4; --card: #ffffff;
  --line: #dbe1ea; --line-soft: #e9edf3;
}
[data-bg="white"] {
  --bg: #ffffff; --card: #ffffff;
  --line: #e2e6ec; --line-soft: #f0f2f5;
}
[data-bg="warm"] {
  --bg: #f6ecd9; --card: #ffffff;
  --line: #eadfc7; --line-soft: #f3e9d5;
}

/* ============================================================
   3. 通用变量
   ============================================================ */
:root {
  --text: #0b1220;
  --text-2: #334155;
  --text-3: #64748b;

  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1560px;
  --gutter: 20px;

  --ease: .2s ease;
}

/* ============================================================
   4. 重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
img { display: block; max-width: 100%; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   5. 头部
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 220px;
  text-decoration: none;
  color: var(--brand);
  transition: color .35s ease, opacity .2s ease;
}
.logo:hover { color: var(--brand-hover); opacity: .9; }

.site-logo-img {
  display: block;
  width: auto;
  height: 36px;
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.site-logo-text {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--brand);
  transition: color .35s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex-shrink: 0;
  padding: 6px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--ease);
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.search {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 12px;
  background: var(--line-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all var(--ease);
}
.search:focus-within {
  background: var(--card);
  border-color: var(--brand);
  color: var(--text);
}
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 13.5px;
}
.search input::placeholder { color: var(--text-3); }
.search button {
  height: 28px; padding: 0 12px;
  font-size: 12.5px; font-weight: 500;
  color: #fff; background: var(--brand);
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.search button:hover { background: var(--brand-hover); }

.theme-switch {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: var(--line-soft);
  border-radius: 999px;
  transition: background-color .35s ease;
}
.theme-dot {
  width: 18px; height: 18px;
  border-radius: 50%; padding: 0;
  position: relative;
  transition: transform .2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { transform: scale(1.1); }
.theme-dot.active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .6;
}
.theme-dot[data-set="blue"]   { background: #2563eb; color: #2563eb; }
.theme-dot[data-set="green"]  { background: #059669; color: #059669; }
.theme-dot[data-set="purple"] { background: #7c3aed; color: #7c3aed; }
.theme-dot[data-set="amber"]  { background: #d97706; color: #d97706; }

.bg-switch {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--line-soft);
  border-radius: 999px;
  transition: background-color .35s ease;
}
.bg-btn {
  width: 24px; height: 20px;
  border-radius: 10px; padding: 0;
  position: relative;
  transition: all .2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.bg-btn:hover { transform: scale(1.06); }
.bg-btn[data-bg="gray"]  { background: #eaeef4; }
.bg-btn[data-bg="white"] { background: #ffffff; }
.bg-btn[data-bg="warm"]  { background: #f6ecd9; }
.bg-btn.active { box-shadow: inset 0 0 0 2px var(--brand); }

.actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.actions .link { color: var(--text-2); font-weight: 500; }
.actions .link:hover { color: var(--brand); }
.actions .divider { color: var(--text-3); }

/* ============================================================
   5.1 会员中心
   ============================================================ */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fde68a;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: all .2s ease;
}
.gold-badge i { color: #d97706; font-size: 12px; }
.gold-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(217, 119, 6, .2);
}

.user-menu { position: relative; display: inline-block; }

.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--line-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.user-toggle:hover,
.user-toggle[aria-expanded="true"] {
  background: var(--card);
  border-color: var(--brand);
  color: var(--brand);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .35s ease;
}

.user-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  font-size: 10px;
  transition: transform .2s ease;
  opacity: .7;
}
.user-toggle[aria-expanded="true"] .user-caret { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
}
.user-menu:hover .user-dropdown,
.user-menu.is-open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 6px;
  transition: all .15s ease;
}
.user-dropdown a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.user-dropdown a i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  opacity: .85;
}

.user-dropdown-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

.user-dropdown a.is-danger { color: #dc2626; }
.user-dropdown a.is-danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* ============================================================
   6. 主区
   ============================================================ */
main.wrap {
  padding-top: 14px;
  padding-bottom: 20px;
}

.panels-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}
.panels-row:last-child { margin-bottom: 0; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background-color .35s ease, border-color .35s ease;
}

.panel-title {
  flex: 0 0 auto;
  position: relative;
  height: 42px;
  line-height: 42px;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: left;
  color: var(--brand);
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.panel-title::after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transition: background-color .35s ease;
}

.panel-title .title-count {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

.panel-title-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  text-align: left;
}
.panel-title-flex::after {
  transform: none;
  width: 100%;
}

.panel-title-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .03em;
}
.panel-title-left i { font-size: 13px; opacity: .9; flex-shrink: 0; }
.panel-title-left > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-body {
  flex: 1;
  padding: 10px 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel-body-table { padding: 8px 10px; }
.panel-narrow .panel-body { padding: 6px 12px; }

.empty-tip {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   7. 人气小说榜
   ============================================================ */
.rank-list { display: flex; flex-direction: column; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.rank-item:last-child { border-bottom: none; }

.rank-num {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--line-soft);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  transition: all .35s ease;
}
.rank-num.is-top { color: #fff; }
.rank-num.top-1 { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.rank-num.top-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rank-num.top-3 { background: linear-gradient(135deg, #10b981, #059669); }

.rank-name {
  flex: 1; min-width: 0;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-name:hover { color: var(--brand); }

.rank-meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-3);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   8. 推荐
   ============================================================ */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rec-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  color: inherit;
  align-items: flex-start;
  padding: 12px;
  background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd);
  border-radius: 8px;
  transition: all .25s ease;
}
.rec-card:hover {
  background: var(--card);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-tint);
}

.rec-cover {
  flex: 0 0 auto;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line-soft);
  transition: background-color .35s ease;
}
.rec-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.rec-card:hover .rec-cover img { transform: scale(1.05); }

.rec-body {
  flex: 1; min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rec-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--ease);
}
.rec-card:hover .rec-title { color: var(--brand); }

.rec-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .35s ease;
}
.rec-author svg { flex-shrink: 0; opacity: .85; }
.rec-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   9. 最新入库小说
   ============================================================ */
.fresh-list { display: flex; flex-direction: column; }

.fresh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.fresh-item:last-child { border-bottom: none; }

.fresh-num {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--line-soft);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  transition: all .35s ease;
}
.fresh-num.is-top { color: #fff; }
.fresh-num.top-1 { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.fresh-num.top-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fresh-num.top-3 { background: linear-gradient(135deg, #10b981, #059669); }

.fresh-name {
  flex: 1; min-width: 0;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fresh-name:hover { color: var(--brand); }

.fresh-author {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-3);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   10. 最近更新小说列表
   ============================================================ */
.updates { display: flex; flex-direction: column; }

.updates-head,
.updates-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr) 90px 92px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}

.updates-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint-2);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  letter-spacing: .04em;
  transition: background-color .35s ease, color .35s ease;
}

.updates-row {
  font-size: 13.5px;
  border-bottom: 1px dashed var(--line);
  transition: background .2s ease;
  border-radius: 3px;
}
.updates-row:last-child { border-bottom: none; }
.updates-row:hover { background: var(--brand-tint); }

.updates-head > *,
.updates-row > * {
  min-width: 0;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.updates-head > *:last-child,
.updates-row > *:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.u-cat { font-size: 12.5px; color: var(--text-3); }
.u-title { font-weight: 500; color: var(--text); }
.u-title:hover { color: var(--brand); }
.u-chapter { color: var(--text-2); }
.u-chapter:hover { color: var(--brand); }
.u-author { font-size: 12.5px; color: var(--text-2); }
.u-time { font-size: 12.5px; color: var(--text-2); }

/* ============================================================
   11. 页脚
   ============================================================ */
.footer {
  margin-top: 14px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  transition: background-color .35s ease, border-color .35s ease;
}

.footer-copy { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
}
.footer-links a { color: var(--text-2); transition: color var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-links span { color: var(--line); }

/* ============================================================
   12. 分类页 · 排序栏
   ============================================================ */
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .35s ease, border-color .35s ease;
}

.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-right: 4px;
}

.sort-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--line-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s ease;
}
.sort-tag:hover { color: var(--brand); background: var(--brand-soft); }
.sort-tag.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}
.sort-tag.active:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

/* ============================================================
   13. 分类页 · 小说网格
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd);
  border-radius: 8px;
  transition: all .25s ease;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
}
.cat-card:hover {
  background: var(--card);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-tint);
}

.cat-cover {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line-soft);
}
.cat-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.cat-card:hover .cat-cover img { transform: scale(1.05); }

.cat-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  border-radius: 3px;
  background: rgba(16, 185, 129, .9);
  backdrop-filter: blur(4px);
}

.cat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--ease);
}
.cat-card:hover .cat-title { color: var(--brand); }

.cat-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-3);
}

.cat-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--brand);
  font-weight: 500;
  transition: color .35s ease;
}
.cat-author i { font-size: 11px; opacity: .85; }

.cat-words {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cat-date {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

/* ============================================================
   14. 分页
   ============================================================ */
.panel-body .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--line-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  cursor: pointer;
  user-select: none;
}
.page-btn:hover:not(.is-disabled):not(.is-active) {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand);
}
.page-btn.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
  cursor: default;
}
.page-btn.is-disabled {
  color: var(--text-3);
  background: var(--line-soft);
  cursor: not-allowed;
  opacity: .55;
}

.page-info {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   15. 小说详情页
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 0 2px;
  font-size: 13px;
  color: var(--text-3);
}
.breadcrumb a { color: var(--text-2); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--text-3); opacity: .55; }
.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.detail-panel { margin-bottom: 14px; }

.detail-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 24px;
}

.detail-left { display: flex; flex-direction: column; gap: 14px; }

.detail-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-soft);
  box-shadow: 0 6px 20px var(--brand-tint);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.vip-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, .35);
}

.detail-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}
.btn-outline {
  color: var(--brand);
  background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd);
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.btn-block { width: 100%; }

.detail-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.detail-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vip-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 999px;
  letter-spacing: .02em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13.5px;
  color: var(--text-3);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--ease);
}
.meta-item i { font-size: 12px; opacity: .85; }
.meta-item:hover { color: var(--brand); }
.meta-author { color: var(--brand); font-weight: 500; }
.meta-vip { color: #d97706; font-weight: 500; }
.meta-vip i { color: #d97706; opacity: 1; }

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  transition: color .35s ease;
}

.stat-label { font-size: 12px; color: var(--text-3); }

.detail-desc { display: flex; flex-direction: column; gap: 8px; }

.detail-desc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-desc-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--brand);
  border-radius: 2px;
}

.detail-desc-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  padding: 12px 14px;
  background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd);
  border-radius: 8px;
  transition: background-color .35s ease, border-color .35s ease;
}

.chapter-sort {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.chapter-sort .sort-btn {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s ease;
  cursor: pointer;
  line-height: 1.2;
}
.chapter-sort .sort-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.chapter-sort .sort-btn.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

.chapters-body { padding: 6px 8px; }
.chapters-accordion { display: flex; flex-direction: column; gap: 4px; }
.volume-group { border-radius: 8px; overflow: hidden; }

.volume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--brand-tint-2);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease;
  user-select: none;
}
.volume-header:hover { background: var(--brand-soft); }

.volume-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.volume-title i { color: var(--brand); font-size: 13px; opacity: .85; flex-shrink: 0; }
.volume-title h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volume-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.volume-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.toggle-icon {
  font-size: 12px;
  color: var(--text-3);
  transition: transform .25s ease;
}
.toggle-icon.open { transform: rotate(180deg); }

.volume-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 4px 10px;
}

.chapter-item { min-width: 0; }

.chapter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-2);
  background: transparent;
  border-radius: 6px;
  transition: all .15s ease;
  min-width: 0;
}
.chapter-link:hover { background: var(--brand-tint); color: var(--brand); }

.chapter-title-info {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chapter-num-prefix { flex-shrink: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chapter-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chapter-vip {
  flex-shrink: 0;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 8px;
  line-height: 1.5;
}

.word-count {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.related-card { display: block; min-width: 0; color: inherit; }

.related-cover {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line-soft);
  margin-bottom: 8px;
  transition: all .25s ease;
}
.related-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.related-card:hover .related-cover { box-shadow: 0 6px 16px var(--brand-tint); }
.related-card:hover .related-cover img { transform: scale(1.05); }

.related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--ease);
}
.related-card:hover .related-title { color: var(--brand); }

/* ============================================================
   16. 阅读页（作用域 .read-page / body.reader-*）
   ============================================================ */

.read-page { padding-bottom: 40px; }

.read-page .read-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .35s ease, border-color .35s ease;
}

.read-page .read-topbar .breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

.read-page .read-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.read-page .ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--line-soft);
  border-radius: 999px;
  transition: background-color .35s ease;
}

.read-page .ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
}
.read-page .ctrl-btn:hover { color: var(--brand); background: var(--card); }
.read-page .ctrl-btn:active { transform: scale(.92); }

.read-page .ctrl-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: color .35s ease;
}

.read-page .mode-group { gap: 3px; padding: 4px; }

.read-page .mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.read-page .mode-btn i { font-size: 16px; }

.read-page .mode-btn[data-mode="default"] { color: #ffffff; }
.read-page .mode-btn[data-mode="default"] i { text-shadow: 0 0 0 1px #d1d5db; }
.read-page .mode-btn[data-mode="sepia"]   { color: #f5e6c8; }
.read-page .mode-btn[data-mode="sepia"] i { text-shadow: 0 0 0 1px #c8b184; }
.read-page .mode-btn[data-mode="green"]   { color: #c9ead1; }
.read-page .mode-btn[data-mode="green"] i { text-shadow: 0 0 0 1px #7cae8a; }
.read-page .mode-btn[data-mode="dark"]    { color: #1e293b; }
.read-page .mode-btn[data-mode="dark"] i { text-shadow: 0 0 0 1px #000; }

.read-page .mode-btn:hover { transform: scale(1.1); }
.read-page .mode-btn.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-tint);
}

.read-page .chapter-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.read-page .chapter-content .chapter-nav-top {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
  transition: border-color .35s ease;
}

.read-page .chapter-content .chapter-nav-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  transition: border-color .35s ease;
}

.read-page .chapter-content .chapter-nav-top + .chapter-title {
  margin-top: 0;
}

.read-page .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .2s ease;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.read-page .nav-btn i { font-size: 12px; opacity: .85; flex-shrink: 0; }
.read-page .nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.read-page .nav-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-tag-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-tint);
}
.read-page .nav-btn:first-child { justify-self: start; }
.read-page .nav-btn:last-child  { justify-self: end; }

.read-page .nav-btn-center {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-tag-bd);
}
.read-page .nav-btn-center:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.read-page .nav-btn.is-disabled {
  color: var(--text-3);
  background: var(--line-soft);
  border-color: transparent;
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.read-page .chapter-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 64px 40px;
  margin-bottom: 16px;
  transition: background-color .35s ease, border-color .35s ease;
}

.read-page .chapter-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
  transition: border-color .35s ease;
}

.read-page .content-body {
  font-size: 18px;
  line-height: 2;
  color: var(--text);
  letter-spacing: .02em;
  word-wrap: break-word;
  word-break: break-word;
  transition: color .35s ease, font-size .2s ease;
}

.read-page #fullContent,
.read-page .preview-content {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.read-page .content-body p,
.read-page .preview-content p {
  text-indent: 2em;
  margin: 0 0 1em;
}

/* --- 米黄模式 --- */
body.reader-sepia { background: #f5ecd8 !important; }
body.reader-sepia .header { background: #fbf5e6 !important; border-bottom-color: #e5d8ba !important; }
body.reader-sepia .header .logo,
body.reader-sepia .header .site-logo-text { color: #8b4513 !important; }
body.reader-sepia .header .site-logo-text { -webkit-text-fill-color: #8b4513; }
body.reader-sepia .header .nav a { color: #6d5b47 !important; }
body.reader-sepia .header .nav a:hover,
body.reader-sepia .header .nav a.active { color: #8b4513 !important; background: #f5e6c8 !important; }
body.reader-sepia .header .search { background: #f0e6d0 !important; color: #8b6b47 !important; }
body.reader-sepia .header .search input { color: #3d3226 !important; }
body.reader-sepia .header .search input::placeholder { color: #a08a6e !important; }
body.reader-sepia .header .search button { background: #8b4513 !important; color: #fff !important; }
body.reader-sepia .header .theme-switch,
body.reader-sepia .header .bg-switch { background: #f0e6d0 !important; }
body.reader-sepia .header .actions .link { color: #6d5b47 !important; }
body.reader-sepia .header .actions .link:hover { color: #8b4513 !important; }
body.reader-sepia .header .actions .divider { color: #b8a888 !important; }
body.reader-sepia .header .user-toggle { background: #f0e6d0 !important; color: #6d5b47 !important; }
body.reader-sepia .header .user-toggle:hover { background: #fbf5e6 !important; border-color: #8b4513 !important; color: #8b4513 !important; }
body.reader-sepia .header .user-avatar { background: linear-gradient(135deg, #8b4513, #a0522d) !important; }
body.reader-sepia .footer { background: #fbf5e6 !important; border-top-color: #e5d8ba !important; }
body.reader-sepia .footer a,
body.reader-sepia .footer-copy { color: #6d5b47 !important; }
body.reader-sepia .read-page .read-topbar,
body.reader-sepia .read-page .chapter-content,
body.reader-sepia .read-page .nav-btn { background: #fbf5e6 !important; border-color: #e5d8ba !important; }
body.reader-sepia .read-page .chapter-content { color: #3d3226; }
body.reader-sepia .read-page .content-body,
body.reader-sepia .read-page #fullContent,
body.reader-sepia .read-page .preview-content { color: #3d3226; }
body.reader-sepia .read-page .chapter-title { color: #2a2015; border-bottom-color: #e5d8ba; }
body.reader-sepia .read-page .breadcrumb,
body.reader-sepia .read-page .breadcrumb a { color: #6d5b47 !important; }
body.reader-sepia .read-page .breadcrumb a:hover { color: #8b4513 !important; }
body.reader-sepia .read-page .breadcrumb .sep { color: #b8a888 !important; }
body.reader-sepia .read-page .breadcrumb .current { color: #2a2015 !important; }
body.reader-sepia .read-page .ctrl-group { background: #e5d8ba; }
body.reader-sepia .read-page .ctrl-btn { color: #6d5b47; }
body.reader-sepia .read-page .ctrl-btn:hover { background: #fbf5e6; color: #8b4513; }
body.reader-sepia .read-page .ctrl-value { color: #8b4513; }
body.reader-sepia .read-page .nav-btn { color: #3d3226; }
body.reader-sepia .read-page .nav-btn:hover { color: #8b4513; border-color: #8b4513; background: #fbf5e6; }
body.reader-sepia .read-page .nav-btn-center { color: #8b4513; background: #f5e6c8; border-color: #e5d8ba; }
body.reader-sepia .read-page .nav-btn.is-disabled { color: #b8a888; background: #f0e6d0; }

/* --- 护眼绿模式 --- */
body.reader-green { background: #e6f4e6 !important; }
body.reader-green .header { background: #f0f9f0 !important; border-bottom-color: #c4dfc4 !important; }
body.reader-green .header .logo,
body.reader-green .header .site-logo-text { color: #059669 !important; }
body.reader-green .header .site-logo-text { -webkit-text-fill-color: #059669; }
body.reader-green .header .nav a { color: #4a6b4a !important; }
body.reader-green .header .nav a:hover,
body.reader-green .header .nav a.active { color: #059669 !important; background: #d1fae5 !important; }
body.reader-green .header .search { background: #d8ead8 !important; color: #4a6b4a !important; }
body.reader-green .header .search input { color: #1e3d1e !important; }
body.reader-green .header .search input::placeholder { color: #7aaa8a !important; }
body.reader-green .header .search button { background: #059669 !important; color: #fff !important; }
body.reader-green .header .theme-switch,
body.reader-green .header .bg-switch { background: #d8ead8 !important; }
body.reader-green .header .actions .link { color: #4a6b4a !important; }
body.reader-green .header .actions .link:hover { color: #059669 !important; }
body.reader-green .header .actions .divider { color: #8aaa8a !important; }
body.reader-green .header .user-toggle { background: #d8ead8 !important; color: #4a6b4a !important; }
body.reader-green .header .user-toggle:hover { background: #f0f9f0 !important; border-color: #059669 !important; color: #059669 !important; }
body.reader-green .header .user-avatar { background: linear-gradient(135deg, #059669, #047857) !important; }
body.reader-green .footer { background: #f0f9f0 !important; border-top-color: #c4dfc4 !important; }
body.reader-green .footer a,
body.reader-green .footer-copy { color: #4a6b4a !important; }
body.reader-green .read-page .read-topbar,
body.reader-green .read-page .chapter-content,
body.reader-green .read-page .nav-btn { background: #f0f9f0 !important; border-color: #c4dfc4 !important; }
body.reader-green .read-page .chapter-content { color: #1e3d1e; }
body.reader-green .read-page .content-body,
body.reader-green .read-page #fullContent,
body.reader-green .read-page .preview-content { color: #1e3d1e; }
body.reader-green .read-page .chapter-title { color: #14401a; border-bottom-color: #c4dfc4; }
body.reader-green .read-page .breadcrumb,
body.reader-green .read-page .breadcrumb a { color: #4a6b4a !important; }
body.reader-green .read-page .breadcrumb a:hover { color: #059669 !important; }
body.reader-green .read-page .breadcrumb .sep { color: #8aaa8a !important; }
body.reader-green .read-page .breadcrumb .current { color: #14401a !important; }
body.reader-green .read-page .ctrl-group { background: #c4dfc4; }
body.reader-green .read-page .ctrl-btn { color: #4a6b4a; }
body.reader-green .read-page .ctrl-btn:hover { background: #f0f9f0; color: #059669; }
body.reader-green .read-page .ctrl-value { color: #059669; }
body.reader-green .read-page .nav-btn { color: #1e3d1e; }
body.reader-green .read-page .nav-btn:hover { color: #059669; border-color: #059669; background: #f0f9f0; }
body.reader-green .read-page .nav-btn-center { color: #059669; background: #d1fae5; border-color: #a7f3d0; }
body.reader-green .read-page .nav-btn.is-disabled { color: #8aaa8a; background: #d8ead8; }

/* --- 夜间模式 --- */
body.reader-dark { background: #0f1419 !important; }
body.reader-dark .header { background: #1a2027 !important; border-bottom-color: #2a323a !important; }
body.reader-dark .header .logo,
body.reader-dark .header .site-logo-text { color: #60a5fa !important; }
body.reader-dark .header .site-logo-text { -webkit-text-fill-color: #60a5fa; }
body.reader-dark .header .nav a { color: #cbd5e1 !important; }
body.reader-dark .header .nav a:hover,
body.reader-dark .header .nav a.active { color: #60a5fa !important; background: #2a323a !important; }
body.reader-dark .header .search { background: #232a32 !important; color: #9ca7b3 !important; border-color: #2a323a !important; }
body.reader-dark .header .search input { color: #eef2f6 !important; }
body.reader-dark .header .search input::placeholder { color: #6d7885 !important; }
body.reader-dark .header .search button { background: #3b82f6 !important; color: #fff !important; }
body.reader-dark .header .theme-switch,
body.reader-dark .header .bg-switch { background: #232a32 !important; }
body.reader-dark .header .actions .link { color: #cbd5e1 !important; }
body.reader-dark .header .actions .link:hover { color: #60a5fa !important; }
body.reader-dark .header .actions .divider { color: #6d7885 !important; }
body.reader-dark .header .user-toggle { background: #232a32 !important; color: #cbd5e1 !important; }
body.reader-dark .header .user-toggle:hover { background: #2a323a !important; border-color: #60a5fa !important; color: #60a5fa !important; }
body.reader-dark .header .user-avatar { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }
body.reader-dark .header .gold-badge { background: linear-gradient(135deg, #78350f, #92400e) !important; border-color: #92400e !important; color: #fbbf24 !important; }
body.reader-dark .header .gold-badge i { color: #fbbf24 !important; }
body.reader-dark .footer { background: #1a2027 !important; border-top-color: #2a323a !important; }
body.reader-dark .footer a,
body.reader-dark .footer-copy { color: #9ca7b3 !important; }
body.reader-dark .read-page .read-topbar,
body.reader-dark .read-page .chapter-content,
body.reader-dark .read-page .nav-btn { background: #1a2027 !important; border-color: #2a323a !important; }
body.reader-dark .read-page .chapter-content { color: #d6dde5; }
body.reader-dark .read-page .content-body,
body.reader-dark .read-page #fullContent,
body.reader-dark .read-page .preview-content { color: #d6dde5; }
body.reader-dark .read-page .chapter-title { color: #eef2f6; border-bottom-color: #2a323a; }
body.reader-dark .read-page .breadcrumb,
body.reader-dark .read-page .breadcrumb a { color: #9ca7b3 !important; }
body.reader-dark .read-page .breadcrumb a:hover { color: #60a5fa !important; }
body.reader-dark .read-page .breadcrumb .sep { color: #6d7885 !important; }
body.reader-dark .read-page .breadcrumb .current { color: #eef2f6 !important; }
body.reader-dark .read-page .ctrl-group { background: #232a32; }
body.reader-dark .read-page .ctrl-btn { color: #9ca7b3; }
body.reader-dark .read-page .ctrl-btn:hover { background: #2a323a; color: #60a5fa; }
body.reader-dark .read-page .ctrl-value { color: #60a5fa; }
body.reader-dark .read-page .nav-btn { color: #d6dde5; }
body.reader-dark .read-page .nav-btn:hover { color: #60a5fa; border-color: #60a5fa; background: #1e293b; }
body.reader-dark .read-page .nav-btn-center { color: #60a5fa; background: #1e293b; border-color: #334155; }
body.reader-dark .read-page .nav-btn.is-disabled { color: #4a5560; background: #232a32; }
body.reader-dark .read-page .gate-panel { background: #1a2027; border-color: #334155; }
body.reader-dark .read-page .gate-title { color: #eef2f6; }
body.reader-dark .read-page .gate-desc { color: #9ca7b3; }
body.reader-dark .read-page .gate-desc-sub { color: #6d7885; }
body.reader-dark .read-page .preview-content { background: #141a22; }

/* ============================================================
   阅读页 · 游客 / VIP 提示面板
   ============================================================ */
.read-page .preview-content {
  position: relative;
  padding-bottom: 8px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

.read-page .gate-panel {
  position: relative;
  margin: 8px 0px 8px 0px;
  max-width: 100%;
  padding: 26px 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 30px var(--brand-tint);
  overflow: hidden;
  transition: background-color .35s ease, border-color .35s ease;
}
.read-page .gate-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
}

.read-page .gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 50%;
  box-shadow: 0 6px 16px var(--brand-tint);
}
.read-page .gate-purchase .gate-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 16px rgba(217, 119, 6, .3);
}

.read-page .gate-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.read-page .gate-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.read-page .gate-desc strong { color: var(--brand); font-size: 16px; font-weight: 700; margin: 0 2px; }
.read-page .gate-desc-sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }
.read-page .gate-desc-sub strong { color: #d97706; font-size: 15px; }

.read-page .gate-error {
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 13px;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.read-page .gate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.read-page .gate-actions .btn-primary,
.read-page .gate-actions .btn-outline,
.read-page .gate-panel .btn-primary {
  padding: 11px 26px;
  font-size: 14px;
  border-radius: 999px;
}
.read-page .gate-panel .btn-lg {
  padding: 12px 30px;
  font-size: 15px;
  margin-top: 6px;
}

.read-page .gate-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.read-page .gate-links a { color: var(--text-2); transition: color var(--ease); }
.read-page .gate-links a:hover { color: var(--brand); }
.read-page .gate-links .sep { color: var(--line); }

.read-page #fullContent,
.read-page #previewWrapper { animation: readFadeIn .35s ease; }
@keyframes readFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   17. 响应式
   ============================================================ */
@media (max-width: 1440px) {
  .panels-row { grid-template-columns: 280px minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 1280px) {
  :root { --gutter: 16px; }
  .panels-row { grid-template-columns: 260px minmax(0, 1fr); gap: 12px; }
  .updates-head,
  .updates-row {
    grid-template-columns: 66px minmax(0, 1fr) minmax(0, 1.3fr) 82px 86px;
    gap: 10px;
    padding: 9px 10px;
  }
  .search { width: 180px; }
  .volume-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .read-page .chapter-content { padding: 44px 52px 36px; }
}

@media (max-width: 1024px) {
  .header-inner { gap: 10px; }
  .site-logo-img { height: 32px; max-height: 34px; max-width: 160px; }
  .site-logo-text { font-size: 18px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .search { width: 150px; }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid .rec-card:last-child:nth-child(odd) { grid-column: span 2; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .detail-title { font-size: 20px; }
  .stat-num { font-size: 18px; }
  .volume-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .read-page .chapter-content { padding: 36px 36px 28px; }
  .read-page .chapter-title { font-size: 23px; margin-bottom: 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 12px; }
  main.wrap { padding-top: 10px; padding-bottom: 16px; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .logo { max-width: 150px; }
  .site-logo-img { height: 28px; max-height: 30px; max-width: 130px; }
  .site-logo-text { font-size: 17px; }
  .theme-switch { margin-left: auto; }
  .bg-switch    { margin-left: 0; }
  .actions { gap: 4px; }
  .search { order: 3; flex: 0 0 100%; width: 100%; max-width: none; height: 36px; }
  .nav { order: 4; flex: 0 0 100%; width: 100%; margin: 0; padding: 6px 0 0; border-top: 1px solid var(--line); gap: 0; }
  .nav a { padding: 6px 13px; font-size: 12.5px; }
  .nav a:first-child { margin-left: 4px; }
  .panels-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .panel-title { height: 38px; line-height: 38px; font-size: 14px; }
  .panel-body { padding: 8px 10px; }
  .panel-narrow .panel-body { padding: 4px 10px; }
  .rank-item,
  .fresh-item { padding: 8px 2px; font-size: 13px; }
  .rank-meta,
  .fresh-author { max-width: 60px; font-size: 11.5px; }
  .rank-num,
  .fresh-num { width: 18px; height: 18px; font-size: 10.5px; }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rec-card { padding: 8px; gap: 8px; border-radius: 6px; }
  .rec-cover { width: 60px; }
  .rec-title { font-size: 13px; }
  .rec-desc { font-size: 11.5px; line-height: 1.5; -webkit-line-clamp: 2; }
  .rec-author { font-size: 11px; }
  .rec-author svg { width: 11px; height: 11px; }
  .rec-grid .rec-card:last-child:nth-child(odd) { grid-column: span 2; }
  .updates-head,
  .updates-row { grid-template-columns: 60px minmax(0, 1fr) 78px; gap: 8px; padding: 9px 8px; }
  .updates-row .u-chapter,
  .updates-row .u-author { display: none; }
  .updates-head > span:nth-child(3),
  .updates-head > span:nth-child(4) { display: none; }
  .updates-head { font-size: 14px; letter-spacing: .02em; }
  .gold-badge span { display: none; }
  .gold-badge { padding: 5px 8px; }
  .user-name,
  .user-caret { display: none; }
  .user-toggle { padding: 3px; gap: 0; }
  .user-dropdown { right: 0; min-width: 170px; }
  .actions .link { font-size: 13px; }
  .actions .divider { margin: 0 2px; }
  .footer { padding: 18px 0 22px; }
  .footer-links { gap: 4px 10px; font-size: 12px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-card { padding: 8px; gap: 8px; border-radius: 6px; }
  .cat-cover { width: 60px; }
  .cat-title { font-size: 13px; }
  .cat-desc { font-size: 11.5px; line-height: 1.5; -webkit-line-clamp: 2; }
  .cat-meta { font-size: 11px; gap: 4px; }
  .cat-author { font-size: 11px; }
  .cat-author i { font-size: 10px; }
  .cat-words { font-size: 10.5px; }
  .cat-date { font-size: 10.5px; }
  .cat-badge { font-size: 9px; padding: 1px 5px; }
  .sort-bar { margin: 10px 0; padding: 10px 12px; gap: 6px; }
  .sort-label { font-size: 12.5px; }
  .sort-tag { padding: 4px 10px; font-size: 12.5px; }
  .panel-body .pagination { gap: 4px; margin-top: 14px; padding-top: 12px; }
  .page-btn { min-width: 32px; height: 30px; padding: 0 9px; font-size: 12px; }
  .page-info { font-size: 11.5px; }
  .panel-title .title-count { font-size: 11px; margin-left: 6px; }
  .breadcrumb { margin: 10px 0; font-size: 12.5px; }
  .breadcrumb .current { max-width: 140px; }
  .detail-grid { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .detail-cover { box-shadow: 0 4px 12px var(--brand-tint); }
  .detail-title { font-size: 17px; gap: 6px; }
  .vip-tag { font-size: 11px; padding: 1px 8px; }
  .detail-actions { gap: 8px; }
  .btn-primary,
  .btn-outline { padding: 8px 10px; font-size: 12.5px; gap: 5px; }
  .btn-primary span,
  .btn-outline span { display: none; }
  .detail-meta { font-size: 12px; gap: 6px 12px; }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0; }
  .stat-num { font-size: 16px; }
  .stat-label { font-size: 11px; }
  .detail-desc-title { font-size: 14px; }
  .detail-desc-content { font-size: 13px; line-height: 1.7; padding: 10px 12px; }
  .panel-title-flex { padding: 0 10px 0 14px; gap: 8px; }
  .panel-title-left { font-size: 13.5px; gap: 6px; }
  .panel-title-left i { font-size: 12px; }
  .chapter-sort { gap: 3px; }
  .chapter-sort .sort-btn { padding: 4px 10px; font-size: 11.5px; }
  .volume-header { padding: 9px 12px; }
  .volume-title h3 { font-size: 13px; }
  .volume-count { font-size: 11px; }
  .volume-chapters { grid-template-columns: 1fr; gap: 2px; padding: 6px 2px 8px; }
  .chapter-link { padding: 8px 10px; font-size: 13px; }
  .word-count { font-size: 11px; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .related-title { font-size: 12px; }
  .read-page { padding-bottom: 24px; }
  .read-page .read-topbar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; margin: 10px 0; }
  .read-page .read-topbar .breadcrumb { order: 1; flex: 0 0 100%; }
  .read-page .read-controls { order: 2; margin-left: auto; }
  .read-page .ctrl-btn { width: 26px; height: 26px; font-size: 11px; }
  .read-page .ctrl-value { min-width: 26px; height: 26px; font-size: 11.5px; }
  .read-page .mode-btn { width: 24px; height: 24px; }
  .read-page .mode-btn i { font-size: 14px; }
  .read-page .chapter-content { padding: 22px 18px 18px; border-radius: 8px; }
  .read-page .chapter-title { font-size: 19px; margin-bottom: 20px; padding-bottom: 14px; }
  .read-page .content-body { line-height: 1.9; letter-spacing: .01em; }
  .read-page .gate-panel { padding: 24px 20px; margin: 18px auto 6px; border-radius: 12px; }
  .read-page .gate-icon { width: 52px; height: 52px; font-size: 20px; margin-bottom: 12px; }
  .read-page .gate-title { font-size: 15.5px; }
  .read-page .gate-desc { font-size: 13px; }
  .read-page .gate-desc strong { font-size: 14px; }
  .read-page .gate-actions { flex-direction: column; gap: 8px; }
  .read-page .gate-actions .btn-primary,
  .read-page .gate-actions .btn-outline,
  .read-page .gate-panel .btn-primary,
  .read-page .gate-panel .btn-lg { width: 100%; padding: 11px 18px; font-size: 13.5px; justify-content: center; }
  .read-page .chapter-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
  .read-page .nav-btn { padding: 11px 12px; font-size: 13px; gap: 5px; }
  .read-page .nav-btn-center { grid-column: 1 / -1; order: 3; justify-self: stretch; }
  .read-page .nav-btn:first-child { justify-self: stretch; }
  .read-page .nav-btn:last-child  { justify-self: stretch; }
  .read-page .chapter-nav-top { margin-bottom: 14px; padding-bottom: 14px; }
  .read-page .chapter-nav-bottom { margin-top: 20px; padding-top: 14px; }
}

/* 手机端沉浸阅读 */
@media (max-width: 640px) {
  body.read-immersive .header { display: none !important; }
  body.read-immersive .read-page { padding-top: 6px; padding-bottom: 16px; }
  body.read-immersive .read-topbar { display: flex; justify-content: flex-end; padding: 8px 12px; margin: 4px 0 8px; border-radius: 10px; }
  body.read-immersive .read-topbar .breadcrumb { display: none; }
  body.read-immersive .read-topbar .read-controls { margin-left: auto; }
  body.read-immersive .chapter-content { padding: 18px 16px 16px; border-radius: 10px; margin-bottom: 12px; }
  body.read-immersive .chapter-content .chapter-nav-top { margin-bottom: 18px; padding-bottom: 16px; }
  body.read-immersive .chapter-content .chapter-nav-bottom { margin-top: 22px; padding-top: 16px; }
  body.read-immersive .chapter-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; }
  body.read-immersive .content-body { line-height: 1.9; }
  body.read-immersive .chapter-content .chapter-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.read-immersive .chapter-content .chapter-nav .nav-btn-center { grid-column: 1 / -1; order: -1; justify-self: stretch; }
  body.read-immersive .chapter-content .chapter-nav .nav-btn:first-child { justify-self: stretch; }
  body.read-immersive .chapter-content .chapter-nav .nav-btn:last-child { justify-self: stretch; }
  body.read-immersive .chapter-content .nav-btn { padding: 10px 12px; font-size: 13px; gap: 5px; }
}

@media (min-width: 641px) {
  .read-page .chapter-content .chapter-nav { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 420px) {
  .rec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   18. 搜索页
   ============================================================ */
.search-page { padding-bottom: 40px; }

.search-page .search-panel {
  padding: 28px 32px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .35s ease, border-color .35s ease;
}
.search-page .search-header { text-align: center; margin-bottom: 22px; }
.search-page .search-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 8px;
}
.search-page .search-title i { color: var(--brand); font-size: 20px; transition: color .35s ease; }
.search-page .search-subtitle { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.search-page .search-form-main { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.search-page .search-input-wrap {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; height: 48px;
  padding: 0 44px 0 44px;
  background: var(--line-soft);
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: all .25s ease;
}
.search-page .search-input-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.search-page .search-input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.search-page .search-input-wrap:focus-within .search-input-icon { color: var(--brand); }
.search-page .search-input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text);
}
.search-page .search-input-wrap input::placeholder { color: var(--text-3); }
.search-page .search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 12px; color: var(--text-3);
  background: transparent; border-radius: 50%; transition: all .2s ease;
}
.search-page .search-clear:hover { color: #dc2626; background: #fee2e2; }
.search-page .search-submit {
  flex-shrink: 0; height: 48px; padding: 0 32px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--brand); border: 1px solid var(--brand);
  border-radius: 999px; cursor: pointer; transition: all .2s ease;
  letter-spacing: .04em;
}
.search-page .search-submit:hover {
  background: var(--brand-hover); border-color: var(--brand-hover);
  transform: translateY(-1px); box-shadow: 0 6px 16px var(--brand-tint);
}
.search-page .search-captcha-panel {
  padding: 18px 24px; margin-bottom: 14px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: var(--radius);
}
.search-page .search-captcha-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.search-page .search-captcha-header i { font-size: 14px; }
.search-page .search-captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-page .search-captcha-input-group {
  position: relative; display: flex; align-items: center; flex: 1; min-width: 180px;
  height: 42px; padding: 0 12px 0 38px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 8px; transition: border-color .2s ease;
}
.search-page .search-captcha-input-group:focus-within { border-color: var(--brand); }
.search-page .search-captcha-input-group i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3);
}
.search-page .search-captcha-input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.search-page .search-captcha-img {
  height: 42px; width: auto; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; transition: all .2s ease;
}
.search-page .search-captcha-img:hover { transform: scale(1.02); box-shadow: 0 2px 8px var(--brand-tint); }
.search-page .search-captcha-submit {
  height: 42px; padding: 0 22px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--brand); border: 1px solid var(--brand);
  border-radius: 8px; cursor: pointer; transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.search-page .search-captcha-submit:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.search-page .search-result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 18px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.search-page .search-result-info {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0;
}
.search-page .search-result-count { font-size: 14px; font-weight: 600; color: var(--brand); }
.search-page .search-result-keyword { font-size: 13px; color: var(--text-3); }
.search-page .search-result-keyword b { color: var(--text); font-weight: 700; padding: 0 3px; }
.search-page .search-view-toggle {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--line-soft); border-radius: 999px; flex-shrink: 0;
}
.search-page .view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; font-size: 12px; color: var(--text-3);
  background: transparent; border: none; border-radius: 50%;
  cursor: pointer; transition: all .2s ease;
}
.search-page .view-btn:hover { color: var(--brand); background: var(--card); }
.search-page .view-btn.active { color: #fff; background: var(--brand); box-shadow: 0 2px 6px var(--brand-tint); }
.search-page .search-novel-grid { display: grid; gap: 14px; }
.search-page .search-novel-grid.grid-view { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-page .search-novel-grid.list-view { grid-template-columns: 1fr; }
.search-page .search-novel-card {
  display: flex; gap: 12px; padding: 12px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 8px; transition: all .25s ease;
  align-items: flex-start; min-width: 0; color: inherit;
}
.search-page .search-novel-card:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-tint);
}
.search-page .search-novel-cover {
  position: relative; flex: 0 0 auto; width: 84px;
  aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--line-soft);
}
.search-page .search-novel-cover img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease);
}
.search-page .search-novel-card:hover .search-novel-cover img { transform: scale(1.05); }
.search-page .status-badge {
  position: absolute; top: 4px; right: 4px;
  padding: 1px 6px; font-size: 10px; font-weight: 600;
  color: #fff; border-radius: 3px; backdrop-filter: blur(4px);
}
.search-page .status-badge.finished { background: rgba(16, 185, 129, .9); }
.search-page .status-badge.ongoing  { background: rgba(59, 130, 246, .9); }
.search-page .search-novel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-page .search-novel-title {
  font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.search-page .search-novel-card:hover .search-novel-title { color: var(--brand); }
.search-page .search-novel-author {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-page .search-novel-author i { font-size: 10px; opacity: .85; }
.search-page .search-novel-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.search-page .search-novel-meta span { display: inline-flex; align-items: center; gap: 3px; }
.search-page .search-novel-meta i { font-size: 10px; opacity: .7; }
.search-page .search-novel-desc {
  font-size: 12.5px; line-height: 1.6; color: var(--text-3); margin-top: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-page .search-novel-grid.list-view .search-novel-card { padding: 14px 16px; gap: 16px; }
.search-page .search-novel-grid.list-view .search-novel-cover { width: 100px; }
.search-page .search-novel-grid.list-view .search-novel-title { font-size: 16px; }
.search-page .search-novel-grid.list-view .search-novel-desc { -webkit-line-clamp: 3; font-size: 13px; margin-top: 4px; }
.search-page .search-novel-grid.list-view .search-novel-info { gap: 6px; }
.search-page .search-empty-panel,
.search-page .search-welcome-panel {
  padding: 60px 20px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.search-page .search-empty,
.search-page .search-welcome {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.search-page .search-empty > i,
.search-page .search-welcome > i { font-size: 56px; color: var(--brand); opacity: .35; margin-bottom: 6px; }
.search-page .search-empty h3,
.search-page .search-welcome h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.search-page .search-empty p,
.search-page .search-welcome p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.search-page .search-empty .btn-primary { margin-top: 8px; padding: 10px 26px; font-size: 14px; border-radius: 999px; }
.search-page .search-hot-tags {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin-top: 14px;
}
.search-page .hot-tag-label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.search-page .hot-tag {
  display: inline-flex; align-items: center; padding: 5px 14px;
  font-size: 13px; font-weight: 500; color: var(--brand);
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 999px; transition: all .2s ease;
}
.search-page .hot-tag:hover {
  color: #fff; background: var(--brand); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 4px 10px var(--brand-tint);
}
.search-page .search-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: 22px; padding: 18px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.search-page .page-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 36px; height: 34px; padding: 0 14px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--line-soft); border: 1px solid transparent;
  border-radius: var(--radius-sm); transition: all .2s ease;
  cursor: pointer; user-select: none;
}
.search-page .page-btn i { font-size: 10px; }
.search-page .page-btn:hover:not(.is-disabled):not(.is-active) {
  color: var(--brand); background: var(--brand-soft); border-color: var(--brand);
}
.search-page .page-btn.is-active {
  color: #fff; background: var(--brand); border-color: var(--brand);
  font-weight: 700; cursor: default;
}
.search-page .page-btn.is-disabled {
  color: var(--text-3); background: var(--line-soft); cursor: not-allowed; opacity: .55;
}
.search-page .page-info {
  margin-left: 8px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
@media (max-width: 1280px) {
  .search-page .search-novel-grid.grid-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .search-page .search-panel { padding: 24px; }
  .search-page .search-title { font-size: 21px; }
  .search-page .search-novel-grid.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .search-page { padding-bottom: 24px; }
  .search-page .search-panel { padding: 20px 16px; margin-bottom: 10px; border-radius: 8px; }
  .search-page .search-title { font-size: 18px; gap: 6px; }
  .search-page .search-title i { font-size: 15px; }
  .search-page .search-subtitle { font-size: 12.5px; }
  .search-page .search-form-main { flex-direction: column; gap: 8px; }
  .search-page .search-input-wrap { height: 44px; }
  .search-page .search-input-wrap input { font-size: 14px; }
  .search-page .search-submit { width: 100%; height: 44px; padding: 0 20px; font-size: 14px; }
  .search-page .search-captcha-panel { padding: 14px 16px; margin-bottom: 10px; }
  .search-page .search-captcha-row { gap: 8px; }
  .search-page .search-captcha-input-group { flex: 1 0 100%; min-width: 0; height: 40px; }
  .search-page .search-captcha-img { height: 40px; flex-shrink: 0; }
  .search-page .search-captcha-submit { flex: 1; height: 40px; justify-content: center; }
  .search-page .search-result-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; margin-bottom: 10px; }
  .search-page .search-result-info { gap: 4px 12px; }
  .search-page .search-result-count { font-size: 13px; }
  .search-page .search-result-keyword { font-size: 12px; }
  .search-page .search-view-toggle { align-self: flex-end; }
  .search-page .search-novel-grid { gap: 8px; }
  .search-page .search-novel-grid.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-page .search-novel-card { padding: 8px; gap: 8px; border-radius: 6px; flex-direction: column; }
  .search-page .search-novel-cover { width: 100%; aspect-ratio: 3 / 4; }
  .search-page .search-novel-title { font-size: 13px; }
  .search-page .search-novel-author { font-size: 11px; }
  .search-page .search-novel-meta { font-size: 10.5px; gap: 6px; }
  .search-page .search-novel-desc { font-size: 11.5px; -webkit-line-clamp: 2; }
  .search-page .search-novel-grid.list-view .search-novel-card { padding: 10px 12px; gap: 10px; flex-direction: row; }
  .search-page .search-novel-grid.list-view .search-novel-cover { width: 60px; }
  .search-page .search-novel-grid.list-view .search-novel-title { font-size: 13.5px; }
  .search-page .search-novel-grid.list-view .search-novel-desc { font-size: 11.5px; -webkit-line-clamp: 2; }
  .search-page .search-empty-panel,
  .search-page .search-welcome-panel { padding: 40px 16px; border-radius: 8px; }
  .search-page .search-empty > i,
  .search-page .search-welcome > i { font-size: 44px; }
  .search-page .search-empty h3,
  .search-page .search-welcome h3 { font-size: 16px; }
  .search-page .search-empty p,
  .search-page .search-welcome p { font-size: 12.5px; }
  .search-page .hot-tag { padding: 4px 11px; font-size: 12px; }
  .search-page .search-pagination { gap: 4px; margin-top: 14px; padding: 12px 8px; border-radius: 8px; }
  .search-page .page-btn { min-width: 32px; height: 30px; padding: 0 10px; font-size: 12px; }
  .search-page .page-info { width: 100%; text-align: center; margin: 6px 0 0; font-size: 11.5px; }
}

/* ============================================================
   19. 作者页
   ============================================================ */
.author-page { padding-bottom: 40px; }
.author-page .author-header-panel {
  padding: 26px 32px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .35s ease, border-color .35s ease;
}
.author-page .author-header { display: flex; align-items: center; gap: 20px; }
.author-page .author-header-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 14px; box-shadow: 0 6px 16px var(--brand-tint);
  transition: background .35s ease, box-shadow .35s ease;
}
.author-page .author-header-text { flex: 1; min-width: 0; }
.author-page .author-header-title {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); line-height: 1.2; margin-bottom: 6px;
}
.author-page .author-header-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.author-page .author-header-count {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px;
  transition: background-color .35s ease, border-color .35s ease;
}
.author-page .count-num {
  font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: color .35s ease;
}
.author-page .count-label { font-size: 12px; color: var(--text-3); margin-top: 4px; white-space: nowrap; }
.author-page .panel-title i { margin-right: 6px; font-size: 13px; opacity: .9; }
.author-page .author-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.author-page .author-card {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; transition: all .25s ease;
  min-width: 0; color: inherit; position: relative; overflow: hidden;
}
.author-page .author-card:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-2px); box-shadow: 0 6px 18px var(--brand-tint);
}
.author-page .author-avatar {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 12px var(--brand-tint); transition: all .3s ease;
}
.author-page .author-card:hover .author-avatar { transform: scale(1.06); box-shadow: 0 6px 18px var(--brand-tint); }
.author-page .author-initial { line-height: 1; display: inline-block; transform: translateY(-1px); }
.author-page .author-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.author-page .author-name {
  font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.author-page .author-card:hover .author-name { color: var(--brand); }
.author-page .author-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-3); }
.author-page .author-meta-item {
  display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums;
}
.author-page .author-meta-item i { font-size: 10px; color: var(--brand); opacity: .85; transition: color .35s ease; }
.author-page .author-action { display: flex; align-items: center; margin-top: 2px; }
.author-page .author-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--card); border: 1px solid var(--brand-tag-bd);
  border-radius: 999px; transition: all .2s ease;
}
.author-page .author-btn i { font-size: 9px; transition: transform .2s ease; }
.author-page .author-card:hover .author-btn { color: #fff; background: var(--brand); border-color: var(--brand); }
.author-page .author-card:hover .author-btn i { transform: translateX(2px); }
.author-page .author-empty {
  padding: 60px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.author-page .author-empty i { font-size: 56px; color: var(--brand); opacity: .25; margin-bottom: 6px; }
.author-page .author-empty h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.author-page .author-empty p { font-size: 13px; color: var(--text-3); line-height: 1.7; }
@media (max-width: 1280px) {
  .author-page .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .author-page .author-header-panel { padding: 22px 24px; }
  .author-page .author-header-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .author-page .author-header-title { font-size: 21px; }
  .author-page .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .author-page { padding-bottom: 24px; }
  .author-page .author-header-panel { padding: 18px 16px; margin-bottom: 10px; border-radius: 8px; }
  .author-page .author-header { flex-wrap: wrap; gap: 12px; }
  .author-page .author-header-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
  .author-page .author-header-title { font-size: 18px; }
  .author-page .author-header-desc { font-size: 12.5px; }
  .author-page .author-header-count { padding: 8px 14px; border-radius: 10px; }
  .author-page .count-num { font-size: 20px; }
  .author-page .count-label { font-size: 11px; }
  .author-page .panel-title { font-size: 14px; }
  .author-page .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .author-page .author-card { flex-direction: column; align-items: flex-start; padding: 12px; gap: 10px; border-radius: 8px; }
  .author-page .author-avatar { width: 42px; height: 42px; font-size: 18px; }
  .author-page .author-name { font-size: 13.5px; }
  .author-page .author-meta { font-size: 11px; }
  .author-page .author-meta-item i { font-size: 9px; }
  .author-page .author-btn { padding: 3px 10px; font-size: 11px; gap: 3px; }
  .author-page .author-btn i { font-size: 8px; }
  .author-page .author-empty { padding: 40px 16px; }
  .author-page .author-empty i { font-size: 44px; }
  .author-page .author-empty h3 { font-size: 15px; }
  .author-page .author-empty p { font-size: 12.5px; }
}

/* ============================================================
   20. 作者详情页
   ============================================================ */
.author-detail-page { padding-bottom: 40px; }
.author-detail-page .panel-title i { margin-right: 6px; font-size: 13px; opacity: .9; }
.author-detail-page .author-profile-panel { padding: 0; overflow: hidden; margin-bottom: 14px; }
.author-detail-page .author-profile {
  display: flex; gap: 28px; padding: 32px 36px; align-items: flex-start; position: relative;
}
.author-detail-page .author-profile::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--brand-tint) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; transition: background .35s ease;
}
.author-detail-page .author-profile-avatar {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; font-size: 42px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 22px; box-shadow: 0 10px 30px var(--brand-tint);
  transition: background .35s ease, box-shadow .35s ease, transform .3s ease;
}
.author-detail-page .author-profile-avatar:hover { transform: translateY(-2px) scale(1.02); }
.author-detail-page .author-profile-info {
  position: relative; z-index: 1; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.author-detail-page .author-profile-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text);
}
.author-detail-page .author-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 3px 10px var(--brand-tint);
  transition: background .35s ease, box-shadow .35s ease;
}
.author-detail-page .author-badge i { font-size: 11px; }
.author-detail-page .author-profile-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13.5px; color: var(--text-3);
}
.author-detail-page .profile-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.author-detail-page .profile-meta-item i { font-size: 12px; color: var(--brand); opacity: .85; transition: color .35s ease; }
.author-detail-page .author-profile-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; padding: 16px 20px; margin-top: 4px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px;
  transition: background-color .35s ease, border-color .35s ease;
}
.author-detail-page .profile-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.author-detail-page .profile-stat-value {
  font-size: 22px; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1;
  transition: color .35s ease;
}
.author-detail-page .profile-stat-label {
  font-size: 12px; color: var(--text-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.author-detail-page .author-intro-box {
  font-size: 14.5px; line-height: 1.9; color: var(--text-2);
  padding: 16px 20px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: background-color .35s ease, border-color .35s ease;
}
.author-detail-page .author-intro-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 0; font-size: 13.5px; color: var(--text-3); font-style: italic;
}
.author-detail-page .author-intro-empty i { font-size: 16px; color: var(--brand); opacity: .5; }
.author-detail-page .author-novel-list { display: flex; flex-direction: column; gap: 12px; }
.author-detail-page .author-novel-item {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px; padding: 14px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; transition: all .25s ease; align-items: center;
}
.author-detail-page .author-novel-item:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 6px 18px var(--brand-tint);
}
.author-detail-page .an-cover {
  display: block; width: 90px; aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden; background: var(--line-soft);
}
.author-detail-page .an-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.author-detail-page .author-novel-item:hover .an-cover img { transform: scale(1.05); }
.author-detail-page .an-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.author-detail-page .an-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35;
}
.author-detail-page .an-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--ease); }
.author-detail-page .an-title a:hover { color: var(--brand); }
.author-detail-page .vip-tag {
  flex-shrink: 0; display: inline-block; padding: 2px 8px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 999px; letter-spacing: .04em; line-height: 1.4;
}
.author-detail-page .vip-tag.small { padding: 1px 6px; font-size: 9.5px; }
.author-detail-page .an-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text-3);
}
.author-detail-page .an-cat {
  padding: 2px 10px; font-size: 11.5px; font-weight: 500;
  color: var(--brand); background: var(--brand-soft); border-radius: 999px;
  transition: all .35s ease;
}
.author-detail-page .an-status {
  padding: 2px 10px; font-size: 11.5px; font-weight: 600;
  border-radius: 999px; color: #fff;
}
.author-detail-page .an-status.finished { background: rgba(16, 185, 129, .9); }
.author-detail-page .an-status.ongoing  { background: rgba(59, 130, 246, .9); }
.author-detail-page .an-meta-item {
  display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums;
}
.author-detail-page .an-meta-item i { font-size: 10px; opacity: .75; }
.author-detail-page .an-latest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); padding: 6px 10px;
  background: rgba(0, 0, 0, .02); border-radius: 6px;
}
.author-detail-page .an-latest i { font-size: 11px; color: var(--brand); opacity: .75; transition: color .35s ease; }
.author-detail-page .an-latest a {
  color: var(--text-2); font-weight: 500; transition: color var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px;
}
.author-detail-page .an-latest a:hover { color: var(--brand); }
.author-detail-page .an-empty { color: var(--text-3); font-style: italic; }
.author-detail-page .an-action { flex-shrink: 0; }
.author-detail-page .an-action .btn-primary.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 999px; gap: 6px; }
.author-detail-page .an-action .btn-primary i { font-size: 11px; }
.author-detail-page .author-timeline { position: relative; padding-left: 8px; }
.author-detail-page .timeline-item {
  position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px; padding: 12px 0 12px 24px; border-left: 2px solid var(--line);
  transition: border-color .35s ease;
}
.author-detail-page .timeline-item:last-child { border-left-color: transparent; }
.author-detail-page .timeline-dot {
  position: absolute; left: -7px; top: 18px;
  width: 12px; height: 12px; background: var(--brand);
  border: 2px solid var(--card); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brand-tint); transition: all .35s ease;
}
.author-detail-page .timeline-item:hover .timeline-dot { transform: scale(1.15); box-shadow: 0 0 0 5px var(--brand-tint); }
.author-detail-page .timeline-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-3); padding-top: 3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.author-detail-page .timeline-time i { font-size: 10px; opacity: .7; }
.author-detail-page .timeline-content {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13.5px; line-height: 1.7; color: var(--text-2); min-width: 0;
}
.author-detail-page .tl-action { color: var(--text-3); }
.author-detail-page .tl-novel {
  color: var(--text); font-weight: 600; transition: color var(--ease);
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.author-detail-page .tl-novel:hover { color: var(--brand); }
.author-detail-page .tl-volume {
  padding: 1px 8px; font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft); border-radius: 4px; transition: all .35s ease;
}
.author-detail-page .tl-chapter {
  color: var(--brand); font-weight: 500; transition: color var(--ease);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.author-detail-page .tl-chapter:hover { color: var(--brand-hover); text-decoration: underline; }
.author-detail-page .author-empty {
  padding: 50px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.author-detail-page .author-empty i { font-size: 52px; color: var(--brand); opacity: .25; margin-bottom: 4px; }
.author-detail-page .author-empty h3 { font-size: 16px; font-weight: 600; color: var(--text-2); }
@media (max-width: 1280px) {
  .author-detail-page .author-profile-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .author-detail-page .profile-stat-value { font-size: 20px; }
}
@media (max-width: 1024px) {
  .author-detail-page .author-profile { padding: 24px; gap: 20px; }
  .author-detail-page .author-profile-avatar { width: 80px; height: 80px; font-size: 34px; border-radius: 18px; }
  .author-detail-page .author-profile-name { font-size: 24px; }
  .author-detail-page .author-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; }
  .author-detail-page .profile-stat-value { font-size: 18px; }
  .author-detail-page .author-novel-item { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .author-detail-page .an-cover { width: 80px; }
  .author-detail-page .an-title { font-size: 15px; }
  .author-detail-page .an-latest a { max-width: 200px; }
}
@media (max-width: 640px) {
  .author-detail-page { padding-bottom: 24px; }
  .author-detail-page .breadcrumb { margin: 10px 0; font-size: 12.5px; }
  .author-detail-page .breadcrumb .current { max-width: 140px; }
  .author-detail-page .author-profile { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; gap: 14px; }
  .author-detail-page .author-profile-avatar { width: 72px; height: 72px; font-size: 30px; border-radius: 16px; }
  .author-detail-page .author-profile-info { align-items: center; width: 100%; gap: 12px; }
  .author-detail-page .author-profile-name { font-size: 20px; justify-content: center; gap: 8px; }
  .author-detail-page .author-badge { padding: 3px 10px; font-size: 11px; }
  .author-detail-page .author-badge i { font-size: 10px; }
  .author-detail-page .author-profile-meta { justify-content: center; font-size: 12px; gap: 6px 14px; }
  .author-detail-page .author-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 12px; width: 100%; }
  .author-detail-page .profile-stat-value { font-size: 16px; }
  .author-detail-page .profile-stat-label { font-size: 10.5px; }
  .author-detail-page .author-intro-box { font-size: 13.5px; line-height: 1.8; padding: 14px 16px; }
  .author-detail-page .author-novel-item { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 8px; }
  .author-detail-page .an-cover { width: 70px; border-radius: 4px; }
  .author-detail-page .an-info { gap: 6px; }
  .author-detail-page .an-title { font-size: 14px; gap: 6px; }
  .author-detail-page .an-meta { font-size: 11.5px; gap: 6px 8px; }
  .author-detail-page .an-cat,
  .author-detail-page .an-status { padding: 1px 8px; font-size: 10.5px; }
  .author-detail-page .an-latest { font-size: 11.5px; padding: 5px 8px; }
  .author-detail-page .an-latest a { max-width: 160px; }
  .author-detail-page .an-action { grid-column: 1 / -1; margin-top: 6px; }
  .author-detail-page .an-action .btn-primary.btn-sm { width: 100%; justify-content: center; padding: 8px 16px; font-size: 12.5px; }
  .author-detail-page .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 20px; padding-top: 10px; padding-bottom: 10px; }
  .author-detail-page .timeline-time { padding-top: 0; font-size: 11.5px; }
  .author-detail-page .timeline-content { font-size: 12.5px; gap: 4px; }
  .author-detail-page .tl-novel,
  .author-detail-page .tl-chapter { max-width: 180px; }
  .author-detail-page .tl-volume { padding: 1px 6px; font-size: 10.5px; }
}

/* ============================================================
   21. 排行榜页
   ============================================================ */
.rank-page { padding-bottom: 40px; }
.rank-page .rank-header-panel {
  padding: 26px 32px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color .35s ease, border-color .35s ease;
}
.rank-page .rank-header { display: flex; align-items: center; gap: 20px; }
.rank-page .rank-header-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 14px; box-shadow: 0 6px 16px rgba(217, 119, 6, .3);
}
.rank-page .rank-header-text { flex: 1; min-width: 0; }
.rank-page .rank-header-title {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); line-height: 1.2; margin-bottom: 6px;
}
.rank-page .rank-header-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.rank-page .rank-header-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-radius: 999px; box-shadow: 0 4px 12px rgba(225, 29, 72, .25);
  letter-spacing: .04em; white-space: nowrap;
}
.rank-page .rank-header-badge i { font-size: 12px; }
.rank-page .rank-tabs {
  display: flex; gap: 8px; padding: 8px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; scrollbar-width: none;
}
.rank-page .rank-tabs::-webkit-scrollbar { display: none; }
.rank-page .rank-tab {
  flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-2); background: var(--line-soft);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.rank-page .rank-tab i { font-size: 13px; opacity: .9; }
.rank-page .rank-tab:hover { color: var(--brand); background: var(--brand-soft); }
.rank-page .rank-tab.active {
  color: #fff; background: var(--brand); border-color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-tint);
}
.rank-page .rank-list-panel { overflow: hidden; }
.rank-page .panel-title i { margin-right: 6px; font-size: 13px; opacity: .9; }
.rank-page .panel-body { padding: 8px 12px; }
.rank-page .rank-list-large { display: flex; flex-direction: column; gap: 6px; }
.rank-page .rank-item {
  display: grid; grid-template-columns: 56px 72px minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 12px 16px;
  border-radius: 10px; transition: all .25s ease;
  color: inherit; min-width: 0; position: relative;
}
.rank-page .rank-item:hover { background: var(--brand-tint); transform: translateX(2px); }
.rank-page .rank-item.is-top-three {
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
}
.rank-page .rank-item.is-top-three:hover { background: var(--card); border-color: var(--brand); }
.rank-page .rank-item + .rank-item:not(.is-top-three):not(:hover) {
  border-top: 1px dashed var(--line); border-radius: 0;
}
.rank-page .rank-item.is-top-three + .rank-item,
.rank-page .rank-item + .rank-item.is-top-three { border-top: none; }
.rank-page .rank-number {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-size: 18px; font-weight: 800;
  color: var(--text-3); background: var(--line-soft); border-radius: 10px;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  transition: all .25s ease;
}
.rank-page .rank-number i { font-size: 18px; }
.rank-page .rank-number.top-three { color: #fff; border-radius: 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.rank-page .rank-item.is-top-three:nth-child(1) .rank-number { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 6px 16px rgba(245, 158, 11, .35); }
.rank-page .rank-item.is-top-three:nth-child(2) .rank-number { background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: 0 6px 16px rgba(148, 163, 184, .3); }
.rank-page .rank-item.is-top-three:nth-child(3) .rank-number { background: linear-gradient(135deg, #fdba74, #ea580c); box-shadow: 0 6px 16px rgba(234, 88, 12, .3); }
.rank-page .rank-cover {
  flex-shrink: 0; width: 72px; aspect-ratio: 3 / 4; border-radius: 6px;
  overflow: hidden; background: var(--line-soft); box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.rank-page .rank-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.rank-page .rank-item:hover .rank-cover img { transform: scale(1.06); }
.rank-page .rank-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-page .rank-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.rank-page .rank-item:hover .rank-title { color: var(--brand); }
.rank-page .rank-author {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}
.rank-page .rank-author i { font-size: 11px; opacity: .85; }
.rank-page .rank-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-3); }
.rank-page .rank-meta-item {
  display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums;
}
.rank-page .rank-meta-item i { font-size: 11px; opacity: .75; }
.rank-page .rank-score {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 15px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: all .35s ease;
}
.rank-page .rank-score i { font-size: 14px; opacity: .85; }
.rank-page .rank-item.is-top-three .rank-score { color: #fff; background: var(--brand); box-shadow: 0 4px 12px var(--brand-tint); }
.rank-page .rank-item.is-top-three:nth-child(1) .rank-score { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245, 158, 11, .3); }
.rank-page .rank-item.is-top-three:nth-child(2) .rank-score { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 4px 12px rgba(100, 116, 139, .25); }
.rank-page .rank-item.is-top-three:nth-child(3) .rank-score { background: linear-gradient(135deg, #ea580c, #c2410c); box-shadow: 0 4px 12px rgba(234, 88, 12, .25); }
.rank-page .rank-empty {
  padding: 60px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rank-page .rank-empty i { font-size: 56px; color: var(--brand); opacity: .25; margin-bottom: 4px; }
.rank-page .rank-empty h3 { font-size: 16px; font-weight: 600; color: var(--text-2); }
@media (max-width: 1280px) {
  .rank-page .rank-item { grid-template-columns: 52px 68px minmax(0, 1fr) auto; gap: 14px; padding: 11px 14px; }
  .rank-page .rank-number { width: 40px; height: 40px; font-size: 17px; }
  .rank-page .rank-cover { width: 68px; }
  .rank-page .rank-score { padding: 7px 14px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .rank-page .rank-header-panel { padding: 22px 24px; }
  .rank-page .rank-header-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .rank-page .rank-header-title { font-size: 21px; }
  .rank-page .rank-header-badge { padding: 6px 14px; font-size: 12px; }
  .rank-page .rank-item { grid-template-columns: 48px 64px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
  .rank-page .rank-number { width: 38px; height: 38px; font-size: 16px; border-radius: 9px; }
  .rank-page .rank-cover { width: 64px; border-radius: 5px; }
  .rank-page .rank-title { font-size: 15px; }
  .rank-page .rank-score { padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 640px) {
  .rank-page { padding-bottom: 24px; }
  .rank-page .rank-header-panel { padding: 18px 16px; margin-bottom: 10px; border-radius: 8px; }
  .rank-page .rank-header { flex-wrap: wrap; gap: 12px; }
  .rank-page .rank-header-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
  .rank-page .rank-header-title { font-size: 18px; }
  .rank-page .rank-header-desc { font-size: 12.5px; }
  .rank-page .rank-header-badge { padding: 5px 12px; font-size: 11.5px; gap: 4px; }
  .rank-page .rank-header-badge i { font-size: 10px; }
  .rank-page .rank-tabs { gap: 6px; padding: 6px; margin-bottom: 10px; border-radius: 8px; }
  .rank-page .rank-tab { flex: 0 0 auto; min-width: 0; padding: 9px 14px; font-size: 12.5px; gap: 5px; }
  .rank-page .rank-tab i { font-size: 11px; }
  .rank-page .panel-title { font-size: 14px; }
  .rank-page .panel-body { padding: 6px 8px; }
  .rank-page .rank-list-large { gap: 4px; }
  .rank-page .rank-item { grid-template-columns: 36px 56px minmax(0, 1fr); gap: 10px; padding: 10px 10px; border-radius: 8px; }
  .rank-page .rank-number { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
  .rank-page .rank-number i { font-size: 13px; }
  .rank-page .rank-number.top-three { border-radius: 9px; }
  .rank-page .rank-cover { width: 56px; border-radius: 4px; }
  .rank-page .rank-info { gap: 3px; }
  .rank-page .rank-title { font-size: 13.5px; }
  .rank-page .rank-author { font-size: 11.5px; max-width: 100%; }
  .rank-page .rank-author i { font-size: 10px; }
  .rank-page .rank-meta { font-size: 11px; gap: 8px; }
  .rank-page .rank-meta-item i { font-size: 10px; }
  .rank-page .rank-score { grid-column: 2 / -1; justify-self: start; margin-top: 4px; padding: 4px 12px; font-size: 12px; gap: 5px; }
  .rank-page .rank-score i { font-size: 11px; }
  .rank-page .rank-empty { padding: 40px 16px; }
  .rank-page .rank-empty i { font-size: 44px; }
  .rank-page .rank-empty h3 { font-size: 14px; }
}

/* ============================================================
   22. 登录页
   ============================================================ */
.login-page { padding-top: 40px; padding-bottom: 60px; }
.login-page .login-wrapper {
  display: grid; grid-template-columns: 400px minmax(0, 1fr);
  max-width: 960px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.login-page .login-side {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #fff; padding: 48px 36px;
  display: flex; flex-direction: column; transition: background .35s ease;
}
.login-page .login-side::before {
  content: ""; position: absolute; top: -30%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.login-page .login-side::after {
  content: ""; position: absolute; bottom: -40%; left: -20%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.login-page .login-side-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.login-page .login-side-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 24px; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.login-page .login-side-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 8px; }
.login-page .login-side-desc { font-size: 14px; color: rgba(255, 255, 255, .85); margin-bottom: 32px; }
.login-page .login-side-list { display: flex; flex-direction: column; gap: 14px; padding: 0; margin-top: auto; }
.login-page .login-side-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255, 255, 255, .95); line-height: 1.6;
}
.login-page .login-side-list li i { flex-shrink: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.login-page .login-main { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.login-page .login-header { margin-bottom: 26px; }
.login-page .login-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: 6px; }
.login-page .login-subtitle { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.login-page .login-error {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  margin-bottom: 18px; font-size: 13.5px; color: #b91c1c;
  background: #fee2e2; border: 1px solid #fecaca; border-radius: 10px;
}
.login-page .login-error i { font-size: 15px; flex-shrink: 0; }
.login-page .login-form { display: flex; flex-direction: column; gap: 18px; }
.login-page .login-field { display: flex; flex-direction: column; gap: 8px; }
.login-page .login-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.login-page .login-input-wrap {
  position: relative; display: flex; align-items: center;
  height: 46px; padding: 0 14px 0 42px;
  background: var(--line-soft); border: 1.5px solid transparent;
  border-radius: 10px; transition: all .2s ease;
}
.login-page .login-input-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.login-page .login-input-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.login-page .login-input-wrap:focus-within .login-input-icon { color: var(--brand); }
.login-page .login-input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.login-page .login-input-wrap input::placeholder { color: var(--text-3); }
.login-page .login-toggle-pwd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 13px; color: var(--text-3);
  background: transparent; border: none; border-radius: 50%;
  cursor: pointer; transition: all .2s ease;
}
.login-page .login-toggle-pwd:hover { color: var(--brand); background: var(--brand-soft); }
.login-page .login-input-wrap:has(.login-toggle-pwd) { padding-right: 44px; }
.login-page .login-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.login-page .login-captcha-img {
  display: block; height: 46px; width: auto; min-width: 110px;
  border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; transition: all .2s ease;
}
.login-page .login-captcha-img:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.login-page .login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.login-page .login-remember {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none;
}
.login-page .login-remember input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.login-page .login-remember:hover { color: var(--text); }
.login-page .login-forgot { font-size: 13px; font-weight: 500; color: var(--text-2); transition: color var(--ease); }
.login-page .login-forgot:hover { color: var(--brand); }
.login-page .login-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; margin-top: 4px; font-size: 15px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 10px; cursor: pointer; letter-spacing: .04em;
  transition: all .25s ease; box-shadow: 0 6px 18px var(--brand-tint);
}
.login-page .login-submit i { font-size: 14px; }
.login-page .login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-tint); filter: brightness(1.05); }
.login-page .login-submit:active { transform: translateY(0); }
.login-page .login-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px dashed var(--line); font-size: 13.5px;
}
.login-page .login-footer-text { color: var(--text-3); }
.login-page .login-footer-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 600; color: var(--brand); transition: all .2s ease;
}
.login-page .login-footer-link i { font-size: 10px; transition: transform .2s ease; }
.login-page .login-footer-link:hover { color: var(--brand-hover); }
.login-page .login-footer-link:hover i { transform: translateX(2px); }
@media (max-width: 900px) {
  .login-page { padding-top: 24px; padding-bottom: 40px; }
  .login-page .login-wrapper { grid-template-columns: 1fr; max-width: 480px; border-radius: 16px; }
  .login-page .login-side { display: none; }
  .login-page .login-main { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .login-page { padding-top: 12px; padding-bottom: 24px; }
  .login-page .login-wrapper { max-width: 100%; border-radius: 12px; box-shadow: none; }
  .login-page .login-main { padding: 26px 18px; }
  .login-page .login-header { margin-bottom: 20px; }
  .login-page .login-title { font-size: 22px; }
  .login-page .login-subtitle { font-size: 12.5px; }
  .login-page .login-form { gap: 14px; }
  .login-page .login-input-wrap { height: 44px; padding-left: 40px; border-radius: 8px; }
  .login-page .login-input-icon { left: 13px; font-size: 12px; }
  .login-page .login-input-wrap input { font-size: 13.5px; }
  .login-page .login-captcha-row { gap: 8px; }
  .login-page .login-captcha-img { height: 44px; min-width: 96px; border-radius: 8px; }
  .login-page .login-options { font-size: 12.5px; }
  .login-page .login-remember,
  .login-page .login-forgot { font-size: 12.5px; }
  .login-page .login-submit { height: 46px; font-size: 14px; border-radius: 8px; }
  .login-page .login-footer { margin-top: 18px; padding-top: 16px; font-size: 13px; }
}
@supports not selector(:has(*)) {
  .login-page .login-input-wrap input[type="password"],
  .login-page .login-input-wrap input[type="text"] { padding-right: 36px; }
}

/* ============================================================
   23. 注册页
   ============================================================ */
.login-page .login-required { color: #dc2626; font-weight: 700; margin-left: 2px; }
.login-page .register-agree {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.6; color: var(--text-2);
  cursor: pointer; user-select: none; margin-top: -4px;
}
.login-page .register-agree input[type="checkbox"] {
  flex-shrink: 0; margin-top: 3px; width: 15px; height: 15px;
  accent-color: var(--brand); cursor: pointer;
}
.login-page .register-agree span { flex: 1; min-width: 0; }
.login-page .register-agree a { color: var(--brand); font-weight: 600; transition: color var(--ease); }
.login-page .register-agree a:hover { color: var(--brand-hover); text-decoration: underline; }
.login-page .register-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.login-page .register-send-code {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; font-size: 13.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tag-bg);
  border: 1.5px solid var(--brand-tag-bd); border-radius: 10px;
  cursor: pointer; white-space: nowrap; transition: all .2s ease;
  min-width: 130px;
}
.login-page .register-send-code i { font-size: 12px; }
.login-page .register-send-code:hover:not(:disabled) {
  color: #fff; background: var(--brand); border-color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-tint);
}
.login-page .register-send-code:disabled {
  color: var(--text-3); background: var(--line-soft);
  border-color: var(--line); cursor: not-allowed; opacity: .7;
}
@media (max-width: 900px) { .register-page .login-wrapper { max-width: 480px; } }
@media (max-width: 640px) {
  .register-page .login-wrapper { max-width: 100%; }
  .login-page .register-send-code { height: 44px; padding: 0 14px; font-size: 12.5px; min-width: 110px; border-radius: 8px; }
  .login-page .register-send-code i { font-size: 11px; }
  .login-page .register-agree { font-size: 12px; gap: 6px; }
  .login-page .register-agree input[type="checkbox"] { width: 14px; height: 14px; margin-top: 2px; }
}
@media (max-width: 420px) {
  .login-page .register-code-row { grid-template-columns: 1fr; gap: 8px; }
  .login-page .register-send-code { width: 100%; }
}

/* ============================================================
   24. 会员中心（.user-page）
   ============================================================ */
.user-page { padding-bottom: 40px; }
.user-page .user-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.user-page .user-sidebar-wrap { min-width: 0; }
.user-page .user-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.user-page .panel-title i { margin-right: 6px; font-size: 13px; opacity: .9; }
.user-page .user-welcome-panel { padding: 0; overflow: hidden; }
.user-page .user-welcome {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #fff; overflow: hidden; transition: background .35s ease;
}
.user-page .user-welcome::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.user-page .user-welcome::after {
  content: ""; position: absolute; bottom: -60%; left: 5%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.user-page .user-welcome-avatar {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; font-size: 26px; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 18px; backdrop-filter: blur(6px);
}
.user-page .user-welcome-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.user-page .user-welcome-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  line-height: 1.3; margin-bottom: 6px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}
.user-page .user-welcome-name { color: #fff; }
.user-page .user-welcome-desc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: rgba(255, 255, 255, .9); line-height: 1.5;
}
.user-page .user-welcome-desc i { font-size: 12px; color: #fbbf24; }
.user-page .user-welcome-badge {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 999px; box-shadow: 0 4px 16px rgba(251, 191, 36, .4);
  letter-spacing: .04em;
}
.user-page .user-welcome-badge i { font-size: 12px; }
.user-page .user-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.user-page .user-info-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; transition: all .25s ease; min-width: 0;
}
.user-page .user-info-item:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-tint);
}
.user-page .user-info-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; font-size: 15px; color: var(--brand);
  background: var(--card); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; transition: all .35s ease;
}
.user-page .user-info-icon.is-vip {
  color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent; box-shadow: 0 3px 10px rgba(245, 158, 11, .3);
}
.user-page .user-info-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-page .user-info-label { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; }
.user-page .user-info-value {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; word-break: break-all;
}
.user-page .user-info-empty { font-style: italic; font-weight: 400; color: var(--text-3); font-size: 13px; }
.user-page .user-info-expire { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); }
.user-page .vip-status-tag {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(245, 158, 11, .25);
}
.user-page .user-status-normal { color: var(--text-2); font-weight: 500; }
.user-page .user-info-upgrade { font-size: 12px; font-weight: 600; color: var(--brand); transition: all .2s ease; }
.user-page .user-info-upgrade:hover { color: var(--brand-hover); text-decoration: underline; }
.user-page .user-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.user-page .stat-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px; transition: all .25s ease; min-width: 0; color: inherit;
}
.user-page .stat-card:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-2px); box-shadow: 0 6px 18px var(--brand-tint);
}
.user-page .stat-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; font-size: 20px; color: #fff;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: transform .25s ease;
}
.user-page .stat-card:hover .stat-icon { transform: scale(1.06); }
.user-page .stat-icon-gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.user-page .stat-icon-green  { background: linear-gradient(135deg, #34d399, #059669); }
.user-page .stat-icon-blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.user-page .stat-icon-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.user-page .stat-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-page .stat-value {
  font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: color .35s ease;
}
.user-page .stat-label { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-page .user-sign-panel { padding: 0; overflow: hidden; }
.user-page .user-sign-cta {
  display: flex; align-items: center; gap: 18px; padding: 22px 28px;
  background: linear-gradient(135deg, var(--brand-tag-bg) 0%, var(--brand-soft) 100%);
  transition: background .35s ease;
}
.user-page .user-sign-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 16px; box-shadow: 0 6px 16px var(--brand-tint);
}
.user-page .user-sign-text { flex: 1; min-width: 0; }
.user-page .user-sign-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.user-page .user-sign-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.user-page .user-sign-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  letter-spacing: .04em; box-shadow: 0 6px 16px var(--brand-tint);
  transition: all .25s ease; white-space: nowrap;
}
.user-page .user-sign-btn:hover {
  transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-tint);
  filter: brightness(1.06); color: #fff;
}
.user-page .user-sign-btn i { font-size: 13px; }
@media (max-width: 1024px) {
  .user-page .user-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 14px; }
  .user-page .user-welcome { padding: 22px 24px; gap: 16px; }
  .user-page .user-welcome-avatar { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }
  .user-page .user-welcome-title { font-size: 20px; }
  .user-page .user-info-grid { grid-template-columns: 1fr; }
  .user-page .user-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .user-page { padding-bottom: 24px; }
  .user-page .user-layout { grid-template-columns: 1fr; gap: 10px; }
  .user-page .user-welcome { padding: 18px 16px; gap: 12px; flex-wrap: wrap; }
  .user-page .user-welcome-avatar { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .user-page .user-welcome-title { font-size: 17px; gap: 4px; }
  .user-page .user-welcome-desc { font-size: 12.5px; }
  .user-page .user-welcome-badge { padding: 5px 12px; font-size: 11.5px; margin-left: auto; }
  .user-page .user-welcome-badge i { font-size: 10px; }
  .user-page .panel-title { font-size: 14px; }
  .user-page .panel-body { padding: 8px 10px; }
  .user-page .user-info-grid { gap: 8px; }
  .user-page .user-info-item { padding: 12px 14px; gap: 10px; border-radius: 8px; }
  .user-page .user-info-icon { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }
  .user-page .user-info-label { font-size: 11.5px; }
  .user-page .user-info-value { font-size: 13px; }
  .user-page .user-info-empty,
  .user-page .user-info-expire { font-size: 11.5px; }
  .user-page .vip-status-tag { padding: 1px 8px; font-size: 10.5px; }
  .user-page .user-info-upgrade { font-size: 11.5px; }
  .user-page .user-stats-grid { gap: 8px; }
  .user-page .stat-card {
    padding: 12px 14px; gap: 10px; border-radius: 10px;
    flex-direction: column; align-items: flex-start; text-align: left;
  }
  .user-page .stat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .user-page .stat-value { font-size: 18px; }
  .user-page .stat-label { font-size: 11px; }
  .user-page .user-sign-cta { flex-wrap: wrap; gap: 12px; padding: 18px 16px; }
  .user-page .user-sign-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .user-page .user-sign-text { flex: 1 0 calc(100% - 60px); }
  .user-page .user-sign-title { font-size: 15px; }
  .user-page .user-sign-desc { font-size: 12px; }
  .user-page .user-sign-btn { width: 100%; padding: 11px 20px; font-size: 13.5px; margin-top: 4px; }
}

/* ============================================================
   25. 会员中心侧边栏
   ============================================================ */
.user-sidebar {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: background-color .35s ease, border-color .35s ease;
}
.user-sidebar .user-sidebar-header {
  position: relative; padding: 22px 18px; text-align: center;
  background: linear-gradient(160deg, var(--brand-tag-bg) 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line); overflow: hidden;
  transition: background .35s ease, border-color .35s ease;
}
.user-sidebar .user-sidebar-header::before {
  content: ""; position: absolute; top: -40%; right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--brand-tint) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.user-sidebar .user-avatar {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 50%; margin-bottom: 12px;
  box-shadow: 0 8px 20px var(--brand-tint);
  transition: background .35s ease, box-shadow .35s ease, transform .25s ease;
}
.user-sidebar .user-avatar:hover { transform: scale(1.05); }
.user-sidebar .user-sidebar-header h3 {
  position: relative; z-index: 1; font-size: 16px; font-weight: 800;
  color: var(--text); line-height: 1.3; margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em;
}
.user-sidebar .user-sidebar-header p,
.user-sidebar .user-sidebar-header p.user-sidebar-role {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
}

.user-sidebar .user-sidebar-header .user-sidebar-role-text {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
}
.user-sidebar .user-sidebar-header .vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 999px;
  letter-spacing: .04em;
  box-shadow: 0 3px 10px rgba(245, 158, 11, .3);
  vertical-align: middle;
  white-space: nowrap;
}
.user-sidebar .user-sidebar-header .vip-badge i {
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.user-sidebar .user-sidebar-header .vip-badge span {
  line-height: 1;
  display: inline-block;
}
.user-sidebar .user-nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.user-sidebar .user-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border-radius: 8px; transition: all .2s ease; position: relative; min-width: 0;
}
.user-sidebar .user-nav-item i {
  flex-shrink: 0; width: 18px; font-size: 14px; text-align: center;
  color: var(--text-3); transition: color .2s ease;
}
.user-sidebar .user-nav-item span {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-sidebar .user-nav-item:hover { color: var(--brand); background: var(--brand-tint-2); }
.user-sidebar .user-nav-item:hover i { color: var(--brand); }
.user-sidebar .user-nav-item.active {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  font-weight: 600; box-shadow: 0 4px 12px var(--brand-tint);
}
.user-sidebar .user-nav-item.active i { color: #fff; }
.user-sidebar .user-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) translateX(-1px);
  width: 3px; height: 60%; background: #fff;
  border-radius: 0 3px 3px 0; opacity: .6;
}
.user-sidebar .user-nav-item.user-nav-danger { color: #dc2626; }
.user-sidebar .user-nav-item.user-nav-danger i { color: #dc2626; }
.user-sidebar .user-nav-item.user-nav-danger:hover { color: #b91c1c; background: #fee2e2; }
.user-sidebar .user-nav-item.user-nav-danger:hover i { color: #b91c1c; }
.user-sidebar .user-nav-divider { height: 1px; margin: 6px 8px; background: var(--line); transition: background-color .35s ease; }
@media (max-width: 640px) {
  .user-sidebar { border-radius: 8px; }
  .user-sidebar .user-sidebar-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  }
  .user-sidebar .user-avatar { width: 40px; height: 40px; font-size: 16px; margin-bottom: 0; flex-shrink: 0; }
  .user-sidebar .user-sidebar-header h3 { font-size: 14.5px; margin-bottom: 2px; text-align: left; flex: 1; min-width: 0; }
  .user-sidebar .user-sidebar-header > div,
  .user-sidebar .user-sidebar-header > h3,
  .user-sidebar .user-sidebar-header > p { flex-shrink: 0; }
  .user-sidebar .user-sidebar-header .vip-badge {
  height: 20px;
  padding: 0 9px;
  font-size: 10.5px;
  gap: 4px;
}
.user-sidebar .user-sidebar-header .vip-badge i { font-size: 9px; }
.user-sidebar .user-sidebar-header p.user-sidebar-role { min-height: 20px; }
  .user-sidebar .user-nav {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 8px 8px 10px; gap: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .user-sidebar .user-nav::-webkit-scrollbar { display: none; }
  .user-sidebar .user-nav-item {
    flex: 0 0 auto; padding: 8px 14px; font-size: 12.5px; gap: 6px;
    border-radius: 999px; white-space: nowrap;
  }
  .user-sidebar .user-nav-item i { width: auto; font-size: 12px; }
  .user-sidebar .user-nav-item.active::before { display: none; }
  .user-sidebar .user-nav-divider { display: none; }
  .user-sidebar .user-nav-item.user-nav-danger { color: #dc2626; background: #fee2e2; }
  .user-sidebar .user-nav-item.user-nav-danger:hover { color: #fff; background: #dc2626; }
  .user-sidebar .user-nav-item.user-nav-danger:hover i { color: #fff; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .user-sidebar .user-sidebar-header { padding: 18px 14px; }
  .user-sidebar .user-avatar { width: 56px; height: 56px; font-size: 22px; }
  .user-sidebar .user-sidebar-header h3 { font-size: 15px; }
  .user-sidebar .user-nav-item { padding: 9px 10px; font-size: 13px; gap: 8px; }
  .user-sidebar .user-nav-item i { width: 16px; font-size: 13px; }
}

/* ============================================================
   26. 个人资料页
   ============================================================ */
.profile-alert {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  margin-bottom: 14px; font-size: 14px; font-weight: 500;
  color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0;
  border-radius: 10px; animation: profileAlertIn .3s ease;
}
.profile-alert i { font-size: 18px; flex-shrink: 0; color: #10b981; }
@keyframes profileAlertIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 16px; }
.profile-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: .02em; line-height: 1.4;
  justify-content: flex-start; text-align: left;
}
.profile-hint {
  display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: 500;
  color: var(--text-3); background: var(--line-soft);
  border-radius: 999px; letter-spacing: 0;
}
.profile-input-wrap {
  position: relative; display: flex; align-items: center;
  height: 46px; padding: 0 44px 0 42px;
  background: var(--line-soft); border: 1.5px solid transparent;
  border-radius: 10px; transition: all .2s ease;
}
.profile-input-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.profile-input-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.profile-input-wrap:focus-within .profile-input-icon { color: var(--brand); }
.profile-input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.profile-input-wrap input::placeholder { color: var(--text-3); }
.profile-input-disabled { background: var(--line-soft); cursor: not-allowed; opacity: .78; }
.profile-input-disabled input { cursor: not-allowed; color: var(--text-3); }
.profile-input-disabled .profile-input-icon { opacity: .6; }
.profile-input-disabled::after {
  content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); opacity: .5;
}
.profile-toggle-pwd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 13px; color: var(--text-3);
  background: transparent; border: none; border-radius: 50%;
  cursor: pointer; transition: all .2s ease;
}
.profile-toggle-pwd:hover { color: var(--brand); background: var(--brand-soft); }
.profile-section-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 6px; padding: 13px 18px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; font-size: 14.5px; font-weight: 700;
  color: var(--text);
  transition: background-color .35s ease, border-color .35s ease;
}
.profile-section-title i { color: var(--brand); font-size: 14px; }
.profile-section-title > span { flex: 1; min-width: 0; }
.profile-section-hint {
  flex-basis: 100%; font-style: normal; font-size: 12px;
  font-weight: 500; color: var(--text-3); letter-spacing: 0; padding-left: 22px;
}
.profile-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.profile-submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 32px; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 999px; cursor: pointer;
  letter-spacing: .04em; box-shadow: 0 6px 16px var(--brand-tint);
  transition: all .25s ease; white-space: nowrap;
}
.profile-submit i { font-size: 13px; }
.profile-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-tint); filter: brightness(1.05); }
.profile-submit:active { transform: translateY(0); }
@media (max-width: 1024px) {
  .profile-field { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .profile-label { font-size: 13px; }
  .profile-input-wrap { height: 44px; }
  .profile-section-title { font-size: 13.5px; padding: 12px 16px; }
}
@media (max-width: 640px) {
  .profile-alert { padding: 11px 14px; font-size: 13px; gap: 8px; border-radius: 8px; }
  .profile-alert i { font-size: 15px; }
  .profile-form { gap: 12px; }
  .profile-field { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .profile-label { font-size: 12.5px; gap: 4px; }
  .profile-hint { font-size: 10px; padding: 0 5px; width: 100%; margin-top: 2px; text-align: left; }
  .profile-input-wrap { height: 42px; padding-left: 38px; padding-right: 38px; border-radius: 8px; }
  .profile-input-icon { left: 12px; font-size: 12px; }
  .profile-input-wrap input { font-size: 13px; }
  .profile-toggle-pwd { width: 28px; height: 28px; right: 5px; font-size: 11px; }
  .profile-input-disabled::after { right: 12px; font-size: 10px; }
  .profile-section-title {
    font-size: 13px; padding: 10px 12px; gap: 6px; border-radius: 8px;
    flex-direction: column; align-items: flex-start;
  }
  .profile-section-title i { font-size: 12px; }
  .profile-section-hint { font-size: 11.5px; padding-left: 20px; flex-basis: auto; }
  .profile-actions { justify-content: stretch; padding-top: 14px; margin-top: 4px; }
  .profile-submit { width: 100%; padding: 12px 20px; font-size: 13.5px; border-radius: 10px; }
}

/* ============================================================
   27. 金币明细页
   ============================================================ */
.user-page .gold-amount {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .15); margin: 0 4px;
}
.user-page .user-empty {
  padding: 60px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.user-page .user-empty i { font-size: 56px; color: var(--brand); opacity: .25; margin-bottom: 6px; }
.user-page .user-empty h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.user-page .user-empty p { font-size: 13.5px; color: var(--text-3); }
.gold-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.gold-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.gold-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.gold-table th {
  padding: 12px 14px; text-align: left;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.gold-table td {
  padding: 12px 14px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.gold-table tbody tr:last-child td { border-bottom: none; }
.gold-table tbody tr { transition: background-color .2s ease; }
.gold-table tbody tr:hover { background: var(--brand-tint); }
.gold-table .col-time    { width: 150px; white-space: nowrap; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gold-table .col-type    { width: 110px; white-space: nowrap; }
.gold-table .col-change  { width: 100px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.gold-table .col-after   { width: 100px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.gold-table .col-novel   { width: 180px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-table .col-chapter { width: 180px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-table .col-remark  { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold-table th.col-change,
.gold-table th.col-after { text-align: right; }
.gold-table td a { color: var(--brand); font-weight: 500; transition: color var(--ease); }
.gold-table td a:hover { color: var(--brand-hover); text-decoration: underline; }
.gold-table .col-change.is-positive { color: #10b981; }
.gold-table .col-change.is-negative { color: #ef4444; }
.gold-table .muted { color: var(--text-3); opacity: .7; }
.gold-type-tag {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11.5px; font-weight: 600; border-radius: 999px;
  white-space: nowrap; letter-spacing: .02em;
}
.gold-type-tag.type-sign             { color: #059669; background: #d1fae5; }
.gold-type-tag.type-recharge         { color: #0284c7; background: #e0f2fe; }
.gold-type-tag.type-exchange_vip     { color: #b45309; background: #fef3c7; }
.gold-type-tag.type-purchase_chapter { color: #b91c1c; background: #fee2e2; }
.gold-type-tag.type-read_vip         { color: #b91c1c; background: #fee2e2; }
.gold-type-tag.type-admin            { color: #7c3aed; background: #ede9fe; }
.gold-cards { display: none; flex-direction: column; gap: 10px; }
.gold-card {
  padding: 14px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: all .25s ease;
}
.gold-card:hover { background: var(--card); border-color: var(--brand); }
.gold-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.gold-card-head .gold-change {
  font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.gold-card-head .gold-change.is-positive { color: #10b981; }
.gold-card-head .gold-change.is-negative { color: #ef4444; }
.gold-card-body { display: flex; flex-direction: column; gap: 8px; }
.gold-card-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; }
.gold-card-label { flex-shrink: 0; width: 76px; color: var(--text-3); font-weight: 500; }
.gold-card-value { flex: 1; min-width: 0; color: var(--text-2); word-break: break-all; }
.gold-card-value a { color: var(--brand); font-weight: 500; transition: color var(--ease); }
.gold-card-value a:hover { color: var(--brand-hover); text-decoration: underline; }
@media (max-width: 900px) {
  .gold-table-wrap { display: none; }
  .gold-cards { display: flex; }
}
@media (max-width: 640px) {
  .user-page .gold-amount { font-size: 18px; }
  .user-page .gold-recharge-btn { width: 100%; padding: 11px 18px; font-size: 13.5px; margin-top: 4px; }
  .gold-card { padding: 12px; border-radius: 8px; }
  .gold-card-head { padding-bottom: 8px; margin-bottom: 8px; }
  .gold-card-head .gold-change { font-size: 15.5px; }
  .gold-type-tag { padding: 2px 9px; font-size: 11px; }
  .gold-card-row { font-size: 12.5px; gap: 10px; }
  .gold-card-label { width: 68px; font-size: 12px; }
  .user-page .user-empty { padding: 40px 16px; }
  .user-page .user-empty i { font-size: 44px; }
  .user-page .user-empty h3 { font-size: 15px; }
  .user-page .user-empty p { font-size: 12.5px; }
}

/* ============================================================
   28. 会员中心页（VIP）
   ============================================================ */
.user-page .vip-welcome-gold .user-welcome-desc i,
.user-page .vip-welcome-normal .user-welcome-desc i { color: #fbbf24; }
.user-page .vip-status-panel { padding: 0; overflow: hidden; }
.user-page .vip-status-card {
  display: flex; align-items: center; gap: 18px; padding: 24px 28px;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: all .35s ease;
}
.user-page .vip-status-card.is-active { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 1px solid #fcd34d; }
.user-page .vip-status-card.is-normal { background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd); }
.user-page .vip-status-card::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
}
.user-page .vip-status-card.is-active::before { background: radial-gradient(circle, rgba(251, 191, 36, .35) 0%, transparent 70%); }
.user-page .vip-status-card.is-normal::before { background: radial-gradient(circle, var(--brand-tint) 0%, transparent 70%); }
.user-page .vip-status-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; font-size: 24px; color: #fff;
  border-radius: 16px; transition: all .3s ease;
}
.user-page .vip-status-card.is-active .vip-status-icon { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 16px rgba(245, 158, 11, .4); }
.user-page .vip-status-card.is-normal .vip-status-icon { background: linear-gradient(135deg, var(--brand), var(--brand-hover)); box-shadow: 0 6px 16px var(--brand-tint); }
.user-page .vip-status-body {
  position: relative; z-index: 1; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.user-page .vip-status-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.user-page .vip-status-card.is-active .vip-status-title { color: #78350f; }
.user-page .vip-status-card.is-normal .vip-status-title { color: var(--text); }
.user-page .vip-status-expire,
.user-page .vip-status-tip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.6;
}
.user-page .vip-status-card.is-active .vip-status-expire { color: #92400e; }
.user-page .vip-status-card.is-normal .vip-status-tip   { color: var(--text-3); }
.user-page .vip-status-expire i { font-size: 12px; opacity: .8; }
.user-page .vip-status-badge {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; padding: 6px 18px;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 999px; letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}
.user-page .vip-block-panel { overflow: hidden; }
.user-page .vip-block-panel .panel-title i { margin-right: 6px; font-size: 13px; opacity: .9; }
.user-page .vip-block-desc {
  font-size: 13.5px; color: var(--text-2); line-height: 1.7;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 8px;
  transition: background-color .35s ease, border-color .35s ease;
}
.user-page .vip-form { display: flex; flex-direction: column; gap: 16px; }
.user-page .vip-field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; }
.user-page .vip-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: .02em; justify-content: flex-start; text-align: left;
}

/* ★ 美化版下拉框 */
.user-page .vip-select-wrap {
  position: relative; display: flex; align-items: center;
  height: 48px; padding: 0 52px 0 48px;
  background: linear-gradient(135deg, var(--card) 0%, var(--line-soft) 100%);
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: all .25s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.user-page .vip-select-wrap:hover {
  border-color: var(--brand-tag-bd);
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-tag-bg) 100%);
}
.user-page .vip-select-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 12px var(--brand-tint);
}
.user-page .vip-select-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 8px; pointer-events: none;
  box-shadow: 0 2px 6px var(--brand-tint); transition: all .25s ease;
}
.user-page .vip-select-wrap:focus-within .vip-select-icon { transform: translateY(-50%) scale(1.08); }
.user-page .vip-select-wrap::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 10px; color: var(--brand);
  background: var(--brand-tag-bg); border-radius: 8px;
  pointer-events: none; transition: all .25s ease;
}
.user-page .vip-select-wrap:hover::after,
.user-page .vip-select-wrap:focus-within::after { background: var(--brand); color: #fff; }
.user-page .vip-select {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 0; font-family: inherit; letter-spacing: .01em;
  text-overflow: ellipsis;
}

/* ★★ 选项列表美化 ★★ */
.user-page .vip-select option {
  color: var(--text);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.user-page .vip-select option:checked {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  font-weight: 700;
}
.user-page .vip-select option:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.user-page .vip-select option:disabled {
  color: var(--text-3);
  background: var(--line-soft);
  font-style: italic;
}
.user-page .vip-select option:focus {
  background: var(--brand-soft);
  color: var(--brand);
}
.user-page .vip-select optgroup {
  color: var(--text-3);
  background: var(--line-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 12px 4px;
}
.user-page .vip-select::-webkit-scrollbar,
.apply-select::-webkit-scrollbar { width: 8px; }
.user-page .vip-select::-webkit-scrollbar-thumb,
.apply-select::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.user-page .vip-select::-webkit-scrollbar-thumb:hover,
.apply-select::-webkit-scrollbar-thumb:hover { background: var(--brand-tag-bd); }

/* 支付方式选择 */
.user-page .pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.user-page .pay-method-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: all .2s ease; user-select: none;
  flex: 1; min-width: 140px;
}
.user-page .pay-method-item:hover { border-color: var(--brand); background: var(--brand-tag-bg); }
.user-page .pay-method-item input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.user-page .pay-method-item:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.user-page .pay-method-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 18px; color: #fff; border-radius: 10px;
}
.user-page .pay-method-icon.pay-alipay { background: linear-gradient(135deg, #1677ff, #0958d9); }
.user-page .pay-method-icon.pay-wxpay { background: linear-gradient(135deg, #22c55e, #16a34a); }
.user-page .pay-method-text { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.user-page .pay-method-item:has(input:checked)::after {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 11px; color: var(--brand); margin-left: auto;
}
@supports not selector(:has(*)) {
  .user-page .pay-method-item input[type="radio"]:checked ~ .pay-method-text { color: var(--brand); font-weight: 700; }
}
.user-page .vip-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 6px; padding-top: 16px;
  border-top: 1px dashed var(--line); transition: border-color .35s ease;
}
.user-page .vip-submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 32px; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 999px; cursor: pointer;
  letter-spacing: .04em; box-shadow: 0 6px 16px var(--brand-tint);
  transition: all .25s ease; white-space: nowrap;
}
.user-page .vip-submit i { font-size: 13px; }
.user-page .vip-submit:hover {
  transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-tint); filter: brightness(1.05);
}
.user-page .vip-submit:active { transform: translateY(0); }
.user-page .vip-submit-pay {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 16px rgba(245, 158, 11, .35);
}
.user-page .vip-submit-pay:hover { box-shadow: 0 10px 24px rgba(245, 158, 11, .45); filter: brightness(1.05); }
@media (max-width: 1024px) {
  .user-page .vip-status-card { padding: 20px 24px; gap: 14px; }
  .user-page .vip-status-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
  .user-page .vip-status-title { font-size: 16.5px; }
  .user-page .vip-status-badge { padding: 5px 14px; font-size: 12px; }
  .user-page .vip-field { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .user-page .vip-label { font-size: 13px; }
  .user-page .vip-select-wrap { height: 44px; }
}
@media (max-width: 640px) {
  .user-page .vip-status-card { padding: 16px 18px; gap: 12px; flex-wrap: wrap; }
  .user-page .vip-status-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 12px; }
  .user-page .vip-status-title { font-size: 15px; }
  .user-page .vip-status-expire,
  .user-page .vip-status-tip { font-size: 12px; }
  .user-page .vip-status-badge { padding: 4px 12px; font-size: 11px; margin-left: auto; }
  .user-page .vip-block-desc { font-size: 12.5px; padding: 8px 12px; margin-bottom: 14px; }
  .user-page .vip-form { gap: 14px; }
  .user-page .vip-field { grid-template-columns: 1fr; gap: 8px; }
  .user-page .vip-label { font-size: 12.5px; }
  .user-page .vip-select-wrap { height: 46px; padding: 0 46px 0 44px; border-radius: 10px; }
  .user-page .vip-select-icon { left: 8px; width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
  .user-page .vip-select-wrap::after { right: 7px; width: 26px; height: 26px; font-size: 9px; border-radius: 7px; }
  .user-page .vip-select { font-size: 13px; }
  .user-page .pay-methods { flex-direction: column; gap: 8px; }
  .user-page .pay-method-item { padding: 10px 14px; border-radius: 8px; min-width: 0; }
  .user-page .pay-method-icon { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  .user-page .pay-method-text { font-size: 13px; }
  .user-page .vip-actions { justify-content: stretch; padding-top: 14px; margin-top: 4px; }
  .user-page .vip-submit { width: 100%; padding: 12px 20px; font-size: 13.5px; border-radius: 10px; }
}
/* ============================================================
   29. 签到页（作用域 .sign-*）
   ============================================================ */
.user-page .sign-panel { padding: 0; overflow: hidden; }
.user-page .sign-card {
  position: relative; padding: 40px 32px 36px;
  background: linear-gradient(160deg, var(--brand-tag-bg) 0%, var(--brand-soft) 100%);
  overflow: hidden; transition: background .35s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.user-page .sign-card::before {
  content: ""; position: absolute; top: -80px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--brand-tint) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.user-page .sign-card::after {
  content: ""; position: absolute; bottom: -80px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--brand-tint) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.user-page .sign-card.is-signed { background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%); }
.user-page .sign-card.is-signed::before,
.user-page .sign-card.is-signed::after { background: radial-gradient(circle, rgba(251, 191, 36, .35) 0%, transparent 70%); }
.user-page .sign-icon-wrap { position: relative; z-index: 1; display: inline-flex; margin-bottom: 20px; }
.user-page .sign-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; font-size: 38px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 24px; box-shadow: 0 12px 32px var(--brand-tint);
  transition: background .35s ease, box-shadow .35s ease, transform .3s ease;
  animation: signIconFloat 3s ease-in-out infinite;
}
.user-page .sign-card.is-signed .sign-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 32px rgba(245, 158, 11, .4);
}
@keyframes signIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.user-page .sign-title {
  position: relative; z-index: 1; font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 22px; line-height: 1.3;
}
.user-page .sign-card.is-signed .sign-title { color: #78350f; }
.user-page .sign-reward-preview {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 20px 32px; margin: 0 0 24px;
  width: 100%; max-width: 320px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04); transition: all .35s ease;
}
.user-page .sign-card.is-signed .sign-reward-preview { background: rgba(255, 255, 255, .85); }
.user-page .reward-label { font-size: 12.5px; color: var(--text-3); letter-spacing: .04em; margin-bottom: 4px; }
.user-page .reward-number {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 40px; font-weight: 800; line-height: 1; color: var(--brand);
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .35s ease;
}
.user-page .sign-card.is-signed .reward-number { color: #d97706; }
.user-page .reward-plus { font-size: 26px; font-weight: 700; opacity: .85; }
.user-page .reward-unit { font-size: 13px; font-weight: 600; color: var(--text-3); margin-top: 2px; letter-spacing: .02em; }
.user-page .reward-detail {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-3);
}
.user-page .reward-detail-item strong {
  color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums;
}
.user-page .sign-card.is-signed .reward-detail-item strong { color: #b45309; }
.user-page .reward-detail-bonus strong { color: #10b981 !important; }
.user-page .reward-detail-sep { color: var(--line); opacity: .8; }
.user-page .sign-form { position: relative; z-index: 1; display: block; width: 100%; max-width: 320px; margin: 0; }
.user-page .sign-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 0; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 999px; cursor: pointer; letter-spacing: .06em;
  box-shadow: 0 10px 28px var(--brand-tint); transition: all .25s ease;
  white-space: nowrap; animation: signBtnPulse 2.4s ease-in-out infinite;
}
.user-page .sign-btn i { font-size: 15px; transition: transform .2s ease; }
.user-page .sign-btn:hover {
  transform: translateY(-2px); box-shadow: 0 14px 36px var(--brand-tint);
  filter: brightness(1.06); animation-play-state: paused;
}
.user-page .sign-btn:hover i { transform: translateX(3px); }
.user-page .sign-btn:active { transform: translateY(0); }
@keyframes signBtnPulse {
  0%, 100% { box-shadow: 0 10px 28px var(--brand-tint); }
  50%      { box-shadow: 0 10px 28px var(--brand-tint), 0 0 0 8px var(--brand-tint-2); }
}
.user-page .signed-badge {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; max-width: 320px; padding: 14px 0;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 999px; box-shadow: 0 8px 24px rgba(16, 185, 129, .3);
  letter-spacing: .04em; animation: signedBadgeIn .5s ease;
}
.user-page .signed-badge i { font-size: 18px; }
@keyframes signedBadgeIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.user-page .sign-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.user-page .sign-stat {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px; transition: all .25s ease; min-width: 0;
}
.user-page .sign-stat:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-2px); box-shadow: 0 6px 18px var(--brand-tint);
}
.user-page .sign-stat-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; font-size: 20px; color: #fff;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: transform .25s ease;
}
.user-page .sign-stat:hover .sign-stat-icon { transform: scale(1.06); }
.user-page .sign-stat-icon-gold  { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.user-page .sign-stat-icon-green { background: linear-gradient(135deg, #34d399, #059669); }
.user-page .sign-stat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-page .sign-stat-label { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.user-page .sign-stat-value {
  font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .35s ease;
}
.user-page .sign-stat-unit { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.user-page .sign-rule-panel { padding: 0; overflow: hidden; }
.user-page .sign-rule-box {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; background: var(--brand-tint-2);
  transition: background-color .35s ease;
}
.user-page .sign-rule-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 14px; color: var(--brand);
  background: var(--card); border-radius: 50%;
  transition: color .35s ease, background .35s ease;
}
.user-page .sign-rule-text {
  flex: 1; min-width: 0; font-size: 13px; line-height: 1.7; color: var(--text-2);
}
@media (max-width: 1024px) {
  .user-page .sign-card { padding: 32px 24px 28px; }
  .user-page .sign-icon { width: 76px; height: 76px; font-size: 32px; border-radius: 20px; }
  .user-page .sign-title { font-size: 20px; margin-bottom: 18px; }
  .user-page .reward-number { font-size: 36px; }
  .user-page .sign-btn { padding: 14px 44px; font-size: 15px; }
}
@media (max-width: 640px) {
  .user-page .sign-reward-preview { padding: 16px 20px; margin-bottom: 20px; border-radius: 14px; max-width: 100%; }
  .user-page .sign-form { max-width: 100%; }
  .user-page .sign-btn { padding: 13px 0; font-size: 14px; border-radius: 12px; animation: none; }
  .user-page .sign-btn i { font-size: 13px; }
  .user-page .signed-badge { max-width: 100%; padding: 12px 0; font-size: 13.5px; border-radius: 12px; }
  .user-page .signed-badge i { font-size: 15px; }
  .user-page .sign-stats { gap: 8px; }
  .user-page .sign-stat { padding: 12px 14px; gap: 10px; border-radius: 10px; flex-direction: column; align-items: flex-start; text-align: left; }
  .user-page .sign-stat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .user-page .sign-stat-label { font-size: 11px; }
  .user-page .sign-stat-value { font-size: 18px; }
  .user-page .sign-stat-unit { font-size: 11.5px; }
  .user-page .sign-rule-box { padding: 14px 16px; gap: 10px; }
  .user-page .sign-rule-icon { width: 24px; height: 24px; font-size: 12px; }
  .user-page .sign-rule-text { font-size: 12px; }
}

/* ============================================================
   30. 我的书架页（作用域 .bookshelf-*）
   ============================================================ */
.bookshelf-list { display: flex; flex-direction: column; gap: 12px; }
.bookshelf-item {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px; padding: 14px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 10px; transition: all .25s ease; align-items: center;
}
.bookshelf-item:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 6px 18px var(--brand-tint);
}
.bookshelf-cover {
  display: block; width: 90px; aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden; background: var(--line-soft); flex-shrink: 0;
}
.bookshelf-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.bookshelf-item:hover .bookshelf-cover img { transform: scale(1.05); }
.bookshelf-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bookshelf-title {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.bookshelf-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--ease); }
.bookshelf-title a:hover { color: var(--brand); }
.bookshelf-author {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 280px; transition: color .35s ease;
}
.bookshelf-author i { font-size: 11px; opacity: .85; }
.bookshelf-last-read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); padding: 6px 10px;
  background: rgba(0, 0, 0, .02); border-radius: 6px;
  max-width: 100%; overflow: hidden; flex-wrap: wrap;
}
.bookshelf-last-read i { font-size: 11px; color: var(--brand); opacity: .75; transition: color .35s ease; }
.bookshelf-last-read .last-read-label { color: var(--text-3); flex-shrink: 0; }
.bookshelf-last-read a {
  color: var(--text-2); font-weight: 500; transition: color var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px;
}
.bookshelf-last-read a:hover { color: var(--brand); }
.bookshelf-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.bookshelf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; font-size: 13px; font-weight: 600;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all .2s ease; line-height: 1.2;
}
.bookshelf-btn i { font-size: 11px; }
.bookshelf-btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  box-shadow: 0 4px 12px var(--brand-tint);
}
.bookshelf-btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--brand-tint); filter: brightness(1.05);
}
.bookshelf-btn-danger { color: #dc2626; background: transparent; border-color: #fecaca; }
.bookshelf-btn-danger:hover {
  color: #fff; background: #dc2626; border-color: #dc2626;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220, 38, 38, .25);
}
@media (max-width: 1024px) {
  .bookshelf-item { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .bookshelf-cover { width: 80px; }
  .bookshelf-title { font-size: 15px; }
  .bookshelf-last-read a { max-width: 180px; }
  .bookshelf-actions { min-width: 116px; }
  .bookshelf-btn { padding: 8px 14px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .bookshelf-item { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 8px; }
  .bookshelf-cover { width: 70px; border-radius: 4px; }
  .bookshelf-info { gap: 6px; }
  .bookshelf-title { font-size: 14px; }
  .bookshelf-author { font-size: 11.5px; max-width: 100%; }
  .bookshelf-author i { font-size: 10px; }
  .bookshelf-last-read { font-size: 11.5px; padding: 5px 8px; gap: 4px; }
  .bookshelf-last-read i { font-size: 10px; }
  .bookshelf-last-read a { max-width: 160px; }
  .bookshelf-actions { grid-column: 1 / -1; flex-direction: row; gap: 8px; min-width: 0; margin-top: 4px; }
  .bookshelf-btn { flex: 1; padding: 10px 12px; font-size: 12.5px; border-radius: 10px; }
  .bookshelf-btn i { font-size: 11px; }
}

/* 空状态专用按钮 */
.user-page .user-empty-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 11px 32px; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--brand); border: none; border-radius: 999px;
  cursor: pointer; text-decoration: none; letter-spacing: .04em;
  box-shadow: 0 4px 14px var(--brand-tint); transition: all .25s ease; white-space: nowrap;
}
.user-page .user-empty-btn i { font-size: 13px; opacity: .95; }
.user-page .user-empty-btn:hover {
  color: #fff; background: var(--brand-hover);
  transform: translateY(-1px); box-shadow: 0 8px 20px var(--brand-tint);
}
.user-page .user-empty-btn:active { transform: translateY(0); box-shadow: 0 2px 8px var(--brand-tint); }
@media (max-width: 640px) {
  .user-page .user-empty-btn { padding: 10px 28px; font-size: 13.5px; gap: 6px; }
  .user-page .user-empty-btn i { font-size: 12px; }
}

/* ============================================================
   31. 阅读历史页（作用域 .history-*）
   ============================================================ */
.history-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.history-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.history-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.history-table th {
  padding: 12px 18px; text-align: left;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.history-table td {
  padding: 14px 18px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr { transition: background-color .2s ease; }
.history-table tbody tr:hover { background: var(--brand-tint); }
.history-table .col-novel { width: 40%; }
.history-table .col-chapter { width: 45%; }
.history-table .col-time {
  width: 15%; white-space: nowrap; color: var(--text-3);
  font-variant-numeric: tabular-nums; text-align: right;
}
.history-table th.col-time { text-align: right; }
.history-table td a {
  color: var(--brand); font-weight: 500; transition: color var(--ease);
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.history-table td a:hover { color: var(--brand-hover); text-decoration: underline; }
.history-table .col-novel a { font-weight: 600; color: var(--text); }
.history-table .col-novel a:hover { color: var(--brand); }
.history-cards { display: none; flex-direction: column; gap: 10px; }
.history-card {
  padding: 14px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: all .25s ease;
}
.history-card:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-tint);
}
.history-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.history-card-title {
  font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.history-card-title a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-card:hover .history-card-title { color: var(--brand); }
.history-card-chapter,
.history-card-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); min-width: 0;
}
.history-card-chapter i,
.history-card-time i {
  font-size: 11px; color: var(--brand); opacity: .8;
  flex-shrink: 0; transition: color .35s ease;
}
.history-card-chapter a {
  color: var(--text-2); font-weight: 500; transition: color var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.history-card-chapter a:hover { color: var(--brand); }
.history-card-time { font-variant-numeric: tabular-nums; }
.history-card-time i { color: var(--text-3); opacity: .7; }
.history-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--line); transition: border-color .35s ease;
}
.history-pagination .page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 34px; padding: 0 12px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--line-soft); border: 1px solid transparent;
  border-radius: var(--radius-sm); transition: all .2s ease;
  cursor: pointer; user-select: none; text-decoration: none;
}
.history-pagination .page-btn i { font-size: 10px; }
.history-pagination .page-btn:hover:not(.is-disabled):not(.is-active) {
  color: var(--brand); background: var(--brand-soft); border-color: var(--brand);
}
.history-pagination .page-btn.is-active {
  color: #fff; background: var(--brand); border-color: var(--brand);
  font-weight: 700; cursor: default;
}
.history-pagination .page-btn.is-disabled {
  color: var(--text-3); background: var(--line-soft); cursor: not-allowed; opacity: .55;
}
.history-pagination .page-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 34px; font-size: 13px;
  color: var(--text-3); letter-spacing: .1em;
}
.history-pagination .page-info {
  margin-left: 8px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .history-table-wrap { display: none; }
  .history-cards { display: flex; }
}
@media (max-width: 640px) {
  .history-card { padding: 12px; border-radius: 8px; }
  .history-card-body { gap: 6px; }
  .history-card-title { font-size: 13.5px; }
  .history-card-chapter,
  .history-card-time { font-size: 12px; }
  .history-card-chapter i,
  .history-card-time i { font-size: 10px; }
  .history-pagination { gap: 4px; margin-top: 16px; padding-top: 14px; }
  .history-pagination .page-btn { min-width: 32px; height: 30px; padding: 0 10px; font-size: 12px; }
  .history-pagination .page-info { width: 100%; text-align: center; margin: 6px 0 0; font-size: 11.5px; }
  .history-pagination .page-ellipsis { height: 30px; font-size: 12px; }
}

/* ============================================================
   32. 充值页（作用域 .recharge-*）
   ============================================================ */
.user-page .gold-amount {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .15); margin: 0 4px;
}
.user-page .user-welcome-badge { max-width: 260px; text-align: center; }
.recharge-error {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  margin-bottom: 14px; font-size: 14px; font-weight: 500;
  color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca;
  border-radius: 10px; animation: profileAlertIn .3s ease;
}
.recharge-error i { font-size: 18px; flex-shrink: 0; color: #dc2626; }
.user-page .recharge-input-wrap {
  position: relative; display: flex; align-items: center;
  height: 48px; padding: 0 18px 0 60px;
  background: linear-gradient(135deg, var(--card) 0%, var(--line-soft) 100%);
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: all .25s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.user-page .recharge-input-wrap:hover {
  border-color: var(--brand-tag-bd);
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-tag-bg) 100%);
}
.user-page .recharge-input-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 12px var(--brand-tint);
}
.user-page .recharge-input-prefix {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 14px; font-weight: 700; color: var(--brand);
  letter-spacing: .02em; pointer-events: none; transition: color .35s ease;
}
.user-page .recharge-input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 16px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.user-page .recharge-input-wrap input::placeholder { color: var(--text-3); font-weight: 400; font-size: 14px; }
.user-page .recharge-input-wrap input::-webkit-outer-spin-button,
.user-page .recharge-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.user-page .recharge-input-wrap input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.user-page .recharge-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 12px; margin-top: 6px; padding-top: 18px;
  border-top: 1px dashed var(--line); transition: border-color .35s ease;
}
.user-page .recharge-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; font-size: 14px; font-weight: 600;
  color: var(--text-2); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.user-page .recharge-btn-outline i { font-size: 12px; transition: transform .2s ease; }
.user-page .recharge-btn-outline:hover {
  color: var(--brand); border-color: var(--brand); background: var(--brand-tag-bg);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-tint);
}
.user-page .recharge-btn-outline:hover i { transform: translateX(-2px); }
.user-page .recharge-note-panel { padding: 0; overflow: hidden; }
.user-page .recharge-note-box {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 22px; background: var(--brand-tint-2);
  transition: background-color .35s ease;
}
.user-page .recharge-note-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%; box-shadow: 0 3px 10px rgba(245, 158, 11, .3);
}
.user-page .recharge-note-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.user-page .recharge-note-text p { margin: 0; }
.user-page .recharge-note-text p + p { margin-top: 4px; }
.user-page .recharge-note-text strong { color: var(--text); font-weight: 700; }
.user-page .recharge-note-text strong + strong,
.user-page .recharge-note-text p > strong { color: var(--brand); }
.user-page .recharge-note-num { display: inline-block; width: 18px; color: var(--brand); font-weight: 700; transition: color .35s ease; }
.recharge-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.recharge-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.recharge-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.recharge-table th {
  padding: 12px 18px; text-align: left;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.recharge-table td {
  padding: 14px 18px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.recharge-table tbody tr:last-child td { border-bottom: none; }
.recharge-table tbody tr { transition: background-color .2s ease; }
.recharge-table tbody tr:hover { background: var(--brand-tint); }
.recharge-table .col-time { width: 200px; white-space: nowrap; color: var(--text-3); font-variant-numeric: tabular-nums; }
.recharge-table .col-change { width: 180px; white-space: nowrap; font-weight: 700; color: #10b981; font-variant-numeric: tabular-nums; }
.recharge-table .col-remark { max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
@media (max-width: 1024px) {
  .user-page .recharge-input-wrap { height: 46px; }
  .user-page .recharge-note-box { padding: 16px 18px; }
}
@media (max-width: 640px) {
  .user-page .user-welcome-badge { max-width: 100%; margin-left: 0; padding: 6px 14px; font-size: 11.5px; }
  .user-page .recharge-input-wrap { height: 46px; padding: 0 14px 0 52px; border-radius: 10px; }
  .user-page .recharge-input-prefix { left: 14px; font-size: 13px; }
  .user-page .recharge-input-wrap input { font-size: 15px; }
  .user-page .recharge-actions { flex-direction: column-reverse; gap: 10px; padding-top: 14px; margin-top: 4px; }
  .user-page .recharge-btn-outline,
  .user-page .recharge-actions .vip-submit {
    width: 100%; padding: 12px 20px; font-size: 13.5px; border-radius: 10px; justify-content: center;
  }
  .user-page .recharge-note-box { padding: 14px 16px; gap: 10px; }
  .user-page .recharge-note-icon { width: 26px; height: 26px; font-size: 13px; }
  .user-page .recharge-note-text { font-size: 12px; line-height: 1.7; }
  .user-page .recharge-note-num { width: 16px; }
  .recharge-table th, .recharge-table td { padding: 12px 14px; }
  .recharge-table .col-time { width: 140px; font-size: 12px; }
  .recharge-table .col-change { width: 130px; font-size: 12.5px; }
  .recharge-table .col-remark { font-size: 12px; }
}

/* ============================================================
   33. 共用表单样式（作用域 .apply-*）
   ============================================================ */
.apply-message-box {
  display: none; align-items: center; gap: 10px;
  padding: 14px 18px; margin-bottom: 14px;
  font-size: 14px; font-weight: 500; border-radius: 10px;
  animation: profileAlertIn .3s ease;
}
.apply-message-box.success { display: flex; color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0; }
.apply-message-box.error   { display: flex; color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; }

.apply-form { display: flex; flex-direction: column; gap: 14px; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.apply-field { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.apply-field-full { grid-column: 1 / -1; }
.apply-field:has(.apply-textarea-wrap) { align-items: start; }
.apply-field:has(.apply-textarea-wrap) > .apply-label { padding-top: 12px; }

.apply-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: .02em; line-height: 1.4;
  justify-content: flex-start; text-align: left; min-width: 0;
}
.apply-required { color: #dc2626; font-weight: 700; }
.apply-hint {
  display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: 500;
  color: var(--text-3); background: var(--line-soft);
  border-radius: 999px; letter-spacing: 0;
  flex-basis: 100%; width: fit-content; margin-top: 2px;
}

.apply-input-wrap {
  position: relative; display: flex; align-items: center;
  height: 46px; padding: 0 16px 0 42px;
  background: var(--line-soft); border: 1.5px solid transparent;
  border-radius: 10px; transition: all .2s ease; min-width: 0;
}
.apply-input-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.apply-input-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.apply-input-wrap:focus-within .apply-input-icon { color: var(--brand); }
.apply-input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.apply-input-wrap input::placeholder { color: var(--text-3); }
.apply-input-disabled { background: var(--line-soft); cursor: not-allowed; opacity: .78; }
.apply-input-disabled input { cursor: not-allowed; color: var(--text-3); }
.apply-input-disabled .apply-input-icon { opacity: .6; }
.apply-input-disabled::after {
  content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); opacity: .5;
}

/* ★ 下拉框（通用，仅定义一次） */
.apply-select-wrap {
  position: relative; display: flex; align-items: center;
  height: 46px; padding: 0 44px 0 42px;
  background: linear-gradient(135deg, var(--card) 0%, var(--line-soft) 100%);
  border: 1.5px solid var(--line); border-radius: 10px;
  transition: all .25s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .02); min-width: 0;
}
.apply-select-wrap:hover {
  border-color: var(--brand-tag-bd);
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-tag-bg) 100%);
}
.apply-select-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 12px var(--brand-tint);
}
.apply-select-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.apply-select-wrap:focus-within .apply-select-icon { color: var(--brand); }
.apply-select-wrap::after {
  content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); pointer-events: none; transition: color .2s ease;
}
.apply-select-wrap:focus-within::after { color: var(--brand); }
.apply-select {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text);
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 0; font-family: inherit; letter-spacing: .01em;
}

/* ★★ 通用下拉选项美化 ★★ */
.apply-select option {
  color: var(--text);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.apply-select option:checked {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  font-weight: 700;
}
.apply-select option:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.apply-select option:disabled {
  color: var(--text-3);
  background: var(--line-soft);
  font-style: italic;
}
.apply-select optgroup {
  color: var(--text-3);
  background: var(--line-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 12px 4px;
}

.apply-textarea-wrap {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--line-soft); border: 1.5px solid transparent;
  transition: all .2s ease; min-width: 0;
}
.apply-textarea-wrap:focus-within {
  background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.apply-textarea-wrap textarea {
  display: block; width: 100%; padding: 14px 16px;
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--text);
  resize: vertical; min-height: 120px;
}
.apply-textarea-wrap textarea::placeholder { color: var(--text-3); }

.apply-upload { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.apply-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.apply-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; font-size: 13.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tag-bg);
  border: 1.5px dashed var(--brand-tag-bd); border-radius: 10px;
  cursor: pointer; transition: all .2s ease; user-select: none;
}
.apply-upload-btn i { font-size: 14px; }
.apply-upload-btn:hover {
  color: #fff; background: var(--brand); border-color: var(--brand);
  border-style: solid; box-shadow: 0 4px 12px var(--brand-tint);
}

.file-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.file-preview:empty { display: none; }
.file-preview-item {
  position: relative; width: 100px; height: 100px;
  border-radius: 10px; overflow: hidden;
  background: var(--line-soft); border: 1.5px solid var(--brand-tag-bd);
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.file-preview-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px var(--brand-tint); }
.file-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-item .remove-preview {
  position: absolute; top: 4px; right: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; font-size: 14px; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(220, 38, 38, .9);
  border: none; border-radius: 50%; cursor: pointer;
  transition: all .2s ease; padding: 0;
}
.file-preview-item .remove-preview:hover { background: #dc2626; transform: scale(1.1); }
.file-preview-item .file-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 6px; font-size: 10px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.apply-progress { display: none; margin-bottom: 16px; }
.apply-progress-bar { width: 100%; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.apply-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  border-radius: 3px; transition: width .3s ease;
}
.apply-progress-text { margin-top: 8px; text-align: center; font-size: 13px; color: var(--text-3); }

.apply-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.apply-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; font-size: 14px; font-weight: 600;
  color: var(--text-2); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.apply-btn-outline i { font-size: 12px; transition: transform .2s ease; }
.apply-btn-outline:hover {
  color: var(--brand); border-color: var(--brand); background: var(--brand-tag-bg);
  transform: translateY(-1px); box-shadow: 0 4px 12px var(--brand-tint);
}
.apply-btn-outline:hover i { transform: translateX(-2px); }
.apply-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 36px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border: none; border-radius: 999px; cursor: pointer;
  letter-spacing: .04em; box-shadow: 0 6px 16px var(--brand-tint);
  transition: all .25s ease; white-space: nowrap;
}
.apply-submit i { font-size: 13px; }
.apply-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-tint); filter: brightness(1.05); }
.apply-submit:active { transform: translateY(0); }
.apply-submit.is-loading { opacity: .65; pointer-events: none; cursor: not-allowed; }
.apply-submit:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.apply-submit:disabled:hover { transform: none; box-shadow: 0 6px 16px var(--brand-tint); filter: grayscale(.3); }

@media (max-width: 1024px) {
  .apply-grid { gap: 16px 18px; }
  .apply-input-wrap { height: 44px; }
  .apply-upload-btn { height: 44px; }
  .apply-select-wrap { height: 44px; }
}
@media (max-width: 640px) {
  .apply-grid { grid-template-columns: 1fr; gap: 14px; }
  .apply-field-full { grid-column: 1; }
  .apply-label { font-size: 12.5px; gap: 4px; }
  .apply-hint { font-size: 10px; padding: 0 6px; }
  .apply-input-wrap { height: 44px; padding-left: 40px; border-radius: 8px; }
  .apply-input-icon { left: 13px; font-size: 12px; }
  .apply-input-wrap input { font-size: 13.5px; }
  .apply-textarea-wrap { border-radius: 8px; }
  .apply-textarea-wrap textarea { font-size: 13.5px; padding: 12px 14px; min-height: 100px; }
  .apply-upload-btn { height: 44px; font-size: 13px; border-radius: 8px; }
  .file-preview { gap: 8px; }
  .file-preview-item { width: 80px; height: 80px; border-radius: 8px; }
  .file-preview-item .remove-preview { width: 20px; height: 20px; font-size: 12px; }
  .file-preview-item .file-name { font-size: 9px; }
  .apply-actions { flex-direction: column-reverse; gap: 10px; }
  .apply-btn-outline,
  .apply-submit { width: 100%; padding: 12px 20px; font-size: 13.5px; border-radius: 10px; justify-content: center; }
}

/* ============================================================
   34. 我的作品页（.works-* / .cover-thumb）
   ============================================================ */
.works-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.works-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.works-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.works-table th {
  padding: 12px 14px; text-align: left; font-size: 12.5px; font-weight: 700;
  color: var(--brand); letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.works-table td {
  padding: 12px 14px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.works-table tbody tr:last-child td { border-bottom: none; }
.works-table tbody tr { transition: background-color .2s ease; }
.works-table tbody tr:hover { background: var(--brand-tint); }
.works-table .col-id     { width: 60px;  color: var(--text-3); font-variant-numeric: tabular-nums; }
.works-table .col-cover  { width: 70px; }
.works-table .col-title  { width: auto;  min-width: 140px; }
.works-table .col-status { width: 100px; }
.works-table .col-vip    { width: 110px; }
.works-table .col-words  { width: 110px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-3); }
.works-table .col-action { width: 380px; }
.words-unit { font-size: 11.5px; color: var(--text-3); margin-left: 2px; }
.cover-thumb {
  display: block; width: 50px; height: 70px;
  border-radius: 6px; overflow: hidden; background: var(--line-soft);
  transition: all .25s ease;
}
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.cover-thumb:hover { box-shadow: 0 4px 12px var(--brand-tint); }
.cover-thumb:hover img { transform: scale(1.06); }
.works-title {
  font-weight: 600; color: var(--text); transition: color var(--ease);
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
.works-title:hover { color: var(--brand); }
.status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; font-size: 11.5px; font-weight: 600;
  border-radius: 999px; white-space: nowrap; letter-spacing: .02em;
}
.status-tag i { font-size: 10px; }
.status-tag.status-finished { color: #059669; background: #d1fae5; }
.status-tag.status-ongoing  { color: #0284c7; background: #e0f2fe; }
.vip-badge {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11px; font-weight: 600; border-radius: 999px;
  white-space: nowrap; letter-spacing: .02em;
}
.vip-badge.approved { color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #fde68a; font-weight: 700; }
.vip-badge.pending  { color: #92400e; background: #fef3c7; }
.vip-badge.rejected { color: #991b1b; background: #fee2e2; }
.vip-badge.free     { color: var(--text-3); background: var(--line-soft); }
.vip-badge i { font-size: 9px; margin-right: 2px; }
.works-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.works-action {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  color: var(--brand); background: var(--card);
  border: 1px solid var(--brand-tag-bd); border-radius: 999px;
  transition: all .2s ease; white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.works-action i { font-size: 10px; opacity: .9; }
.works-action:hover {
  color: #fff; background: var(--brand); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: 0 3px 8px var(--brand-tint);
}
.works-action-vip { color: #b45309; border-color: #fde68a; }
.works-action-vip:hover {
  color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: transparent; box-shadow: 0 3px 8px rgba(245, 158, 11, .3);
}
.works-action-danger { color: #dc2626; border-color: #fecaca; }
.works-action-danger:hover {
  color: #fff; background: #dc2626; border-color: #dc2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, .25);
}

.works-cards { display: none; flex-direction: column; gap: 10px; }
.works-card {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px;
  padding: 12px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: all .25s ease;
}
.works-card:hover { background: var(--card); border-color: var(--brand); box-shadow: 0 4px 12px var(--brand-tint); }
.works-card-cover {
  display: block; width: 80px; aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden; background: var(--line-soft);
}
.works-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.works-card-cover:hover img { transform: scale(1.06); }
.works-card-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.works-card-title {
  font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--ease);
}
.works-card-title a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.works-card:hover .works-card-title { color: var(--brand); }
.works-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.works-card-words {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.works-card-words i { font-size: 10px; color: var(--brand); opacity: .75; transition: color .35s ease; }
.works-card-actions {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.works-card-btn {
  flex: 1 0 auto; min-width: 72px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 10px; font-size: 12px; font-weight: 500;
  color: var(--brand); background: var(--card);
  border: 1px solid var(--brand-tag-bd); border-radius: 8px;
  transition: all .2s ease; text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.works-card-btn i { font-size: 11px; }
.works-card-btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.works-card-btn-vip { color: #b45309; border-color: #fde68a; }
.works-card-btn-vip:hover { color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); border-color: transparent; }
.works-card-btn-danger { color: #dc2626; border-color: #fecaca; }
.works-card-btn-danger:hover { color: #fff; background: #dc2626; border-color: #dc2626; }

@media (max-width: 900px) {
  .works-table-wrap { display: none; }
  .works-cards { display: flex; }
}
@media (max-width: 640px) {
  .user-page .user-welcome .user-sign-btn { width: 100%; padding: 11px 18px; font-size: 13.5px; margin-top: 4px; }
  .works-card { grid-template-columns: 70px minmax(0, 1fr); padding: 10px; border-radius: 8px; gap: 10px; }
  .works-card-cover { width: 70px; border-radius: 4px; }
  .works-card-title { font-size: 13.5px; }
  .works-card-meta { gap: 4px; }
  .works-card-words { font-size: 11.5px; }
  .works-card-words i { font-size: 10px; }
  .works-card-btn { flex: 1 1 calc(50% - 3px); min-width: 0; padding: 8px 6px; font-size: 11.5px; }
  .works-card-btn i { font-size: 10px; }
}

/* ============================================================
   35. 添加章节页（复用第 33 节 .apply-* 样式，无重复定义）
   ============================================================ */
/* 该页无需新增样式，全部复用第 33 节 .apply-* 通用表单样式 */

/* ============================================================
   36. 章节管理页（.chapters-* / .chapter-*）
   ============================================================ */
.chapters-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.chapters-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.chapters-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.chapters-table th {
  padding: 12px 14px; text-align: left;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.chapters-table td {
  padding: 12px 14px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.chapters-table tbody tr:last-child td { border-bottom: none; }
.chapters-table tbody tr { transition: background-color .2s ease; }
.chapters-table tbody tr:hover { background: var(--brand-tint); }
.chapters-table .col-id     { width: 70px;  color: var(--text-3); font-variant-numeric: tabular-nums; }
.chapters-table .col-title  { width: auto;  min-width: 180px; }
.chapters-table .col-words  { width: 120px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-3); }
.chapters-table .col-vip    { width: 90px; }
.chapters-table .col-price  { width: 90px; }
.chapters-table .col-sort   { width: 80px; }
.chapters-table .col-action { width: 220px; }
.chapter-name {
  display: inline-block; max-width: 100%; font-weight: 600;
  color: var(--text); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle;
}
.chapter-price {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; font-size: 12px; font-weight: 600; color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 999px; font-variant-numeric: tabular-nums;
}
.chapter-price i { font-size: 10px; opacity: .85; }
.chapter-price-free { font-size: 12px; color: var(--text-3); font-style: italic; }
.chapter-sort-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 24px; padding: 0 8px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px;
  font-variant-numeric: tabular-nums; transition: all .35s ease;
}
.chapter-list-footer { display: flex; justify-content: flex-start; margin-top: 14px; }

.chapter-cards { display: none; flex-direction: column; gap: 10px; }
.chapter-card {
  padding: 14px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: all .25s ease;
}
.chapter-card:hover { background: var(--card); border-color: var(--brand); box-shadow: 0 4px 12px var(--brand-tint); }
.chapter-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chapter-card-title {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; min-width: 0;
}
.chapter-card-num {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.chapter-card-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; font-size: 12px; color: var(--text-3);
}
.chapter-card-words {
  display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums;
}
.chapter-card-words i { font-size: 10px; color: var(--brand); opacity: .75; transition: color .35s ease; }
.chapter-card-sort {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.chapter-card-sort i { font-size: 10px; color: var(--brand); opacity: .7; }
.chapter-card-actions {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.chapter-card-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; padding: 8px 12px; font-size: 12.5px; font-weight: 500;
  color: var(--brand); background: var(--card);
  border: 1px solid var(--brand-tag-bd); border-radius: 8px;
  transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.chapter-card-btn i { font-size: 11px; }
.chapter-card-btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.chapter-card-btn-danger { color: #dc2626; border-color: #fecaca; }
.chapter-card-btn-danger:hover { color: #fff; background: #dc2626; border-color: #dc2626; }

@media (max-width: 900px) {
  .chapters-table-wrap { display: none; }
  .chapter-cards { display: flex; }
}
@media (max-width: 640px) {
  .user-page .user-welcome .user-sign-btn { width: 100%; padding: 11px 18px; font-size: 13.5px; margin-top: 4px; }
  .chapter-card { padding: 12px; border-radius: 8px; }
  .chapter-card-body { gap: 6px; }
  .chapter-card-title { font-size: 13.5px; }
  .chapter-card-meta { font-size: 11.5px; gap: 6px 10px; }
  .chapter-card-sort { font-size: 11.5px; }
  .chapter-card-btn { padding: 9px 10px; font-size: 12px; border-radius: 8px; }
  .chapter-list-footer { margin-top: 10px; }
  .chapter-list-footer .apply-btn-outline {
    width: 100%; padding: 12px 20px; font-size: 13.5px; border-radius: 10px; justify-content: center;
  }
}

/* ============================================================
   37. 收入统计页（.income-*）
   ============================================================ */
.income-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.income-stat-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px; transition: all .25s ease; min-width: 0;
}
.income-stat-card:hover {
  background: var(--card); border-color: var(--brand);
  transform: translateY(-2px); box-shadow: 0 6px 18px var(--brand-tint);
}
.income-stat-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; font-size: 20px; color: #fff;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: transform .25s ease;
}
.income-stat-card:hover .income-stat-icon { transform: scale(1.06); }
.income-stat-icon-blue    { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.income-stat-icon-primary { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.income-stat-icon-green   { background: linear-gradient(135deg, #34d399, #059669); }
.income-stat-icon-gold    { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.income-stat-icon-purple  { background: linear-gradient(135deg, #f472b6, #db2777); }
.income-stat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.income-stat-label {
  font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.income-stat-value {
  font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: color .35s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.income-stat-unit { font-size: 11.5px; color: var(--text-3); font-weight: 500; }

.income-filter { display: grid; grid-template-columns: 180px 260px auto; gap: 14px 18px; align-items: end; }
.income-filter-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.income-filter-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.income-filter-actions .apply-submit,
.income-filter-actions .apply-btn-outline { padding: 10px 22px; font-size: 13.5px; height: 46px; }
.income-filter-actions .apply-submit i,
.income-filter-actions .apply-btn-outline i { font-size: 12px; }
.income-filter .apply-select-wrap { height: 46px; }

.income-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color .35s ease;
}
.income-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13.5px; background: var(--card); }
.income-table thead { background: var(--brand-tint-2); transition: background-color .35s ease; }
.income-table th {
  padding: 12px 14px; text-align: left;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color .35s ease, border-color .35s ease;
}
.income-table td {
  padding: 12px 14px; color: var(--text-2);
  border-bottom: 1px dashed var(--line); vertical-align: middle;
  transition: border-color .35s ease;
}
.income-table tbody tr:last-child td { border-bottom: none; }
.income-table tbody tr { transition: background-color .2s ease; }
.income-table tbody tr:hover { background: var(--brand-tint); }
.income-table .col-time    { width: 160px; white-space: nowrap; color: var(--text-3); font-variant-numeric: tabular-nums; }
.income-table .col-novel   { width: auto; min-width: 160px; max-width: 240px; }
.income-table .col-chapter { width: auto; min-width: 160px; max-width: 240px; }
.income-table .col-type    { width: 110px; white-space: nowrap; }
.income-table .col-amount  { width: 120px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.income-table .col-status  { width: 110px; white-space: nowrap; }
.income-table th.col-amount { text-align: right; }
.income-link {
  color: var(--brand); font-weight: 500; transition: color var(--ease);
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.income-link:hover { color: var(--brand-hover); text-decoration: underline; }
.income-empty { color: var(--text-3); font-style: italic; }
.income-table .col-amount.is-positive { color: #10b981; }
.income-table .col-amount.is-negative { color: #ef4444; }
.income-type-tag {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11.5px; font-weight: 600; border-radius: 999px;
  white-space: nowrap; letter-spacing: .02em;
}
.income-type-tag.type-sale     { color: #059669; background: #d1fae5; }
.income-type-tag.type-adjust   { color: #0284c7; background: #e0f2fe; }
.income-type-tag.type-withdraw { color: #b45309; background: #fef3c7; }
.income-status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; font-size: 11.5px; font-weight: 600;
  border-radius: 999px; white-space: nowrap; letter-spacing: .02em;
}
.income-status-tag i { font-size: 10px; }
.income-status-tag.is-settled   { color: #059669; background: #d1fae5; }
.income-status-tag.is-unsettled { color: #b45309; background: #fef3c7; }
.income-status-tag.is-rejected  { color: #991b1b; background: #fee2e2; }

.income-cards { display: none; flex-direction: column; gap: 10px; }
.income-card {
  padding: 14px; background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-bd); border-radius: 10px;
  transition: all .25s ease;
}
.income-card:hover { background: var(--card); border-color: var(--brand); box-shadow: 0 4px 12px var(--brand-tint); }
.income-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.income-card-amount {
  font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.income-card-amount.is-positive { color: #10b981; }
.income-card-amount.is-negative { color: #ef4444; }
.income-card-body { display: flex; flex-direction: column; gap: 8px; }
.income-card-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; }
.income-card-label { flex-shrink: 0; width: 76px; color: var(--text-3); font-weight: 500; }
.income-card-value { flex: 1; min-width: 0; color: var(--text-2); word-break: break-all; }

@media (max-width: 900px) {
  .income-filter { grid-template-columns: 1fr; gap: 12px; }
  .income-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .income-filter-actions .apply-submit,
  .income-filter-actions .apply-btn-outline { width: 100%; justify-content: center; height: 44px; padding: 0 16px; }
  .income-table-wrap { display: none; }
  .income-cards { display: flex; }
}
@media (max-width: 640px) {
  .income-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .income-stat-card {
    flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
  }
  .income-stat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .income-stat-label { font-size: 11.5px; }
  .income-stat-value { font-size: 18px; }
  .income-stat-unit { font-size: 11px; }
  .income-filter-panel .panel-body { padding: 12px 14px; }
  .income-filter { gap: 10px; }
  .income-filter .apply-select-wrap { height: 44px; padding-left: 40px; padding-right: 40px; border-radius: 8px; }
  .income-filter .apply-select-icon { left: 13px; font-size: 12px; }
  .income-card { padding: 12px; border-radius: 8px; }
  .income-card-head { padding-bottom: 8px; margin-bottom: 8px; }
  .income-card-amount { font-size: 15.5px; }
  .income-card-row { font-size: 12.5px; gap: 10px; }
  .income-card-label { width: 68px; font-size: 12px; }
  .income-type-tag,
  .income-status-tag { padding: 2px 9px; font-size: 11px; }
}

/* ============================================================
   38. 编辑作品页（补充 .novel-edit-cover）
   ============================================================ */
.novel-edit-cover {
  display: inline-block; padding: 6px;
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 12px; margin-bottom: 12px; transition: all .25s ease;
}
.novel-edit-cover:hover { border-color: var(--brand); box-shadow: 0 6px 18px var(--brand-tint); }
.novel-edit-cover-img {
  display: block; width: 120px; height: 160px;
  object-fit: cover; border-radius: 8px; background: var(--line-soft);
}
@media (max-width: 640px) {
  .novel-edit-cover { padding: 4px; border-radius: 10px; margin-bottom: 10px; }
  .novel-edit-cover-img { width: 90px; height: 120px; border-radius: 6px; }
}

/* 二维码弹窗 */
.qrcode-modal {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, .65); z-index: 9999;
  align-items: center; justify-content: center;
}
.qrcode-modal.is-open { display: flex; }
.qrcode-modal .modal-wrap {
  position: relative; background: var(--card); padding: 20px;
  border-radius: 14px; max-width: 420px; width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transition: background-color .35s ease;
}
.qrcode-modal .modal-close {
  position: absolute; right: 12px; top: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: 22px; line-height: 1;
  color: var(--text-3); cursor: pointer; border-radius: 50%;
  transition: all .2s ease;
}
.qrcode-modal .modal-close:hover { color: #fff; background: #dc2626; }
.qrcode-modal img { width: 100%; border-radius: 10px; display: block; }

/* 查看二维码按钮 */
.view-qrcode-btn {
  display: inline-flex; align-items: center; padding: 5px 14px;
  font-size: 12.5px; font-weight: 500; color: var(--brand);
  background: var(--brand-tag-bg); border: 1px solid var(--brand-tag-bd);
  border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.view-qrcode-btn:hover {
  color: #fff; background: var(--brand); border-color: var(--brand);
  box-shadow: 0 4px 10px var(--brand-tint);
}
/* ============================================================
   自定义下拉框组件（.vip-custom-select）
   完全替代原生 select，样式 100% 可控
   ============================================================ */
.vip-custom-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* ---------- 触发器 ---------- */
.vip-custom-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 52px 0 48px;
  background: linear-gradient(135deg, var(--card) 0%, var(--line-soft) 100%);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  transition: all .25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.vip-custom-trigger:hover {
  border-color: var(--brand-tag-bd);
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-tag-bg) 100%);
}
.vip-custom-select.is-open .vip-custom-trigger {
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 12px var(--brand-tint);
}

/* 左侧图标 */
.vip-custom-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 2px 6px var(--brand-tint);
}

/* 当前值文字 */
.vip-custom-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}

/* 右侧箭头 */
.vip-custom-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 10px;
  color: var(--brand);
  background: var(--brand-tag-bg);
  border-radius: 8px;
  pointer-events: none;
  transition: all .25s ease;
}
.vip-custom-trigger:hover .vip-custom-arrow,
.vip-custom-select.is-open .vip-custom-arrow {
  background: var(--brand);
  color: #fff;
}
.vip-custom-select.is-open .vip-custom-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* ---------- 下拉列表（fixed 定位，突破父级 overflow 限制） ---------- */
.vip-custom-list {
  position: fixed;              /* ★ 关键：fixed 定位 */
  top: 0;
  left: 0;
  width: 0;
  z-index: 9999;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  max-height: 320px;
  overflow-y: auto;
}
.vip-custom-select.is-open .vip-custom-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 选项 */
.vip-custom-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  user-select: none;
}
.vip-custom-list li + li {
  margin-top: 2px;
}
.vip-custom-list li:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.vip-custom-list li.is-selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px var(--brand-tint);
}
.vip-custom-list li.is-selected .vip-item-side {
  color: rgba(255, 255, 255, .9);
}

/* 选项左侧：时长 */
.vip-item-main {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* 选项右侧：价格 */
.vip-item-side {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* 滚动条美化 */
.vip-custom-list::-webkit-scrollbar { width: 6px; }
.vip-custom-list::-webkit-scrollbar-track { background: transparent; }
.vip-custom-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.vip-custom-list::-webkit-scrollbar-thumb:hover {
  background: var(--brand-tag-bd);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .vip-custom-trigger {
    height: 46px;
    padding: 0 46px 0 44px;
    border-radius: 10px;
  }
  .vip-custom-icon {
    left: 8px;
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 7px;
  }
  .vip-custom-arrow {
    right: 7px;
    width: 26px;
    height: 26px;
    font-size: 9px;
    border-radius: 7px;
  }
  .vip-custom-text { font-size: 13px; }
  .vip-custom-list li {
    padding: 10px 12px;
    font-size: 13px;
  }
  .vip-item-side { font-size: 11.5px; }
}
/* ============================================================
   通用自定义下拉框组件（.c-select）
   用于替换原生 select，样式完全可控
   ============================================================ */
.c-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* ---------- 触发器 ---------- */
.c-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  background: linear-gradient(135deg, var(--card) 0%, var(--line-soft) 100%);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  transition: all .25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.c-select-trigger:hover {
  border-color: var(--brand-tag-bd);
  background: linear-gradient(135deg, var(--card) 0%, var(--brand-tag-bg) 100%);
}
.c-select.is-open .c-select-trigger {
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 12px var(--brand-tint);
}

.c-select-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-3);
  pointer-events: none;
  transition: color .2s ease;
}
.c-select.is-open .c-select-icon { color: var(--brand); }

.c-select-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}
.c-select-text.is-placeholder { color: var(--text-3); font-weight: 500; }

.c-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-3);
  pointer-events: none;
  transition: color .2s ease, transform .25s ease;
}
.c-select.is-open .c-select-arrow { color: var(--brand); }

/* ---------- 下拉列表（fixed 定位，突破父级 overflow） ---------- */
.c-select-list {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  z-index: 9999;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  max-height: 320px;
  overflow-y: auto;
}
.c-select.is-open .c-select-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-select-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  user-select: none;
  line-height: 1.5;
}
.c-select-list li + li { margin-top: 2px; }
.c-select-list li:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.c-select-list li.is-selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px var(--brand-tint);
}
.c-select-list li.is-selected .c-item-side { color: rgba(255, 255, 255, .9); }

.c-item-main {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-item-side {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.c-select-list::-webkit-scrollbar { width: 6px; }
.c-select-list::-webkit-scrollbar-track { background: transparent; }
.c-select-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.c-select-list::-webkit-scrollbar-thumb:hover {
  background: var(--brand-tag-bd);
}

/* 禁用状态 */
.c-select.is-disabled .c-select-trigger {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .c-select-trigger {
    height: 44px;
    padding: 0 40px 0 40px;
    border-radius: 8px;
  }
  .c-select-icon { left: 13px; font-size: 12px; }
  .c-select-arrow { right: 14px; font-size: 11px; }
  .c-select-text { font-size: 13.5px; }
  .c-select-list li { padding: 10px 12px; font-size: 13px; }
  .c-item-side { font-size: 11.5px; }
}
/* ============================================================
   编辑作品 · 封面区域（左图 + 右上传）
   ============================================================ */
.cover-flex {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cover-flex-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* 左列：固定宽度 */
.cover-flex-col:first-child {
  flex-shrink: 0;
}

/* 右列：撑满剩余空间 */
.cover-flex-upload {
  flex: 1;
}

.cover-flex-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
}
.cover-flex-label i {
  font-size: 12px;
  color: var(--brand);
  opacity: .9;
}
.cover-flex-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
  padding: 1px 8px;
  background: var(--line-soft);
  border-radius: 999px;
  letter-spacing: 0;
  margin-left: 4px;
}

/* 当前封面图 */
.cover-current-img {
  display: block;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--line-soft);
  box-shadow: 0 4px 12px var(--brand-tint);
}

/* 右侧上传按钮：做成大拖拽区 */
.cover-flex-upload .apply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cover-flex-upload .apply-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint-2);
  border: 2px dashed var(--brand-tag-bd);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 8px;
  transition: all .25s ease;
  user-select: none;
}
.cover-flex-upload .apply-upload-btn i {
  font-size: 22px;
}
.cover-flex-upload .apply-upload-btn span {
  font-size: 13px;
  font-weight: 600;
}
.cover-flex-upload .apply-upload-btn:hover {
  background: var(--brand-tag-bg);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-tint);
}

/* 上传后预览图尺寸 */
.cover-flex-upload .file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cover-flex-upload .file-preview:empty {
  display: none;
}
.cover-flex-upload .file-preview-item {
  position: relative;
  width: 120px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-soft);
  border: 1.5px solid var(--brand-tag-bd);
  transition: all .2s ease;
}
.cover-flex-upload .file-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--brand-tint);
}
.cover-flex-upload .file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-flex-upload .file-preview-item .remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(220, 38, 38, .9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  padding: 0;
}
.cover-flex-upload .file-preview-item .remove-preview:hover {
  background: #dc2626;
  transform: scale(1.1);
}
.cover-flex-upload .file-preview-item .file-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  font-size: 10px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .cover-flex {
    flex-direction: column;
    gap: 16px;
  }
  .cover-flex-col {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .cover-flex-label {
    justify-content: center;
    flex-wrap: wrap;
  }
  .cover-flex-upload {
    flex: none;
    width: 100%;
  }
  .cover-flex-upload .apply-upload-btn {
    height: 84px;
  }
  .cover-flex-upload .apply-upload-btn i {
    font-size: 18px;
  }
  .cover-flex-upload .apply-upload-btn span {
    font-size: 12.5px;
  }
}
/* ============================================================
   ★ 暗黑主题（第 5 套配色）
   用组合选择器 [data-theme="dark"][data-bg] 提高优先级，
   确保能覆盖已有的 4 套配色 + 3 套背景
   ============================================================ */

/* ---------- 暗黑主题圆点按钮 ---------- */
.theme-dot[data-set="dark"] {
  background: #0f1419;
  color: #0f1419;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.theme-dot[data-set="dark"]:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3),
              0 0 0 3px rgba(15, 20, 25, .12);
}

/* ---------- 暗黑主题变量 ---------- */
html[data-theme="dark"],
html[data-theme="dark"][data-bg] {
  /* 品牌色：亮蓝 */
  --brand: #60a5fa;
  --brand-hover: #3b82f6;
  --brand-soft: #1e293b;
  --brand-tint: rgba(96, 165, 250, .15);
  --brand-tint-2: rgba(96, 165, 250, .08);
  --brand-tag-bg: #1e293b;
  --brand-tag-bd: #334155;

  /* 背景 & 边框 */
  --bg: #0f1419;
  --card: #1a2027;
  --line: #2a323a;
  --line-soft: #232a32;

  /* 文字色 */
  --text: #eef2f6;
  --text-2: #cbd5e1;
  --text-3: #9ca7b3;
}

/* ---------- 特殊元素适配 ---------- */

/* 滚动条：暗黑风格 */
html[data-theme="dark"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #151b21;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #2a323a;
  border-radius: 5px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #3b4754;
}

/* Logo 文字在暗黑下用亮蓝 */
html[data-theme="dark"] .site-logo-text {
  color: #60a5fa;
}

/* 输入框 placeholder 在暗黑下更暗一点 */
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #6d7885;
}

/* 主题圆点选中环 */
html[data-theme="dark"] .theme-dot.active::after {
  border-color: #60a5fa;
}

/* ---------- 微调：暗黑下部分硬编码颜色的元素 ---------- */

/* 金币徽章 */
html[data-theme="dark"] .gold-badge {
  background: linear-gradient(135deg, #78350f, #92400e);
  border-color: #92400e;
  color: #fbbf24;
}
html[data-theme="dark"] .gold-badge i {
  color: #fbbf24;
}

/* VIP 徽章 */
html[data-theme="dark"] .vip-status-tag,
html[data-theme="dark"] .vip-badge.approved {
  background: linear-gradient(135deg, #78350f, #92400e);
  color: #fbbf24;
}

/* 状态标签：连载中 */
html[data-theme="dark"] .status-tag.status-ongoing {
  color: #7dd3fc;
  background: rgba(14, 165, 233, .18);
}
/* 状态标签：已完结 */
html[data-theme="dark"] .status-tag.status-finished {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .18);
}

/* 收入/金币类型标签 */
html[data-theme="dark"] .gold-type-tag.type-sign,
html[data-theme="dark"] .income-type-tag.type-sale {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .18);
}
html[data-theme="dark"] .gold-type-tag.type-recharge,
html[data-theme="dark"] .income-type-tag.type-adjust {
  color: #7dd3fc;
  background: rgba(14, 165, 233, .18);
}
html[data-theme="dark"] .gold-type-tag.type-exchange_vip,
html[data-theme="dark"] .income-type-tag.type-withdraw {
  color: #fcd34d;
  background: rgba(217, 119, 6, .22);
}
html[data-theme="dark"] .gold-type-tag.type-purchase_chapter,
html[data-theme="dark"] .gold-type-tag.type-read_vip {
  color: #fca5a5;
  background: rgba(220, 38, 38, .2);
}

/* 结算状态标签 */
html[data-theme="dark"] .income-status-tag.is-settled {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .18);
}
html[data-theme="dark"] .income-status-tag.is-unsettled {
  color: #fcd34d;
  background: rgba(217, 119, 6, .22);
}
html[data-theme="dark"] .income-status-tag.is-rejected {
  color: #fca5a5;
  background: rgba(220, 38, 38, .2);
}

/* 消息提示框：成功 / 失败 */
html[data-theme="dark"] .apply-message-box.success,
html[data-theme="dark"] .profile-alert {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .15);
  border-color: rgba(16, 185, 129, .35);
}
html[data-theme="dark"] .apply-message-box.error,
html[data-theme="dark"] .recharge-error {
  color: #fca5a5;
  background: rgba(220, 38, 38, .15);
  border-color: rgba(220, 38, 38, .35);
}

/* 危险按钮 */
html[data-theme="dark"] .bookshelf-btn-danger,
html[data-theme="dark"] .works-action-danger,
html[data-theme="dark"] .works-card-btn-danger,
html[data-theme="dark"] .chapter-card-btn-danger {
  color: #fca5a5;
  border-color: rgba(220, 38, 38, .4);
}
html[data-theme="dark"] .bookshelf-btn-danger:hover,
html[data-theme="dark"] .works-action-danger:hover,
html[data-theme="dark"] .works-card-btn-danger:hover,
html[data-theme="dark"] .chapter-card-btn-danger:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
/* ============================================================
   登录页 · 单选项布局（只保留"忘记密码"时右对齐）
   ============================================================ */
.login-page .login-options-single {
  justify-content: flex-end;
  margin-top: -4px;
}