/*
 * aboutUs-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);
}

/* =================================================================== */

.us_corp_section {
    padding: 80px 0;
    background-color: #ffffff; /* Assuming a white background */
}

.us_corp_container {
    max-width: 1200px; /* Container to control the width */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Part 1: Top section (Text + Image) --- */
.us_corp_top {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px; /* Space between top and bottom parts */
}

.us_corp_top_text {
    flex: 1; /* Takes up available space */
}

.us_corp_top_image {
    flex: 0 0 45%; /* Fixed width for the image container */
    max-width: 500px;
}

.us_corp_top_image img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Optional: adds rounded corners */
}

.us_corp_title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
}

.us_corp_subtitle {
    font-size: 1.2rem;
    color: #888;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.us_corp_key {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    gap: 15px; /* 关键词之间的间距 */
    margin-bottom: 4px; /* 与下方描述文字的间距 */
}

.us_corp_key span {
    font-size: 0.95rem;
    color: #317557; /* 关键词文字颜色 */
    font-weight: 600; /* 字体稍粗 */
    padding: 8px 15px; /* 内边距，让“标签”更饱满 */
    border-radius: 20px; /* 圆角，使其看起来像胶囊标签 */
}
.us_corp_description {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* --- Part 2: Bottom section (4 Image Cards) --- */
.us_corp_bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns layout */
    gap: 20px;
}

.us_corp_card {
    position: relative;
    aspect-ratio: 4 / 3; /* Defines the shape of the card (width / height) */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden; /* Important for the overlay and zoom effect */
}

.us_corp_card_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2); /* A subtle dark overlay for better contrast */
}

.us_corp_card_text_image {
    max-width: 80%; /* Controls the size of the text image */
    height: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth zoom transition */
}

/* The zoom effect on hover, as requested */
.us_corp_card:hover .us_corp_card_text_image {
    transform: scale(1.1);
}

/* --- Intro and Banner Grid Section --- */
.us_history_section {
    padding-top: 10px;
    padding-bottom: 10px;
    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;
}
.br_banner_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* UPDATED: No gap between items */
    border-radius: 20px; /* UPDATED: Rounded corners on the container */
    overflow: hidden; /* UPDATED: Clips the corners of the inner items */
    max-width: 1100px; /* UPDATED: Matched width with details section */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.br_banner_item {
    position: relative;
    padding-top: 55%; /* UPDATED: Rectangular aspect ratio */
    background-size: cover;
    background-position: center;
    color: white;
}
.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: 15px; /* 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_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;
}

@media (max-width: 768px) {
    .br_hero_overlay .container h1 { font-size: 2.5rem; }
    .br_hero_overlay .container p { font-size: 1.5rem; }
}

/* --- Responsive Design for the new section --- */
@media (max-width: 992px) {
    .us_corp_top {
        flex-direction: column; /* Stack text and image vertically on smaller screens */
        gap: 40px;
    }
    
    .us_corp_bottom {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .us_corp_section {
        padding: 50px 0;
    }

    .us_corp_title {
        font-size: 2.2rem;
    }
    
    .us_corp_subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .us_corp_bottom {
        grid-template-columns: 1fr; /* 1 column on mobile phones */
    }
}