/* ========================================
   Emoji Clip - 产品主页样式
   低耦合设计，不影响现有功能页面
   ======================================== */

/* === 导航栏样式覆盖 === */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary, #1e293b);
}

.navbar .logo-icon {
    font-size: 1.8rem;
}

/* === Hero 区域 === */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #edf3ff 0%, #f7faff 45%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f8cff 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 2.5rem;
}

/* === 统计数据 === */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color, #e2e8f0);
}

/* === 章节通用样式 === */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1e293b);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary, #64748b);
    margin-bottom: 3rem;
}

/* === 工具卡片区域 === */
.tools-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 242, 255, 0.85) 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 255, 0.85));
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

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

.tool-card.featured {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 24px 60px rgba(var(--accent-rgb), 0.18);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #1e293b);
}

.tool-desc {
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tool-features li {
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.tool-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-link::after {
    transform: translateX(5px);
}

/* === 产品优势区域 === */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--surface-3) 0%, var(--bg-color) 100%);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(47, 107, 255, 0.08);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #1e293b);
}

.feature-item p {
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
}

/* === 使用流程区域 === */
.steps-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.7);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #1e293b);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* === CTA 区域 === */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2456d6 0%, #0b1f4d 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* === 响应式设计 === */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

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

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

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

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