/* 糖心视频现代化主页样式 */

/* CSS变量定义 */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4fcf;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #e17055;
    
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2d3436;
    
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-secondary: linear-gradient(135deg, #00cec9, #00b894);
    --gradient-accent: linear-gradient(135deg, #fd79a8, #e84393);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --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;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* 动态背景 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floating 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    top: 60%;
    right: 50%;
    animation-delay: -6s;
}

@keyframes floating {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -20px) scale(1.1); }
    50% { transform: translate(20px, -30px) scale(0.9); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

/* 网站包装器 */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: nowrap;
    min-height: 60px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: fit-content;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    min-width: fit-content;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: nowrap;
    margin: 0 20px;
    flex-shrink: 1;
    min-width: 0;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.cta-link {
    background: var(--gradient-primary);
    color: white;
}

.nav-link.cta-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: fit-content;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(45, 52, 54, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
}

/* 主要内容 */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* 英雄区域 */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 206, 201, 0.05));
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.stats-showcase {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

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

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(45, 52, 54, 0.1);
}

.btn-hero.secondary:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

/* 视觉区域 */
.visual-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.floating-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.ui-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
    animation: floatingCard 4s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -10%;
    display: flex;
    align-items: center;
    gap: 12px;
    animation-delay: -1s;
}

.card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title, .card-stats {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.card-title { width: 60px; }
.card-stats { width: 40px; }

.card-2 {
    bottom: 30%;
    left: -10%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -2s;
}

.card-play {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.card-info {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-3 {
    top: 60%;
    right: 10%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -3s;
}

.card-icon {
    font-size: 16px;
}

.card-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* 功能区域 */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.feature-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(45, 52, 54, 0.05);
}

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

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-tech {
    display: flex;
    gap: 8px;
}

.tech-tag {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* 创作者区域 */
.creators-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.creators-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.creator-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.creator-card.featured {
    border: 2px solid var(--primary);
}

.creator-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
}

.creator-avatar {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.creator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 160px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.creator-card:hover .creator-overlay {
    opacity: 1;
}

.follow-btn, .chat-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.chat-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.creator-info {
    padding: 24px;
}

.creator-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.creator-category {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.creator-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.creator-metrics {
    display: flex;
    justify-content: space-between;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* 用户反馈区域 */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-role {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.rating {
    font-size: 12px;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border: none;
}

.testimonial-date {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

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

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

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

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

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 页脚 */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-list {
        gap: 6px;
        margin: 0 16px;
    }
    
    .nav-link {
        padding: 7px 14px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-content {
        gap: 16px;
    }
    
    .nav-list {
        gap: 6px;
        margin: 0 16px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .brand-logo {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    
    .brand-section {
        width: 100%;
        justify-content: center;
    }
    
    .nav-list {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        margin: 0;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .stats-showcase {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .creators-carousel,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}