
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 14px/1.6 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", SimSun, sans-serif;
  color: #333333;
  background-color: #E9FAFF;
  min-height: 100vh;
}
a { color: #006699; text-decoration: none; }
a:hover { color: #E63F00; text-decoration: underline; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 顶部与导航 */
.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  display: flex;
  flex-direction: column;
}
.site-logo em {
  font-size: 26px;
  font-weight: 800;
  color: #007BB6;
  font-style: normal;
  letter-spacing: -0.5px;
}
.site-logo span {
  font-size: 11px;
  color: #557788;
  letter-spacing: 0.5px;
}
.header-badge {
  font-size: 12px;
  color: #007BB6;
  background: #E1ECED;
  border: 1px solid #88C6E5;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 12px;
}
.search-form {
  display: flex;
  align-items: center;
}
.search-input {
  width: 260px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid #007BB6;
  border-right: none;
  font-size: 12px;
  background: #FFFFFF;
}
.search-input:focus { outline: none; }
.search-btn {
  height: 34px;
  padding: 0 16px;
  background: #007BB6;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.search-btn:hover { background: #005F8D; }

.site-nav {
  max-width: 1280px;
  margin: 0 auto 10px;
  background: #007BB6;
  border-bottom: 2px solid #005F8D;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  display: inline-block;
  border-right: 1px solid #1E8EC4;
}
.site-nav a:hover {
  background: #005F8D;
  text-decoration: none;
}
.site-nav a.nav-action {
  margin-left: auto;
  border-right: none;
  color: #FFFA9E;
}

/* 经典卡片与边框 */
.box {
  background: #FFFFFF;
  border: 2px solid #88C6E5;
  margin-bottom: 10px;
}
.box-header {
  background: #E1ECED;
  border-bottom: 1px solid #88C6E5;
  padding: 0 12px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #004D73;
  font-weight: bold;
  font-size: 13px;
}
.box-header a { font-size: 12px; font-weight: normal; }

/* 首页布局 */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #FEF9EF;
}
.feature-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px dashed #B5D9EC;
  padding-bottom: 8px;
}
.book-cover-link {
  display: block;
  flex-shrink: 0;
}
.book-cover-img {
  width: 84px;
  height: 112px;
  display: block;
  border-radius: 3px;
  border: 1px solid #88C6E5;
  box-shadow: 0 2px 5px rgba(0, 77, 115, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-cover-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 77, 115, 0.26);
}
.book-detail-cover-wrap {
  width: 132px;
  height: 176px;
  flex-shrink: 0;
  position: relative;
}
.book-detail-img {
  width: 132px;
  height: 176px;
  display: block;
  border-radius: 4px;
  border: 2px solid #88C6E5;
  box-shadow: 0 4px 12px rgba(0, 77, 115, 0.2);
}
.book-cover-mock {
  width: 80px;
  height: 108px;
  background: #E1ECED;
  border: 1px solid #88C6E5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  flex-shrink: 0;
  position: relative;
}
.book-cover-mock .tag { font-size: 10px; color: #007BB6; background: #FFF; padding: 1px 4px; border: 1px solid #B5D9EC; }
.book-cover-mock .name { font-size: 12px; font-weight: bold; color: #004D73; margin: 4px 0; }
.book-cover-mock .author { font-size: 10px; color: #666; }

.feature-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted #88C6E5;
  padding-bottom: 3px;
}
.feature-title a { font-size: 14px; font-weight: bold; }
.feature-title span { font-size: 12px; color: #777; }
.feature-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-list { padding: 8px 12px; }
.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed #E1ECED;
}
.rank-num {
  width: 18px;
  height: 18px;
  background: #7BA7BC;
  color: #FFF;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}
.rank-num.top { background: #007BB6; }

/* 分类矩阵 */
.cat-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.cat-item-list { padding: 8px 12px; }
.cat-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #E1ECED;
}

/* 经典数据表格 */
.table-data {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table-data th {
  background: #E1ECED;
  color: #004D73;
  font-weight: bold;
  font-size: 13px;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #88C6E5;
}
.table-data td {
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px dashed #B5D9EC;
  color: #555;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.table-data tr:hover td { background: #F0F8FC; }

/* 书籍详情页 */
.book-header-box {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #FFFFFF;
}
.book-detail-cover {
  width: 130px;
  height: 170px;
  background: #E1ECED;
  border: 2px solid #88C6E5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  flex-shrink: 0;
  position: relative;
}
.rating-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #FF6600;
  color: #FFF;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
}
.book-detail-cover h2 { font-size: 15px; font-weight: bold; color: #004D73; margin: 8px 0; }
.book-main-info { flex: 1; }
.book-main-info h1 {
  font-size: 22px;
  color: #004D73;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #88C6E5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.book-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
}
.status-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
}
.status-pill.completed { background: #E6F7E6; color: #008000; border: 1px solid #A3E0A3; }
.status-pill.serial { background: #EBF3F8; color: #006699; border: 1px solid #88C6E5; }
.auth-pill {
  background: #FFF4E5;
  color: #D9531E;
  border: 1px solid #FAD1B2;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  margin-left: 6px;
}

.book-intro-box {
  border-top: 1px dotted #88C6E5;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}
.official-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #007BB6;
  color: #FFF;
  font-size: 12px;
  font-weight: bold;
  border-radius: 2px;
}
.official-badge:hover {
  background: #005F8D;
  color: #FFF;
  text-decoration: none;
}

/* 章节目录三列排版 */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 16px;
  padding: 10px 12px;
}
.chapter-item {
  height: 32px;
  line-height: 32px;
  border-bottom: 1px dashed #B5D9EC;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.chapter-item:hover { background: #F0F8FC; }

/* 智能作品导读 FAQ 区 */
.faq-box {
  padding: 12px 16px;
  background: #FFFFFF;
}
.faq-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #B5D9EC;
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q {
  font-weight: bold;
  color: #004D73;
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}
.faq-q::before {
  content: '问';
  display: inline-block;
  background: #007BB6;
  color: #FFF;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-right: 6px;
}
.faq-a {
  font-size: 12px;
  color: #555555;
  line-height: 1.5;
  padding-left: 20px;
}

/* 页脚 */
.site-footer {
  border-top: 2px solid #88C6E5;
  background: #E1ECED;
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: #556677;
  margin-top: 20px;
}
.site-footer p { margin-bottom: 6px; }

@media (max-width: 768px) {
  .hero-grid, .cat-matrix, .feature-list, .chapter-grid {
    grid-template-columns: 1fr;
  }
  .book-header-box { flex-direction: column; }
}

.table-data td:nth-child(2) a {
  font-size: 14px;
  font-weight: bold;
  color: #006699;
}

/* 长尾词与相关推荐模块样式 */
.box-header h1, .box-header h2 {
  font-size: 13px;
  font-weight: bold;
  color: #004D73;
  margin: 0;
  display: inline;
}

.longtail-box {
  padding: 12px 14px;
  background: #FEFDF9;
}
.longtail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.longtail-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #F0F8FC;
  border: 1px solid #B5D9EC;
  border-radius: 3px;
  font-size: 12px;
  color: #006699;
  text-decoration: none;
  transition: all 0.15s ease;
}
.longtail-tag:hover {
  background: #007BB6;
  color: #FFFFFF;
  border-color: #005F8D;
  text-decoration: none;
}

.related-mesh-wrap {
  padding: 12px 14px;
  background: #FFFFFF;
}
.related-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.related-book-card {
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #F8FCFD;
  border: 1px solid #D5EAF4;
  border-radius: 2px;
}
.related-book-cover img {
  width: 50px;
  height: 66px;
  display: block;
  border-radius: 2px;
  border: 1px solid #B5D9EC;
}
.related-book-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.related-book-title {
  font-size: 12px;
  font-weight: bold;
  color: #006699;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.related-book-author {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-book-chapter {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .related-books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}/* 经典小说站分页导航 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  margin: 12px 0 6px;
  font-size: 13px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border-top: 1px dashed #B5D9EC;
}
.pagination .page-link,
.pagination .current,
.pagination .disabled,
.pagination .page-ellipsis {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  padding: 0 10px;
  border: 1px solid #B5D9EC;
  background: #FFFFFF;
  color: #006699;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.pagination .page-link:hover {
  background: #007BB6;
  color: #FFFFFF;
  border-color: #005F8D;
  text-decoration: none;
}
.pagination .current {
  background: #007BB6;
  color: #FFFFFF;
  border-color: #005F8D;
  font-weight: bold;
}
.pagination .disabled {
  background: #F8F9FA;
  color: #AAA;
  border-color: #E2E8F0;
  cursor: not-allowed;
}
.pagination .page-ellipsis {
  border: none;
  background: transparent;
  color: #888;
  padding: 0 4px;
  min-width: auto;
}
.pagination .page-info {
  margin-left: 8px;
  color: #555;
  font-size: 12px;
}
.pagination .page-info strong {
  color: #E63F00;
}
