/**
 * data.css - platform/data.html 页面专用样式
 * 外部化自 data.html 的 <style> 块和 style= 内联属性
 */

/* ================================================
   1. 页面 Banner
   ================================================ */
#container {
    background-image: url(../images/platform/data/data_banner.jpg);
    background-size: cover !important;
    background-position: center !important;
}

.data-banner-inner {
    height: 300px;
}

/* ================================================
   2. 面包屑导航区域
   ================================================ */
.about_nav {
    line-height: 50px;
    height: 50px;
    font-size: 14px;
    padding-top: 10px;
    margin-bottom: 20px;
}

.about_nav a {
    color: #86868b;
    text-decoration: none;
}

.breadcrumb-sep {
    color: #86868b;
    margin: 0 6px;
}

.breadcrumb-current {
    color: #1d1d1f;
    font-weight: 600;
}

/* ================================================
   3. 页面主内容区块
   ================================================ */

.data-row-gap {
    padding-bottom: 50px;
}

/* 多模式数据传输标题区块 */
.data-hero-block {
    text-align: center;
    background: white;
    margin-bottom: 30px;
    padding-bottom: 65px;
}

.data-hero-block .hero-visible-title,
.data-scheme-block h2 {
    color: #313131;
    font-size: 45px;
    font-weight: 900;
    padding-top: 60px;
    padding-bottom: 30px;
}

.data-hero-block .data-hero-desc,
.data-scheme-block .data-scheme-desc {
    margin-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px;
}

/* 三个模式卡片 */
.data-mode-col {
    padding-bottom: 18px;
}

.data-mode-col img,
.data-scene-col img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.data-mode-col h4,
.data-scene-col h4 {
    color: #269ad7;
    font-size: 20px;
    font-weight: 900;
    padding-top: 35px;
    margin-bottom: 25px;
}

.data-mode-col p,
.data-scene-col p {
    color: #313131;
}

/* 快速选择方案区块 */
.data-scheme-block {
    text-align: center;
    background: white;
    margin-bottom: 30px;
    padding-bottom: 65px;
}

.data-scheme-block .data-scheme-desc {
    margin-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px;
}

/* 模式的对比动态背景区块 */
.data-compare-section {
    background-color: #269ad7;
    background-image: url(../images/platform/data/data_bg.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 110px;
    margin-bottom: 36px;
    text-align: center;
    animation: bgScrollData 100s ease-in-out infinite;
    color: #fff;
}

.data-compare-section h2 {
    color: #fff;
    font-size: 45px;
    font-weight: 900;
    padding-top: 60px;
    padding-bottom: 15px;
}

.data-compare-section .data-compare-desc {
    color: #fff;
    padding-bottom: 15px;
}

/* 对比四个小卡片 */
.data-compare-card {
    padding-top: 20px;
    text-align: center;
}

.data-compare-card img {
    width: 30%;
}

.data-compare-card .card-title {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    padding-top: 12px;
}

.data-compare-card p {
    color: #fff;
    font-size: 16px;
    padding-top: 12px;
}

/* 适用场景区块 */
.data-scene-block {
    text-align: center;
    background: white;
    margin-bottom: 30px;
    padding-bottom: 65px;
}

.data-scene-block h2 {
    color: #313131;
    font-size: 45px;
    font-weight: 900;
    padding-top: 60px;
    padding-bottom: 35px;
}

.data-scene-col {
    padding-bottom: 18px;
}

.data-scene-col img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.data-scene-col p {
    color: #313131;
}

/* 通用圆角图片 */
.img-rounded-16 {
    border-radius: 16px;
    overflow: hidden;
}

/* 模式对比区文字 */
.data-text-center {
    text-align: center;
}

.data-compare-card .card-desc {
    color: #fff;
    font-size: 16px;
    padding-top: 12px;
}

/* 底部客户区 */
.section-dark {
    background: #525252;
}

/* ================================================
   4. "模式的对比" 动态背景 动画
   ================================================ */
@keyframes bgScrollData {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes lightSweepData {
    0%   { left: -40%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

.data-compare-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 80%,
        transparent 100%
    );
    animation: lightSweepData 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.data-compare-section > * {
    position: relative;
    z-index: 2;
}

/* ================================================
   5. Apple 风格对比卡片
   ================================================ */
.apple-compare-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.apple-compare-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 30px;
    flex: 1;
    max-width: 480px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.apple-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.apple-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(37, 154, 214, 0.3);
}

.apple-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    flex: 1;
}

.apple-badge {
    background: linear-gradient(145deg, #34c759, #28a745);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apple-badge-red {
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
}

.apple-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.apple-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(37, 154, 214, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.apple-step:hover {
    background: rgba(37, 154, 214, 0.1);
    transform: translateX(5px);
}

.apple-step .step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.apple-step span:last-child {
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 500;
}

.apple-pros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.apple-pros .pro-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    background: #f5f5f7;
    padding: 6px 12px;
    border-radius: 8px;
}

.apple-pros .pro-item i {
    color: #34c759;
}

.apple-card-right .apple-pros .pro-item i {
    color: #259ad6;
}

.apple-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apple-download-btn {
    display: block;
    padding: 14px 20px;
    background: linear-gradient(145deg, #259ad6, #1e7fb8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 154, 214, 0.3);
}

.apple-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 154, 214, 0.4);
    color: white;
}

.apple-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #259ad6, transparent, #259ad6);
    position: absolute;
    z-index: 0;
}

.connector-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #259ad6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #259ad6;
    font-size: 18px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 154, 214, 0.2);
}

@media (max-width: 768px) {
    .apple-compare-section {
        flex-direction: column;
        align-items: center;
    }
    .apple-compare-card {
        max-width: 100%;
        width: 100%;
    }
    .apple-connector {
        transform: rotate(90deg);
        padding: 15px 0;
    }
}

/* ================================================
   6. PC端大卡片下拉菜单 + 导航栏 hover
   ================================================ */
@media (min-width: 992px) {
    /* 导航栏 hover 变粗 + 圆角背景 - 仅 PC 端 */
    .main-menu > li > a {
        padding: 8px 16px !important;
        border-radius: 20px !important;
    }
    .main-menu > li > a:hover {
        font-weight: 900 !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
    }
    /* 导航项间距 */
    .main-menu > li {
        margin: 0 8px !important;
    }
    .main-menu > li {
        transform: none !important;
        transition: none !important;
    }
    .main-menu > li:hover {
        transform: none !important;
    }
    .main-menu > li a {
        transition: none !important;
        transform: none !important;
    }
    .main-menu .dropdown-menu li a:hover {
        font-weight: 900 !important;
    }
    .main-menu .dropdown-menu {
        border-radius: 12px !important;
        overflow: hidden;
    }

    /* 大卡片下拉菜单 - 仅 PC 端 */
    .has-mega-menu {
        position: relative;
    }
    .has-mega-menu .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        min-width: 510px;
        padding-top: 8px;
    }
    .has-mega-menu:hover .mega-menu {
        display: block;
    }
    .mega-menu-inner {
        display: flex;
        background: #fff;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        padding: 24px 20px 24px 24px;
        gap: 24px;
        align-items: center;
    }
    .mega-menu-left {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 140px;
    }
    .mega-menu-left.mega-col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        max-width: 320px;
    }
    .mega-menu-left.mega-col-2 a {
        width: auto;
    }
    .mega-menu-left a {
        color: #000 !important;
        font-size: 15px;
        padding: 10px 16px;
        border-radius: 10px;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s, font-weight 0.2s;
        white-space: nowrap;
        background: transparent !important;
    }
    .mega-menu-left a:hover {
        color: #259ad6 !important;
        font-weight: 700;
    }
    .mega-menu-right {
        flex: 0 0 auto;
        width: 200px;
        height: 250px;
        border-radius: 16px;
        overflow: hidden;
        margin-right: 4px;
        margin-left: 100px;
    }
    .mega-menu-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
    }
}

/* ================================================
   7. 移动端导航覆盖
   ================================================ */
@media (max-width: 991px) {
    /* 覆盖 Bootstrap 默认的 hover/open 浅灰背景 */
    .nav > li > a:hover,
    .nav > li > a:focus,
    .nav .open > a,
    .nav .open > a:focus,
    .nav .open > a:hover {
        background: transparent !important;
        color: #259ad6 !important;
    }

    /* 一级菜单：无箭头、无分隔线 */
    .main-menu > li {
        margin: 0 !important;
        display: block !important;
        border-bottom: none !important;
    }
    .main-menu > li > a {
        display: block !important;
        position: relative !important;
        padding: 12px 16px !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        border-bottom: none !important;
        background: none !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .main-menu > li > a:hover,
    .main-menu > li > a:active,
    .main-menu > li > a:focus {
        color: #259ad6 !important;
        background: transparent !important;
    }
    /* 去掉一级菜单箭头 */
    .main-menu > li > a::after {
        content: none !important;
    }
    .has-mega-menu.mobile-open > a::after {
        content: none !important;
        transform: none !important;
    }

    /* 搜索框隐藏 */
    .main-menu li.search {
        display: none !important;
        border-bottom: none !important;
    }

    /* 子菜单容器 */
    .has-mega-menu {
        position: static !important;
    }
    .has-mega-menu .mega-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .has-mega-menu:hover .mega-menu {
        display: none !important;
    }
    .has-mega-menu.mobile-open .mega-menu {
        display: block !important;
    }
    .mega-menu-inner {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    .mega-menu-right {
        display: none !important;
    }
    .mega-menu-left {
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .mega-menu-left.mega-col-2 {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    /* 二级菜单：无箭头、无分隔线 */
    .mega-menu-left a {
        display: block !important;
        position: relative !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 10px 16px 10px 28px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-bottom: none !important;
        text-decoration: none !important;
        background: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mega-menu-left a::after {
        content: none !important;
    }
    .mega-menu-left a:hover,
    .mega-menu-left a:active {
        color: #259ad6 !important;
        background: transparent !important;
    }
}

/* ================================================
   8. Header / Footer 样式
   ================================================ */
.header-contact-item {
    padding: 10px 10px;
    height: 40px;
}

.header-slogan {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 10px 10px;
    height: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-menu-size {
    font-size: 16px;
}

/* Footer 容器 */
.footer-border {
    border-bottom: 1px solid #3F3F3F;
}

.footer-row-gap {
    margin-bottom: 20px;
}

.footer-col-pad {
    padding-left: 40px;
}

.footer-link {
    color: #969595;
    font-size: 12px;
}

.footer-info-link {
    color: #969595;
    font-size: 12px;
    pointer-events: none;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
}

.footer-copy-text {
    color: #969595;
}

.footer-meta-text {
    color: #969595;
    font-size: 12px;
    padding-left: 15px;
    margin-top: 3px;
    line-height: 30px;
}

.footer-tag-text {
    color: #969595;
}

/* why-choose-us 区块 padding 控制 */
#why-choose-us {
    padding: 0 0 !important;
}

/* 底部客户区 */
.why-choose-us.bg-dark {
    background: #525252;
}
