/*
 * 深圳市点缀文化有限公司官网样式
 * 设计风格：粉白金柔和风（美容个护行业）
 */

/* ===== CSS变量定义 ===== */
:root {
    /* 主色调 */
    --primary-color: #E91E63;      /* 粉色 */
    --primary-light: #FCE4EC;      /* 浅粉色 */
    --primary-dark: #C2185B;       /* 深粉色 */

    /* 辅助色 */
    --accent-color: #D4AF37;       /* 金色 */
    --accent-light: #F5E6C8;       /* 浅金色 */

    /* 中性色 */
    --white: #FFFFFF;
    --bg-color: #FFF9FA;           /* 背景浅粉白 */
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;

    /* 字体 */
    --font-cn: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
    --font-en: "Helvetica Neue", Arial, sans-serif;

    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.08);
    --shadow-md: 0 4px 16px rgba(233, 30, 99, 0.12);
    --shadow-lg: 0 8px 32px rgba(233, 30, 99, 0.16);

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, li {
    list-style: none;
}

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

/* ===== 通用类 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== 头部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-text span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

/* 导航菜单 */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.lang-switch button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.lang-switch button.active {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 500;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== 关于我们区域 ===== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== 产品展示区域 ===== */
.products {
    background: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    padding-top: 60%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
}

.product-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 14px;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
}

.app-badge:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.app-badge svg {
    width: 20px;
    height: 20px;
}

/* ===== 联系我们区域 ===== */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info {
    padding-right: var(--spacing-lg);
}

.contact-info h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 联系表单 */
.contact-form {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== 底部 ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 备案号样式 */
.footer-bottom .icp-info {
    margin-top: 8px;
}

.footer-bottom .icp-info a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-bottom .icp-info a:hover {
    color: var(--primary-color);
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 30px;
    }

    .header .container {
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: var(--spacing-xl);
    }

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

    .hero-content p {
        font-size: 16px;
    }

    .hero-image img {
        max-width: 280px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }
}

/* ===== 动画效果 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 图标字体占位（使用Unicode符号代替） */
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "✉️"; }
.icon-time::before { content: "🕐"; }
.icon-check::before { content: "✓"; }
.icon-apple::before { content: ""; }
