/*-- 通用样式 --*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f3ece7; /* 主题色 */
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 返回按钮 */
.back-button {
    position: fixed; /* 固定位置 */
    top: 20px;
    left: 20px;
    background-color: #705148;
    color: #fff;
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* 确保在最上层 */
}

.back-button:hover {
    background-color: #5a4c40;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    border-bottom-left-radius: 50% 15%;
    border-bottom-right-radius: 50% 15%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 半透明覆盖层 */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2em; /* Reduced from 3.5em */
    margin-bottom: 0.5em;
    font-family: 'Lora', serif;
    font-weight: 700;
}

.hero-content p {
    font-size: 1em; /* Reduced from 1.3em */
    margin-bottom: 1.2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #705148;
    color: #f3ece7;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1em; /* Added for consistency */
}

.btn:hover {
    background-color: #5a4c40;
    color: #fff;
    transform: translateY(-2px);
}

/* 按钮次级样式 */
.btn-secondary {
    background-color: #f3ece7;
    color: #705148;
    border: 2px solid #705148;
    font-size: 0.85em; /* Reduced from 1em */
}

.btn-secondary:hover {
    background-color: #705148;
    color: #f3ece7;
}



/* Services Section */
.services {
    padding: 80px 0;
    background-color: #ffffff; /* 白色背景 */
}

.services h2 {
    text-align: center;
    font-size: 2.1em; /* Reduced from 2.8em */
    margin-bottom: 60px;
    font-family: 'Lora', serif;
    color: #705148;
    position: relative;
}

.services h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background-color: #705148;
    margin: 10px auto 0;
    border-radius: 2px;
}

.facial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.facial-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facial-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facial-info {
    padding: 20px;
    text-align: center;
}

.facial-info h3 {
    font-size: 1.3em; /* Reduced from 1.8em */
    color: #705148;
    margin-bottom: 15px;
    font-family: 'Lora', serif;
    font-weight: 700;
    text-align: center; /* 保证居中对齐 */
}


.facial-info p {
    color: #666;
    font-size: 0.85em; /* Reduced from 1em */
    margin-bottom: 20px;
    text-align: left;
    hyphens: auto; /* 自动断字 */
    word-spacing: normal; /* 规范单词间距 */
    letter-spacing: normal; /* 规范字母间距 */
}

.facial-info .price {
    font-size: 1em; /* Reduced from 1.2em */
    color: #705148;
    margin-bottom: 20px;
    font-weight: 600;
}

.facial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 图片 */
.intro {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    margin: 4em auto;
    padding: 0em;
    border-radius: 1em;
}

.intro img {
    display: block; /* 解决图片下方的白边问题 */
    width: 100%;
}

/* FAQs Section */
.faq {
    padding: 80px 0;
    background-color: #f3ece7; /* 主题色 */
}

.faq h2 {
    text-align: center;
    font-size: 2.2em; /* Adjusted font size */
    margin-bottom: 60px;
    font-family: 'Lora', serif;
    color: #705148;
    position: relative;
}

.faq h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background-color: #705148;
    margin: 10px auto 0;
    border-radius: 2px;
}

.faq-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.faq-info h3 {
    font-size: 1.1em;
    color: #705148;
    margin-bottom: 10px;
    font-family: 'Lora', serif;
    font-weight: 700;
}

.faq-info p {
    color: #666;
    font-size: 0.85em;
    text-align: justify;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Call to Action Section */
.cta {
    background-color: #ffffff; /* 白色背景 */
    color: #705148;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2em; /* Reduced from 2.8em */
    margin-bottom: 30px;
    font-family: 'Lora', serif;
    font-weight: 700;
}

.cta .btn {
    background-color: #705148;
    color: #f3ece7;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 1em; /* Added for consistency */
}

.cta .btn:hover {
    background-color: #5a4c40;
    color: #fff;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5em; /* Reduced from 2.8em to match scaling */
    }

    .hero-content p {
        font-size: 1em;
    }

    .services h2,
    .faq h2,
    .cta h2 {
        font-size: 2em; /* Reduced from 2.5em */
    }

    .facial-info h3,
    .faq-info h3 {
        font-size: 1.35em; /* Reduced from 1.6em */
    }

    .facial-info p,
    .faq-info p {
        font-size: 0.85em; /* Reduced from 1em */
    }

    .cta .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .intro{
        width: 90%;
        margin: 3em auto;
    }
}

@media (max-width: 768px) {
    .back-button {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.75em; /* Reduced from 0.9em */
    }

    .facial-cards,
    .faq-cards {
        grid-template-columns: 1fr;
    }

    .testimonial-list,
    .faq-cards {
        gap: 20px;
    }

    .testimonial,
    .faq-card {
        padding: 15px 20px;
    }

    .cta h2 {
        font-size: 2.2em; /* Maintained */
    }

    .cta .btn {
        padding: 10px 20px;
        font-size: 0.85em; /* Reduced from 0.9em */
    }
    .intro{
        width: 98%;
        margin: 3em auto;
        border-radius: 0em;
    }
}
