/* ============================================
   新开元电销系统 - 首页专项优化 V3
   针对 xingchuwang.com.cn/index.html
   布局优化 + 配色升级 + 间距规范
   ============================================ */

/* ---------- 0. 顶部导航栏优化 ---------- */
body .header-top {
    padding-left: 24px !important;
    padding-right: 24px !important;
}
@media (min-width: 1200px) {
    body .header-top > header,
    body .header-top nav.navbar {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body .header-top {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    body .header-top > header,
    body .header-top nav.navbar {
        max-width: 960px !important;
        margin: 0 auto !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    body .header-top {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ---------- 0.1 全局容器与间距规范 ---------- */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
        width: 1200px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px !important;
        width: 960px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px !important;
        width: 720px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* 区块统一间距 */
.Welcome.py-5,
.features.py-5,
.team.py-5 {
    padding: 80px 0 !important;
}

.Welcome .container.py-sm-5,
.features .container.py-sm-5,
.team .container.py-md-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.bottom-last .bottom-bg.py-5 {
    padding: 80px 0 !important;
}
.bottom-last .container.py-md-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------- 1. 首屏轮播优化 ---------- */
.slide-window {
    position: relative;
    overflow: hidden;
}

.slide, .slide2, .slide3 {
    background-size: cover !important;
    background-position: center !important;
}

.slide-caption {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 992px) {
    body .slide-caption h1,
    body .slide-caption h2 {
        font-size: 48px !important;
        letter-spacing: 4px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #ffffff !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
    }
    body .slide-caption h1 span,
    body .slide-caption h2 span {
        background: linear-gradient(135deg, #60A5FA, #C4B5FD, #67E8F9) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-shadow: none !important;
    }
    body .slide-caption p {
        font-size: 16px !important;
        line-height: 2 !important;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
}

/* 移动端轮播文字也确保为白色 */
@media (max-width: 991px) {
    body .slide-caption h1,
    body .slide-caption h2 {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    }
    body .slide-caption p {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5) !important;
    }
}

/* 首屏渐变遮罩增强 */
.slide-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 64, 175, 0.4) 50%, rgba(139, 92, 246, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}
.slide-window .slide-wrapper {
    position: relative;
    z-index: 0;
}
.slide-caption {
    position: relative;
    z-index: 2;
}

/* 按钮优化 */
.slide-caption .read a {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6) !important;
    border: none !important;
    padding: 14px 50px 14px 28px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 30px !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 1px;
}
.slide-caption .read a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5) !important;
}
.slide-caption .read .btn {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-size: 14px !important;
    right: 6px !important;
}

/* ---------- 2. Welcome区（关于介绍） ---------- */
.Welcome {
    background: #fff;
}

.welcome-grids h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
    position: relative;
    padding-bottom: 16px;
}
.welcome-grids h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6);
    border-radius: 2px;
}

.welcome-grids p {
    font-size: 16px !important;
    line-height: 2 !important;
    color: #475569 !important;
    margin-bottom: 24px !important;
}

.welcome-image {
    text-align: center;
}
.welcome-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
    height: auto;
}
.welcome-image:hover img {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.15);
}

.Welcome .read a {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6) !important;
    border: none !important;
    padding: 12px 50px 12px 26px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 30px !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}
.Welcome .read a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45) !important;
}
.Welcome .read .btn {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ---------- 3. Welcome-bottom（数据统计区） ---------- */
.Welcome-bottom {
    position: relative;
    overflow: hidden;
}
.bs-slider-overlay {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 40%, #6D28D9 75%, #0891B2 100%) !important;
    position: relative;
}
.bs-slider-overlay::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.bs-slider-overlay::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.Welcome-bottom .container {
    position: relative;
    z-index: 1;
}

/* 左侧计数器卡片 */
.welcome_left.Features-bottom {
    padding: 40px !important;
}
.layer.welcome_left_inner {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px !important;
}

.agileits_w3layouts_about_counter_left {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px !important;
}
.agileits_w3layouts_about_counter_left:last-child {
    margin-bottom: 0 !important;
}

.countericon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    float: none !important;
    text-align: center;
}
.countericon span {
    font-size: 28px;
    color: #67E8F9;
}
.countericon h3 {
    display: none;
}

.counterinfo {
    float: none !important;
    width: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
    flex: 1;
}
.counterinfo p {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #ffffff, #cffafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

/* 计数器下方补充标签 */
.agileits_w3layouts_about_counter_left::after {
    display: none;
}

/* 右侧文字 */
.welcome_bottom_right {
    padding: 40px 40px 40px 20px !important;
}
.welcome_bottom_right h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}
.welcome_bottom_right p {
    font-size: 15px !important;
    line-height: 2 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 16px !important;
}

/* ---------- 4. 特色功能区 ---------- */
.features {
    background: #F8FAFC;
    position: relative;
}

.features h3.heading {
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #0F172A !important;
}
.features h3.heading span {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.features .heading.pb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6, #06B6D4);
    border-radius: 2px;
}

.features .para {
    font-size: 16px !important;
    color: #64748B !important;
    margin-top: 16px !important;
}

/* 功能卡片 */
.feature-grids .col-lg-4 {
    margin-bottom: 30px;
}

.feature-grids .f1 {
    background: #fff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 36px 28px !important;
    text-align: left !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.feature-grids .f1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6, #06B6D4);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}
.feature-grids .f1:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(30, 64, 175, 0.12) !important;
    border-color: #8B5CF6 !important;
}
.feature-grids .f1:hover::before {
    transform: scaleX(1);
}

.feature-grids .f1 h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    transition: color 0.3s ease;
}
.feature-grids .f1:hover h3 {
    color: #1E40AF !important;
}

.feature-grids .f1 p {
    font-size: 14px !important;
    line-height: 1.9 !important;
    color: #64748B !important;
    margin: 0 !important;
}

/* 卡片图标（用CSS生成装饰） */
.feature-grids .f1::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
    border-radius: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.feature-grids .f1:hover::after {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    opacity: 0.15;
    transform: scale(1.1);
}

/* ---------- 5. 成功案例区 ---------- */
.bottom-last .bottom-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #6D28D9 100%) !important;
    position: relative;
    overflow: hidden;
}
.bottom-last .bottom-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.bottom-last .container {
    position: relative;
    z-index: 1;
}

.bottom-last h3.heading {
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
}
.bottom-last h3.heading span {
    background: linear-gradient(135deg, #60A5FA, #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bottom-last .heading.pb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #60A5FA, #C4B5FD);
    border-radius: 2px;
}
.bottom-last .para {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 16px !important;
    margin-top: 16px !important;
}

.bottom-last h4.title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}
.bottom-last p {
    font-size: 15px !important;
    line-height: 2 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 16px !important;
}

/* 案例图片优化 */
.bottom-last img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}
.bottom-last img:hover {
    transform: scale(1.03);
}

/* ---------- 6. 行业新闻区 ---------- */
.team {
    background: #fff;
}

.team h3.heading {
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #0F172A !important;
}
.team h3.heading span {
    background: linear-gradient(135deg, #1E40AF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.team .heading.pb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #8B5CF6, #06B6D4);
    border-radius: 2px;
}

/* ---------- 7. 区块标题统一 ---------- */
h3.heading {
    position: relative;
    display: inline-block;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
}
.heading.text-center {
    display: block;
    text-align: center;
}
.heading.pb-4 {
    padding-bottom: 16px !important;
    margin-bottom: 30px !important;
}

/* ---------- 8. 大尺寸响应式补充 ---------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px !important;
        width: 1280px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .Welcome.py-5,
    .features.py-5,
    .team.py-5,
    .bottom-last .bottom-bg.py-5 {
        padding: 100px 0 !important;
    }
    
    .slide-caption h1,
    .slide-caption h2 {
        font-size: 52px !important;
    }
    
    .welcome-grids h3 {
        font-size: 36px !important;
    }
    
    .features h3.heading,
    .bottom-last h3.heading,
    .team h3.heading {
        font-size: 40px !important;
    }
    
    .feature-grids .f1 {
        padding: 40px 32px !important;
    }
}

/* 平板端优化 */
@media (max-width: 991px) {
    .Welcome.py-5,
    .features.py-5,
    .team.py-5,
    .bottom-last .bottom-bg.py-5 {
        padding: 60px 0 !important;
    }
    
    .welcome-grids h3 {
        font-size: 26px !important;
    }
    
    .features h3.heading,
    .bottom-last h3.heading,
    .team h3.heading {
        font-size: 28px !important;
    }
    
    .welcome_left.Features-bottom {
        padding: 24px !important;
    }
    .layer.welcome_left_inner {
        padding: 28px !important;
    }
    .welcome_bottom_right {
        padding: 24px !important;
    }
    
    .counterinfo p {
        font-size: 30px !important;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .Welcome.py-5,
    .features.py-5,
    .team.py-5,
    .bottom-last .bottom-bg.py-5 {
        padding: 40px 0 !important;
    }
    
    .welcome-grids h3 {
        font-size: 22px !important;
    }
    
    .features h3.heading,
    .bottom-last h3.heading,
    .team h3.heading {
        font-size: 24px !important;
    }
    
    .feature-grids .f1 {
        padding: 28px 22px !important;
    }
    
    .counterinfo p {
        font-size: 28px !important;
    }
    
    .countericon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .countericon span {
        font-size: 22px;
    }
    
    .welcome_left.Features-bottom,
    .welcome_bottom_right {
        padding: 20px !important;
    }
    .layer.welcome_left_inner {
        padding: 24px 20px !important;
    }
}
