/* 10Theme Novel SEO - Shared Structural & Accessibility Baseline */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

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

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

button, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Header Base */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 2px;
}

@media (min-width: 860px) {
  .main-nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Mobile quick-nav bar (keeps header compact <= 15% mobile height) */
.mobile-nav-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 16px;
  font-size: 13px;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-strip a {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .mobile-nav-strip {
    display: none;
  }
}

/* Sections & Grids */
.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  text-wrap: balance;
}

.section-title-sm {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.section-note {
  margin: 0;
  font-size: 13px;
  max-width: 440px;
}

/* Search & Hot Queries */
.hero-search-wrap {
  margin-top: 20px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
}

.hot-queries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 13px;
}

.query-link {
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-status {
  margin: 8px 0 0;
  font-size: 13px;
  min-height: 20px;
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 680px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 18px;
}

@media (min-width: 520px) {
  .work-card {
    grid-template-columns: 120px 1fr;
  }
}

.work-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-meta {
  margin: 0 0 6px;
  font-size: 12px;
}

.work-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.work-synopsis, .work-reason {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.work-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.work-kw {
  font-size: 12px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 16px;
  cursor: pointer;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.category-name {
  margin: 0;
  font-size: 16px;
}

.category-flag {
  font-size: 11px;
  font-weight: 700;
}

.category-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

.category-action {
  font-size: 12px;
  font-weight: 600;
}

/* Rankings */
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.rank-tab {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rankings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .rankings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .rankings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rank-board {
  padding: 18px;
  transition: opacity 0.2s ease;
}

.rank-board.is-dimmed {
  opacity: 0.42;
}

.rank-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.rank-board-title {
  margin: 0;
  font-size: 16px;
}

.rank-board-tag {
  font-size: 12px;
}

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

.rank-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
}

.rank-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.rank-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.rank-book-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.rank-cat {
  font-size: 12px;
  white-space: nowrap;
}

/* Free Zone */
.free-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}

@media (min-width: 860px) {
  .free-box {
    grid-template-columns: 1.35fr 1fr;
    padding: 32px;
  }
}

.free-lead, .free-compliance {
  margin: 12px 0 0;
  font-size: 15px;
}

.free-topics-title {
  margin: 0 0 12px;
  font-size: 15px;
}

.free-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.free-topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
}

/* Classic Works */
.classic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .classic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .classic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.classic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.classic-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.classic-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.classic-synopsis, .classic-reason {
  margin: 0 0 8px;
  font-size: 14px;
}

.classic-kws {
  margin: 0 0 14px;
  font-size: 12px;
}

/* Adult 18+ Section */
.age-gate-banner, .compliance-notice {
  padding: 24px;
}

.compliance-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compliance-text {
  margin: 8px 0 0;
  font-size: 14px;
  max-width: 720px;
}

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.age-status {
  margin: 12px 0 0;
  font-size: 13px;
}

.adult-shelf {
  margin-top: 24px;
}

.adult-kw-note {
  margin: 16px 0 0;
  font-size: 13px;
}

/* SEO Essay & FAQ */
.seo-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .seo-faq-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.seo-essay-text {
  margin: 14px 0 18px;
  font-size: 15px;
  line-height: 1.85;
}

.focus-heading {
  margin: 0 0 6px;
  font-size: 14px;
}

.focus-items {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.faq-list {
  margin-top: 14px;
}

.faq-item {
  padding: 14px 0;
}

.faq-question {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.faq-answer {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-domain {
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
}

.footer-about, .footer-contact {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
  font-size: 14px;
}

.legal-clauses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

/* Modal */
.book-modal[hidden] {
  display: none;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.book-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 24px;
  z-index: 1;
}

.book-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.book-modal-meta {
  margin: 0 0 4px;
  font-size: 12px;
}

.book-modal-title {
  margin: 0;
  font-size: 22px;
}

.book-modal-synopsis, .book-modal-reason, .book-modal-keywords, .book-modal-legal {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
}

.book-modal-legal {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .rank-board {
    transition: none;
  }
}


/* Theme 006: 赤焰文学 - 热血玄幻仙侠东方幻想风 */
body.theme-006 {
  background-color: #FDF8F5;
  color: #231410;
}

.theme-006 .site-header {
  background: #230F0C;
  color: #FDF8F5;
  border-bottom: 2px solid #B91C1C;
}

.theme-006 .brand-mark {
  background: #B91C1C;
  color: #FDE68A;
  border: 1px solid #F59E0B;
  border-radius: 4px;
}

.theme-006 .nav-link {
  color: #F3D9D0;
}

.theme-006 .nav-link:hover {
  color: #FCD34D;
}

.theme-006 .mobile-nav-strip {
  background: #351612;
  color: #FDE68A;
}

.theme-006 .btn-primary,
.theme-006 .btn-header {
  background: #B91C1C;
  color: #FFFFFF;
  border-color: #DC2626;
  border-radius: 4px;
}

.theme-006 .btn-outline,
.theme-006 .btn-card,
.theme-006 .btn-ghost {
  background: #FFFBF8;
  color: #991B1B;
  border-color: #D9A796;
  border-radius: 4px;
}

.theme-006 .hero--fantasy .btn-outline {
  background: transparent;
  color: #FDE68A;
  border-color: #F59E0B;
}

.theme-006 .btn-ghost.is-active {
  background: #B91C1C;
  color: #FFFFFF;
}

.theme-006 .hero--fantasy {
  background: linear-gradient(135deg, #2A0E0B 0%, #451510 55%, #1E0D0B 100%);
  color: #FDF8F5;
  padding: 44px 0;
  border-bottom: 3px solid #D97706;
}

.theme-006 .hero-fantasy-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 920px) {
  .theme-006 .hero-fantasy-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.theme-006 .hero-kicker {
  color: #FBBF24;
  letter-spacing: 0.1em;
}

.theme-006 .section-kicker {
  color: #B91C1C;
}

.theme-006 .hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.24;
  text-wrap: balance;
}

.theme-006 .hero-lead {
  color: #F3D9D0;
}

.theme-006 .hero-sub {
  font-size: 14px;
  color: #D9B7AB;
}

.theme-006 .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.theme-006 .hero-fantasy-banner {
  border: 2px solid #D97706;
  padding: 6px;
  background: #1A0907;
}

.theme-006 .hero-fantasy-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.theme-006 .search-input {
  background: #FFFBF8;
  color: #231410;
  border: 1px solid #D97706;
  border-radius: 4px;
}

.theme-006 .query-link {
  color: #FCD34D;
}

.theme-006 .work-card,
.theme-006 .classic-card,
.theme-006 .rank-board,
.theme-006 .category-card,
.theme-006 .free-box,
.theme-006 .compliance-notice {
  background: #FFFFFF;
  border: 1px solid #E6CFC4;
}

.theme-006 .work-card--fantasy {
  border-top: 3px solid #B91C1C;
}

.theme-006 .work-meta,
.theme-006 .work-kw,
.theme-006 .classic-card-top,
.theme-006 .classic-kws,
.theme-006 .section-note,
.theme-006 .category-desc,
.theme-006 .rank-cat {
  color: #6B4E45;
}

.theme-006 .rank-num,
.theme-006 .category-action {
  color: #B91C1C;
}

.theme-006 .rank-tab {
  background: #F6EAE2;
  border: 1px solid #DFC2B4;
}

.theme-006 .rank-tab.is-active {
  background: #B91C1C;
  color: #FFFFFF;
  border-color: #B91C1C;
}

.theme-006 .rank-board-head,
.theme-006 .rank-item,
.theme-006 .free-topic-item,
.theme-006 .faq-item {
  border-bottom: 1px solid #EFE0D7;
}

.theme-006 .site-footer {
  background: #230F0C;
  color: #DFC7BE;
}

.theme-006 .footer-brand {
  color: #FDE68A;
}

.theme-006 .legal-clauses,
.theme-006 .footer-bottom {
  border-top: 1px solid #4A241E;
}

.theme-006 .book-modal-panel {
  background: #FDF8F5;
  border: 2px solid #B91C1C;
}
