/* ========================================
   视创AI - 全局样式 style.css
   包含：CSS变量、基础重置、排版、导航、页脚
   ======================================== */

/* CSS 变量定义 */
:root {
    /* 主色调 */
    --color-primary: #6C5CE7;
    --color-primary-dark: #5849C4;
    --color-primary-light: #A29BFE;
    --color-secondary: #00CEC9;
    --color-accent: #FD79A8;
    --color-warning: #FDCB6E;
    --color-success: #00B894;
    --color-danger: #FF7675;

    /* 中性色 */
    --color-bg: #F8F9FD;
    --color-bg-alt: #F0F1F8;
    --color-surface: #FFFFFF;
    --color-text: #2D3436;
    --color-text-secondary: #636E72;
    --color-text-light: #B2BEC3;
    --color-border: #E3E6F0;
    --color-border-light: #EFF1F6;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-secondary: linear-gradient(135deg, #00CEC9 0%, #55EFC4 100%);
    --gradient-accent: linear-gradient(135deg, #FD79A8 0%, #FDCB6E 100%);
    --gradient-hero: linear-gradient(135deg, #6C5CE7 0%, #8E7CF7 50%, #00CEC9 100%);

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(108, 92, 231, 0.06);
    --shadow-md: 0 4px 12px rgba(108, 92, 231, 0.1);
    --shadow-lg: 0 8px 24px rgba(108, 92, 231, 0.12);
    --shadow-xl: 0 16px 48px rgba(108, 92, 231, 0.16);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;

    /* 字体 */
    --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 段落标题 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-cta {
    margin-left: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   英雄区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary-light);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 40%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ========================================
   功能卡片
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
    cursor: default;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.icon-purple { background: rgba(108, 92, 231, 0.1); }
.icon-teal { background: rgba(0, 206, 201, 0.1); }
.icon-pink { background: rgba(253, 121, 168, 0.1); }
.icon-orange { background: rgba(253, 203, 110, 0.1); }
.icon-blue { background: rgba(9, 132, 227, 0.1); }
.icon-green { background: rgba(0, 184, 148, 0.1); }

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   HI+AI 区域
   ======================================== */
.hi-ai-section {
    background: var(--color-surface);
}

.hi-ai-grid {
    display: flex;
    align-items: stretch;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.hi-ai-card {
    flex: 1;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid transparent;
    transition: var(--transition);
}

.ai-card {
    border-color: rgba(108, 92, 231, 0.2);
}

.ai-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.hi-card {
    border-color: rgba(0, 206, 201, 0.2);
}

.hi-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.hi-ai-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.ai-card .hi-ai-badge {
    background: var(--gradient-primary);
    color: #fff;
}

.hi-badge {
    background: var(--gradient-secondary) !important;
    color: #fff !important;
}

.hi-ai-role {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hi-ai-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.hi-ai-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.ai-card .hi-ai-list li::before {
    color: var(--color-primary);
}

.hi-card .hi-ai-list li::before {
    color: var(--color-secondary);
}

.hi-ai-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-plus {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* ========================================
   工作流程
   ======================================== */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.workflow-step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.workflow-step p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

/* ========================================
   CTA 区域
   ======================================== */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-box {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    color: #fff;
}

.cta-box h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    font-size: 1.05rem;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--color-primary);
}

.cta-box .btn-primary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #1A1A2E;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-xl);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hi-ai-grid {
        flex-direction: column;
    }

    .hi-ai-connector {
        padding: var(--space-sm) 0;
    }

    .connector-plus {
        transform: rotate(90deg);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .workflow-steps {
        flex-direction: column;
    }

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

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

    .cta-box h2 {
        font-size: 1.5rem;
    }
}
