html {
    scroll-behavior: smooth;
}

.service-card button {
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}


* {
    box-sizing: border-box;
}

.service-card button:hover {
    background-color: #a29bfe;
    transform: scale(1.05);
}

.service-card {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
}

.service-card.show {
    transform: translateY(0);
    opacity: 1;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-card button {
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.service-card button:hover {
    background-color: #a29bfe;
}

.navbar button {
    background-color: transparent;
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid #a29bfe;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
}

.navbar button:hover {
    background-color: #a29bfe;
    color: #fff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #F1E4D5;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #1C305C;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #a29bfe;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 1rem;
    flex: 1;
}

.nav-center {
    justify-content: center;
    flex: 1;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
}


.nav-right {
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}


.navbar.scrolled {
    background-color: #1C305C;
    /* 你也可以改成白色 + 改文字颜色 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.menu-button,
.search-button,
.cart-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-button:hover {
    color: #a29bfe;
}


.hero {
    background: url("../../images/Hero.jpeg") no-repeat center center / cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
    animation: fadeIn 2s ease-in-out;
}

.hero-content {
    max-width: 600px;
}

.cta-button {
    background-color: #a29bfe;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #6c5ce7;
    transform: scale(1.1);
}

.services,
.about,
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #DDCFC6;
    justify-content: flex-start; /* 或 center */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    background-blend-mode: multiply;

}

.service-card:hover {
    background-color: #c8b8ad; /* 加深背景色 */
    transform: scale(1.02); /* 微微放大 */
    cursor: pointer;
}


.service-card.show {
    transform: translateY(0);
    opacity: 1;
}



.cart-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #fff;
    border: 2px solid #6c5ce7;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}

.cart-popup.active {
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        height: 80vh;
        padding: 0 1rem;
    }

    .service-container {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




.about-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fdf6f0;
}

.about-video-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.about-video-container video {
    width: 100%;
    height: auto;
    display: block;
}


.contact-section {
    padding: 4rem 2rem;
    color: #333;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.contact-left,
.contact-middle,
.contact-right {
    flex: 1;
    min-width: 250px;
}

.contact-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.contact-middle p {
    margin: 0.5rem 0;
}

.contact-middle a {
    color: #6c5ce7;
    text-decoration: none;
}

.contact-middle a:hover {
    text-decoration: underline;
}


.detail-container {
    max-width: 1200px;
    margin: 6rem auto 4rem;
    display: flex;
    gap: 3rem;
    padding: 2rem;
}

.detail-image {
    flex: 1;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'EB Garamond', serif;
}

.detail-content h1 {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-content .price {
    font-size: 1.4rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
    font-weight: bold;
}

.detail-content p {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 从 center 改为 flex-start */
    align-items: flex-start;     /* 确保文本左对齐 */
}

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }
}