/* ============================================
   首页专用样式 - Home Page Styles v2.0
   重新设计的信息架构与响应式布局
   ============================================ */

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.home-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Navigation Header
   ============================================ */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 20px;
    transition: var(--transition);
}

.home-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.home-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.home-nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.home-nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.home-nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.home-nav-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.home-nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

/* ============================================
   Hero Section
   ============================================ */
.home-hero {
    margin-top: 70px;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 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='%23ffffff' 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");
    animation: float 20s linear infinite;
}

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

.home-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.home-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.home-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.home-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-hero-btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-hero-btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.home-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.home-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.home-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.home-hero-stat {
    text-align: center;
    color: white;
}

.home-hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
}

.home-hero-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   Features Section
   ============================================ */
.home-section {
    padding: 80px 20px;
}

.home-section-alt {
    background: white;
}

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

.home-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.home-section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.home-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.home-section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

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

/* ============================================
   Process Section
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.process-item {
    text-align: center;
    position: relative;
}

.process-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -24px;
    top: 50px;
    font-size: 32px;
    color: rgba(102, 126, 234, 0.3);
    font-weight: 300;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    box-shadow: var(--shadow-md);
}

.process-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ============================================
   Highlights Section
   ============================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.highlight-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
}

.highlight-icon {
    flex-shrink: 0;
    font-size: 40px;
}

.highlight-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
    color: white;
    margin: 0 20px;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

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

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

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

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

.cta-btn-outline {
    border: 2px solid white;
    color: white;
}

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

/* ============================================
   Footer
   ============================================ */
.home-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 40px 20px;
    margin-top: auto;
}

.home-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-footer-logo {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

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

.home-footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.home-footer-link:hover {
    color: white;
}

.home-footer-copyright {
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-item:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -36px;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .home-nav {
        padding: 0 16px;
    }
    
    .home-nav-inner {
        height: 60px;
    }
    
    .home-nav-links {
        display: none;
    }
    
    .home-hero {
        margin-top: 60px;
        padding: 60px 16px 50px;
    }
    
    .home-section {
        padding: 50px 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-card {
        flex-direction: column;
        text-align: center;
    }
    
    .home-hero-stats {
        gap: 32px;
    }
    
    .cta-section {
        padding: 40px 24px;
    }
    
    .home-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-nav-actions {
        gap: 8px;
    }
    
    .home-nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .home-hero-btn {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .home-hero-stats {
        gap: 24px;
    }
    
    .home-hero-stat-number {
        font-size: 28px;
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */
.prefetch-link {
    transition: background 0.2s;
}

.prefetch-link:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* ============================================
   Accessibility
   ============================================ */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
