/* å“ç‰Œé¡µé¢æ ·å¼ */

/* Agency Brands Main Section */
.agency_brands_main {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Brand Detail View */
.brand_detail {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.brand_header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.brand_logo {
    flex-shrink: 0;
}

.brand_logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand_info {
    flex: 1;
}

.brand_name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.brand_description {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 24px;
}

.brand_website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.brand_website:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Brand Products Section */
.brand_products {
    margin-bottom: 40px;
}

.brand_products h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.product_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.category_item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.category_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category_item:hover .category_name {
    color: white;
}

.category_name {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Brand Contact Section */
.brand_contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.brand_contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.brand_contact p {
    color: #6c757d;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* Brands Grid View */
.brands_grid {
    max-width: 1200px;
    margin: 0 auto;
}

.section_header {
    text-align: center;
    margin-bottom: 60px;
}

.section_title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section_subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.brands_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.brand_card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.brand_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.brand_card_header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.brand_card_logo {
    flex-shrink: 0;
}

.brand_card_logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 12px;
}

.brand_card_name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.brand_card_content {
    margin-bottom: 24px;
}

.brand_card_description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.brand_card_products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product_tag {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.brand_card_footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand_detail_btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.brand_detail_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.brand_website_btn {
    padding: 12px 16px;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.brand_website_btn:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-color: #adb5bd;
}

/* å“ç‰Œæ–‡ä»¶ä¸‹è½½æŒ‰é’®æ ·å¼ */
.brand-download {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white !important;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    border: none;
    min-width: 280px;
    justify-content: flex-start;
}

.brand-download:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: white !important;
    text-decoration: none;
}

.brand-download i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.brand-download img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.brand-download span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* å“ç‰Œè¯¦æƒ…é¡µäº§å“ç­›é€‰æ ·å¼ */
.product_filters {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.7rem;
    justify-content: center;
    margin-bottom: 5rem;
    padding: 2rem 0;
}

.filter_btn {
    background: #fff;
    color: #333;
    padding: 2.2rem 3rem;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.7rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.filter_btn:hover {
    background: #fff;
    /* border-color: #adb5bd; */
    color: #115BC8;
    text-decoration: none;
    transform: translateY(-2px);
}

.filter_btn.active {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #115BC8;
    /* color: white; */
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); */
    background: #fff;
    border: none;
    border-radius: 0;
}

.filter_btn .product_count {
    font-size: 1.2rem;
    opacity: 0.8;
    display: none;
}

.product_grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-top: 20px;
}

.series_item {
    background: white;
    border: NONE;
    border-radius: 1.2REM;
    padding: 4rem;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    text-decoration: none;
}

.series_item span {
    font-size: 1.6rem;
    color: #666;
}

.series_item:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
    background: radial-gradient(0% 0% at 0% 0%, #1154B7 0%, #1668E0 100%), #FFFFFF;
}

.series_item:hover * {
    color: #fff;
}

.series_item h4 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.series_item p {
    color: #6c757d;
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    min-height: 7rem;
}

.series_item a {
    color: #666;
    font-weight: 400;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.series_item a:hover {
    color: #fff;
    text-decoration: none;
}

.loading_indicator {
    text-align: center;
    padding: 40px;
}

.loading_spinner {
    font-size: 1.6rem;
    color: #667eea;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* å“åº”å¼è®¾è®¡ */
@media (max-width: 768px) {
    .agency_brands_main {
        padding: 40px 0;
    }

    .brand_header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .brand_detail {
        padding: 24px;
    }

    .brand_name {
        font-size: 2rem;
    }

    .section_title {
        font-size: 2.5rem;
    }

    .brands_list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .brand_card {
        padding: 24px;
    }

    .brand_card_header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .brand_card_footer {
        flex-direction: column;
    }

    .product_categories {
        justify-content: center;
    }

    .product_filters {
        flex-direction: column;
        align-items: center;
        display: block;
        white-space: nowrap;
        overflow-x: scroll;
    }

    .filter_btn {
        width: auto;
        max-width: 300px;
        justify-content: center;
        display: inline-flex;
        padding: 20px 10px;
        margin-right: 20px;
    }

    .product_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}