/*
 * brand-style.css
 * Styles for the Brand Center page
 * All classes are prefixed with 'br_' to avoid conflicts.
*/

/* --- Hero Section --- */
.br_hero_overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.25); /* Dark overlay for better text readability */
}
.br_hero_overlay .container h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.br_hero_overlay .container p {
    font-size: 1.8rem;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


/* --- Intro and Banner Grid Section --- */
.br_intro_section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}
.br_grid_title_image_wrapper {
    text-align: center; /* 让内部的图片居中 */
    margin-bottom: 50px; /* 设置图片与下方第一个品牌介绍区的间距 */
}
.br_grid_title_image_wrapper img {
    max-width: 100%; /* 确保图片在小屏幕上不会超出屏幕宽度 */
    height: auto;    /* 保持图片的原始长宽比 */
}
.br_intro_title {
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}
.br_intro_subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 50px;
}
/* 修改：将网格划分为 6 列 */
.br_banner_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.br_banner_item {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}
/* 新增：第一行 2 个卡片，各占 3 列 */
.br_item_row1 {
    grid-column: span 3;
    padding-top: 36.36%; /* 按比例匹配，使第一行高度与第二行基本齐平 */
}
/* 新增：第二行 3 个卡片，各占 2 列 */
.br_item_row2 {
    grid-column: span 2;
    padding-top: 55%; /* 原有的矩形比例 */
}
.br_banner_text_wrapper1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 0 10px;
    margin-left: -85px;;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Space between logo and text */
}
.br_banner_text_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 0 10px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Space between logo and text */
}
.br_banner_item:hover .br_banner_text_wrapper {
    transform: translate(-50%, -50%) scale(1.1); /* Zoom effect as requested */
}
.br_banner_item:hover .br_banner_text_wrapper1 {
    transform: translate(-50%, -50%) scale(1.1); /* Zoom effect as requested */
}
.br_banner_logo {

    max-width: 180px;   /* 新增：限制logo的最大宽度为160像素 */
    max-height: 65px;   /* 保留：限制logo的最大高度为50像素 */
    width: auto;        /* 保留：让宽度在限制内自适应 */
    height: auto;       /* 新增：让高度在限制内自适应，确保比例正确 */
    flex-shrink: 0;     /* 新增：防止logo在弹性布局中被错误地压缩 */
}
.br_banner_caption {
    font-size: 0.9rem;
    font-weight: bold;
}


/* --- Brand Details Section --- */
.br_details_section {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}
.br_details_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.br_details_title_image_wrapper {
    text-align: center; /* 让内部的图片居中 */
    margin-bottom: 50px; /* 设置图片与下方第一个品牌介绍区的间距 */
}
.br_details_title_image_wrapper img {
    max-width: 100%; /* 确保图片在小屏幕上不会超出屏幕宽度 */
    height: auto;    /* 保持图片的原始长宽比 */
}
.br_brand_item {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 0px;
    background-color: #f6f6f6;
    padding: 50px;
    border-radius: 0px;
    /**box-shadow: 0 4px 15px rgba(0,0,0,0.05);**/
}
.br_brand_item:last-child {
    margin-bottom: 0;
}
/* Alternating layout */
.br_brand_item.br_item_reverse {
    flex-direction: row-reverse;
}
.br_brand_image {
    flex: 0 0 40%;
}
.br_brand_image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.br_brand_content {
    flex: 1;
    position: relative;
    padding-bottom: 40px; /* Space for the decorative lines */
}
.br_brand_title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}
.br_brand_subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: left;
}
.br_brand_desc_cn {
    font-size: 1rem;
    color: #555;
    line-height: 1.9;
    text-indent:2em;
    text-align: justify;
    max-width: 80%;
    margin-left: auto; /* Simulates right-align feel with space */
    margin-bottom: 25px;
}
.br_brand_desc_en {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.7;
    text-align: justify;
    max-width: 98%;
    margin-left: auto;
    margin-bottom: 25px;
}

/* Decorative Yellow Lines using pseudo-element */
.br_brand_content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* Stretches to full width of the content box */
    height: 15px;
    background: 
        linear-gradient(to bottom, 
            #f3c83b 0%, #f3c83b 2px,      /* Line 1 (thick) */
            transparent 2px, transparent 5px,
            #f3c83b 5px, #f3c83b 8px,      /* Line 2 (thick) */
            transparent 8px, transparent 10px,
            #f3c83b 10px, #f3c83b 11px,     /* Line 3 (thin) */
            transparent 11px, transparent 13px,
            #f3c83b 13px, #f3c83b 14px      /* Line 4 (thin) */
        );
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .br_brand_item {
        flex-direction: column !important; /* Stack vertically */
        gap: 30px;
        padding: 30px;
    }
    .br_brand_image {
        flex-basis: auto;
        width: 100%;
        max-width: 400px; /* Prevent image from becoming too large */
        margin: 0 auto;
    }
    .br_brand_content {
        padding-bottom: 30px;
    }
    .br_brand_title, .br_brand_subtitle {
        text-align: center;
    }
    .br_brand_desc_cn, .br_brand_desc_en {
        max-width: 100%;
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .br_hero_overlay .container h1 { font-size: 2.5rem; }
    .br_hero_overlay .container p { font-size: 1.5rem; }

    .br_intro_section, .br_details_section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .br_intro_title { font-size: 1.8rem; }
    .br_intro_subtitle { font-size: 1rem; margin-bottom: 30px; }

    .br_banner_grid {
        grid-template-columns: 1fr;
    }
    .br_item_row1, .br_item_row2 {
        grid-column: span 1;
        padding-top: 50%;
    }
    .br_banner_text span:first-child { font-size: 1.2rem; }
    .br_banner_text span:last-child { font-size: 0.8rem; }
    
    .br_details_container { padding: 0 15px; }
    .br_brand_item { margin-bottom: 40px; }
    .br_brand_title { font-size: 1.6rem; }
    .br_brand_subtitle { font-size: 1.1rem; }
}
