/* --- Banner 主容器 --- */
.page-banner {
    /* 背景图设置 */
    /* 请将 url('...') 替换为您实际的图片路径 */
    background-image: url("/static/img/brand_icon_1.jpeg");
    background-size: cover; /* 保持比例覆盖整个区域 */
    background-position: center; /* 居中显示 */
    background-repeat: no-repeat;
}

.brand-showcase-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* ========== 品牌组 ========== */
.brand-group {
    margin-bottom: 80px;
}

/* ========== 品牌标题 ========== */
.brand-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 30px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.brand-tagline {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* ========== 产品行 ========== */
.product-row {
    /*display: grid;*/
    /*grid-template-columns: repeat(2, 1fr);*/
    /*gap: 40px;*/
    /*justify-items: center;*/
    display: flex;
    justify-content: flex-start;
}

/* 单个产品时居中 */
.single-product {
    /*grid-template-columns: 1fr;*/
    /*max-width: 500px;*/
    margin: 0 auto;
}

/* ========== 产品项 ========== */
.product-item {
    width: 100%;
    flex: 1 1 0;
    min-width: 0;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    margin-right: clamp(24px, 8vw, 110px);

}

.product-item:last-child {
    margin-right: 0;
}

/* ========== 图片容器 ========== */
.product-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* 保持原图比例 */
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 可选：轻微悬停放大 */
.product-item:hover .product-image img {
    transform: scale(1.02);
}

/* ========== 底部信息 ========== */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.view-link {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.view-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* ==========================================================
   手机端（<=768px）
   ========================================================== */
@media (max-width: 768px) {
    .brand-showcase-section {
        margin: 24px auto;
        padding: 0 16px;
    }

    .brand-group {
        margin-bottom: 36px;
    }

    .brand-heading {
        margin-bottom: 14px;
    }

    .brand-name {
        font-size: 18px;
    }

    .product-row {
        gap: 12px;
    }

    .product-item {
        flex: 1 1 0;
        max-width: none;
        margin-right: 0;
        gap: 10px;
    }

    .product-item:last-child {
        margin-right: 0;
    }

    /* 只有一个产品时，保持和两列时同样的卡片宽度并靠左 */
    .single-product {
        margin: 0;
    }

    .single-product .product-item {
        flex: 0 1 calc(50% - 6px);
    }

    .product-footer {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 0;
    }

    .product-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .view-link {
        font-size: 12px;
    }
}

