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

/* ==========================================================================
   1. 基础布局与通用容器
   ========================================================================== */
.ft-locations-page {
    width: 100%;
    overflow-x: hidden;
    background-color: #FAFAFC;
}

.ft-container {
    width: min(92%, var(--container-max-width, 1280px));
    margin: 0 auto;
    box-sizing: border-box;
}

.vertical-gradient {
    min-height: 500px;
    background: linear-gradient(180deg, #F7F9FF 0%, #E1ECFF 50%, #C9DCFF 100%);
}

/* ==========================================================================
   2. 文本链接样式 (.fm-external-link & .fm-seo-link) - 雅致紫灰质感
   ========================================================================== */
.fm-external-link,
.fm-seo-link {
    color: #4E4776 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(78, 71, 118, 0.38) !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1px !important;
    border-bottom: none !important;
    transition: color 0.25s ease, text-decoration-color 0.25s ease !important;
}

.fm-external-link:hover,
.fm-seo-link:hover {
    color: #7B61FF !important;
    text-decoration-color: #7B61FF !important;
}

/* ==========================================================================
   2.1 品牌渐变文字动效 (.brand-gradient)
   ========================================================================== */
.brand-gradient {
    font-weight: 800;
    background: radial-gradient(
        circle, 
        #f9736f 0%, 
        #6a59ff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    animation: textShine 3s ease-in-out infinite alternate;
}

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

/* ==========================================================================
   3. HERO 首屏区块 (Hero Section)
   ========================================================================== */
.ft-loc-hero-section {
    width: 100%;
    background-color: #FAFAFC;
    padding-top: 4%;
    padding-bottom: 4%;
    box-sizing: border-box;
}

.ft-loc-hero-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

/* 左侧内容栏 */
.ft-loc-hero-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* 顶部胶囊小徽章 */
.hero-subtitle-long {
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-purple, #7B61FF);
    display: inline-block;
    background: rgba(123, 97, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    margin-top: 50px;
    margin-bottom: 20px;
    align-self: flex-start;
}

/* 主标题 */
.ft-loc-hero-title {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 4rem; /* 64px */
    font-weight: 800;
    line-height: 1.1;
    color: #0D0D16;
    margin: 0 0 8px 0;
    padding: 0;
}

.ft-loc-hero-title-gradient {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 4rem; /* 64px */
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 48px 0;
    padding: 0;
}

/* 描述文本 (严格保持 82% 与 490px 最大宽度，保证负空间呼吸感) */
.ft-loc-hero-desc {
    width: 82%;
    max-width: 490px;
    margin: 0 0 40px 0;
}

.ft-loc-hero-desc p {
    font-size: 19.2px;
    font-weight: 400;
    line-height: 1.65;
    color: #4A5568;
    margin: 0;
}

/* 操作按钮组 */
.ft-loc-hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.ft-standalone-container {
    display: inline-block;
}

.ft-standalone-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    width: 200px !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    border: none !important;
    color: white !important;
    white-space: nowrap !important;
    background-image: radial-gradient(circle, #f9736f 0%, #7B61FF 100%) !important;
    background-size: 200% auto !important;
    background-position: 0% 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 6px 12px rgba(123, 97, 255, 0.15) !important;
}

.ft-standalone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(123, 97, 255, 0.4) !important;
    animation: barFlow 3s infinite alternate;
}

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

.ft-secondary-container {
    display: inline-block;
}

.ft-html-btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    box-sizing: border-box;
    padding: 0;
    width: 200px !important;
    height: 54px !important;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: transparent;
    color: #7B61FF !important;
    border: 2px solid #7B61FF;
    transition: all 0.3s ease;
    box-shadow: none;
}

.ft-html-btn-secondary:hover {
    background-color: rgba(123, 97, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(123, 97, 255, 0.2);
}

/* 右侧 Bento 栅格卡片组 */
.ft-loc-hero-visual {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.fm-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.fm-service-card {
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.fm-service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.fm-service-card.fm-dark {
    background-color: #1a182e;
    color: #ffffff;
}

.fm-service-card.fm-light {
    background-color: #ebebff;
    color: #1a1a1a;
}

.fm-card-top { grid-column: span 2; }
.fm-card-bottom-left { grid-column: 1; }
.fm-card-bottom-right { grid-column: 2; }

.fm-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}
.fm-service-card.fm-dark .fm-card-icon { color: rgba(255, 255, 255, 0.7); }
.fm-service-card.fm-light .fm-card-icon { color: #9b51e0; }

.fm-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    margin-top: 0;
}

.fm-card-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 24px;
    margin-top: 0;
}

.fm-card-link {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.fm-service-card.fm-light .fm-card-link { color: #7B61FF; }
.fm-service-card.fm-light .fm-card-link:hover { color: #F9736F; gap: 12px; }
.fm-service-card.fm-dark .fm-card-link { color: #A890FE; }
.fm-service-card.fm-dark .fm-card-link:hover { color: #F9736F; gap: 12px; }

/* ==========================================================================
   4. 业务城市服务区块 (Cities Section)
   ========================================================================== */
.ft-loc-cities-section {
    width: 100%;
    padding-top: 4%;
    padding-bottom: 4%;
    box-sizing: border-box;
}

.ft-loc-cities-header {
    text-align: center;
    width: 100%;
}

.ft-loc-cities-subtitle {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0D0D16;
    margin: 20px 0 12px 0;
    padding: 0;
    text-align: center;
}

.ft-loc-cities-title {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0D0D16;
    margin: 0 0 32px 0;
    padding: 0;
    text-align: center;
}

.ft-loc-cities-desc {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: left;
}

.ft-loc-cities-desc p {
    font-size: 19.2px;
    font-weight: 400;
    line-height: 1.65;
    color: #4A5568;
    margin-bottom: 16px;
}

.ft-loc-cities-desc strong {
    font-weight: 600;
    color: #2D3748;
}

/* 国家分组 */
.ft-country-block {
    width: 100%;
}

.ft-country-title {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: #0D0D16;
    text-align: center;
    margin: 20px 0 40px 0;
    padding: 0;
}

.ft-country-us .ft-country-title {
    margin-top: 80px;
}

/* 城市 5 列流式网格 */
.ft-cities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 36px;
    column-gap: 24px;
    width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

.ft-city-card-item {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.ft-city-card-link {
    display: flex;
    flex-direction: column;
    width: 220px;
    height: auto;
    background-color: #FFFFFF;
    border-radius: 25px;
    box-shadow: 2px 4px 10px 0px rgba(0, 0, 0, 0.2);
    padding: 5px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.ft-city-card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.2);
}

.ft-city-card-thumb {
    width: 100%;
    text-align: center;
    line-height: 0;
}

.ft-city-card-thumb img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.ft-city-card-title-zh {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #2D3748;
    margin: 12px 0 4px 0;
    text-align: center;
}

.ft-city-card-title-en {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #718096;
    margin: 0 0 12px 0;
    text-align: center;
}

/* ==========================================================================
   5. 行业赋能区块 (Industries Section)
   ========================================================================== */
.ft-loc-industries-section {
    width: 100%;
    padding-top: 4%;
    padding-bottom: 4%;
    box-sizing: border-box;
}

.fm-industries-section {
    color: #1a1a1a;
    box-sizing: border-box;
}

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

.fm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.fm-section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #1a1a1a;
    line-height: 1.2;
}

.fm-section-header p {
    font-size: 18px;
    font-weight: 400;
    color: #555566;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.65;
}

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

.fm-industry-card {
    background: #fafbfc;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.fm-industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(123, 97, 255, 0.1);
    border-color: rgba(123, 97, 255, 0.3);
    background: #ffffff;
}

.fm-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(123, 97, 255, 0.1);
    color: #7B61FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.fm-industry-card:hover .fm-icon-wrapper {
    background: linear-gradient(135deg, #F9736F 0%, #7B61FF 100%);
    color: #ffffff;
}

.fm-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.fm-industry-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.35;
    margin-top: 0;
    color: #1a1a1a;
}

.fm-industry-card p {
    font-size: 16.5px;
    font-weight: 400;
    color: #4A5568;
    line-height: 1.68;
    margin: 0;
}

/* ==========================================================================
   6. 底部联系表单区块 (Contact Section)
   ========================================================================== */
.ft-loc-contact-section {
    width: 100%;
    background-color: #FAFAFC;
    padding-top: 80px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.ft-loc-contact-header {
    text-align: center;
    width: 100%;
}

.ft-loc-contact-subtitle {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px; /* 2rem */
    font-weight: 700;
    line-height: 1.2;
    color: #0D0D16;
    margin: 0 0 12px 0;
    padding: 0;
    text-align: center;
}

.ft-loc-contact-title {
    font-family: "flamingofont", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0D0D16;
    margin: 0 0 32px 0;
    padding: 0;
    text-align: center;
}

/* ==========================================================================
   7. 响应式布局规范 (Responsive Breakpoints: 1024px & 767px)
   ========================================================================== */
@media (max-width: 1024px) {
    .ft-loc-hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    .ft-loc-hero-inner {
        padding-left: 0;
        padding-right: 0;
    }
    .ft-loc-hero-content {
        padding-left: 20px;
    }
    .hero-subtitle-long {
        margin-top: 0;
        font-size: 0.9rem;
    }
    .ft-loc-hero-title {
        font-size: 2.6rem;
    }
    .ft-loc-hero-title-gradient {
        font-size: 2.4rem;
        margin-bottom: 28px;
    }
    .ft-loc-hero-desc {
        margin-bottom: 20px;
    }
    .fm-services-grid {
        gap: 12px;
        padding: 0 8px;
    }
    .fm-service-card {
        padding: 16px;
        border-radius: 16px;
    }
    .fm-card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 12px;
    }
    .fm-card-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .fm-card-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    .fm-card-link {
        font-size: 0.85rem;
    }

    /* 城市网格平板端 2 列 */
    .ft-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
        column-gap: 20px;
    }
    .ft-city-card-link {
        width: 150px;
    }

    /* 行业板块平板端 2 列 */
    .fm-industries-section {
        padding: 70px 24px;
    }
    .fm-section-header h2 {
        font-size: 2.3rem;
    }
    .fm-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .ft-loc-hero-inner {
        flex-direction: column;
    }
    .ft-loc-hero-content {
        width: 100%;
        padding-left: 0;
    }
    .ft-loc-hero-visual {
        width: 100%;
        margin-top: 40px;
        justify-content: center;
    }
    .hero-subtitle-long .en-content {
        display: none !important;
    }
    .ft-loc-hero-title,
    .ft-loc-hero-title-gradient {
        font-size: 2.2rem;
    }
    .ft-secondary-container {
        display: none !important;
    }
    .fm-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fm-card-top,
    .fm-card-bottom-left,
    .fm-card-bottom-right {
        grid-column: 1 / -1 !important;
    }
    .fm-service-card {
        padding: 24px;
        border-radius: 20px;
    }
    .fm-card-title {
        font-size: 1.3rem;
    }
    .fm-card-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* 城市板块手机端 */
    .ft-loc-cities-subtitle {
        font-size: 1.8rem;
    }
    .ft-loc-cities-title {
        font-size: 1.6rem;
    }
    .ft-loc-cities-desc p {
        font-size: 1rem;
        padding: 0 8px;
    }
    .ft-country-title {
        font-size: 1.8rem;
    }
    .ft-country-us .ft-country-title {
        margin-top: 60px;
    }
    .ft-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }
    .ft-city-card-link {
        width: 100%;
        max-width: 155px;
    }

    /* 行业板块手机端 */
    .fm-industries-section {
        padding: 50px 16px;
    }
    .fm-section-header h2 {
        font-size: 1.8rem;
    }
    .fm-section-header p {
        font-size: 1rem;
    }
    .fm-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 底部联系板块手机端 */
    .ft-loc-contact-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .ft-loc-contact-subtitle {
        font-size: 20px;
    }
    .ft-loc-contact-title {
        font-size: 30px;
        margin-bottom: 20px;
    }
}
