/*
 * 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);
}

/* =================================================================== */

/* --- Intro and Banner Grid Section --- */
.pf_center_section {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

/* =================================================================== */
/* START: Styles for New Health Category Section (pf_ prefix)          */
/* =================================================================== */

.pf_section {
    padding: 80px 0;
    background-color: #ffffff; /* Assuming a white background for the section */
}

.pf_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Part 1: Title Image --- */
.pf_title_wrapper {
    text-align: center; /* Center the title image */
    margin-bottom: 60px; /* Space between title and grid */
}

.pf_title_wrapper img {
    max-width: 100%; /* Ensure title image is responsive */
    height: auto;
}

/* --- Part 2: 8-Image Grid --- */
.pf_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 25px; /* Space between grid items */
}

.pf_grid_item img {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
    border-radius: 15px; /* The requested rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* A subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: A subtle lift effect on hover */
.pf_grid_item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* --- Responsive Design for the new section --- */
@media (max-width: 992px) {
    .pf_grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .pf_section {
        padding: 50px 0;
    }
    .pf_title_wrapper {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .pf_grid {
        grid-template-columns: 1fr; /* 1 column on mobile phones */
    }
}

/* =================================================================== */
/* START: Styles for Authoritative Certification Section (pf_ac_ prefix)  */
/* =================================================================== */

.pf_ac_section {
    padding: 80px 0;
    background-color: #f8f8f8; /* A slightly different background to distinguish the section */
    overflow: hidden; /* Prevents staggered items from causing horizontal scroll */
}

.pf_ac_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Part 1: Title Image --- */
.pf_ac_title_wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.pf_ac_title_wrapper img {
    max-width: 100%;
    height: auto;
}

/* --- Part 2: Staggered 4-Image Grid --- */
.pf_ac_grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 Grid base */
    gap: 2px;
    max-width: 900px; /* Limit the max width of the grid itself */
    margin: 0 auto;   /* Center the grid within the container */
}

.pf_ac_grid_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 10px;
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);*/
}

/* --- The Magic: Staggering the items using CSS Transform --- */
/* This method is fully responsive and better than using margins */

.pf_ac_grid_item.pf_ac_item_1 {
    transform: translateY(-15px); /* Nudge Up */
}

.pf_ac_grid_item.pf_ac_item_2 {
    transform: translateY(25px); /* Nudge Down */
}

.pf_ac_grid_item.pf_ac_item_3 {
    transform: translateY(-20px); /* Nudge Up */
}

.pf_ac_grid_item.pf_ac_item_4 {
    transform: translateY(10px); /* Nudge Down */
}


/* --- Responsive Design for the new section --- */
@media (max-width: 768px) {
    .pf_ac_section {
        padding: 50px 0;
    }
    
    .pf_ac_title_wrapper {
        margin-bottom: 40px;
    }

    /* On smaller screens, the staggered effect can look messy. We reset it. */
    .pf_ac_grid_item.pf_ac_item_1,
    .pf_ac_grid_item.pf_ac_item_2,
    .pf_ac_grid_item.pf_ac_item_3,
    .pf_ac_grid_item.pf_ac_item_4 {
        transform: none; /* Reset the transform to have a clean grid */
    }
}

@media (max-width: 576px) {
    .pf_ac_grid {
        grid-template-columns: 1fr; /* Stack to a single column on mobile */
    }
}



.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; }
}
