@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
    --bg-dark: #f8fbf8; /* Fresh light green-white */
    --bg-darker: #eef5ee; /* Soft sage background */
    --text-primary: #143621; /* Deep forest green */
    --text-secondary: #5b7a67; /* Soft sage green */
    --accent-gold: #ff7a45; /* Vibrant sunset orange for vitality */
    --hero-text: #ffffff; /* Always white over video */
    --border-color: rgba(20, 54, 33, 0.1);
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Premium Header --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--text-primary);
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-item {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.contact-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.contact-item:hover::after {
    width: 100%;
}

.qr-popup {
    position: absolute;
    top: 200%;
    right: 0;
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(15px);
}

.contact-item:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qr-popup img { width: 100%; height: 100%; object-fit: contain; }

.music-btn {
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer; color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%; /* Use 100% instead of 100vw to avoid scrollbar offset centering bugs */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none; /* Prevents Huawei/WeChat from intercepting taps */
    -webkit-transform-style: preserve-3d; /* Force hardware acceleration fix */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: -50px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 10px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeUp 1.5s ease-out 0.2s both;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 600;
    letter-spacing: 15px;
    color: var(--hero-text);
    margin-bottom: 30px;
    animation: fadeUp 1.5s ease-out 0.5s both;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-slogan {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--hero-text);
    animation: fadeUp 1.5s ease-out 0.8s both;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-slogan-en {
    font-family: Arial, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 15px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10; /* Ensure it is clickable above all overlays */
    animation: fadeUp 1.5s ease-out 1.2s both;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 4px;
    margin-right: -4px; /* Fix centering offset caused by letter-spacing */
    color: var(--text-secondary);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

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

/* --- Section Formatting --- */
.section {
    padding: 60px 10%;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--accent-gold);
}

/* --- Introduction Section --- */
.intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 2.4;
    font-weight: 300;
    color: var(--text-primary);
    white-space: pre-wrap;
    text-align: justify;
}

/* Drop Cap Effect */
.intro-text::first-letter {
    font-size: 5rem;
    color: var(--accent-gold);
    float: left;
    line-height: 0.8;
    padding-right: 20px;
    padding-top: 10px;
    font-weight: 400;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 40px 0 60px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}

.swiper-slide {
    width: 600px;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(20,54,33,0.3);
    -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(255,255,255,0.4));
    background: #fff;
    will-change: transform; /* Force Android GPU Layer */
    transform: translateZ(0);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* --- Reveal Animations (Triggered via JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* --- Store Overlay Interface --- */
.store-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-darker);
    z-index: 1500;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding-bottom: 100px;
}

.store-overlay.active {
    opacity: 1;
    visibility: visible;
}

.store-close {
    position: fixed;
    top: 30px; right: 5%;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 2px;
    z-index: 1501;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.store-close:hover {
    color: #fff;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.nav-order-btn {
    border: 1px solid var(--accent-gold);
    padding: 6px 18px;
    border-radius: 25px;
    color: var(--accent-gold);
    transition: all 0.3s;
    font-weight: 400;
}

.nav-order-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

#nav-order-wrapper::after {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(20,54,33,0.08);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(20,54,33,0.15);
}

.product-img-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.08);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: 400;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    height: 3em;
    overflow: hidden;
    font-weight: 300;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
    font-family: var(--font-heading);
}

.order-btn {
    background: var(--accent-gold);
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    letter-spacing: 1px;
    border-radius: 25px;
}

.order-btn:hover {
    background: #ff5c1a;
    transform: scale(1.05);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; letter-spacing: 8px; }
    .swiper-slide { width: 450px; height: 350px; }
    .intro-text { font-size: 1.2rem; }
    .section { padding: 40px 5%; }
}
@media (max-width: 768px) {
    .navbar {
        padding: 10px 5%;
        flex-direction: column;
        gap: 10px;
    }
    .logo {
        font-size: 1.2rem;
        letter-spacing: 4px;
        text-align: center;
        margin-bottom: 5px;
    }
    .contact-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-order-btn {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    .contact-item { font-size: 0.8rem; }
    
    .hero-content {
        margin-top: 80px;
    }
    .hero-title { font-size: 2.8rem; letter-spacing: 4px; margin-bottom: 10px; }
    .hero-subtitle { font-size: 0.7rem; letter-spacing: 4px; margin-bottom: 10px; }
    .hero-slogan { font-size: 1rem; letter-spacing: 2px; }
    
    .swiper-slide { width: 85vw; height: 45vh; }
    
    /* Extreme Mobile Spacing Compression & Reflection Fix */
    .section { padding: 0 5% 20px 5%; } /* Removed top padding */
    .section-header { margin-bottom: 15px; }
    .gallery-section { padding: 10px 0 0 0; }
    .swiper { padding-top: 10px; padding-bottom: 50px; } /* Need 50px for reflection to show */
    .section-title { font-size: 1.8rem; letter-spacing: 4px; }
    
    .store-close {
        top: 15px; right: 15px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    .intro-text::first-letter { font-size: 3.5rem; }
}
