/* ============================================
   砍价排行榜页面专用样式
   设计理念：冲榜控制台 + 榜单展示 + 行动驱动
   ============================================ */

/* ============================================
   页面主体布局
   ============================================ */
.ranking-page {
    min-height: calc(100vh - 56px);
}

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

.ranking-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ranking-main {
    flex: 0 0 780px;
    width: 780px;
}

.ranking-sidebar {
    flex: 0 0 396px;
    width: 396px;
    position: sticky;
    top: 76px;
}

/* ============================================
   规则摘要条 - 重要信息一目了然
   ============================================ */
.ranking-rules-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    background: #F8F9FB;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #E9EDF3;
}

.ranking-rules-list {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    color: #666;
}

.ranking-rules-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ranking-rules-item::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #D4A853;
    border-radius: 50%;
}

.ranking-rules-item span {
    color: #1A1A1A;
    font-weight: 500;
}

.ranking-rules-link {
    font-size: 12px;
    color: #1E3A5F;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.ranking-rules-link:hover {
    color: #E34D59;
}

/* ============================================
   TOP3 领奖台 - 紧凑但信息丰富
   ============================================ */
.ranking-podium-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.ranking-podium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ranking-podium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ranking-podium-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.ranking-podium-title-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #D4A853 0%, #F0C674 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ranking-podium-week {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
}

.ranking-podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
}

/* 领奖台人物 */
.podium-person {
    text-align: center;
    position: relative;
}

.podium-person.rank-1 {
    order: 2;
    margin-top: -16px;
}

.podium-person.rank-2 {
    order: 1;
    margin-top: 20px;
}

.podium-person.rank-3 {
    order: 3;
    margin-top: 32px;
}

.podium-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.podium-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: crown-float 2s ease-in-out infinite;
}

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

.podium-avatar {
    border-radius: 50%;
    background: #E8F4FD;
    display: block;
}

.podium-person.rank-1 .podium-avatar {
    width: 72px;
    height: 72px;
    border: 3px solid #D4A853;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.4);
}

.podium-person.rank-2 .podium-avatar {
    width: 56px;
    height: 56px;
    border: 2px solid #C0C0C0;
}

.podium-person.rank-3 .podium-avatar {
    width: 56px;
    height: 56px;
    border: 2px solid #CD7F32;
}

.podium-rank-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.podium-person.rank-1 .podium-rank-badge {
    background: linear-gradient(135deg, #D4A853, #F0C674);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.5);
}

.podium-person.rank-2 .podium-rank-badge {
    background: linear-gradient(135deg, #A8A8A8, #D0D0D0);
}

.podium-person.rank-3 .podium-rank-badge {
    background: linear-gradient(135deg, #CD7F32, #DDA15E);
}

.podium-info {
    color: white;
    min-width: 100px;
}

.podium-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.podium-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.podium-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.podium-stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.podium-stats-item.highlight {
    color: #F0C674;
    font-weight: 600;
}

/* 领奖台基座 */
.podium-base {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.podium-block {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

.podium-block.rank-1 {
    order: 2;
    height: 64px;
    background: linear-gradient(180deg, #FFE55C 0%, #D4A853 100%);
    color: #7A5D1A;
}

.podium-block.rank-2 {
    order: 1;
    height: 48px;
    background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 100%);
    color: #666;
}

.podium-block.rank-3 {
    order: 3;
    height: 36px;
    background: linear-gradient(180deg, #DDA15E 0%, #CD7F32 100%);
    color: white;
}

/* ============================================
   榜单筛选Tab
   ============================================ */
.ranking-tabs-card {
    background: white;
    border: 1px solid #E9EDF3;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ranking-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #E9EDF3;
}

.ranking-tabs {
    display: flex;
    gap: 4px;
}

.ranking-tab {
    padding: 8px 20px;
    font-size: 14px;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.ranking-tab:hover {
    background: #F5F7FA;
    color: #1E3A5F;
}

.ranking-tab.active {
    background: #1E3A5F;
    color: white;
}

.ranking-count {
    font-size: 12px;
    color: #8C8C8C;
}

/* 我的排名吸顶条 */
.my-rank-sticky {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, #FFF7ED 0%, #FFF1F2 100%);
    border-bottom: 1px solid #E9EDF3;
    animation: slideDown 0.3s ease;
}

.my-rank-sticky.show {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.my-rank-sticky-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.my-rank-sticky-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #E34D59;
}

.my-rank-sticky-text {
    font-size: 13px;
    color: #333;
}

.my-rank-sticky-text strong {
    color: #E34D59;
    font-weight: 600;
}

.my-rank-sticky-gap {
    font-size: 12px;
    color: #E34D59;
    background: rgba(227, 77, 89, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.my-rank-sticky-btn {
    padding: 6px 16px;
    background: #E34D59;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.my-rank-sticky-btn:hover {
    background: #C73845;
}

/* 榜单列表 */
.ranking-list {
    max-height: 480px;
    overflow-y: auto;
}

.ranking-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #F0F0F0;
    gap: 12px;
    transition: all 0.15s;
}

.ranking-list-item:hover {
    background: #FAFBFC;
}

.ranking-list-item:last-child {
    border-bottom: none;
}

.ranking-list-item.is-me {
    background: linear-gradient(90deg, #FFF7ED 0%, #FFF1F2 100%);
}

.rank-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #8C8C8C;
    flex-shrink: 0;
}

.rank-num.top-4 { background: #E8F4FD; color: #1E3A5F; }
.rank-num.top-5 { background: #E8F4FD; color: #1E3A5F; }
.rank-num.top-10 { background: #F0F9EB; color: #52C41A; }

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E8F4FD;
    flex-shrink: 0;
}

.rank-user-info {
    flex: 1;
    min-width: 0;
}

.rank-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-user-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: #E8F4FD;
    color: #1E3A5F;
    border-radius: 4px;
}

.rank-user-company {
    font-size: 12px;
    color: #8C8C8C;
    margin-top: 2px;
}

.rank-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.rank-stat {
    text-align: center;
    min-width: 60px;
}

.rank-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.rank-stat-value.highlight {
    color: #D4A853;
}

.rank-stat-label {
    font-size: 11px;
    color: #8C8C8C;
}

.rank-product {
    font-size: 12px;
    color: #666;
    min-width: 100px;
    text-align: center;
}

/* ============================================
   右侧 - 我的冲榜卡（行动面板）
   ============================================ */
.my-rank-card {
    background: white;
    border: 1px solid #E9EDF3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.my-rank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E9EDF3;
    margin-bottom: 16px;
}

.my-rank-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #E34D59;
}

.my-rank-info {
    flex: 1;
}

.my-rank-name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-rank-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: #E8F4FD;
    color: #1E3A5F;
    border-radius: 4px;
}

.my-rank-company {
    font-size: 13px;
    color: #8C8C8C;
    margin-top: 2px;
}

/* 指标区 */
.my-rank-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.my-rank-metric {
    flex: 1;
    padding: 12px;
    background: #F8F9FB;
    border-radius: 8px;
    text-align: center;
}

.my-rank-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.2;
}

.my-rank-metric-value.rank-value {
    color: #E34D59;
}

.my-rank-metric-label {
    font-size: 11px;
    color: #8C8C8C;
    margin-top: 4px;
}

/* 差距提示条（重点！） */
.chase-progress-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFF1F2 100%);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(227, 77, 89, 0.1);
}

.chase-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chase-progress-title {
    font-size: 12px;
    color: #666;
}

.chase-progress-title strong {
    color: #E34D59;
    font-size: 16px;
}

.chase-progress-percent {
    font-size: 14px;
    font-weight: 600;
    color: #E34D59;
}

.chase-progress-bar {
    height: 8px;
    background: white;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.chase-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E34D59, #F06B77);
    border-radius: 100px;
    transition: width 0.5s ease;
    position: relative;
}

.chase-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
}

.chase-progress-tip {
    font-size: 12px;
    color: #E34D59;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chase-progress-tip::before {
    content: '💡';
    font-size: 14px;
}

/* 行动按钮组 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #E34D59, #C73845);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(227, 77, 89, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 77, 89, 0.4);
}

.action-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    height: 40px;
    background: #F8F9FB;
    color: #4A4A4A;
    border: 1px solid #E9EDF3;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn-secondary:hover {
    background: #E8F4FD;
    border-color: #1E3A5F;
    color: #1E3A5F;
}

.action-btns-row {
    display: flex;
    gap: 10px;
}

/* ============================================
   档位奖励卡片
   ============================================ */
.reward-tiers-card {
    background: white;
    border: 1px solid #E9EDF3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.reward-tiers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.reward-tiers-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reward-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-tier {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.15s;
}

.reward-tier.tier-1 {
    background: linear-gradient(90deg, #FDF8ED 0%, #FFF7ED 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.reward-tier.tier-2 {
    background: #F8F9FB;
    border: 1px solid #E9EDF3;
}

.reward-tier.tier-3 {
    background: #F8F9FB;
    border: 1px solid #E9EDF3;
}

.reward-tier.tier-participate {
    background: linear-gradient(90deg, #FFF1F2 0%, #FFF7ED 100%);
    border: 1px dashed rgba(227, 77, 89, 0.3);
}

.reward-tier-icon {
    font-size: 20px;
    margin-right: 10px;
}

.reward-tier-info {
    flex: 1;
}

.reward-tier-rank {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
}

.reward-tier-gap {
    font-size: 11px;
    color: #E34D59;
    margin-top: 2px;
}

.reward-tier-prize {
    font-size: 13px;
    font-weight: 600;
    color: #E34D59;
}

/* ============================================
   冲榜技巧卡片
   ============================================ */
.tips-card {
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F7FF 100%);
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 10px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tips-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #4A4A4A;
    line-height: 1.5;
}

.tips-item-icon {
    width: 18px;
    height: 18px;
    background: #1E3A5F;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.tips-item strong {
    color: #1E3A5F;
}

/* ============================================
   实时播报迷你条
   ============================================ */
.live-broadcast {
    height: 44px;
    background: white;
    border: 1px solid #E9EDF3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.live-broadcast-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E34D59;
    font-size: 12px;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.live-broadcast-dot {
    width: 6px;
    height: 6px;
    background: #E34D59;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.live-broadcast-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.live-broadcast-list {
    position: absolute;
    width: 100%;
    animation: broadcast-scroll 12s linear infinite;
}

.live-broadcast-list:hover {
    animation-play-state: paused;
}

@keyframes broadcast-scroll {
    0% { transform: translateY(0); }
    25% { transform: translateY(0); }
    33% { transform: translateY(-20px); }
    58% { transform: translateY(-20px); }
    66% { transform: translateY(-40px); }
    91% { transform: translateY(-40px); }
    100% { transform: translateY(-60px); }
}

.live-broadcast-item {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-broadcast-item strong {
    color: #1A1A1A;
}

.live-broadcast-item .highlight {
    color: #E34D59;
    font-weight: 500;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 1240px) {
    .ranking-container {
        width: 100%;
        padding: 16px;
    }
    
    .ranking-main {
        flex: 1;
        min-width: 0;
    }
    
    .ranking-sidebar {
        flex: 0 0 340px;
        width: 340px;
    }
}

/* ============================================
   动画效果
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 排名变化动画 */
.rank-change {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    margin-left: 6px;
}

.rank-change.up {
    color: #52C41A;
}

.rank-change.down {
    color: #E34D59;
}

.rank-change-icon {
    font-size: 10px;
}

/* ============================================
   155 - 榜单页用户图标与规则卡片优化
   ============================================ */
.ranking-rules-bar {
    min-height: 72px;
    height: auto;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #EEF2F7;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-rules-list {
    flex: 1;
    gap: 18px;
    min-width: 0;
}

.ranking-rules-item {
    flex: 1 1 0;
    min-width: 0;
    gap: 10px;
}

.ranking-rules-item::before {
    content: none;
}

.rule-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.rule-period-icon {
    color: #2F72E8;
    background: #EAF2FF;
}

.rule-period-icon::before {
    content: '📊';
}

.rule-speed-icon {
    color: #0F766E;
    background: #E6F7F3;
}

.rule-speed-icon::before {
    content: '🏅';
}

.rule-assist-icon {
    color: #D97706;
    background: #FFF4DE;
}

.rule-assist-icon::before {
    content: '🔥';
}

.rule-item-body {
    min-width: 0;
}

.rule-item-title {
    font-size: 13px;
    line-height: 18px;
    color: #475569;
    font-weight: 600;
}

.rule-item-desc {
    margin-top: 4px;
    color: #1F2937;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-rules-link {
    margin-left: 12px;
    color: #2F72E8;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ranking-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: #2563EB;
    background: linear-gradient(135deg, #EEF6FF 0%, #E6F0FF 100%);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.ranking-user-icon::before {
    content: '';
    width: 52%;
    height: 52%;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.podium-user-icon {
    color: #F5C451;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.podium-person.rank-1 .podium-user-icon {
    width: 72px;
    height: 72px;
    border: 3px solid #D4A853;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.podium-person.rank-2 .podium-user-icon,
.podium-person.rank-3 .podium-user-icon {
    width: 56px;
    height: 56px;
}

.podium-person.rank-2 .podium-user-icon {
    border: 2px solid #C0C0C0;
}

.podium-person.rank-3 .podium-user-icon {
    border: 2px solid #CD7F32;
}

.podium-name {
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-stats-item {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-user-icon {
    width: 40px;
    height: 40px;
}

.rank-user-tag.is-self {
    background: #FFF1F2;
    color: #E34D59;
}

.my-rank-sticky-icon {
    width: 32px;
    height: 32px;
    color: #E34D59;
    background: #FFF1F2;
    box-shadow: inset 0 0 0 2px rgba(227, 77, 89, 0.18);
}

.my-rank-user-icon {
    width: 56px;
    height: 56px;
    color: #E34D59;
    background: linear-gradient(135deg, #FFF1F2 0%, #FFF7ED 100%);
    box-shadow: inset 0 0 0 2px rgba(227, 77, 89, 0.16);
}

.my-rank-name {
    line-height: 22px;
}

.rank-user-name {
    min-width: 0;
}

.rank-product {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1240px) {
    .ranking-rules-bar,
    .ranking-rules-list {
        align-items: flex-start;
    }

    .ranking-rules-list {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .rule-item-desc {
        white-space: normal;
    }
}

/* 156 - 榜单统计列固定宽度，避免耗时文本挤歪助力列 */
.ranking-list-item {
    gap: 14px;
}

.rank-user-info {
    flex: 1 1 0;
    min-width: 180px;
}

.rank-stats {
    width: 176px;
    display: grid;
    grid-template-columns: 88px 76px;
    gap: 12px;
    justify-content: end;
}

.rank-stat {
    width: 100%;
    min-width: 0;
}

.rank-stat-value {
    height: 22px;
    line-height: 22px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rank-product {
    width: 150px;
    min-width: 150px;
    text-align: left;
}
