/**
 * All Rankings Hub - 排行榜中心样式
 * Theme: Allure Circle (橘 #FF6A00 → 玫粉 #FF6FA5)
 */

:root {
    --rh-orange: #FF6A00;
    --rh-pink: #FF6FA5;
    --rh-warm: #fff5ec;
    --rh-warm-border: #ffd1a8;
    --rh-grad: linear-gradient(135deg, #FF6A00 0%, #FF6FA5 100%);
    --rh-text: #1a1a1a;
    --rh-text-2: #4b5563;
    --rh-text-3: #6b7280;
    --rh-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --rh-shadow-hover: 0 12px 28px rgba(255, 106, 0, 0.18);
}

.rankings-hub {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    padding-bottom: 80px;
}

/* ===== Hero ===== */
.rh-hero {
    background: var(--rh-grad);
    color: #fff;
    padding: 70px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rh-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.rh-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.rh-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.rh-hero-badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.rh-hero-title {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.rh-hero-sub {
    font-size: 19px;
    opacity: 0.95;
    margin: 0 0 32px;
    line-height: 1.6;
}

.rh-hero-stats {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 18px 8px;
    backdrop-filter: blur(8px);
}

.rh-hero-stat {
    padding: 0 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    min-width: 130px;
}

.rh-hero-stat:last-child {
    border-right: none;
}

.rh-hero-stat strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.rh-hero-stat span {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Container ===== */
.rh-container {
    max-width: 1240px;
    margin: -28px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

/* ===== Tabs ===== */
.rh-tabs {
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 28px;
    box-shadow: var(--rh-shadow);
    overflow-x: auto;
}

.rh-tab {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--rh-text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rh-tab span {
    display: inline-block;
    min-width: 22px;
    padding: 1px 8px;
    background: #f1f3f5;
    color: var(--rh-text-3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.rh-tab:hover {
    color: var(--rh-orange);
    background: var(--rh-warm);
}

.rh-tab.active {
    background: var(--rh-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
}

.rh-tab.active span {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ===== Section ===== */
.rh-section {
    margin-bottom: 36px;
}

.rh-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--rh-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rh-section-title span {
    font-size: 28px;
}

/* ===== Grid ===== */
.rh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

/* ===== Card ===== */
.rh-card {
    display: block;
    background: #fff;
    border: 1px solid #f1f3f5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: var(--rh-shadow);
}

.rh-card:hover {
    border-color: var(--rh-warm-border);
    transform: translateY(-4px);
    box-shadow: var(--rh-shadow-hover);
}

/* Card Cover */
.rh-card-cover {
    position: relative;
    height: 132px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.rh-card-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rh-card-cover-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

/* Card Body */
.rh-card-body {
    padding: 16px 18px 18px;
}

.rh-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--rh-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.rh-card-desc {
    font-size: 14px;
    color: var(--rh-text-3);
    margin: 0 0 12px;
    line-height: 1.5;
    min-height: 20px;
}

/* Top brand list (Top 10) */
.rh-card-top-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 6px;
    background: var(--rh-warm);
    border: 1px solid #ffe0c7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rh-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
}

.rh-card-top + .rh-card-top {
    border-top: 1px dashed #ffd9b8;
}

.rh-card-top-medal {
    font-size: 17px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}

.rh-card-top-rank {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rh-text-3);
}

.rh-card-top img {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #fff;
}

.rh-card-top-name {
    font-size: 14.5px;
    color: var(--rh-text);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-card-top-votes {
    font-size: 12.5px;
    color: var(--rh-orange);
    font-weight: 700;
    background: #fff;
    border: 1px solid #ffd1a8;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Card Foot */
.rh-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed #f1f3f5;
}

.rh-card-stat {
    font-size: 14px;
    color: var(--rh-text-3);
}

.rh-card-stat strong {
    color: var(--rh-orange);
    font-size: 17px;
    font-weight: 700;
    margin-right: 3px;
}

.rh-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--rh-orange);
    transition: transform 0.2s;
}

.rh-card:hover .rh-card-cta {
    transform: translateX(4px);
}

/* ===== Empty ===== */
.rh-empty {
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    color: var(--rh-text-3);
}

.rh-empty p {
    font-size: 18px;
    margin: 0 0 8px;
}

.rh-empty small {
    font-size: 14px;
    color: #9ca3af;
}

.rh-empty code {
    background: #f1f3f5;
    color: var(--rh-orange);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* ===== CTA ===== */
.rh-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #fff5ec 0%, #fff 100%);
    border: 1px dashed #ffd1a8;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
}

.rh-cta-inner h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--rh-text);
    margin: 0 0 6px;
}

.rh-cta-inner p {
    font-size: 15.5px;
    color: var(--rh-text-3);
    margin: 0 0 18px;
}

.rh-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--rh-grad);
    color: #fff;
    border-radius: 24px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
    transition: all 0.2s;
}

.rh-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 106, 0, 0.4);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .rh-hero {
        padding: 50px 16px 60px;
    }

    .rh-hero-title {
        font-size: 34px;
    }

    .rh-hero-sub {
        font-size: 16px;
    }

    .rh-hero-stats {
        flex-wrap: wrap;
        padding: 8px;
        border-radius: 14px;
    }

    .rh-hero-stat {
        padding: 12px 22px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        min-width: 120px;
        flex: 1 1 auto;
    }

    .rh-hero-stat strong {
        font-size: 26px;
    }

    .rh-grid {
        grid-template-columns: 1fr;
    }

    .rh-section-title {
        font-size: 22px;
    }
}
