/* ==================== Bento Box 品牌故事區塊 ==================== */
.bento-section {
    background-color: #0a0a0a;
    padding: 120px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 各區塊樣式 ==================== */

/* 通用 Bento Item 樣式 - 支援背景圖片 */
.bento-item {
    background: linear-gradient(135deg, #111111, #0a0a0a);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 背景圖片遮罩層 */
.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
    transition: background 0.4s ease;
}

/* 懸停時遮罩變淺 */
.bento-item:hover .bento-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

/* 內容層 - 確保在遮罩之上 */
.bento-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    text-align: justify;
}

/* 光暈效果層 */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.bento-item:hover {
    transform: translateY(-5px);
}

.bento-item:hover::before {
    opacity: 1;
}

/* 1. 品牌故事 - 大區塊 */
.bento-story {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bento-story .bento-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-story h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.bento-story p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* 2. 數據區塊 */
.bento-stats {
    grid-column: 3 / 5;
    grid-row: 1;
}

.bento-stats .bento-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* 3. 引言區塊 */
.bento-quote {
    grid-column: 3 / 5;
    grid-row: 2;
}

.bento-quote .bento-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.quote-mark {
    font-size: 6rem;
    color: rgba(255,255,255, 0.4);
    line-height: 0.5;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.bento-quote p {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6em;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* 4. 理念 Icon 區塊 */
.bento-values {
    grid-column: 1 / 2;
    grid-row: 3;
}

.bento-values .bento-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 15px;
    height: 100%;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.value-text {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* 5. 圖片區塊 - 純背景圖顯示 */
.bento-image {
    grid-column: 2 / 4;
    grid-row: 3;
    padding: 0;
    min-height: 280px;
}

/* 圖片區塊的遮罩較淺 */
.bento-image .bento-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
}

.bento-image:hover .bento-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
}

/* 移除舊的 img 樣式 */
.bento-image img {
    display: none;
}

/* 6. 分店數據 */
.bento-locations {
    grid-column: 4 / 5;
    grid-row: 3;
}

.bento-locations .bento-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.locations-count {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.locations-text {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.locations-cities {
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.2em;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* ==================== 響應式設計 ==================== */

/* 平板 */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }

    .bento-story {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .bento-stats {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .bento-quote {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .bento-values {
        grid-column: 1 / 2;
        grid-row: 3;
    }

    .bento-image {
        grid-column: 2 / 3;
        grid-row: 3;
    }

    .bento-locations {
        grid-column: 1 / 3;
        grid-row: 4;
    }
}

/* 手機 */
@media (max-width: 768px) {
    .bento-section {
        padding: 80px 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bento-item {
        padding: 30px;
    }

    .bento-story,
    .bento-stats,
    .bento-quote,
    .bento-values,
    .bento-image,
    .bento-locations {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-story h3 {
        font-size: 1.5rem;
    }

    .bento-story p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .quote-mark {
        font-size: 4rem;
    }

    .bento-quote p {
        font-size: 1rem;
    }

    .locations-count {
        font-size: 3rem;
    }

    .bento-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .bento-item {
        padding: 25px;
    }

    .bento-stats .bento-content {
        flex-direction: column;
        gap: 20px;
    }

    .value-item {
        justify-content: center;
    }
}