@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

/* public/assets/css/home.css */

:root {
    /* 主色调 - 现代化极简配色 */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent-color: #a855f7;
    /* Purple 500 */

    /* 辅助色 */
    --text-hero: #0f172a;
    --text-sub: #475569;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-page: #f8fafc;

    /* 渐变色 - 更柔和的现代渐变 */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f1f5f9 100%);

    /* 阴影 - 柔和的分层阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. 顶部导航 - Glassmorphism */
.home-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-hero);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* 2. Hero Section - Dynamic & Modern */
.hero-section {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top right, #f5f3ff 0%, #ffffff 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    top: -100px;
    left: -150px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-hero);
    letter-spacing: -0.03em;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 680px;
    margin-inline: auto;
}

/* 3. Feature Preview Cards - High End */
.hero-features-preview {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.preview-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.preview-text {
    text-align: left;
}

.preview-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-hero);
    margin-bottom: 4px;
}

.preview-text span {
    font-size: 13px;
    color: var(--text-sub);
}

/* 4. Features Section */
.features-section {
    padding: 100px 0;
    background: var(--surface-gradient);
}

/* 3. Stats Section */
.stats-section {
    padding: 60px 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--primary-gradient);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions .nav-btn {
    background: white;
    color: var(--primary-color);
    box-shadow: none;
}

.cta-actions .nav-btn:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-hero);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-sub);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 48px 40px;
    background: white;
    border-radius: 32px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 28px;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-hero);
}

.feature-desc {
    color: var(--text-sub);
    line-height: 1.7;
    font-size: 15px;
}

/* Footer */
.footer-simple {
    text-align: center;
    padding: 48px 0;
    color: var(--text-sub);
    font-size: 14px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   响应式适配 - 完美移动端
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-features-preview {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 20px;
    }

    /* 优化导航栏 */
    .nav-container {
        height: 64px;
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 18px;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Hero 区域对齐与间距 */
    .hero-section {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-badge {
        margin-bottom: 24px;
        padding: 8px 18px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .hero-subtitle br {
        display: none;
    }

    /* 特性卡片堆叠美化 */
    .hero-features-preview {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        padding: 0 4px;
        width: 100%;
        max-width: 480px;
        margin-inline: auto;
    }

    .preview-item {
        width: 100%;
        padding: 20px;
        background: white;
        border-radius: 20px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }

    .preview-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .preview-text strong {
        font-size: 15px;
    }

    /* 背景装饰调整 */
    .hero-shape {
        filter: blur(60px);
        opacity: 0.3;
    }

    .shape-1 {
        width: 300px;
        height: 300px;
        left: -100px;
        top: -50px;
    }

    .shape-2 {
        width: 250px;
        height: 250px;
        right: -80px;
        bottom: 0;
    }

    /* 功能列表 */
    .features-section {
        padding: 64px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 32px;
        border-radius: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    /* 数据统计 */
    .stats-section {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 20px;
    }

    .stat-value {
        font-size: 32px;
    }

    /* CTA */
    .cta-section {
        padding: 40px 0;
    }

    .cta-box {
        padding: 60px 24px;
        border-radius: 30px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        display: none;
    }

    .hero-title {
        font-size: 30px;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-logo {
        height: 38px;
    }
}