/* ============================================================
   漫画CMS 前台样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f5f7;
  color: #333;
  line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #e74c3c; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #e74c3c;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
}
.main-nav a:hover, .main-nav a.active {
  background: #e74c3c;
  color: #fff;
}
.search-form {
  display: flex;
  gap: 0;
}
.search-form input {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  width: 180px;
  outline: none;
}
.search-form input:focus { border-color: #e74c3c; }
.search-form button {
  padding: 7px 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}
.search-form button:hover { background: #c0392b; }

/* ---- Main ---- */
.main-content { padding: 24px 16px; min-height: calc(100vh - 200px); }

/* ---- Hero ---- */
.hero-section {
  text-align: center;
  padding: 32px 0 24px;
}
.hero-section h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #222;
}
.hero-section p { color: #888; font-size: 14px; }
.hero-stats { margin-top: 8px; }
.hero-stats strong { color: #e74c3c; font-size: 18px; }

/* ---- Section ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
}
.section-header h2 { font-size: 20px; color: #222; }
.section-more {
  font-size: 14px;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s;
}
.section-more:hover { opacity: .7; }
.section-count {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

/* ---- Comic Grid ---- */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.comic-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.comic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.comic-cover {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
}
.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}
.free-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #27ae60;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}
.status-ongoing { background: #e74c3c; }
.status-end { background: #27ae60; }
.comic-info { padding: 10px 12px; }
.comic-title {
  font-size: 14px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.comic-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}
.comic-cat { color: #e74c3c; }

/* ---- Comic Detail ---- */
.comic-detail {
  display: flex;
  gap: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.detail-cover {
  width: 220px;
  flex-shrink: 0;
}
.detail-cover img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.detail-info { flex: 1; }
.detail-info h1 { font-size: 26px; margin-bottom: 16px; }
.detail-meta p { margin-bottom: 6px; font-size: 14px; color: #666; }
.detail-meta span { color: #999; display: inline-block; width: 60px; }
.detail-desc { margin: 16px 0; }
.detail-desc h3 { font-size: 16px; margin-bottom: 8px; }
.detail-desc p { font-size: 14px; color: #666; line-height: 1.8; }
.detail-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 8px 20px;
  background: #f0f0f0;
  color: #333;
  border-radius: 4px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #e0e0e0; color: #333; }
.btn-primary { background: #e74c3c; color: #fff; }
.btn-primary:hover { background: #c0392b; color: #fff; }
.btn-disabled { opacity: .5; cursor: not-allowed; }

/* ---- Chapter List ---- */
.chapter-list-section {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}
.chapter-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.chapter-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 14px;
}
.chapter-list li a:hover { background: #e74c3c; color: #fff; }
.chapter-date { font-size: 12px; color: #aaa; }
.chapter-list li a:hover .chapter-date { color: #eee; }

/* ---- Read Page ---- */
.read-header {
  text-align: center;
  padding: 16px 0;
}
.read-breadcrumb { font-size: 13px; color: #999; margin-bottom: 8px; }
.read-breadcrumb a { color: #e74c3c; }
.read-header h1 { font-size: 20px; margin-bottom: 12px; }
.read-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}
.read-content {
  max-width: 800px;
  margin: 0 auto;
}
.comic-image-item {
  margin-bottom: 0;
  text-align: center;
  line-height: 0;
}
.comic-image-item img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* 图片分页 */
.img-pagination {
  margin: 24px 0;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.img-page-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}
.img-page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.img-page-btn {
  padding: 8px 18px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid #e0e0e0;
}
.img-page-btn:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.img-page-btn-next { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.img-page-btn-next:hover { background: #c0392b; }
.img-page-btn-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.img-page-numbers {
  display: flex;
  gap: 4px;
  align-items: center;
}
.img-page-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid #e0e0e0;
}
.img-page-num:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.img-page-num.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  font-weight: 700;
}
.img-page-ellipsis {
  color: #999;
  padding: 0 4px;
}

.read-footer { padding: 24px 0; }


/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
  flex-wrap: wrap;
  align-items: center;
}
.page-link {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
  font-weight: 500;
}
.page-link:hover { border-color: #e74c3c; color: #e74c3c; }
.page-link.current {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  font-weight: 700;
}
.page-ellipsis { padding: 0 4px; color: #999; font-size: 15px; }

/* ---- Empty ---- */
.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

/* ---- Footer ---- */
.site-footer {
  background: #2c2c2c;
  color: #999;
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  margin-top: 40px;
}
.site-footer a { color: #ccc; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-link {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-link:hover { color: #e74c3c; }

/* ---- Ad Spots 广告位 ---- */
.ad-spot {
  text-align: center;
  margin: 0 auto;
  overflow: hidden;
}
.ad-header {
  max-width: 1200px;
  padding: 12px 16px 0;
}
.ad-footer {
  max-width: 1200px;
  padding: 20px 16px 0;
}
.ad-read-top, .ad-read-bottom {
  max-width: 800px;
  padding: 12px 0;
}
.ad-spot:empty { display: none; }

/* ---- User Nav 用户导航 ---- */
.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.user-link {
  font-size: 13px;
  color: #666;
  padding: 4px 10px;
  border-radius: 4px;
}
.user-link:hover { background: #f0f0f0; color: #e74c3c; }
.user-register {
  background: #e74c3c;
  color: #fff !important;
}
.user-register:hover { background: #c0392b; color: #fff !important; }
.user-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

/* ---- Auth Pages 登录注册 ---- */
.auth-section {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 60px;
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #f8f9ff 0%, #f0eefc 50%, #faf5ff 100%);
  margin: 0 -16px;
}
.auth-page-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 24px;
  width: 100%;
  max-width: 460px;
  text-align: left;
  letter-spacing: -0.5px;
}
.auth-box {
  background: #fff;
  padding: 36px 32px 28px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, .12), 0 2px 8px rgba(0,0,0,.04);
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255,255,255,.8);
}
.auth-box .form-group {
  margin-bottom: 20px;
}
.auth-box .form-group label {
  display: block !important;
  margin-bottom: 10px;
  font-weight: 700;
  color: #2d2d44;
  font-size: 16px;
}
.auth-box .form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  font-size: 15px;
  outline: none;
  transition: all .25s;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}
.auth-box .form-group input::placeholder { color: #bbb; }
.auth-box .form-group input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .1);
}
.auth-box .form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  border-radius: 4px;
  margin-right: 8px;
  accent-color: #8b5cf6;
}
.auth-remember {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
  color: #2d2d44;
  font-weight: 600;
  cursor: pointer;
}
.auth-box .btn-block {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  margin-top: 4px;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #8b5cf6 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(139, 92, 246, .35);
  letter-spacing: 1px;
}
.auth-box .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, .45);
}
.auth-box .btn-block:active {
  transform: translateY(0);
}
.auth-tip {
  text-align: center;
  margin-top: 22px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
}
.auth-tip a {
  color: #8b5cf6;
  font-weight: 700;
  text-decoration: none;
}
.auth-tip a:hover { text-decoration: underline; }
.auth-box .alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}
.auth-box .alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.auth-box .alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* ---- Tags 标签 ---- */
.tag-link {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.tag-link:hover { background: #e74c3c; color: #fff; }

/* 作者链接 */
.author-link {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
}
.author-link:hover { text-decoration: underline; }
.rank-author .author-link { color: #e74c3c; }

/* ---- Favorite Button 收藏按钮 ---- */
.btn-favorite {
  border: 1px solid #e74c3c;
  color: #e74c3c;
  background: #fff;
  cursor: pointer;
}
.btn-favorite:hover { background: #fff5f5; }
.btn-favorite.favorited {
  background: #e74c3c;
  color: #fff;
}
.btn-favorite.favorited:hover { background: #c0392b; }

/* ---- Profile 个人中心 ---- */
.profile-section { padding: 24px 0; }
.profile-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}
.profile-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 80px;
}
.profile-avatar { margin-bottom: 16px; }
.profile-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid #f0f0f0;
}
.avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto;
}
.profile-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: #222; }
.profile-username { font-size: 13px; color: #999; margin-bottom: 18px; }
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}
.profile-stats .stat-item {
  text-align: center;
  flex: 1;
  border-right: 1px solid #f0f0f0;
}
.profile-stats .stat-item:last-child { border-right: none; }
.profile-stats .stat-item strong {
  display: block;
  font-size: 22px;
  color: #e74c3c;
  font-weight: 700;
}
.profile-stats .stat-item span { font-size: 12px; color: #999; }
.profile-menu { display: flex; flex-direction: column; gap: 2px; }
.profile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  text-align: left;
  transition: all .2s;
}
.profile-menu a:hover { background: #f5f5f5; color: #e74c3c; }
.profile-menu a.active { background: #e74c3c; color: #fff; }
.profile-main { flex: 1; min-width: 0; }
.profile-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.profile-card h3 {
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  font-weight: 600;
}
.profile-card .form-group { margin-bottom: 18px; }
.profile-card .form-group label {
  display: block !important;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 14px;
}
.profile-card .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.profile-card .form-group input:focus { border-color: #e74c3c; outline: none; box-shadow: 0 0 0 3px rgba(231,76,60,.1); }
.profile-card .form-group input:disabled { background: #f5f5f5; color: #999; }
.profile-card .alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.profile-card .alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }
.profile-card .alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
  }
  .logo { font-size: 18px; flex-shrink: 0; }
  .user-nav {
    order: 1;
    margin-left: auto;
    gap: 4px;
  }
  .user-nav .user-name { display: none; }
  .search-form {
    order: 2;
    width: 100%;
  }
  .search-form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .comic-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .comic-detail { flex-direction: column; }
  .detail-cover { width: 140px; margin: 0 auto; }
  .hero-section h1 { font-size: 22px; }
  .profile-container { flex-direction: column !important; }
  .profile-sidebar { width: 100% !important; position: static; }
  .auth-box { padding: 24px 20px; }
}

/* ---- Request 求漫画 ---- */
.request-section { padding: 30px 0 50px; }
.request-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.request-subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}
.request-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.request-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.request-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.request-form-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.request-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all .2s;
  box-sizing: border-box;
}
.request-form-group textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .1);
}
.request-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.request-form-tip { color: #999; font-size: 13px; }
.request-submit-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.request-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,.35); }
.request-login-prompt {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 15px;
}
.request-login-prompt a { color: #8b5cf6; font-weight: 600; }
.request-list-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}
.request-empty {
  text-align: center;
  padding: 40px;
  color: #999;
  background: #fff;
  border-radius: 12px;
}
.request-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.request-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.request-user { font-weight: 600; color: #333; font-size: 15px; }
.request-time { color: #999; font-size: 13px; }
.request-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: auto;
}
.request-status-pending { background: #fff7ed; color: #ea580c; }
.request-status-replied { background: #f0fdf4; color: #16a34a; }
.request-item-content {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}
.request-item-reply {
  margin-top: 14px;
  padding: 14px 18px;
  background: #faf5ff;
  border-left: 3px solid #8b5cf6;
  border-radius: 0 8px 8px 0;
}
.request-reply-label {
  font-weight: 600;
  color: #7c3aed;
  font-size: 14px;
  margin-bottom: 6px;
}
.request-reply-content {
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}
.request-reply-time {
  color: #aaa;
  font-size: 12px;
  margin-top: 6px;
}
.request-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.request-page-btn {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}
.request-page-btn:hover { border-color: #8b5cf6; color: #8b5cf6; }
.request-page-info { color: #888; font-size: 14px; }
.nav-request { color: #8b5cf6 !important; font-weight: 600; }
.nav-request.active { background: #8b5cf6 !important; color: #fff !important; }

/* ---- 首页轮播 ---- */
.hero-slider {
  position: relative;
  margin-bottom: 20px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
  text-decoration: none;
}
.slider-item.active { opacity: 1; }
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
}
.slider-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.slider-desc {
  font-size: 14px;
  opacity: .85;
}
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ---- 快捷入口 ---- */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.quick-icon { font-size: 28px; }
.quick-text { font-size: 13px; color: #555; font-weight: 500; }

/* ---- 排行榜新样式 ---- */
.rank-page { padding: 20px 0 40px; }
.rank-header { margin-bottom: 16px; }
.rank-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.rank-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.rank-tab:hover { color: #e74c3c; }
.rank-tab.active {
  color: #e74c3c;
  border-bottom-color: #e74c3c;
}
.rank-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rank-subtab {
  padding: 6px 16px;
  font-size: 13px;
  color: #666;
  background: #f5f5f5;
  border-radius: 16px;
  text-decoration: none;
  transition: all .2s;
}
.rank-subtab:hover { background: #e8e8e8; }
.rank-subtab.active {
  background: #e74c3c;
  color: #fff;
}
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.rank-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  flex-shrink: 0;
}
.rank-medal { font-size: 24px; }
.rank-top-1 { color: #f59e0b; }
.rank-top-2 { color: #94a3b8; }
.rank-top-3 { color: #cd7f32; }
.rank-cover {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-author {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.rank-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-stat {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
}
.rank-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 768px) {
  .slider-container { height: 180px; }
  .slider-title { font-size: 18px; }
  .slider-desc { font-size: 12px; }
  .quick-entry { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-item { padding: 12px 6px; }
  .quick-icon { font-size: 22px; }
  .quick-text { font-size: 11px; }
  .rank-tab { padding: 8px 14px; font-size: 14px; }
  .rank-cover { width: 50px; height: 66px; }
  .rank-name { font-size: 14px; }
}

/* ---- 图片懒加载占位 ---- */
img[loading="lazy"]:not(.img-loaded) {
  background-color: #f5f5f5;
  background-image: var(--lazy-placeholder);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
  transition: opacity .3s ease;
}
img[loading="lazy"].img-loaded {
  background: none;
  background-color: transparent;
}
/* 漫画封面占位最小高度 */
.comic-cover img[loading="lazy"]:not(.img-loaded) {
  min-height: 180px;
}
/* 阅读页图片占位 */
.comic-image-item img[loading="lazy"]:not(.img-loaded) {
  min-height: 400px;
  width: 100%;
}
/* 排行榜封面占位 */
.rank-cover img[loading="lazy"]:not(.img-loaded) {
  min-height: 80px;
}


/* ===== 排行榜重置样式 ===== */
.rank-page { padding: 20px 0 40px; }
.rank-header { margin-bottom: 16px; }
.rank-title { font-size: 24px; font-weight: 700; color: #222; margin: 0; }
.rank-tabs { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.rank-tab { padding: 10px 24px; font-size: 15px; font-weight: 600; color: #888; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.rank-tab:hover { color: #e74c3c; }
.rank-tab.active { color: #e74c3c; border-bottom-color: #e74c3c; }
.rank-subtabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.rank-subtab { padding: 6px 16px; font-size: 13px; color: #666; background: #f5f5f5; border-radius: 16px; text-decoration: none; }
.rank-subtab:hover { background: #e8e8e8; }
.rank-subtab.active { background: #e74c3c; color: #fff; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 10px; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.rank-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.rank-badge { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #999; flex-shrink: 0; }
.rank-medal { font-size: 24px; }
.rank-top-1 { color: #f59e0b; }
.rank-top-2 { color: #94a3b8; }
.rank-top-3 { color: #cd7f32; }
.rank-cover { width: 60px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-author { font-size: 13px; color: #888; margin-bottom: 4px; }
.rank-desc { font-size: 13px; color: #999; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-stat { font-size: 13px; color: #e74c3c; font-weight: 600; }
@media (max-width: 768px) {
  .rank-tab { padding: 8px 14px; font-size: 14px; }
  .rank-cover { width: 50px; height: 66px; }
  .rank-name { font-size: 14px; }
}
