/*
 * Reader PC style ownership:
 * - ui.css owns Tailwind utilities, DaisyUI components, reset and DaisyUI theme tokens.
 * - styles.css owns site tokens, base page defaults, legacy PC visual restoration and page-scoped classes.
 * - Do not redefine DaisyUI/Tailwind generic classes here; use a site/page class instead.
 */

:root {
  --color-bg: #f5f7fa;
  --color-surface: #fff;
  --color-ink: #303133;
  --color-muted: #606266;
  --color-subtle: #909399;
  --color-line: #dcdfe6;
  --color-line-light: #e4e7ed;
  --color-primary: #409eff;
  --color-primary-dark: #337ecc;
  --color-primary-soft: #ecf5ff;
  --color-primary-soft-2: #d9ecff;
  --color-primary-soft-3: #b3d8ff;
  --color-success: #67c23a;
  --color-warning: #e6a23c;
  --color-danger: #f56c6c;
  --color-info: #909399;
  --color-gold: #f0c14b;
  --color-silver: #c0c4cc;
  --color-bronze: #cd7f32;
  --color-hot: #ff6b35;
  --color-vip: #f0c14b;
  --color-warn: var(--color-danger);
  --color-reader: #f4ecd8;
  --shadow-panel: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --page-width: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-reading: "Noto Serif SC", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.site-content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.site-content > main {
  flex: 1 0 auto;
}

[x-cloak] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-container {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface);
  border-top: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header-top {
  border-bottom: 1px solid #eee;
}

.header-top__inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 220px minmax(280px, 430px) 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 800;
}

.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__name {
  font-size: 28px;
  line-height: 1;
}

.site-search,
.inline-search {
  display: flex;
  align-items: center;
}

.site-search input,
.inline-search input,
.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0 12px;
  color: var(--color-ink);
  background: #fff;
}

.report-form textarea {
  padding-top: 10px;
  resize: vertical;
}

.site-search input {
  border-radius: 4px 0 0 4px;
}

.site-search button {
  min-width: 84px;
  height: 38px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--color-primary);
  color: #fff;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
}

.login-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 22px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.login-button:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.main-nav .site-container {
  min-height: 48px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-ink);
  font-size: 16px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link.is-active::after {
  background: var(--color-primary);
}

.site-main {
  min-height: calc(100vh - 240px);
  padding: 20px 0 48px;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0 22px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
}

.footer-links a,
.footer-links button,
.footer-links label.footer-link-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
  font-size: 14px;
}

.footer-links a:hover,
.footer-links button:hover,
.footer-links label.footer-link-button:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 1.8;
}

.copyright p {
  margin: 0;
}

.copyright img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.page-home,
.page-books {
  display: grid;
  gap: 20px;
}

.home-hero,
.board,
.ranking-board,
.recent-updates,
.taxonomy-board,
.filter-bar,
.book-container,
.book-detail,
.book-tabs,
.admin-panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.home-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
}

.home-hero__cover,
.recommend-feature img,
.book-card__cover,
.book-list-item img,
.book-hero__cover,
.mini-book img {
  background: #ededed;
  object-fit: cover;
}

.home-hero__cover {
  width: 220px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.home-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-kicker {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
}

.home-hero h1 {
  margin: 8px 0 12px;
  font-size: 38px;
  line-height: 1.2;
}

.home-hero__copy p {
  max-width: 760px;
  margin: 0;
  color: #555;
}

.hero-meta,
.book-card__tags,
.book-tags,
.book-list-item__meta,
.reader-page__head div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span,
.book-card__tags span,
.book-tags span,
.book-list-item__meta span,
.reader-page__head span {
  border: 1px solid var(--color-primary-soft-2);
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 13px;
}

.hero-actions,
.book-actions,
.reader-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  background: transparent;
  box-shadow: none;
}

.board-main,
.board-side,
.ranking-card,
.recent-updates,
.taxonomy-board,
.filter-bar,
.book-container,
.book-detail,
.book-tabs,
.admin-panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.board-main,
.board-side,
.ranking-board,
.recent-updates,
.taxonomy-board,
.filter-bar,
.book-container,
.book-detail,
.book-tabs,
.admin-panel {
  padding: 20px;
}

.section-header,
.ranking-card__head,
.catalog-head,
.book-container__head,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-header h2,
.ranking-card__head h3,
.taxonomy-board h2,
.catalog-head h2,
.book-container__head h1,
.page-head h1 {
  position: relative;
  margin: 0;
  padding-left: 15px;
  color: var(--color-ink);
}

.section-header h2::before,
.ranking-card__head h3::before,
.taxonomy-board h2::before,
.catalog-head h2::before,
.book-container__head h1::before,
.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: var(--color-primary);
}

.section-header a,
.ranking-card__head a,
.book-container__head span {
  color: var(--color-muted);
  font-size: 14px;
}

.recommend-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
}

.recommend-feature img {
  width: 180px;
  height: 240px;
  border-radius: 4px;
}

.recommend-feature h3 {
  margin: 14px 0 6px;
}

.recommend-feature p {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.three-line,
.book-card__desc,
.book-list-item__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.book-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.book-card__cover {
  width: 86px;
  height: 116px;
  border-radius: 4px;
  overflow: hidden;
}

.book-card__cover img,
.book-list-item img,
.book-hero__cover {
  width: 100%;
  height: 100%;
}

.book-card h3,
.book-list-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.book-card__author,
.book-card__desc,
.book-card__foot,
.book-list-item__desc,
.book-list-item__update {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.book-card__tags {
  margin: 8px 0 0;
}

.book-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.rank-list {
  height: 380px;
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  counter-reset: rank;
}

.rank-item {
  position: relative;
  min-height: 30px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 6px;
  counter-increment: rank;
}

.rank-item::before {
  content: counter(rank);
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #666;
  text-align: center;
  line-height: 20px;
  font-size: 13px;
}

.rank-item:nth-child(1)::before,
.rank-item:nth-child(2)::before,
.rank-item:nth-child(3)::before {
  background: var(--color-warn);
  color: #fff;
}

.rank-item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.rank-item span {
  color: #999;
  font-size: 12px;
}

.rank-item img {
  display: none;
  width: 50px;
  height: 66px;
  object-fit: cover;
}

.rank-item:hover {
  min-height: 70px;
}

.rank-item:hover img {
  display: block;
}

.ranking-board {
  padding: 20px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.ranking-card {
  padding: 18px;
  box-shadow: none;
  border: 1px solid #eee;
}

.recent-updates .section-header,
.taxonomy-board h2 {
  margin-bottom: 16px;
}

.update-table {
  display: grid;
}

.update-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(140px, 240px) 110px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px dashed #eee;
  color: #666;
  font-size: 14px;
}

.update-row strong,
.update-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-row strong {
  color: var(--color-ink);
}

.update-row__category,
.update-row time {
  color: #999;
}

.taxonomy-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chip-list,
.filter-options,
.sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.filter-option,
.sort-options a,
.sort-options label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--color-ink);
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 700;
}

.chip:hover,
.filter-option:hover,
.filter-option.is-active,
.sort-options a:hover,
.sort-options label:hover {
  background: var(--color-primary);
  color: #fff;
}

.filter-row {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  flex: 0 0 70px;
  color: #999;
  font-size: 14px;
  line-height: 30px;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.inline-search {
  min-width: 360px;
  gap: 10px;
}

.inline-search input {
  min-width: 240px;
}

.book-container__head {
  margin-bottom: 16px;
}

.book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.book-list-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px;
  min-height: 150px;
}

.book-list-item img {
  width: 110px;
  height: 150px;
}

.book-list-item__meta {
  margin: 0 0 8px;
}

.book-list-item__desc {
  -webkit-line-clamp: 2;
  min-height: 40px;
}

.book-list-item__update {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #666;
  font-size: 13px;
  margin-bottom: 14px;
}

.book-hero {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 24px;
}

.book-hero__cover {
  width: 195px;
  height: 260px;
  border-radius: 4px;
}

.book-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.book-hero__title h1 {
  margin: 0;
  font-size: 26px;
}

.book-hero__title span {
  color: var(--color-warn);
  font-size: 24px;
  font-weight: 800;
}

.book-tags,
.book-author,
.book-stats {
  margin-top: 14px;
}

.book-author {
  color: #666;
}

.book-stats {
  display: flex;
  gap: 22px;
}

.book-stats strong {
  color: var(--color-ink);
  font-size: 20px;
}

.book-stats span {
  margin-left: 2px;
  color: #666;
  font-size: 14px;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab-button,
.segmented button {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 0 20px;
  color: #666;
  font-weight: 700;
}

.tab-button.is-active,
.segmented button.is-active {
  color: var(--color-warn);
  border-bottom: 2px solid var(--color-warn);
}

.tab-panel {
  display: none;
  padding: 22px 20px;
}

.tab-panel.is-active {
  display: block;
}

.prose {
  color: #666;
  line-height: 1.8;
}

.catalog-head {
  margin-bottom: 16px;
}

.segmented {
  display: inline-flex;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chapter-link,
.chapter-list__item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  overflow: hidden;
}

.chapter-link span:last-child,
.chapter-list__item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-mark {
  flex: none;
  border-radius: 3px;
  padding: 1px 5px;
  background: #fff8df;
  color: var(--color-vip);
  font-size: 11px;
  font-weight: 800;
}

.reader-shell {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 800px);
  gap: 22px;
  justify-content: center;
}

.reader-toolbar {
  position: sticky;
  top: 140px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.tool-button {
  min-height: 52px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reader-page {
  min-height: 100vh;
  border-radius: 0;
  background: #fff;
  padding: 28px 44px;
}

.reader-page__head {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 18px;
}

.reader-page__head a {
  color: var(--color-primary);
  font-weight: 700;
}

.reader-page__head h1 {
  margin: 10px 0 0;
  font-size: 26px;
}

.reader-page__head div {
  justify-content: center;
  margin-top: 12px;
}

.reader-content {
  margin-top: 28px;
  font-family: var(--font-reading);
  font-size: 20px;
  line-height: 2;
  color: #333;
}

.reader-content p {
  margin: 0 0 1.5em;
  text-indent: 2em;
}

.reader-nav {
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.reader-settings[hidden],
[hidden] {
  display: none !important;
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.chapter-list__item.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.reader-settings {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 280px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  padding: 16px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-row + .settings-row {
  margin-top: 14px;
}

.settings-row button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.settings-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0;
}

.theme-btn.white {
  background: #fff !important;
}

.theme-btn.sepia {
  background: #f4ecd8 !important;
  filter: none;
}

.theme-btn.dark {
  border-color: #555;
  background: #222 !important;
}

.theme-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
}

.theme-swatch--paper {
  background: var(--color-reader) !important;
}

.theme-swatch--white {
  background: #fff !important;
}

.theme-swatch--dark {
  background: #333 !important;
}

body.reader-theme-white .reader-page {
  background: #fff;
}

body.reader-theme-dark {
  background: #222;
}

body.reader-theme-dark .reader-page {
  background: #363636;
  color: #aaa;
}

body.reader-theme-dark .reader-content {
  color: #aaa;
}

body.reader-theme-dark .reader-page__head,
body.reader-theme-dark .reader-nav {
  border-color: #444;
}

.vip-box {
  border-top: 1px solid rgba(146, 140, 133, 0.5);
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  color: rgb(146, 140, 133);
}

.page-head {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 20px;
}

.page-head p {
  margin: 6px 0 0;
  color: #777;
}

.admin-panel {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
}

.empty-state {
  border: 1px dashed #ddd;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: #777;
}

.empty-state h1,
.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
}

.empty-state--wide {
  width: 100%;
}

.report-modal__box {
  width: min(600px, calc(100% - 32px));
  max-width: 600px;
  color: var(--color-ink);
}

.report-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.report-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.report-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.report-field {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 14px;
}

.report-field .label-text {
  padding: 0;
}

.report-phone {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.report-phone strong {
  color: var(--color-danger);
  padding: 0 8px;
}

.report-actions {
  margin-top: 8px;
}

.site-toast {
  top: 20px;
  bottom: auto;
  z-index: 70;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--tw-translate-x), -16px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(var(--tw-translate-x), 0) scale(1);
  animation: site-toast-lifecycle 2.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.site-toast__alert {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(380px, calc(100vw - 32px));
  max-width: min(460px, calc(100vw - 32px));
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #edf2fc;
  color: #909399;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.site-toast__icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.site-toast__message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-toast--success .site-toast__alert {
  border-color: #e1f3d8;
  background: #f0f9eb;
  color: #67c23a;
}

.site-toast--success .site-toast__icon {
  background: #67c23a;
}

.site-toast--success .site-toast__icon::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -1px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.site-toast--error .site-toast__alert {
  border-color: #fde2e2;
  background: #fef0f0;
  color: #f56c6c;
}

.site-toast--error .site-toast__icon {
  background: #f56c6c;
}

.site-toast--error .site-toast__icon::after {
  content: "!";
}

.site-toast--warning .site-toast__alert {
  border-color: #faecd8;
  background: #fdf6ec;
  color: #e6a23c;
}

.site-toast--warning .site-toast__icon {
  background: #e6a23c;
}

.site-toast--warning .site-toast__icon::after {
  content: "!";
}

.site-toast--info .site-toast__alert {
  border-color: #e9e9eb;
  background: #f4f4f5;
  color: #909399;
}

.site-toast--info .site-toast__icon {
  background: #909399;
}

.site-toast--info .site-toast__icon::after {
  content: "i";
}

@keyframes site-toast-lifecycle {
  0%,
  82% {
    opacity: 1;
    transform: translate(var(--tw-translate-x), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tw-translate-x), -16px) scale(0.98);
  }
}

@media (max-width: 1000px) {
  .header-top__inner,
  .board,
  .recommend-layout,
  .ranking-grid,
  .taxonomy-board,
  .book-list,
  .book-hero,
  .reader-shell,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .header-top__inner {
    padding: 14px 0;
  }

  .main-nav .site-container {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .sort-bar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-toolbar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-container,
  .page-head,
  .admin-panel {
    width: min(100% - 20px, var(--page-width));
  }

  .brand__name {
    font-size: 22px;
  }

  .site-search,
  .inline-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-search input,
  .site-search button,
  .inline-search input {
    min-width: 0;
    border-radius: 4px;
  }

  .home-hero,
  .board-main,
  .board-side,
  .ranking-board,
  .recent-updates,
  .taxonomy-board,
  .filter-bar,
  .book-container,
  .book-detail,
  .book-tabs,
  .admin-panel {
    padding: 14px;
  }

  .home-hero__cover {
    width: 160px;
  }

  .home-hero h1 {
    font-size: 30px;
  }

  .recommend-list,
  .chapter-grid,
  .chapter-list {
    grid-template-columns: 1fr;
  }

  .book-list-item,
  .book-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .book-card__cover,
  .book-list-item img {
    width: 92px;
    height: 124px;
  }

  .update-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 0;
  }

  .reader-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-page {
    padding: 22px 18px;
  }
}

/* Legacy PC reference compatible template styles */
body {
  background-color: #f5f5f5;
}

.site-page-container {
  width: 1200px;
  margin: 0 auto;
}

.container-box {
  background: #fff;
  width: 100%;
  border-top: 1px solid #ddd;
}

.container-box ul {
  list-style: none;
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-top .site-page-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  align-items: center;
  flex: 0 1 400px;
  margin: 0 20px;
}

.search-box input[type="text"] {
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #eee;
  border-radius: 4px 0 0 4px;
  font-size: 15px;
  outline: none;
  width: 220px;
}

.search-box button {
  height: 38px;
  min-height: 38px;
  padding: 0 22px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: -4px;
  box-shadow: none;
}

.search-box .btn {
  min-height: 38px;
  line-height: 38px;
}

.login-btn {
  padding: 10px 25px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.header-user {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-user-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-primary-soft);
}

.header-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.header-vip-badge {
  height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 0 6px;
  background: var(--color-vip);
  color: #7a4f00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.header-logout-form {
  margin: 0;
}

.header-logout-btn.btn {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  color: var(--color-muted);
}

.main-nav {
  background-color: #fff;
}

.nav-list,
.nav-list.menu {
  --nav-underline-size: 2px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0;
  padding: 15px 0;
}

.nav-list li,
.nav-list.menu li {
  margin: 0 20px;
  padding: 0;
}

.nav-list a,
.nav-list button,
.nav-list.menu li > a {
  display: inline-block;
  padding: 0;
  border: 0;
  color: #333;
  font-size: 16px;
  font: inherit;
  line-height: 1.5;
  transition: color 0.3s;
  position: relative;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.nav-list li.active {
  color: var(--color-primary);
}

.nav-list li.active > a,
.nav-list a:hover,
.nav-list button:hover,
.nav-list.menu li > a:hover,
.nav-list.menu li > a:focus,
.nav-list.menu li > a:active {
  color: var(--color-primary);
  background: transparent;
}

.nav-list a::after,
.nav-list button::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: var(--nav-underline-size);
  background-color: var(--color-primary);
  transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list button:hover::after,
.nav-list li.active > a::after {
  width: 100%;
}

.site-footer {
  display: block;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  bottom: 0;
  left: 0;
  background-color: #333;
  color: #fff;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 0;
  margin-bottom: 20px;
  text-align: center;
}

.footer-links a {
  margin: 0 15px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
  font-size: 14px;
}

.footer-link-button {
  min-height: auto;
  height: auto;
  margin: 0 15px;
  padding: 0;
  color: #fff;
  opacity: 0.8;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.footer-link-button:hover {
  color: #fff;
  opacity: 1;
  background: transparent;
}

.copyright {
  width: fit-content;
  max-width: 100%;
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

.beian-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 40px;
}

.beian-line img {
  flex: 0 0 auto;
}

.main-content {
  width: 1160px;
  margin: 20px auto 0;
}

.home-page {
  display: block;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #e9eef7;
}

.banner-item {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.banner-item.active {
  opacity: 1;
  z-index: 2;
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  min-height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  z-index: 3;
}

.banner-arrow.left {
  left: 18px;
}

.banner-arrow.right {
  right: 18px;
}

.banner-arrow:hover,
.banner-arrow:focus {
  background: rgba(0, 0, 0, 0.45);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}

.banner-dots button {
  width: 12px;
  height: 12px;
  min-height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  padding: 0;
}

.banner-dots button.active {
  background: var(--color-primary);
  opacity: 1;
}

.site-ad-slot {
  display: block;
  width: 100%;
  min-height: 96px;
  border: 1px dashed var(--color-line);
  border-radius: 6px;
  background: #f8fafc;
}

.site-ad-slot--inline {
  flex: 1 0 100%;
  min-height: 90px;
  margin: 4px 0;
}

.site-ad-slot__link {
  display: block;
  width: 100%;
  min-height: inherit;
  border-radius: inherit;
}

.site-ad-slot__media {
  display: block;
  width: 100%;
  min-height: inherit;
  border-radius: inherit;
  object-fit: cover;
}

.home-page > .site-ad-slot,
.books-page .site-page-container > .site-ad-slot,
.search-page > .site-ad-slot,
.books-extra > .site-ad-slot,
.book-detail-page .site-page-container > .site-ad-slot[data-ad-slot="book_detail_top"] {
  min-height: 90px;
  margin: 20px 0;
}

.news-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.news-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  padding: 0;
}

.news-list li {
  flex: 1 1 30%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dashed #eee;
}

.news-title,
.text-limit {
  width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  transition: color 0.3s;
  font-size: 14px;
}

.news-date {
  color: #999;
  font-size: 14px;
  padding-right: 16px;
}

.board {
  margin: 20px 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  box-shadow: none;
}

.board-left {
  flex: 1 1 auto;
  min-width: 0;
}

.board > div {
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 15px;
}

.board-right {
  flex: 0 0 270px;
  width: 270px;
}

.recommend {
  display: flex;
  gap: 20px;
}

.recommend .adaptation-item {
  width: 250px;
}

.recommend .adaptation-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.recommend .adaptation-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.recommend h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.recommend .part2 {
  flex: 1 1 auto;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 14px;
  min-width: 0;
}

.recommend .info {
  position: relative;
  display: block;
  padding-left: 110px;
  width: calc(50% - 7px);
  min-height: 120px;
  overflow: hidden;
  box-sizing: border-box;
}

.recommend .book-card-link {
  color: inherit;
  text-decoration: none;
}

.recommend .book-card-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.recommend .part2 img {
  position: absolute;
  left: 0;
  top: 0;
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
}

.recommend .book-cover {
  margin-left: 0;
}

.recommend .book-cover img {
  width: 230px;
  height: 300px;
  object-fit: cover;
}

.recommend .info p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
  position: relative;
  padding-left: 15px;
  margin: 0;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.rank-list {
  list-style-type: none;
  padding: 0;
  height: 380px;
  width: 100%;
  overflow: hidden;
  margin: 0;
  counter-reset: none;
}

.rank-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 5px;
  height: 30px;
  overflow: hidden;
  min-height: 0;
}

.rank-item::before {
  display: none;
}

.rank-item .rank-reveal {
  display: none;
}

.rank-item-link {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.rank-item-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.rank-item .txt {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  overflow: hidden;
}

.rank-item.rank-item--featured,
.rank-item:hover {
  height: 70px;
  min-height: 70px;
}

.rank-item.rank-item--featured .rank-reveal,
.rank-item:hover .rank-reveal {
  display: block;
}

.rank-item.rank-item--featured .book-title,
.rank-item:hover .book-title {
  display: inline-block;
  width: 100%;
  font-size: 16px;
}

.rank-item .book-title {
  display: block;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-heat-inline {
  flex: 0 0 56px;
  width: 56px;
  color: var(--color-hot);
  font-size: 12px;
  white-space: nowrap;
}

.rank-item.rank-item--featured .rank-heat-inline,
.rank-item:hover .rank-heat-inline,
.ranking-card .rank-heat-inline {
  display: none;
}

/* Match the old PC behavior: the SSR default first item only expands while no other item is hovered. */
.rank-list:has(.rank-item:hover) .rank-item.rank-item--featured:not(:hover) {
  height: 30px;
  min-height: 0;
}

.rank-list:has(.rank-item:hover) .rank-item.rank-item--featured:not(:hover) .rank-reveal {
  display: none;
}

.rank-list:has(.rank-item:hover) .rank-item.rank-item--featured:not(:hover) .book-title {
  display: block;
  font-size: 14px;
}

.part3 .rank-list:has(.rank-item:hover) .rank-item.hover:not(:hover) .rank-heat-inline {
  display: block;
}

.rank-number {
  flex: 0 0 auto;
  color: var(--color-muted);
  padding: 0 5px;
  border-radius: 5px;
  margin-right: 10px;
  height: 20px;
  font-size: 14px;
}

.rank-item:nth-child(1) .rank-number {
  background: var(--color-gold);
  color: var(--color-ink);
}

.rank-item:nth-child(2) .rank-number {
  background: var(--color-silver);
  color: var(--color-ink);
}

.rank-item:nth-child(3) .rank-number {
  background: var(--color-bronze);
  color: #fff;
}

.rank-item img.book-cover {
  flex: 0 0 62px;
  width: 62px;
  height: 70px;
  margin-left: 10px;
  object-fit: cover;
}

.ranking-board {
  box-sizing: border-box;
  margin: 20px auto 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.ranking-board-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.ranking-card {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.ranking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.popular-authors {
  margin: 20px 0 0;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.authors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.author-item {
  display: block;
  min-width: 0;
  background: #f8fafd;
  border-radius: 12px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.author-item:hover,
.author-item:focus-visible {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.author-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.author-profile {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #f2f4f7;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
  min-width: 0;
  padding-left: 15px;
}

.author-name h3 {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.author-badges .author-badge-chip {
  min-height: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: var(--color-vip);
  color: var(--color-ink);
  font-size: 12px;
}

.author-badges .author-badge-chip--works {
  background: var(--color-primary);
  color: #fff;
}

.author-work p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.recent-updates {
  margin: 20px 0 24px 0;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.updates-table {
  margin-top: 20px;
}

.home-update-header,
.home-update-row {
  display: grid;
  grid-template-columns: 80px 80px minmax(80px, 1fr) 80px 100px 150px;
  gap: 16px;
}

.home-update-header {
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.home-update-row {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: all 0.3s;
}

.home-update-row:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.col-category {
  color: #666;
}

.col-title {
  color: #333;
  font-weight: 500;
}

.col-chapter {
  color: var(--color-primary);
  cursor: pointer;
}

.col-author {
  color: #ccc;
}

.col-time {
  color: #999;
}

.three-line-ellipsis,
.site-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.site-line-clamp {
  max-height: 3.1em;
  line-height: 1.55;
  line-clamp: 2;
}

.filter-option.active {
  background: var(--color-primary);
  color: #fff;
}

.book-container {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  padding: 20px;
  justify-content: space-between;
  gap: 20px;
  border-radius: 0;
  box-shadow: none;
}

.book-item {
  width: 32%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.book-item img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  background: #ededed;
}

.book-info-v2 {
  padding-left: 15px;
  flex: 1;
}

.book-info-v2 h3 {
  font-weight: normal;
  color: #333;
}

.book-info-v2 p {
  text-align: left;
  font-size: 12px;
  color: #999;
  padding-bottom: 5px;
}

.book-info-v2 p span {
  padding: 1px 2px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.book-info-v2 .introduce {
  height: auto;
}

.book-info-v2 p.update {
  margin-top: 8px;
}

.search-page {
  margin-top: 20px;
}

.search-panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.search-head h1 {
  margin: 0 0 6px;
  color: #333;
  font-size: 24px;
  font-weight: 500;
}

.search-head p {
  margin: 0;
  color: #999;
  font-size: 14px;
}

.search-results {
  padding: 0;
}

.content-tabs .tab.is-active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  font-weight: bold;
}

.reader-section {
  padding-bottom: 40px;
}

.reader-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  min-height: 100vh;
  transition: all 0.3s ease;
  position: relative;
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.reader-title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
}

.reader-container .site-ad-slot--reader-top,
.reader-container .site-ad-slot[data-ad-slot="reader_top"] {
  min-height: 90px;
  margin-bottom: 20px;
}

.reader-container .site-ad-slot--reader-bottom,
.reader-container .site-ad-slot[data-ad-slot="reader_bottom"] {
  min-height: 120px;
  margin-top: 20px;
}

.reader-container .site-ad-slot[data-ad-slot="reader_after_title"] {
  min-height: 72px;
  margin: 0 0 24px;
}

.reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_left"],
.reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_right"] {
  display: none;
}

@media (min-width: 1280px) {
  .reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_left"],
  .reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_right"] {
    position: fixed;
    top: 168px;
    z-index: 20;
    display: block;
    width: 120px;
    min-height: 320px;
  }

  .reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_left"] {
    left: max(24px, calc(50% - 660px));
  }

  .reader-section > .site-ad-slot[data-ad-slot="reader_side_rail_right"] {
    right: max(24px, calc(50% - 690px));
  }
}

.reader-action-btn {
  padding: 6px 12px;
  border: none;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
}

.chapter-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  padding: 20px 0;
}

.chapter-content[data-copy-protected] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.chapter-content[data-copy-protected] input,
.chapter-content[data-copy-protected] textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.chapter-content.reader-font-16 {
  font-size: 16px;
}

.chapter-content.reader-font-18 {
  font-size: 18px;
}

.chapter-content.reader-font-20 {
  font-size: 20px;
}

.chapter-content.reader-font-22 {
  font-size: 22px;
}

.chapter-content.reader-font-24 {
  font-size: 24px;
}

.chapter-content.reader-font-26 {
  font-size: 26px;
}

.chapter-content.reader-font-28 {
  font-size: 28px;
}

.chapter-content p {
  margin-bottom: 1.5em;
  text-indent: 2em;
}

.reader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.chapter-nav {
  display: flex;
  gap: 20px;
}

.chapter-nav-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  background: #fff;
}

.reader-container .btn-reader-action-list {
  position: fixed;
  left: 50%;
  bottom: 300px;
  margin-left: 420px;
  width: 70px;
  z-index: 1000;
  background: #fff;
  text-align: center;
}

.btn-top {
  position: fixed;
  left: 50%;
  bottom: 160px;
  margin-left: 420px;
  width: 70px;
  z-index: 1000;
  background: #fff;
  text-align: center;
  padding: 16px 0;
  cursor: pointer;
}

.reader-catalog-modal {
  z-index: 1000;
}

.reader-catalog-box {
  display: flex;
  flex-direction: column;
  width: 600px;
  max-width: min(600px, calc(100vw - 32px));
  max-height: 82vh;
  padding: 24px 24px 20px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.catalog-list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0;
  padding: 4px 4px 0 0;
  max-height: 56vh;
}

.catalog-list.menu .catalog-row {
  display: block;
}

.catalog-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-chapter__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-vip-mark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.catalog-chapter.active {
  color: var(--color-primary);
  font-weight: bold;
}

.catalog-sort-btn.is-active,
.catalog-sort-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.catalog-sort-btn.is-active:hover,
.catalog-sort-btn.active:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

body.reader-theme-sepia,
.reader-section.theme-sepia {
  background: #e5d8b6;
}

body.reader-theme-sepia .reader-container,
.reader-section.theme-sepia .reader-container {
  background: #f4ecd8;
  color: #5b4636;
}

.reader-section.theme-sepia .site-ad-slot,
body.reader-theme-sepia .site-ad-slot {
  border-color: rgba(121, 89, 52, 0.22);
  background: #f7f1df;
}

body.reader-theme-dark,
.reader-section.theme-dark {
  background: #222;
}

body.reader-theme-dark .reader-container,
.reader-section.theme-dark .reader-container {
  background: #363636;
  color: #999;
}

body.reader-theme-dark .reader-title,
body.reader-theme-dark .chapter-content {
  color: #999;
}

.reader-section.theme-dark .reader-title,
.reader-section.theme-dark .chapter-content {
  color: #999;
}

.reader-section.theme-dark .site-ad-slot,
body.reader-theme-dark .site-ad-slot {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.site-modal-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.box {
  width: 600px;
  background-color: #fff;
  position: fixed;
  left: 50%;
  margin-left: -300px;
  box-sizing: border-box;
  padding: 16px;
  color: #000;
  bottom: 200px;
  z-index: 1002;
}

/* converted Vue route pages */
.content-panel,
.info-content,
.info-side,
.author-register {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-panel,
.info-content,
.author-register {
  padding: 30px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.panel-head h1 {
  margin: 0;
  font-size: 24px;
}

.panel-head p {
  margin: 0;
  color: #777;
}

.info-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

.info-side {
  align-self: start;
  display: grid;
  overflow: hidden;
}

.info-side a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 18px;
  color: #555;
}

.info-side a.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.info-content h1,
.article-head h1 {
  margin: 0 0 18px;
  font-size: 24px;
  text-align: left;
}

.info-content p,
.policy-section p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

.info-content > p {
  text-indent: 2em;
}

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

.contact-card {
  min-height: 140px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 18px;
}

.contact-card h2,
.policy-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.contact-card strong {
  display: block;
  margin-bottom: 8px;
  color: #222;
}

.policy-section + .policy-section {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 20px;
}

.wide-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin: 24px auto 0;
}

.wide-form label {
  display: grid;
  gap: 8px;
  color: #555;
}

.wide-form input,
.wide-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
}

.wide-form textarea {
  padding-top: 10px;
}

.wide-form small {
  color: #999;
}

.inline-control {
  display: flex;
  gap: 10px;
}

.inline-control input {
  min-width: 0;
  flex: 1;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.badge-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.badge-card {
  text-align: center;
  padding: 20px 10px;
}

.badge-card img {
  width: 140px;
  margin: 0 auto 10px;
}

.badge-card h2 {
  margin: 5px 0;
  font-size: 16px;
}

.badge-card p {
  margin: 0;
  color: #666;
}

.activity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.activity-card-v2 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
}

.activity-card-v2 img {
  width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.activity-card-v2 h2,
.news-item-v2 h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.activity-card-v2 p,
.news-item-v2 p {
  color: #666;
  margin: 0 0 10px;
  line-height: 1.6;
}

.activity-card-v2 time,
.news-item-v2 time,
.article-head time {
  color: #999;
  font-size: 14px;
}

.news-feed {
  display: grid;
}

.news-item-v2 {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 16px 0;
}

.article-page {
  max-width: none;
  margin: 0 auto;
  min-height: calc(100vh - 322px);
}

.article-head {
  text-align: center;
  padding: 30px 50px 0;
}

.article-head h1 {
  margin-bottom: 6px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.article-page .breadcrumb {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  color: #999;
  font-size: 14px;
}

.article-page .breadcrumb a {
  color: #999;
}

.article-page .breadcrumb a:hover {
  color: var(--color-primary);
}

.article-page .policy-section {
  border-top: 0;
  margin-top: 0;
  padding: 20px 50px 0;
}

.article-page .policy-section + .policy-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 20px;
}

.article-page .policy-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.article-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 24px;
}

.auth-shell {
  min-height: 100vh;
  background: #fff;
}

.auth-top {
  width: min(1200px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-top--register {
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.auth-brand img {
  height: 60px;
  width: auto;
}

.auth-top--register .auth-brand img {
  height: 64px;
}

.auth-top--register .auth-brand span {
  color: #555;
  font-size: 22px;
  font-weight: 600;
}

.auth-policy-menu {
  position: relative;
  padding-top: 2px;
}

.auth-policy-menu button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  padding: 0 14px;
}

.auth-policy-list {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 2;
  min-width: 140px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: none;
}

.auth-policy-menu:hover .auth-policy-list,
.auth-policy-menu:focus-within .auth-policy-list {
  display: block;
}

.auth-policy-list a {
  display: block;
  padding: 9px 12px;
  color: #333;
  font-size: 14px;
}

.login-banner {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 500px;
  margin-top: -250px;
  background: url("/assets/img/loginBg.jpg") center / cover no-repeat;
}

.login-banner .login-modal {
  position: relative;
  width: min(400px, calc(100% - 32px));
  min-height: 450px;
  margin: 25px 0 0 50%;
  border-radius: 5px;
  background: #fff;
  padding: 0 40px 34px;
}

.login-modal h1 {
  height: 80px;
  line-height: 80px;
  margin: 0;
  text-align: center;
  font-size: 25px;
}

.login-modal label {
  display: block;
  margin-bottom: 18px;
}

.login-modal input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
}

.auth-meta {
  text-align: right;
  margin-bottom: 18px;
}

.auth-meta button,
.auth-switch button {
  border: 0;
  background: transparent;
  color: #df1f20;
  padding: 0;
}

.auth-submit {
  width: 100%;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
}

.auth-shell--register {
  padding-bottom: 40px;
}

.author-register {
  width: min(800px, calc(100% - 32px));
  margin: 30px auto 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
}

.register-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.register-head h1 {
  margin: 0;
  color: #222;
  font-size: 24px;
}

.register-head span {
  color: #555;
  font-size: 14px;
}

.register-head a,
.register-form a {
  color: var(--color-primary);
}

.register-form {
  width: min(460px, calc(100% - 40px));
  display: grid;
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
}

.register-form label {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.register-form label > span:first-child {
  color: #606266;
  text-align: right;
  padding-right: 12px;
}

.register-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 12px;
}

.register-form .inline-control {
  gap: 20px;
}

.register-form .inline-control button {
  width: 103px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}

.register-tip {
  margin: 0 0 0 80px;
  color: var(--color-danger);
  font-size: 14px;
}

.register-form .checkbox-line {
  grid-template-columns: auto 1fr;
  margin-left: 80px;
  color: #555;
  font-size: 12px;
}

.register-form .checkbox-line input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.register-submit {
  text-align: center;
}

.register-submit .auth-submit {
  width: 260px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
}

.user-sidebar {
  display: grid;
  align-self: start;
  gap: 10px;
}

.user-info-card {
  padding: 20px;
  text-align: center;
}

.user-info-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto;
}

.user-info-card h2 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.user-info-card p {
  margin: 0 0 14px;
  color: #777;
  font-size: 13px;
}

.user-info-card a {
  display: block;
  min-height: 38px;
  line-height: 38px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
}

.download-title,
.download-box,
.download-list {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.download-title {
  background: #fff;
  margin-bottom: 20px;
  padding: 10px;
  font-weight: 600;
}

.download-box,
.download-list {
  background: #fff;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.download-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-box .logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.app-name {
  margin: 0 0 10px;
  font-size: 24px;
}

.details {
  margin: 0 0 20px;
  font-size: 16px;
}

.scan-instruction {
  margin: 0 0 10px;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: #fff;
}

.download-list {
  padding-top: 30px;
}

.download-section {
  width: min(900px, 100%);
  margin: 0 auto;
  border-top: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 20px;
  padding: 50px 20px;
}

.download-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-info .icon {
  min-width: 72px;
  min-height: 36px;
  color: #666d71;
  font-weight: 700;
  font-size: 18px;
}

.border-right {
  width: 1px;
  height: 178px;
  background: #ddd;
}

.download-button {
  margin: 30px auto 0;
  border-radius: 20px;
  background: #009688;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
}

.download-button:hover {
  color: #fff;
}

.title {
  color: #999;
  font-size: 24px;
  margin-left: 10px;
  vertical-align: middle;
}

.books-extra {
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto 48px;
  padding: 0;
}

.books-extra--rank {
  width: min(1170px, calc(100% - 32px));
}

.rank-header,
.rank-list-panel,
.tab-list,
.list-rank-head,
.book-list-shell,
.author-info,
.author-book-list,
.badges-section,
.honor-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rank-header {
  margin-bottom: 20px;
  padding: 20px;
}

.rank-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rank-title-label,
.list-rank-head h1 {
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.rank-cats,
.rank-periods,
.tag-list,
.tab-list,
.honor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-cat,
.rank-period,
.tag-list a,
.tag-list span,
.tag-item,
.tab-item,
.honor-tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-muted);
  padding: 3px 14px;
  font-size: 14px;
}

.rank-cat.active,
.rank-cat:hover,
.rank-period.active,
.rank-period:hover,
.tag-list a.active,
.tag-list a:hover,
.tag-list span.active,
.tag-list span:hover,
.tag-item.active,
.tag-item:hover,
.tab-item.active,
.tab-item:hover,
.honor-tab.active,
.honor-tab:hover {
  background: var(--color-primary);
  color: #fff;
}

.rank-list-panel {
  overflow: hidden;
}

.rank-list-panel .site-ad-slot--inline {
  margin: 0 24px;
}

.rank-cate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--color-primary-soft);
  padding: 10px 20px;
}

.rank-cate p {
  margin: 0;
}

.rank-cate .txt {
  font-size: 14px;
}

.rank-item-v {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 180px;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid #f0f0f0;
  padding: 24px;
}

.rank-item-v:last-child {
  border-bottom: 0;
}

.rank-cover {
  position: relative;
  width: 72px;
  height: 96px;
}

.rank-cover img {
  width: 72px;
  height: 96px;
  border-radius: 4px;
  object-fit: cover;
  background: #f5f5f5;
}

.rank-num {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-soft-3);
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.12);
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rank-item-v:nth-child(1) .rank-num {
  background: var(--color-gold);
}

.rank-item-v:nth-child(2) .rank-num {
  background: var(--color-silver);
}

.rank-item-v:nth-child(3) .rank-num {
  background: var(--color-bronze);
  color: #fff;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-all;
}

.rank-meta {
  color: var(--color-subtle);
  font-size: 13px;
  margin-bottom: 6px;
}

.rank-desc,
.book-desc {
  color: var(--color-muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-desc {
  max-height: 3.4em;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
}

.rank-author {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 2px;
}

.rank-update {
  color: var(--color-subtle);
  font-size: 12px;
}

.rank-heat {
  color: var(--color-hot);
  font-size: 13px;
}

.rank-actions {
  display: flex;
  gap: 10px;
}

.rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
}

.rank-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.rank-btn.secondary {
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.rank-btn.secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.books-extra--rank .rank-cat.active,
.books-extra--rank .rank-cat:hover,
.books-extra--rank .rank-period.active,
.books-extra--rank .rank-period:hover {
  background: var(--color-primary);
  color: #fff;
}

.books-extra--rank .rank-cate {
  background: #fff5f5;
}

.books-extra--list .rank-cat.active,
.books-extra--list .rank-cat:hover,
.books-extra--list .rank-period.active,
.books-extra--list .rank-period:hover {
  background: var(--color-primary);
  color: #fff;
}

.books-extra--list .rank-cate {
  background: var(--color-primary-soft);
}

.books-extra--list .rank-header {
  margin-bottom: 20px;
  padding: 20px;
}

.books-extra--list .rank-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.books-extra--list .rank-title-label {
  margin: 0;
  padding-right: 0;
  font-size: 20px;
  line-height: 30px;
}

.books-extra--list .rank-cats {
  gap: 16px;
  margin-bottom: 18px;
}

.books-extra--list .rank-cat {
  padding: 4px 18px;
  font-size: 15px;
}

.books-extra--list .rank-list {
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  counter-reset: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.books-extra--list .rank-list .site-ad-slot--inline {
  margin: 0 24px;
}

.books-extra--list .rank-item-v {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.books-extra--list .rank-cover {
  flex: 0 0 72px;
  margin-right: 24px;
}

.books-extra--list .rank-info {
  flex: 1;
  min-width: 0;
}

.books-extra--list .rank-heat {
  min-width: 90px;
  margin-left: 10px;
}

.books-extra--list .rank-actions {
  flex: 0 0 auto;
  margin-left: 24px;
}

@media (max-width: 760px) {
  .books-extra--list .rank-box,
  .books-extra--list .rank-cate {
    align-items: stretch;
    flex-direction: column;
  }

  .books-extra--list .rank-cats {
    margin-bottom: 0;
  }

  .books-extra--list .rank-item-v {
    flex-direction: column;
    gap: 12px;
  }

  .books-extra--list .rank-cover,
  .books-extra--list .rank-heat,
  .books-extra--list .rank-actions {
    margin-left: 0;
    margin-right: 0;
  }

  .books-extra--list .rank-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .books-extra--list .rank-actions .rank-btn {
    flex: 1 1 130px;
  }
}

.books-extra--rank .book-list-shell {
  border-radius: 0;
  background: #ededed;
  box-shadow: none;
}

.books-extra--rank .rank-cate {
  min-height: 40px;
  padding: 0 16px;
  background: #ededed;
}

.books-extra--rank .rank-cate p {
  flex: 1;
  color: #333;
  line-height: 40px;
}

.books-extra--rank .rank-heat {
  color: var(--color-hot);
}

.books-extra--rank .rank-num {
  background: rgba(255, 59, 48, 0.3);
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.1);
  color: #fff;
  font-size: 18px;
}

.books-extra--rank .rank-btn {
  background: var(--color-primary);
}

.books-extra--rank .rank-btn:hover {
  background: var(--color-primary-dark);
}

.books-extra--rank .rank-btn.secondary {
  border-color: var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.books-extra--rank .rank-btn.secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.books-extra--list .rank-heat {
  color: var(--color-primary);
}

.books-extra--list .rank-num {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.16);
  color: #fff;
  font-size: 18px;
}

.books-extra--list .rank-btn {
  background: var(--color-primary);
}

.books-extra--list .rank-btn:hover {
  background: var(--color-primary-dark);
}

.books-extra--list .rank-btn.secondary {
  border-color: var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.books-extra--list .rank-btn.secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.books-extra--rank .tab-list {
  margin-bottom: 12px;
  padding: 16px;
  justify-content: center;
  text-align: center;
}

.books-extra--rank .list-rank-head {
  align-items: center;
  margin-bottom: 20px;
}

.books-extra--rank .book-list {
  flex: 2;
  display: block;
  border-radius: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 15px;
}

.books-extra--rank .book-item {
  position: relative;
  display: flex;
  gap: 15px;
  width: 100%;
  min-height: 224px;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px;
}

.books-extra--rank .book-item:last-child {
  border-bottom: 0;
}

.books-extra--rank .book-cover-wrap {
  position: relative;
  display: block;
  flex: 0 0 165px;
}

.books-extra--rank .book-cover {
  width: 150px;
  height: 200px;
  border-radius: 5px;
  margin-right: 15px;
  object-fit: cover;
  background: #ededed;
}

.books-extra--rank .rank-num {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-soft-3);
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.books-extra--rank .book-item:nth-child(1) .rank-num {
  background: var(--color-gold);
}

.books-extra--rank .book-item:nth-child(2) .rank-num {
  background: var(--color-silver);
}

.books-extra--rank .book-item:nth-child(3) .rank-num {
  background: var(--color-bronze);
  color: #fff;
}

.books-extra--rank .rank-actions {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.books-extra--rank .rank-actions .rank-btn {
  padding: 0 10px;
}

.tab-list {
  justify-content: center;
  margin-bottom: 12px;
  padding: 16px;
  text-align: center;
}

.tab-item {
  border-radius: 8px;
  padding: 8px 16px;
}

.list-rank-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px;
}

.list-rank-head h1 {
  margin: 0;
  font-size: 18px;
}

.book-list-shell {
  background: #ededed;
  overflow: hidden;
}

.book-list-large {
  background: #fff;
  padding: 15px;
}

.book-item-large {
  display: flex;
  gap: 15px;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px;
}

.book-item-large:last-child {
  border-bottom: 0;
}

.book-cover-large {
  width: 150px;
  height: 200px;
  border-radius: 5px;
  object-fit: cover;
  background: #ededed;
}

.book-info-v2 {
  flex: 1;
  min-width: 0;
}

.book-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
}

.book-meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 8px;
}

.book-desc {
  height: 3em;
  max-height: 3em;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-all;
}

.book-row-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.book-score {
  color: var(--color-gold);
  font-size: 20px;
  font-weight: 700;
}

.book-score span {
  font-size: 12px;
  font-weight: 400;
}

.book-charter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-info);
  font-size: 12px;
  padding-top: 8px;
}

.author-info {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
}

.author-info .author-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.author-details p {
  margin: 0;
  color: #666;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 12px;
  background: var(--color-vip);
  color: var(--color-ink);
  margin-left: 10px;
  padding: 0 10px;
  font-size: 12px;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.author-stats .value,
.author-stats .author-stat-label {
  display: block;
}

.author-stats .value {
  color: #222;
  font-size: 20px;
  font-weight: 700;
}

.author-stats .author-stat-label {
  color: #999;
  font-size: 13px;
}

.author-content-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 30px;
}

.author-book-list,
.badges-section {
  padding: 15px;
}

.section-title {
  margin: 0 0 16px;
  color: #222;
  font-size: 18px;
}

.author-badges-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.author-badges-container > .empty-state,
.honor-badge-container > .empty-state {
  grid-column: 1 / -1;
}

.mini-badge {
  text-align: center;
  color: #666;
  font-size: 13px;
}

.mini-badge img {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.milestone-container {
  margin-top: 24px;
}

.year-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.milestones {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.milestones li {
  position: relative;
  border-left: 2px solid var(--color-primary);
  padding: 0 0 16px 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.milestones li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.milestones .date {
  display: block;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.milestones p {
  margin: 0;
  line-height: 1.6;
}

.honor-content {
  padding: 30px;
}

.honor-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.honor-top h1 {
  margin: 0;
  font-size: 24px;
}

.honor-top h1 span {
  font-size: 16px;
  font-weight: 400;
}

.honor-tabs {
  margin: 25px 0;
}

.honor-tab {
  border-radius: 20px;
  padding: 8px 20px;
}

.honor-badge-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.honor-badge {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 25px 20px;
  text-align: center;
}

.honor-badge img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 15px;
}

.honor-badge h2 {
  margin: 15px 0;
  color: #333;
  font-size: 18px;
}

.honor-badge p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}

.honor-badge p:last-child {
  color: var(--color-gold);
  font-weight: 500;
}

.user-center-page {
  width: min(1200px, calc(100% - 48px));
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.uc-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.uc-user-info,
.uc-menu,
.uc-main {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef5;
  box-shadow: 0 10px 28px rgba(24, 39, 75, 0.05);
}

.uc-user-info {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 22px 16px 16px;
  text-align: center;
}

.uc-user-info__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #9fd0ff 0%, #409eff 48%, #2f7fd6 100%);
  box-shadow: 0 10px 20px rgba(64, 158, 255, 0.22);
}

.uc-user-info__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f7fb;
  border: 3px solid #fff;
}

.uc-user-info__body {
  width: 100%;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.uc-user-info .nickname {
  margin: 0;
  color: #1f2d3d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-user-info__bio {
  margin: 0;
  color: #7a8a9c;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-crown {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7e2a0, #efcf6f);
  color: #5d4210;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.uc-sidebar-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px !important;
  line-height: 1.4;
  background: #f5f8fb;
}

.uc-sidebar-member.is-guest {
  color: #5b6b7c !important;
}

.uc-sidebar-member.is-vip {
  color: #8a6a1f !important;
  background: #fff8e8;
}

.uc-sidebar-member__level {
  font-weight: 700;
  color: #3d4f63;
}

.uc-sidebar-member__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.uc-member-link.is-guest,
.uc-member-link:not(.is-vip) {
  color: #fff;
  background: linear-gradient(135deg, #57adff 0%, #409eff 55%, #2f89e8 100%);
  box-shadow: 0 8px 18px rgba(64, 158, 255, 0.24);
}

.uc-member-link.is-vip {
  color: #5d4210;
  background: linear-gradient(135deg, #f7e2a0 0%, #efcf6f 100%);
  box-shadow: 0 8px 18px rgba(196, 148, 36, 0.2);
}

.uc-member-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.uc-menu {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
}

.uc-menu__item,
.uc-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: #3d4f63;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.uc-menu__item:hover,
.uc-menu a:hover {
  background: #f3f8ff;
  color: #2f7fd6;
}

.uc-menu__item.active,
.uc-menu a.active {
  background: linear-gradient(135deg, #57adff 0%, #409eff 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(64, 158, 255, 0.22);
}

.uc-menu__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-main {
  min-height: 560px;
  min-width: 0;
  padding: 24px 24px 28px;
}

.uc-main > .uc-tabs:first-child {
  margin-top: 0;
}

.uc-main > .member-container {
  margin-top: 0;
}

.uc-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid #ccc;
}

.uc-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
}

.uc-tab.active::after,
.uc-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
}

.uc-tab-flag {
  position: absolute;
  right: 0;
  top: 10px;
  color: #666;
  font-size: 14px;
}

.uc-tab-flag button {
  border: 0;
  background: transparent;
  color: #666;
}

.uc-batch-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.uc-bookshelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.uc-book,
.uc-add-book {
  min-height: 213px;
  display: flex;
  align-items: center;
  border: 1px solid #fff;
  padding: 20px;
  position: relative;
}

.uc-book:hover {
  border-color: #ddd;
  border-radius: 5px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.uc-book img {
  width: 130px;
  height: 173px;
  object-fit: cover;
  margin-right: 20px;
}

.uc-book-info {
  min-width: 0;
}

.uc-book-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.uc-book-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.read-button {
  min-width: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--color-primary);
  color: #fff;
  margin-top: 60px;
  padding: 0 20px;
}

.read-button:hover {
  color: #fff;
}

.del-button {
  border: 0;
  background: transparent;
  color: #444;
  margin-left: 20px;
  font-size: 14px;
}

.uc-layer {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  width: 130px;
  height: 173px;
  background: rgba(0, 0, 0, 0.3);
}

.uc-layer input {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
}

.uc-add-book {
  color: #888;
  font-size: 14px;
}

.uc-history-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.uc-search-record,
.uc-empty-state {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 16px 20px;
  background: #fff;
}

.uc-search-record h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.uc-search-record p,
.uc-empty-state {
  color: #666;
  font-size: 14px;
}

.uc-empty-state {
  justify-content: center;
  grid-column: 1 / -1;
}

.uc-add-plus {
  width: 130px;
  height: 173px;
  border: 1px dashed #ccc;
  background: #f0f0f0;
  color: #ccc;
  line-height: 170px;
  text-align: center;
  font-size: 80px;
  margin-right: 10px;
}

.uc-base-info {
  max-width: 800px;
  margin: 24px auto 0;
}

.uc-info-item {
  display: grid;
  grid-template-columns: 28px 120px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  font-size: 14px;
}

.uc-info-item .red-x,
.uc-info-item .blue-check {
  font-size: 16px;
}

.uc-info-item .red-x {
  color: red;
}

.uc-info-item .blue-check {
  color: var(--color-primary);
}

.uc-info-item .status {
  color: gray;
}

.uc-info-item .action,
.uc-info-item .cannel,
.uc-info-item .submit {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  text-align: right;
}

.uc-info-item .uc-info-input,
.uc-info-item .cannel,
.uc-info-item .submit {
  display: none;
}

.uc-info-item input {
  width: 260px;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
}

.uc-security-email-form {
  grid-column: 3 / 5;
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.uc-security-email-form input {
  width: min(320px, 100%);
}

.uc-profile-form {
  max-width: 800px;
  display: grid;
  gap: 18px;
  margin: 24px auto 0;
}

.uc-profile-field {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 14px;
}

.uc-profile-field span {
  font-weight: 600;
}

.uc-profile-field input,
.uc-profile-field textarea {
  width: 100%;
}

.uc-profile-field textarea {
  min-height: 112px;
  resize: vertical;
}

.uc-profile-actions {
  display: flex;
  justify-content: flex-end;
}

.uc-membership-status {
  margin: 8px 0 22px;
}

.uc-vip-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}

.uc-vip-card__shine {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 58%;
  height: 160%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.uc-vip-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: center;
  padding: 22px 24px;
  min-height: 132px;
}

.uc-vip-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.uc-vip-card__icon-mark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.uc-vip-card__content {
  min-width: 0;
}

.uc-vip-card__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.uc-vip-card__level {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.uc-vip-card__status {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.88;
  overflow-wrap: anywhere;
}

.uc-vip-card__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.uc-vip-card__perks li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.uc-vip-card__tip {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.82;
}

.uc-vip-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 148px;
}

.uc-vip-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.uc-vip-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.uc-vip-card__cta:active {
  transform: translateY(0);
}

.uc-vip-card__cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.uc-vip-card__cta:hover .uc-vip-card__cta-arrow {
  transform: translateX(2px);
}

.uc-vip-card__cta-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.78;
}

/* 非会员：主色渐变邀请卡 */
.uc-vip-card.is-guest {
  color: #153a63;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(135deg, #eaf4ff 0%, #d7ebff 48%, #c7e0ff 100%);
  border: 1px solid rgba(64, 158, 255, 0.22);
  box-shadow:
    0 14px 32px rgba(64, 158, 255, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.uc-vip-card.is-guest .uc-vip-card__icon {
  color: #fff;
  background: linear-gradient(160deg, #63b3ff 0%, #409eff 55%, #2f7fd6 100%);
  box-shadow:
    0 10px 18px rgba(64, 158, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.uc-vip-card.is-guest .uc-vip-card__cta {
  color: #fff;
  background: linear-gradient(135deg, #57adff 0%, #409eff 50%, #2f89e8 100%);
  box-shadow: 0 10px 20px rgba(64, 158, 255, 0.28);
}

.uc-vip-card.is-guest .uc-vip-card__cta:hover {
  box-shadow: 0 14px 24px rgba(64, 158, 255, 0.34);
}

/* VIP：金色尊享卡 */
.uc-vip-card.is-vip {
  color: #5d4210;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(135deg, #fff8e4 0%, #f7e2a0 46%, #efcf6f 100%);
  border: 1px solid rgba(196, 148, 36, 0.28);
  box-shadow:
    0 14px 32px rgba(196, 148, 36, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
}

.uc-vip-card.is-vip .uc-vip-card__icon {
  color: #fff8e4;
  background: linear-gradient(160deg, #e8c15a 0%, #d4a017 55%, #b8860b 100%);
  box-shadow:
    0 10px 18px rgba(184, 134, 11, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.uc-vip-card.is-vip .uc-vip-card__perks li,
.uc-vip-card.is-vip .uc-vip-card__tip {
  color: #6b4e12;
}

.uc-vip-card.is-vip .uc-vip-card__cta {
  color: #fff8e4;
  background: linear-gradient(135deg, #7a5a18 0%, #5d4210 100%);
  box-shadow: 0 10px 20px rgba(93, 66, 16, 0.24);
}

.uc-vip-card.is-vip .uc-vip-card__cta:hover {
  box-shadow: 0 14px 24px rgba(93, 66, 16, 0.3);
}

@media (max-width: 820px) {
  .uc-vip-card__body {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .uc-vip-card__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .uc-vip-card__cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .uc-vip-card__body {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .uc-vip-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .uc-vip-card__level {
    font-size: 22px;
  }
}

.uc-sign-container {
  padding-top: 20px;
}

.uc-sign-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-radius: 8px;
  background: #f8fbff;
  padding: 20px;
}

.uc-sign-header h1 {
  margin: 0;
  font-size: 22px;
}

.uc-points {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #666;
  line-height: 1.8;
}

.uc-points strong {
  color: var(--color-primary);
}

.uc-calendar {
  margin-top: 20px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow: hidden;
}

.uc-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
  padding: 12px 18px;
}

.uc-calendar-header h2 {
  margin: 0;
  font-size: 18px;
}

.uc-calendar-header span {
  color: #67c23a;
  font-size: 14px;
}

.uc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.uc-day {
  min-height: 82px;
  border: 0;
  border-right: 1px solid #ebeef5;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
  color: #555;
  display: grid;
  place-items: center;
}

.uc-day span,
.uc-day em {
  display: block;
  font-style: normal;
}

.uc-day.signed {
  background: #f0f9eb;
  color: #67c23a;
}

.uc-day.today {
  background: #ecf5ff;
  color: var(--color-primary);
  cursor: pointer;
}

.uc-day.past {
  color: #bbb;
  background: #fafafa;
}

.uc-sign-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.uc-invite-btn {
  border: 0;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
}

.uc-dialog-box {
  width: 500px;
  max-width: min(500px, calc(100vw - 32px));
}

.uc-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.uc-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
}

.uc-invite-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.uc-invite-qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.uc-invite-qrs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
}

.invite-title {
  font-weight: 700;
}

.invite-code {
  display: flex;
  margin-top: 10px;
}

.invite-code .input {
  min-width: 0;
  flex: 1;
}

.member-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 4px 28px;
}

.member-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px 28px 26px;
  border-radius: 22px;
  color: #14375f;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #dcefff 46%, #cfe5ff 100%);
  border: 1px solid rgba(64, 158, 255, 0.18);
  box-shadow: 0 16px 36px rgba(64, 158, 255, 0.12);
}

.member-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1d4f86;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(64, 158, 255, 0.18);
}

.member-hero__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.member-hero__desc {
  margin: 12px 0 0;
  max-width: 520px;
  color: #4d647c;
  font-size: 15px;
  line-height: 1.7;
}

.member-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.member-hero__highlights li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1f4f86;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.member-purchase-form {
  margin: 0;
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.member-layout__main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.member-section {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 10px 28px rgba(24, 39, 75, 0.05);
  padding: 22px;
}

.member-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.member-section__head h2 {
  margin: 0;
  color: #1f2d3d;
  font-size: 20px;
  font-weight: 800;
}

.member-section__head p {
  margin: 6px 0 0;
  color: #738193;
  font-size: 13px;
  line-height: 1.5;
}

.member-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
}

.member-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed #d7e1ec;
  color: #7a8a9c;
  background: #f8fafc;
  font-size: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 168px;
  padding: 18px 16px 16px;
  border: 1.5px solid #e4ebf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 158, 255, 0.45);
  box-shadow: 0 12px 24px rgba(64, 158, 255, 0.12);
}

/* 选中态只跟 radio:checked 走，避免服务端 active 类残留导致双选中 */
.plan-card:has(.plan-radio:checked),
.plan-card.is-selected {
  border-color: #409eff;
  background:
    linear-gradient(180deg, rgba(64, 158, 255, 0.08), transparent 40%),
    #fff;
  box-shadow:
    0 14px 28px rgba(64, 158, 255, 0.16),
    0 0 0 1px rgba(64, 158, 255, 0.12);
}

.plan-card.is-recommended {
  border-color: rgba(212, 160, 23, 0.45);
}

.plan-radio,
.payment-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7e2a0, #efcf6f);
  color: #5d4210;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(196, 148, 36, 0.2);
}

.plan-duration {
  color: #243447;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  padding-right: 56px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 8px;
  color: #d4a017;
  font-weight: 800;
  line-height: 1;
}

.price-symbol {
  font-size: 16px;
}

.price-number {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.plan-original-price {
  color: #9aa8b7;
  font-size: 12px;
  text-decoration: line-through;
}

.plan-savings {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 999px;
  color: #c05621;
  background: rgba(237, 137, 54, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.plan-desc {
  margin-top: auto;
  padding-top: 8px;
  color: #738193;
  font-size: 13px;
  line-height: 1.45;
}

.plan-check {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cfd9e4;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.plan-card:has(.plan-radio:checked) .plan-check,
.plan-card.is-selected .plan-check {
  border-color: #409eff;
  background:
    radial-gradient(circle at center, #409eff 0 42%, transparent 43%),
    #eaf4ff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.benefit-item {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e7eef6;
  padding: 16px;
}

.benefit-item__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef6ff;
  overflow: hidden;
}

.benefit-item__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.benefit-item__icon--fallback {
  color: #2f7fd6;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(160deg, #eaf4ff, #d7ebff);
}

.benefit-title {
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 800;
}

.benefit-item p {
  margin: 0;
  color: #738193;
  font-size: 13px;
  line-height: 1.55;
}

.member-checkout {
  position: sticky;
  top: 16px;
}

.member-checkout__card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 16px 36px rgba(24, 39, 75, 0.08);
  padding: 22px 20px;
}

.member-checkout__title {
  margin: 0;
  color: #1f2d3d;
  font-size: 20px;
  font-weight: 800;
}

.member-checkout__subtitle {
  margin: 6px 0 18px;
  color: #738193;
  font-size: 13px;
  line-height: 1.5;
}

.member-checkout__label {
  margin: 0 0 10px;
  color: #4b5b6c;
  font-size: 13px;
  font-weight: 700;
}

.payment-methods {
  margin-bottom: 18px;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1.5px solid #e4ebf3;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.payment-option.active,
.payment-option:has(.payment-radio:checked) {
  border-color: #409eff;
  background: #eef6ff;
  box-shadow: 0 8px 18px rgba(64, 158, 255, 0.12);
}

.payment-option__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(160deg, #57adff, #1677ff);
  flex: 0 0 auto;
}

.payment-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.payment-option__text strong {
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 800;
}

.payment-option__text em {
  color: #738193;
  font-size: 12px;
  font-style: normal;
}

.member-checkout__discount {
  margin-bottom: 18px;
  padding-top: 4px;
}

.member-checkout__bean {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #e7eef6;
  cursor: pointer;
}

.member-checkout__bean span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.member-checkout__bean strong {
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 700;
}

.member-checkout__bean em {
  color: #738193;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.price-summary-tip {
  margin: 8px 2px 0;
  color: #9aa8b7;
  font-size: 12px;
  line-height: 1.4;
}

.member-checkout__actions {
  display: grid;
  gap: 12px;
}

.member-checkout__submit {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #57adff 0%, #409eff 50%, #2f89e8 100%);
  box-shadow: 0 12px 24px rgba(64, 158, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.member-checkout__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(64, 158, 255, 0.34);
}

.member-checkout__submit:active {
  transform: translateY(0);
}

.member-footer-bottom {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #7a8a9c;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.member-footer-bottom a {
  color: #409eff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.member-footer-bottom a:hover {
  text-decoration: underline;
}

.member-purchase-result {
  display: grid;
  gap: 12px;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  background: #fbfcfe;
  margin-top: 16px;
  padding: 14px;
}

.member-purchase-result__body strong {
  color: #1f2d3d;
  font-size: 14px;
  line-height: 1.45;
}

.member-purchase-result p {
  color: #738193;
  font-size: 12px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.member-purchase-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-purchase-result.success {
  border-color: rgba(56, 161, 105, 0.35);
  background: rgba(56, 161, 105, 0.08);
}

.member-purchase-result.error {
  border-color: rgba(229, 62, 62, 0.28);
  background: rgba(229, 62, 62, 0.06);
}

.member-purchase-result.info {
  border-color: rgba(64, 158, 255, 0.28);
  background: rgba(64, 158, 255, 0.08);
}

.simple-page {
  width: min(980px, calc(100% - 32px));
  margin: 40px auto 64px;
}

.simple-panel {
  min-height: 360px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px hsla(0, 0%, 93.3%, 0.5);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.simple-status {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.simple-panel h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: 28px;
  font-weight: 700;
}

.simple-message {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--color-muted);
}

.simple-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.simple-search {
  min-width: min(360px, 76vw);
}

@media (max-width: 1000px) {
  .info-layout,
  .user-layout,
  .activity-card-v2,
  .news-item-v2 {
    grid-template-columns: 1fr;
  }

  .badge-grid,
  .activity-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-banner .login-modal {
    margin-left: 0;
  }

  .login-banner {
    position: relative;
    top: auto;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
  }

  .rank-box,
  .list-rank-head,
  .rank-cate,
  .book-row-actions,
  .honor-top {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-item-v,
  .author-info,
  .author-content-container {
    grid-template-columns: 1fr;
  }

  .rank-actions {
    margin-top: 4px;
  }

  .user-center-page {
    width: min(1200px, calc(100% - 32px));
    margin: 20px auto 40px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .uc-sidebar {
    position: static;
    gap: 12px;
  }

  .uc-user-info {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar body"
      "cta cta";
    align-items: center;
    justify-items: stretch;
    text-align: left;
    gap: 12px 14px;
    padding: 16px;
  }

  .uc-user-info__avatar {
    grid-area: avatar;
    width: 64px;
    height: 64px;
  }

  .uc-user-info__body {
    grid-area: body;
  }

  .uc-sidebar-member {
    justify-content: flex-start;
  }

  .uc-member-link {
    grid-area: cta;
  }

  .uc-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .uc-menu__item,
  .uc-menu a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-height: 40px;
  }

  .uc-main {
    padding: 18px 16px;
  }

  .uc-bookshelf,
  .uc-invite-content {
    grid-template-columns: 1fr;
  }

  .member-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits-grid,
  .payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .content-panel,
  .info-content,
  .user-panel,
  .author-register {
    padding: 16px;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .badge-grid,
  .activity-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

  .border-right {
    width: 100%;
    height: 1px;
  }

  .book-item-large {
    flex-direction: column;
  }

  .book-cover-large {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .author-stats,
  .author-badges-container {
    grid-template-columns: 1fr;
  }

  .uc-info-item,
  .member-plans,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .uc-sign-header,
  .uc-calendar-header,
  .uc-sign-footer,
  .uc-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .uc-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-layout {
    grid-template-columns: 1fr;
  }

  .member-checkout {
    position: static;
  }

  .member-hero {
    padding: 22px 18px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .member-layout {
    grid-template-columns: 1fr;
  }

  .member-checkout {
    position: static;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .member-section {
    padding: 16px;
  }
}

.home-page .author-item {
  min-width: 0;
  background: #f8fafd;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-page .author-profile {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}

.home-page .author-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #f2f4f7;
}

.home-page .author-info {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  padding: 0 0 0 15px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.home-page .author-name {
  margin-bottom: 8px;
}

.home-page .author-name h3 {
  width: 100%;
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.home-page .author-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.home-page .author-badges .author-badge-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: var(--color-vip);
  color: var(--color-ink);
  padding: 2px 8px;
  font-size: 12px;
}

.home-page .author-badges .author-badge-chip--works {
  background: var(--color-primary);
  color: #fff;
}

/* Legacy PC reference 1:1 page restoration */
#body.login-page {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #fff;
  background-size: 100% 50%;
  background-repeat: no-repeat;
}

#body.login-page .top {
  width: min(1200px, calc(100% - 32px));
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

#body.login-page .top img {
  height: 60px;
  width: auto;
}

#body.login-page .logo {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

#body.login-page .go-index {
  cursor: pointer;
}

#body.login-page .banner {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 500px;
  margin-top: -250px;
  background: url("/assets/img/loginBg.jpg") center / 100% 100% no-repeat;
}

#body.login-page .login-modal {
  position: relative;
  width: 400px;
  min-height: 450px;
  margin: 25px 0 0 50%;
  border-radius: 5px;
  background-color: #fff;
  padding: 0 0 28px;
}

#body.login-page .title {
  height: 80px;
  line-height: 80px;
  color: #222;
  font-size: 25px;
  font-weight: 600;
  text-align: center;
}

#body.login-page .login-form {
  padding: 0 40px;
}

#body.login-page .auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: -8px 0 18px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}

#body.login-page .auth-mode-switch button {
  height: 36px;
  border: 0;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 14px;
}

#body.login-page .auth-mode-switch button + button {
  border-left: 1px solid #dcdfe6;
}

#body.login-page .auth-mode-switch button.active {
  background: var(--color-primary);
  color: #fff;
}

#body.login-page .login-form label {
  display: block;
  margin-bottom: 18px;
}

#body.login-page .auth-error {
  margin: -4px 0 18px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

#body.login-page .login-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
}

#body.login-page .login-form input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: var(--color-primary);
}

#body.login-page .u-flex {
  display: flex;
  gap: 10px;
}

#body.login-page .u-flex button,
#body.login-page .auth-submit {
  height: 40px;
  min-height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  padding: 0 15px;
  cursor: pointer;
  white-space: nowrap;
}

#body.login-page .u-flex .auth-code-button {
  flex: 0 0 96px;
  width: 96px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

#body.login-page .u-flex .auth-code-button:disabled {
  background: #f5f7fa;
  color: #909399;
}

#body.login-page .auth-submit {
  width: 100%;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

#body.login-page .auth-meta {
  margin-top: -8px;
  margin-bottom: 14px;
  text-align: right;
}

#body.login-page .auth-meta a,
#body.login-page .auth-meta button,
#body.login-page .auth-switch a,
#body.login-page .auth-switch button {
  border: 0;
  background: transparent;
  color: #df1f20;
  cursor: pointer;
  padding: 0;
}

#body.login-page .auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #333;
  font-size: 14px;
}

#body.login-page .login-form .auth-agreement {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: -4px 0 16px;
  min-height: 24px;
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}

#body.login-page .login-form .auth-agreement .checkbox {
  width: 15px;
  height: 15px;
  border-radius: 0;
  margin-top: 4px;
}

#body.login-page .login-form .auth-agreement span {
  flex: 1;
  min-width: 0;
}

#body.login-page .login-form .auth-agreement a {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  #body.login-page {
    height: auto;
    min-height: 100vh;
  }

  #body.login-page .banner {
    position: relative;
    top: auto;
    min-height: 500px;
    height: auto;
    margin-top: 24px;
    padding: 25px 16px;
    display: flex;
    justify-content: center;
  }

  #body.login-page .login-modal {
    width: min(400px, 100%);
    margin: 0;
  }

  #body.login-page .login-form {
    padding: 0 24px;
  }
}

.filter-options .filter-option,
.sort-options label {
  background: transparent;
  color: #333;
  font-weight: 700;
}

.filter-options .filter-option:hover {
  background: transparent;
  color: var(--color-primary-dark);
}

.filter-options .filter-option.active,
.filter-options .filter-option.is-active {
  background: var(--color-primary);
  color: #fff;
}

.sort-options label:hover {
  background: var(--color-primary);
  color: #fff;
}

.breadcrumb {
  padding: 10px 0;
  color: #666;
  font-size: 13px;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.book-detail {
  background-color: #fff;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.book-detail > .book-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.book-detail .book-cover {
  flex: 0 0 auto;
}

.book-detail .book-cover img {
  width: 195px;
  height: 260px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-detail .book-meta {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
}

.book-detail .book-author-profile {
  flex: 0 0 260px;
  width: 260px;
  min-height: 190px;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background-color: #f9f9f9;
  color: var(--color-ink);
  margin-right: 50px;
  padding: 20px;
}

.book-detail .book-author-profile:hover {
  color: var(--color-ink);
  border-color: var(--color-line);
  background-color: #f9f9f9;
}

.book-detail .book-detail-side {
  flex: 0 0 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-right: 50px;
}

.book-detail .book-detail-side .book-author-profile {
  width: 100%;
  flex: none;
  margin-right: 0;
}

.book-detail .book-detail-side .site-ad-slot[data-ad-slot="book_detail_sidebar"] {
  min-height: 200px;
}

.book-detail .profile-top {
  display: flex;
  align-items: flex-start;
}

.book-detail .book-author-profile .author-avatar-image {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
}

.book-detail .book-author-profile .name {
  margin-bottom: 10px;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 700;
}

.book-detail .book-author-profile .author-sign-badge {
  display: inline-block;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 12px;
  background-color: var(--color-vip);
  color: var(--color-ink);
  margin-bottom: 20px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.book-detail .book-author-profile .info_2 {
  margin-top: 18px;
}

.book-detail .book-author-profile .stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.book-detail .book-author-profile .stat {
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}

.book-detail .book-author-profile .stat-value {
  margin-bottom: 5px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 400;
}

.book-detail .book-author-profile .stat-value span {
  display: block;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-detail .book-author-profile .stat-label {
  color: var(--color-muted);
  font-size: 12px;
}

.book-detail .book-title {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 700;
}

.book-detail .rating-score {
  color: var(--color-hot);
  font-size: 24px;
  font-weight: 700;
}

.book-detail .book-tags {
  margin-bottom: 15px;
}

.book-detail .tag {
  display: inline-block;
  border-radius: 3px;
  background-color: #f5f5f5;
  color: #666;
  margin-right: 8px;
  padding: 3px 10px;
  font-size: 13px;
}

.book-detail .book-author,
.book-detail .book-update {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.book-detail .book-author a,
.book-detail .book-update a {
  color: var(--color-primary);
}

.book-detail .book-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-top: 15px;
}

.book-detail .stat-item {
  color: var(--color-muted);
  font-size: 16px;
}

.book-detail .stat-value {
  color: var(--color-ink);
  font-weight: 700;
}

.book-detail .book-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-detail .book-detail-secondary-action:hover {
  background-color: #fff5f5;
}

.book-detail .content-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  padding: 0 20px;
}

.book-detail .content-tabs .tab {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 14px;
  height: auto;
  line-height: 32px;
  min-height: 0;
  padding: 0 20px;
  text-decoration: none;
}

.book-detail .content-tabs .tab.active,
.book-detail .content-tabs .tab.is-active {
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

.book-detail .tab-panel {
  padding: 0;
}

.book-detail .book-intro {
  border-bottom: 1px solid var(--color-line);
  padding: 0 20px;
}

.book-detail .book-intro p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
}

.book-detail .tab-panel > .site-ad-slot[data-ad-slot="book_detail_after_intro"],
.book-detail .tab-panel > .site-ad-slot[data-ad-slot="book_detail_after_catalog"] {
  min-height: 90px;
  margin: 18px 20px;
}

.book-detail .badge-container {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-line);
  padding: 18px 20px;
}

.book-detail .badge-container h2 {
  flex: 0 0 auto;
  color: var(--color-ink);
  font-size: 18px;
  margin: 0;
}

.book-detail .badge-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.book-detail .badge-item {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff8df;
}

.book-detail .badge-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.book-detail .view-more,
.book-detail .author-works .more {
  flex: 0 0 auto;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.book-detail .view-more:hover,
.book-detail .author-works .more:hover {
  color: var(--color-primary);
}

.book-detail .title-line {
  display: flex;
  justify-content: space-between;
  color: #666;
  margin-top: 20px;
  padding: 5px 20px;
}

.book-detail .title-line h2 {
  font-size: 18px;
}

.book-detail .span-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 0 20px 30px;
}

.book-detail .span-list span {
  display: inline-block;
  flex: 1 1 25%;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 0;
}

.book-detail .span-list a:hover {
  color: orange;
}

.book-detail .book-detail-empty {
  border-bottom: 1px solid #ddd;
  color: var(--color-muted);
  font-size: 14px;
  padding: 28px 20px 34px;
}

.book-detail .author-works {
  border-bottom: 1px solid #ddd;
  margin: 20px 0 30px;
  padding: 0 20px;
}

.book-detail .author-works h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  font-size: 18px;
  margin: 0 0 15px;
}

.book-detail .works-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.book-detail .work-item {
  flex: 1 1 25%;
  min-width: 0;
  display: flex;
  border-radius: 10px;
  background-color: #fff;
  cursor: pointer;
  padding: 20px;
}

.book-detail .image-container {
  flex: 0 0 90px;
  width: 90px;
  margin-right: 20px;
}

.book-detail .image-container a {
  display: block;
  width: 100%;
}

.book-detail .image-container img {
  width: 100%;
  max-width: none;
  height: 120px;
  border-radius: 5px;
  object-fit: cover;
}

.book-detail .text-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.book-detail .text-container .title {
  overflow: hidden;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-detail .text-container .title a:hover {
  color: var(--color-primary);
}

.book-detail .subtitle {
  height: 60px;
  display: -webkit-box;
  overflow: hidden;
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.book-detail .text-container .author {
  color: #999;
  font-size: 16px;
}

@media (max-width: 980px) {
  .book-detail > .book-info {
    flex-wrap: wrap;
  }

  .book-detail .book-author-profile {
    flex-basis: 100%;
    width: 100%;
    min-height: 0;
    margin-right: 0;
  }

  .book-detail .book-detail-side {
    flex-basis: 100%;
    width: 100%;
    margin-right: 0;
  }

  .book-detail .book-detail-side .site-ad-slot[data-ad-slot="book_detail_sidebar"] {
    display: none;
  }

  .book-detail .badge-container {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dynamics-page.content,
.badge-page.content {
  width: 100%;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
}

.dynamics-page .nav {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  color: #333;
  font-size: 20px;
  font-weight: 700;
}

.dynamics-page .new-list {
  padding-top: 10px;
}

.dynamics-page .new-list .item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #999;
}

.dynamics-page .new-list .site-ad-slot--inline[data-ad-slot="dynamics_list_inline"] {
  min-height: 90px;
  margin: 10px 0;
}

.dynamics-page .item span {
  display: inline-block;
}

.dynamics-page .item span.time {
  flex: 0 0 auto;
  margin-left: 24px;
  font-size: 14px;
}

.dynamics-page .item a:hover {
  color: orange;
}

.badge-page .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.badge-page .top h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.badge-page .top h2 span {
  font-size: 16px;
  font-weight: 400;
}

.badge-page .badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 30px 0;
}

.badge-page .badge-list .badge-gallery-item {
  flex: 1 1 20%;
  box-sizing: border-box;
  display: block;
  height: auto;
  min-width: 180px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: center;
}

.badge-page .badge-list .badge-gallery-item img {
  width: 140px;
  height: auto;
  margin: 0 auto;
}

.badge-page .badge-list .badge-gallery-item h3 {
  margin: 5px 0;
  color: #333;
  font-size: 16px;
}

.badge-page .badge-list .badge-gallery-item p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .main-content.home-page {
    width: calc(100% - 32px);
  }

  .home-page .board {
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .board-right {
    width: 100%;
  }

  .home-page .ranking-board-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .rank-list {
    width: 100%;
  }

  .home-page .authors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page .banner-slider {
    height: 180px;
  }

  .home-page .banner-arrow {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 22px;
  }

  .home-page .news-list {
    flex-direction: column;
  }

  .home-page .news-list li,
  .home-page .news-title,
  .home-page .text-limit {
    width: 100%;
  }

  .home-page .recommend {
    flex-direction: column;
  }

  .home-page .recommend .adaptation-item,
  .home-page .recommend .part2,
  .home-page .recommend .info {
    width: 100%;
  }

  .home-page .ranking-board-list,
  .home-page .authors-list,
  .home-page .home-update-header,
  .home-page .home-update-row {
    grid-template-columns: 1fr;
  }

  .home-page .home-update-header {
    display: none;
  }

  .home-page .home-update-row {
    gap: 4px;
  }
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  line-height: 1;
  text-decoration: none;
}

.site-logo-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.site-logo-text {
  white-space: nowrap;
}

.news-more {
  margin: 0;
  padding-right: 16px;
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
}

.section-header--center {
  align-items: center;
}

.author-cta {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.book-card-title {
  margin: 0;
  padding-bottom: 5px;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
}

.book-card-desc {
  margin: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.55;
}

.recommend .info .book-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding-top: 10px;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.recommend .info .book-card-meta span {
  margin-right: 0;
}

.mobile-read-dropdown {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  margin-top: 2px;
}

.mobile-read-trigger {
  min-height: 0;
  height: auto;
  padding: 8px 0 0;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.mobile-read-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 1002;
  width: 175px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  text-align: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mobile-read-dropdown:hover .mobile-read-popover,
.mobile-read-dropdown:focus-within .mobile-read-popover,
.reader-download-dropdown:hover .mobile-read-popover,
.reader-download-dropdown:focus-within .mobile-read-popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-read-code {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 8px;
  background: #fff;
}

.mobile-read-popover p {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.mobile-read-tip {
  margin-top: 10px;
  color: var(--color-primary);
  font-size: 14px;
}

.reader-tool-button {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #666;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.reader-tool-button--large {
  font-size: 14px;
}

.reader-tool-button:hover,
.reader-tool-button:focus {
  background: #f8fbff;
  color: var(--color-primary);
}

.reader-download-dropdown {
  position: relative;
  width: 100%;
  display: block;
}

.reader-download-popover {
  position: absolute;
  right: calc(100% + 12px);
  top: 0;
  z-index: 1001;
  transform: translate(6px, 0);
}

.reader-download-dropdown:hover .reader-download-popover,
.reader-download-dropdown:focus-within .reader-download-popover {
  transform: translate(0, 0);
}

.reader-floating-top {
  min-height: 0;
  border: 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.reader-title--centered {
  flex: 1 1 auto;
  margin-left: 220px;
}

.vip-buy-btn {
  width: 260px;
  height: 40px;
  min-height: 40px;
}

.vip-purchase-form {
  display: inline-flex;
  margin: 0;
}

@media (max-width: 1220px) {
  .site-page-container,
  .main-content {
    width: calc(100% - 32px);
  }
}

@media (max-width: 760px) {
  .site-ad-slot--inline,
  .site-ad-slot[data-ad-slot="home_hero_banner"],
  .site-ad-slot[data-ad-slot="home_section_between"],
  .site-ad-slot[data-ad-slot="home_latest_above"],
  .site-ad-slot[data-ad-slot="books_filter_top"],
  .site-ad-slot[data-ad-slot="search_result_top"],
  .site-ad-slot[data-ad-slot="rank_top_banner"],
  .site-ad-slot[data-ad-slot="book_detail_top"],
  .site-ad-slot[data-ad-slot="book_detail_after_intro"],
  .site-ad-slot[data-ad-slot="book_detail_after_catalog"],
  .site-ad-slot[data-ad-slot="dynamics_list_inline"],
  .site-ad-slot[data-ad-slot="reader_after_title"],
  .site-ad-slot[data-ad-slot="reader_side_rail_left"],
  .site-ad-slot[data-ad-slot="reader_side_rail_right"] {
    display: none;
  }

  .site-ad-slot {
    min-height: 72px;
  }

  .reader-container .site-ad-slot--reader-bottom,
  .reader-container .site-ad-slot[data-ad-slot="reader_bottom"] {
    min-height: 88px;
  }

  .header-top .site-page-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .logo a.site-logo-link {
    display: inline-flex;
    white-space: nowrap;
    font-size: 24px;
  }

  .site-logo-image {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .search-box {
    width: 100%;
    flex: none;
    margin: 0;
  }

  .search-box input[type="text"],
  .search-box input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  .user-actions {
    justify-content: flex-start;
  }

  .header-user {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header-user-name {
    max-width: min(180px, 52vw);
  }

  .nav-list,
  .nav-list.menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px 0;
  }

  .nav-list li,
  .nav-list.menu li {
    flex: 0 0 auto;
    margin: 0 14px 0 0;
  }

  .nav-list a,
  .nav-list.menu li > a {
    white-space: nowrap;
  }

  .reader-container .btn-reader-action-list,
  .btn-top {
    left: auto;
    right: 12px;
    margin-left: 0;
  }

  .reader-container .btn-reader-action-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin: 0 0 16px;
    background: transparent;
    text-align: left;
  }

  .reader-container .btn-reader-action-list .reader-tool-button {
    width: auto;
    min-width: 64px;
    flex: 1 1 88px;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 10px 8px;
  }

  .reader-container .btn-reader-action-list .reader-download-dropdown {
    width: auto;
    flex: 1 1 88px;
  }

  .reader-container .btn-reader-action-list .reader-download-dropdown .reader-tool-button {
    width: 100%;
  }

  .reader-title--centered {
    margin-left: 0;
    text-align: right;
  }

  .book-detail .book-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-read-popover {
    left: 0;
    right: auto;
  }

  .reader-download-popover {
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
  }
}

/* 书库查询页对齐旧 PC 参考项目的筛选、列表和分页视觉。 */
.filter-bar {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  flex: 0 0 70px;
  color: #999;
  font-size: 14px;
  line-height: 30px;
  white-space: nowrap;
}

.filter-options,
.filter-options .item-group,
.sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.filter-options {
  flex: 1 1 auto;
  min-width: 0;
}

.filter-options .item-group {
  width: 100%;
}

.category-item-group {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.category-primary-options,
.category-secondary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.category-secondary-options {
  padding: 10px 0 2px;
  border-top: 1px solid var(--color-line-light);
}

.category-secondary-options .filter-option {
  font-weight: 400;
}

.filter-options .filter-option,
.sort-options label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  padding: 4px 14px;
  color: #333;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-options .filter-option:hover {
  color: var(--color-primary-dark);
  background: transparent;
}

.filter-options .filter-option.active,
.filter-options .filter-option.is-active {
  color: #fff;
  background: var(--color-primary);
}

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.sort-options label {
  cursor: pointer;
}

.sort-options label:hover,
.sort-options label.active {
  color: #fff;
  background: var(--color-primary);
}

.sort-options input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
}

.sort-bar .inline-search,
.search-head .inline-search {
  min-width: 360px;
  gap: 10px;
}

.sort-bar .inline-search input,
.search-head .inline-search input {
  min-width: 240px;
}

.book-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  justify-content: normal;
  padding: 20px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.book-container .book-item {
  width: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 10px;
}

.book-container .book-item img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  background: #ededed;
}

.book-container .book-info-v2 {
  min-width: 0;
  padding-left: 0;
}

.book-container .book-info-v2 h3 {
  margin: 0 0 6px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.book-container .book-info-v2 h3 a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.book-container .book-info-v2 p {
  margin: 0 0 5px;
  padding-bottom: 0;
  color: #999;
  font-size: 12px;
  text-align: left;
}

.book-container .book-info-v2 p span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 4px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.book-container .book-info-v2 .introduce {
  display: -webkit-box;
  min-height: 0;
  height: auto;
  max-height: 3.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.55;
  word-break: break-all;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.book-container .book-info-v2 p.update {
  margin-top: 8px;
}

.search-page .book-container.search-results {
  padding: 20px;
  background: #fff;
}

.search-page .book-container .book-item {
  align-items: stretch;
}

.search-page .book-container .book-info-v2 {
  display: flex;
  min-height: 150px;
  flex-direction: column;
}

.search-page .book-container .book-info-v2 .introduce {
  display: -webkit-box;
  flex: 0 0 auto;
  min-height: 3em;
  height: 3em;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-page .book-container .book-info-v2 p.update {
  margin-top: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-container {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}

.page-btn {
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  color: #333;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.page-btn.active,
.page-btn:hover:not(.disabled):not(.ellipsis) {
  color: #fff;
  background: var(--color-primary);
}

.page-btn:focus-visible {
  outline: 2px solid rgba(64, 158, 255, 0.45);
  outline-offset: 2px;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.ellipsis {
  min-width: auto;
  padding: 0 4px;
  color: #666;
  background: transparent;
  cursor: default;
}

.search-panel .pagination {
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .sort-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-bar .inline-search,
  .search-head .inline-search {
    width: 100%;
    min-width: 0;
  }

  .sort-bar .inline-search input,
  .search-head .inline-search input {
    min-width: 0;
  }

  .book-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-row {
    display: block;
  }

  .filter-label {
    display: block;
    margin-bottom: 8px;
  }

  .filter-options,
  .filter-options .item-group,
  .sort-options {
    gap: 8px 10px;
  }

  .book-container {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .book-container .book-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
  }

  .book-container .book-item img {
    width: 92px;
    height: 126px;
  }

  .book-container .book-info-v2 p.update {
    margin-top: 8px;
  }

  .search-page .book-container .book-info-v2 {
    min-height: 126px;
  }

  .search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-btn {
    min-width: 32px;
    padding: 0 10px;
  }
}

/* 辰思看书书库页：按旧 PC Books/index.vue 还原排序栏和图文列表。 */
.books-page .filter-bar {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.books-page .category-secondary-options {
  padding: 10px;
  border-top: 0;
  background: #eee;
}

.books-page .filter-options .filter-option:hover {
  color: #e98319;
  background: transparent;
}

.books-page .filter-options .filter-option.active,
.books-page .filter-options .filter-option.is-active,
.books-page .filter-options .filter-option.active:hover,
.books-page .filter-options .filter-option.is-active:hover {
  color: #fff;
  background: rgb(64, 158, 255);
}

.books-page .sort-bar {
  justify-content: flex-start;
  gap: 15px;
}

.books-page .sort-options {
  gap: 15px;
}

.books-page .sort-options label {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  cursor: pointer;
}

.books-page .sort-options label:hover,
.books-page .sort-options label.active {
  background: transparent;
  color: #333;
}

.books-page .sort-options .books-sort-radio {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0 3px 0 0;
  accent-color: var(--color-primary);
  transition: none;
}

.books-page .sort-options .books-sort-radio:not(:checked) {
  border-color: #333;
}

.books-page .sort-options .books-sort-radio:checked {
  animation: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #fff inset;
}

.books-page .book-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.books-page .book-container .book-item {
  width: 32%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  box-sizing: border-box;
  padding: 10px;
}

.books-page .book-container .book-item img {
  width: 110px;
  height: 150px;
  flex: 0 0 110px;
  object-fit: cover;
  background: #ededed;
}

.books-page .book-container .book-info-v2 {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 0;
  padding-left: 15px;
}

.books-page .book-container .book-info-v2 h3 {
  margin: 0 0 6px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.books-page .book-container .book-info-v2 p {
  margin: 0;
  padding-bottom: 5px;
  color: #999;
  font-size: 12px;
  text-align: left;
}

.books-page .book-container .book-info-v2 p span {
  padding: 1px 2px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.books-page .book-container .book-info-v2 .introduce {
  display: -webkit-box;
  min-height: 3em;
  height: 3em;
  max-height: 3em;
  padding-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  word-break: break-all;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.books-page .book-container .book-info-v2 p.update {
  margin-top: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.books-page .empty-container {
  width: 100%;
}

@media (max-width: 960px) {
  .books-page .book-container .book-item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .books-page .book-container {
    padding: 14px;
  }

  .books-page .book-container .book-item {
    width: 100%;
    padding: 8px 0;
  }

  .books-page .book-container .book-item img {
    width: 92px;
    height: 126px;
    flex-basis: 92px;
  }

  .books-page .book-container .book-info-v2 {
    min-height: 126px;
  }

  .books-page .book-container .book-info-v2 p.update {
    margin-top: auto;
  }
}

/* 信息页按旧 PC 参考项目的 InfoLayout/Footer 页面细节还原。 */
.info-page-shell {
  width: 100%;
  margin: 0;
  padding: 16px 0 40px;
  background: #fff;
}

.info-page-container {
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  margin: 0 auto;
}

.info-page-shell .info-side,
.info-page-shell .info-content {
  border-radius: 0;
  box-shadow: none;
}

.info-page-shell .info-side {
  align-self: stretch;
  display: block;
  overflow: hidden;
  background: #f5f6f5;
}

.info-page-shell .info-side a {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  border-bottom: 0;
  padding: 12px;
  color: #333;
  font-size: 15px;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.info-page-shell .info-side a:hover {
  color: var(--color-primary);
  background: rgba(64, 158, 255, 0.08);
}

.info-page-shell .info-side a.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 400;
}

.info-page-shell .info-content {
  min-height: 420px;
  padding: 16px;
  background: #fff;
}

.info-page-shell .page-title {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.info-page-shell .page-body {
  padding: 24px 0;
  color: #333;
  font-size: 15px;
}

.info-page-shell .page-body > p {
  margin: 0 0 4px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  text-indent: 2rem;
}

.info-page-shell .policy-section {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.info-page-shell .policy-section + .policy-section {
  border-top: 0;
  margin-top: 14px;
  padding-top: 0;
}

.info-page-shell .policy-section h2,
.info-page-shell .policy-section h3 {
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.info-page-shell .policy-section p {
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
  text-indent: 0;
}

.info-page-shell .policy-section strong {
  color: #222;
  font-weight: 700;
}

.info-page-shell .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.info-page-shell .contact-card {
  min-height: 160px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px;
}

.info-page-shell .item-title {
  margin-bottom: 6px;
  color: #222;
  font-size: 18px;
  font-weight: 700;
}

.info-page-shell .item-quote {
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

.info-page-shell .item-remark {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.info-page-shell .page-body > p.report-note {
  width: min(600px, 100%);
  margin: 0 auto 40px;
  padding-bottom: 0;
  color: var(--color-danger);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  text-indent: 0;
}

.report-studio-form {
  max-width: 600px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.report-studio-form .form-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #606266;
  font-size: 14px;
}

.report-studio-form .form-row > span:first-child {
  text-align: right;
}

.report-studio-form input,
.report-studio-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 12px;
  color: #333;
  background: #fff;
  outline: none;
}

.report-studio-form textarea {
  min-height: 120px;
  padding-top: 10px;
  resize: vertical;
}

.report-studio-form input:focus,
.report-studio-form textarea:focus {
  border-color: var(--color-primary);
}

.report-studio-form .report-evidence-row,
.report-studio-form .report-desc-row {
  align-items: start;
}

.report-evidence-body > p {
  margin: 0 0 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  text-indent: 0;
}

.report-upload-field + .report-upload-field {
  margin-top: 14px;
}

.upload-limit {
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-indent: 0;
}

.avatar-uploader {
  position: relative;
  width: 200px;
  height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  background: #e7e3ce;
  color: var(--color-danger);
  cursor: pointer;
}

.avatar-uploader input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.avatar-uploader-icon {
  font-size: 34px;
  line-height: 1;
}

.avatar-uploader strong {
  font-size: 14px;
  font-weight: 700;
}

.report-submit-row {
  padding: 6px 0 0 108px;
}

.report-submit-row .report-submit-button {
  min-width: 92px;
}

@media (max-width: 760px) {
  .info-page-container {
    grid-template-columns: 1fr;
  }

  .info-page-shell .info-side {
    display: flex;
    overflow-x: auto;
  }

  .info-page-shell .info-side a {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .info-page-shell .contact-grid,
  .report-studio-form .form-row {
    grid-template-columns: 1fr;
  }

  .report-studio-form .form-row > span:first-child {
    text-align: left;
  }

  .report-submit-row {
    padding-left: 0;
  }
}

/* 商城/订单旧 Vue 页面迁移为 Go SSR 后的只读展示样式。 */
.shop-page {
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 48px;
  color: var(--color-ink);
}

.shop-toolbar,
.shop-notice,
.shop-panel,
.shop-section,
.shop-detail,
.shop-products-layout,
.shop-hero,
.shop-cashier,
.shop-merchant {
  margin-bottom: 20px;
}

.shop-toolbar,
.shop-notice,
.shop-panel,
.shop-section,
.shop-detail,
.shop-products-layout,
.shop-cashier {
  background: #fff;
  box-shadow: var(--shadow-panel);
}

.shop-toolbar {
  border-bottom: 2px solid var(--color-primary);
}

.shop-toolbar-inner {
  min-height: 56px;
  display: grid;
  grid-template-columns: 200px minmax(260px, 1fr) 160px;
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
}

.shop-category-trigger {
  position: relative;
  height: 40px;
}

.shop-category-trigger > button {
  width: 200px;
  height: 40px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: var(--color-primary);
  color: #fff;
}

.shop-category-popover {
  position: absolute;
  left: 0;
  top: 40px;
  z-index: 10;
  width: 860px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shop-search {
  justify-self: center;
  width: min(560px, 100%);
}

.shop-search input {
  min-width: 0;
}

.shop-cart-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 0 18px;
  color: var(--color-muted);
}

.shop-notice {
  border-left: 4px solid var(--color-warning);
  padding: 10px 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.shop-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: stretch;
  background: transparent;
  box-shadow: none;
}

.shop-category-panel,
.shop-banner,
.shop-quick {
  background: #fff;
  box-shadow: var(--shadow-panel);
}

.shop-category-menu {
  min-height: 300px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.shop-category-menu li {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.shop-category-menu li:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.shop-category-menu li > a {
  font-weight: 700;
}

.shop-category-menu li > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-subtle);
}

.shop-banner {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.shop-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.shop-banner-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 260px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  padding: 12px 24px;
  text-align: center;
}

.shop-banner-text h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.shop-banner-text p {
  margin: 8px 0 0;
}

.shop-quick {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.shop-quick a,
.shop-quick button,
.shop-row-actions button,
.shop-cart-footer button,
.shop-address-list button,
.shop-order-item header button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 0;
  text-align: left;
}

.shop-quick a,
.shop-quick button {
  min-height: 34px;
  border-bottom: 1px solid var(--color-line-light);
}

.shop-section,
.shop-panel,
.shop-cashier {
  border-radius: 8px;
  padding: 20px;
}

.shop-section-head,
.shop-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.shop-section-head h1,
.shop-section-head h2,
.shop-order-head h1,
.shop-panel h1,
.shop-panel h2 {
  margin: 0;
  font-size: 20px;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.shop-product-grid--home {
  grid-template-columns: 260px repeat(3, minmax(0, 1fr));
}

.shop-product-card {
  min-width: 0;
  border: 1px solid var(--color-line-light);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.shop-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg);
}

.shop-product-card--ad img {
  height: 100%;
  aspect-ratio: auto;
}

.shop-product-info {
  padding: 12px;
}

.shop-product-info h2,
.shop-mini-product h3,
.shop-cart-product h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.4;
}

.shop-product-info h2,
.shop-mini-product h3 {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-info p,
.shop-mini-product p,
.shop-price span,
.shop-summary .total strong,
.shop-cashier-amount strong {
  color: var(--color-hot);
  font-weight: 700;
}

.shop-product-info p,
.shop-product-info span,
.shop-mini-product p,
.shop-mini-product span {
  margin: 6px 0 0;
  font-size: 14px;
}

.shop-product-info span,
.shop-mini-product span,
.shop-cart-product p,
.shop-bean-note {
  color: var(--color-subtle);
}

.shop-products-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  background: transparent;
  box-shadow: none;
}

.shop-side,
.shop-product-list {
  min-width: 0;
}

.shop-store-card,
.shop-side-block,
.shop-product-list {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-panel);
  padding: 16px;
}

.shop-store-card {
  margin-bottom: 20px;
  text-align: center;
}

.shop-store-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.shop-store-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.shop-store-card p {
  color: var(--color-muted);
}

.shop-store-card p span {
  color: var(--color-gold);
}

.shop-store-card div:last-child {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.shop-side-block h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.shop-mini-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--color-line-light);
}

.shop-mini-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.shop-detail {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  border-radius: 8px;
  padding: 20px;
}

.shop-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-line-light);
  border-radius: 8px;
  object-fit: cover;
}

.shop-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 10px;
  margin-top: 12px;
}

.shop-thumbs button {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-line-light);
  border-radius: 4px;
  background: #fff;
  padding: 0;
}

.shop-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail-main h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.shop-price {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 18px;
}

.shop-price span {
  font-size: 28px;
}

.shop-price del,
.shop-price em {
  color: var(--color-subtle);
  font-style: normal;
}

.shop-option-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-option-row > span {
  color: var(--color-muted);
}

.shop-option {
  min-height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: #fff;
  margin-right: 8px;
  padding: 0 14px;
}

.shop-option.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.shop-counter {
  display: flex;
  align-items: center;
  gap: 0;
}

.shop-counter button,
.shop-readonly-counter span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  background: #fff;
}

.shop-counter output {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.shop-counter em {
  margin-left: 12px;
  color: var(--color-subtle);
  font-style: normal;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.shop-detail-images {
  display: grid;
  gap: 12px;
}

.shop-detail-images img {
  width: 100%;
  border-radius: 8px;
}

.shop-cart-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line-light);
}

.shop-cart-title,
.shop-cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 110px 100px 110px 120px;
  align-items: center;
  gap: 16px;
}

.shop-cart-title {
  min-height: 44px;
  color: var(--color-muted);
  font-weight: 700;
}

.shop-cart-store {
  border: 1px solid var(--color-line-light);
  margin-bottom: 16px;
}

.shop-cart-store h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid var(--color-line-light);
  background: var(--color-bg);
  padding: 10px 14px;
  font-size: 15px;
}

.shop-cart-item {
  padding: 14px;
  border-bottom: 1px solid var(--color-line-light);
}

.shop-cart-item:last-child {
  border-bottom: 0;
}

.shop-cart-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.shop-cart-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.shop-cart-product h3 {
  font-size: 14px;
}

.shop-cart-product p {
  margin: 5px 0 0;
  font-size: 13px;
}

.shop-row-actions {
  display: grid;
  gap: 4px;
}

.shop-cart-footer {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--color-line-light);
  padding-top: 14px;
}

.shop-cart-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-cart-footer strong {
  color: var(--color-hot);
  font-size: 20px;
}

.shop-order-head {
  align-items: flex-start;
}

.shop-order-search {
  display: flex;
  width: min(360px, 100%);
}

.shop-order-search input {
  min-width: 0;
}

.shop-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--color-line-light);
  margin-bottom: 20px;
}

.shop-tabs a {
  padding: 10px 0;
  color: var(--color-muted);
}

.shop-tabs a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.shop-order-item {
  border: 1px solid var(--color-line-light);
  margin-bottom: 16px;
}

.shop-order-item header {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--color-line-light);
  background: var(--color-bg);
  padding: 10px 14px;
  color: var(--color-subtle);
}

.shop-order-item header span:nth-child(2) {
  flex: 1;
}

.shop-order-item em {
  color: var(--color-ink);
  font-style: normal;
}

.shop-order-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 100px 90px 110px;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.shop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.shop-steps span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: var(--color-muted);
}

.shop-steps span.active {
  background: var(--color-primary);
  color: #fff;
}

.shop-checkout {
  display: grid;
  gap: 20px;
}

.shop-address-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-address-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-line-light);
  border-radius: 4px;
  padding: 10px;
}

.shop-address-list li.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.shop-address-list span {
  color: var(--color-primary);
  font-weight: 700;
}

.shop-address-list p {
  margin: 0;
  color: var(--color-muted);
}

.shop-payment-options {
  display: flex;
  gap: 10px;
}

.shop-payment-options button {
  min-height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: #fff;
  padding: 0 16px;
}

.shop-payment-options button.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.shop-cart-title--settle,
.shop-settle-item {
  grid-template-columns: minmax(0, 1fr) 110px 90px 110px;
}

.shop-settle-item {
  display: grid;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-line-light);
  padding: 14px 0;
}

.shop-summary {
  justify-self: end;
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-panel);
  padding: 20px;
}

.shop-summary div {
  display: flex;
  justify-content: space-between;
}

.shop-summary .total {
  color: var(--color-hot);
  font-size: 18px;
}

.shop-summary p {
  margin: 0;
  color: var(--color-muted);
}

.shop-cashier {
  width: min(800px, 100%);
  margin: 20px auto 48px;
}

.shop-cashier header {
  border-bottom: 1px solid var(--color-line-light);
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.shop-cashier header h1 {
  margin: 0 0 10px;
}

.shop-cashier header p {
  margin: 4px 0;
  color: var(--color-muted);
}

.shop-cashier header strong {
  color: var(--color-danger);
}

.shop-pay-methods {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.shop-cashier-amount {
  text-align: right;
}

.shop-success {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 30px auto;
  color: var(--color-success);
}

.shop-success span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(103, 194, 58, 0.12);
  font-size: 28px;
}

.shop-success p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.shop-success em {
  color: var(--color-subtle);
  font-style: normal;
  text-align: center;
}

.shop-merchant .download-title,
.shop-merchant .download-box,
.shop-merchant .download-list {
  width: 100%;
}

@media (max-width: 980px) {
  .shop-toolbar-inner,
  .shop-hero,
  .shop-products-layout,
  .shop-detail {
    grid-template-columns: 1fr;
  }

  .shop-category-popover {
    width: min(860px, calc(100vw - 32px));
  }

  .shop-product-grid,
  .shop-product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-cart-title {
    display: none;
  }

  .shop-cart-item,
  .shop-order-content,
  .shop-settle-item {
    grid-template-columns: 1fr;
  }

  .shop-cart-footer,
  .shop-order-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shop-product-grid,
  .shop-product-grid--home,
  .shop-steps {
    grid-template-columns: 1fr;
  }

  .shop-category-menu li,
  .shop-address-list li {
    grid-template-columns: 1fr;
  }

  .shop-banner-text h1 {
    font-size: 30px;
  }

  .shop-thumbs {
    grid-template-columns: repeat(4, 56px);
  }

  .shop-thumbs button {
    width: 56px;
    height: 56px;
  }
}
