/* ========================================
   爆文榜单页面现代化重构 v1.0
   ======================================== */

/* 主容器优化 */
.rank-container {
    max-width: 1400px !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
    background: transparent !important;
}

/* 搜索状态提示 - 现代化设计 */
.search-status {
    background: linear-gradient(135deg, #fff5f0 0%, #fff8f3 100%) !important;
    border: 1px solid rgba(245, 127, 23, 0.2) !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(245, 127, 23, 0.1) !important;
    backdrop-filter: blur(10px);
}

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

.search-text {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 15px;
}

.search-keyword {
    color: #F57F17 !important;
    font-weight: 700 !important;
    background: rgba(245, 127, 23, 0.15) !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(245, 127, 23, 0.3);
}

.clear-search-btn {
    background: linear-gradient(135deg, #F57F17 0%, #FF9800 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(245, 127, 23, 0.3) !important;
}

.clear-search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.4) !important;
}

/* 双列布局优化 */
.novel-columns {
    display: flex !important;
    justify-content: center;
    gap: 30px !important;
    margin-top: 0 !important;
}

.novel-column {
    flex: 1 1 0;
    max-width: 650px !important;
    min-width: 300px;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.novel-column:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

/* 栏目标题优化 */
.column-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #F57F17 !important;
    margin-bottom: 24px !important;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 3px solid #F57F17;
    letter-spacing: 2px !important;
    position: relative;
}

.column-title::before {
    content: '🔥';
    margin-right: 8px;
    font-size: 1.3rem;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF9800, transparent);
}

/* 榜单列表优化 */
.novel-list {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
}

/* 书籍卡片 - 全新现代设计 */
.book-card {
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
    height: auto !important;
    min-height: unset !important;
    background: #fafafa !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    padding: 16px !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    border: 1px solid #f0f0f0;
}

.book-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 28px rgba(245, 127, 23, 0.15) !important;
    border-color: rgba(245, 127, 23, 0.3) !important;
    background: #fff !important;
}

.book-card > a {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    gap: 16px;
}

/* 排名标识 - 立体设计 */
.book-rank-no {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: linear-gradient(135deg, #999 0%, #666 100%) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-right: 12px !important;
    margin-left: 0 !important;
    position: relative;
    letter-spacing: 0 !important;
}

.book-rank-no::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
    border-radius: 12px;
    z-index: -1;
}

/* 前三名特殊样式 */
.book-rank-no.first {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4) !important;
    animation: pulse-gold 2s ease-in-out infinite;
}

.book-rank-no.second {
    background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%) !important;
    box-shadow: 0 4px 16px rgba(189, 189, 189, 0.4) !important;
}

.book-rank-no.third {
    background: linear-gradient(135deg, #FF8C42 0%, #CD7F32 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.4) !important;
}

.book-rank-no.gray {
    background: linear-gradient(135deg, #f5f5f5 0%, #d0d0d0 100%) !important;
    color: #999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

@keyframes pulse-gold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
    }
}

/* 书籍封面优化 */
.book-cover {
    width: 100px !important;
    height: 133px !important;
    margin-right: 16px !important;
    border-radius: 10px !important;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    position: relative;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.08);
}

/* 书籍信息区优化 */
.book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.book-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.book-card:hover .book-title {
    color: #F57F17 !important;
}

.book-author {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 4px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-author::before {
    content: '✍️';
    font-size: 0.85rem;
}

.book-desc {
    font-size: 0.85rem !important;
    color: #888 !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-category {
    display: inline-flex !important;
    align-items: center;
    font-size: 11px !important;
    color: #F57F17 !important;
    background: rgba(245, 127, 23, 0.1) !important;
    border: 1px solid rgba(245, 127, 23, 0.3) !important;
    border-radius: 12px !important;
    padding: 3px 10px !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
    font-weight: 600;
    letter-spacing: 0.5px !important;
    max-width: fit-content !important;
}

.book-category::before {
    content: '📚';
    margin-right: 4px;
    font-size: 10px;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .rank-container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .novel-columns {
        gap: 20px !important;
    }

    .novel-column {
        max-width: 580px !important;
        padding: 20px;
    }

    .column-title {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 992px) {
    .rank-container {
        margin: 20px auto !important;
    }

    .novel-columns {
        flex-direction: column;
        gap: 24px !important;
        align-items: center;
    }

    .novel-column {
        max-width: 100% !important;
        width: 100%;
    }

    .book-cover {
        width: 90px !important;
        height: 120px !important;
    }
}

@media (max-width: 768px) {
    .rank-container {
        margin: 15px auto !important;
        padding: 0 10px !important;
    }

    .novel-column {
        padding: 16px;
        border-radius: 16px;
    }

    .column-title {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px;
    }

    .novel-list {
        gap: 12px !important;
    }

    .book-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .book-rank-no {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 1rem !important;
        margin-right: 10px !important;
    }

    .book-cover {
        width: 80px !important;
        height: 106px !important;
        margin-right: 12px !important;
    }

    .book-title {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }

    .book-author {
        font-size: 0.85rem !important;
    }

    .book-desc {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .book-category {
        font-size: 10px !important;
        padding: 2px 8px !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 480px) {
    .book-card {
        padding: 10px !important;
    }

    .book-rank-no {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 0.9rem !important;
        margin-right: 8px !important;
        border-radius: 10px !important;
    }

    .book-cover {
        width: 70px !important;
        height: 93px !important;
        margin-right: 10px !important;
    }

    .book-title {
        font-size: 0.95rem !important;
    }

    .book-author {
        font-size: 0.8rem !important;
    }

    .book-desc {
        display: none;
    }

    .column-title {
        font-size: 1.1rem !important;
    }
}

/* 返回顶部按钮优化 */
.back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #F57F17 0%, #FF9800 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(245, 127, 23, 0.35) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.back-to-top:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(245, 127, 23, 0.45) !important;
}

.back-to-top i {
    color: white !important;
    font-size: 20px !important;
}

/* 特殊效果 - 第一名闪光 */
.book-card:first-child .book-rank-no::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    animation: crown-bounce 1.5s ease-in-out infinite;
}

@keyframes crown-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

