/* ============ SERVICE PAGE STYLES ============ */

/* Hero */
.service-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent);
}

.service-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.service-hero-content {
    max-width: 620px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.service-hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.85;
}

.service-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero 右侧：服务内容卡片 */
.service-hero-aside {
    display: flex;
    justify-content: flex-end;
}

.service-aside-card {
    width: 100%;
    max-width: 380px;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.service-aside-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.service-aside-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-aside-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.aside-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.platform-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.platform-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.platform-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.platform-icon.ios {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.platform-icon.android {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.platform-icon.flutter {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}

.platform-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
}

/* Timeline */
.process-section {
    background: var(--bg-card);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.timeline-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.timeline-duration {
    margin-top: 14px;
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Advantages */
.advantages-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.advantage-card ul {
    list-style: none;
    text-align: left;
}

.advantage-card li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.advantage-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.case-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}

.case-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.case-content {
    padding: 24px;
}

.case-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.case-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.case-link:hover {
    color: var(--accent);
}

/* 线性图标尺寸 */
.service-badge .ico {
    width: 16px;
    height: 16px;
}

.platform-icon {
    color: #fff;
}

.platform-icon .ico {
    width: 32px;
    height: 32px;
}

.timeline-icon {
    display: flex;
    color: var(--primary);
}

.timeline-icon .ico {
    width: 30px;
    height: 30px;
    stroke-width: 1.6;
}

.feature-icon {
    display: flex;
    color: var(--primary);
}

.feature-icon .ico {
    width: 34px;
    height: 34px;
    stroke-width: 1.6;
}

.advantage-icon {
    display: flex;
    justify-content: center;
    color: var(--primary);
}

.advantage-icon .ico {
    width: 38px;
    height: 38px;
    stroke-width: 1.6;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.case-link .ico {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

/* 服务页案例卡封面：压暗渐变，让线稿图与深色页面衔接 */
.case-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.72) 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .service-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-hero-content {
        max-width: 660px;
    }

    .service-hero-aside {
        justify-content: flex-start;
    }

    .service-aside-card {
        max-width: 100%;
    }

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

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero-title {
        font-size: 32px;
    }

    .service-aside-card {
        padding: 22px;
    }

    .platforms-grid,
    .features-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 16px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}