/* 爽文榜单页面样式 */
body {
    padding-top: 56px; /* 精确匹配导航栏高度，消除缝隙 */
}

/* 爽文榜单横幅 - 紧贴导航栏，与其他页面保持完全一致 */
.rank-banner.main-container {
    margin-top: 0 !important;
    height: 43.98px !important;
    background: linear-gradient(135deg, #1976d2, #42a5f5) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 10px 10px !important;
    text-align: center !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
    position: relative !important;
    overflow: hidden !important;
    /* 禁用继承的动画效果 - 横幅容器本身不应该有动画 */
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.rank-banner.main-container::before {
    display: none !important;
}

.rank-banner h1 {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
}

.rank-banner p {
    font-size: 12px !important;
    margin: 2px auto 0 !important;
    line-height: 1.2 !important;
    max-width: 600px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
}

.rank-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 搜索状态提示区域样式 */
.search-status {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-text {
    color: #856404;
    font-weight: 500;
}

.search-keyword {
    color: #1976d2;
    font-weight: bold;
    background: rgba(183, 28, 28, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.clear-search-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-search-btn:hover {
    background: #c82333;
}

.clear-search-btn i {
    font-size: 12px;
}

/* 筛选区域样式 */
.filter-section {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

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

.filter-label {
    width: 60px;
    color: #666;
    font-size: 14px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.filter-btn.active {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.reset-btn {
    margin-top: 10px;
    padding: 6px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #e8e8e8;
}

/* 新增竖排双列布局样式 */
.novel-columns {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}
.novel-column {
  flex: 1 1 0;
  max-width: 500px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.column-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.novel-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.book-card {
  position: relative;
  width: 500px;
  min-width: 500px;
  height: 160px;
  min-height: 160px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.book-card:hover {
  box-shadow: 0 4px 16px rgba(183,28,28,0.12);
}
.book-cover {
  width: 90px;
  height: 140px;
  margin-right: 24px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.book-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 4px;
  word-break: break-all;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-author {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2px;
}
.book-desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  color: #888;
  margin-top: 2px;
  word-break: break-all;
}
.book-category {
    display: block;
    font-size: 12px;
    color: #888;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 4px;
    margin-left: 0;
    letter-spacing: 0.5px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-weight: 400;
}
.book-rank-no {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: #1976d2;
  color: #fff;
  font-size: 1.08rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(183,28,28,0.25);
  margin-right: 10px;
  margin-left: 2px;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 1px;
  position: static;
}
/* 移除::after伪元素 */
.book-rank-no::after { display: none !important; }
.book-card > a {
  display: flex;
  align-items: center;
  flex: 1;
}
/* 移除原有网格和分页相关样式 */
.novel-grid, .pagination { display: none !important; }

@media (max-width: 900px) {
  .novel-columns {
    flex-direction: column;
    gap: 0;
  }
  .novel-column {
    max-width: 100%;
    min-width: 0;
    margin-bottom: 32px;
  }
  .book-card {
    width: 100%;
    min-width: 0;
  }
  .book-category {
    font-size: 0.85rem;
    padding: 1px 5px;
  }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #42a5f5;
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rank-container {
        padding: 0 10px;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 5px;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

.book-rank-no.first {
  background: linear-gradient(135deg, #ffb300, #ffec80);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,179,0,0.25);
}
.book-rank-no.second {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd 80%, #f5f5f5 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(189,189,189,0.25);
}
.book-rank-no.third {
  background: linear-gradient(135deg, #ff7043, #ffd180);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,112,67,0.25);
}
.book-rank-no.gray {
  background: linear-gradient(135deg, #f7f7f7, #e5e5e5 80%, #fafafa 100%);
  color: #bbb;
  box-shadow: 0 2px 10px rgba(200,200,200,0.10);
}
.book-rank-no.white {
  background: #fff;
  color: #bbb;
  border: 1px solid #fff;
  box-shadow: none;
} 

/* 排行榜页面橙色背景修复 */
.rank-container,
.rank-main,
.rank-content,
.rank-section,
.rank-list,
.rank-item,
.novel-card,
.novel-item,
.book-card,
.book-item,
.search-section,
.filter-section {
    background: #fff !important;
    background-color: #fff !important;
} 

/* ========================================
   排行榜页面移动端全面优化
   ======================================== */

/* 移动端优化 (768px以下) */
@media (max-width: 768px) {
    /* 页脚隐藏 */
    .footer,
    footer {
        display: none !important;
    }
    
    /* 主容器布局适配 */
    .rank-container {
        padding: 15px 10px;
        margin-top: 0;
    }
    
    /* 搜索区域适配 */
    .search-status {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-text {
        font-size: 16px;
        font-weight: 600;
    }
    
    .search-keyword {
        font-size: 14px;
        color: #1976d2;
        background: #fff5f0;
        padding: 4px 8px;
        border-radius: 10px;
    }
    
    .clear-search {
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 15px;
        min-height: 36px;
    }
    
    /* 榜单列表适配 */
    .novel-columns {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .novel-column {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 20px 15px;
    }
    
    .column-title {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #1976d2;
    }
    
    .column-title h2 {
        font-size: 18px;
        color: #333;
        margin: 0;
    }
    
    /* 榜单项目适配 */
    .novel-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .novel-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
        transition: all 0.2s;
        position: relative;
    }
    
    .novel-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 排名标识 */
    .rank-number {
        position: absolute;
        top: -5px;
        left: -5px;
        width: 24px;
        height: 24px;
        background: #1976d2;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .rank-number.top-3 {
        background: linear-gradient(45deg, #1976d2, #42a5f5);
    }
    
    /* 小说封面适配 */
    .novel-cover {
        width: 80px;
        flex-shrink: 0;
    }
    
    .novel-cover img {
        width: 80px;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 小说信息适配 */
    .novel-info {
        flex: 1;
        min-width: 0;
    }
    
    .novel-title {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .novel-author {
        font-size: 13px;
        color: #666;
        margin-bottom: 8px;
    }
    
    .novel-category {
        font-size: 12px;
        color: #1976d2;
        background: #fff5f0;
        padding: 3px 8px;
        border-radius: 10px;
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .novel-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
        color: #888;
        margin-bottom: 10px;
    }
    
    .novel-stats span {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .novel-stats i {
        font-size: 11px;
        color: #1976d2;
    }
    
    .novel-description {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }
    
    /* 操作按钮适配 */
    .novel-actions {
        display: flex;
        gap: 8px;
    }
    
    .btn-read,
    .btn-collect {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
        min-height: 32px;
        text-align: center;
    }
    
    /* 加载更多按钮 */
    .load-more {
        text-align: center;
        margin-top: 20px;
    }
    
    .btn-load-more {
        padding: 12px 25px;
        font-size: 16px;
        border-radius: 25px;
        min-height: 44px;
    }
}

/* 小屏幕移动端优化 (480px以下) */
@media (max-width: 480px) {
    .rank-container {
        padding: 10px 5px;
    }
    
    .search-status {
        padding: 12px;
    }
    
    .search-text {
        font-size: 15px;
    }
    
    .search-keyword {
        font-size: 13px;
    }
    
    .clear-search {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 32px;
    }
    
    .novel-column {
        padding: 15px 10px;
    }
    
    .column-title h2 {
        font-size: 16px;
    }
    
    .novel-item {
        padding: 10px;
        gap: 10px;
    }
    
    .rank-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .novel-cover {
        width: 70px;
    }
    
    .novel-cover img {
        width: 70px;
        height: 90px;
    }
    
    .novel-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .novel-author {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .novel-category {
        font-size: 11px;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    
    .novel-stats {
        gap: 8px;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .novel-description {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .novel-actions {
        gap: 6px;
    }
    
    .btn-read,
    .btn-collect {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 30px;
    }
    
    .btn-load-more {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .rank-container {
        padding: 8px 3px;
    }
    
    .search-status {
        padding: 10px;
    }
    
    .novel-column {
        padding: 12px 8px;
    }
    
    .column-title h2 {
        font-size: 15px;
    }
    
    .novel-item {
        padding: 8px;
        gap: 8px;
    }
    
    .novel-cover {
        width: 60px;
    }
    
    .novel-cover img {
        width: 60px;
        height: 80px;
    }
    
    .novel-title {
        font-size: 13px;
    }
    
    .novel-author {
        font-size: 11px;
    }
    
    .novel-stats {
        gap: 6px;
        font-size: 10px;
    }
    
    .novel-description {
        font-size: 11px;
    }
    
    .btn-read,
    .btn-collect {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 28px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .rank-container {
        padding: 10px;
    }
    
    .novel-columns {
        gap: 15px;
    }
    
    .novel-column {
        padding: 15px;
    }
    
    .column-title {
        margin-bottom: 15px;
    }
    
    .novel-list {
        gap: 12px;
    }
    
    .novel-item {
        padding: 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .novel-item:hover {
        transform: none;
    }
    
    .novel-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .btn-read:hover,
    .btn-collect:hover,
    .btn-load-more:hover,
    .clear-search:hover {
        transform: none;
    }
    
    .btn-read:active,
    .btn-collect:active,
    .btn-load-more:active,
    .clear-search:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
} 