/* ====================================
   花漾美妆 - 浪漫轻奢风 CSS
   主色: 玫瑰粉 #D4838A
   辅色: 鼠尾草绿 #7A9E7E  
   强调: 暖金色 #C9A96E
   底色: 奶油白 #FFF9F5
   ==================================== */

:root {
    --primary: #D4838A;
    --primary-dark: #B5616A;
    --primary-light: #F2D0D4;
    --secondary: #7A9E7E;
    --secondary-dark: #5C7F60;
    --secondary-light: #D4E8D6;
    --accent: #C9A96E;
    --accent-light: #F0E4CC;
    --bg: #FFF9F5;
    --bg-white: #FFFFFF;
    --text: #3D2B2E;
    --text-light: #7A6B6D;
    --text-muted: #A8989A;
    --border: #F0E0E2;
    --shadow: 0 4px 20px rgba(212,131,138,0.08);
    --shadow-lg: 0 8px 40px rgba(212,131,138,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== 顶部导航 ===== */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.logo-icon { font-size: 32px; }

.logo-text h1 { font-size: 22px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-text p { font-size: 12px; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav > a, .nav-dropdown > a {
    padding: 8px 16px;
    font-size: 15px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.main-nav > a:hover, .nav-dropdown > a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav > a.active { color: var(--primary); font-weight: 600; }

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 8px 22px !important;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(212,131,138,0.3); }

.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 160px;
    z-index: 50;
}

.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 16px; color: var(--text); border-radius: var(--radius-sm); font-size: 14px; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary-dark); }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s;
}

.hero-slide.active { opacity: 1; }

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,131,138,0.85), rgba(201,169,110,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 60px;
    color: #fff;
}

.hero-content h2 { font-size: 42px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hero-content p { font-size: 18px; opacity: 0.95; margin-bottom: 30px; line-height: 1.7; }

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--primary-dark); }

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active { background: #fff; width: 30px; border-radius: 5px; }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-white); }

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

.section-header h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 10px;
}

.section-header .subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== 分类导航卡片 ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cat-card .cat-icon { font-size: 48px; margin-bottom: 12px; }
.cat-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.cat-card p { font-size: 14px; color: var(--text-muted); }

.cat-card.makeup { border-top: 3px solid var(--primary); }
.cat-card.flower { border-top: 3px solid var(--secondary); }

/* ===== 产品卡片 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card .card-img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; }

.product-card .card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.card-type.makeup { background: var(--primary); }
.card-type.flower { background: var(--secondary); }

.product-card .card-body { padding: 20px; }
.product-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.product-card .card-summary { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

.product-card .card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-card .price-now { font-size: 22px; font-weight: 700; color: var(--primary-dark); }
.product-card .price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.product-card .price-unit { font-size: 13px; color: var(--text-muted); }

.product-card .card-actions { display: flex; gap: 8px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(212,131,138,0.3); color: #fff; }

.btn-secondary { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); color: #fff; }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(122,158,126,0.3); color: #fff; }

.btn-outline { background: var(--bg-white); color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-gold { background: linear-gradient(135deg, var(--accent), #B08D4E); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,169,110,0.3); color: #fff; }

.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }

/* ===== 评价区 ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
}

.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; font-size: 16px; }
.testimonial-card .content { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.testimonial-card .author-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* ===== CTA区 ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }

.cta-section .btn { margin: 0 8px; }

/* ===== 优势区 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
}

.feature-card .icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 { font-size: 36px; color: var(--text); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-light); }

/* ===== 列表页筛选 ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 作品展示网格 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.gallery-card img { width: 100%; height: 100%; object-fit: cover; }

.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(61,43,46,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .overlay { opacity: 1; }
.gallery-card .overlay h3 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.gallery-card .overlay p { color: rgba(255,255,255,0.8); font-size: 13px; }

/* ===== 知识列表 ===== */
.knowledge-list { display: flex; flex-direction: column; gap: 20px; }

.knowledge-card {
    display: flex;
    gap: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.knowledge-card:hover { box-shadow: var(--shadow); }

.knowledge-card .thumb {
    width: 200px;
    min-height: 140px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}

.knowledge-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.knowledge-card .info { flex: 1; }
.knowledge-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.knowledge-card .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.knowledge-card .summary { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== 预约表单 ===== */
.booking-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.3s;
    background: var(--bg);
}

.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,131,138,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 关于页 ===== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 28px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.stat-card .stat-num { font-size: 36px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(180deg, #3D2B2E, #2A1C1E);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo span { font-size: 28px; }
.footer-logo h3 { color: var(--primary-light); font-size: 20px; }

.footer-brand p { font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.footer-contact p { font-size: 13px; margin-bottom: 4px; }

.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; padding: 4px 0; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p { margin-bottom: 4px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); }
    .main-nav.open { display: flex; }
    .nav-dropdown .dropdown-menu { display: block; position: static; box-shadow: none; padding-left: 16px; }
    .mobile-toggle { display: block; }
    .hero { height: 400px; }
    .hero-content { padding: 0 20px; }
    .hero-content h2 { font-size: 28px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .knowledge-card { flex-direction: column; }
    .knowledge-card .thumb { width: 100%; min-height: 180px; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}
