/* ========================================
   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, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

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

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 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, #4f46e5) 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-color, #4f46e5);
    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, #4f46e5);
}

.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;
}

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

.tool-card {
    background: var(--card-bg, #ffffff);
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    border-color: var(--primary-color, #4f46e5);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 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, #4f46e5) 0%, #7c3aed 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, #4f46e5);
    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: var(--bg-color, #f8fafc);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.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;
}

.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;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, #7c3aed 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, #4f46e5);
}

/* === CTA 区域 === */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, #7c3aed 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, #4f46e5);
}

.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, #4f46e5);
}

/* === 页脚 === */
.footer {
    background: var(--text-primary, #1e293b);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* === 响应式设计 === */
@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);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .navbar .nav-links {
        display: none;
    }
}
