/* FlamingoTechs - Web Design Page Styles */

/* =========================================
       Flamingo Web Design Page - Core Variables
       ========================================= */
    .fm-wd-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-text-white: #FFFFFF;
        --fm-border: rgba(226, 232, 240, 0.8);
        --fm-gradient: linear-gradient(90deg, var(--fm-purple), var(--fm-pink));
        --fm-gradient-radial: radial-gradient(circle, var(--fm-pink) 0%, var(--fm-purple) 100%);
        
        
        color: var(--fm-text-main);
        line-height: 1.6;
        width: 100%;
        overflow-x: hidden;
    }

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

    /* =========================================
       Typography & Utilities
       ========================================= */
    .fm-text-gradient {
        background: var(--fm-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        display: inline-block;
    }

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

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

    .fm-section-subtitle {
        font-size: 1.1rem;
        color: var(--fm-text-light);
        text-align: center;
        max-width: 700px;
        margin: 0 auto 60px auto;
    }

    /* Buttons */
    .fm-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 16px 40px;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        line-height: 1;
    }

    .fm-btn-primary {
        background: var(--fm-gradient-radial);
        background-size: 200% auto;
        color: white !important;
        box-shadow: 0 10px 20px rgba(123, 97, 255, 0.25);
        border: none;
    }

    .fm-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(123, 97, 255, 0.4);
        background-position: 100% 50%;
    }

    .fm-btn-outline {
        background: transparent;
        color: var(--fm-purple) !important;
        border: 2px solid var(--fm-purple);
    }

    .fm-btn-outline:hover {
        background: rgba(123, 97, 255, 0.1);
        transform: translateY(-3px);
    }

    /* =========================================
       🌟 Section 1: Hero (深色图片背景融合)
       ========================================= */
    .fm-hero-section {
        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: var(--fm-text-white);
        padding: 160px 20px 140px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .fm-hero-section::before {
        content: '';
        position: absolute;
        top: -50%; left: -50%; width: 200%; height: 200%;
        background: radial-gradient(circle at center, rgba(123, 97, 255, 0.15) 0%, transparent 50%);
        z-index: 0;
        pointer-events: none;
    }

    .fm-hero-content {
        position: relative;
        z-index: 1;
        max-width: 900px;
        margin: 0 auto;
    }

    .fm-hero-tag {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--fm-purple);
        background: rgba(123, 97, 255, 0.15);
        padding: 8px 20px;
        border-radius: 50px;
        display: inline-block;
        margin-bottom: 24px;
        border: 1px solid rgba(123, 97, 255, 0.3);
    }

    .fm-hero-title {
        font-size: 4rem;
        font-weight: 800;
        margin-bottom: 24px;
        line-height: 1.1;
        color: var(--fm-text-white);
    }

    .fm-hero-desc {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 40px;
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }

    .fm-hero-actions {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    /* =========================================
       Section 2: Value Proposition (Light)
       ========================================= */
    .fm-value-section {
        background-color: var(--fm-light-bg);
    }

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

    .fm-value-card {
        background: var(--fm-card-bg);
        border-radius: 24px;
        padding: 40px 30px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
        border: 1px solid var(--fm-border);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .fm-value-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
        border-color: rgba(123, 97, 255, 0.3);
    }

    .fm-value-icon {
        width: 60px;
        height: 60px;
        background: rgba(123, 97, 255, 0.1);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
    }

    .fm-value-icon svg {
        width: 30px;
        height: 30px;
        fill: var(--fm-purple);
    }

    .fm-value-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--fm-text-main);
    }

    .fm-value-text {
        font-size: 1rem;
        color: var(--fm-text-light);
    }

    /* =========================================
       Section 3: The $599 Package Highlight
       ========================================= */
    @keyframes spotlightMove {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
    }


    .ft-pricing-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch; 
        gap: 24px;                
        padding: 50px 0;          
        width: 100%;
        max-width: var(--container-max-width, 1280px);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .ft-pricing-card {
        background: #ffffff;
        border-radius: 24px; 
        width: 100%;
        max-width: 100%;
        padding: 50px 32px;       
        position: relative;
        border: 1px solid rgba(226, 232, 240, 0.8);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1;
        box-sizing: border-box;
    }

    .ft-pricing-card:hover {
        transform: translateY(-8px); 
        border-color: var(--fm-purple);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08); 
        z-index: 5;
    }

    .ft-badge {
        position: absolute;
        top: -16px; 
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(90deg, var(--fm-purple), var(--fm-pink));
        color: white;
        font-size: 13px;
        font-weight: 600;
        padding: 7px 22px; 
        border-radius: 50px;
        box-shadow: 0 4px 10px rgba(123, 97, 255, 0.25);
        letter-spacing: 1px;
        white-space: nowrap;
        transition: background 0.3s ease;
        z-index: 10;
    }

    .ft-pricing-card:hover .ft-badge {
        background: radial-gradient(circle, #f9736f 0%, #6a59ff 100%);
        background-size: 200% auto;
        animation: spotlightMove 3s ease-in-out infinite alternate;
    }

    .ft-header { text-align: center; margin-bottom: 24px; width: 100%; }
    .ft-title { font-size: 24px; font-weight: 700; color: var(--fm-text-main); margin-bottom: 10px; }
    .ft-desc { font-size: 14px; color: var(--fm-text-light); margin-bottom: 18px; line-height: 1.5; }
    .ft-price-wrapper { display: flex; justify-content: center; align-items: baseline; margin-bottom: 0; }
    .ft-currency { font-size: 24px; color: var(--fm-text-main); font-weight: 600; margin-right: 4px; transform: translateY(-8px); }
    .ft-tax { font-size: 13px; color: #CBD5E0; font-weight: 400; margin-left: 6px; }

    .ft-price {
        font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: -1px; 
        background: linear-gradient(90deg, var(--fm-purple), var(--fm-pink));
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; transition: all 0.3s ease;
    }
    .ft-pricing-card:hover .ft-price {
        background: radial-gradient(circle, #f9736f 0%, #6a59ff 100%);
        background-size: 200% auto;
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: spotlightMove 3s ease-in-out infinite alternate;
    }

    .ft-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #E2E8F0, transparent); margin: 32px 0; }
    .ft-features { list-style: none; padding: 0; margin: 0 0 auto 0; width: 100%; text-align: left; }
    .ft-item { display: flex; align-items: center; margin-bottom: 16px; color: var(--fm-text-main); font-size: 16px; line-height: 1.5;}
    .ft-icon { width: 22px; height: 22px; min-width: 22px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
    .ft-check { fill: var(--fm-purple); }

    .ft-btn {
        width: 100%; margin-top: 36px; padding: 14px 0; border-radius: 50px;
        font-weight: 700; font-size: 17px; text-align: center; cursor: pointer;
        transition: all 0.3s ease; text-decoration: none !important; display: inline-block;
    }
    .btn-filled { background: linear-gradient(90deg, var(--fm-purple), var(--fm-pink)); color: white; border: none; box-shadow: 0 8px 16px rgba(123, 97, 255, 0.18); }
    .ft-pricing-card:hover .btn-filled {
        background: radial-gradient(circle, #f9736f 0%, #6a59ff 100%);
        background-size: 200% auto; animation: spotlightMove 3s ease-in-out infinite alternate; color: white !important;
    }
    .btn-filled:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(123, 97, 255, 0.25); }
    .ft-delivery { margin-top: 15px; font-size: 13px; color: var(--fm-text-light); text-align: center; }

    /* Dark mode fixes */
    @media (prefers-color-scheme: dark) {
        .ft-pricing-card { background: #1a202c !important; border-color: #2d3748 !important; }
        .ft-title, .ft-currency, .ft-item { color: #f7fafc !important; }
        .ft-desc, .ft-tax, .ft-delivery { color: #a0aec0 !important; }
        .ft-price { filter: drop-shadow(0 0 5px rgba(123,97,255,0.4)); }
    }
    [data-darkreader-mode] .ft-price, html[data-darkreader-scheme="dark"] .ft-price {
        background: none !important; background-image: none !important;
        -webkit-background-clip: initial !important; background-clip: initial !important;
        -webkit-text-fill-color: #CFC4FF !important; color: #CFC4FF !important;
        text-shadow: 0 0 15px rgba(123, 97, 255, 0.4) !important;
    }
    [data-darkreader-mode] .ft-pricing-card, html[data-darkreader-scheme="dark"] .ft-pricing-card {
        background-color: #1a202c !important; border: 1px solid #4a5568 !important;
    }
    [data-darkreader-mode] .ft-title, [data-darkreader-mode] .ft-currency, [data-darkreader-mode] .ft-item, html[data-darkreader-scheme="dark"] .ft-title {
        color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
    }

    /* =========================================
       Section 4: Process (Timeline)
       ========================================= */
    .fm-process-section { background-color: var(--fm-light-bg); }
    .fm-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
    .fm-step-card {
        background: #FFFFFF; padding: 40px 30px; border-radius: 24px;
        text-align: center; border: 1px solid var(--fm-border); position: relative; z-index: 2;
    }
    .fm-step-num {
        width: 50px; height: 50px; background: var(--fm-gradient); color: white;
        font-size: 1.5rem; font-weight: 800; border-radius: 50%; display: flex;
        align-items: center; justify-content: center; margin: 0 auto 20px;
        box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3);
    }

    /* =========================================
       Background Gradients
       ========================================= */
    .hero-gradient-mesh {
        width: 100%; min-height: 600px; background-color: #F7F9FF; 
        background-image: 
            radial-gradient(circle at 20% 0%, #C9DCFF 0%, transparent 60%),
            radial-gradient(circle at 80% 15%, #EBF8FF 0%, transparent 65%),
            radial-gradient(circle at 50% 50%, #F1FBFF 0%, transparent 75%),
            linear-gradient(180deg, rgba(247, 249, 255, 0) 60%, rgba(247, 249, 255, 0.8) 80%, #F7F9FF 100%);
    }
    .vertical-gradient {
        min-height: 600px; 
        background: linear-gradient(180deg, #F7F9FF 0%, #E1ECFF 50%, #C9DCFF 100%);
    }
    
    /* =========================================
       🌟 Section 6: CTA Bottom (深色地图融合)
       ========================================= */
    .fm-cta-section {
        background-color: var(--fm-dark-bg);
        background-image: 
            linear-gradient(to right,
                rgba(13, 13, 22, 1) 0%, 
                rgba(13, 13, 22, 0.85) 40%, 
                rgba(13, 13, 22, 0.5) 80%, 
                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;
        text-align: center;
        padding: 120px 20px;
        position: relative;
    }

    .fm-cta-title {
        font-size: 3rem;
        font-weight: 800;
        color: white;
        margin-bottom: 30px;
        position: relative;
        z-index: 2;
    }

    /* =========================================
       Responsive Design
       ========================================= */
    @media (max-width: 1024px) {
        .fm-grid-3 { grid-template-columns: repeat(2, 1fr); }
        .fm-process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
        .fm-package-box { flex-direction: column; padding: 40px; }
        .fm-package-price-wrap { flex: auto; width: 100%; }
        .fm-hero-title { font-size: 3rem; }
        
        .fm-cta-section {
            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');
        }
    }

    @media (max-width: 768px) {
        .fm-grid-3, .fm-process-grid { grid-template-columns: 1fr; }
        .fm-hero-title { font-size: 2.5rem; }
        .fm-hero-actions { flex-direction: column; gap: 15px; }
        .fm-section-title { font-size: 2rem; }
        .fm-package-box { padding: 30px 20px; }
        .fm-package-price { font-size: 3.5rem; }
        .fm-cta-title { font-size: 2rem; }
    }


/* =========================================
   Service FAQ Section (100% Native Architecture)
   ========================================= */
.ft-service-faq-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.ft-faq-header {
    margin-top: 80px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.ft-faq-title {
    font-family: "flamingofont", Sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--e-global-color-accent, #c36);
    margin: 12px 0 32px 0;
    text-align: center;
}

.ft-faq-container {
    max-width: 920px;
    margin: 20px auto 40px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ft-faq-accordion {
    width: 100%;
}

/* 1. 基础卡片样式与间距 */
.ft-faq-item {
    background-color: #FAFAFC;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}

.ft-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.ft-faq-summary {
    padding: 20px 25px !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.ft-faq-summary::-webkit-details-marker {
    display: none;
}

.ft-faq-item[open] {
    box-shadow: 0 0 30px rgba(123, 97, 255, 0.25);
    border: 1px solid rgba(123, 97, 255, 0.4);
}

.ft-faq-item[open]:hover {
    transform: translateY(0);
}

/* 左侧图标方块 */
.ft-faq-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #8662F3, #7B61FF); /* 默认回退渐变，防止未命中规则时图标不可见 */
}

.ft-faq-icon-box svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff;
}

.ft-faq-item .ft-icon-minus {
    display: none;
}
.ft-faq-item .ft-icon-plus {
    display: flex;
}
.ft-faq-item[open] .ft-icon-minus {
    display: flex;
}
.ft-faq-item[open] .ft-icon-plus {
    display: none;
}

/* 品牌色彩矩阵渐变 (支持多项扩展) */
.ft-faq-item:nth-child(1) .ft-faq-icon-box {
    background: linear-gradient(135deg, #F9736F, #E47087);
}
.ft-faq-item:nth-child(2) .ft-faq-icon-box {
    background: linear-gradient(135deg, #E47087, #CF6D9F);
}
.ft-faq-item:nth-child(3) .ft-faq-icon-box {
    background: linear-gradient(135deg, #CF6D9F, #BA6AB7);
}
.ft-faq-item:nth-child(4) .ft-faq-icon-box {
    background: linear-gradient(135deg, #BA6AB7, #A567CF);
}
.ft-faq-item:nth-child(5) .ft-faq-icon-box {
    background: linear-gradient(135deg, #A567CF, #9064E7);
}
.ft-faq-item:nth-child(6) .ft-faq-icon-box {
    background: linear-gradient(135deg, #9064E7, #8662F3);
}
.ft-faq-item:nth-child(7) .ft-faq-icon-box {
    background: linear-gradient(135deg, #8662F3, #7B61FF);
}
.ft-faq-item:nth-child(8) .ft-faq-icon-box {
    background: linear-gradient(135deg, #7B61FF, #6340FF);
}
.ft-faq-item:nth-child(9) .ft-faq-icon-box {
    background: linear-gradient(135deg, #6340FF, #4F28ED);
}
.ft-faq-item:nth-child(10) .ft-faq-icon-box {
    background: linear-gradient(135deg, #4F28ED, #3D1BB5);
}
.ft-faq-item:nth-child(11) .ft-faq-icon-box {
    background: linear-gradient(135deg, #3D1BB5, #2B0E9C);
}
.ft-faq-item:nth-child(12) .ft-faq-icon-box {
    background: linear-gradient(135deg, #F9736F, #7B61FF);
}

/* 标题文字 */
.ft-faq-item-title {
    flex-grow: 1;
    color: #4E4E5E;
    font-family: "flamingofont", Sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin: 0;
}

/* 内容区文字与内边距 */
.ft-faq-item-content {
    padding: 0 25px 25px 88px !important;
    color: #4E4E5E;
    line-height: 1.6;
    border: none !important;
    background-color: #FAFAFC !important;
    font-size: var(--e-global-typography-text-font-size, 16px);
}

.ft-faq-item-content a {
    color: #c36 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ft-faq-item-content a:visited {
    color: #c36 !important;
}

.ft-faq-item-content a:hover,
.ft-faq-item-content a:focus {
    color: #7B61FF !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.ft-faq-item-content strong a,
.ft-faq-item-content a strong {
    font-weight: 700 !important;
}

/* =========================================
   CTA Button below FAQ
   ========================================= */
.ft-standalone-container {
    --ft-purple: #7B61FF;
    --ft-pink: #f9736f;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

@keyframes barFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ft-standalone-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    box-sizing: border-box;
    line-height: 1.2;
    padding: 16px 60px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    border: none;
    color: white !important;
    background: radial-gradient(circle, var(--ft-pink) 0%, var(--ft-purple) 100%);
    background-size: 200% auto;
    background-position: 0% 50%;
    box-shadow: 0 10px 20px rgba(123, 97, 255, 0.25);
    transition: all 0.3s ease;
}

.ft-standalone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(123, 97, 255, 0.15);
    animation: barFlow 3s infinite alternate;
}

/* =========================================
   Service Contact Section
   ========================================= */
.ft-service-contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.ft-contact-inner {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ft-contact-header {
    margin-top: 80px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.ft-contact-subtitle {
    font-family: "flamingofont", Sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--e-global-color-accent, #c36);
    margin: 0 0 0 0;
    text-align: center;
}

.ft-contact-title {
    font-family: "flamingofont", Sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--e-global-color-accent, #c36);
    margin: 12px 0 32px 0;
    text-align: center;
}

@media (max-width: 767px) {
    .ft-faq-header {
        margin-top: 80px;
        max-width: 322px;
    }
    .ft-faq-title {
        font-size: 30px;
        margin: 0 0 20px 0;
    }
    .ft-faq-container {
        max-width: 296.25px;
        margin: 20px auto 40px auto;
    }
    .ft-faq-icon-box {
        margin-right: 32px;
    }
    .ft-contact-header {
        margin-top: 60px;
        max-width: 322px;
    }
    .ft-contact-subtitle {
        font-size: 20px;
        margin: 12px 0 12px 0;
    }
    .ft-contact-title {
        font-size: 30px;
        margin: 0 0 20px 0;
    }
    .ft-service-contact-section {
        padding: 0 20px 60px 20px;
    }
}
