/* 巅峰金榜板块 - 极简设计 */
.gold-rank-section {
    max-width: 2355.56px;
    margin: -10px auto 20px auto;
    padding: 0 20px;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.gold-rank-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.rank-title-container {
    display: inline-block;
    position: relative;
}

.rank-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 
        0 0 5px #ffd700,
        0 0 10px #ffd700,
        0 0 15px #ffd700,
        0 0 20px #ffd700,
        1px 1px 0 #b8860b,
        -1px -1px 0 #b8860b,
        1px -1px 0 #b8860b,
        -1px 1px 0 #b8860b;
    filter: drop-shadow(0 0 8px #ffd700);
}

.rank-subtitle {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.gold-rank-container {
    position: relative;
    height: 500px;
}

.rank-cards-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
}

.rank-cards-track {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    animation: smoothScroll 40s linear infinite;
    width: calc(200% + 40px);
    height: 100%;
    align-items: center;
}

@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.rank-card {
    flex-shrink: 0;
    width: 250px !important;
    flex-basis: 250px !important;
    height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.rank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #1976d2;
}

.rank-card-cover {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

.rank-card:hover .rank-card-cover img {
    transform: scale(1.05);
}

/* 隐藏排名图标 */
.rank-number {
    display: none;
}

.rank-card-info {
    padding: 15px 12px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.rank-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card-category {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.rank-gradient-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.rank-gradient-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.rank-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* 隐藏控制按钮和指示器 */
.rank-controls {
    display: none;
}

.rank-control-btn {
    display: none;
}

.rank-indicators {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .rank-card {
        width: 220px !important;
        flex-basis: 220px !important;
        height: 380px;
    }
    
    .rank-card-cover {
        height: 280px;
    }
    
    .rank-card-info {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .gold-rank-section {
        margin: -8px auto 15px auto;
        padding: 0 15px;
    }
    
    .gold-rank-container {
        height: 380px;
    }
    
    .gold-rank-header {
        margin-bottom: 12px;
    }
    
    .rank-title {
        font-size: 24px;
    }
    
    .rank-card {
        width: 190px !important;
        flex-basis: 190px !important;
        height: 340px;
    }
    
    .rank-card-cover {
        height: 240px;
    }
    
    .rank-card-info {
        padding: 12px 10px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .gold-rank-section {
        margin: -5px auto 10px auto;
        padding: 0 10px;
    }
    
    .gold-rank-container {
        height: 320px;
    }
    
    .gold-rank-header {
        margin-bottom: 10px;
    }
    
    .rank-card {
        width: 160px !important;
        flex-basis: 160px !important;
        height: 280px;
    }
    
    .rank-card-cover {
        height: 180px;
    }
    
    .rank-card-info {
        padding: 10px 8px;
        height: 100px;
    }
    
    .rank-title {
        font-size: 20px;
    }
    
    .rank-subtitle {
        font-size: 12px;
    }
}

/* 暂停动画功能 */
.rank-cards-track:hover {
    animation-play-state: paused;
}

.rank-cards-track.paused {
    animation-play-state: paused;
}

/* 卡片链接样式 */
.rank-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.rank-card a:hover {
    text-decoration: none;
    color: inherit;
}

/* 加载状态、错误状态、无数据状态样式 */
.loading-message,
.error-message,
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    background: transparent;
    border-radius: 10px;
    margin: 20px 0;
}

.loading-message {
    color: #1976d2;
}

.loading-message::before {
    content: '⏳';
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.error-message {
    color: #d32f2f;
}

.error-message::before {
    content: '⚠️';
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
}

.no-data-message {
    color: #757575;
}

.no-data-message::before {
    content: '📚';
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
}

/* 平滑过渡效果 */
.rank-cards-track {
    transition: opacity 0.3s ease;
}

.rank-cards-track.loading {
    opacity: 0.7;
}

/* 卡片进入动画 */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-card {
    animation: cardFadeIn 0.5s ease-out;
}

.rank-card:nth-child(1) { animation-delay: 0.1s; }
.rank-card:nth-child(2) { animation-delay: 0.2s; }
.rank-card:nth-child(3) { animation-delay: 0.3s; }
.rank-card:nth-child(4) { animation-delay: 0.4s; }
.rank-card:nth-child(5) { animation-delay: 0.5s; }
.rank-card:nth-child(6) { animation-delay: 0.6s; }
.rank-card:nth-child(7) { animation-delay: 0.7s; }
.rank-card:nth-child(8) { animation-delay: 0.8s; }
.rank-card:nth-child(9) { animation-delay: 0.9s; }
.rank-card:nth-child(10) { animation-delay: 1.0s; }

/* 第二个轮播板块 - 从左向右滚动 */
.gold-rank-section-2 {
    max-width: 2355.56px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.gold-rank-container-2 {
    position: relative;
    height: 500px;
}

.rank-cards-wrapper-2 {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
}

.rank-cards-track-2 {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    animation: smoothScrollReverse 40s linear infinite;
    width: calc(200% + 40px);
    height: 100%;
    align-items: center;
}

@keyframes smoothScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 第二个轮播板块的渐变遮罩 */
.rank-gradient-overlay-2 {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.rank-gradient-left-2 {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.rank-gradient-right-2 {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* 第二个轮播板块的暂停动画功能 */
.rank-cards-track-2:hover {
    animation-play-state: paused;
}

.rank-cards-track-2.paused {
    animation-play-state: paused;
}

/* 第二个轮播板块的响应式设计 */
@media (max-width: 768px) {
    .gold-rank-section-2 {
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .gold-rank-container-2 {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .gold-rank-section-2 {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .gold-rank-container-2 {
        height: 320px;
    }
} 