/* ==========================================================================
   FlamingoTechs - 全案服务总览页样式表 (Services Hub Page Styles)
   100% 纯原生现代 CSS 架构：彻底剥离 Elementor 依赖
   ========================================================================== */

/* =========================================
   Flamingo Services Hub - Variables & Base
   ========================================= */
.fm-hub-wrapper {
    --fm-purple: #7B61FF;
    --fm-pink: #f9736f;
    --fm-dark-bg: #0D0D16;
    --fm-light-bg: #FAFAFC;
    --fm-card-bg: #FFFFFF;
    --fm-text-main: #2D3748;
    --fm-text-light: #718096;
    --fm-border: rgba(226, 232, 240, 0.8);
    --fm-gradient: linear-gradient(90deg, var(--fm-purple), var(--fm-pink));
    --fm-shadow-sm: 0 10px 30px rgba(0,0,0,0.03);
    --fm-shadow-lg: 0 20px 50px rgba(0,0,0,0.06);
    --fm-shadow-hover: 0 30px 60px rgba(123, 97, 255, 0.12);
    
    color: var(--fm-text-main);
    line-height: 1.6;
    width: 100%;
}

.fm-hub-wrapper * { 
    box-sizing: border-box; 
}

.fm-container {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    padding: 4%;
}

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

.fm-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.fm-section-tag {
    display: inline-block;
    color: var(--fm-purple);
    background: rgba(123, 97, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.fm-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* =========================================
   Section 1: Hero (带有图片和深色遮罩)
   ========================================= */
.fm-hub-hero {
    background-color: var(--fm-dark-bg);
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 22, 0.75), rgba(13, 13, 22, 0.95)), 
        url('/assets/images/hero/north-america-digital-marketing-agency-scaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 180px 20px 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fm-hub-hero::before {
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: 50%; 
    transform: translateX(-50%);
    width: 1000px; 
    height: 1000px; 
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, transparent 70%); 
    pointer-events: none;
    z-index: 1;
}

.fm-hub-hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 24px; 
    line-height: 1.2; 
    position: relative; 
    z-index: 2; 
}

.fm-hub-hero p { 
    font-size: 1.25rem; 
    color: rgba(255, 255, 255, 0.85); 
    max-width: 850px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
}

/* =========================================
   Section 2: Service Cards Grid
   ========================================= */
.fm-hub-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: -100px; 
    position: relative; 
    z-index: 10;
}

.fm-hub-card {
    background: white; 
    border-radius: 30px; 
    padding: 50px 35px;
    box-shadow: var(--fm-shadow-lg); 
    border: 1px solid var(--fm-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; 
    flex-direction: column;
}

.fm-hub-card:hover {
    transform: translateY(-15px); 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); 
    border-color: var(--fm-border);
}

.fm-hub-icon { 
    width: 60px; 
    height: 60px; 
    fill: var(--fm-purple); 
    margin-bottom: 30px; 
}

.fm-hub-card h2 { 
    font-size: 1.6rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
}

.fm-hub-card p { 
    color: var(--fm-text-light); 
    font-size: 1.05rem; 
    margin-bottom: 30px; 
    flex-grow: 1; 
    line-height: 1.7; 
}

.fm-hub-link { 
    color: var(--fm-purple); 
    text-decoration: none; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1.1rem; 
    transition: gap 0.3s ease, color 0.3s ease;
}

.fm-hub-link:hover {
    color: var(--fm-pink);
    gap: 12px;
}

/* =========================================
   Section 3: Why Choose Us
   ========================================= */
.fm-adv-section { 
    background: var(--fm-light-bg); 
}

.fm-adv-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
}

.fm-adv-box {
    background: white; 
    padding: 40px; 
    border-radius: 24px;
    border: 1px solid var(--fm-border); 
    display: flex; 
    gap: 24px;
}

.fm-adv-icon-wrap {
    width: 64px; 
    height: 64px; 
    border-radius: 16px; 
    background: rgba(123, 97, 255, 0.08);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.fm-adv-icon-wrap svg { 
    width: 32px; 
    height: 32px; 
    fill: var(--fm-purple); 
}

.fm-adv-text h3 { 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: var(--fm-text-main); 
}

.fm-adv-text p { 
    color: var(--fm-text-light); 
    font-size: 1rem; 
    line-height: 1.7; 
}

/* =========================================
   Section 4: The Process
   ========================================= */
.fm-process-section { 
    background: white; 
    overflow: hidden; 
}

.fm-process-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    position: relative; 
}

.fm-process-grid::before {
    content: ''; 
    position: absolute; 
    top: 50px; 
    left: 10%; 
    right: 10%; 
    height: 2px;
    background: dashed 2px var(--fm-border); 
    z-index: 1;
}

.fm-step-card { 
    position: relative; 
    z-index: 2; 
    padding: 20px 10px; 
}

.fm-step-icon {
    width: 80px; 
    height: 80px; 
    background: white; 
    border-radius: 50%;
    border: 2px solid var(--fm-border); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--fm-purple); 
    margin-bottom: 24px;
}

.fm-step-card h3 { 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    position: relative; 
}

.fm-step-card h3::before {
    content: attr(data-step); 
    position: absolute; 
    top: -45px; 
    left: -10px;
    font-size: 5rem; 
    font-weight: 900; 
    color: rgba(123, 97, 255, 0.05); 
    z-index: -1;
}

.fm-step-card p { 
    color: var(--fm-text-light); 
    font-size: 0.95rem; 
    line-height: 1.7; 
}

/* =========================================
   Section 5: FAQ
   ========================================= */
.fm-faq-section { 
    background: var(--fm-light-bg); 
}

.fm-faq-container { 
    max-width: 900px; 
    margin: 0 auto; 
}

.fm-faq-item { 
    background: white; 
    border-radius: 20px; 
    margin-bottom: 16px; 
    border: 1px solid var(--fm-border); 
    overflow: hidden; 
}

.fm-faq-item summary {
    padding: 24px 30px; 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--fm-text-main);
    cursor: pointer; 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.fm-faq-icon {
    width: 24px; 
    height: 24px; 
    background: rgba(123, 97, 255, 0.1); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--fm-purple);
}

.fm-faq-content { 
    padding: 0 30px 24px; 
    color: var(--fm-text-light); 
    font-size: 1.05rem; 
    line-height: 1.8; 
}


/* =========================================
   🌟 Section 6: Strategic Bridge
   ========================================= */
.fm-bridge-content {
    background-color: var(--fm-dark-bg);
    background-image: 
        linear-gradient(to right,
            rgba(13, 13, 22, 1) 0%,
            rgba(13, 13, 22, 0.9) 30%,
            rgba(13, 13, 22, 0.6) 70%,
            rgba(13, 13, 22, 0.2) 100%
        ),
        url('/assets/images/hero/north-america-technology.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 40px;
    padding: 80px 100px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.fm-bridge-content::after {
    content: ''; 
    position: absolute; 
    top: -50%; 
    right: -20%; 
    width: 500px; 
    height: 500px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, transparent 70%);
}

.fm-bridge-text { 
    flex: 0 0 65%; 
    max-width: 65%; 
    position: relative; 
    z-index: 2; 
}

.fm-bridge-text h2 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
}

.fm-bridge-btn {
    background: var(--fm-gradient); 
    color: white !important; 
    padding: 18px 45px;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fm-bridge-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(249, 115, 111, 0.3); 
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .fm-hub-grid { 
        grid-template-columns: 1fr; 
        margin-top: 40px; 
    }
    .fm-adv-grid, 
    .fm-process-grid { 
        grid-template-columns: 1fr; 
    }
    .fm-process-grid::before { 
        display: none; 
    }
    .fm-bridge-content {
        flex-direction: column; 
        text-align: center; 
        padding: 50px 30px;
        justify-content: center;
        background-position: center;
        background-image: 
            linear-gradient(to bottom,
                rgba(13, 13, 22, 0.95) 0%,
                rgba(13, 13, 22, 0.7) 100%
            ),
            url('/assets/images/hero/north-america-technology.webp');
    }
    .fm-bridge-text { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
    .fm-hub-hero h1, 
    .fm-section-title, 
    .fm-bridge-text h2 { 
        font-size: 2.3rem; 
    }
}
