/*
 * 品牌认证分类模板专用样式
 * 此文件独立于 style.css，只在使用品牌认证模板的分类页面加载
 */

/* 美妆主题配色 */
:root {
    --beauty-primary: #ff6b9d;
    --beauty-secondary: #ffa8c5;
    --beauty-accent: #ff8fab;
    --beauty-gold: #FFD700;
}

/* ========================================
   页面整体布局
   ======================================== */

.brand-category-page {
    padding: 0 0 30px 0;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ========================================
   面包屑导航
   ======================================== */

.breadcrumb-wrapper {
    /* background: #fff; */
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item:hover {
    color: var(--beauty-primary);
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
    user-select: none;
}

.breadcrumb-item i {
    font-size: 13px;
}

/* ========================================
   品牌列表主体区域
   ======================================== */

.brand-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   左侧主内容区
   ======================================== */

.brand-main {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 选项卡样式 */
.brand-tabs {
    padding: 20px 20px 0 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-buttons {
    display: flex;
    gap: 0;
}

.brand-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.brand-tab-btn:hover {
    color: #333;
}

.brand-tab-btn.active {
    color: var(--beauty-primary);
    font-weight: bold;
    border-bottom-color: var(--beauty-primary);
}

/* 选项卡内容 */
.brand-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.brand-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   文章列表样式
   ======================================== */

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-item {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: stretch;
}

.brand-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--beauty-primary);
}

/* 左侧图片 */
.brand-item-image {
    width: 240px;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.brand-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-item:hover .brand-item-image img {
    transform: scale(1.1);
}

/* 中间内容区 */
.brand-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.brand-item-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-item:hover .brand-item-title a {
    color: var(--beauty-primary);
}

.new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--beauty-primary);
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

/* 标签 */
.brand-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #FFF3E0;
    color: #FF9800;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.item-tag:hover {
    background: var(--beauty-primary);
    color: #fff;
}

/* 摘要 */
.brand-item-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息 */
.brand-item-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.brand-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-item-meta i {
    color: var(--beauty-primary);
}

/* 操作按钮 */
.brand-item-action {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-detail,
.btn-consult {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-detail {
    background: #fff;
    color: var(--beauty-primary);
    border: 1px solid var(--beauty-primary);
}

.btn-detail:hover {
    background: var(--beauty-primary);
    color: #fff;
}

.btn-consult {
    background: var(--beauty-primary);
    color: #fff;
    border: 1px solid var(--beauty-primary);
}

.btn-consult:hover {
    background: var(--beauty-accent);
    border-color: var(--beauty-accent);
}

/* 右侧统计区 */
.brand-item-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #fff0f5;
    border-radius: 6px;
    min-width: 120px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stats-item > i {
    font-size: 24px;
    color: var(--beauty-primary);
}

.stats-label {
    font-size: 12px;
    color: #999;
}

.stats-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--beauty-primary);
}

.stats-rating {
    display: flex;
    gap: 3px;
}

.stats-rating i {
    font-size: 14px;
    color: var(--beauty-gold);
}

/* ========================================
   右侧精选项目
   ======================================== */

.brand-sidebar {
    display: flex;
    flex-direction: column;
}

.featured-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    padding-left: 15px;
    border-bottom: 2px solid var(--beauty-primary);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--beauty-primary);
    border-radius: 2px;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.featured-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--beauty-primary);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    padding: 15px;
}

.featured-content h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item:hover .featured-content h4 {
    color: var(--beauty-primary);
}

.featured-tags {
    margin-bottom: 8px;
}

.featured-tags span {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    font-size: 11px;
}

.featured-rating {
    display: flex;
    gap: 3px;
    margin-top: 8px;
}

.featured-rating i {
    font-size: 14px;
    color: var(--beauty-gold);
}

/* 空状态 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1024px) {
    .brand-wrapper {
        grid-template-columns: 1fr;
    }
    
    .brand-sidebar {
        order: -1;
    }
    
    .featured-widget {
        position: static;
    }
    
    .featured-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-container {
        padding: 0 10px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .brand-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-item-image {
        width: 100%;
        height: 220px;
    }
    
    .brand-item-stats {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 15px;
    }
    
    .brand-item-action {
        width: 100%;
    }
    
    .btn-detail,
    .btn-consult {
        flex: 1;
        text-align: center;
    }
    
    .featured-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .brand-category-page {
        padding: 0 0 15px 0;
    }
    
    .breadcrumb-wrapper {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        gap: 6px;
    }
    
    .brand-wrapper {
        padding: 0 10px;
    }
    
    .brand-tabs {
        padding: 15px 15px 0 15px;
    }
    
    .brand-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .brand-tab-content {
        padding: 15px;
    }
    
    .brand-item {
        padding: 12px;
    }
    
    .brand-item-title {
        font-size: 15px;
    }
    
    .brand-item-action {
        flex-direction: column;
    }
    
    .btn-detail,
    .btn-consult {
        width: 100%;
    }
}
