* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #fdfbf6;
  background-image: url('../images/bg.webp');
  background-repeat: repeat;
  background-attachment: fixed;
  color: #473a2a;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease, background-color 0.25s ease;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

input, button {
  font-family: inherit;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.header .icon-back,
.header .icon-search,
.header .icon-menu {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #473a2a;
}

.header h1 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #473a2a;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
}

.header .icon-grouop {
  display: flex;
  gap: 16px;
}

.header .logo {
  margin: 0;
  height: 32px;
  line-height: 32px;
  font-size: 0;
}

.header .logo img {
  height: 100%;
  width: auto;
}

/* Wrap */
.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Search Bar */
.search-bar {
  padding: 18px 0;
}

.search-bar form {
  display: flex;
  gap: 10px;
}

.search-bar input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid rgba(71, 58, 42, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
  box-sizing: border-box;
  color: #473a2a;
  border-radius: 4px;
}

.search-bar input::placeholder {
  color: #707070;
}

.search-bar input:focus {
  border-color: #473a2a;
  background: rgba(255, 255, 255, 0.8);
}

.search-bar .search-btn {
  width: 64px;
  height: 40px;
  font-size: 14px;
  color: #fff;
  background: #473a2a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.search-bar .search-btn:hover {
  background: #352a1f;
}

/* Nav */
.nav {
  padding: 14px 8px;
  display: flex;
  justify-content: space-around;
  background: transparent;
  margin: 8px 0 16px;
}

.nav a {
  font-size: 13px;
  color: #5a5a5a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  position: relative;
  transition: all 0.25s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #473a2a;
  border-radius: 4px;
  transition: width 0.25s ease;
}

.nav a:hover {
  color: #473a2a;
  background: rgba(71, 58, 42, 0.06);
}

.nav a:hover img {
  opacity: 1;
}

.nav a.active {
  color: #473a2a;
}

.nav a.active::after {
  width: 24px;
}

.nav a img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.nav a:hover img {
  opacity: 1;
}

/* Section */
.section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #473a2a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Noto Serif SC", "SimSun", serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.section-title .more-link {
  font-size: 13px;
  color: #5a5a5a;
  font-weight: 400;
  transition: color 0.25s ease;
}

.section-title .more-link:hover {
  color: #473a2a;
}

.section-title .sort-btn {
  font-size: 13px;
  color: #5a5a5a;
  font-weight: 400;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
}

.section-title .sort-btn:hover {
  background: rgba(71, 58, 42, 0.08);
}

/* Category */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  color: #473a2a;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
}

.category-list a:hover {
  background: #473a2a;
  color: #FFFFFF;
  border-color: #473a2a;
}

.category-list a.more {
  color: #5a5a5a;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(71, 58, 42, 0.15);
}

.category-list a.more:hover {
  background: #473a2a;
  color: #FFFFFF;
}

/* Novel Cover - 列表封面统一尺寸 */
.novel-thumb {
  width: 70px;
  height: 93px;
  background: #fff;
  flex-shrink: 0;
  border: 1px solid #d8d8d8;
  padding: 2px;
}

.novel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Novel List */
.novel-list {
  display: flex;
  flex-direction: column;
}

.novel-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: background-color 0.25s ease;
}

.novel-item:last-child {
  border-bottom: none;
}

.novel-item:active {
  background: rgba(71, 58, 42, 0.04);
}

/* Novel Card - 小说卡片 */

/* Novel Cover */
.novel-cover {
  width: 100%;
  padding-bottom: calc(133% + 4px);
  margin-bottom: 10px;
  position: relative;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 2px;
  box-sizing: border-box;
}

.novel-cover img {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
}

.novel-card .novel-title {
  font-size: 13px;
  color: #473a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Serif SC", "SimSun", serif;
  margin-bottom: 4px;
}

.novel-card .novel-author {
  font-size: 11px;
  color: #707070;
}

.novel-card .novel-info {
  padding: 0 4px;
}

.novel-author {
  font-size: 12px;
  color: #707070;
  margin-top: 4px;
}

/* Novel Grid - 小说网格布局 */
.novel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mod-news {
  padding: 0;
}

.news-list {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  overflow: hidden;
}

.news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.25s ease;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li:active {
  background: rgba(71, 58, 42, 0.04);
}

.news-list li a {
  flex: 1;
  font-size: 14px;
  color: #473a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.news-list li a:hover {
  color: #352a1f;
}

.news-list li span {
  font-size: 12px;
  color: #707070;
  flex-shrink: 0;
  margin-left: 12px;
}

.news-list li img.lazy {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 2px;
  box-sizing: border-box;
}

.mod-info {
  padding: 0;
}

.news-info {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  padding: 20px 16px;
}

.news-info .title {
  margin-bottom: 16px;
}

.news-info .title h2 {
  font-size: 18px;
  font-weight: 600;
  color: #473a2a;
  margin: 0 0 12px;
  font-family: "Noto Serif SC", "SimSun", serif;
  line-height: 1.4;
}

.news-info .title p {
  font-size: 12px;
  color: #707070;
  margin: 0;
}

.news-info .cover {
  margin-bottom: 16px;
}

.news-info .cover .pic {
  margin: 0;
  text-align: center;
}

.news-info .cover img {
  max-width: 100%;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 2px;
  box-sizing: border-box;
}

.news-info .content {
  font-size: 14px;
  color: #473a2a;
  line-height: 1.8;
  font-family: "Noto Serif SC", "SimSun", serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.news-info .content p {
  margin: 0 0 12px;
}

.news-info .content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}

.mod-comment {
  padding: 16px 0;
}

.mod-comment .comment {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  padding: 16px;
}

.mod-guess {
  padding: 16px 0;
}

.mod-head {
  margin-bottom: 14px;
}

.mod-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #473a2a;
  margin: 0;
  font-family: "Noto Serif SC", "SimSun", serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.book-slide ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-slide li {
  list-style: none;
}

.book-slide li a {
  display: block;
  text-align: center;
}

.book-slide li img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 2px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.book-slide li span {
  display: block;
  font-size: 13px;
  color: #473a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Serif SC", "SimSun", serif;
  margin-bottom: 4px;
}

.book-slide li em {
  display: block;
  font-size: 11px;
  color: #707070;
  font-style: normal;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Chapter List Items */
.chapter-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-list-items li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: background-color 0.25s ease;
}

.chapter-list-items li:last-child {
  border-bottom: none;
}

.chapter-list-items li:active {
  background: rgba(71, 58, 42, 0.04);
}

.chapter-list-items li a {
  font-size: 14px;
  color: #473a2a;
  display: block;
}

.chapter-list-items li a:hover {
  color: #352a1f;
}

/* Chapter Panel Adjustments */
.bookshelf-list {
  padding: 0 16px;
  height: calc(100vh - 54px);
  overflow-y: auto;
}

.bookshelf-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bookshelf-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.bookshelf-list li a {
  font-size: 14px;
  color: #473a2a;
  transition: color 0.25s ease;
}

.bookshelf-list li a:hover {
  color: #352a1f;
}

/* Responsive adjustments for news */
@media (max-width: 480px) {
  .news-list li {
    padding: 12px 14px;
  }

  .news-list li a {
    font-size: 13px;
  }

  .news-info {
    padding: 16px 14px;
  }

  .news-info .title h2 {
    font-size: 16px;
  }

  .book-slide ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.novel-info {
  flex: 1;
  min-width: 0;
  margin-left: 14px;
}

.novel-info .novel-title {
  font-size: 15px;
  font-weight: 600;
  color: #473a2a;
  margin-bottom: 6px;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.novel-meta {
  font-size: 12px;
  color: #707070;
  display: flex;
  align-items: center;
  gap: 6px;
}

.novel-desc {
  font-size: 12px;
  color: #5a5a5a;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

/* Novel List Vertical - 同类推荐三列纵向布局 */
.novel-list-vertical {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.novel-item-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  transition: transform 0.25s ease;
}

.novel-item-vertical:active {
}

.novel-cover-vertical {
  width: 100%;
  aspect-ratio: 2/3;
  background: #fff;
  margin-bottom: 10px;
  border: 1px solid #d8d8d8;
  padding: 2px;
  box-sizing: border-box;
}

.novel-cover-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novel-title-vertical {
  font-size: 13px;
  color: #473a2a;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  width: 100%;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.novel-author-vertical {
  font-size: 11px;
  color: #707070;
  width: 100%;
}

.novel-tags-vertical {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 6px;
}

.novel-tags-vertical .tag {
  font-size: 10px;
  color: #5a5a5a;
}

.novel-tags-vertical .tag:not(:last-child)::after {
  content: '、';
  color: rgba(71, 58, 42, 0.3);
}

/* Book Tags */
.book-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.book-tags .tag:not(:last-child)::after {
  content: '·';
}

/* Rank */
.rank-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
}

.tab-item {
  font-size: 14px;
  color: #707070;
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.tab-item.active {
  color: #473a2a;
  border-bottom-color: #473a2a;
}

.tab-item:hover:not(.active) {
  color: #5a5a5a;
}

.rank-list {
  display: none;
}

.rank-list.active {
  display: flex;
  flex-direction: column;
}

.rank-item {
  position: relative;
}

.rank-num {
  width: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #707070;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: #473a2a;
}

/* Filter Nav (for lists page) */
.filter-nav {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.filter-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-nav li {
  font-size: 13px;
}

.filter-nav li a {
  display: block;
  padding: 8px 14px;
  color: #473a2a;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
}

.filter-nav li a:hover {
  background: rgba(71, 58, 42, 0.08);
}

.filter-nav li.on a {
  color: #fff;
  background: #473a2a;
  border-color: #473a2a;
}

/* Book Detail - 小说详情页 */
.book-detail {
  padding: 24px 0;
}

.book-header-simple {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

.book-cover {
  width: 110px;
  height: 100%;
  background: #fff;
  flex-shrink: 0;
  border: 1px solid #d8d8d8;
  padding: 2px;
  box-sizing: border-box;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info-simple {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.book-info-simple h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #473a2a;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.book-info-simple p {
  font-size: 13px;
  color: #5a5a5a;
  margin: 0 0 2px;
  line-height: 1.6;
}

.book-info-simple p a {
  color: #473a2a;
  transition: color 0.25s ease;
}

.book-info-simple p a:hover {
  color: #352a1f;
}

.book-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.book-btns-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  padding: 18px 0;
}

.book-btns-row a {
  flex: 1;
  display: block;
  height: 42px;
  line-height: 42px;
  text-align: center;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.book-btns-row .btn-read {
  background: #473a2a;
  color: #fff;
}

.book-btns-row .btn-read:hover {
  background: #352a1f;
}

.book-btns-row .btn-shelf {
  background: rgba(255, 255, 255, 0.5);
  color: #473a2a;
  border: 1px solid rgba(71, 58, 42, 0.15);
}

.book-btns-row .btn-shelf:hover {
  background: rgba(71, 58, 42, 0.08);
  border-color: #473a2a;
}

.book-intro {
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: 18px;
  border: 1px solid rgba(71, 58, 42, 0.15);
  border-radius: 4px;
}

.book-intro h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #473a2a;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.book-intro p {
  font-size: 14px;
  color: #473a2a;
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Chapter List */
.chapter-list {
  padding: 18px 0;
}

.chapter-list h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #473a2a;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.chapter-list ul {
  display: flex;
  flex-direction: column;
}

.chapter-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: background-color 0.25s ease;
}

.chapter-list li:active {
  background: rgba(71, 58, 42, 0.04);
}

.chapter-list li a {
  font-size: 14px;
  color: #473a2a;
}

.chapter-list li a:hover {
  color: #352a1f;
}

.chapter-more {
  padding: 18px 0;
  text-align: center;
}

.chapter-more a {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  color: #473a2a;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
  border-radius: 4px;
}

.chapter-more a:hover {
  background: rgba(71, 58, 42, 0.08);
  border-color: #473a2a;
}

/* Pages */
.pages {
  padding: 24px 0;
  text-align: center;
}

.pages ul,
.pages ul.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px;
}

.pages li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pages a,
.pages span,
.pages li a,
.pages li span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: #473a2a;
  background: rgba(255, 255, 255, 0.5);
  margin: 0;
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
}

.pages a:hover,
.pages li a:hover {
  background: rgba(71, 58, 42, 0.08);
  border-color: #473a2a;
}

.pages span.current,
.pages li.active span,
.pages li span.current {
  background: #473a2a;
  color: #fff;
  border-color: #473a2a;
}

.pages li.disabled span {
  color: #707070;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(71, 58, 42, 0.15);
}

/* Search Panel */
.search {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.search.active {
  display: block;
}

.search-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.search-panel {
  position: relative;
  background: #FAF7F2;
  padding: 20px;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-form input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid rgba(71, 58, 42, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  color: #473a2a;
  transition: all 0.25s ease;
}

.search-form input:focus {
  border-color: #473a2a;
}

.search-form button {
  width: 64px;
  height: 40px;
  font-size: 14px;
  color: #fff;
  background: #473a2a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-form button:hover {
  background: #352a1f;
}

.search-bar {
  font-size: 13px;
  color: #5a5a5a;
  margin-bottom: 12px;
  font-family: "Noto Serif SC", "SimSun", serif;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tags a {
  padding: 8px 14px;
  font-size: 13px;
  color: #473a2a;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(71, 58, 42, 0.15);
  transition: all 0.25s ease;
}

.search-tags a:hover {
  background: #473a2a;
  color: #FFFFFF;
  border-color: #473a2a;
}

.search-key {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid rgba(71, 58, 42, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  color: #473a2a;
  transition: all 0.25s ease;
}

.search-key:focus {
  border-color: #473a2a;
}

.search-key::placeholder {
  color: #707070;
}

.search-form .search-btn {
  width: 56px;
  height: 40px;
  font-size: 14px;
  color: #fff;
  background: #473a2a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-form .search-btn:hover {
  background: #352a1f;
}

/* Menu Panel */
.menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.menu.active {
  display: block;
}

.menu-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px;
  height: 100%;
  background: rgba(253, 251, 246, 0.98);
  overflow-y: auto;
}

.menu-list {
  padding: 20px;
}

.menu-list a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: #473a2a;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: color 0.25s ease;
}

.menu-list a:hover {
  color: #352a1f;
}

.menu-btn {
  padding: 20px;
}

.menu-btn a {
  display: block;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 15px;
  color: #fff;
  background: #473a2a;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.menu-btn a:hover {
  background: #352a1f;
}

/* Bookshelf Panel */
.bookshelf-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(253, 251, 246, 0.98);
}

.bookshelf-panel.active {
  display: block;
}

.bookshelf-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.bookshelf-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #473a2a;
}

.bookshelf-head a {
  font-size: 14px;
  color: #5a5a5a;
  transition: color 0.25s ease;
}

.bookshelf-head a:hover {
  color: #473a2a;
}

.bookshelf-list {
  padding: 0 16px;
  height: calc(100vh - 54px);
  overflow-y: auto;
}

.bookshelf-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
}

.bookshelf-list li a {
  font-size: 14px;
  color: #473a2a;
  transition: color 0.25s ease;
}

.bookshelf-list li a:hover {
  color: #352a1f;
}

/* Footer */
.footer {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(71, 58, 42, 0.15);
  margin-top: 24px;
  background: transparent;
}

.footer .links {
  margin-bottom: 12px;
}

.footer .links a {
  font-size: 12px;
  color: #5a5a5a;
  margin: 0 10px;
  transition: color 0.25s ease;
}

.footer .links a:hover {
  color: #473a2a;
}

.footer p {
  font-size: 12px;
  color: #707070;
  margin: 0;
  line-height: 1.8;
}

.footer a {
  color: #5a5a5a;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: #473a2a;
}

/* Responsive */
@media (max-width: 768px) {
  .novel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .novel-info .novel-title {
    font-size: 13px;
  }

  .nav {
    padding: 12px 4px;
  }

  .nav a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .nav a img {
    width: 20px;
    height: 20px;
  }

  .section {
    padding: 20px 0;
  }

  .novel-list-vertical {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .novel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .novel-thumb {
    width: 60px;
    height: 80px;
  }

  .nav {
    padding: 10px 2px;
    margin: 6px 0 14px;
  }

  .nav a {
    font-size: 11px;
    padding: 6px 6px;
    gap: 4px;
  }

  .nav a img {
    width: 18px;
    height: 18px;
  }

  .section-title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .category-list a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .search-bar input {
    height: 38px;
    font-size: 13px;
  }

  .search-bar .search-btn {
    width: 58px;
    height: 38px;
    font-size: 13px;
  }

  .book-header-simple {
    gap: 14px;
  }

  .book-cover {
    width: 95px;
  }

  .book-info-simple h2 {
    font-size: 16px;
  }

  .book-btns-row a {
    height: 38px;
    line-height: 38px;
    font-size: 14px;
  }
}

.ad-box {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

/* Novel List Mixed - 轻小说混合布局 */
.novel-list-mixed {
  display: flex;
  flex-direction: column;
}

.novel-item-mixed {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: background-color 0.25s ease;
}

.novel-item-mixed:last-child {
  border-bottom: none;
}

.novel-item-mixed:active {
  background: rgba(71, 58, 42, 0.04);
}

/* Novel Item - 通用小说卡片样式 */
.novel-item {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(71, 58, 42, 0.15);
  transition: background-color 0.25s ease;
}

.novel-item:last-child {
  border-bottom: none;
}

.novel-item:active {
  background: rgba(138, 125, 107, 0.04);
}
