﻿/* ============================================================
   UI REDESIGN v10 - 2026-03-31
   All blues 鈫?green (#4CAF50 family)
   ============================================================ */

/* --- Compact Logo --- */
.logo {
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
}
.logo-img-compact {
    height: 48px;
    width: auto;
    display: block;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-left {
    flex-shrink: 0;
}
.nav-right {
    flex: 1;
}

/* --- mainCategory Dropdown: target-site style without thumbnails --- */
.has-maincategory-dropdown {
    position: static;
}
.maincategory-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #4CAF50;
    box-shadow: 0 12px 34px rgba(16, 32, 17, 0.12);
    z-index: 1000;
}
.has-maincategory-dropdown:hover .maincategory-dropdown,
.maincategory-dropdown.active {
    display: block;
}
.maincategory-inner {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    max-width: 1540px;
    margin: 0 auto;
    min-height: 560px;
}
.maincategory-left {
    border-right: 1px solid #e8ede4;
    max-height: 560px;
    overflow-y: auto;
    background: #ffffff;
}
.maincategory-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px 26px;
    cursor: pointer;
    border-bottom: 1px solid #edf1ea;
    border-left: 4px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.maincategory-item:hover,
.maincategory-item.active {
    background: #edf7ec;
    border-left-color: #4CAF50;
}
.maincategory-item-icon {
    width: 78px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #edf7ec;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.maincategory-item-name {
    flex: 1;
    font-size: 18px;
    color: #263126;
    font-weight: 500;
    line-height: 1.35;
}
.maincategory-arrow {
    font-size: 18px;
    color: #98a397;
}
.maincategory-right {
    padding: 28px 38px 34px;
    max-height: 560px;
    overflow-y: auto;
    background: #ffffff;
}
.maincategory-sub-panel {
    display: none;
    flex-direction: column;
}
.maincategory-sub-panel.active {
    display: flex;
}
.maincategory-sub-header {
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e8ede4;
}
.maincategory-sub-view-all {
    display: inline-block;
    color: #567552;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.maincategory-sub-view-all:hover {
    color: #3d5b39;
}
.maincategory-sub-link {
    display: block;
    padding: 13px 0;
    color: #334133;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f1f4ef;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.maincategory-sub-link:hover {
    color: #4CAF50;
    padding-left: 4px;
}

/* --- Product Categories: 6 real categories, large image layout with site styling --- */
.home-categories-section {
    padding: 86px 0 74px;
    background: #f4f7f0;
}
.home-categories-section .aesop-container {
    max-width: min(1320px, calc(100vw - 56px));
}
.home-categories-section .section-header {
    max-width: 760px;
    margin: 0 auto;
}
.home-categories-section .section-header h2 {
    margin-bottom: 14px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}
.home-categories-section .section-header p {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
    color: #4b5f4d;
}
.filmedia-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}
.filmedia-cat-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(29, 54, 31, 0.08);
}
.filmedia-cat-img {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    background: #c9cbc5;
}
.filmedia-cat-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.filmedia-cat-item:hover .filmedia-cat-img img {
    transform: scale(1.04);
}
.filmedia-cat-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    color: #7c8b83;
    background: #c9cbc5;
}
.filmedia-cat-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(20, 28, 20, 0.14) 0%, rgba(20, 28, 20, 0.28) 56%, rgba(20, 28, 20, 0.42) 100%);
}
.filmedia-cat-overlay h4 {
    max-width: 12ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(19px, 1.55vw, 28px);
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.filmedia-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 42px;
    padding: 10px 24px;
    background: #4CAF50;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
}
.filmedia-cat-btn:hover {
    background: #388E3C;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- Application Scenarios: 3x2 grid + green label bar --- */
.app-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.app-scenario-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.app-scenario-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.app-scenario-item:hover img {
    transform: scale(1.04);
}
.app-scenario-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #81c784;
    background: #f5f5f5;
}
.app-scenario-label {
    background: #42a5f5;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 12px;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

/* --- Footer: 3-column layout --- */
.bf-footer-grid-3col {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.8fr;
    gap: 40px;
    padding: 48px 0 32px;
}
.bf-footer-col {}
.bf-useful-links-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bf-useful-links-vertical li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bf-useful-links-vertical li a {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.bf-useful-links-vertical li a:hover {
    color: #fff;
}

/* --- Product List: mainCategory sidebar --- */
.bf-pl-layout-new {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 24px;
    align-items: start;
}
.bf-sidebar-maincategory {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bf-maincategory-panel {
    display: flex;
    min-height: 400px;
}
.bf-maincategory-list {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 600px;
}
.bf-maincategory-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.bf-maincategory-row:hover,
.bf-maincategory-row.active {
    background: #e8f5e9;
    border-left-color: #4CAF50;
}
.bf-maincategory-row-img {
    width: 48px;
    height: 36px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bf-maincategory-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bf-maincategory-row-placeholder {
    width: 48px;
    height: 36px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 16px;
    border-radius: 3px;
}
.bf-maincategory-row-name {
    flex: 1;
    font-size: 13px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}
.bf-maincategory-row-name:hover {
    color: #4CAF50;
}
.bf-maincategory-row-arrow {
    font-size: 10px;
    color: #bbb;
}
.bf-maincategory-sub-area {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    max-height: 600px;
}
.bf-maincategory-sub-panel {
    display: none;
    flex-direction: column;
}
.bf-maincategory-sub-panel.active {
    display: flex;
}
.bf-maincategory-sub-link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #2e7d32;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s, color 0.15s;
}
.bf-maincategory-sub-link:hover,
.bf-maincategory-sub-link.active {
    background: #e8f5e9;
    color: #1b5e20;
}

/* --- Product Detail: all text black (except buttons) --- */
.bf-product-detail-page .bf-pd-title,
.bf-product-detail-page .bf-pd-short-desc,
.bf-product-detail-page .bf-pd-desc-content,
.bf-product-detail-page .bf-pd-meta,
.bf-product-detail-page .bf-pd-meta-label,
.bf-product-detail-page .bf-pd-meta-value,
.bf-product-detail-page .bf-pd-category,
.bf-product-detail-page .bf-pd-sku,
.bf-product-detail-page .bf-pd-description h3,
.bf-product-detail-page .bf-pd-related h3,
.bf-product-detail-page .bf-pd-related-info h6,
.bf-product-detail-page .bf-pd-related-info .bf-pd-related-cat,
.bf-product-detail-page .bf-widget-title,
.bf-product-detail-page .bf-category-list a,
.bf-product-detail-page .bf-category-list span,
.bf-product-detail-page p,
.bf-product-detail-page h1,
.bf-product-detail-page h2,
.bf-product-detail-page h3,
.bf-product-detail-page h4,
.bf-product-detail-page h5,
.bf-product-detail-page h6,
.bf-product-detail-page li,
.bf-product-detail-page td,
.bf-product-detail-page th {
    color: #111 !important;
}
.bf-product-detail-page .bf-pd-meta-value a,
.bf-product-detail-page .bf-category-list a {
    color: #2e7d32 !important;
}
.bf-product-detail-page .bf-pd-desc-content * {
    color: #111 !important;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .filmedia-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .filmedia-cat-img { min-height: 440px; }
}
@media (max-width: 992px) {
    .filmedia-cat-grid { grid-template-columns: 1fr; }
    .filmedia-cat-img { min-height: 420px; }
    .home-categories-section { padding: 88px 0 72px; }
    .home-categories-section .aesop-container { max-width: calc(100vw - 40px); }
    .home-categories-section .section-header h2 { font-size: clamp(42px, 9vw, 58px); }
    .home-categories-section .section-header p { font-size: 18px; }
    .app-scenario-grid { grid-template-columns: repeat(2, 1fr); }
    .bf-footer-grid-3col { grid-template-columns: 1fr; gap: 24px; }
    .bf-pl-layout-new { grid-template-columns: 1fr; }
    .maincategory-dropdown { display: none !important; }
}
@media (max-width: 576px) {
    .filmedia-cat-img { min-height: 320px; }
    .filmedia-cat-overlay { padding: 24px 18px; gap: 14px; }
    .filmedia-cat-overlay h4 { font-size: 28px; }
    .filmedia-cat-btn { min-width: 126px; min-height: 44px; padding: 10px 22px; }
    .app-scenario-grid { grid-template-columns: 1fr; }
}



/* --- Exhibition Section --- */
.home-exhibition-section {
    padding: 60px 0;
    background: #f8f9fa;
}
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.exhibition-item {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.exhibition-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.exhibition-item:hover img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .exhibition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .exhibition-grid { grid-template-columns: 1fr; }
}

/* ===== News Filter Bar ===== */
.bf-news-filter-bar {
    margin-bottom: 24px;
}
.bf-news-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bf-news-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.bf-news-search-input:focus {
    border-color: var(--primary);
}
.bf-news-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bf-news-date-label {
    font-size: 13px;
    font-weight: 600;
    color: #e53e3e;
    font-family: var(--font-body);
    white-space: nowrap;
}
.bf-news-date-input {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    min-width: 160px;
}
.bf-news-date-input:focus {
    border-color: var(--primary);
}
.bf-news-filter-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.bf-news-filter-btn:hover {
    background: var(--primary-dark);
}
@media (max-width: 768px) {
    .bf-news-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .bf-news-search-input {
        min-width: auto;
    }
    .bf-news-date-group {
        width: 100%;
    }
    .bf-news-date-input {
        flex: 1;
    }
}
