.ranking-container {
    max-width: 800px;
    margin: 0 auto;
}

.ranking-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ranking-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ranking-header h2:before {
    content: "🏆";
    font-size: 28px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.ranking-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--rank-color), var(--rank-color-light));
}

.rank-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-weight: bold;
    font-size: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFC125); color: #8B6914; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #696969; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #B87333); color: #8B4513; }
.rank-4 { background: linear-gradient(135deg, #87CEEB, #6495ED); color: #2C3E50; }
.rank-5 { background: linear-gradient(135deg, #98FB98, #90EE90); color: #228B22; }
.rank-6-10 { background: linear-gradient(135deg, #F5F5F5, #E8E8E8); color: #666; }

.rank-icon {
    font-size: 34px;
    margin-right: 0px;
}

.post-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.post-thumbnail {
    flex-shrink: 0;
    margin-right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

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

.ranking-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-info {
    flex-grow: 1;
}

.post-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #777;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-tag {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

/* PC端显示排名徽章 */
.rank-badge {
    padding: 4px 12px;
    background: var(--rank-bg, #f0f0f0);
    color: var(--rank-color, #666);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
}

.view-button {
    flex-shrink: 0;
    margin-left: 15px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white !important;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(74, 144, 226, 0.2);
}

.view-button:hover {
    background: linear-gradient(135deg, #357ABD, #2C5F9E);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(74, 144, 226, 0.3);
}

.no-ranking {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-ranking h3 {
    color: #6c757d;
    font-size: 22px;
    margin-bottom: 15px;
}

.no-ranking p {
    color: #adb5bd;
    font-size: 16px;
}

.no-ranking-icon {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 移动端样式 - 隐藏查看详情按钮和排名徽章，调整布局 */
@media (max-width: 768px) {
    .ranking-item {
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
    }
    
    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .post-content {
        flex-direction: row;
        align-items: center;
        flex-grow: 1;
    }
    
    .post-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .post-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 5px;
    }
    
    /* 移动端隐藏排名徽章 */
    .rank-badge {
        display: none;
    }
    
    .brand-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* 移动端隐藏查看详情按钮 */
    .view-button {
        display: none;
    }
    
    /* 调整post-info的宽度，占据更多空间 */
    .post-info {
        flex-grow: 1;
    }
    .post-info span {
        height: auto !important;
    }
}

/* 超小屏幕设备（手机）的优化 */
@media (max-width: 480px) {
    .ranking-item {
        padding: 12px 15px;
    }
    
    .post-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .post-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .brand-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}