.brand-search-section{
    margin:40px 0
}

.search-box{
    position:relative;
    max-width:600px;
    margin:0 auto
}

.brand-search-input{
    width:100%;
    padding:16px 50px 16px 20px;
    font-size:16px;
    border:2px solid #e0e0e0;
    border-radius:50px;
    outline:none;
    transition:all 0.3s
}

.brand-search-input:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,0.1)
}

.search-icon{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    font-size:20px
}

.brand-categories{
    margin:60px 0
}

/* 优化后的品牌网格 - 统一卡片大小 */
.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:25px
}

.category-card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    background:white;
    padding:30px 20px;
    border-radius:16px;
    text-decoration:none;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:all 0.3s;
    overflow:hidden;
    min-height:260px;
    justify-content:space-between
}

.category-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,#3b82f6,#8b5cf6);
    transform:scaleX(0);
    transition:transform 0.3s
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 8px 24px rgba(0,0,0,0.12)
}

.category-card:hover::before{
    transform:scaleX(1)
}

/* Logo容器 - 固定尺寸确保整齐 */
.brand-logo-wrapper{
    width:120px;
    height:120px;
    margin-bottom:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8f9fa;
    border-radius:16px;
    overflow:hidden;
    transition:all 0.3s;
    flex-shrink:0
}

.category-card:hover .brand-logo-wrapper{
    transform:scale(1.05);
    box-shadow:0 4px 12px rgba(0,0,0,0.1)
}

/* Logo图片自适应 */
.brand-logo{
    max-width:90%;
    max-height:90%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block
}

/* Logo占位符（如果没有图片时显示首字母） */
.brand-logo-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)
}

.brand-initial{
    font-size:48px;
    font-weight:700;
    color:white;
    text-transform:uppercase
}

.category-content{
    text-align:center;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center
}

.category-name{
    font-size:18px;
    font-weight:600;
    margin:0 0 8px 0;
    color:#1a1a1a
}

.category-count{
    font-size:14px;
    color:#666;
    margin:0
}

.category-arrow{
    font-size:24px;
    color:#3b82f6;
    margin-top:10px;
    opacity:0;
    transition:opacity 0.3s
}

.category-card:hover .category-arrow{
    opacity:1
}

.no-results{
    text-align:center;
    padding:60px 20px;
    color:#999;
    font-size:18px
}

.featured-section{
    margin:60px 0
}

.featured-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:transform 0.3s,box-shadow 0.3s
}

.featured-card:hover{
    transform:translateY(-4px);
    box-shadow:0 4px 16px rgba(0,0,0,0.12)
}

.featured-image{
    display:block;
    aspect-ratio:16 / 10;
    overflow:hidden
}

.featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.3s
}

.featured-card:hover .featured-image img{
    transform:scale(1.05)
}

.featured-content{
    padding:20px
}

.featured-brands-logos{
    display:flex;
    gap:8px;
    margin-bottom:12px;
    flex-wrap:wrap
}

.mini-brand-logo{
    width:32px;
    height:32px;
    border-radius:6px;
    background:#f0f0f0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:2px solid white;
    box-shadow:0 2px 4px rgba(0,0,0,0.1)
}

.mini-brand-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px
}

.mini-initial{
    font-size:14px;
    font-weight:700;
    color:#666
}

.featured-tag{
    display:inline-block;
    padding:4px 12px;
    background:#fef3c7;
    color:#92400e;
    border-radius:4px;
    font-size:12px;
    font-weight:600;
    margin-bottom:12px
}

.featured-title{
    font-size:18px;
    margin:0 0 10px 0;
    line-height:1.4
}

.featured-title a{
    color:#1a1a1a;
    text-decoration:none;
    transition:color 0.2s
}

.featured-title a:hover{
    color:#3b82f6
}

.featured-excerpt{
    font-size:14px;
    color:#666;
    line-height:1.6;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
}

.latest-section{
    margin:60px 0
}

.product-card{
    position:relative;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:transform 0.3s,box-shadow 0.3s
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 4px 16px rgba(0,0,0,0.12)
}

.product-image{
    display:block;
    aspect-ratio:1;
    overflow:hidden;
    position:relative
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.3s
}

.product-card:hover .product-image img{
    transform:scale(1.1)
}

.product-brands-logos{
    position:absolute;
    top:10px;
    left:10px;
    display:flex;
    gap:6px;
    z-index:10
}

.product-brand-badge{
    width:40px;
    height:40px;
    border-radius:8px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter:blur(10px)
}

.product-brand-badge img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:6px
}

.badge-initial{
    font-size:18px;
    font-weight:700;
    color:#666
}

.product-content{
    padding:16px
}

.product-tag{
    display:inline-block;
    padding:4px 10px;
    background:#dcfce7;
    color:#166534;
    border-radius:4px;
    font-size:11px;
    font-weight:600;
    margin-bottom:10px
}

.product-title{
    font-size:16px;
    margin:0;
    line-height:1.4
}

.product-title a{
    color:#1a1a1a;
    text-decoration:none;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
}

.stats-section{
    margin:60px 0 40px;
    display:flex;
    justify-content:center
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    max-width:800px;
    width:100%
}

.stat-card{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:white;
    padding:30px;
    border-radius:16px;
    text-align:center
}

.stat-number{
    display:block;
    font-size:36px;
    font-weight:700;
    margin-bottom:8px
}

.stat-label{
    display:block;
    font-size:14px;
    opacity:0.9
}

/* 响应式调整 */
@media (max-width:1024px){
    .category-grid{
        grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
        gap:20px
    }
    .brand-logo-wrapper{
        width:110px;
        height:110px
    }
}

@media (max-width:768px){
    .category-grid{
        grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
        gap:15px
    }
    .category-card{
        padding:20px 15px;
        min-height:220px
    }
    .brand-logo-wrapper{
        width:90px;
        height:90px
    }
    .brand-initial{
        font-size:36px
    }
    .category-name{
        font-size:16px
    }
    .stats-grid{
        grid-template-columns:1fr;
        gap:12px
    }
    .product-brands-logos{
        top:8px;
        left:8px;
        gap:4px
    }
    .product-brand-badge{
        width:32px;
        height:32px
    }
}

@media (max-width:480px){
    .category-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px
    }
    .category-card{
        padding:15px 10px;
        min-height:200px
    }
    .brand-logo-wrapper{
        width:80px;
        height:80px;
        margin-bottom:15px
    }
    .brand-initial{
        font-size:32px
    }
    .category-name{
        font-size:14px
    }
    .category-count{
        font-size:12px
    }
}