/* ===== chinapp.com 风格独立品牌排行榜页 ===== */

.br-header {
    background: #fff;
    padding: 30px 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.br-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 12px;
    font-weight: bold;
}
.br-intro {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 10px;
}
.br-update {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 顶部 banner */
.br-banner {
    margin: 0 0 20px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #f5f5f5;
}
.br-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Tab 切换 */
.br-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e4393c;
    padding: 0 20px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.br-tab {
    padding: 16px 30px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    cursor: pointer;
}
.br-tab:hover {
    color: #e4393c;
}
.br-tab.active {
    color: #e4393c;
    border-bottom-color: #e4393c;
    font-weight: bold;
}

/* Tab 面板 */
.br-tab-panel {
    display: none;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.br-tab-panel.active {
    display: block;
}

/* 品牌列表 */
.br-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.br-brand-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
}
.br-brand-item:last-child {
    border-bottom: 0;
}

/* ===== 颁奖台：前三名（克制版） ===== */
.br-podium {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;  /* 第 1 名卡片略大 */
    align-items: end;
    gap: 16px;
    padding: 20px 0 30px;
    margin-bottom: 8px;
}
.br-podium-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px 18px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.br-podium-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
/* 第 1 名 - 金色 */
.br-podium-rank-1 {
    background: linear-gradient(180deg, #fff8e1 0%, #fff 60%);
    border-color: #ffd54f;
    padding-top: 26px;
    margin-top: -8px;       /* 视觉上抬高 */
    z-index: 2;
}
.br-podium-rank-1 .br-podium-medal {
    background: linear-gradient(135deg, #ffd54f 0%, #ffa726 100%);
    color: #fff;
}
/* 第 2 名 - 银色 */
.br-podium-rank-2 {
    background: linear-gradient(180deg, #f5f5f5 0%, #fff 60%);
    border-color: #bdbdbd;
}
.br-podium-rank-2 .br-podium-medal {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    color: #fff;
}
/* 第 3 名 - 铜色 */
.br-podium-rank-3 {
    background: linear-gradient(180deg, #fff3e0 0%, #fff 60%);
    border-color: #d49b6c;
}
.br-podium-rank-3 .br-podium-medal {
    background: linear-gradient(135deg, #d49b6c 0%, #b07c50 100%);
    color: #fff;
}

.br-podium-medal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.br-podium-medal-icon {
    font-size: 14px;
    line-height: 1;
}
.br-podium-medal-num {
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.br-podium-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}
.br-podium-rank-1 .br-podium-logo {
    width: 92px;
    height: 92px;
}
.br-podium-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.br-podium-name {
    font-size: 16px;
    margin: 0 0 6px;
    color: #333;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.br-podium-rank-1 .br-podium-name {
    font-size: 18px;
}
.br-podium-name a {
    color: inherit;
    text-decoration: none;
}
.br-podium-name a:hover {
    color: #e4393c;
}

.br-podium-intro {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 12px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.br-podium-score {
    margin-bottom: 12px;
}
.br-podium-score-num {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #e4393c;
    line-height: 1;
}
.br-podium-rank-1 .br-podium-score-num {
    font-size: 26px;
}
.br-podium-score-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.br-podium-link {
    display: inline-block;
    padding: 5px 18px;
    border: 1px solid #e4393c;
    color: #e4393c;
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.br-podium-link:hover {
    background: #e4393c;
    color: #fff;
}

/* 第 4 名以下分组 */
.br-list-section {
    margin-top: 10px;
}
.br-list-title {
    font-size: 14px;
    color: #999;
    margin: 0 0 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: normal;
}

.br-brand-rank {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    background: #f5f5f5;
    color: #999;
}
.br-brand-rank-1 { background: #ffd700; color: #fff; }
.br-brand-rank-2 { background: #c0c0c0; color: #fff; }
.br-brand-rank-3 { background: #cd7f32; color: #fff; }
.br-rank-num {
    font-style: italic;
}

.br-brand-logo {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}
.br-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.br-logo-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    font-size: 36px;
    color: #999;
    font-weight: bold;
}

.br-brand-info {
    flex: 1;
    min-width: 0;
}
.br-brand-name {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px;
    font-weight: bold;
}
.br-brand-intro {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.br-brand-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}
.br-brand-meta b {
    color: #e4393c;
    font-weight: bold;
    margin-left: 4px;
}

.br-brand-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.br-btn-primary, .br-btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
}
.br-btn-primary {
    background: #e4393c;
    color: #fff;
    border: 1px solid #e4393c;
}
.br-btn-primary:hover {
    background: #c9302c;
    color: #fff;
}
.br-btn-secondary {
    background: #fff;
    color: #e4393c;
    border: 1px solid #e4393c;
}
.br-btn-secondary:hover {
    background: #e4393c;
    color: #fff;
}

/* 空状态 */
.br-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}
.br-empty p {
    margin: 8px 0;
    font-size: 14px;
}
.br-empty a {
    color: #e4393c;
    text-decoration: none;
}
.br-empty a:hover {
    text-decoration: underline;
}

/* 子分类 */
.br-subcategories, .br-related {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.br-subcategories h3, .br-related h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px;
    font-weight: bold;
}
.br-subcategory-list, .br-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.br-subcategory-link, .br-related-link {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.br-subcategory-link:hover, .br-related-link:hover {
    background: #e4393c;
    color: #fff;
}

/* 404 */
.br-not-found {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 20px 0;
}
.br-not-found h1 {
    font-size: 80px;
    color: #e4393c;
    margin: 0 0 20px;
    font-weight: bold;
}
.br-not-found p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
}

/* 年度切换条 */
.br-year-bar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.br-year-label {
    font-size: 13px;
    color: #999;
    margin-right: 4px;
}
.br-year-link {
    display: inline-block;
    padding: 5px 14px;
    background: #f5f5f5;
    color: #555;
    border-radius: 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.br-year-link:hover {
    background: #ffe5e6;
    color: #e4393c;
}
.br-year-link.active {
    background: #e4393c;
    color: #fff;
    font-weight: bold;
}
.br-year-tip {
    margin-top: 12px;
    padding: 8px 14px;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    color: #856404;
    font-size: 13px;
    border-radius: 4px;
}

/* 历史年度榜（最近 5 年） */
.br-history {
    background: #fff;
    padding: 20px 25px;
    margin: 20px 0 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.br-history h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
    font-weight: bold;
}
.br-history-tip {
    font-size: 12px;
    color: #999;
    margin: 0 0 15px;
}
.br-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.br-history-item {
    margin: 0;
    padding: 0;
}
.br-history-link {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.br-history-link:hover {
    background: #fff;
    border-color: #e4393c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.15);
}
.br-history-year {
    font-size: 18px;
    font-weight: bold;
    color: #e4393c;
    margin-bottom: 4px;
}
.br-history-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}
.br-history-period {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}
.br-history-date {
    font-size: 11px;
    color: #aaa;
}

/* 响应式 */
@media (max-width: 768px) {
    .br-brand-item {
        flex-wrap: wrap;
    }
    .br-brand-info {
        flex: 1 1 100%;
        order: 2;
    }
    .br-brand-rank {
        order: 0;
    }
    .br-brand-logo {
        order: 1;
    }
    .br-brand-action {
        flex: 1 1 100%;
        flex-direction: row;
        order: 3;
    }
    .br-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    /* 颁奖台移动端：垂直堆叠，第一名置顶 */
    .br-podium {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .br-podium-rank-1 {
        margin-top: 0;
        order: -1;
    }
}
