/* ============================================
   OPAL SPA & Nails - Global Stylesheet
   高级灰主题，可自定义 :root 变量
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 高级灰 (可随意修改此处改变全站主题) */
    --primary: #9e9e9e;
    --primary-dark: #6b6b6b;
    --primary-light: #e0e0e0;
    --soft-gray: #f5f5f5;
    --cream: #fafafa;
    --gray-dark: #2c2c2c;
    --gray-mid: #7a7a7a;
    --white: #ffffff;
    --shadow-card: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
    --border-radius-card: 28px;
    --border-radius-btn: 40px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--gray-dark);
    scroll-behavior: smooth;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark), #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
	display: flex;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-dark);
    transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-btn);
    padding: 0.3rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
    margin-left: 1rem;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 1.2rem;
        border-radius: 1.8rem;
        margin-top: 1rem;
        gap: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-icon {
        display: block;
    }
    .navbar {
        padding: 0.8rem 1.2rem;
    }
    .lang-switch {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* 按钮 */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 通用卡片 */
.card, .service-card, .product-card, .booking-card, .section-card {
    background: var(--white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover, .service-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--primary-dark), #999);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* 轮播图 */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    height: 65vh;
    min-height: 420px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    color: white;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.6), rgba(30, 30, 30, 0.5));
    z-index: 1;
}

.carousel-slide > * {
    position: relative;
    z-index: 2;
}

.carousel-slide i {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.carousel-slide h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-slide p {
    font-size: 1.2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.carousel-dots {
    text-align: center;
    padding: 1rem 0 0.8rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary);
    width: 28px;
    border-radius: 10px;
}

/* 店铺介绍双栏 */
.intro-grid {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

 @media (max-width: 768px) {
	 .intro-grid {
		flex-direction: column;
	 }
 }

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
}

/* 服务网格 */
.services-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.service-card-img, .product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--soft-gray);
}

.product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0.5rem 0;
}

.product-desc {
    color: var(--gray-mid);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.btn-detail {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* 浮动按钮 */
.floating-book {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 99;
}

/* 底部 */
footer {
    background: #f0f0f0;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* 预约表单相关 */
.booking-card {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.required::after {
    content: " *";
    color: #e11d48;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 28px;
    border: 1px solid #e2e2e2;
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.2);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: var(--soft-gray);
    border-radius: 40px;
}

.extra-item input {
    width: auto;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary-dark);
    text-align: right;
    border-top: 2px dashed #e0e0e0;
    padding-top: 1rem;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--border-radius-btn);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.error-msg {
    color: #e11d48;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.toast {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid var(--primary);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    z-index: 2000;
    text-align: center;
    min-width: 280px;
}

.toast button {
    margin-top: 1rem;
    background: var(--primary);
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}

/* 服务介绍页特殊样式 */
.service-block {
    margin-bottom: 4rem;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-header i {
    font-size: 2.2rem;
    color: var(--primary);
    background: var(--soft-gray);
    padding: 0.7rem;
    border-radius: 50%;
}

.service-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.desc-col {
    flex: 1;
    min-width: 240px;
}

.price-col {
    flex: 1;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--border-radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

.badge {
    display: inline-block;
    background: var(--soft-gray);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-right: 0.5rem;
    margin-bottom: 0.6rem;
}

/* 后台表格 */
table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

th, td {
    text-align: left;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    color: var(--gray-mid);
}

.btn-del {
    background: #ffe4e4;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    color: #c2410c;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-del:hover {
    background: #fecaca;
}

.product-row {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: var(--cream);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.product-control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

input.product-price-input {
    width: 80px;
    padding: 0.3rem;
    border-radius: 20px;
    border: 1px solid #e2d4f0;
    text-align: center;
}

.save-price-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray-mid);
}

/* 类别标签栏 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--gray-mid);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .carousel-slide h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .tab-btn { padding: 0.4rem 1rem; font-size: 0.85rem; }
}