/**
 * Ranking System - Frontend Styles
 * Version: 1.0.0
 */
 
/* =========================================
   Container
   ========================================= */
.ranking-page {
    padding: 0 0 60px;
}
.ranking-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
 
/* =========================================
   A. Hero Section
   ========================================= */
.ranking-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    padding-top: 20px;
}
.ranking-breadcrumb a {
    color: #888;
    text-decoration: none;
}
.ranking-breadcrumb a:hover {
    color: #333;
}
.ranking-breadcrumb .current {
    color: #333;
}
 
.ranking-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #111;
}
.ranking-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
}
 
.ranking-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.ranking-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
}
.ranking-meta-tag svg {
    flex-shrink: 0;
}
 
/* =========================================
   Intro Text
   ========================================= */
.ranking-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
 
/* =========================================
   Trust Badges
   ========================================= */
.ranking-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ranking-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ranking-trust-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ranking-trust-text {
    min-width: 0;
    flex: 1;
}
.ranking-trust-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.3;
}
.ranking-trust-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
 
/* =========================================
   B. Top Picks Carousel
   ========================================= */
.ranking-picks {
    margin-bottom: 30px;
}
.ranking-picks-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
    /* DEBUG MARKER v1.1: 如果你能看到标题左侧有蓝色竖线，说明新CSS已加载 */
    border-left: 4px solid #2563eb !important;
    padding-left: 12px !important;
}
.ranking-carousel-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.ranking-carousel {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
}
.ranking-carousel::-webkit-scrollbar {
    display: none !important;
}
.ranking-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    padding: 4px 0;
    width: max-content !important;
}
.ranking-carousel-arrow {
    position: absolute;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.ranking-carousel-arrow:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ranking-carousel-prev {
    left: -20px;
}
.ranking-carousel-next {
    right: -20px;
}
 
/* Pick card */
.ranking-pick-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    display: block !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
    position: relative;
}
.ranking-pick-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ranking-pick-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ranking-pick-card:first-child .ranking-pick-rank-badge {
    background: #b8860b;
}
.ranking-pick-card:nth-child(2) .ranking-pick-rank-badge {
    background: #6b7280;
}
.ranking-pick-card:nth-child(3) .ranking-pick-rank-badge {
    background: #92400e;
}
.ranking-pick-img-wrap {
    width: 100%;
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ranking-pick-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.ranking-pick-info {
    padding: 14px 16px 18px;
}
.ranking-pick-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-pick-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 6px;
}
.ranking-pick-review-count {
    color: #999;
    font-size: 12px;
}
.ranking-pick-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}
 
/* Dots */
.ranking-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.ranking-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s;
}
.ranking-carousel-dot.active {
    background: #475569;
}
 
/* =========================================
   Stars (shared)
   ========================================= */
.ranking-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}
.ranking-star-half {
    opacity: 0.4;
}
.ranking-stars-number {
    color: #555;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
 
/* =========================================
   C. Table of Contents
   ========================================= */
.ranking-toc {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
}
.ranking-toc-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}
.ranking-toc-list {
    margin: 0;
    padding-left: 20px;
}
.ranking-toc-list li {
    padding: 4px 0;
    font-size: 14px;
}
.ranking-toc-list a {
    color: #2563eb;
    text-decoration: none;
}
.ranking-toc-list a:hover {
    text-decoration: underline;
}
 
/* =========================================
   D. Methodology
   ========================================= */
.ranking-methodology {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
}
.ranking-methodology h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #334155;
}
.ranking-methodology p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
 
/* =========================================
   E. Sort Tabs
   ========================================= */
.ranking-sort-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ranking-sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ranking-sort-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ranking-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    white-space: nowrap;
}
.ranking-sort-btn svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ranking-sort-btn:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 1px 3px rgba(37,99,235,0.1);
}
.ranking-sort-btn:hover svg {
    opacity: 1;
}
.ranking-sort-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}
.ranking-sort-btn.active svg {
    opacity: 1;
    stroke: #fff;
}
 
/* =========================================
   F. Full Ranking Cards
   ========================================= */
.ranking-list {
    margin-bottom: 16px;
}
.ranking-card.ranking-card-hidden {
    display: none !important;
}
.ranking-show-more-wrap {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ranking-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ranking-show-more-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.ranking-show-more-btn svg {
    transition: transform 0.2s;
}
.ranking-show-more-btn:hover svg {
    transform: translateY(2px);
}
.ranking-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.ranking-collapse-btn:hover {
    color: #475569;
    border-color: #cbd5e1;
}
.ranking-show-count {
    font-size: 13px;
    color: #94a3b8;
}
.ranking-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.ranking-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ranking-card-rank {
    font-size: 28px;
    font-weight: 700;
    color: #d4d4d4;
    min-width: 36px;
    text-align: center;
    padding-top: 4px;
    flex-shrink: 0;
}
.ranking-card:first-child .ranking-card-rank {
    color: #d4a843;
}
.ranking-card:nth-child(2) .ranking-card-rank {
    color: #9ca3af;
}
.ranking-card:nth-child(3) .ranking-card-rank {
    color: #b45309;
}
 
.ranking-card-image {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}
.ranking-card-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.ranking-card-img-placeholder {
    width: 100%;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
 
.ranking-card-info {
    flex: 1;
    min-width: 0;
}
.ranking-card-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}
.ranking-card-title a {
    color: #111;
    text-decoration: none;
}
.ranking-card-title a:hover {
    color: #2563eb;
}
.ranking-card-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
}
 
.ranking-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 10px;
}
 
.ranking-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ranking-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
}
.ranking-tag-highlight {
    background: #ecfdf5;
    color: #065f46;
}
 
.ranking-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.ranking-stat {
    text-align: center;
}
.ranking-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.ranking-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
 
.ranking-card-bar {
    margin-bottom: 10px;
}
.ranking-progress {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.ranking-progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.5s;
}
 
.ranking-card-review {
    font-size: 13px;
    color: #666;
    font-style: italic;
    background: #fafafa;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.ranking-review-label {
    font-style: normal;
    color: #999;
    font-size: 12px;
}
 
.ranking-card-cta {
    display: inline-block;
    padding: 8px 18px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.ranking-card-cta:hover {
    background: #1d4ed8;
    color: #fff;
}
 
/* =========================================
   G. Comparison Table
   ========================================= */
.ranking-comparison {
    margin-bottom: 40px;
}
.ranking-comparison h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #222;
}
.ranking-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ranking-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.ranking-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
    vertical-align: middle;
}
.ranking-table tbody tr:last-child td {
    border-bottom: none;
}
.ranking-table tbody tr:hover {
    background: #f9fafb;
}
.ranking-table-rank {
    font-weight: 700;
    color: #999;
    width: 40px;
}
.ranking-table-model a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}
.ranking-table-model a:hover {
    color: #2563eb;
}
.ranking-table-price {
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}
.ranking-table-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.ranking-table-link:hover {
    text-decoration: underline;
}
 
/* =========================================
   H. FAQ
   ========================================= */
.ranking-faq {
    margin-bottom: 40px;
}
.ranking-faq h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #222;
}
.ranking-faq-block {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.ranking-faq-block:last-child {
    border-bottom: none;
}
.ranking-faq-question {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #222;
}
.ranking-faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.ranking-faq-answer p {
    margin: 0;
}
 
/* =========================================
   I. Related Rankings
   ========================================= */
.ranking-related {
    margin-bottom: 30px;
}
.ranking-related h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #222;
}
.ranking-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ranking-related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.ranking-related-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37,99,235,0.08);
}
.ranking-related-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}
.ranking-related-info {
    flex: 1;
    min-width: 0;
}
.ranking-related-brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ranking-related-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #222;
    line-height: 1.4;
}
.ranking-related-meta {
    font-size: 12px;
    color: #999;
}
 
/* =========================================
   Archive Page - Brand Grouped
   ========================================= */
.ranking-brand-groups {
    margin: 30px 0 40px;
}
.ranking-brand-group {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.ranking-brand-group:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ranking-brand-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s;
}
.ranking-brand-toggle:hover {
    background: #f8fafc;
}
.ranking-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    flex: 1;
}
.ranking-brand-count {
    font-size: 13px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}
.ranking-brand-arrow {
    color: #64748b;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.ranking-brand-group.is-open .ranking-brand-arrow {
    transform: rotate(180deg);
}
.ranking-brand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 16px;
}
.ranking-brand-group.is-open .ranking-brand-content {
    max-height: 5000px;
    padding: 8px 16px 18px;
    border-top: 1px solid #f1f5f9;
}
.ranking-archive-card {
    display: flex;
    gap: 16px;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 10px;
}
.ranking-archive-card:last-child {
    margin-bottom: 0;
}
.ranking-archive-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.ranking-archive-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}
.ranking-archive-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111;
}
.ranking-archive-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.ranking-archive-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
 
/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .ranking-title {
        font-size: 24px;
    }
    .ranking-trust {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 14px;
    }
    .ranking-trust-icon {
        width: 36px;
        height: 36px;
    }
    .ranking-trust-text h4 {
        font-size: 13px;
    }
    .ranking-trust-text p {
        font-size: 11px;
    }
    .ranking-sort-tabs {
        gap: 8px;
        padding: 10px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ranking-sort-tabs::-webkit-scrollbar {
        display: none;
    }
    .ranking-sort-label {
        font-size: 12px;
    }
    .ranking-sort-buttons {
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    .ranking-sort-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
    .ranking-carousel-arrow {
        display: none;
    }
    .ranking-pick-card {
        flex: 0 0 240px;
    }
    .ranking-pick-img-wrap {
        height: 180px;
    }
    .ranking-card {
        flex-direction: column;
    }
    .ranking-card-rank {
        font-size: 20px;
    }
    .ranking-card-image {
        width: 100%;
        min-width: unset;
    }
    .ranking-card-image img {
        height: 180px;
        width: 100%;
    }
    .ranking-related-grid {
        grid-template-columns: 1fr;
    }
}
 