/**
 * Landing V4 - 首页优化样式
 * 增强视觉效果、动画和用户体验
 * 创建时间: 2026-06-24
 */

/* ========== HERO V4 ========== */
.hero-v4 {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.hero-v4 .hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--coral);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--teal);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--purple);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes 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-v4 .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-v4 .hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-v4 .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--coral);
    margin-bottom: 24px;
    animation: slideUp 0.6s var(--ease-out);
}

.hero-v4 h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideUp 0.6s var(--ease-out) 0.1s both;
}

.hero-v4 h1 .accent {
    background: linear-gradient(135deg, var(--coral), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v4 .hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    animation: slideUp 0.6s var(--ease-out) 0.2s both;
}

.hero-v4 .hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: slideUp 0.6s var(--ease-out) 0.3s both;
}

.hero-v4 .btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4);
    transition: all 0.3s var(--ease-out);
}

.hero-v4 .btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.6);
}

.hero-v4 .btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: glow 3s infinite;
}

@keyframes glow {
    0% { left: -50%; }
    100% { left: 150%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== STORY CARD V4 ========== */
.story-card-v4 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    display: block;
}

[data-theme="dark"] .story-card-v4 {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.story-card-v4:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--coral);
}

.story-card-v4 .story-card-cover {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-card-v4 .story-card-cover-inner {
    font-size: 4rem;
    transition: transform 0.4s var(--ease-out);
}

.story-card-v4:hover .story-card-cover-inner {
    transform: scale(1.1) rotate(5deg);
}

.story-card-v4 .story-card-ai-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
}

.story-card-v4 .story-card-body {
    padding: 20px;
}

.story-card-v4 .story-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
}

.story-card-v4 .story-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--coral), var(--teal));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-v4 .hero-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-v4 h1 {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ============================================================
   Accessibility: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
