/* ================= 基础与全局样式 ================= */
:root {
    --primary-color: #91695a;
    --bg-color: #FFF8E1;
    --text-color: #3E2723;
    --accent-color: #D84315;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


body {
    background-image: url(./背景图/背景2.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

/* ================= 顶部导航与 Logo ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px; 
    background: linear-gradient(to right, #FFFFFF 10%, #E0B0FF 60%, #FFC0CB 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap; 
    gap: 15px;
    border-bottom: 5px solid #6A0DAD;
    margin-bottom: 20px; 
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo_word_span{
    margin-left: 5px;
}

.logo img {
    max-height: 100px;
    width: auto;
    object-fit: contain; 
}

/* ================= 右上角排版与按钮 ================= */
.header-right {
    display: flex;
    flex-direction: column; 
    align-items: flex-end; 
    gap: 12px; 
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 18px; 
    border-radius: 50px;
    color: white;
    font-size: 0.85rem; 
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ig-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.whatsapp-btn { background: linear-gradient(135deg, #c1f9c6 0%, #86E4A8 20%, #25D366 100%); }
.facebook-btn { background: linear-gradient(135deg, #83b0f8 0%, #5c94f0 30%, #317bf4 100%); }
.google-btn { background: linear-gradient(135deg, #4285F4 0%, #EA4335 33%, #FBBC05 66%, #34A853 100%); }

.address-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, transparent 0%, rgba(94, 74, 106, 0.6) 50%, rgba(104, 67, 73, 0.6) 100%); 
    padding: 8px 15px; 
    border-radius: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

/* Language Switcher Styling */
.lang-switcher {
    background: rgba(255, 255, 255, 0.4); /* Lighter background for language buttons */
    padding: 5px 10px;
}
.lang-btn {
    background: var(--primary-color);
    padding: 5px 12px;
    font-size: 0.8rem;
}
.lang-btn:hover {
    background: #6D4C41;
}

.address-text {
    font-size: 0.95rem; 
    font-weight: 500;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background-color: #6D4C41;
}

.copy-btn.success {
    background: linear-gradient(135deg, #b579f0 20%, #ea62c1 100%);
}

/* ================= 奶茶分类与宽屏图片展示区 ================= */
.menu-display-area {
    display: flex;
    max-width: 1200px; 
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px; 
    align-items: flex-start;
}

.category-sidebar {
    width: 220px; 
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    flex-shrink: 0; 
}

.category-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #E0B0FF; 
    text-align: center;
}

.category-list {
    list-style: none; 
    display: flex;
    flex-direction: column; 
    gap: 10px; 
}

.category-list li {
    padding: 12px 15px;
    background-color: var(--bg-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-list li:hover, 
.category-list li.active {
    background: linear-gradient(135deg, #E0B0FF 0%, #FFC0CB 100%);
    color: black;
    transform: translateX(5px); 
    box-shadow: 0 4px 10px rgba(216, 67, 21, 0.2);
}

/* ================= 右侧图片展示区排版 ================= */
.image-gallery-container {
    flex: 1; 
    background: linear-gradient(135deg, #f4efe4 50%, #d7aaef 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    min-height: 400px; 
}

.gallery-section {
    display: none; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    animation: fadeIn 0.5s ease; 
}

.gallery-section.active {
    display: flex; 
}


.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 10px); 
    min-width: 280px; 
    border-bottom: 2px solid #6A0DAD;
}


.gallery-item img {
    max-width: 100%; 
    max-height: 500px; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease; 
}

.gallery-item img:hover {
    transform: translateY(-5px); 
    box-shadow: 
        0 15px 35px rgba(224, 176, 255, 0.4), 
        0 5px 15px rgba(255, 192, 203, 0.3);  
}

.gallery-item div h3:hover {
    transform: translateY(-5px); 
    box-shadow: 
        0 15px 35px rgba(224, 176, 255, 0.4), 
        0 5px 15px rgba(255, 192, 203, 0.3);  
}

.gallery-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 10px); 
    min-width: 280px; 
    border-bottom: 2px solid #6A0DAD;
}

.gallery-big img {
    max-width: 100%; 
    max-height: 500px; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease; 
    
}

.gallery-big img:hover {
    transform: translateY(-5px); 
    box-shadow: 
        0 15px 35px rgba(224, 176, 255, 0.4), 
        0 5px 15px rgba(255, 192, 203, 0.3);  
}


.gallery-text {
    text-align: center;
    padding: 15px 10px 0;
    width: 100%;
}

.gallery-text h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s ease;
}

.gallery-text p {
    color: #7e5343;
    font-size: 0.95rem;
    line-height: 1.5;
}

.menu-list {
    list-style:none;
    padding: 0;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px;
    width: calc(50% - 10px);
    min-width: 280px;
}
.menu-list h3 {
    color: var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 5px;
    width: 100%;
}
.menu-list li {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 20px;
    color: white; 
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); 
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .header-right {
        align-items: center;
        margin-top: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .menu-display-area {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
        padding: 15px;
    }

    .category-list {
        flex-direction: row; 
        overflow-x: auto; 
        padding-bottom: 5px;
    }

    .category-list li {
        white-space: nowrap; 
        transform: none !important; 
    }
    
    .gallery-item, .gallery-big, .menu-list {
        width: 100%; 
    }
}