/* home */
@layer modules {
/* 首页模块 */

/* Hero区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 18px;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 28px;
    position: relative;
    z-index: 2;
}

.hero-facts a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-faq {
    padding: 80px 0;
    background: #fff;
}

.home-faq-list {
    width: 100%;
}

.home-faq-list article {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.home-faq-list h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.home-faq-list p {
    color: #444;
    line-height: 1.8;
    margin: 0;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-content {
    text-align: left;
    max-width: 800px;
    margin: 0;
    z-index: 2;
    position: relative;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px;
    max-width: 600px;
}

/* 手机模拟器 */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    width: 280px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.app-content {
    background: white;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.app-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-body {
    padding: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 8px;
}

.product-info h4 {
    margin: 0;
    font-size: 14px;
}

.product-info p {
    margin: 5px 0 0;
    color: #ff6b6b;
    font-weight: bold;
}

/* 平台支持区域样式 */
.platforms {
    padding: 80px 0;
    background: #fafbfc;
    position: relative;
}

.platforms .section-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.platforms .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 平台网格布局 */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 平台卡片 */
a.platform-card,
a.feature-card,
a.marketing-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.platform-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.platform-card:hover::before {
    left: 100%;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(26, 115, 232, 0.2);
}

/* 平台图标 */
.platform-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-icon i {
    font-size: 28px;
    color: white;
    z-index: 1;
}

/* 不同平台的颜色主题 */
.platform-icon.wechat {
    background: linear-gradient(135deg, #09bb07, #00d100);
    box-shadow: 0 2px 8px rgba(9, 187, 7, 0.2);
}

.platform-icon.alipay {
    background: linear-gradient(135deg, #1677ff, #00a6ff);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.2);
}

.platform-icon.douyin {
    background: linear-gradient(135deg, #fe2c55, #ff6b9d);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.2);
}

.platform-icon.kuaishou {
    background: linear-gradient(135deg, #ff6600, #ff9500);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

.platform-icon.baidu {
    background: linear-gradient(135deg, #2932e1, #4e5aed);
    box-shadow: 0 2px 8px rgba(41, 50, 225, 0.2);
}

.platform-icon.gongzhonghao {
    background: linear-gradient(135deg, #07c160, #00d878);
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);
}

.platform-icon.fuwuhao {
    background: linear-gradient(135deg, #576b95, #7983b3);
    box-shadow: 0 2px 8px rgba(87, 107, 149, 0.2);
}

.platform-icon.app {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.platform-icon.h5 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.platform-icon.web {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* 平台卡片标题 */
.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 平台卡片描述 */
.platform-card p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin: 0;
}

/* 平台标签 */
.platform-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.platform-badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .platform-card {
        padding: 30px 20px;
    }

    .platform-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .platform-icon i {
        font-size: 24px;
    }

    .platform-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .platform-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .platforms .section-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .platforms .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .platform-card {
        padding: 25px 20px;
    }
}

/* 动画效果 */
.platform-card {
    opacity: 0;
    transform: translateY(30px);
    animation: platformFadeIn 0.6s ease forwards;
}

.platform-card:nth-child(1) {
    animation-delay: 0.1s;
}

.platform-card:nth-child(2) {
    animation-delay: 0.15s;
}

.platform-card:nth-child(3) {
    animation-delay: 0.2s;
}

.platform-card:nth-child(4) {
    animation-delay: 0.25s;
}

.platform-card:nth-child(5) {
    animation-delay: 0.3s;
}

.platform-card:nth-child(6) {
    animation-delay: 0.35s;
}

.platform-card:nth-child(7) {
    animation-delay: 0.4s;
}

.platform-card:nth-child(8) {
    animation-delay: 0.45s;
}

.platform-card:nth-child(9) {
    animation-delay: 0.5s;
}

.platform-card:nth-child(10) {
    animation-delay: 0.55s;
}

@keyframes platformFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 营销工具区域样式 */
.marketing-tools {
    padding: 80px 0;
    background: #fafbfc;
    position: relative;
}

.marketing-tools .section-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.marketing-tools .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.marketing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.marketing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.marketing-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.marketing-icon i {
    font-size: 28px;
    color: white;
}

.marketing-icon.fission {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.marketing-icon.coupon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.marketing-icon.group {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.marketing-icon.flash {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.marketing-icon.live {
    background: linear-gradient(135deg, #fe2c55, #ff6b9d);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.2);
}

.marketing-icon.campaign {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.marketing-icon.festival {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.marketing-icon.more {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.marketing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.marketing-card p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin: 0;
}

.marketing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.compare-entry-main {
    margin-bottom: 12px;
}

.compare-entry-links .btn-secondary {
    color: #1a73e8;
    background: #fff;
    border: 1px solid #c5d8f6;
}

.compare-entry-links .btn-secondary:hover {
    color: #1557b0;
    background: #e8f1fd;
    border-color: #1a73e8;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .marketing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .marketing-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .marketing-grid {
        grid-template-columns: 1fr;
    }
}
}
