﻿
/* 引入高級字體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&family=Allura&family=Cinzel:wght@400;600;700&display=swap');

/* ========== 響應式字體變數 ========== */
:root {
    --font-size-xlarge: 2.5rem;
    --font-size-large: 2.2rem;
    --font-size-medium: 1.4rem;
    --font-size-base: 1.2rem;
    --font-size-small: 1.1rem;
}

@media (max-width: 768px) {
    :root {
        --font-size-xlarge: 2rem;
        --font-size-large: 1.8rem;
        --font-size-medium: 1.2rem;
        --font-size-base: 0.95rem;
        --font-size-small: 0.85rem;
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-xlarge: 1.8rem;
        --font-size-large: 1.5rem;
        --font-size-medium: 1.1rem;
        --font-size-base: 0.9rem;
        --font-size-small: 0.8rem;
    }
}

@media (max-width: 400px) {
    :root {
        --font-size-xlarge: 1.6rem;
        --font-size-large: 1.3rem;
        --font-size-medium: 1rem;
        --font-size-base: 0.85rem;
        --font-size-small: 0.75rem;
    }
}

/* ========== 基本重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif TC', serif;
    background-color: #f5f0ea;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('/images/about/2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #5C4033;
    line-height: 1.6;
    position: relative;
    padding: 2rem 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.8rem;
    }
}

/* ========== 頁面標題 ========== */
.section-title {
    text-align: center;
    font-family: 'Cinzel', 'Noto Serif TC', serif;
    font-size: var(--font-size-large);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #5C4033;
    margin: 3.5rem 0 3rem;
    padding: 7rem 1rem 4rem 1rem;
    position: relative;
    animation: fadeInDown 0.8s ease;
    background-image: url('/images/15.webp');
    background-size: cover; /* 新增 — 滿版不重複 */
    background-position: center; /* 新增 — 縮小時置中裁切 */
    background-repeat: no-repeat; /* 新增 — 明確禁止重複 */
}
@media (max-width: 1200px) {
    .section-title {
        margin: 0rem 0 1rem;
    }
}

    .section-title::after {
        content: '';
        display: block;
        width: 120px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #FF8C42, transparent);
        margin: 1.5rem auto 0;
    }

/* ========== 品牌詳細資訊主容器 ========== */
.brand-detail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* ========== 品牌 Logo ========== */
.brand-logo {
    width: 190px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    border: 2px solid rgba(255, 140, 66, 0.2);
    border-radius: 10px;
    background: white;
    animation: fadeInScale 0.6s ease 0.5s backwards;
}

/* ========== 品牌名稱標題 ========== */
.brand-title {
    font-family: 'Noto Serif TC', serif;
    font-size: var(--font-size-large);
    font-weight: 600;
    color: #5C4033;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

    .brand-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #FF8C42, #FFB366);
        border-radius: 1px;
    }

/* ========== 標題行（名稱 + 電腦版按鈕）========== */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

    .title-row .brand-title {
        flex: 1;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

        .title-row .brand-title::after {
            display: none;
        }

/* ========== 電腦版操作按鈕 ========== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem 1rem;
    border: 1.5px solid #FF8C42;
    border-radius: 10px;
    background: white;
    color: #FF8C42;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    font-family: 'Noto Serif TC', serif;
}

    .action-button.menu-btn {
        background: #FF8C42;
        color: white;
    }

        .action-button.menu-btn:hover {
            background: white;
            color: #FF8C42;
        }

    .action-button.reserve-btn {
        background: white;
        color: #FF8C42;
    }

        .action-button.reserve-btn:hover {
            background: #FF8C42;
            color: white;
        }

/* ========== 資訊行 ========== */
.info-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.7s backwards;
}

.info-label {
    color: #FF8C42;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.info-separator {
    color: #5C4033;
}

.info-content {
    color: #5C4033;
    font-weight: 600;
}

/* ========== 電話 ========== */
.phone-with-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

    .phone-link:hover {
        color: #c0392b;
    }

.copy-icon {
    color: #FF8C42;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

    .copy-icon:hover {
        background: rgba(255, 140, 66, 0.15);
        transform: scale(1.15);
    }

/* ========== 分類標籤（基本樣式）========== */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    background: #FF8C42;
    color: white;
    border: 1.5px solid #FF8C42;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .category-badge:hover {
        background: white;
        color: #FF8C42;
    }

/* ========== 手機版餐廳按鈕（預設隱藏）========== */
.mobile-footer {
    display: none;
}

.mobile-action-icons {
    display: flex;
    gap: 0.5rem;
}

.action-icon {
    padding: 0.5rem 1rem;
    border: 1.5px solid #FF8C42;
    border-radius: 10px;
    background: #FF8C42;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    font-family: 'Noto Serif TC', serif;
}

    .action-icon:hover {
        background: white;
        color: #FF8C42;
    }

/* ========== 品牌介紹 ========== */
.description {
    margin-top: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

    .description p {
        color: #7a6a5a;
        line-height: 1.8;
        margin-bottom: 0;
        text-align: justify;
        font-weight: 500;
        font-size: var(--font-size-small);
    }

/* ========== 載入 / 錯誤 ========== */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #7a6a5a;
    font-size: var(--font-size-medium);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 2rem 0;
    animation: fadeInScale 0.6s ease 0.1s backwards;
}

.error {
    text-align: center;
    padding: 4rem 2rem;
    color: #c33;
    font-size: var(--font-size-medium);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 2rem 0;
    animation: fadeInScale 0.6s ease 0.1s backwards;
}

/* ========== 複製提示 Toast ========== */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #5C4033;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .copy-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ========== 服務標籤 ========== */
.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.3rem;
    background: rgba(92, 64, 51, 0.05);
    border: 1px solid rgba(92, 64, 51, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #5C4033;
    font-weight: 500;
}

    .service-badge i {
        color: #FF8C42;
        font-size: 0.75rem;
    }

/* ========== 輪播容器 ========== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f0ea;
}

.carousel-track {
    display: flex;
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .carousel-slide img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    animation: fadeInUp 0.6s ease 0.9s backwards;
}

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(92, 64, 51, 0.4);
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .carousel-dots .dot:hover {
            background: rgba(92, 64, 51, 0.6);
        }

        .carousel-dots .dot.active {
            background: #FF8C42;
        }

    .carousel-dots.hidden {
        display: none;
    }

/* ========== 電腦版 (≥ 1024px) ========== */
@media (min-width: 1024px) {
    .brand-detail {
        display: grid;
        grid-template-columns: 68fr 32fr;
        gap: 0;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 3rem;
    }

    .brand-image-section {
        position: relative;
        width: 100%;
        z-index: 1;
        animation: fadeInLeft 0.8s ease 0.3s backwards;
    }

    .carousel-container {
        width: 100%;
        aspect-ratio: 5/3;
        max-height: 650px;
        cursor: default;
    }

    .carousel-slide {
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

        .carousel-slide.active {
            opacity: 1;
            position: relative;
        }

    .brand-info-section {
        background: white;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 10px;
        position: relative;
        margin-left: -25%;
        z-index: 10;
        max-width: 550px;
        min-height: 350px;
        max-height: 450px;
        animation: fadeInRight 0.8s ease 0.4s backwards;
    }

    .brand-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .info-row {
        margin-top: 0.5rem;
    }

    .description {
        margin-top: 0.7rem;
        padding-top: 0.7rem;
        flex: 1;
        overflow-y: auto;
        max-height: 200px;
    }

        .description p {
            font-size: 0.9rem;
            line-height: 1.6;
        }

    .carousel-dots {
        display: flex;
    }

    /* 分類標籤：桌面版顯示，手機版隱藏 */
    .category-badges.desktop-category {
        display: flex;
    }

    .category-badges.mobile-category {
        display: none;
    }

    /* 手機版餐廳按鈕隱藏 */
    .mobile-footer {
        display: none !important;
    }

    /* 電腦版操作按鈕顯示 */
    .action-buttons {
        display: flex;
    }
}

/* ========== 手機版 (≤ 1023px) ========== */
@media (max-width: 1023px) {
    .brand-detail {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .brand-image-section {
        width: 100%;
        animation: fadeInUp 0.8s ease 0.3s backwards;
    }

    .carousel-container {
        width: 100%;
        aspect-ratio: 4/3;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .carousel-track {
        transition: transform 0.3s ease-out;
    }

        .carousel-track.dragging {
            transition: none;
        }

    .carousel-slide {
        width: 100%;
        height: 100%;
        flex: 0 0 100%;
    }

    .carousel-dots {
        display: none !important;
    }

    .brand-info-section {
        background: white;
        padding: 2rem;
        border-radius: 10px;
        margin-left: 0;
        animation: fadeInUp 0.8s ease 0.4s backwards;
    }

    .brand-logo {
        margin: 0 auto 1rem;
        display: block;
    }

    .brand-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .title-row {
        justify-content: center;
    }

    /* 電腦版按鈕隱藏 */
    .action-buttons {
        display: none;
    }

    .info-row {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
        font-size: 0.85rem;
    }

    .info-separator {
        display: inline !important;
    }

    /* 分類標籤：桌面版隱藏，手機版顯示 */
    .category-badges.desktop-category {
        display: none;
    }

    .category-badges.mobile-category {
        display: flex;
        margin-top: 0.6rem;
    }

    .category-badge {
        padding: 0.2rem 0.5rem;
        background: white;
        color: #FF8C42;
    }

        .category-badge:hover {
            background: #FF8C42;
            color: white;
        }

    /* 手機版餐廳按鈕顯示 */
    .mobile-footer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 0.8rem;
        gap: 1rem;
    }
}

/* ========== 動畫 ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track,
    .carousel-slide,
    .carousel-dots .dot {
        transition: none;
        animation: none;
    }
}