/**
 * 品牌专区页样式
 * 列表式布局 - 类似服务网点展示
 */

.brands-page {
    padding: 30px 0;
    min-height: 500px;
}

/* 品牌列表 - 垂直排列 */
.all-brands {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 品牌卡片 - 左侧Logo，右侧文字 */
.brand-item {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.brand-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.brand-item a {
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

/* 品牌Logo（左侧） */
.brand-item .brand-logo {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 10px;
}

.brand-item .brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 品牌信息（右侧） */
.brand-item .brand-info {
    flex: 1;
    min-width: 0;
}

.brand-item .brand-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.brand-item .brand-info h3 a {
    color: #333;
    text-decoration: none;
    display: inline;
}

.brand-item .brand-info h3 a:hover {
    color: #3498db;
}

.brand-item .brand-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 品牌详情 */
.brand-detail {
    margin-bottom: 30px;
}

.brand-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.brand-header .brand-logo {
    flex-shrink: 0;
    width: 180px;
    height: auto;
    background: none;
    padding: 0;
}

.brand-header .brand-logo img {
    max-width: 100%;
    max-height: 100px;
}

.brand-info {
    flex: 1;
}

.brand-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.brand-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.website-link {
    display: inline-block;
    padding: 8px 25px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s;
}

.website-link:hover {
    background: #2980b9;
}

/* 品牌产品 */
.brand-products h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-grid .item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.products-grid .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.products-grid .pic {
    height: 160px;
    overflow: hidden;
}

.products-grid .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.products-grid .item:hover .pic img {
    transform: scale(1.05);
}

.products-grid h4 {
    padding: 12px;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
}

.products-grid h4 a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid h4 a:hover {
    color: #3498db;
}

.products-grid em {
    display: block;
    text-align: center;
    color: #e74c3c;
    font-style: normal;
    padding-bottom: 12px;
    font-size: 15px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .brand-header .brand-logo {
        width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .brand-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-item .brand-logo {
        width: 100%;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .brand-item .brand-info {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .all-brands {
        gap: 15px;
    }
    
    .brand-item {
        padding: 20px;
    }
}
