/* 美学镜官网样式 - 复用紫蓝渐变主题 */

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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #48bb78;
    --gold: #ffd700;
    --dark: #1a202c;
    --gray: #718096;
    --light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(102,126,234,0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0 24px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 1; }

.btn-nav {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 汉堡菜单按钮（移动端显示） */
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* 语言切换按钮（中 / EN）—— 始终可见，桌面端在导航右侧，移动端与汉堡按钮并排 */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 20px;
}
.lang-switch button {
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button.active {
    background: rgba(255,255,255,0.25);
    opacity: 1;
}
.lang-switch .lang-divider {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* i18n 防闪烁：英文首次加载时隐藏 body，JS 替换完成后显示 */
.i18n-pending body { visibility: hidden; }

/* ========== Hero（苹果风格） ========== */
.hero {
    background: var(--white);
    text-align: center;
    padding: 0;
}

/* 大图轮播 */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

/* 图片 */
.hero-slide-img {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 左右背景层：取前景图左右边缘像素横向拉伸，纯边缘色填充留白，不重复画面中间内容 */
.hero-slide-img .hero-bg-l,
.hero-slide-img .hero-bg-r {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.hero-slide-img .hero-bg-l { left: 0; }
.hero-slide-img .hero-bg-r { right: 0; }
.hero-slide-img .hero-bg-l img,
.hero-slide-img .hero-bg-r img {
    position: absolute;
    top: -20px;
    width: 2px;
    height: calc(100% + 40px);
    object-fit: cover;
    filter: url(#hero-vblur);
}
.hero-slide-img .hero-bg-l img {
    left: 0;
    object-position: left center;
    transform: scaleX(1000);
    transform-origin: left center;
}
.hero-slide-img .hero-bg-r img {
    right: 0;
    object-position: right center;
    transform: scaleX(1000);
    transform-origin: right center;
}
/* 前景图：原始比例清晰居中 */
.hero-slide-img .hero-front {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    /* 左右边缘羽化过渡：边缘渐变透明，露出模糊背景，消除硬边分界线 */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hero-slide-img .img-placeholder {
    border: none;
    border-radius: 0;
}

/* 标题+标语+链接 覆盖在图片上 - 统一居中偏上 */
.hero-slide-content {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 0 60px;
    z-index: 2;
    text-align: center;
}

.hero-brand {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-headline {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 18px;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 0;
}
.hero-links a {
    color: #0071e3;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s;
}
.hero-links a:hover {
    color: #0077ed;
    text-decoration: underline;
}
.hero-links .arrow {
    font-size: 20px;
    margin-left: 2px;
}

/* 圆点导航 */
.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 40px;
    background: var(--white);
}
.hero-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7;
    cursor: pointer;
    transition: all 0.3s;
}
.hero-carousel-dots span.active {
    background: #86868b;
    width: 24px;
    border-radius: 4px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

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

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 56px;
    font-size: 18px;
}

/* ========== 通用 section ========== */
section {
    padding: 56px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 36px;
}

/* ========== 痛点 ========== */
.pain-points { background: #eef1f6; }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pain-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.pain-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.pain-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.pain-item p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 功能 ========== */
.features { background: var(--light); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.icon-capture { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.icon-album { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.icon-ai { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.icon-client { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.icon-security { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.icon-sync { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

/* ========== 渐变图标圆形底板 ========== */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.icon-circle svg {
    color: #ffffff;
}
.icon-circle.sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}
.icon-circle.lg {
    width: 80px;
    height: 80px;
    border-radius: 22px;
}

/* 渐变色系 */
.grad-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.grad-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.grad-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grad-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.grad-cyan { background: linear-gradient(135deg, #a8edea 0%, #5ee7df 100%); }
.grad-sunset { background: linear-gradient(135deg, #ff9a6e 0%, #ff6a88 100%); }
.grad-violet { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.grad-mint { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.grad-rose { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.grad-gold { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.grad-indigo { background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%); }
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== 图片占位（后期替换为真实图片） ========== */
.img-placeholder {
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 13px;
    text-align: center;
    margin: 0 auto;
}
.img-placeholder .ph-name {
    font-weight: 600;
    color: #718096;
    margin-bottom: 4px;
}
.img-placeholder .ph-size {
    font-size: 11px;
    color: #a0aec0;
}

/* ========== 头图轮播 ========== */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.hero-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.hero-slider-track > div {
    min-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.hero-slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-slider-dots span.active {
    background: var(--white);
}

/* ========== 多端 ========== */
.platforms { background: var(--white); }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.platform-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: 16px;
    background: var(--light);
    transition: all 0.3s;
}

.platform-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.platform-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.platform-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.platform-item p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 流程 ========== */
.workflow { background: var(--light); }

.flow {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
}

.flow-step {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 28px;
    min-width: 180px;
    text-align: center;
    box-shadow: var(--shadow);
}

.flow-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.flow-step p {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 24px;
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: var(--white);
    padding: 64px 24px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 18px;
}

/* ========== 页脚 ========== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-contact p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-copy {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.5;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    /* 导航栏：移动端汉堡菜单 */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 15px;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-content {
        position: relative;
    }

    .hero { padding: 0; }
    .hero-slide-img { height: 380px; }
    .hero-slide-content { top: 40px; padding: 0 24px; }
    .hero-brand { font-size: 16px; }
    .hero-headline { font-size: 28px; }
    .hero-sub { font-size: 15px; }
    .hero-links { gap: 20px; flex-wrap: wrap; }
    .hero-links a { font-size: 15px; }
    .hero-carousel-dots { padding: 12px 0 28px; }

    section { padding: 40px 0; }
    .section-title { font-size: 26px; }

    .pain-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

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

    /* 覆盖 inline 的 2列布局，手机上统一单列 */
    section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    section [style*="grid-template-columns: 1fr 2fr"],
    section [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow { transform: rotate(90deg); }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
