/* 
   Style.css - 高端护肤/美容企业网站样式
   风格描述：现代、简约、科学感、奢华感
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* 颜色变量 */
    --primary-gold: #C4A484;
    --primary-gold-light: #D4BC9C;
    --bg-gradient: linear-gradient(135deg, #F7F9F8 0%, #F5F1E9 100%);
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #888888;
    --accent-black: #111111;
    --accent-blue: #E8F1F2;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* 字体变量 */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 间距与圆角 */
    --section-padding: 100px;
    --container-width: 1280px;
    --radius-pill: 50px;
    --radius-lg: 32px;
    --radius-md: 16px;
    
    /* 阴影 */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 60px rgba(196, 164, 132, 0.15);
    
    /* 转换速度 */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* 2. 导航栏 (Header) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-signin {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.btn-signin::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-dark);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: var(--transition);
}

.btn-signin:hover::after {
    transform: scaleX(1);
}

/* 3. 按钮样式 (Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
}

.btn-secondary:hover {
    opacity: 0.7;
}

.icon-play {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* 4. 首屏 (Hero Section) */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.tag-new {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-gold);
    color: white;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero h1 .highlight {
    color: var(--primary-gold);
    font-style: italic;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    margin-left: -12px;
}

.avatar:first-child { margin-left: 0; }

.proof-text {
    font-size: 14px;
    color: var(--text-medium);
}

.proof-text span {
    font-weight: 700;
    color: var(--text-dark);
}

/* 悬浮卡片 (Hero Right) */
.hero-visual {
    position: relative;
}

.floating-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

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

.video-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: #EFEFEF;
    border-radius: calc(var(--radius-lg) - 10px);
    object-fit: cover;
}

/* 5. 品牌背书 (Trust Section) */
.trust-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.trust-logos:hover {
    opacity: 0.8;
}

.trust-logos img {
    height: 24px;
}

/* 6. 内容区网格 (Bento Grid) */
.content-section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.sub-title {
    color: var(--primary-gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 40px;
    margin-bottom: 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold-light);
}

.card-large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* AI 模拟器组件 */
.ai-scan-card {
    background: var(--accent-black);
    color: white;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.ai-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #00FFCC;
    opacity: 0.8;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px 0;
    position: relative;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-gold);
    width: 75%;
}

/* 7. 页脚 (Footer) */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-medium);
}

/* 8. 响应式媒体查询 */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .floating-card {
        max-width: 500px;
        margin: 40px auto 0;
    }
    
    .trust-logos {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        grid-row: auto;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none; /* 简化：实际项目中会替换为汉堡菜单 */
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-wrapper {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 9. 实用工具类 */
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-gold { color: var(--primary-gold); }
.glass-effect {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}