/*
==================================================
Ealice Beauty Spa — 全站样式
==================================================

设计方向：
- 深咖色
- 奶油白
- 柔和金色
- 卡片圆角
- 弹性动画
- Vivian 风格的侧边菜单和高级感

如果只是改服务、价格、文字、图片：
不要改这里，去 config.js 改。
==================================================
*/

/* 全局基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #fbf4ec;
    color: #251a15;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 顶部导航 */
.topbar {
    height: 82px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(251, 244, 236, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 82, 50, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: #2f1b12;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #3a2418;
}

.nav-gold {
    background: #c99a37;
    color: #2b160c;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

/* 侧边菜单 */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s;
    z-index: 200;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -420px;
    width: 380px;
    max-width: 86%;
    height: 100vh;
    background: #101827;
    color: white;
    z-index: 300;
    padding: 52px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: 0.42s ease;
}

.side-menu.open {
    left: 0;
}

.close-menu {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: white;
    font-size: 34px;
    cursor: pointer;
}

.side-logo {
    color: #d3a93b;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 24px;
}

.side-menu a {
    font-size: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.side-outline,
.side-book {
    border: 1px solid #d3a93b;
    padding: 18px 22px;
    border-radius: 12px;
    text-align: center;
    color: #d3a93b;
}

.side-book {
    background: #d3a93b;
    color: #2b160c;
    font-weight: 800;
}

/* 首页 Hero */
.hero {
    min-height: calc(100vh - 82px);
    position: relative;
    display: flex;
    align-items: center;
    padding: 8% 7%;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25,14,9,0.72), rgba(25,14,9,0.25), rgba(25,14,9,0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: white;
}

.hero-content p,
.section-label {
    color: #c99a37;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero-content span {
    display: block;
    font-size: 19px;
    line-height: 1.8;
    max-width: 620px;
}

.hero-actions,
.row-actions,
.card-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* 按钮 */
.btn-primary,
.btn-secondary,
.btn-outline-dark {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    transition: 0.25s ease;
    font-weight: 700;
}

.btn-primary {
    background: #c99a37;
    color: #2b160c;
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-outline-dark {
    border: 1px solid #6f3c1b;
    color: #6f3c1b;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-dark:hover {
    transform: translateY(-3px);
}

/* 通用区块 */
.section,
.split-section,
.detail-section,
.booking-layout,
.page-hero,
.contact-section {
    padding: 90px 7%;
}

.soft-bg {
    background: linear-gradient(180deg, #fbf4ec 0%, #f2dfcf 100%);
}

.section-title {
    font-size: 46px;
    color: #3a1f12;
    margin-bottom: 42px;
}

/* About 分栏 */
.split-section {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 60px;
    align-items: center;
}

.split-image {
    height: 520px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    background-color: #e8d4c3;
}

.split-text h2 {
    font-size: 46px;
    color: #3a1f12;
    margin-bottom: 22px;
}

.split-text p {
    font-size: 18px;
    line-height: 1.85;
    color: #5a4034;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: #7d441f;
    font-weight: 800;
}

/* 首页服务卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(88, 49, 22, 0.11);
    transition: 0.28s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card-image {
    height: 270px;
    background-size: cover;
    background-position: center;
    background-color: #e8d4c3;
}

.service-card-body {
    padding: 26px;
}

.service-card-body p {
    color: #b98930;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 800;
}

.service-card-body h3 {
    color: #3a1f12;
    font-size: 24px;
    margin: 10px 0;
}

.service-card-body span {
    color: #6b4a3a;
}

.card-actions a {
    color: #6f3c1b;
    font-weight: 800;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.why-card {
    background: white;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(88, 49, 22, 0.08);
}

.why-card span {
    color: #c99a37;
    font-size: 26px;
}

.why-card p {
    margin-top: 12px;
    line-height: 1.6;
}

/* Gallery */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 7% 90px;
}

.gallery-card {
    height: 360px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-color: #e8d4c3;
}

/* 预约 CTA */
.booking-cta {
    margin: 0 7% 90px;
    padding: 70px;
    border-radius: 34px;
    text-align: center;
    background: #2b160c;
    color: white;
}

.booking-cta h2 {
    font-size: 42px;
    margin-bottom: 14px;
}

.booking-cta p {
    margin-bottom: 24px;
}

/* FAQ */
.faq-list {
    max-width: 900px;
}

.faq-item {
    border-bottom: 1px solid rgba(88, 49, 22, 0.18);
}

.faq-question {
    width: 100%;
    padding: 22px 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    cursor: pointer;
    color: #2f1b12;
    font-weight: 800;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: #5a4034;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 120px;
    padding-bottom: 20px;
}

/* Contact */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #241129;
    color: white;
}

.contact-info h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.contact-info p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.socials a {
    border: 1px solid #c99a37;
    color: #c99a37;
    padding: 10px 14px;
    border-radius: 999px;
}

.contact-form,
.styled-form {
    background: white;
    color: #2b160c;
    padding: 34px;
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.12);
}

.contact-form input,
.contact-form textarea,
.styled-form input,
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 16px;
    border: 1px solid #d7c0ad;
    border-radius: 14px;
    font-size: 16px;
}

.contact-form textarea,
.styled-form textarea {
    min-height: 120px;
}

.contact-form button,
.styled-form button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: #6f3c1b;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

/* 服务列表页 */
.page-hero {
    background: #2b160c;
    color: white;
}

.page-hero h1 {
    font-size: 56px;
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 760px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.service-row {
    display: grid;
    grid-template-columns: 44% 56%;
    background: white;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(88, 49, 22, 0.11);
}

.service-row.reverse .service-row-image {
    order: 2;
}

.service-row-image {
    min-height: 390px;
    background-size: cover;
    background-position: center;
    background-color: #e8d4c3;
}

.service-row-text {
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row-text h2 {
    font-size: 38px;
    color: #3a1f12;
    margin-bottom: 18px;
}

.service-row-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #5a4034;
}

.service-row-text strong {
    margin-top: 18px;
    color: #3a1f12;
}

/* 详情页 */
.detail-hero {
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 56px;
    align-items: center;
}

.detail-image {
    height: 560px;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    background-color: #e8d4c3;
}

.detail-text h1 {
    font-size: 56px;
    color: #3a1f12;
    margin-bottom: 20px;
}

.detail-text p {
    font-size: 18px;
    line-height: 1.85;
    color: #5a4034;
    margin-bottom: 18px;
}

.info-grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.info-grid div {
    background: white;
    padding: 38px;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(88, 49, 22, 0.09);
}

.info-grid h2 {
    color: #3a1f12;
    margin-bottom: 18px;
}

.info-grid p {
    margin-bottom: 12px;
}

/* Booking / Gift Card */
.booking-layout {
    min-height: calc(100vh - 82px);
    background: linear-gradient(135deg, #fbf4ec 0%, #ead1bd 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gift-bg {
    background: linear-gradient(135deg, #fff6e6 0%, #e5c587 100%);
}

.booking-panel {
    width: 100%;
    max-width: 760px;
}

.booking-panel h1 {
    font-size: 48px;
    color: #3a1f12;
    margin-bottom: 16px;
}

.booking-note {
    color: #5a4034;
    line-height: 1.7;
    margin-bottom: 28px;
}

.styled-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-message {
    margin-top: 18px;
    font-weight: 800;
}

.form-message.success {
    color: #237a3b;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #fff7ef;
    color: #6b4a3a;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: 0.75s ease;
}

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

/* 手机适配 */
@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .split-section,
    .service-grid,
    .why-grid,
    .gallery-strip,
    .contact-section,
    .service-row,
    .detail-hero,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .service-row.reverse .service-row-image {
        order: 0;
    }

    .section,
    .split-section,
    .detail-section,
    .booking-layout,
    .page-hero,
    .contact-section {
        padding: 62px 6%;
    }

    .booking-cta {
        margin: 0 6% 62px;
        padding: 46px 24px;
    }

    .gallery-strip {
        padding: 0 6% 62px;
    }

    .split-image,
    .detail-image,
    .service-row-image {
        height: 330px;
    }
}

.form-message.error {
    color: #b3261e;
}

.styled-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
