/* 逐年小说 · 前台主题 */
:root {
  --ss-primary: #5b6cf0;
  --ss-primary-dark: #4a56d4;
  --ss-primary2: #7c3aed;
  --ss-gradient: linear-gradient(135deg, #5b6cf0 0%, #7c3aed 100%);
  --ss-bg: #f4f6fb;
  --ss-surface: #ffffff;
  --ss-text: #1a1d26;
  --ss-muted: #6b7280;
  --ss-border: #e8ecf4;
  --ss-radius: 14px;
  --ss-shadow: 0 4px 24px rgba(91, 108, 240, 0.08);
  --ss-header-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--ss-bg);
  color: var(--ss-text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--ss-primary); text-decoration: none; }
a:hover { color: var(--ss-primary-dark); }

/* 顶栏 */
.min-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ss-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid var(--ss-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.min-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ss-text);
  font-weight: 700;
  font-size: 17px;
}
.min-brand:hover { color: var(--ss-primary); }
.min-brand-icon { font-size: 22px; line-height: 1; }

.min-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.min-ui-btn {
  padding: 8px 14px;
  border: 1px solid var(--ss-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ss-muted);
  cursor: pointer;
  background: var(--ss-surface);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.min-ui-btn:hover {
  border-color: var(--ss-primary);
  color: var(--ss-primary);
  box-shadow: var(--ss-shadow);
}
.min-ui-btn-notice {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.min-ui-btn-card {
  border-color: rgba(173, 194, 180, 0.9);
  background: linear-gradient(135deg, #f5f8f4, #eef4ef);
  color: #587160;
}

.min-user-wrap { position: relative; }

.min-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--ss-border);
  border-radius: 24px;
  font-size: 13px;
  color: var(--ss-text);
  cursor: pointer;
  background: var(--ss-surface);
  transition: all 0.2s;
}
.min-user-btn:hover { border-color: #c7d2fe; box-shadow: var(--ss-shadow); }
.min-user-btn.open .min-arrow { transform: rotate(180deg); }
.min-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.min-arrow { font-size: 10px; color: var(--ss-muted); transition: transform 0.2s; }

.min-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: var(--ss-surface);
  border-radius: var(--ss-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--ss-border);
  z-index: 1001;
  overflow: hidden;
  display: none;
}
.min-user-menu.show { display: block; }
.min-menu-info {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ss-muted);
  border-bottom: 1px solid var(--ss-border);
  background: #fafbff;
}
.menu-item {
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ss-text);
  cursor: pointer;
  transition: background 0.15s;
}
.menu-item:hover { background: #f3f4ff; }
.menu-item-danger { color: #dc2626; }
.menu-item-danger:hover { background: #fef2f2; }

/* 首页 Hero */
.page-home {
  background:
    linear-gradient(180deg, #eef3ff 0%, #f7f8fc 42%, #f4f6fb 100%);
  min-height: 100vh;
}

.page-home .min-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #dfe5f1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.page-home .min-brand {
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.page-home .min-brand-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  border-radius: 4px;
  background:
    linear-gradient(#78a487, #78a487) 0 0 / 9px 14px no-repeat,
    linear-gradient(#d0a56f, #d0a56f) 5px 4px / 9px 14px no-repeat,
    linear-gradient(#8ea9b0, #8ea9b0) 10px 8px / 9px 10px no-repeat;
}

.page-home .min-ui-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #d97706;
  font-weight: 600;
}

.page-home .min-user-btn {
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.page-home .min-user-avatar {
  width: 28px;
  height: 28px;
  background: #ede9fe;
  color: #6d28d9;
}

.home-hero {
  max-width: 940px;
  margin: 0 auto;
  padding: calc(var(--ss-header-h) + 28px) 20px 22px;
}

.home-console {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.home-copy {
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid #dde6f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(34, 50, 94, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-tagline {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff4ff;
  color: #5361d8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.home-title {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #182033 0%, #5361d8 58%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  max-width: 520px;
  color: #657187;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.home-search { max-width: 620px; margin: 0; }
.home-search--compact { max-width: 680px; }

.home-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ss-surface);
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  padding: 7px 7px 7px 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-search-inner:focus-within {
  border-color: #c7d2fe;
  box-shadow: 0 12px 32px rgba(91, 108, 240, 0.14);
}
.home-search-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f4ff;
  color: #6570f3;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.home-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 13px 4px;
  background: transparent;
  min-width: 0;
  color: var(--ss-text);
}
.home-search-inner input::placeholder {
  color: #8b95aa;
}
.home-search-btn {
  background: linear-gradient(135deg, #6b6dff, #8247e5);
  color: #fff;
  border: none;
  min-width: 86px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 108, 240, 0.35);
}

.home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.home-quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #dfe6f4;
  border-radius: 999px;
  background: #fff;
  color: #536076;
  font-size: 13px;
  font-weight: 700;
}
.home-quick-chip:hover {
  color: #5f62f5;
  border-color: #c7d2fe;
}

.home-shelf {
  position: relative;
  min-height: 260px;
  padding: 22px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(26, 32, 52, 0.9), rgba(74, 64, 155, 0.92)),
    #1d2436;
  box-shadow: 0 18px 50px rgba(34, 50, 94, 0.14);
}
.home-shelf::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 78px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.home-shelf::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  top: -42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.home-shelf-row {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 88px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 1;
}
.book-spine {
  display: block;
  width: 44px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 12px 26px rgba(0,0,0,0.22);
}
.spine-a { height: 112px; background: linear-gradient(180deg, #7dd3fc, #2563eb); }
.spine-b { height: 148px; background: linear-gradient(180deg, #f9a8d4, #be185d); }
.spine-c { height: 126px; background: linear-gradient(180deg, #fde68a, #d97706); }
.spine-d { height: 164px; background: linear-gradient(180deg, #c4b5fd, #6d28d9); }
.home-shelf-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}
.home-shelf-label strong {
  font-size: 18px;
}
.home-shelf-label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.search-bar-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--ss-header-h) + 22px) 16px 10px;
}
.page-search {
  background:
    radial-gradient(circle at top left, rgba(183, 207, 193, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(232, 213, 186, 0.26), transparent 32%),
    linear-gradient(180deg, #f5f2eb 0%, #f3f5fa 22%, #eef2f8 100%);
}
.page-search .search-bar-wrap::before {
  content: '';
  position: absolute;
  inset: calc(var(--ss-header-h) + 2px) 12px -10px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,244,237,0.4));
  box-shadow: 0 20px 48px rgba(92, 84, 67, 0.08);
  pointer-events: none;
  z-index: 0;
}
.search-hero-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(220, 212, 197, 0.96);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(217, 229, 221, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 244, 236, 0.92));
  box-shadow:
    0 22px 46px rgba(103, 90, 70, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}
.search-hero-copy {
  display: grid;
  gap: 8px;
}
.search-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 239, 228, 0.95);
  color: #7d6e58;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.search-hero-panel h1 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.18;
  color: #2f352f;
}
.search-hero-panel p {
  max-width: 580px;
  font-size: 14px;
  line-height: 1.75;
  color: #7a7064;
}
.page-search .home-search {
  position: relative;
  z-index: 1;
}
.page-search .home-search-inner {
  min-height: 64px;
  padding: 8px 8px 8px 18px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid #e3dacb;
  box-shadow:
    0 16px 40px rgba(110, 96, 74, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}
.page-search .home-search-inner:focus-within {
  border-color: #b9c8bd;
  box-shadow:
    0 20px 42px rgba(109, 132, 116, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.96);
}
.page-search .home-search-icon {
  color: #8f806d;
}
.page-search .home-search-inner input {
  font-size: 18px;
  color: #312d27;
}
.page-search .home-search-inner input::placeholder {
  color: #9d9286;
}
.page-search .home-search-btn {
  min-width: 88px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f876f, #897257);
  box-shadow: 0 12px 24px rgba(114, 97, 71, 0.18);
}
.page-search .home-search-btn:hover {
  box-shadow: 0 16px 30px rgba(114, 97, 71, 0.22);
}
.search-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.search-scope-tab {
  border: 1px solid #ddd8ce;
  background: rgba(255, 255, 255, 0.74);
  color: #7a7266;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.search-scope-tab:hover,
.search-scope-tab.active {
  color: #435b4d;
  background: linear-gradient(180deg, #f4f3ec, #e7efe7);
  border-color: #b8c9ba;
  box-shadow: 0 10px 20px rgba(84, 112, 90, .12);
}
body.site-night .search-scope-tab {
  background: #1f2937;
  border-color: #374151;
  color: #cbd5e1;
}
body.site-night .search-scope-tab:hover,
body.site-night .search-scope-tab.active {
  color: #dbeafe;
  background: #26324a;
  border-color: #4f46e5;
}

.home-section {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 20px 44px;
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.home-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #182033;
  margin-bottom: 0;
  padding-left: 0;
}
.home-section-link {
  font-size: 13px;
  color: #667085;
  font-weight: 700;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ss-surface);
  border-radius: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #c7d2fe;
}
.hot-card-title {
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  color: #050b18;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-card-rank {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f4ff;
  color: #5f62f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.hot-card-main { min-width: 0; flex: 1; }
.hot-card-meta { font-size: 12px; color: var(--ss-muted); }

.page-home .min-footer {
  padding: 26px 16px 32px;
  color: #9aa5b7;
}

/* 首页新版：清爽搜索页 + 夜间模式 */
.page-home {
  background:
    radial-gradient(circle at top left, rgba(180, 214, 196, 0.38), transparent 32%),
    radial-gradient(circle at top right, rgba(240, 215, 176, 0.28), transparent 30%),
    linear-gradient(180deg, #f8f5ee 0%, #f3f0e8 46%, #eeece4 100%);
}
.page-home .min-header-actions { gap: 8px; }
.page-home .min-header {
  background: rgba(251, 248, 242, 0.9);
  border-bottom-color: rgba(198, 188, 171, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}
.page-home .min-brand {
  color: #2f352f;
}
.page-home .min-brand:hover {
  color: #5f7768;
}
.min-ui-btn-night {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-color: #dbe2ff;
  color: #5f62f5;
}
.min-ui-btn-night #siteNightText { display: none; }
.min-ui-btn-night #siteNightIcon { font-size: 16px; line-height: 1; }
.min-ui-btn-night.is-active {
  background: #1f2937;
  border-color: #374151;
  color: #f5d074;
}
.page-home .min-ui-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.96);
  border-color: #e7dccf;
  color: #7c7164;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(108, 96, 77, 0.05);
}
.page-home .min-ui-btn:hover {
  border-color: #c4d0c7;
  color: #5f7768;
  box-shadow: 0 10px 22px rgba(108, 96, 77, 0.09);
}
.page-home .min-ui-btn-notice {
  background: #fbf3e5;
  border-color: #e8d2ad;
  color: #9b7651;
}
.page-home .min-ui-btn-night {
  background: #f2f1ea;
  border-color: #ded7c9;
  color: #8a7a67;
}
.page-home .min-ui-btn-night.is-active {
  background: #2f3935;
  border-color: #41504a;
  color: #e6d5b2;
}
.page-home .min-user-btn {
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.98);
  border-color: #e7dccf;
  color: #3e403b;
  box-shadow: 0 6px 16px rgba(108, 96, 77, 0.05);
}
.page-home .min-user-btn:hover {
  border-color: #c9d4cb;
  box-shadow: 0 10px 22px rgba(108, 96, 77, 0.09);
}
.page-home .min-user-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e5eee7, #f0e4d3);
  color: #6d7569;
}
.page-home .min-arrow {
  color: #938677;
}
.page-home .min-user-menu {
  background: rgba(255, 252, 247, 0.98);
  border-color: #e7dccf;
  box-shadow: 0 18px 34px rgba(76, 67, 53, 0.1);
}
.page-home .min-menu-info {
  background: #f5efe6;
  border-bottom-color: #eadfce;
  color: #887967;
}
.page-home .menu-item {
  color: #3f3b35;
}
.page-home .menu-item:hover {
  background: #f5f2ea;
}
.page-home .menu-item-danger {
  color: #b05d54;
}
.page-home .menu-item-danger:hover {
  background: #f9ece7;
}
.home-hero {
  max-width: 560px;
  padding: calc(var(--ss-header-h) + 28px) 20px 18px;
  text-align: center;
}
.home-panel {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid rgba(182, 171, 150, 0.24);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 247, 240, 0.94));
  box-shadow:
    0 22px 48px rgba(99, 87, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.home-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(169, 205, 185, 0.22), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(239, 213, 182, 0.18), transparent 22%);
  pointer-events: none;
}
.home-tagline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.95);
  color: #7a6852;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.home-title {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 8vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #28463f 0%, #556b5d 52%, #8a6f52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-subtitle {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto 22px;
  color: #786d60;
  font-size: 14px;
  line-height: 1.8;
}
.home-search {
  max-width: 100%;
  margin: 0 auto;
}
.home-search-inner {
  position: relative;
  z-index: 1;
  min-height: 58px;
  gap: 10px;
  border-radius: 999px;
  padding: 6px 7px 6px 18px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid #e7dccd;
  box-shadow: 0 16px 40px rgba(100, 87, 63, 0.08);
}
.home-search-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #8e8578;
  font-size: 24px;
  line-height: 1;
}
.home-search-inner input {
  padding: 12px 2px;
  color: #3f3832;
}
.home-search-inner input::placeholder {
  color: #9d9489;
}
.home-search-inner:focus-within {
  border-color: #b7c8bc;
  box-shadow: 0 18px 40px rgba(109, 132, 116, 0.14);
}
.home-search-btn {
  min-width: 78px;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #6a8b7a, #8d7a5c);
  box-shadow: 0 10px 24px rgba(109, 98, 76, 0.16);
}
.home-search-btn:hover {
  box-shadow: 0 12px 28px rgba(109, 98, 76, 0.22);
}
.home-feature-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.home-feature-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e4e9f4;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.home-section {
  max-width: 560px;
  padding: 16px 20px 44px;
}
.home-section-head {
  margin-bottom: 14px;
}
.home-section-title {
  font-size: 16px;
  color: #4c4a43;
}
.home-section-link {
  color: #817463;
  font-weight: 700;
}
.hot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hot-card {
  min-height: 78px;
  padding: 14px 14px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.96));
  border-color: #e8dfd3;
  box-shadow: 0 10px 28px rgba(99, 87, 66, 0.05);
}
.hot-card-rank {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #eff1ea;
  color: #6f7e72;
}
.hot-card-title {
  color: #2f2a24;
  line-height: 1.45;
}
.hot-card-meta {
  color: #95897c;
}

.page-home.home-night {
  background:
    radial-gradient(circle at top left, rgba(78, 108, 92, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(119, 99, 71, 0.2), transparent 28%),
    linear-gradient(180deg, #171b1b 0%, #1b201f 100%);
  color: #e5e7eb;
}
.page-home.home-night .min-header {
  background: rgba(22, 27, 26, 0.94);
  border-bottom-color: #2f3935;
  box-shadow: none;
}
.page-home.home-night .min-brand,
.page-home.home-night .min-user-btn {
  color: #f3f4f6;
}
.page-home.home-night .min-user-btn,
.page-home.home-night .min-ui-btn {
  background: #232b29;
  border-color: #394542;
}
.page-home.home-night .min-ui-btn-notice {
  color: #d7b486;
}
.page-home.home-night .min-user-menu {
  background: #232b29;
  border-color: #394542;
}
.page-home.home-night .min-menu-info {
  background: #1d2423;
  border-bottom-color: #394542;
}
.page-home.home-night .menu-item {
  color: #e5e7eb;
}
.page-home.home-night .menu-item:hover {
  background: #2a3431;
}
.page-home.home-night .min-user-avatar {
  background: linear-gradient(135deg, #31403b, #5a5143);
  color: #d8d3ca;
}
.page-home.home-night .min-arrow {
  color: #9ea6a1;
}
.page-home.home-night .min-brand-icon {
  background:
    linear-gradient(#7aa18a, #7aa18a) 0 0 / 9px 14px no-repeat,
    linear-gradient(#bf9a6b, #bf9a6b) 5px 4px / 9px 14px no-repeat,
    linear-gradient(#8aa1a7, #8aa1a7) 10px 8px / 9px 10px no-repeat;
}
.page-home.home-night .home-tagline,
.page-home.home-night .home-section-link {
  color: #a6b0c3;
}
.page-home.home-night .home-panel {
  background: linear-gradient(180deg, rgba(33, 40, 39, 0.94), rgba(26, 31, 31, 0.98));
  border-color: #31403b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}
.page-home.home-night .home-panel::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(86, 118, 100, 0.2), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(122, 98, 70, 0.16), transparent 22%);
}
.page-home.home-night .home-search-inner,
.page-home.home-night .hot-card {
  background: rgba(31, 39, 38, 0.92);
  border-color: #384743;
}
.page-home.home-night .home-search-inner input {
  color: #f3f4f6;
}
.page-home.home-night .home-search-inner input::placeholder {
  color: #8f9893;
}
.page-home.home-night .home-title {
  background: linear-gradient(135deg, #d8e1d3 0%, #9eb6a3 48%, #d5bea0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home.home-night .home-subtitle {
  color: #9fa7a2;
}
.page-home.home-night .home-section-title,
.page-home.home-night .hot-card-title {
  color: #f3f4f6;
}
.page-home.home-night .hot-card-rank {
  background: #2d3836;
  color: #c7d2cb;
}
.page-home.home-night .hot-card-meta,
.page-home.home-night .min-footer {
  color: #8f9994;
}

/* 全局夜间模式 */
body.site-night {
  --ss-bg: #111827;
  --ss-surface: #1f2937;
  --ss-text: #f3f4f6;
  --ss-muted: #9ca3af;
  --ss-border: #374151;
  background: #111827;
  color: #f3f4f6;
}
body.site-night .min-header {
  background: rgba(17, 24, 39, 0.94);
  border-bottom-color: #273244;
  box-shadow: none;
}
body.site-night .min-brand,
body.site-night .min-user-btn {
  color: #f3f4f6;
}
body.site-night .min-user-btn,
body.site-night .min-ui-btn {
  background: #1f2937;
  border-color: #374151;
}
body.site-night .min-ui-btn-notice { color: #f5c66b; }
body.site-night .min-ui-btn-card { color: #b7d8bf; }
body.site-night .min-user-menu {
  background: #1f2937;
  border-color: #374151;
}
body.site-night .min-menu-info {
  background: #182131;
  border-bottom-color: #374151;
}
body.site-night .menu-item { color: #e5e7eb; }
body.site-night .menu-item:hover { background: #273244; }

/* 搜索结果 */
.min-results {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 88px;
}
.min-results-inner {
  min-height: 80px;
  display: grid;
  gap: 14px;
}
.search-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 2px;
}
.search-results-title {
  font-size: 20px;
  font-weight: 800;
  color: #263226;
  letter-spacing: 0.01em;
}
.search-results-meta {
  font-size: 13px;
  color: #7d7468;
  white-space: nowrap;
}

.search-status {
  font-size: 14px;
  color: #6d746d;
  margin-bottom: 4px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.82);
  border-radius: 16px;
  border: 1px solid #e3e6ea;
  box-shadow: 0 8px 24px rgba(102, 112, 132, 0.06);
}
.search-status--err { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.search-loading-shell {
  display: grid;
  gap: 14px;
}
.search-loading-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(214, 228, 219, 0.54), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,244,238,0.92));
  border: 1px solid #e2ddd2;
  box-shadow: 0 12px 30px rgba(110, 95, 72, 0.08);
}
.search-loading-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f876f, #8d7458);
  box-shadow: 0 0 0 8px rgba(120, 144, 125, 0.12);
  animation: searchPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.search-loading-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.search-loading-copy strong {
  font-size: 15px;
  color: #2d352e;
  font-weight: 800;
}
.search-loading-copy span {
  font-size: 13px;
  color: #7a7268;
  line-height: 1.6;
}
.search-loading-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,247,251,0.92));
  border: 1px solid #e5e9ef;
  box-shadow: 0 14px 34px rgba(90, 101, 120, 0.08);
}
.search-loading-card::after,
.search-loading-head::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.56), transparent);
  animation: searchShimmer 1.7s ease-in-out infinite;
}
.search-loading-card--hero {
  gap: 14px;
  min-height: 120px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.search-loading-chip {
  width: 78px;
  height: 26px;
  border-radius: 999px;
  background: rgba(197, 214, 229, 0.68);
}
.search-loading-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8edf4, #f2f5fa);
}
.search-loading-line--wide {
  width: 72%;
  height: 18px;
}
.search-loading-line--mid {
  width: 46%;
}
.search-loading-line--title {
  width: 86%;
  height: 18px;
}
.search-loading-line--short {
  width: 38%;
}
.search-loading-line--shorter {
  width: 26%;
}
@keyframes searchShimmer {
  100% {
    transform: translateX(100%);
  }
}
@keyframes searchPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.82;
  }
}

.search-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #273127;
  margin: 8px 0 2px;
}
.search-badge-cloud {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #46637a;
  background: linear-gradient(180deg, #d9ecfb, #cae2f7);
  padding: 4px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.search-cloud-hint {
  font-size: 13px;
  color: #7b6e58;
  padding: 12px 14px;
  background: rgba(255, 249, 235, 0.92);
  border: 1px solid #f0ddb0;
  border-radius: 14px;
  margin-bottom: 2px;
}
.result-card--cloud {
  border-color: #d7e4ef;
  background:
    radial-gradient(circle at top right, rgba(199, 226, 245, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(239, 246, 252, 0.96) 100%);
}
.rc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.rc-badge-cloud {
  color: #4c718d;
  background: rgba(208, 228, 245, 0.92);
  border: 1px solid rgba(163, 197, 225, 0.96);
}

.empty-hint {
  text-align: center;
  color: #7d8391;
  font-size: 14px;
  padding: 38px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed #d6dde8;
  border-radius: 18px;
}

.result-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  border-radius: 20px;
  padding: 18px 18px 16px;
  margin-bottom: 0;
  border: 1px solid #dde4ed;
  box-shadow: 0 12px 28px rgba(80, 95, 120, 0.08);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #b9cdbd, #88a39a);
  opacity: 0.9;
}
.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(80, 95, 120, 0.12);
  border-color: #cad5e2;
}
.result-card--db::before {
  background: linear-gradient(180deg, #c8d7c4, #8fa383);
}
.result-card--cloud::before {
  background: linear-gradient(180deg, #9cc7e7, #6fa0d0);
}

.rc-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
  padding-right: 10px;
}
.rc-name a { color: var(--ss-text); text-decoration: none; }
.rc-name a:hover { color: #607b6d; }

.rc-meta { font-size: 12px; color: var(--ss-muted); margin-bottom: 8px; }
.rc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4ff;
  color: var(--ss-primary);
  border-radius: 6px;
  font-weight: 500;
}
.rc-summary {
  font-size: 13px;
  color: #6c7482;
  margin-bottom: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rc-btn-get {
  min-width: 92px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #6c876f, #85725c);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(110, 95, 72, 0.16);
}
.rc-btn-get:hover { filter: brightness(1.03); }
.rc-btn-outline {
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #d7dedf;
  background: rgba(249, 250, 251, 0.92);
  color: #5b645d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rc-btn-outline:hover { border-color: #9db1a3; color: #476152; background: #f7faf8; }

.min-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.page-btn {
  border: 1px solid #d8ddd7;
  background: rgba(255,255,255,0.86);
  color: #59685a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(94, 101, 110, 0.08);
}
.page-btn:hover {
  border-color: #aebfaf;
  background: #fbfcfa;
}
.page-info {
  min-width: 72px;
  text-align: center;
  color: #6c7482;
  font-size: 13px;
  font-weight: 700;
}
.page-search .min-footer {
  padding: 18px 16px 26px;
  color: #9aa1ad;
}
.page-search .min-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
}
.page-search .page-btn {
  border: 1px solid #d8ddd7;
  background: rgba(255,255,255,0.86);
  color: #59685a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(94, 101, 110, 0.08);
}
.page-search .page-btn:hover {
  border-color: #aebfaf;
  color: #435b4d;
  background: #fbfcfa;
}
.page-search .page-info {
  min-width: 72px;
  text-align: center;
  color: #6c7482;
  font-size: 13px;
  font-weight: 700;
}

.bot-msg {
  background: var(--ss-surface);
  border-radius: var(--ss-radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 14px;
  border: 1px solid var(--ss-border);
}
.bot-msg.user-query {
  background: linear-gradient(135deg, #f5f7ff, #faf5ff);
  border-left: 3px solid var(--ss-primary);
}

.min-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: #9ca3af;
  font-size: 12px;
}

.min-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.page-btn {
  padding: 8px 18px;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  background: var(--ss-surface);
  cursor: pointer;
  font-size: 14px;
}
.page-btn:hover { border-color: var(--ss-primary); color: var(--ss-primary); }
.page-info { font-size: 13px; color: var(--ss-muted); }

/* 弹窗 */
.vip-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.vip-modal.show { display: flex; }
.vip-modal-content {
  background: var(--ss-surface);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}
.btn-primary { background: var(--ss-gradient); color: #fff; width: 100%; }
.btn-secondary { background: #f3f4f6; color: var(--ss-muted); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(26, 29, 38, 0.9);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 3000;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 详情 / 阅读 */
.detail-page { max-width: 720px; margin: 0 auto; padding: calc(var(--ss-header-h) + 12px) 16px 90px; }
.detail-hero {
  background: var(--ss-gradient);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: left;
}
.detail-card {
  background: var(--ss-surface);
  border-radius: var(--ss-radius);
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--ss-border);
}
.detail-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ss-border);
  max-width: 720px;
  margin: 0 auto;
}

.chapter-list { list-style: none; }
.chapter-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ss-border);
  color: var(--ss-text);
  text-decoration: none;
}
.chapter-list a:hover { color: var(--ss-primary); }

/* 小说详情页 */
.page-novel {
  background: #f3f5fb;
  min-height: 100vh;
}
.page-novel .min-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #dfe5f1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.page-novel .min-brand {
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.page-novel .min-brand-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  border-radius: 4px;
  background:
    linear-gradient(#54d36d, #54d36d) 0 0 / 9px 14px no-repeat,
    linear-gradient(#7c67ff, #7c67ff) 5px 4px / 9px 14px no-repeat,
    linear-gradient(#38bdf8, #38bdf8) 10px 8px / 9px 10px no-repeat;
}
.page-novel .min-ui-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #d97706;
  font-weight: 600;
}
.page-novel .min-user-btn {
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.page-novel .min-user-avatar {
  width: 28px;
  height: 28px;
  background: #ede9fe;
  color: #6d28d9;
}
.novel-detail-page {
  max-width: 490px;
  margin: 0 auto;
  padding: calc(var(--ss-header-h) + 12px) 16px calc(92px + env(safe-area-inset-bottom, 0px));
}
.novel-detail { display: flex; flex-direction: column; gap: 10px; }
.novel-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #5f62f5 0%, #7b3fe8 100%);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px 13px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(100, 85, 238, 0.2);
}
.novel-detail-hero::after {
  content: '';
  position: absolute;
  top: -42px;
  right: -38px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.novel-detail-head {
  margin-bottom: 9px;
  position: relative;
  z-index: 1;
}
.novel-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.novel-detail-back:hover { color: #fff; }
.novel-detail-title {
  position: relative;
  z-index: 1;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 9px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.novel-detail-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.novel-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-detail-section {
  padding: 14px 16px 12px;
}
.novel-detail-section--compact { padding: 14px 16px 12px; }
.novel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.novel-section-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.novel-section-extra {
  font-size: 12px;
  color: #606b80;
  flex-shrink: 0;
}
.novel-detail-page .detail-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.novel-chapter-list {
  list-style: none;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 0 6px 0 0;
  -webkit-overflow-scrolling: touch;
}
.novel-chapter-list::-webkit-scrollbar { width: 5px; }
.novel-chapter-list::-webkit-scrollbar-track { background: transparent; }
.novel-chapter-list::-webkit-scrollbar-thumb {
  background: #c8ced8;
  border-radius: 999px;
}
.novel-chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 53px;
  padding: 10px 10px;
  border-radius: 0 0 10px 10px;
  border-bottom: 1px solid #e6ebf3;
  transition: background 0.15s;
}
.novel-chapter-item:not(.is-locked):hover { background: #f8f9ff; }
.novel-chapter-item.is-locked {
  color: #657083;
  background: #fafbff;
}
.novel-chapter-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f3ff;
  color: #6470ff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.novel-chapter-item.is-locked .novel-chapter-num {
  background: #f1f3f8;
  color: #9ca3af;
}
.novel-chapter-link {
  flex: 1;
  min-width: 0;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-chapter-link:hover { color: #645cf4; }
.novel-chapter-title-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-chapter-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f3ff;
  color: #645cf4;
  text-decoration: none;
}
.novel-chapter-action:hover {
  background: #645cf4;
  color: #fff;
}
.novel-chapter-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--ss-muted);
  font-size: 14px;
}
.novel-detail-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.06);
}
.novel-detail-bar-inner {
  max-width: 458px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.novel-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}
.novel-bar-btn:active { transform: scale(0.98); }
.novel-bar-btn--secondary {
  flex: 0 0 118px;
  background: #fff;
  color: #111827;
  border: 1px solid #dfe5ef;
}
.novel-bar-btn--secondary:hover {
  border-color: #645cf4;
  color: #645cf4;
}
.novel-bar-btn--primary {
  flex: 1;
  background: linear-gradient(135deg, #5f62f5, #7b3fe8);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(100, 85, 238, 0.28);
}
.novel-bar-btn--primary:hover { color: #fff; filter: brightness(1.04); }

/* 小说详情新版 */
.page-novel .novel-detail-page {
  max-width: 560px;
}
.page-novel .novel-detail {
  gap: 12px;
}
.page-novel .novel-detail-hero {
  min-height: 172px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 58%, #9333ea 100%);
}
.page-novel .novel-detail-hero::after {
  top: auto;
  right: 18px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.1);
}
.page-novel .novel-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.novel-detail-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.page-novel .novel-detail-title {
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.22;
  margin-bottom: 18px;
}
.novel-detail-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.novel-detail-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.novel-detail-stats strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-detail-stats em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.novel-overview-card {
  padding: 16px;
}
.novel-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.page-novel .novel-detail-summary {
  color: #475467;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.page-novel .novel-detail-section {
  padding: 16px;
}
.page-novel .novel-chapter-list {
  max-height: min(45vh, 360px);
}
.page-novel .novel-chapter-item {
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #e8edf5;
  background: #fff;
}
.page-novel .novel-chapter-item:last-child {
  margin-bottom: 0;
}
.page-novel .novel-chapter-num {
  border-radius: 999px;
}

body.site-night.page-novel {
  background: #111827;
}
body.site-night.page-novel .detail-card,
body.site-night.page-novel .novel-chapter-item {
  background: #1f2937;
  border-color: #374151;
}
body.site-night.page-novel .novel-section-title,
body.site-night.page-novel .novel-chapter-link,
body.site-night.page-novel .novel-chapter-title-text {
  color: #f3f4f6;
}
body.site-night.page-novel .novel-section-extra,
body.site-night.page-novel .novel-detail-summary {
  color: #9ca3af;
}
body.site-night.page-novel .novel-chapter-num {
  background: #273244;
  color: #a5b4fc;
}
body.site-night.page-novel .novel-detail-bar {
  background: rgba(17, 24, 39, 0.96);
  border-top-color: #374151;
}
body.site-night.page-novel .novel-bar-btn--secondary {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

.novel-detail-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--ss-muted);
}
.novel-detail-error a { margin-top: 12px; display: inline-block; }

/* 加载骨架 */
.novel-detail--loading .novel-skeleton-hero,
.novel-detail--loading .novel-skeleton-card {
  border-radius: var(--ss-radius);
  background: linear-gradient(90deg, #e8ecf4 25%, #f4f6fb 50%, #e8ecf4 75%);
  background-size: 200% 100%;
  animation: novel-shimmer 1.2s ease-in-out infinite;
}
.novel-skeleton-hero { height: 88px; }
.novel-skeleton-card { height: 100px; }
.novel-skeleton-card--tall { height: 200px; }
@keyframes novel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 400px) {
  .novel-detail-title { font-size: 1rem; }
  .novel-bar-btn--secondary { min-width: 100px; font-size: 13px; }
}

.reader-page {
  background: #f7f4ed;
  min-height: 100vh;
  padding-top: var(--ss-header-h);
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}
.reader-page.reader-drawer-open { overflow: hidden; }

.reader-page .min-header { z-index: 1200; }

.reader-meta-bar {
  max-width: 680px;
  margin: 0 auto;
  padding: 6px 16px 0;
}
.reader-meta-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ss-muted);
  text-decoration: none;
}
.reader-meta-link:hover { color: var(--ss-primary); }

.reader-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 20px 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2c2c2c;
}
.reader-chapter-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.reader-body { text-indent: 2em; }
.reader-empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.reader-toolbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(214, 205, 185, 0.86);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(72, 58, 33, 0.12);
}
.reader-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #6f5d3f;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.reader-bar-icon {
  font-size: 16px;
  line-height: 1;
}
.reader-bar-btn:disabled {
  color: #b7ad9d;
  background: rgba(245, 241, 232, 0.72);
  cursor: not-allowed;
}
.reader-bar-btn-primary {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8b5e2b, #b17435);
  border-color: rgba(139, 94, 43, 0.18);
  box-shadow: 0 6px 16px rgba(139, 94, 43, 0.2);
}
.reader-bar-btn:not(:disabled):hover {
  color: #8b5e2b;
  border-color: rgba(139, 94, 43, 0.18);
  background: #fffaf0;
}
.reader-bar-btn-primary:not(:disabled):hover {
  color: #fff;
  background: linear-gradient(135deg, #7c5226, #a9652f);
}
.reader-bar-btn.is-active {
  color: #fff;
  background: #263142;
  border-color: rgba(38, 49, 66, 0.2);
}
.reader-bar-btn:not(:disabled):active { transform: scale(0.97); }

.reader-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--ss-header-h);
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 1150;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s;
}
.reader-drawer.show {
  pointer-events: auto;
  visibility: visible;
}
.reader-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
}
.reader-drawer.show .reader-drawer-mask { opacity: 1; }

.reader-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 86vw);
  max-width: 100%;
  background: var(--ss-surface);
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.reader-drawer.show .reader-drawer-panel { transform: translateX(0); }

.reader-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--ss-border);
  flex-shrink: 0;
}
.reader-drawer-head h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.reader-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}
.reader-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.reader-toc-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
}
.reader-toc-item {
  border-bottom: 1px solid #f0f0f0;
}
.reader-toc-item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ss-text);
  text-decoration: none;
  line-height: 1.45;
}
.reader-toc-num {
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f3f4ff;
  color: var(--ss-primary);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-toc-item a:hover { background: #f8f9ff; color: var(--ss-primary); }
.reader-toc-item.is-active a {
  background: linear-gradient(90deg, #eef2ff, #fff);
  color: var(--ss-primary);
  font-weight: 600;
}
.reader-toc-item.is-active .reader-toc-num {
  background: var(--ss-primary);
  color: #fff;
}
.reader-toc-item.locked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #999;
}
.reader-toc-item.locked .reader-toc-num {
  background: #f3f4f6;
  color: #9ca3af;
}
.reader-toc-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.reader-toc-item.locked a.reader-toc-action {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4ff;
  color: var(--ss-primary);
  text-decoration: none;
}
.reader-toc-empty {
  padding: 24px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.reader-page.reader-night {
  background: #151821;
  color: #d6d0c5;
}
.reader-page.reader-night .min-header {
  background: rgba(21, 24, 33, 0.92);
  border-bottom-color: #2b3040;
  box-shadow: none;
}
.reader-page.reader-night .min-brand,
.reader-page.reader-night .min-user-btn {
  color: #e7e0d2;
}
.reader-page.reader-night .min-user-btn,
.reader-page.reader-night .min-ui-btn {
  background: #202635;
  border-color: #343b4d;
}
.reader-page.reader-night .min-user-avatar {
  background: #30384b;
}
.reader-page.reader-night .reader-meta-link {
  color: #9da5b7;
}
.reader-page.reader-night .reader-meta-link:hover {
  color: #d8b36a;
}
.reader-page.reader-night .reader-content {
  color: #d8d2c6;
}
.reader-page.reader-night .reader-chapter-title {
  color: #ede5d6;
}
.reader-page.reader-night .reader-empty {
  color: #9da5b7;
}
.reader-page.reader-night .reader-toolbar {
  background: rgba(25, 29, 40, 0.94);
  border-color: #343b4d;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
}
.reader-page.reader-night .reader-bar-btn {
  background: rgba(43, 49, 65, 0.82);
  color: #d8d2c6;
}
.reader-page.reader-night .reader-bar-btn:disabled {
  background: rgba(35, 40, 54, 0.66);
  color: #687084;
}
.reader-page.reader-night .reader-bar-btn:not(:disabled):hover {
  background: #333a4e;
  border-color: #46506a;
  color: #f0c979;
}
.reader-page.reader-night .reader-bar-btn-primary,
.reader-page.reader-night .reader-bar-btn-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #c3924f, #8f5f31);
  color: #141821;
}
.reader-page.reader-night .reader-bar-btn.is-active {
  background: #f0c979;
  color: #151821;
}
.reader-page.reader-night .reader-drawer-mask {
  background: rgba(3, 6, 12, 0.62);
}
.reader-page.reader-night .reader-drawer-panel {
  background: #1f2431;
  color: #e7e0d2;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.36);
}
.reader-page.reader-night .reader-drawer-head {
  border-bottom-color: #333a4e;
}
.reader-page.reader-night .reader-drawer-close {
  background: #30384b;
  color: #d8d2c6;
}
.reader-page.reader-night .reader-toc-item {
  border-bottom-color: #303647;
}
.reader-page.reader-night .reader-toc-item a {
  color: #d8d2c6;
}
.reader-page.reader-night .reader-toc-item a:hover {
  background: #293044;
  color: #f0c979;
}
.reader-page.reader-night .reader-toc-num {
  background: #30384b;
  color: #f0c979;
}
.reader-page.reader-night .reader-toc-item.is-active a {
  background: linear-gradient(90deg, #30384b, #222837);
  color: #f0c979;
}
.reader-page.reader-night .reader-toc-item.is-active .reader-toc-num {
  background: #f0c979;
  color: #151821;
}
.reader-page.reader-night .reader-toc-item.locked {
  color: #7d8495;
}
.reader-page.reader-night .reader-toc-item.locked .reader-toc-num {
  background: #292f3f;
  color: #71798d;
}
.reader-page.reader-night .reader-toc-item.locked a.reader-toc-action {
  background: #30384b;
  color: #f0c979;
}
.reader-page.reader-night .reader-toc-empty {
  color: #9da5b7;
}

@media (max-width: 420px) {
  .reader-toolbar {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .reader-bar-btn {
    min-height: 42px;
    font-size: 11px;
  }
  .reader-bar-icon {
    font-size: 14px;
  }
}

/* 个人中心 */
.page-user { background: var(--ss-bg); }

.user-center {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(var(--ss-header-h) + 16px) 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-profile-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(91, 108, 240, 0.2);
}
.user-profile-bg {
  position: absolute;
  inset: 0;
  background: var(--ss-gradient);
}
.user-profile-bg::before,
.user-profile-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.user-profile-bg::before {
  width: 160px;
  height: 160px;
  top: -50px;
  right: -30px;
}
.user-profile-bg::after {
  width: 100px;
  height: 100px;
  bottom: -20px;
  left: -20px;
}
.user-profile-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 24px;
  color: #fff;
}
.user-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}
.user-nickname {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.user-username {
  font-size: 14px;
  opacity: 0.88;
  margin-bottom: 12px;
}
.user-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.user-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.user-badge--vip {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}
.user-badge--normal {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.user-vip-expire {
  font-size: 12px;
  opacity: 0.92;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
  max-width: 100%;
}
.user-vip-expire-label {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 2px;
}
.user-vip-expire time {
  font-variant-numeric: tabular-nums;
}
.user-vip-hint {
  font-size: 13px;
  opacity: 0.9;
}

.user-flash {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.user-flash a { font-weight: 500; text-decoration: underline; }
.user-flash--success {
  background: #f0fff4;
  color: #276749;
  border-color: #c6f6d5;
}
.user-flash--error {
  background: #fff5f5;
  color: #c53030;
  border-color: #fed7d7;
}
.user-flash--info {
  background: #ebf8ff;
  color: #2b6cb0;
  border-color: #bee3f8;
}
.user-flash--warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.user-card {
  background: var(--ss-surface);
  border-radius: var(--ss-radius);
  padding: 18px 18px 20px;
  border: 1px solid var(--ss-border);
  box-shadow: var(--ss-shadow);
}
.user-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.user-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.user-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ss-text);
  margin-bottom: 4px;
}
.user-card-title--solo { margin-bottom: 14px; }
.user-card-desc {
  font-size: 13px;
  color: var(--ss-muted);
  line-height: 1.4;
}

.user-redeem-form { display: flex; flex-direction: column; gap: 10px; }
.user-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ss-muted);
}
.user-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ss-border);
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.08em;
  font-family: ui-monospace, Consolas, monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.user-input:focus {
  outline: none;
  border-color: var(--ss-primary);
  box-shadow: 0 0 0 3px rgba(91, 108, 240, 0.15);
}
.user-btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ss-gradient);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 108, 240, 0.3);
  transition: filter 0.15s, transform 0.15s;
}
.user-btn-primary:hover { filter: brightness(1.05); }
.user-btn-primary:active { transform: scale(0.98); }

.user-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f9fc;
  border: 1px solid #eef1f6;
}
.user-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ss-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.user-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.user-benefit-text strong {
  font-size: 14px;
  color: var(--ss-text);
}
.user-benefit-text span {
  font-size: 12px;
  color: var(--ss-muted);
  line-height: 1.45;
}

/* 登录注册 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91, 108, 240, 0.12), transparent),
    var(--ss-bg);
}
.auth-night-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ss-border);
  background: #f8fafc;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ss-muted);
  text-decoration: none;
}
.auth-tab.active { background: var(--ss-primary); color: #fff; font-weight: 600; }
.auth-alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.auth-alert-err { background: #fef2f2; color: #dc2626; }
.auth-alert-ok { background: #ecfdf5; color: #059669; }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--ss-surface);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--ss-shadow);
  border: 1px solid var(--ss-border);
}
.auth-card h2 { text-align: center; margin-bottom: 24px; color: var(--ss-text); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--ss-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--ss-border);
  border-radius: 10px;
  font-size: 15px;
}
.form-group input:focus { border-color: var(--ss-primary); outline: none; }

body.site-night .auth-page {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.18), transparent),
    #111827;
}
body.site-night .auth-card {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
body.site-night .auth-tabs {
  background: #111827;
  border-color: #374151;
}
body.site-night .auth-tab {
  color: #9ca3af;
}
body.site-night .auth-tab.active {
  background: #5f62f5;
  color: #fff;
}
body.site-night .form-group input {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}
body.site-night .form-group input::placeholder {
  color: #7d8796;
}

/* 兼容旧类名（逐步废弃） */
.min-main { max-width: 680px; margin: 0 auto; padding: calc(var(--ss-header-h) + 24px) 20px 30px; text-align: center; }
.min-logo { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.min-search-box { display: none; }

@media (max-width: 600px) {
  .min-header { padding: 0 12px; }
  .min-brand-text { font-size: 15px; }
  .page-home .min-header-actions { gap: 6px; }
  .page-home .min-ui-btn-notice {
    min-height: 36px;
    padding: 7px 11px;
  }
  .min-ui-btn-night {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .page-home .min-user-btn {
    min-height: 36px;
    padding: 5px 9px 5px 6px;
    max-width: 128px;
  }
  .page-home #userBtnText {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-hero { padding: calc(var(--ss-header-h) + 28px) 16px 18px; }
  .home-title { font-size: 34px; }
  .home-section { padding: 14px 16px 44px; }
  .home-search-btn { padding: 12px 20px; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hot-card { min-height: 72px; padding: 12px; }
  .page-search .search-bar-wrap {
    padding-top: calc(var(--ss-header-h) + 16px);
  }
  .search-hero-panel {
    margin-bottom: 14px;
    padding: 18px 16px;
    border-radius: 22px;
  }
  .search-hero-panel h1 {
    font-size: 24px;
  }
  .search-hero-panel p {
    font-size: 13px;
    line-height: 1.65;
  }
  .page-search .home-search-inner {
    min-height: 58px;
    padding-left: 14px;
  }
  .page-search .home-search-inner input {
    font-size: 16px;
  }
  .page-search .home-search-btn {
    min-width: 74px;
    padding: 12px 18px;
  }
  .page-search .search-scope-tabs {
    gap: 8px;
    margin-top: 12px;
  }
  .min-results {
    padding: 16px 12px 76px;
  }
  .search-results-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-results-meta {
    white-space: normal;
  }
  .result-card {
    padding: 16px 16px 14px;
    border-radius: 18px;
  }
  .rc-name {
    font-size: 16px;
  }
  .rc-actions {
    gap: 8px;
  }
  .rc-btn-get,
  .rc-btn-outline,
  .page-btn {
    padding: 9px 14px;
  }
}

@media (max-width: 390px) {
  .home-search-inner {
    gap: 8px;
    padding-left: 10px;
  }
  .home-search-icon {
    width: 28px;
    height: 28px;
  }
  .home-search-btn {
    min-width: 68px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hot-grid { grid-template-columns: 1fr; }
}

/* Search cards: title-only entry */
.result-card .rc-name {
  margin-bottom: 4px;
}
.result-card .rc-name a {
  transition: color 0.18s ease;
}
.result-card:hover .rc-name a {
  color: #607b6d;
}
.result-card .rc-actions {
  display: none;
}

/* Novel detail refresh */
.page-novel {
  background:
    radial-gradient(circle at top left, rgba(200, 221, 211, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(236, 220, 197, 0.24), transparent 30%),
    linear-gradient(180deg, #f7f3ec 0%, #eff3f8 24%, #edf1f7 100%);
}
.page-novel .min-header {
  background: rgba(255, 251, 245, 0.94);
  border-bottom-color: rgba(217, 208, 193, 0.72);
}
.page-novel .min-ui-btn {
  background: rgba(255, 248, 237, 0.98);
  border-color: #ecdab7;
  color: #9a6f3d;
}
.page-novel .min-user-btn {
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 6px 18px rgba(98, 84, 63, 0.06);
}
.page-novel .min-user-avatar {
  background: linear-gradient(135deg, #ece7ff, #f2e7d5);
  color: #765d49;
}
.page-novel .novel-detail-page {
  max-width: 620px;
  padding: calc(var(--ss-header-h) + 18px) 16px calc(92px + env(safe-area-inset-bottom, 0px));
}
.page-novel .novel-detail {
  gap: 14px;
}
.page-novel .novel-detail-hero {
  min-height: 184px;
  padding: 14px 14px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 90%, rgba(255, 244, 224, 0.12), transparent 28%),
    linear-gradient(135deg, #4a6858 0%, #6b8673 42%, #8f7355 100%);
  box-shadow: 0 24px 52px rgba(101, 86, 68, 0.16);
}
.page-novel .novel-detail-hero::after {
  right: -22px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.11);
}
.page-novel .novel-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-novel .novel-detail-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.page-novel .novel-cover-badge {
  width: 72px;
  height: 92px;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #6f876f, #8b7153);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 18px 34px rgba(48, 42, 31, 0.2);
}
.page-novel .novel-detail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-novel .novel-detail-title {
  font-size: clamp(21px, 4.8vw, 28px);
  line-height: 1.2;
  margin-bottom: 0;
}
.page-novel .novel-detail-tags {
  gap: 8px;
}
.page-novel .novel-tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  border-color: rgba(255, 255, 255, 0.18);
}
.page-novel .detail-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  border: 1px solid #e4e8ee;
  box-shadow: 0 16px 34px rgba(88, 95, 112, 0.08);
}
.page-novel .novel-overview-card,
.page-novel .novel-detail-section,
.page-novel .novel-detail-section--compact {
  padding: 18px;
}
.page-novel .novel-section-title {
  color: #203126;
}
.page-novel .novel-section-extra {
  color: #6f7568;
}
.page-novel .novel-detail-summary {
  color: #44515d;
  white-space: pre-wrap;
}
.page-novel .novel-chapter-list {
  max-height: min(50vh, 460px);
}
.page-novel .novel-chapter-item {
  min-height: 58px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e8edf5;
  background: #fff;
  margin-bottom: 9px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.page-novel .novel-chapter-item:last-child {
  margin-bottom: 0;
}
.page-novel .novel-chapter-item:not(.is-locked):hover {
  background: #fbfcff;
  border-color: #d7e0eb;
  transform: translateY(-1px);
}
.page-novel .novel-chapter-link {
  color: #122033;
}
.page-novel .novel-detail-bar {
  background: rgba(255, 251, 245, 0.96);
  border-top: 1px solid #e6ddd0;
  box-shadow: 0 -8px 28px rgba(84, 71, 53, 0.08);
}
.page-novel .novel-detail-bar-inner {
  max-width: 588px;
}
.page-novel .novel-bar-btn--secondary {
  background: rgba(255, 255, 255, 0.98);
  color: #203126;
  border: 1px solid #d7dfd5;
}
.page-novel .novel-bar-btn--secondary:hover {
  border-color: #92a895;
  color: #49644f;
}
.page-novel .novel-bar-btn--primary {
  background: linear-gradient(135deg, #6a8676, #8c7356);
  box-shadow: 0 14px 28px rgba(114, 92, 67, 0.22);
}
body.site-night.page-novel .min-header {
  background: rgba(19, 25, 35, 0.94);
  border-bottom-color: #31394b;
}
body.site-night.page-novel .novel-cover-badge {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #2d3f37, #624f3c);
}

/* Mobile header density fix */
@media (max-width: 600px) {
  .min-header {
    gap: 8px;
  }
  .min-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }
  .min-brand-text {
    font-size: 15px;
    line-height: 1.12;
    word-break: break-all;
  }
  .min-header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .min-ui-btn-notice {
    min-height: 36px;
    padding: 7px 10px;
  }
  .min-user-btn {
    min-height: 36px;
    padding: 5px 8px 5px 6px;
    max-width: 122px;
  }
  #userBtnText {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-search .result-card .rc-name {
    margin-bottom: 2px;
  }
  .page-novel .novel-detail-page {
    padding-top: calc(var(--ss-header-h) + 14px);
  }
  .page-novel .novel-detail-intro {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }
  .page-novel .novel-cover-badge {
    width: 60px;
    height: 78px;
    border-radius: 16px;
    font-size: 22px;
  }
  .page-novel .novel-detail-title {
    font-size: 22px;
  }
  .page-novel .novel-detail-stats {
    grid-template-columns: 1fr;
  }
  .page-novel .novel-bar-btn--secondary {
    flex-basis: 108px;
  }
}

.page-novel .novel-detail-stats {
  display: none !important;
}
.page-novel .novel-detail-intro {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
.page-novel .novel-cover-badge {
  display: none !important;
}
.search-hero-copy {
  gap: 6px;
}
.search-hero-panel h1:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .search-loading-head {
    padding: 14px;
    border-radius: 18px;
  }
  .search-loading-copy strong {
    font-size: 14px;
  }
  .search-loading-copy span {
    font-size: 12px;
    line-height: 1.55;
  }
  .search-loading-card {
    padding: 16px;
    border-radius: 18px;
  }
  .search-loading-card--hero {
    min-height: 98px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* Novel loading refresh */
.novel-loading-shell {
  display: grid;
  gap: 14px;
}
.novel-loading-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(214, 228, 219, 0.54), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,244,238,0.92));
  border: 1px solid #e2ddd2;
  box-shadow: 0 12px 30px rgba(110, 95, 72, 0.08);
}
.novel-loading-head::after,
.novel-detail--loading .novel-skeleton-hero::after,
.novel-detail--loading .novel-skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.56), transparent);
  animation: novel-shimmer 1.7s ease-in-out infinite;
}
.novel-loading-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f876f, #8d7458);
  box-shadow: 0 0 0 8px rgba(120, 144, 125, 0.12);
  animation: searchPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.novel-loading-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.novel-loading-copy strong {
  font-size: 15px;
  color: #2d352e;
  font-weight: 800;
}
.novel-loading-copy span {
  font-size: 13px;
  color: #7a7268;
  line-height: 1.6;
}
.novel-detail--loading .novel-skeleton-hero,
.novel-detail--loading .novel-skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,247,251,0.92));
  border: 1px solid #e5e9ef;
  box-shadow: 0 14px 34px rgba(90, 101, 120, 0.08);
}
.novel-skeleton-hero {
  min-height: 184px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.novel-skeleton-back,
.novel-skeleton-title,
.novel-skeleton-line,
.novel-skeleton-row,
.novel-skeleton-tags span {
  border-radius: 999px;
  background: linear-gradient(90deg, #e8edf4, #f2f5fa);
}
.novel-skeleton-back {
  width: 74px;
  height: 18px;
}
.novel-skeleton-title {
  width: 68%;
  height: 28px;
  border-radius: 16px;
}
.novel-skeleton-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.novel-skeleton-tags span {
  width: 78px;
  height: 28px;
}
.novel-skeleton-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.novel-skeleton-card--tall {
  min-height: 232px;
}
.novel-skeleton-line {
  height: 14px;
}
.novel-skeleton-line--wide {
  width: 64%;
  height: 18px;
}
.novel-skeleton-line--short {
  width: 42%;
}
.novel-skeleton-row {
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(90deg, #edf2f8, #f5f8fc);
}
.novel-skeleton-row--short {
  width: 88%;
}
@keyframes novel-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 600px) {
  .novel-loading-head {
    padding: 14px;
    border-radius: 18px;
  }
  .novel-loading-copy strong {
    font-size: 14px;
  }
  .novel-loading-copy span {
    font-size: 12px;
    line-height: 1.55;
  }
  .novel-detail--loading .novel-skeleton-hero,
  .novel-detail--loading .novel-skeleton-card {
    border-radius: 20px;
  }
  .novel-skeleton-hero,
  .novel-skeleton-card {
    padding: 16px;
  }
  .novel-skeleton-hero {
    min-height: 152px;
  }
  .novel-skeleton-card--tall {
    min-height: 208px;
  }
  .novel-skeleton-title {
    width: 82%;
    height: 24px;
  }
  .novel-skeleton-tags span {
    width: 68px;
    height: 24px;
  }
}

/* Search page night mode readability */
body.site-night.page-search {
  background:
    radial-gradient(circle at top left, rgba(72, 94, 83, 0.24), transparent 26%),
    radial-gradient(circle at top right, rgba(110, 91, 67, 0.18), transparent 28%),
    linear-gradient(180deg, #121827 0%, #131a2b 100%);
}
body.site-night.page-search .search-bar-wrap::before {
  background: linear-gradient(180deg, rgba(28, 35, 50, 0.92), rgba(35, 42, 58, 0.72));
  box-shadow: 0 20px 48px rgba(3, 8, 18, 0.32);
}
body.site-night.page-search .search-hero-panel {
  background:
    radial-gradient(circle at top right, rgba(70, 92, 84, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(29, 36, 50, 0.96), rgba(23, 30, 44, 0.94));
  border-color: #2f3a4c;
  box-shadow:
    0 20px 44px rgba(2, 6, 16, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
body.site-night.page-search .search-hero-kicker {
  background: rgba(62, 74, 92, 0.92);
  color: #d8c59f;
}
body.site-night.page-search .search-hero-panel h1 {
  color: #f5f7fb;
}
body.site-night.page-search .home-search-inner {
  background: rgba(24, 31, 45, 0.96);
  border-color: #344053;
  box-shadow:
    0 16px 40px rgba(4, 8, 18, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
body.site-night.page-search .home-search-inner:focus-within {
  border-color: #5f7b6a;
  box-shadow:
    0 18px 42px rgba(11, 20, 35, 0.34),
    0 0 0 1px rgba(123, 156, 135, 0.18);
}
body.site-night.page-search .home-search-icon {
  color: #dbc59a;
}
body.site-night.page-search .home-search-inner input {
  color: #f3f4f6;
}
body.site-night.page-search .home-search-inner input::placeholder {
  color: #91a0b7;
}
body.site-night.page-search .home-search-btn {
  background: linear-gradient(135deg, #5d7868, #846e56);
  box-shadow: 0 12px 24px rgba(19, 28, 21, 0.28);
}
body.site-night.page-search .search-results-title {
  color: #eef2f8;
}
body.site-night.page-search .search-results-meta {
  color: #c3cbd8;
}
body.site-night.page-search .search-section-label {
  color: #eaf0fa;
}
body.site-night.page-search .search-badge-cloud {
  color: #d8ebff;
  background: linear-gradient(180deg, #395876, #2e465f);
}
body.site-night.page-search .search-cloud-hint {
  color: #e5d0a8;
  background: rgba(66, 52, 29, 0.34);
  border-color: rgba(165, 136, 82, 0.3);
}
body.site-night.page-search .empty-hint {
  color: #d7dfeb;
  background: rgba(27, 35, 49, 0.78);
  border-color: #344155;
}
body.site-night.page-search .result-card {
  background: linear-gradient(180deg, rgba(28, 35, 50, 0.96), rgba(22, 30, 44, 0.96));
  border-color: #334155;
  box-shadow: 0 16px 34px rgba(2, 6, 16, 0.28);
}
body.site-night.page-search .result-card--cloud {
  background:
    radial-gradient(circle at top right, rgba(55, 86, 114, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(30, 39, 54, 0.98) 0%, rgba(22, 30, 44, 0.96) 100%);
  border-color: #36506a;
}
body.site-night.page-search .rc-badge-cloud {
  color: #d7ebff;
  background: rgba(54, 85, 112, 0.62);
  border-color: rgba(92, 126, 158, 0.48);
}
body.site-night.page-search .rc-name a {
  color: #f3f4f6;
}
body.site-night.page-search .rc-summary {
  color: #c8d2df;
}
body.site-night.page-search .result-card:hover .rc-name a {
  color: #f2d7a7;
}
body.site-night.page-search .page-info {
  color: #d8dfeb;
}
body.site-night.page-search .page-btn {
  background: rgba(27, 35, 49, 0.96);
  border-color: #3a475b;
  color: #e6edf8;
}
body.site-night.page-search .page-btn:hover {
  background: #263348;
  border-color: #5e7a69;
  color: #fff4db;
}
body.site-night.page-search .search-loading-head {
  background:
    radial-gradient(circle at top right, rgba(63, 86, 78, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(28, 35, 50, 0.96), rgba(23, 30, 44, 0.94));
  border-color: #314052;
  box-shadow: 0 12px 30px rgba(3, 8, 18, 0.28);
}
body.site-night.page-search .search-loading-copy strong {
  color: #f5f7fb;
}
body.site-night.page-search .search-loading-copy span {
  color: #b9c4d3;
}
body.site-night.page-search .search-loading-card {
  background: linear-gradient(180deg, rgba(28, 35, 50, 0.96), rgba(22, 30, 44, 0.96));
  border-color: #334155;
  box-shadow: 0 14px 34px rgba(2, 6, 16, 0.28);
}
body.site-night.page-search .search-loading-card::after,
body.site-night.page-search .search-loading-head::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
body.site-night.page-search .search-loading-chip {
  background: rgba(71, 96, 122, 0.6);
}
body.site-night.page-search .search-loading-line {
  background: linear-gradient(90deg, #2b3648, #39475d);
}

/* User center refresh */
.page-user {
  background:
    radial-gradient(circle at top left, rgba(214, 225, 236, 0.34), transparent 26%),
    radial-gradient(circle at top right, rgba(235, 218, 191, 0.24), transparent 28%),
    linear-gradient(180deg, #eef2f8 0%, #eef1f6 100%);
}
.user-center {
  max-width: 760px;
  gap: 16px;
}
.user-profile-card--refresh {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(208, 220, 235, 0.74);
  box-shadow: 0 24px 54px rgba(94, 102, 121, 0.14);
}
.user-profile-card--refresh .user-profile-bg {
  background:
    radial-gradient(circle at 14% 88%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255,255,255,0.1), transparent 28%),
    linear-gradient(135deg, #4f6e5e 0%, #6b8675 42%, #8a7055 100%);
}
.user-profile-card--refresh .user-profile-inner {
  padding: 26px 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.user-profile-card--refresh .user-avatar {
  margin: 0;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.14);
}
.user-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.user-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 800;
  color: #fff5df;
}
.user-profile-card--refresh .user-nickname {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.06;
}
.user-profile-card--refresh .user-username {
  margin-bottom: 2px;
  color: rgba(255,255,255,0.82);
}
.user-badge--soft {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.user-hero-note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}
.user-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 1.06fr);
  gap: 16px;
}
.user-card {
  border-radius: 22px;
  padding: 20px;
  border-color: #dde5ef;
  box-shadow: 0 16px 34px rgba(90, 101, 120, 0.08);
}
.user-card-head--compact {
  margin-bottom: 14px;
}
.user-card-icon {
  border-radius: 14px;
  background: linear-gradient(135deg, #f9efc7, #f0d89b);
  box-shadow: 0 8px 18px rgba(227, 189, 108, 0.18);
}
.user-status-grid {
  display: grid;
  gap: 12px;
}
.user-status-item {
  padding: 14px 14px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafcff, #f3f6fb);
  border: 1px solid #e8edf4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-status-label {
  font-size: 12px;
  color: #7b8798;
  font-weight: 700;
}
.user-status-value {
  font-size: 15px;
  color: #182433;
  font-weight: 800;
}
.user-card--redeem .user-card-desc,
.user-card--benefits .user-card-desc {
  color: #6b7280;
}
.user-input {
  border-radius: 14px;
  border-color: #dbe4ee;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.user-input:focus {
  border-color: #7b9987;
  box-shadow: 0 0 0 3px rgba(123, 153, 135, 0.16);
}
.user-btn-primary {
  border-radius: 14px;
  background: linear-gradient(135deg, #617f6c, #8b7154);
  box-shadow: 0 12px 24px rgba(110, 92, 67, 0.22);
}
.user-benefits {
  gap: 12px;
}
.user-benefit {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
  border-color: #e7ebf2;
}
.user-benefit-icon {
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f3f6fb);
  color: #546477;
}
.user-benefit-text strong {
  color: #182433;
}
.user-benefit-text span {
  color: #6e7b8d;
}
.user-flash {
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(72, 88, 110, 0.06);
}

body.site-night.page-user {
  background:
    radial-gradient(circle at top left, rgba(55, 76, 68, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(94, 74, 52, 0.14), transparent 28%),
    linear-gradient(180deg, #111827 0%, #131a2b 100%);
}
body.site-night.page-user .user-profile-card--refresh {
  border-color: #354154;
  box-shadow: 0 26px 54px rgba(2, 6, 16, 0.36);
}
body.site-night.page-user .user-profile-card--refresh .user-profile-bg {
  background:
    radial-gradient(circle at 14% 88%, rgba(255,255,255,0.08), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(135deg, #2e4339 0%, #47604f 42%, #6f5a45 100%);
}
body.site-night.page-user .user-card {
  background: linear-gradient(180deg, rgba(28, 35, 50, 0.96), rgba(22, 30, 44, 0.96));
  border-color: #334155;
  box-shadow: 0 18px 34px rgba(2, 6, 16, 0.28);
}
body.site-night.page-user .user-card-title,
body.site-night.page-user .user-benefit-text strong,
body.site-night.page-user .user-status-value {
  color: #f3f4f6;
}
body.site-night.page-user .user-card-desc,
body.site-night.page-user .user-status-label,
body.site-night.page-user .user-benefit-text span {
  color: #a8b3c3;
}
body.site-night.page-user .user-status-item,
body.site-night.page-user .user-benefit {
  background: linear-gradient(180deg, #1d2635, #18212e);
  border-color: #2e394c;
}
body.site-night.page-user .user-benefit-icon {
  background: linear-gradient(180deg, #293242, #202938);
  color: #d4dde9;
}
body.site-night.page-user .user-input {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
body.site-night.page-user .user-input::placeholder {
  color: #7f8aa0;
}
body.site-night.page-user .user-input:focus {
  border-color: #688272;
  box-shadow: 0 0 0 3px rgba(104, 130, 114, 0.18);
}
body.site-night.page-user .user-btn-primary {
  background: linear-gradient(135deg, #5f7b6a, #816b51);
  box-shadow: 0 12px 24px rgba(10, 18, 13, 0.28);
}
body.site-night.page-user .user-flash--success {
  background: rgba(15, 118, 110, 0.18);
  border-color: rgba(45, 212, 191, 0.22);
  color: #8df5e1;
}
body.site-night.page-user .user-flash--error {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.26);
  color: #fecaca;
}
body.site-night.page-user .user-flash--info {
  background: rgba(30, 64, 175, 0.18);
  border-color: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}
body.site-night.page-user .user-flash--warn {
  background: rgba(120, 53, 15, 0.26);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

@media (max-width: 680px) {
  .user-profile-card--refresh .user-profile-inner {
    padding: 22px 18px 20px;
    flex-direction: column;
    text-align: center;
  }
  .user-profile-card--refresh .user-avatar {
    margin: 0 auto;
  }
  .user-hero-copy {
    justify-items: center;
  }
  .user-grid {
    grid-template-columns: 1fr;
  }
  .user-card,
  .user-card--redeem,
  .user-card--benefits {
    padding: 18px;
  }
}

/* User center membership dashboard */
.page-user .user-center--panel {
  max-width: 1120px;
  padding: calc(var(--ss-header-h) + 14px) 16px 32px;
  gap: 18px;
}

.page-user .user-hero-card,
.page-user .user-panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 223, 234, 0.92);
  box-shadow: 0 20px 44px rgba(89, 102, 123, 0.08);
}

.page-user .user-hero-card {
  padding: 16px 16px 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.58), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(252, 239, 214, 0.66), transparent 22%),
    linear-gradient(135deg, #f4f7fb 0%, #eef3f7 44%, #f6efe3 100%);
}

.page-user .user-hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.page-user .user-hero-orb--one {
  top: -56px;
  right: 74px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 229, 219, 0.88), rgba(212, 229, 219, 0));
}

.page-user .user-hero-orb--two {
  right: -54px;
  bottom: -76px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(241, 216, 184, 0.82), rgba(241, 216, 184, 0));
}

.page-user .user-hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}

.page-user .user-hero-main {
  min-width: 0;
}

.page-user .user-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 222, 233, 0.96);
  color: #51606e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-user .user-hero-name {
  margin: 8px 0 4px;
  font-size: clamp(1.7rem, 3.3vw, 2.35rem);
  line-height: 1.04;
  color: #1d2938;
  letter-spacing: -0.03em;
}

.page-user .user-hero-handle {
  margin: 0;
  color: #6d7a88;
  font-size: 0.9rem;
}

.page-user .user-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.page-user .user-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.page-user .user-hero-tag.is-vip {
  background: linear-gradient(135deg, #5f7f6d, #8f7355);
  color: #fffaf1;
  box-shadow: 0 10px 20px rgba(121, 98, 70, 0.18);
}

.page-user .user-hero-tag.is-normal {
  background: rgba(255, 255, 255, 0.76);
  color: #51606d;
  border-color: rgba(214, 223, 234, 0.96);
}

.page-user .user-hero-tag.is-soft {
  background: rgba(251, 248, 241, 0.88);
  color: #7e654d;
  border-color: rgba(230, 210, 182, 0.94);
}

.page-user .user-hero-note {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 100%;
  color: #556272;
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-user .user-hero-access {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
}

.page-user .user-access-item {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(219, 227, 236, 0.92);
  display: grid;
  gap: 4px;
}

.page-user .user-access-item span {
  color: #7b8693;
  font-size: 0.74rem;
  font-weight: 700;
}

.page-user .user-access-item strong {
  color: #1f2b38;
  font-size: 0.92rem;
}

.page-user .user-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 18px;
  justify-content: start;
}

.page-user .user-panel-card {
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.96));
}

.page-user .user-panel-card--membership {
  background:
    radial-gradient(circle at top right, rgba(224, 234, 226, 0.5), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.page-user .user-panel-card--redeem {
  background:
    radial-gradient(circle at top right, rgba(244, 233, 214, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 244, 0.98));
}

.page-user .user-panel-card--cards {
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.page-user .user-panel-card--benefits {
  padding: 26px;
}

.page-user .user-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.page-user .user-panel-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8edd1, #e7d2aa);
  color: #6d573f;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(170, 136, 84, 0.16);
}

.page-user .user-panel-title {
  margin: 2px 0 6px;
  color: #1e2938;
  font-size: 1.18rem;
}

.page-user .user-panel-desc {
  margin: 0;
  color: #6c7784;
  line-height: 1.75;
  font-size: 0.94rem;
}

.page-user .user-overview-list {
  display: grid;
  gap: 12px;
}

.page-user .user-overview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(224, 230, 239, 0.96);
}

.page-user .user-overview-label {
  color: #7a8694;
  font-size: 0.86rem;
  font-weight: 700;
}

.page-user .user-overview-value {
  color: #213041;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: right;
}

.page-user .user-redeem-form--panel {
  display: grid;
  gap: 12px;
}

.page-user .user-input-label {
  color: #5f6d7b;
  font-size: 0.88rem;
  font-weight: 700;
}

.page-user .user-redeem-form--panel .user-input {
  min-height: 50px;
}

.page-user .user-redeem-form--panel .user-btn-primary {
  min-height: 50px;
  font-size: 0.96rem;
  font-weight: 800;
}

.page-user .user-generate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-user .user-input--plain {
  text-align: left;
  letter-spacing: 0;
  font-family: inherit;
}

.page-user .user-generated-codes {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(214, 224, 238, 0.9);
  background: rgba(255, 255, 255, 0.86);
}

.page-user .user-generated-codes strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ss-text);
}

.page-user .user-generated-code-list {
  display: grid;
  gap: 8px;
}

.page-user .user-generated-code-list code {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  word-break: break-all;
}

.page-user .user-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-user .user-feature-card {
  min-height: 176px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.96));
  border: 1px solid rgba(225, 231, 239, 0.94);
  display: grid;
  align-content: start;
  gap: 12px;
}

.page-user .user-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #607d6c, #8f7252);
  color: #fffdf6;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(102, 87, 66, 0.18);
}

.page-user .user-feature-card strong {
  color: #1f2b39;
  font-size: 1rem;
}

.page-user .user-feature-card span:last-child {
  color: #6b7786;
  line-height: 1.8;
  font-size: 0.9rem;
}

body.site-night.page-user .user-center--panel {
  color: #e5edf6;
}

body.site-night.page-user .user-hero-card {
  border-color: #334155;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.05), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(114, 88, 58, 0.18), transparent 22%),
    linear-gradient(135deg, #1b2432 0%, #1c2736 46%, #2b2520 100%);
  box-shadow: 0 24px 50px rgba(3, 8, 18, 0.3);
}

body.site-night.page-user .user-hero-orb--one {
  background: radial-gradient(circle, rgba(92, 126, 109, 0.34), rgba(92, 126, 109, 0));
}

body.site-night.page-user .user-hero-orb--two {
  background: radial-gradient(circle, rgba(140, 106, 71, 0.28), rgba(140, 106, 71, 0));
}

body.site-night.page-user .user-hero-kicker,
body.site-night.page-user .user-hero-tag.is-normal,
body.site-night.page-user .user-access-item,
body.site-night.page-user .user-overview-item {
  background: rgba(12, 19, 31, 0.82);
  border-color: rgba(76, 93, 118, 0.78);
}

body.site-night.page-user .user-hero-kicker,
body.site-night.page-user .user-hero-handle,
body.site-night.page-user .user-hero-note,
body.site-night.page-user .user-panel-desc,
body.site-night.page-user .user-input-label,
body.site-night.page-user .user-access-item span,
body.site-night.page-user .user-overview-label,
body.site-night.page-user .user-feature-card span:last-child {
  color: #b9c6d8;
}

body.site-night.page-user .user-hero-name,
body.site-night.page-user .user-access-item strong,
body.site-night.page-user .user-panel-title,
body.site-night.page-user .user-overview-value,
body.site-night.page-user .user-feature-card strong {
  color: #f8fbff;
}

body.site-night.page-user .user-hero-kicker {
  background: rgba(237, 244, 255, 0.92);
  border-color: rgba(226, 234, 244, 0.95);
  color: #334155;
}

body.site-night.page-user .user-hero-tag.is-normal {
  background: rgba(238, 242, 247, 0.94);
  border-color: rgba(228, 234, 242, 0.94);
  color: #334155;
}

body.site-night.page-user .user-hero-tag.is-soft {
  background: rgba(117, 88, 56, 0.32);
  color: #f2dcc1;
  border-color: rgba(165, 128, 87, 0.48);
}

body.site-night.page-user .user-panel-card {
  border-color: #3a485f;
  background: linear-gradient(180deg, rgba(20, 28, 41, 0.98), rgba(14, 21, 33, 0.99));
  box-shadow: 0 22px 42px rgba(3, 8, 18, 0.34);
}

body.site-night.page-user .user-panel-card--membership {
  background:
    radial-gradient(circle at top right, rgba(65, 90, 77, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(20, 28, 41, 0.98), rgba(14, 21, 33, 0.99));
}

body.site-night.page-user .user-panel-card--redeem {
  background:
    radial-gradient(circle at top right, rgba(111, 86, 58, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(19, 27, 40, 0.99), rgba(13, 20, 31, 1));
}

body.site-night.page-user .user-panel-card--cards {
  background:
    radial-gradient(circle at top right, rgba(57, 91, 148, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(19, 27, 40, 0.99), rgba(13, 20, 31, 1));
}

body.site-night.page-user .user-panel-icon {
  background: linear-gradient(135deg, #6c7d67, #886a4c);
  color: #fff7e6;
  box-shadow: 0 10px 18px rgba(8, 12, 18, 0.28);
}

body.site-night.page-user .user-input {
  background: #0f1728;
  border-color: #40506a;
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

body.site-night.page-user .user-input::placeholder {
  color: #90a0b8;
}

body.site-night.page-user .user-input:focus {
  border-color: #7f9d8b;
  box-shadow: 0 0 0 3px rgba(127, 157, 139, 0.18);
}

body.site-night.page-user .user-btn-primary {
  background: linear-gradient(135deg, #6d8572, #917654);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(10, 18, 13, 0.34);
}

body.site-night.page-user .user-generated-codes {
  background: rgba(15, 23, 35, 0.78);
  border-color: #334155;
}

body.site-night.page-user .user-generated-codes strong {
  color: #f3f6fb;
}

body.site-night.page-user .user-generated-code-list code {
  background: #111827;
  border-color: #334155;
  color: #dbe7f5;
}

.search-feedback-panel {
  max-width: 760px;
  margin: 18px auto 28px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(215, 223, 234, 0.92);
  background:
    radial-gradient(circle at top right, rgba(220, 233, 223, 0.4), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.98));
  box-shadow: 0 20px 44px rgba(89, 102, 123, 0.08);
}

.search-feedback-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #1f2b38;
}

.search-feedback-head p {
  margin: 8px 0 0;
  color: #667587;
  line-height: 1.7;
}

.search-feedback-form {
  margin-top: 16px;
}

.search-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-feedback-form .form-row {
  margin-bottom: 14px;
}

.search-feedback-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #556272;
}

.search-feedback-form .input-wide {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d9e2ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.search-feedback-form textarea.input-wide {
  min-height: 108px;
  resize: vertical;
}

.search-feedback-form .input-wide:focus {
  outline: none;
  border-color: #6d8572;
  box-shadow: 0 0 0 3px rgba(109, 133, 114, 0.14);
}

.search-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-feedback-btn {
  min-height: 46px;
}

.search-feedback-tip {
  color: #667587;
  font-size: 0.9rem;
}

.search-feedback-history {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(218, 226, 236, 0.88);
}

.search-feedback-history h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #1f2b38;
}

.search-feedback-list {
  display: grid;
  gap: 12px;
}

.search-feedback-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(221, 229, 238, 0.95);
  background: rgba(255, 255, 255, 0.88);
}

.search-feedback-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-feedback-item p {
  margin: 10px 0 0;
  color: #667587;
  line-height: 1.75;
}

.search-feedback-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.search-feedback-badge--pending {
  background: #fff4d9;
  color: #9a6700;
}

.search-feedback-badge--processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.search-feedback-badge--done {
  background: #dcfce7;
  color: #166534;
}

.search-feedback-badge--rejected {
  background: #f3e8ff;
  color: #7c3aed;
}

.search-feedback-reply {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(241, 246, 252, 0.96);
  color: #415164;
  line-height: 1.75;
}

body.site-night.page-search .search-feedback-panel {
  border-color: #344154;
  background:
    radial-gradient(circle at top right, rgba(69, 94, 81, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(21, 29, 41, 0.98), rgba(15, 22, 34, 0.99));
  box-shadow: 0 22px 44px rgba(3, 8, 18, 0.32);
}

body.site-night.page-search .search-feedback-head h2,
body.site-night.page-search .search-feedback-history h3,
body.site-night.page-search .search-feedback-item strong {
  color: #f8fbff;
}

body.site-night.page-search .search-feedback-head p,
body.site-night.page-search .search-feedback-form label,
body.site-night.page-search .search-feedback-tip,
body.site-night.page-search .search-feedback-item p,
body.site-night.page-search .search-feedback-reply {
  color: #b8c4d6;
}

body.site-night.page-search .search-feedback-form .input-wide {
  border-color: #40506a;
  background: #0f1728;
  color: #f8fbff;
}

body.site-night.page-search .search-feedback-form .input-wide::placeholder {
  color: #92a0b5;
}

body.site-night.page-search .search-feedback-history {
  border-top-color: rgba(58, 72, 95, 0.92);
}

body.site-night.page-search .search-feedback-item {
  border-color: #344154;
  background: rgba(13, 19, 31, 0.86);
}

body.site-night.page-search .search-feedback-reply {
  background: rgba(20, 29, 42, 0.96);
}

@media (max-width: 720px) {
  .search-feedback-panel {
    margin: 16px 12px 24px;
    padding: 16px;
    border-radius: 22px;
  }

  .search-feedback-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

body.site-night.page-user .user-feature-card {
  background: linear-gradient(180deg, rgba(25, 34, 48, 0.96), rgba(20, 29, 42, 0.98));
  border-color: #344154;
}

body.site-night.page-user .user-feature-icon {
  background: linear-gradient(135deg, #64816f, #85694c);
  box-shadow: 0 10px 18px rgba(7, 12, 18, 0.3);
}

@media (max-width: 980px) {
  .page-user .user-panel-grid,
  .page-user .user-feature-grid {
    grid-template-columns: 1fr;
  }

  .page-user .user-generate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-user .user-center--panel {
    padding: calc(var(--ss-header-h) + 12px) 12px 28px;
    gap: 12px;
  }

  .page-user .user-hero-card,
  .page-user .user-panel-card {
    border-radius: 22px;
  }

  .page-user .user-hero-card {
    padding: 14px 12px 12px;
  }

  .page-user .user-hero-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-user .user-hero-main {
    display: block;
  }

  .page-user .user-hero-name {
    margin: 7px 0 3px;
    font-size: 1.75rem;
  }

  .page-user .user-hero-kicker {
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .page-user .user-hero-tags {
    gap: 8px;
    margin-top: 10px;
  }

  .page-user .user-hero-tag {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .page-user .user-hero-note {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .page-user .user-hero-access {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .page-user .user-access-item {
    padding: 10px 8px;
    border-radius: 15px;
    gap: 4px;
  }

  .page-user .user-access-item span {
    font-size: 0.74rem;
  }

  .page-user .user-access-item strong {
    font-size: 0.92rem;
  }

  .page-user .user-panel-card {
    padding: 18px;
  }

  .page-user .user-panel-head {
    margin-bottom: 16px;
  }

  .page-user .user-overview-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-user .user-overview-value {
    text-align: left;
  }

  .page-user .user-feature-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .page-user .user-hero-card {
    padding: 13px 11px 11px;
  }

  .page-user .user-hero-top {
    gap: 8px;
  }

  .page-user .user-hero-name {
    font-size: 1.58rem;
  }

  .page-user .user-hero-handle {
    font-size: 0.85rem;
  }

  .page-user .user-hero-access {
    gap: 8px;
  }

  .page-user .user-access-item {
    padding: 10px 8px;
  }
}

/* User card tools */
.page-user .user-quick-toggle,
.page-user .user-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(175, 188, 205, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #324255;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-user .user-quick-toggle:hover,
.page-user .user-copy-btn:hover {
  border-color: rgba(122, 147, 177, 0.95);
  background: #ffffff;
  transform: translateY(-1px);
}

.page-user .user-quick-toggle:disabled,
.page-user .user-copy-btn:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.page-user .user-card-manager {
  display: grid;
  gap: 18px;
}

.page-user .user-card-manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.page-user .user-panel-card--card-list {
  background:
    radial-gradient(circle at top right, rgba(214, 233, 226, 0.35), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98));
}

.page-user .user-generated-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-user .user-generated-code-list code {
  flex: 1 1 auto;
}

.page-user .user-card-list {
  display: grid;
  gap: 12px;
}

.page-user .user-card-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(218, 226, 236, 0.94);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 10px;
}

.page-user .user-card-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-user .user-card-item-top code {
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  word-break: break-all;
}

.page-user .user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-user .user-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.95);
  border: 1px solid rgba(219, 226, 236, 0.96);
  color: #536273;
  font-size: 0.76rem;
  font-weight: 800;
}

.page-user .user-card-chip.is-unused {
  background: rgba(233, 245, 236, 0.96);
  border-color: rgba(188, 220, 195, 0.96);
  color: #2f6a42;
}

.page-user .user-card-chip.is-used {
  background: rgba(248, 236, 218, 0.98);
  border-color: rgba(233, 205, 164, 0.98);
  color: #8a6331;
}

.page-user .user-card-submeta {
  display: grid;
  gap: 5px;
  color: #718092;
  font-size: 0.82rem;
  line-height: 1.6;
}

.page-user .user-card-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(196, 208, 222, 0.96);
  background: rgba(255, 255, 255, 0.66);
  color: #718092;
  line-height: 1.8;
}

body.site-night.page-user .user-panel-card--card-list {
  background:
    radial-gradient(circle at top right, rgba(66, 108, 90, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(19, 27, 40, 0.99), rgba(13, 20, 31, 1));
}

body.site-night.page-user .user-card-item,
body.site-night.page-user .user-card-empty {
  background: rgba(12, 19, 31, 0.82);
  border-color: rgba(76, 93, 118, 0.78);
}

body.site-night.page-user .user-copy-btn,
body.site-night.page-user .user-quick-toggle,
body.site-night.page-user .user-card-item-top code,
body.site-night.page-user .user-card-chip,
body.site-night.page-user .user-copy-btn,
body.site-night.page-user .user-quick-toggle {
  color: #f3f7fd;
}

body.site-night.page-user .user-card-submeta,
body.site-night.page-user .user-card-empty {
  color: #b8c6d8;
}

body.site-night.page-user .user-card-item-top code,
body.site-night.page-user .user-generated-code-list code {
  background: #111827;
  border-color: #334155;
  color: #dbe7f5;
}

body.site-night.page-user .user-card-chip {
  background: rgba(17, 24, 39, 0.9);
  border-color: #334155;
  color: #e5edf7;
}

body.site-night.page-user .user-card-chip.is-unused {
  background: rgba(31, 71, 48, 0.42);
  border-color: rgba(65, 120, 83, 0.55);
  color: #caefd2;
}

body.site-night.page-user .user-card-chip.is-used {
  background: rgba(92, 63, 28, 0.45);
  border-color: rgba(152, 111, 64, 0.54);
  color: #f1ddbf;
}

body.site-night.page-user .user-quick-toggle,
body.site-night.page-user .user-copy-btn {
  background: rgba(17, 24, 39, 0.92);
  border-color: #4a5b75;
}

@media (max-width: 980px) {
  .page-user .user-card-manager-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-user .user-generated-code-row,
  .page-user .user-card-item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .page-user .user-copy-btn,
  .page-user .user-quick-toggle {
    width: 100%;
  }
}

@media (max-width: 560px) {
}

/* Home redesign */
.page-home-redesign {
  background:
    radial-gradient(circle at 18% 10%, rgba(218, 233, 220, 0.36), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(246, 232, 209, 0.32), transparent 18%),
    linear-gradient(180deg, #fbfcfa 0%, #f7f8f3 100%);
}

.page-home-redesign .home-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--ss-header-h) + 22px) 28px 34px;
}

.page-home-redesign .home-nav-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  margin-bottom: 20px;
}

.page-home-redesign .home-nav-link {
  position: relative;
  color: #59656f;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
}

.page-home-redesign .home-nav-link.is-active,
.page-home-redesign .home-nav-link:hover {
  color: #2f6b53;
}

.page-home-redesign .home-nav-link.is-active::after,
.page-home-redesign .home-nav-link:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #3d7c60, #6f8f61);
}

.page-home-redesign .home-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 28px;
  align-items: center;
  padding: 42px 52px;
  border-radius: 38px;
  border: 1px solid rgba(220, 226, 216, 0.92);
  background:
    radial-gradient(circle at 20% 18%, rgba(222, 235, 225, 0.44), transparent 24%),
    radial-gradient(circle at 85% 30%, rgba(245, 235, 215, 0.42), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(252,251,247,0.98));
  box-shadow: 0 24px 58px rgba(108, 118, 108, 0.12);
}

.page-home-redesign .home-hero-copy {
  min-width: 0;
}

.page-home-redesign .home-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 224, 214, 0.94);
  background: rgba(255,255,255,0.84);
  color: #5e6f63;
  font-size: 0.98rem;
  font-weight: 700;
}

.page-home-redesign .home-hero-title {
  margin: 22px 0 14px;
  color: #366854;
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-home-redesign .home-hero-desc {
  max-width: 620px;
  margin: 0 0 28px;
  color: #65716e;
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-home-redesign .home-search--redesign {
  max-width: 610px;
}

.page-home-redesign .home-search-inner--hero {
  min-height: 64px;
  padding: 10px 12px 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(218, 225, 214, 0.96);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 30px rgba(112, 123, 111, 0.1);
}

.page-home-redesign .home-search-inner--hero input {
  font-size: 1.08rem;
}

.page-home-redesign .home-search-btn {
  min-width: 132px;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a8a6b, #5b8468 45%, #52785d 100%);
  box-shadow: 0 14px 28px rgba(72, 111, 80, 0.2);
}

.page-home-redesign .home-keyword-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.page-home-redesign .home-keyword-label {
  color: #6f7c76;
  font-weight: 700;
}

.page-home-redesign .home-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(218, 224, 216, 0.96);
  color: #5b6862;
  font-size: 0.92rem;
  text-decoration: none;
}

.page-home-redesign .home-keyword-chip:hover {
  color: #2f6b53;
  border-color: rgba(123, 160, 140, 0.92);
}

.page-home-redesign .home-hero-visual {
  position: relative;
  min-height: 430px;
}

.page-home-redesign .home-book-stack {
  position: absolute;
  left: 62px;
  bottom: 82px;
  width: 240px;
  height: 188px;
}

.page-home-redesign .home-book {
  position: absolute;
  left: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #c8d7bf, #97af90);
  box-shadow: 0 16px 28px rgba(82, 96, 78, 0.18);
}

.page-home-redesign .home-book--one {
  bottom: 0;
  width: 192px;
  height: 34px;
  background: linear-gradient(180deg, #e5e1cf, #c8c2ad);
}

.page-home-redesign .home-book--two {
  bottom: 34px;
  width: 182px;
  height: 35px;
  left: 8px;
}

.page-home-redesign .home-book--three {
  bottom: 70px;
  width: 172px;
  height: 35px;
  left: 18px;
  background: linear-gradient(180deg, #adc29c, #7f9677);
}

.page-home-redesign .home-book--tall {
  bottom: 0;
  left: 155px;
  width: 110px;
  height: 212px;
  background: linear-gradient(180deg, #97ac8c, #6d8672);
}

.page-home-redesign .home-book--two::after,
.page-home-redesign .home-book--three::after,
.page-home-redesign .home-book--tall::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 18px;
  width: 18px;
  height: calc(100% - 14px);
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
}

.page-home-redesign .home-magnifier {
  position: absolute;
  left: 210px;
  bottom: 88px;
  width: 168px;
  height: 168px;
}

.page-home-redesign .home-magnifier-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 12px solid #cda271;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.55), rgba(255,255,255,0.14));
  box-shadow: inset 0 0 0 6px rgba(95, 116, 101, 0.12);
}

.page-home-redesign .home-magnifier-handle {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 98px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f5d4a, #284638);
  transform: rotate(52deg);
  transform-origin: left center;
  box-shadow: 0 10px 18px rgba(40, 60, 49, 0.22);
}

.page-home-redesign .home-open-book {
  position: absolute;
  right: 34px;
  bottom: 54px;
  width: 205px;
  height: 122px;
}

.page-home-redesign .home-open-book-page {
  position: absolute;
  top: 0;
  width: 102px;
  height: 122px;
  background: linear-gradient(180deg, #fef9f0, #f5e7d4);
  box-shadow: 0 18px 26px rgba(167, 141, 104, 0.18);
}

.page-home-redesign .home-open-book-page--left {
  left: 0;
  border-radius: 12px 0 14px 20px;
  transform: skewY(8deg);
}

.page-home-redesign .home-open-book-page--right {
  right: 0;
  border-radius: 0 12px 20px 14px;
  transform: skewY(-8deg);
}

.page-home-redesign .home-open-book-page::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  bottom: 18px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    180deg,
    rgba(189, 160, 127, 0.28) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.6;
}

.page-home-redesign .home-leaf {
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(180deg, rgba(190, 214, 179, 0.78), rgba(127, 167, 123, 0.64));
  opacity: 0.64;
}

.page-home-redesign .home-leaf--one {
  left: 168px;
  top: 42px;
  width: 30px;
  height: 62px;
  transform: rotate(-18deg);
}

.page-home-redesign .home-leaf--two {
  left: 204px;
  top: 84px;
  width: 24px;
  height: 48px;
  transform: rotate(18deg);
}

.page-home-redesign .home-leaf--three {
  right: 70px;
  top: 58px;
  width: 34px;
  height: 72px;
  transform: rotate(14deg);
}

.page-home-redesign .home-leaf--four {
  right: 132px;
  top: 116px;
  width: 26px;
  height: 56px;
  transform: rotate(-22deg);
}

.page-home-redesign .home-reco-section {
  margin-top: 26px;
}

.page-home-redesign .home-reco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-home-redesign .home-reco-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home-redesign .home-reco-fire {
  font-size: 1.4rem;
}

.page-home-redesign .home-reco-title {
  margin: 0;
  color: #26333a;
  font-size: 1.9rem;
}

.page-home-redesign .home-reco-subtitle {
  color: #7a857f;
  font-size: 1rem;
}

.page-home-redesign .home-reco-refresh {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 223, 216, 0.94);
  background: rgba(255,255,255,0.92);
  color: #60706a;
  font-weight: 700;
  cursor: pointer;
}

.page-home-redesign .home-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-home-redesign .home-book-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(220, 226, 216, 0.94);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 36px rgba(104, 113, 105, 0.08);
  text-decoration: none;
}

.page-home-redesign .home-book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(92, 106, 96, 0.12);
}

.page-home-redesign .home-book-rank {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5c9658, #8bc350);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(91, 141, 74, 0.2);
}

.page-home-redesign .home-book-cover {
  width: 112px;
  height: 152px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f5ef, #e3e4dc);
  box-shadow: 0 14px 26px rgba(103, 112, 103, 0.16);
}

.page-home-redesign .home-book-cover-img,
.page-home-redesign .home-book-cover-fallback {
  width: 100%;
  height: 100%;
}

.page-home-redesign .home-book-cover-img {
  object-fit: cover;
}

.page-home-redesign .home-book-cover-fallback {
  display: grid;
  place-items: center;
  color: #53725f;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(180deg, #edf3eb, #d5ddd0);
}

.page-home-redesign .home-book-copy {
  min-width: 0;
}

.page-home-redesign .home-book-title {
  margin: 0 0 8px;
  color: #22323a;
  font-size: 1.5rem;
  line-height: 1.2;
}

.page-home-redesign .home-book-author {
  margin: 0 0 8px;
  color: #6c7a73;
  font-size: 1rem;
}

.page-home-redesign .home-book-meta {
  margin: 0 0 10px;
  color: #6d7b73;
  font-size: 0.96rem;
}

.page-home-redesign .home-book-summary {
  margin: 0;
  color: #66736d;
  font-size: 0.95rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home-redesign .home-book-hot {
  margin: 12px 0 0;
  color: #ff8b2c;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-home-redesign .home-capability-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 28px;
  border: 1px solid rgba(221, 226, 219, 0.94);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 16px 34px rgba(104, 113, 105, 0.08);
}

.page-home-redesign .home-capability-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-home-redesign .home-capability-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5fbf3, #f7efe0);
  box-shadow: inset 0 0 0 1px rgba(216, 223, 213, 0.86);
  font-size: 1.26rem;
}

.page-home-redesign .home-capability-item strong {
  display: block;
  margin-bottom: 4px;
  color: #2b3a35;
  font-size: 1rem;
}

.page-home-redesign .home-capability-item span:last-child {
  color: #7b857f;
  font-size: 0.92rem;
}

.page-home-redesign .min-footer {
  display: none;
}

body.site-night.page-home-redesign {
  background:
    radial-gradient(circle at 18% 10%, rgba(64, 92, 76, 0.26), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(104, 79, 51, 0.24), transparent 18%),
    linear-gradient(180deg, #111823 0%, #121a25 100%);
}

body.site-night.page-home-redesign .home-nav-link {
  color: #c1c9d6;
}

body.site-night.page-home-redesign .home-nav-link.is-active,
body.site-night.page-home-redesign .home-nav-link:hover {
  color: #dbeed7;
}

body.site-night.page-home-redesign .home-hero-card,
body.site-night.page-home-redesign .home-book-card,
body.site-night.page-home-redesign .home-capability-bar {
  border-color: #334155;
  background:
    linear-gradient(180deg, rgba(18, 25, 38, 0.96), rgba(14, 20, 30, 0.98));
  box-shadow: 0 22px 48px rgba(3, 8, 18, 0.34);
}

body.site-night.page-home-redesign .home-hero-pill,
body.site-night.page-home-redesign .home-keyword-chip,
body.site-night.page-home-redesign .home-reco-refresh {
  background: rgba(17, 24, 39, 0.92);
  border-color: #3b4b63;
  color: #d3dfeb;
}

body.site-night.page-home-redesign .home-hero-title {
  color: #e7f0e1;
}

body.site-night.page-home-redesign .home-hero-desc,
body.site-night.page-home-redesign .home-keyword-label,
body.site-night.page-home-redesign .home-reco-subtitle,
body.site-night.page-home-redesign .home-book-author,
body.site-night.page-home-redesign .home-book-meta,
body.site-night.page-home-redesign .home-book-summary,
body.site-night.page-home-redesign .home-capability-item span:last-child {
  color: #b7c4d2;
}

body.site-night.page-home-redesign .home-book-title,
body.site-night.page-home-redesign .home-reco-title,
body.site-night.page-home-redesign .home-capability-item strong {
  color: #f6fafc;
}

body.site-night.page-home-redesign .home-search-inner--hero {
  background: rgba(17, 24, 39, 0.95);
  border-color: #3b4b63;
  box-shadow: 0 16px 32px rgba(5, 10, 18, 0.34);
}

body.site-night.page-home-redesign .home-search-inner--hero input,
body.site-night.page-home-redesign .home-search-icon {
  color: #f6fafc;
}

body.site-night.page-home-redesign .home-search-inner--hero input::placeholder {
  color: #98a7ba;
}

body.site-night.page-home-redesign .home-book-cover {
  background: linear-gradient(180deg, #1f2937, #111827);
}

body.site-night.page-home-redesign .home-book-cover-fallback {
  background: linear-gradient(180deg, #1d2838, #14202d);
  color: #d6e6d7;
}

body.site-night.page-home-redesign .home-capability-icon {
  background: linear-gradient(135deg, #1f2b39, #2f2a22);
  box-shadow: inset 0 0 0 1px rgba(73, 86, 104, 0.68);
}

body.site-night.page-home-redesign .min-header {
  background: rgba(13, 18, 27, 0.94) !important;
  border-bottom-color: rgba(87, 104, 126, 0.55) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32) !important;
}

body.site-night.page-home-redesign .min-brand,
body.site-night.page-home-redesign .min-user-btn,
body.site-night.page-home-redesign .min-ui-btn {
  color: #f4f7fb !important;
}

body.site-night.page-home-redesign .min-ui-btn,
body.site-night.page-home-redesign .min-user-btn {
  background: rgba(23, 31, 45, 0.96) !important;
  border-color: rgba(92, 108, 132, 0.72) !important;
}

body.site-night.page-home-redesign .min-ui-btn-notice {
  color: #ffd977 !important;
  background: rgba(53, 41, 12, 0.92) !important;
  border-color: rgba(184, 143, 46, 0.48) !important;
}

body.site-night.page-home-redesign .min-ui-btn-card {
  color: #d8efe0 !important;
  background: rgba(22, 43, 34, 0.94) !important;
  border-color: rgba(84, 138, 113, 0.46) !important;
}

body.site-night.page-home-redesign .min-brand-icon {
  color: #e7f2ea !important;
  background: linear-gradient(135deg, rgba(60, 86, 71, 0.96), rgba(34, 57, 45, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(130, 161, 143, 0.28) !important;
}

body.site-night.page-home-redesign .min-user-avatar {
  background: linear-gradient(135deg, #314052, #243140) !important;
  color: #f8fbff !important;
}

body.site-night.page-home-redesign .min-arrow,
body.site-night.page-home-redesign #userBtnText,
body.site-night.page-home-redesign .min-ui-btn-night #siteNightIcon {
  color: #f4f7fb !important;
}

@media (max-width: 1100px) {
  .page-home-redesign .home-shell {
    padding-inline: 18px;
  }

  .page-home-redesign .home-hero-card {
    grid-template-columns: 1fr;
    padding: 30px 28px;
  }

  .page-home-redesign .home-hero-visual {
    min-height: 320px;
  }

  .page-home-redesign .home-book-grid,
  .page-home-redesign .home-capability-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-home-redesign .home-nav-band {
    gap: 22px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .page-home-redesign .home-hero-card {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .page-home-redesign .home-hero-title {
    font-size: 3.1rem;
  }

  .page-home-redesign .home-search-inner--hero {
    min-height: 58px;
    padding: 8px 8px 8px 18px;
  }

  .page-home-redesign .home-search-btn {
    min-width: 104px;
  }

  .page-home-redesign .home-book-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .page-home-redesign .home-book-cover {
    width: 96px;
    height: 132px;
  }
}

@media (max-width: 560px) {
  .page-home-redesign .home-shell {
    padding: calc(var(--ss-header-h) + 14px) 12px 24px;
  }

  .page-home-redesign .home-hero-pill {
    font-size: 0.84rem;
  }

  .page-home-redesign .home-hero-title {
    font-size: 2.6rem;
  }

  .page-home-redesign .home-hero-desc {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .page-home-redesign .home-search-inner--hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 24px;
    padding: 14px;
  }

  .page-home-redesign .home-search-icon {
    display: none;
  }

  .page-home-redesign .home-search-btn {
    width: 100%;
  }

  .page-home-redesign .home-book-card {
    grid-template-columns: 1fr;
  }

  .page-home-redesign .home-book-cover {
    width: 100%;
    max-width: 180px;
    height: 220px;
  }

  .page-home-redesign .home-hero-visual {
    min-height: 240px;
  }

  .page-home-redesign .home-book-stack {
    left: 18px;
    bottom: 38px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }

  .page-home-redesign .home-magnifier {
    left: 124px;
    bottom: 38px;
    transform: scale(0.7);
    transform-origin: left bottom;
  }

  .page-home-redesign .home-open-book {
    right: 8px;
    bottom: 22px;
    transform: scale(0.72);
    transform-origin: right bottom;
  }
}

@media (max-width: 600px) {
  .page-home-redesign .min-header {
    padding: 0 10px;
  }

  .page-home-redesign .min-brand {
    gap: 8px;
    max-width: 124px;
  }

  .page-home-redesign .min-brand-icon {
    font-size: 20px;
  }

  .page-home-redesign .min-brand-text {
    font-size: 14px;
    line-height: 1.1;
    word-break: break-all;
  }

  .page-home-redesign .min-header-actions {
    gap: 4px;
  }

  .page-home-redesign .min-ui-btn {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 16px;
    font-size: 12px;
  }

  .page-home-redesign .min-ui-btn-night,
  .page-home-redesign .min-ui-btn-card {
    min-width: 34px;
  }

  .page-home-redesign .min-user-btn {
    min-height: 34px;
    max-width: 104px;
    padding: 4px 8px 4px 6px;
    gap: 6px;
  }

  .page-home-redesign .min-user-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .page-home-redesign #userBtnText {
    max-width: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-home-redesign .home-shell {
    padding-top: calc(var(--ss-header-h) + 10px);
  }

  .page-home-redesign .home-nav-band {
    gap: 16px;
    margin-bottom: 14px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .page-home-redesign .home-nav-link {
    font-size: 0.92rem;
    padding: 8px 0;
    white-space: nowrap;
  }

  .page-home-redesign .home-hero-card {
    gap: 18px;
    padding: 18px 14px;
    border-radius: 24px;
  }

  .page-home-redesign .home-hero-pill {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .page-home-redesign .home-hero-title {
    margin: 14px 0 10px;
    font-size: 2.2rem;
  }

  .page-home-redesign .home-hero-desc {
    margin-bottom: 16px;
    font-size: 0.92rem;
  }

  .page-home-redesign .home-search-inner--hero input {
    font-size: 0.96rem;
  }

  .page-home-redesign .home-keyword-row {
    gap: 8px;
    margin-top: 16px;
  }

  .page-home-redesign .home-keyword-label {
    width: 100%;
    font-size: 0.86rem;
  }

  .page-home-redesign .home-keyword-chip {
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .page-home-redesign .home-hero-visual {
    min-height: 190px;
  }

  .page-home-redesign .home-book-stack {
    left: 4px;
    bottom: 16px;
    transform: scale(0.6);
  }

  .page-home-redesign .home-magnifier {
    left: 82px;
    bottom: 18px;
    transform: scale(0.54);
    transform-origin: left bottom;
  }

  .page-home-redesign .home-open-book {
    right: -12px;
    bottom: 8px;
    transform: scale(0.56);
  }

  .page-home-redesign .home-leaf {
    opacity: 0.46;
  }

  .page-home-redesign .home-reco-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .page-home-redesign .home-reco-title {
    font-size: 1.42rem;
  }

  .page-home-redesign .home-reco-subtitle {
    font-size: 0.88rem;
  }

  .page-home-redesign .home-reco-refresh {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .page-home-redesign .home-book-grid {
    gap: 12px;
  }

  .page-home-redesign .home-book-card {
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .page-home-redesign .home-book-rank {
    left: 10px;
    top: 10px;
    min-width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .page-home-redesign .home-book-cover {
    max-width: 136px;
    height: 180px;
    border-radius: 16px;
  }

  .page-home-redesign .home-book-title {
    font-size: 1.2rem;
  }

  .page-home-redesign .home-book-author,
  .page-home-redesign .home-book-meta,
  .page-home-redesign .home-book-summary,
  .page-home-redesign .home-book-hot {
    font-size: 0.84rem;
  }

  .page-home-redesign .home-book-summary {
    -webkit-line-clamp: 2;
    line-height: 1.65;
  }

  .page-home-redesign .home-capability-bar {
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 22px;
  }

  .page-home-redesign .home-capability-item {
    gap: 10px;
    align-items: flex-start;
  }

  .page-home-redesign .home-capability-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.08rem;
  }

  .page-home-redesign .home-capability-item strong {
    font-size: 0.94rem;
  }

  .page-home-redesign .home-capability-item span:last-child {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .page-home-redesign .home-shell {
    padding: calc(var(--ss-header-h) + 8px) 10px 18px;
  }

  .page-home-redesign .home-nav-band {
    gap: 14px;
    margin-bottom: 10px;
  }

  .page-home-redesign .home-nav-link {
    font-size: 0.84rem;
    padding: 6px 0;
  }

  .page-home-redesign .home-hero-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 22px;
  }

  .page-home-redesign .home-hero-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .page-home-redesign .home-hero-title {
    margin: 10px 0 8px;
    font-size: 1.92rem;
    line-height: 1.05;
  }

  .page-home-redesign .home-hero-desc {
    margin-bottom: 10px;
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .page-home-redesign .home-search-inner--hero {
    min-height: 0;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .page-home-redesign .home-search-inner--hero input {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .page-home-redesign .home-search-btn {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .page-home-redesign .home-keyword-row {
    margin-top: 10px;
    gap: 6px;
  }

  .page-home-redesign .home-keyword-label {
    width: 100%;
    font-size: 0.78rem;
  }

  .page-home-redesign .home-keyword-chip {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .page-home-redesign .home-hero-visual {
    display: none;
  }

  .page-home-redesign .home-reco-section {
    margin-top: 16px;
  }

  .page-home-redesign .home-reco-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .page-home-redesign .home-reco-title {
    font-size: 1.08rem;
  }

  .page-home-redesign .home-reco-subtitle {
    font-size: 0.76rem;
  }

  .page-home-redesign .home-reco-refresh {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .page-home-redesign .home-book-grid {
    gap: 10px;
  }

  .page-home-redesign .home-book-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .page-home-redesign .home-book-rank {
    left: 8px;
    top: 8px;
    min-width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 0.74rem;
  }

  .page-home-redesign .home-book-cover {
    width: 72px;
    height: 96px;
    border-radius: 10px;
  }

  .page-home-redesign .home-book-title {
    margin-bottom: 4px;
    font-size: 0.94rem;
  }

  .page-home-redesign .home-book-author {
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  .page-home-redesign .home-book-meta {
    margin-bottom: 4px;
    font-size: 0.7rem;
  }

  .page-home-redesign .home-book-summary {
    font-size: 0.72rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .page-home-redesign .home-book-hot {
    margin-top: 6px;
    font-size: 0.7rem;
  }

  .page-home-redesign .home-capability-bar {
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 16px;
  }

  .page-home-redesign .home-capability-item {
    gap: 8px;
  }

  .page-home-redesign .home-capability-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .page-home-redesign .home-capability-item strong {
    margin-bottom: 2px;
    font-size: 0.8rem;
  }

  .page-home-redesign .home-capability-item span:last-child {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .page-home-redesign .min-brand {
    max-width: 92px;
  }

  .page-home-redesign .min-brand-text {
    font-size: 12px;
  }

  .page-home-redesign .min-ui-btn {
    padding: 5px 7px;
    font-size: 10px;
  }

  .page-home-redesign .min-user-btn {
    max-width: 80px;
  }

  .page-home-redesign #userBtnText {
    max-width: 28px;
  }

  .page-home-redesign .home-book-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 10px;
  }

  .page-home-redesign .home-book-cover {
    width: 64px;
    height: 86px;
  }
}

/* Home mobile compact override */
.page-home-redesign .home-book-cover {
  display: none !important;
}

.page-home-redesign .home-book-card {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

@media (max-width: 600px) {
  .page-home-redesign .home-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .page-home-redesign .home-book-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    min-height: 0 !important;
  }

  .page-home-redesign .home-book-title {
    margin-bottom: 4px !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .page-home-redesign .home-book-author {
    margin-bottom: 3px !important;
    font-size: 0.72rem !important;
  }

  .page-home-redesign .home-book-meta {
    margin-bottom: 5px !important;
    font-size: 0.7rem !important;
  }

  .page-home-redesign .home-book-summary {
    font-size: 0.72rem !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 2 !important;
  }

  .page-home-redesign .home-book-hot {
    margin-top: 6px !important;
    font-size: 0.7rem !important;
  }
}

@media (max-width: 600px) {
  .page-home-redesign .home-hero-card {
    padding: 14px 12px !important;
    border-radius: 20px !important;
  }

  .page-home-redesign .home-hero-title {
    font-size: 1.84rem !important;
    margin: 8px 0 6px !important;
  }

  .page-home-redesign .home-hero-desc {
    margin-bottom: 8px !important;
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }

  .page-home-redesign .home-search-inner--hero {
    padding: 10px !important;
    border-radius: 16px !important;
    gap: 6px !important;
  }

  .page-home-redesign .home-search-inner--hero input {
    min-height: 38px !important;
    font-size: 0.88rem !important;
  }

  .page-home-redesign .home-search-btn {
    min-height: 38px !important;
    font-size: 0.88rem !important;
  }

  .page-home-redesign .home-keyword-row {
    margin-top: 8px !important;
    gap: 6px !important;
  }

  .page-home-redesign .home-keyword-label {
    font-size: 0.76rem !important;
  }

  .page-home-redesign .home-keyword-chip {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
  }

  .page-home-redesign .home-hero-visual {
    display: none !important;
  }
}

/* Home card compact text-only override */
.page-home-redesign .home-book-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-home-redesign .home-book-author,
.page-home-redesign .home-book-summary,
.page-home-redesign .home-book-hot {
  display: none !important;
}

.page-home-redesign .home-book-rank {
  display: none !important;
}

.page-home-redesign .home-book-meta {
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .page-home-redesign .home-capability-bar {
    display: none !important;
  }

  .page-home-redesign .home-book-card {
    padding: 12px 10px 10px !important;
  }

  .page-home-redesign .home-book-title {
    margin-bottom: 3px !important;
    font-size: 0.9rem !important;
  }

  .page-home-redesign .home-book-meta {
    font-size: 0.68rem !important;
  }

  .page-home-redesign .home-capability-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .page-home-redesign .home-capability-item {
    flex-direction: row !important;
    align-items: flex-start !important;
    min-width: 0 !important;
  }
}

/* Home mobile header final polish */
@media (max-width: 600px) {
  .page-home-redesign .min-header {
    padding: 0 12px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 28px rgba(125, 150, 131, 0.08) !important;
  }

  .page-home-redesign .min-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 7px !important;
  }

  .page-home-redesign .min-brand-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    background: linear-gradient(135deg, #f1f6ef, #e3efe5) !important;
    color: #4f6657 !important;
    box-shadow: inset 0 0 0 1px rgba(151, 172, 154, 0.18) !important;
  }

  .page-home-redesign .min-brand-text {
    min-width: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .page-home-redesign .min-header-actions {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  .page-home-redesign .min-ui-btn,
  .page-home-redesign .min-user-btn {
    min-height: 32px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  .page-home-redesign .min-ui-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
  }

  .page-home-redesign .min-ui-btn-notice {
    padding: 0 9px !important;
  }

  .page-home-redesign .min-ui-btn-night,
  .page-home-redesign .min-ui-btn-card {
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }

  .page-home-redesign .min-ui-btn-night #siteNightText {
    display: none !important;
  }

  .page-home-redesign .min-ui-btn-night #siteNightIcon {
    font-size: 14px !important;
  }

  .page-home-redesign .min-user-btn {
    max-width: 94px !important;
    padding: 4px 7px 4px 5px !important;
    gap: 5px !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .page-home-redesign .min-user-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }

  .page-home-redesign #userBtnText {
    max-width: 42px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
  }

  .page-home-redesign .min-arrow {
    font-size: 8px !important;
  }
}

@media (max-width: 420px) {
  .page-home-redesign .min-header {
    padding: 0 10px !important;
  }

  .page-home-redesign .min-brand {
    gap: 6px !important;
  }

  .page-home-redesign .min-brand-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  .page-home-redesign .min-brand-text {
    font-size: 12px !important;
  }

  .page-home-redesign .min-header-actions {
    gap: 5px !important;
  }

  .page-home-redesign .min-ui-btn {
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .page-home-redesign .min-ui-btn-notice {
    min-width: 0 !important;
  }

  .page-home-redesign .min-user-btn {
    max-width: 86px !important;
    padding-right: 6px !important;
  }

  .page-home-redesign #userBtnText {
    max-width: 34px !important;
  }
}

@media (max-width: 360px) {
  .page-home-redesign .min-brand-text {
    max-width: 64px !important;
  }

  .page-home-redesign .min-ui-btn-notice {
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 0 !important;
    position: relative !important;
  }

  .page-home-redesign .min-ui-btn-notice::before {
    content: "公告";
    font-size: 10px;
  }
}

/* Home UI refinement */
.page-home-redesign {
  background:
    linear-gradient(180deg, #f7faf4 0%, #f2f6ed 42%, #fbfcf7 100%) !important;
}

.page-home-redesign .home-shell {
  max-width: 1060px !important;
}

.page-home-redesign .home-hero-card {
  position: relative !important;
  overflow: hidden !important;
  border-color: rgba(156, 176, 151, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 242, 0.92)) !important;
  box-shadow: 0 24px 60px rgba(84, 109, 78, 0.11) !important;
}

.page-home-redesign .home-hero-pill {
  border-color: rgba(113, 141, 102, 0.28) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #506956 !important;
  box-shadow: 0 8px 22px rgba(91, 116, 84, 0.08) !important;
  letter-spacing: 0 !important;
}

.page-home-redesign .home-hero-title {
  color: #2f6a50 !important;
  letter-spacing: 0 !important;
}

.page-home-redesign .home-hero-desc {
  color: #64746a !important;
}

.page-home-redesign .home-search-inner--hero {
  border-color: rgba(142, 165, 137, 0.28) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 16px 36px rgba(72, 99, 71, 0.09) !important;
}

.page-home-redesign .home-search-btn {
  background: #638a6b !important;
  box-shadow: 0 10px 24px rgba(73, 119, 82, 0.18) !important;
}

.page-home-redesign .home-search-btn:hover {
  background: #557b5d !important;
}

.page-home-redesign .home-reco-head {
  padding: 0 4px !important;
}

.page-home-redesign .home-reco-fire {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: rgba(255, 247, 237, 0.95) !important;
  border: 1px solid rgba(244, 180, 108, 0.38) !important;
  font-size: 17px !important;
}

.page-home-redesign .home-reco-refresh {
  border-color: rgba(139, 162, 132, 0.36) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #557060 !important;
}

.page-home-redesign .home-book-card {
  border-color: rgba(160, 176, 154, 0.28) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 30px rgba(72, 92, 68, 0.07) !important;
}

.page-home-redesign .home-book-card:hover {
  border-color: rgba(98, 134, 102, 0.4) !important;
  box-shadow: 0 18px 38px rgba(73, 105, 75, 0.12) !important;
}

.page-home-redesign .home-book-title {
  color: #23362e !important;
  letter-spacing: 0 !important;
}

.page-home-redesign .home-book-meta {
  color: #829088 !important;
}

@media (max-width: 600px) {
  .page-home-redesign {
    background:
      linear-gradient(180deg, #f6faf2 0%, #f1f6ec 48%, #fbfcf7 100%) !important;
  }

  .page-home-redesign .home-shell {
    padding: calc(var(--ss-header-h) + 10px) 10px 18px !important;
  }

  .page-home-redesign .home-hero-card {
    padding: 16px 12px 14px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 42px rgba(78, 99, 72, 0.09) !important;
  }

  .page-home-redesign .home-hero-pill {
    min-height: 25px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: 0.72rem !important;
  }

  .page-home-redesign .home-hero-title {
    margin: 9px 0 5px !important;
    font-size: 1.66rem !important;
    line-height: 1.08 !important;
  }

  .page-home-redesign .home-hero-desc {
    margin-bottom: 11px !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  .page-home-redesign .home-search-inner--hero {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 15px !important;
  }

  .page-home-redesign .home-search-icon {
    display: none !important;
  }

  .page-home-redesign .home-search-inner--hero input {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 9px !important;
    font-size: 0.84rem !important;
  }

  .page-home-redesign .home-search-btn {
    flex: 0 0 84px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: 0.82rem !important;
  }

  .page-home-redesign .home-keyword-row {
    margin-top: 8px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }

  .page-home-redesign .home-keyword-row::-webkit-scrollbar {
    display: none !important;
  }

  .page-home-redesign .home-keyword-chip {
    flex: 0 0 auto !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
    font-size: 0.7rem !important;
  }

  .page-home-redesign .home-reco-section {
    margin-top: 18px !important;
  }

  .page-home-redesign .home-reco-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding: 0 2px !important;
  }

  .page-home-redesign .home-reco-title-line {
    gap: 8px !important;
  }

  .page-home-redesign .home-reco-fire {
    width: 27px !important;
    height: 27px !important;
    font-size: 15px !important;
  }

  .page-home-redesign .home-reco-title {
    font-size: 1.02rem !important;
    line-height: 1.2 !important;
  }

  .page-home-redesign .home-reco-subtitle {
    max-width: 118px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
  }

  .page-home-redesign .home-reco-refresh {
    flex: 0 0 auto !important;
    min-height: 30px !important;
    padding: 0 11px !important;
    border-radius: 15px !important;
    font-size: 0.74rem !important;
  }

  .page-home-redesign .home-book-grid {
    gap: 10px !important;
  }

  .page-home-redesign .home-book-card {
    min-height: 72px !important;
    padding: 11px 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(68, 89, 63, 0.06) !important;
  }

  .page-home-redesign .home-book-title {
    margin-bottom: 5px !important;
    font-size: 0.84rem !important;
    line-height: 1.32 !important;
  }

  .page-home-redesign .home-book-meta {
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 380px) {
  .page-home-redesign .home-hero-card {
    padding: 14px 11px 12px !important;
  }

  .page-home-redesign .home-hero-title {
    font-size: 1.52rem !important;
  }

  .page-home-redesign .home-hero-desc {
    font-size: 0.78rem !important;
  }

  .page-home-redesign .home-search-btn {
    flex-basis: 74px !important;
    padding: 0 8px !important;
  }

  .page-home-redesign .home-reco-subtitle {
    display: none !important;
  }
}

body.site-night.page-home-redesign .home-hero-card,
body.site-night.page-home-redesign .home-book-card {
  border-color: rgba(91, 111, 96, 0.46) !important;
  background: linear-gradient(180deg, rgba(19, 27, 24, 0.96), rgba(14, 21, 19, 0.98)) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}

body.site-night.page-home-redesign .home-hero-title,
body.site-night.page-home-redesign .home-book-title {
  color: #eef8ee !important;
}

body.site-night.page-home-redesign .home-hero-desc,
body.site-night.page-home-redesign .home-book-meta,
body.site-night.page-home-redesign .home-reco-subtitle {
  color: #adbdaf !important;
}

body.site-night.page-home-redesign .home-search-inner--hero {
  background: rgba(15, 23, 20, 0.95) !important;
  border-color: rgba(95, 118, 101, 0.56) !important;
}

/* Home night mode refinement */
body.site-night.page-home-redesign {
  background:
    linear-gradient(180deg, #121812 0%, #182016 44%, #111713 100%) !important;
  color: #edf5ea !important;
}

body.site-night.page-home-redesign .home-shell {
  background: transparent !important;
}

body.site-night.page-home-redesign .home-hero-card {
  border-color: rgba(126, 153, 125, 0.38) !important;
  background:
    linear-gradient(145deg, rgba(29, 42, 31, 0.97), rgba(16, 25, 20, 0.98)) !important;
  box-shadow: 0 18px 44px rgba(3, 8, 6, 0.34) !important;
}

body.site-night.page-home-redesign .home-hero-pill {
  background: rgba(226, 241, 215, 0.88) !important;
  border-color: rgba(232, 245, 225, 0.38) !important;
  color: #33533d !important;
  box-shadow: none !important;
}

body.site-night.page-home-redesign .home-hero-title {
  color: #f4fff3 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18) !important;
}

body.site-night.page-home-redesign .home-hero-desc {
  color: #d8e5d6 !important;
}

body.site-night.page-home-redesign .home-search-inner--hero {
  background: rgba(12, 20, 16, 0.96) !important;
  border-color: rgba(191, 213, 190, 0.74) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

body.site-night.page-home-redesign .home-search-inner--hero input {
  color: #f3faf0 !important;
}

body.site-night.page-home-redesign .home-search-inner--hero input::placeholder {
  color: #aebfad !important;
}

body.site-night.page-home-redesign .home-search-btn {
  background: #6f9b76 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(49, 94, 56, 0.26) !important;
}

body.site-night.page-home-redesign .home-reco-head {
  color: #edf5ea !important;
}

body.site-night.page-home-redesign .home-reco-fire {
  background: rgba(255, 245, 232, 0.96) !important;
  border-color: rgba(255, 198, 122, 0.55) !important;
  color: #ff7a1a !important;
}

body.site-night.page-home-redesign .home-reco-title {
  color: #f5fbf1 !important;
}

body.site-night.page-home-redesign .home-reco-subtitle {
  color: #c8d8c7 !important;
}

body.site-night.page-home-redesign .home-reco-refresh {
  background: rgba(245, 250, 242, 0.92) !important;
  border-color: rgba(222, 235, 216, 0.48) !important;
  color: #405946 !important;
  box-shadow: 0 8px 20px rgba(2, 8, 5, 0.16) !important;
}

body.site-night.page-home-redesign .home-book-card {
  border-color: rgba(102, 131, 105, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(25, 38, 30, 0.96), rgba(13, 23, 18, 0.98)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body.site-night.page-home-redesign .home-book-card:hover {
  border-color: rgba(149, 183, 148, 0.52) !important;
  background:
    linear-gradient(180deg, rgba(31, 47, 36, 0.98), rgba(17, 29, 22, 0.99)) !important;
}

body.site-night.page-home-redesign .home-book-title {
  color: #f6fbf4 !important;
}

body.site-night.page-home-redesign .home-book-meta {
  color: #b9cbb8 !important;
}

@media (max-width: 600px) {
  body.site-night.page-home-redesign .home-hero-card {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
  }

  body.site-night.page-home-redesign .home-book-card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
  }
}

/* Announcement modal night polish */
body.site-night #announcementModal {
  background: rgba(3, 8, 6, 0.62) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.site-night #announcementModal .vip-modal-content {
  border: 1px solid rgba(132, 162, 133, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(29, 39, 32, 0.98), rgba(18, 27, 23, 0.98)) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46) !important;
}

body.site-night #announcementModal h3 {
  color: #f6fbf4 !important;
}

body.site-night #announcementContent,
body.site-night #announcementContent p {
  color: #d9e6d7 !important;
}

body.site-night #announcementModal .btn-secondary {
  border: 1px solid rgba(202, 221, 201, 0.42) !important;
  background: rgba(238, 246, 236, 0.96) !important;
  color: #395544 !important;
  font-weight: 700 !important;
}

body.site-night #announcementModal .btn-secondary:hover {
  background: #ffffff !important;
  color: #263d30 !important;
}

/* Home night mode neutral palette */
body.site-night.page-home-redesign {
  background:
    linear-gradient(180deg, #111318 0%, #16181d 46%, #101216 100%) !important;
  color: #f2f4f7 !important;
}

body.site-night.page-home-redesign .min-header {
  background: rgba(15, 17, 22, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

body.site-night.page-home-redesign .min-brand-icon {
  color: #f4f1e7 !important;
  background: linear-gradient(135deg, rgba(48, 51, 58, 0.96), rgba(30, 32, 37, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.site-night.page-home-redesign .min-ui-btn,
body.site-night.page-home-redesign .min-user-btn {
  background: rgba(27, 30, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #edf0f4 !important;
}

body.site-night.page-home-redesign .min-ui-btn-notice {
  background: rgba(54, 42, 20, 0.96) !important;
  border-color: rgba(226, 174, 76, 0.44) !important;
  color: #ffd47a !important;
}

body.site-night.page-home-redesign .min-ui-btn-card {
  background: rgba(32, 34, 39, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #edf0f4 !important;
}

body.site-night.page-home-redesign .home-hero-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background:
    linear-gradient(145deg, rgba(28, 31, 37, 0.98), rgba(17, 19, 24, 0.99)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38) !important;
}

body.site-night.page-home-redesign .home-hero-pill {
  background: rgba(244, 238, 225, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #514638 !important;
}

body.site-night.page-home-redesign .home-hero-title,
body.site-night.page-home-redesign .home-reco-title,
body.site-night.page-home-redesign .home-book-title {
  color: #f6f7f9 !important;
}

body.site-night.page-home-redesign .home-hero-desc,
body.site-night.page-home-redesign .home-reco-subtitle,
body.site-night.page-home-redesign .home-book-meta {
  color: #b8bec8 !important;
}

body.site-night.page-home-redesign .home-search-inner--hero {
  background: rgba(16, 18, 23, 0.96) !important;
  border-color: rgba(226, 231, 239, 0.52) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

body.site-night.page-home-redesign .home-search-inner--hero input {
  color: #f4f6f8 !important;
}

body.site-night.page-home-redesign .home-search-inner--hero input::placeholder {
  color: #8f96a3 !important;
}

body.site-night.page-home-redesign .home-search-btn {
  background: #747b86 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22) !important;
}

body.site-night.page-home-redesign .home-search-btn:hover {
  background: #858c96 !important;
}

body.site-night.page-home-redesign .home-reco-fire {
  background: rgba(255, 244, 227, 0.95) !important;
  border-color: rgba(241, 183, 91, 0.52) !important;
  color: #f08322 !important;
}

body.site-night.page-home-redesign .home-reco-refresh {
  background: rgba(238, 241, 245, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #3e444c !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

body.site-night.page-home-redesign .home-book-card {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(25, 28, 34, 0.98), rgba(16, 18, 23, 0.99)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

body.site-night.page-home-redesign .home-book-card:hover {
  border-color: rgba(235, 199, 126, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(31, 34, 40, 0.99), rgba(19, 21, 26, 0.99)) !important;
}

body.site-night #announcementModal .vip-modal-content {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(31, 34, 40, 0.98), rgba(20, 22, 27, 0.98)) !important;
}

body.site-night #announcementContent,
body.site-night #announcementContent p {
  color: #d7dbe2 !important;
}

body.site-night #announcementModal .btn-secondary {
  background: rgba(239, 241, 245, 0.96) !important;
  color: #3f444c !important;
}

/* Novel header aligned with home */
.page-novel .min-header {
  padding: 0 12px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(219, 225, 214, 0.8) !important;
  box-shadow: 0 10px 28px rgba(125, 150, 131, 0.08) !important;
}

.page-novel .min-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 7px !important;
}

.page-novel .min-brand-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #f1f6ef, #e3efe5) !important;
  color: #4f6657 !important;
  box-shadow: inset 0 0 0 1px rgba(151, 172, 154, 0.18) !important;
}

.page-novel .min-brand-text {
  min-width: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-novel .min-header-actions {
  flex: 0 0 auto !important;
  gap: 6px !important;
}

.page-novel .min-ui-btn,
.page-novel .min-user-btn {
  min-height: 32px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.page-novel .min-ui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(214, 222, 211, 0.9) !important;
  color: #557060 !important;
}

.page-novel .min-ui-btn-notice {
  padding: 0 9px !important;
  border-color: rgba(227, 181, 92, 0.44) !important;
  background: rgba(255, 249, 237, 0.96) !important;
  color: #9a651f !important;
}

.page-novel .min-ui-btn-night,
.page-novel .min-ui-btn-card {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.page-novel .min-ui-btn-night #siteNightText {
  display: none !important;
}

.page-novel .min-ui-btn-night #siteNightIcon {
  font-size: 14px !important;
}

.page-novel .min-user-btn {
  max-width: 94px !important;
  padding: 4px 7px 4px 5px !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.page-novel .min-user-avatar {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.page-novel #userBtnText {
  max-width: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.page-novel .min-arrow {
  font-size: 8px !important;
}

body.site-night.page-novel .min-header {
  background: rgba(15, 17, 22, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

body.site-night.page-novel .min-brand,
body.site-night.page-novel .min-ui-btn,
body.site-night.page-novel .min-user-btn {
  color: #edf0f4 !important;
}

body.site-night.page-novel .min-brand-icon {
  color: #f4f1e7 !important;
  background: linear-gradient(135deg, rgba(48, 51, 58, 0.96), rgba(30, 32, 37, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.site-night.page-novel .min-ui-btn,
body.site-night.page-novel .min-user-btn {
  background: rgba(27, 30, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-night.page-novel .min-ui-btn-notice {
  background: rgba(54, 42, 20, 0.96) !important;
  border-color: rgba(226, 174, 76, 0.44) !important;
  color: #ffd47a !important;
}

body.site-night.page-novel .min-arrow,
body.site-night.page-novel #userBtnText,
body.site-night.page-novel .min-ui-btn-night #siteNightIcon {
  color: #edf0f4 !important;
}

@media (max-width: 420px) {
  .page-novel .min-header {
    padding: 0 10px !important;
  }

  .page-novel .min-header-actions {
    gap: 5px !important;
  }

  .page-novel .min-ui-btn {
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .page-novel .min-user-btn {
    max-width: 86px !important;
    padding-right: 6px !important;
  }

  .page-novel #userBtnText {
    max-width: 34px !important;
  }
}

/* Reader header aligned with home */
.reader-page .min-header {
  z-index: 1200 !important;
  padding: 0 12px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(219, 225, 214, 0.8) !important;
  box-shadow: 0 10px 28px rgba(125, 150, 131, 0.08) !important;
}

.reader-page .min-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 7px !important;
}

.reader-page .min-brand-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #f1f6ef, #e3efe5) !important;
  color: #4f6657 !important;
  box-shadow: inset 0 0 0 1px rgba(151, 172, 154, 0.18) !important;
}

.reader-page .min-brand-text {
  min-width: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.reader-page .min-header-actions {
  flex: 0 0 auto !important;
  gap: 6px !important;
}

.reader-page .min-ui-btn,
.reader-page .min-user-btn {
  min-height: 32px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.reader-page .min-ui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(214, 222, 211, 0.9) !important;
  color: #557060 !important;
}

.reader-page .min-ui-btn-notice {
  padding: 0 9px !important;
  border-color: rgba(227, 181, 92, 0.44) !important;
  background: rgba(255, 249, 237, 0.96) !important;
  color: #9a651f !important;
}

.reader-page .min-ui-btn-night,
.reader-page .min-ui-btn-card {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.reader-page .min-ui-btn-night #siteNightText {
  display: none !important;
}

.reader-page .min-ui-btn-night #siteNightIcon {
  font-size: 14px !important;
}

.reader-page .min-user-btn {
  max-width: 94px !important;
  padding: 4px 7px 4px 5px !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.reader-page .min-user-avatar {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.reader-page #userBtnText {
  max-width: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.reader-page .min-arrow {
  font-size: 8px !important;
}

.reader-page.reader-night .min-header {
  background: rgba(15, 17, 22, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

.reader-page.reader-night .min-brand,
.reader-page.reader-night .min-ui-btn,
.reader-page.reader-night .min-user-btn {
  color: #edf0f4 !important;
}

.reader-page.reader-night .min-brand-icon {
  color: #f4f1e7 !important;
  background: linear-gradient(135deg, rgba(48, 51, 58, 0.96), rgba(30, 32, 37, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.reader-page.reader-night .min-ui-btn,
.reader-page.reader-night .min-user-btn {
  background: rgba(27, 30, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.reader-page.reader-night .min-ui-btn-notice {
  background: rgba(54, 42, 20, 0.96) !important;
  border-color: rgba(226, 174, 76, 0.44) !important;
  color: #ffd47a !important;
}

.reader-page.reader-night .min-arrow,
.reader-page.reader-night #userBtnText,
.reader-page.reader-night .min-ui-btn-night #siteNightIcon {
  color: #edf0f4 !important;
}

@media (max-width: 420px) {
  .reader-page .min-header {
    padding: 0 10px !important;
  }

  .reader-page .min-header-actions {
    gap: 5px !important;
  }

  .reader-page .min-ui-btn {
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .reader-page .min-user-btn {
    max-width: 86px !important;
    padding-right: 6px !important;
  }

  .reader-page #userBtnText {
    max-width: 34px !important;
  }
}

/* User center header aligned with home */
.page-user .min-header {
  padding: 0 12px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(219, 225, 214, 0.8) !important;
  box-shadow: 0 10px 28px rgba(125, 150, 131, 0.08) !important;
}

.page-user .min-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 7px !important;
}

.page-user .min-brand-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #f1f6ef, #e3efe5) !important;
  color: #4f6657 !important;
  box-shadow: inset 0 0 0 1px rgba(151, 172, 154, 0.18) !important;
}

.page-user .min-brand-text {
  min-width: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-user .min-header-actions {
  flex: 0 0 auto !important;
  gap: 6px !important;
}

.page-user .min-ui-btn,
.page-user .min-user-btn {
  min-height: 32px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.page-user .min-ui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(214, 222, 211, 0.9) !important;
  color: #557060 !important;
}

.page-user .min-ui-btn-notice {
  padding: 0 9px !important;
  border-color: rgba(227, 181, 92, 0.44) !important;
  background: rgba(255, 249, 237, 0.96) !important;
  color: #9a651f !important;
}

.page-user .min-ui-btn-night,
.page-user .min-ui-btn-card {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.page-user .min-ui-btn-night #siteNightText {
  display: none !important;
}

.page-user .min-ui-btn-night #siteNightIcon {
  font-size: 14px !important;
}

.page-user .min-user-btn {
  max-width: 94px !important;
  padding: 4px 7px 4px 5px !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.page-user .min-user-avatar {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.page-user #userBtnText {
  max-width: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.page-user .min-arrow {
  font-size: 8px !important;
}

body.site-night.page-user .min-header {
  background: rgba(15, 17, 22, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

body.site-night.page-user .min-brand,
body.site-night.page-user .min-ui-btn,
body.site-night.page-user .min-user-btn {
  color: #edf0f4 !important;
}

body.site-night.page-user .min-brand-icon {
  color: #f4f1e7 !important;
  background: linear-gradient(135deg, rgba(48, 51, 58, 0.96), rgba(30, 32, 37, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.site-night.page-user .min-ui-btn,
body.site-night.page-user .min-user-btn {
  background: rgba(27, 30, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-night.page-user .min-ui-btn-notice {
  background: rgba(54, 42, 20, 0.96) !important;
  border-color: rgba(226, 174, 76, 0.44) !important;
  color: #ffd47a !important;
}

body.site-night.page-user .min-arrow,
body.site-night.page-user #userBtnText,
body.site-night.page-user .min-ui-btn-night #siteNightIcon {
  color: #edf0f4 !important;
}

@media (max-width: 420px) {
  .page-user .min-header {
    padding: 0 10px !important;
  }

  .page-user .min-header-actions {
    gap: 5px !important;
  }

  .page-user .min-ui-btn {
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .page-user .min-user-btn {
    max-width: 86px !important;
    padding-right: 6px !important;
  }

  .page-user #userBtnText {
    max-width: 34px !important;
  }
}

/* Search feedback modal redesign */
.search-feedback-entry {
  padding: 14px !important;
  border-radius: 18px !important;
}

.search-feedback-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-feedback-compact-copy {
  min-width: 0;
}

.search-feedback-compact h2 {
  margin: 0;
  font-size: 1rem;
  color: #1f2b38;
}

.search-feedback-compact p {
  margin: 5px 0 0;
  color: #667587;
  font-size: 0.86rem;
  line-height: 1.55;
}

.search-feedback-open-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(151, 129, 87, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, #71876d, #a08a62);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(99, 113, 82, 0.16);
}

.search-feedback-open-btn:hover {
  filter: brightness(1.04);
}

.search-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.search-feedback-modal.is-open {
  display: flex;
}

.search-feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.search-feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(215, 223, 234, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.99));
  box-shadow: 0 28px 70px rgba(24, 35, 52, 0.22);
}

.search-feedback-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.search-feedback-modal-head h2 {
  margin: 0;
  color: #1f2b38;
  font-size: 1.18rem;
}

.search-feedback-modal-head p {
  margin: 6px 0 0;
  color: #667587;
  font-size: 0.88rem;
  line-height: 1.6;
}

.search-feedback-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #647184;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.search-feedback-modal-open {
  overflow: hidden;
}

body.site-night.page-search .search-feedback-entry {
  border-color: #344154;
  background: linear-gradient(180deg, rgba(21, 29, 41, 0.94), rgba(15, 22, 34, 0.96));
  box-shadow: 0 14px 34px rgba(3, 8, 18, 0.24);
}

body.site-night.page-search .search-feedback-compact h2,
body.site-night.page-search .search-feedback-modal-head h2 {
  color: #f8fbff;
}

body.site-night.page-search .search-feedback-compact p,
body.site-night.page-search .search-feedback-modal-head p {
  color: #b8c4d6;
}

body.site-night.page-search .search-feedback-modal-backdrop {
  background: rgba(3, 7, 13, 0.66);
}

body.site-night.page-search .search-feedback-dialog {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(31, 34, 40, 0.98), rgba(20, 22, 27, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

body.site-night.page-search .search-feedback-close {
  background: rgba(42, 46, 54, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d7dbe2;
}

@media (max-width: 720px) {
  .search-feedback-compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-feedback-open-btn {
    width: 100%;
  }

  .search-feedback-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .search-feedback-dialog {
    width: 100%;
    max-height: calc(92vh - env(safe-area-inset-bottom, 0px));
    padding: 16px;
    border-radius: 18px;
  }

  .search-feedback-modal-head {
    margin-bottom: 10px;
  }
}

/* Search header aligned with home */
.page-search .min-header {
  padding: 0 12px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(219, 225, 214, 0.8) !important;
  box-shadow: 0 10px 28px rgba(125, 150, 131, 0.08) !important;
}

.page-search .min-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 7px !important;
}

.page-search .min-brand-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  background: linear-gradient(135deg, #f1f6ef, #e3efe5) !important;
  color: #4f6657 !important;
  box-shadow: inset 0 0 0 1px rgba(151, 172, 154, 0.18) !important;
}

.page-search .min-brand-text {
  min-width: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-search .min-header-actions {
  flex: 0 0 auto !important;
  gap: 6px !important;
}

.page-search .min-ui-btn,
.page-search .min-user-btn {
  min-height: 32px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.page-search .min-ui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(214, 222, 211, 0.9) !important;
  color: #557060 !important;
}

.page-search .min-ui-btn-notice {
  padding: 0 9px !important;
  border-color: rgba(227, 181, 92, 0.44) !important;
  background: rgba(255, 249, 237, 0.96) !important;
  color: #9a651f !important;
}

.page-search .min-ui-btn-night,
.page-search .min-ui-btn-card {
  width: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
}

.page-search .min-ui-btn-night #siteNightText {
  display: none !important;
}

.page-search .min-ui-btn-night #siteNightIcon {
  font-size: 14px !important;
}

.page-search .min-user-btn {
  max-width: 94px !important;
  padding: 4px 7px 4px 5px !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.page-search .min-user-avatar {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.page-search #userBtnText {
  max-width: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.page-search .min-arrow {
  font-size: 8px !important;
}

body.site-night.page-search .min-header {
  background: rgba(15, 17, 22, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34) !important;
}

body.site-night.page-search .min-brand,
body.site-night.page-search .min-ui-btn,
body.site-night.page-search .min-user-btn {
  color: #edf0f4 !important;
}

body.site-night.page-search .min-brand-icon {
  color: #f4f1e7 !important;
  background: linear-gradient(135deg, rgba(48, 51, 58, 0.96), rgba(30, 32, 37, 0.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.site-night.page-search .min-ui-btn,
body.site-night.page-search .min-user-btn {
  background: rgba(27, 30, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.site-night.page-search .min-ui-btn-notice {
  background: rgba(54, 42, 20, 0.96) !important;
  border-color: rgba(226, 174, 76, 0.44) !important;
  color: #ffd47a !important;
}

body.site-night.page-search .min-arrow,
body.site-night.page-search #userBtnText,
body.site-night.page-search .min-ui-btn-night #siteNightIcon {
  color: #edf0f4 !important;
}

@media (max-width: 420px) {
  .page-search .min-header {
    padding: 0 10px !important;
  }

  .page-search .min-header-actions {
    gap: 5px !important;
  }

  .page-search .min-ui-btn {
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .page-search .min-user-btn {
    max-width: 86px !important;
    padding-right: 6px !important;
  }

  .page-search #userBtnText {
    max-width: 34px !important;
  }
}
