@import url("topheader.css"); 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 品牌榜单中心英雄区 */
.hero-rank-center {
    width: 100%;
    padding: 60px 0 70px;
    position: relative;
    background: linear-gradient(135deg, #fef6f0 0%, #fdf2e9 30%, #fbe8d5 60%, #f5e6d3 100%);
    overflow: hidden;
}
.hero-rank-center::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-rank-center::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 143, 90, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-rank-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(255, 107, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(255, 143, 90, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(251, 232, 213, 0.5) 0%, transparent 50%);
    pointer-events: none;
}
.hero-rank-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.hero-rank-left {
    flex: 1;
    max-width: 600px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff5f0, #fff0e8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e55a28;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: #ff6b35;
    stroke: none;
}
.hero-title-main {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-title-main .highlight {
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #5a6e7c;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* 搜索框样式 */
.hero-search-form {
    margin-bottom: 24px;
}
.hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.12);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.hero-search-box:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}
.search-icon {
    width: 22px;
    height: 22px;
    color: #ff6b35;
    flex-shrink: 0;
}
.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
    padding: 8px 16px;
}
.hero-search-input::placeholder {
    color: #999;
}
.hero-search-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hero-search-btn:hover {
    background: linear-gradient(135deg, #e55a28, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* 热门关键词 */
.hero-hot-keywords {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hot-label {
    font-size: 0.9rem;
    color: #5a6e7c;
    font-weight: 500;
}
.hot-keyword {
    background: linear-gradient(135deg, #fff5f0, #fff0e8);
    border: 1px solid rgba(255, 107, 53, 0.15);
    color: #e55a28;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hot-keyword:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

/* 右侧统计 */
.hero-rank-right {
    flex-shrink: 0;
}
.hero-rank-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 28px 36px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: #8aa2b8;
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, #e0d5c8, transparent);
}

/* 榜单切换标签 */
.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 30px;
    flex-wrap: wrap;
}
.rank-tab {
    color: #5a6e7c;
    padding: 15px 40px;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}
.rank-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}
.rank-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff6b35 100%);
    color: #fff;
}

/* 榜单内容 */
.rank-content {
    display: none;
}
.rank-content.active {
    display: block;
}
.section-header {
    text-align: center;
    margin: 40px 0 30px;
}
.section-header h2 {
    font-size: 2rem;
    color: #5a6e7c;
    margin-bottom: 10px;
}
.section-header p {
    color: #5a6e7c;
    font-size: 1rem;
}

/* 品牌卡片网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.brand-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #5a6e7c 0%, #5a6e7c 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.brand-card:hover::before {
    transform: scaleX(1);
}
.brand-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.brand-card-header h3 {
    font-size: 1.1rem;
    color: #333;
}
.brand-card-header .rank-badge {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}
.brand-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
}
.brand-rank-item:hover {
    background: #f8f9fa;
}
.brand-rank-item .position {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.brand-rank-item .position.top1 { background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%); color: #fff; }
.brand-rank-item .position.top2 { background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%); color: #fff; }
.brand-rank-item .position.top3 { background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%); color: #fff; }
.brand-rank-item .position.other { background: #f0f0f0; color: #666; }
.brand-rank-item img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 5px;
    display: none;
}
.brand-rank-item .info {
    flex: 1;
    min-width: 0;
}
.brand-rank-item .brand-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-rank-item .brand-name a {
    color: inherit;
    text-decoration: none;
}
.brand-rank-item .brand-name a:hover {
    color: #e94560;
}
.brand-rank-item .score {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}
.brand-rank-item .heat {
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 500;
}
.view-more {
    display: block;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #5a6e7c 0%, #5a6e7c 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 15px;
    transition: all 0.3s;
    font-weight: 500;
}
.view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

/* 特色榜单展示 */
.featured-ranks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.featured-rank-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.featured-rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.featured-rank-header h3 {
    font-size: 1.3rem;
    color: #1e3a5f;
}
.featured-rank-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.featured-rank-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s;
}
.featured-rank-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}
.featured-rank-item .num {
    font-size: 1.2rem;
    font-weight: bold;
    width: 32px;
    text-align: center;
    color: #ff6b35;
}
.featured-rank-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    display: none;
}
.featured-rank-item .name {
    color: #333;
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}
.featured-rank-item .score {
    color: #999;
    font-size: 0.85rem;
}

/* 全部榜单分类概览 */
.all-ranks-overview {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.all-ranks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.category-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,107,53,0.15);
}
.category-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.category-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}
.category-card p {
    font-size: 0.85rem;
    color: #999;
}

/* 底部 */
.footer {
    margin-top: 3rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid #eef2f8;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col p {
    color: #8aa2b8;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    text-decoration: none;
    color: #5a6e7c;
    font-size: 0.8rem;
}
.footer-links a:hover {
    color: #ff6b35;
}

/* ========== 移动端优化 ========== */

/* 平板设备 1024px */
@media (max-width: 1024px) {
    .featured-ranks {
        grid-template-columns: 1fr;
    }
    .all-ranks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-rank-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-rank-left {
        max-width: 100%;
    }
    .hero-rank-stats {
        justify-content: center;
    }
    .hero-hot-keywords {
        justify-content: center;
    }
}

/* 平板设备 768px */
@media (max-width: 768px) {
    /* 英雄区优化 */
    .hero-rank-center {
        padding: 40px 16px 50px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    .hero-title-main {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    /* 搜索框优化 */
    .hero-search-form {
        margin-bottom: 16px;
    }
    .hero-search-box {
        padding: 6px 6px 6px 16px;
        border-radius: 40px;
    }
    .hero-search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .hero-search-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        border-radius: 36px;
    }
    
    /* 热门关键词优化 */
    .hero-hot-keywords {
        gap: 8px;
    }
    .hot-label {
        font-size: 0.8rem;
    }
    .hot-keyword {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    /* 统计区域优化 */
    .hero-rank-stats {
        padding: 20px 24px;
        flex-wrap: wrap;
        gap: 16px;
        border-radius: 16px;
    }
    .stat-item {
        padding: 0 16px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .stat-divider {
        display: none;
    }
    
    /* 容器优化 */
    .container {
        padding: 0 12px;
    }
    
    /* 榜单标签优化 - 横向滚动 */
    .rank-tabs {
        margin: 30px 0 20px;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 12px;
    }
    .rank-tabs::-webkit-scrollbar {
        display: none;
    }
    .rank-tab {
        padding: 12px 24px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* 内容区域优化 */
    .section-header {
        margin: 24px 0 20px;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .section-header p {
        font-size: 0.85rem;
    }
    
    /* 特色榜单优化 - 单列 */
    .featured-ranks {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    .featured-rank-card {
        padding: 20px;
        border-radius: 16px;
    }
    .featured-rank-header h3 {
        font-size: 1.1rem;
    }
    .featured-rank-item {
        padding: 10px 12px;
        gap: 12px;
    }
    .featured-rank-item .num {
        font-size: 1rem;
        width: 28px;
    }
    .featured-rank-item .name {
        font-size: 0.9rem;
    }
    
    /* 品牌网格 - 2列 */
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-bottom: 40px;
    }
    .brand-card {
        padding: 16px;
        border-radius: 12px;
    }
    .brand-card-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .brand-card-header h3 {
        font-size: 0.95rem;
    }
    .brand-card-header .rank-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .brand-rank-item {
        padding: 8px;
        gap: 10px;
    }
    .brand-rank-item .position {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .brand-rank-item .brand-name {
        font-size: 0.85rem;
    }
    .view-more {
        padding: 12px;
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    /* 全部榜单分类优化 */
    .all-ranks-overview {
        padding: 24px;
        margin: 30px 0;
        border-radius: 16px;
    }
    .all-ranks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 16px;
    }
    .category-card .icon {
        font-size: 2rem;
    }
    .category-card h4 {
        font-size: 0.9rem;
    }
    
    /* 底部优化 */
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0 2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        gap: 1rem 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* 手机设备 480px */
@media (max-width: 480px) {
    /* 英雄区精简优化 */
    .hero-rank-center {
        padding: 28px 10px 40px;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    .hero-badge svg {
        width: 12px;
        height: 12px;
    }
    .hero-title-main {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    /* 搜索框精简 */
    .hero-search-form {
        margin-bottom: 12px;
    }
    .hero-search-box {
        padding: 4px 4px 4px 12px;
        border-radius: 30px;
    }
    .search-icon {
        width: 18px;
        height: 18px;
    }
    .hero-search-input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .hero-search-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 28px;
    }
    
    /* 热门关键词精简 */
    .hero-hot-keywords {
        gap: 6px;
    }
    .hot-label {
        font-size: 0.75rem;
    }
    .hot-keyword {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    /* 统计区域精简 */
    .hero-rank-stats {
        padding: 16px 16px;
        gap: 12px;
        border-radius: 12px;
    }
    .stat-item {
        padding: 0 12px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* 榜单标签精简 */
    .rank-tabs {
        margin: 20px 0 16px;
        padding: 0 10px;
    }
    .rank-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-radius: 40px;
    }
    
    /* 内容区域精简 */
    .section-header {
        margin: 20px 0 16px;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .section-header p {
        font-size: 0.8rem;
    }
    
    /* 特色榜单精简 */
    .featured-ranks {
        gap: 12px;
        margin: 16px 0;
    }
    .featured-rank-card {
        padding: 16px;
        border-radius: 12px;
    }
    .featured-rank-header {
        margin-bottom: 16px;
    }
    .featured-rank-header h3 {
        font-size: 1rem;
    }
    .featured-rank-list {
        gap: 10px;
    }
    .featured-rank-item {
        padding: 8px 10px;
        gap: 10px;
    }
    .featured-rank-item .num {
        font-size: 0.9rem;
        width: 24px;
    }
    .featured-rank-item .name {
        font-size: 0.85rem;
    }
    
    /* 品牌网格 - 单列 */
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    .brand-card {
        padding: 14px;
        border-radius: 10px;
    }
    .brand-card-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .brand-card-header h3 {
        font-size: 0.9rem;
    }
    .brand-rank-list {
        gap: 8px;
    }
    .brand-rank-item {
        padding: 6px 8px;
        gap: 8px;
    }
    .brand-rank-item .position {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    .brand-rank-item .brand-name {
        font-size: 0.8rem;
    }
    .view-more {
        padding: 10px;
        font-size: 0.8rem;
        margin-top: 8px;
    }
    
    /* 全部榜单分类精简 */
    .all-ranks-overview {
        padding: 16px;
        margin: 20px 0;
    }
    .all-ranks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 14px 10px;
    }
    .category-card .icon {
        font-size: 1.8rem;
    }
    .category-card h4 {
        font-size: 0.85rem;
    }
    .category-card p {
        font-size: 0.75rem;
    }
    
    /* 底部精简 */
    .footer {
        margin-top: 1.5rem;
        padding: 1.2rem 0 1.5rem;
        gap: 0.8rem;
    }
    .footer-col p {
        font-size: 0.7rem;
    }
    .footer-links {
        gap: 8px 12px;
    }
    .footer-links a {
        font-size: 0.7rem;
    }
}

/* 小屏手机 360px */
@media (max-width: 360px) {
    .hero-title-main {
        font-size: 1.4rem;
    }
    .hero-rank-center {
        padding: 20px 8px 32px;
    }
    .stat-number {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.1rem;
    }
    .rank-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .featured-rank-header h3 {
        font-size: 0.95rem;
    }
    .brand-card-header h3 {
        font-size: 0.85rem;
    }
    .all-ranks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}