/* ============================================================
   lightning-service-section - 左右布局（蓝色调 · 与全站统一）
   主色：深蓝 (#0b2a4a) + 亮蓝 (#2b7fc1) + 淡蓝 (#9bd1ff)
   ============================================================ */

/* ----- 最外层容器：强制占满视口 ----- */
.lightning-service-section {
    display: block !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    box-sizing: border-box !important;
}

/* ----- 内部容器：强制水平 flex 布局 ----- */
.lightning-service-section .ls-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================================
   左侧面板：白底 + 光效（占 50%）
   ============================================================ */
.lightning-service-section .ls-left {
    flex: 0 0 50% !important;
    width: 50% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

/* ============================================================
   右侧面板：图片（占 50%）
   ============================================================ */
.lightning-service-section .ls-right {
    flex: 0 0 50% !important;
    width: 50% !important;
    height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.lightning-service-section .ls-right img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ===== 新增样式 ===== */
.lightning-service-section .ls-right .image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.lightning-service-section .ls-right .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightning-service-section .ls-right .text-overlay {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    pointer-events: none; /* 如果文字不需要交互，加上这行让点击穿透 */
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* ===== 为图片和文字添加过渡动画 ===== */
.lightning-service-section .ls-right .image-wrapper img {
    transition: opacity 0.5s ease-in-out;
    /* 你原有的样式保持不变 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightning-service-section .ls-right .text-box {
    transition: opacity 0.5s ease-in-out;
    /* 你原有的其他样式保持不变 */
    display: inline-block;
    padding: 18px 35px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.75), rgba(255, 255, 255, 0.5));
    border-radius: 16px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 2px;
    line-height: 1.5;
    max-width: 90%;
    word-break: break-word;
}

/* ===== 核心：文字框的圆角半透明蓝白渐变 ===== */
.lightning-service-section .ls-right .text-box {
    display: inline-block;
    padding: 5px 12px;
    
    /* 蓝白渐变 + 半透明 */
    background: linear-gradient(
        135deg, 
        rgba(30, 144, 255, 0.35),   /* 道奇蓝，半透明 */
        rgba(100, 200, 255, 0.3),  /* 亮蓝，半透明 */
        rgba(255, 255, 255, 0.2)    /* 白色，半透明 */
    );
    
    /* 或者从蓝到白的渐变（更简洁） */
    /* background: linear-gradient(135deg, rgba(30, 144, 255, 0.8), rgba(255, 255, 255, 0.5)); */
    
    /* 圆角 */
    border-radius: 16px;
    
    /* 文字样式 */
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    
    /* 可选：加一点边框增强视觉效果 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* 可选：毛玻璃效果（让背景更模糊） */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    /* 文字间距 */
    letter-spacing: 2px;
    line-height: 1.5;
    
    /* 保证文字完整显示 */
    max-width: 90%;
    word-break: break-word;
}

/* ============================================================
   光效层（绝对定位）- 全部改为蓝色调
   ============================================================ */
.lightning-service-section .ls-glow {
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: lsBreathe 6s ease-in-out infinite alternate !important;
}

/* 光晕1：右上角大范围深蓝 */
.lightning-service-section .ls-glow-1 {
    width: 700px !important;
    height: 700px !important;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.35) 0%, rgba(11, 42, 74, 0.2) 40%, transparent 70%) !important;
    top: -250px !important;
    right: -200px !important;
    filter: blur(90px) !important;
    animation-delay: 0s !important;
}

/* 光晕2：左下角亮蓝 */
.lightning-service-section .ls-glow-2 {
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.3) 0%, rgba(100, 180, 255, 0.15) 50%, transparent 70%) !important;
    bottom: -150px !important;
    left: -150px !important;
    filter: blur(80px) !important;
    animation-delay: 1.5s !important;
    animation-name: lsBreathe2 !important;
}

/* 光晕3：中间偏下暖金色（保留一点点暖色点缀，但降低饱和度） */
.lightning-service-section .ls-glow-3 {
    width: 300px !important;
    height: 300px !important;
    background: radial-gradient(circle, rgba(245, 229, 107, 0.12) 0%, rgba(100, 180, 255, 0.05) 50%, transparent 70%) !important;
    bottom: 10% !important;
    right: 10% !important;
    filter: blur(60px) !important;
    animation-delay: 3s !important;
    animation-name: lsBreathe3 !important;
}

/* 光晕4：顶部冷白 */
.lightning-service-section .ls-glow-4 {
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(155, 209, 255, 0.35) 0%, rgba(43, 127, 193, 0.15) 50%, transparent 70%) !important;
    top: -100px !important;
    left: -100px !important;
    filter: blur(70px) !important;
    animation-delay: 0.8s !important;
}

/* ============================================================
   光束（扫光效果）- 改为蓝色调
   ============================================================ */
.lightning-service-section .ls-beam {
    position: absolute !important;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(6px) !important;
    opacity: 0.3 !important;
}

.lightning-service-section .ls-beam-1 {
    width: 200% !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, rgba(43, 127, 193, 0.4), transparent) !important;
    top: 25% !important;
    left: -50% !important;
    transform: rotate(25deg) !important;
    animation: lsBeamMove 8s linear infinite !important;
}

.lightning-service-section .ls-beam-2 {
    width: 180% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(155, 209, 255, 0.35), transparent) !important;
    bottom: 30% !important;
    right: -40% !important;
    transform: rotate(-20deg) !important;
    animation: lsBeamMove2 10s linear infinite !important;
}

/* ============================================================
   内容层（在光效之上）- 全部改为蓝色调
   ============================================================ */
.lightning-service-section .ls-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 500px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 标签 */
.lightning-service-section .ls-badge {
    display: inline-block !important;
    background: rgba(43, 127, 193, 0.12) !important;
    color: #2b7fc1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    letter-spacing: 1px !important;
    margin-bottom: 24px !important;
    border: 1px solid rgba(43, 127, 193, 0.15) !important;
    backdrop-filter: blur(4px) !important;
}

/* 标题 */
.lightning-service-section .ls-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #0b2a4a !important; /* 改为深蓝，与 Hero 一致 */
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

.lightning-service-section .ls-title span {
    background: linear-gradient(135deg, #0b2a4a, #2b7fc1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 副标题 */
.lightning-service-section .ls-subhead {
    font-size: 18px !important;
    color: #3a5a7a !important;
    font-weight: 400 !important;
    margin-bottom: 40px !important;
    border-left: 4px solid #2b7fc1 !important;
    padding-left: 18px !important;
    background: linear-gradient(90deg, rgba(43, 127, 193, 0.08), transparent) !important;
}

/* 服务列表 */
.lightning-service-section .ls-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

/* 服务卡片 */
.lightning-service-section .ls-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(43, 127, 193, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.lightning-service-section .ls-item:hover {
    transform: translateX(6px) !important;
    box-shadow: 0 12px 40px rgba(43, 127, 193, 0.18) !important;
}

/* 图标 */
.lightning-service-section .ls-icon {
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, rgba(43, 127, 193, 0.12), rgba(155, 209, 255, 0.08)) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border: 1px solid rgba(43, 127, 193, 0.1) !important;
}

/* 卡片标题 */
.lightning-service-section .ls-text h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0b2a4a !important;
    margin-bottom: 4px !important;
}

/* 卡片描述 */
.lightning-service-section .ls-text p {
    font-size: 14px !important;
    color: #4a6a8a !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ============================================================
   动画 Keyframes（保持不变）
   ============================================================ */
@keyframes lsBreathe {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.3) translate(20px, -20px); opacity: 1; }
}

@keyframes lsBreathe2 {
    0% { transform: scale(0.8) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.4) translate(-30px, 20px); opacity: 1; }
}

@keyframes lsBreathe3 {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.5) translate(10px, 30px); opacity: 0.9; }
}

@keyframes lsBeamMove {
    0% { transform: rotate(25deg) translateX(-100px); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: rotate(25deg) translateX(100px); opacity: 0.2; }
}

@keyframes lsBeamMove2 {
    0% { transform: rotate(-20deg) translateX(100px); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: rotate(-20deg) translateX(-100px); opacity: 0.2; }
}

/* ============================================================
   响应式：小屏堆叠
   ============================================================ */
@media (max-width: 768px) {
    .lightning-service-section {
        height: auto !important;
        overflow: auto !important;
    }

    .lightning-service-section .ls-container {
        flex-direction: column !important;
        height: auto !important;
    }

    .lightning-service-section .ls-left {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 60vh !important;
        padding: 40px 24px !important;
    }

    .lightning-service-section .ls-right {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 40vh !important;
    }

    .lightning-service-section .ls-title {
        font-size: 30px !important;
    }

    .lightning-service-section .ls-glow-1 {
        width: 400px !important;
        height: 400px !important;
        top: -150px !important;
        right: -100px !important;
    }

    .lightning-service-section .ls-glow-2 {
        width: 300px !important;
        height: 300px !important;
    }
}