@charset "utf-8";

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif; 
    font-size: 14px; 
    color: #ccc; /* Light text for dark bg */
    line-height: 1.6; 
    background: #111; /* Dark background */
}
a { text-decoration: none; color: #ccc; transition: 0.3s; }
a:hover { color: #4192E7; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }
.clearfix::after { content: ""; display: block; clear: both; }
.float-left { float: left; }
.float-right { float: right; }
.container { width: 1200px; margin: 0 auto; }
.text-red { color: #4192E7; }
.bg-gray { background-color: #1a1a1a; /* Slightly lighter dark for contrast */ }

/* Top Bar */
.top-bar { background: #000; color: #999; height: 40px; line-height: 40px; font-size: 12px; border-bottom: 1px solid #222; }
.top-bar i { margin-right: 5px; color: #4192E7; }

/* Header */
.header { 
    height: 100px; 
    background: #111; /* Dark header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    position: relative; 
    z-index: 999; 
    border-bottom: 1px solid #222;
}
.header .logo { padding-top: 20px; }
.logo-box { display: flex; align-items: center; gap: 10px; }
.logo-box .icon { font-size: 40px; color: #4192E7; }
.logo-box .text h1 { font-size: 24px; color: #fff; line-height: 1; font-weight: bold; margin-top: 5px; display: block; }
.logo-box .text p { font-size: 12px; color: #666; letter-spacing: 1px; margin-top: 2px; }

.nav { padding-top: 35px; }
.nav li { float: left; margin-left: 30px; }
.nav li a { font-size: 16px; font-weight: bold; display: block; padding-bottom: 10px; position: relative; color: #eee; }
.nav li a.active, .nav li a:hover { color: #4192E7; }
.nav li a.active::after, .nav li a:hover::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #4192E7; }

.mobile-menu-btn { display: none; float: right; margin-top: 30px; font-size: 24px; cursor: pointer; color: #fff; }
.mobile-nav { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 70%; 
    height: 100%; 
    background: #1a1a1a; 
    z-index: 1000; 
    transition: 0.3s; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.5); 
    padding-top: 50px; 
}
.mobile-nav.active { right: 0; }
.mobile-nav ul li { border-bottom: 1px solid #333; }
.mobile-nav ul li a { display: block; padding: 15px 20px; font-size: 16px; color: #ddd; }
.mobile-nav .close-btn { position: absolute; top: 10px; right: 20px; font-size: 24px; cursor: pointer; color: #fff; }

/* Banner */
.banner { height: 500px; overflow: hidden; position: relative; }
.swiper-wrapper { height: 100%; display: flex; }
.swiper-slide { height: 100%; width: 100%; background-position: center; background-size: cover; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; flex-shrink: 0; }
.swiper-slide::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.banner-text { position: relative; z-index: 2; color: #fff; padding: 0 20px; }
.banner-text h2 { font-size: 48px; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.banner-text p { font-size: 24px; margin-bottom: 40px; color: #ddd; }
.btn-red { display: inline-block; padding: 12px 40px; background: #4192E7; color: #fff; border-radius: 4px; font-size: 16px; transition: 0.3s; }
.btn-red:hover { background: #a00; color: #fff; }

/* Section Box */
.section-box { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: #fff; font-weight: bold; margin-bottom: 10px; }
.section-title p { font-size: 14px; color: #666; letter-spacing: 2px; margin-bottom: 15px; }
.section-title .line { display: block; width: 50px; height: 3px; background: #4192E7; margin: 0 auto; }

/* Services */
.services-list { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.service-item { width: 25%; padding: 0 15px; margin-bottom: 30px; }
.service-item .inner { 
    background: #1a1a1a; 
    border: 1px solid #333; 
    padding: 40px 20px; 
    text-align: center; 
    transition: 0.3s; 
    height: 100%; /* Equal height */
    min-height: 300px;
}
.service-item .inner:hover { 
    background: #222;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    transform: translateY(-5px); 
    border-color: #4192E7; 
}
.service-item .icon { font-size: 40px; color: #4192E7; margin-bottom: 20px; }
.service-item h3 { font-size: 22px; margin-bottom: 15px; font-weight: bold; color: #fff; }
.service-item p { font-size: 14px; color: #999; line-height: 1.8; }


@media (max-width: 768px) {
    .service-item {  margin-bottom: 30px; }
    .service-item .inner { 
        background: #1a1a1a; 
        border: 1px solid #333; 
        padding: 20px 10px; 
        text-align: center; 
        transition: 0.3s; 
        height: 100%; /* Equal height */
        min-height: auto;
    }
    .service-item .inner:hover { 
        background: #222;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
        transform: translateY(-5px); 
        border-color: #4192E7; 
    }
 
    .service-item .icon { font-size: 30px; color: #4192E7; margin-bottom: 0px;  }
    .service-item h3 { font-size: 22px; margin-bottom: 5px; font-weight: bold; color: #fff; }
    .service-item p { font-size: 14px; color: #999; line-height: 1.8; }
}

/* About */
.about-section { overflow: hidden; }
.about-img { width: 45%; position: relative; }
.about-img img { width: 100%; border-radius: 4px; opacity: 0.9; }
.about-img .video-icon { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin-left: -30px; margin-top: -30px; background: rgba(204,0,0,0.9); color: #fff; border-radius: 50%; text-align: center; line-height: 60px; font-size: 24px; cursor: pointer; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(204,0,0,0.4); } 70% { box-shadow: 0 0 0 20px rgba(204,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); } }

.about-info { width: 50%; padding-left: 20px; }
.small-title { color: #4192E7; font-weight: bold; letter-spacing: 1px; margin-bottom: 10px; }
.about-info h2 { font-size: 30px; margin-bottom: 20px; font-weight: bold; color: #fff; }
.about-info .desc { color: #999; margin-bottom: 30px; }
.about-info .desc p { margin-bottom: 1px; }
.feature-ul { margin-bottom: 30px; }
.feature-ul li { margin-bottom: 10px; color: #ccc; font-weight: bold; }
.feature-ul li i { color: #4192E7; margin-right: 10px; }
.btn-line { display: inline-block; padding: 10px 30px; border: 1px solid #4192E7; color: #4192E7; border-radius: 4px; transition: 0.3s; }
.btn-line:hover { background: #4192E7; color: #fff; }

.about-infom { width: 100%; padding-left: 0px; }
.about-infom h2 { font-size: 30px; margin-bottom: 20px; font-weight: bold; color: #fff; }


/* Team */
.team-list { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.team-item { width: 25%; padding: 0 15px; margin-bottom: 30px; }
.team-item .pic { position: relative; overflow: hidden; height: 180px;border-radius: 4px;  width: 100%; padding: 20px; background: #4192E7; color: #fff; transition: 0.3s; }
.team-item .pic .p{display: block; font-size: 14px;     height: 160px; overflow: hidden; margin-bottom: 10px; opacity: 0.7;}
.team-item:hover .mask { bottom: 0; }
.team-item h3 { font-size: 16px; height: 20px; line-height: 20px; overflow: hidden; margin-bottom: 10px; }
.team-item .mask .p { font-size: 13px; color: #eee; }
.team-item .name { text-align: center; background: #222; color: #fff; padding: 10px 0; margin-top: -4px; position: relative; z-index: 2; border: 1px solid #333; border-top: none; }

/* News & Case */
.news-case-section .container > div { width: 48%; }
.box-header { border-bottom: 2px solid #333; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.box-header h3 { font-size: 20px; font-weight: bold; border-bottom: 2px solid #4192E7; padding-bottom: 15px; margin-bottom: -17px; color: #fff; }
.box-header small { font-size: 12px; color: #666; font-weight: normal; margin-left: 5px; }
.box-header .more { font-size: 12px; color: #666; }
.box-header .more:hover { color: #4192E7; }

.case-img { position: relative; margin-bottom: 15px; overflow: hidden; border-radius: 4px; }
.case-img img { transition: 0.5s; opacity: 0.9; }
.case-img:hover img { transform: scale(1.05); opacity: 1; }
.case-title { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); color: #fff; padding: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-ul li { line-height: 30px; }
.case-ul li a { color: #999; }
.case-ul li a:hover { color: #4192E7; }

.news-row { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.news-row .date { float: left; width: 90px; background: #222; text-align: center; padding: 10px 0; color: #999; border-radius: 4px; }
.news-row .date .d { display: block; font-size: 24px; font-weight: bold; color: #4192E7; line-height: 1; margin-bottom: 5px; }
.news-row .date .ym { font-size: 12px; }
.news-row .info { margin-left: 110px; }
.news-row .info h4 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; }
.news-row .info h4 a { color: #eee; }
.news-row .info h4 a:hover { color: #4192E7; }
.news-row .info p { font-size: 13px; color: #777; line-height: 1.6; height: 42px; overflow: hidden; }
.news-ul li { line-height: 36px; clear: both; border-bottom: 1px dashed #333; }
.news-ul li a { float: left; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #999; }
.news-ul li a:hover { color: #4192E7; }
.news-ul li .time { float: right; color: #666; font-size: 12px; }

/* Footer */
.footer { background: #000; color: #666; padding-top: 60px; border-top: 1px solid #222; }
.footer-main { padding-bottom: 40px; border-bottom: 1px solid #222; }
.footer h3 { font-size: 18px; color: #fff; margin-bottom: 25px; position: relative; padding-left: 15px; text-align: left; }
.footer h3::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 16px; background: #4192E7; }

.f-contact { width: 40%; }
.f-contact li { margin-bottom: 15px; }
.f-contact i { width: 20px; color: #4192E7; margin-right: 5px; }

.f-nav { width: 30%; padding-left: 50px; }
.f-nav li { margin-bottom: 12px; }
.f-nav a:hover { color: #fff; padding-left: 5px; }

.f-qr { width: 13%; text-align: center; }
.f-qr img { display: inline-block; width: 120px; height: 120px; margin-bottom: 10px; opacity: 0.8; }

.copyright { padding: 20px 0; text-align: center; font-size: 12px; color: #444; }

/* Mobile Footer Bar */
.mobile-footer-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
}

.bar-item {
    flex: 1;
    text-align: center;
    color: #ccc;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-right: 1px solid #222;
    cursor: pointer;
}
.bar-item:last-child { border-right: none; }
.bar-item i { font-size: 20px; margin-bottom: 4px; color: #4192E7; }
.bar-item:active { background: #222; color: #fff; }

.news-list{max-width: 100%;}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .container { width: 100%; padding: 0 20px; }
    .header .nav { display: none; } /* Hide desktop nav */
    .mobile-menu-btn { display: block;  margin-top: 15px;}
    
    /* Two columns for tablets */
    .service-item, .team-item { width: 50%; }
    
    /* Full width for about and news sections */
    .about-img, .about-info { width: 100%; float: none; padding-left: 0; }
    .about-img { margin-bottom: 30px; }
    .news-case-section .container > div { width: 100%; float: none; margin-bottom: 40px; }
    
    /* Footer columns stack */
    .footer-main > div { width: 100%; float: none; margin-bottom: 30px; padding-left: 0; }
    .f-qr { text-align: left; }
    .f-qr img { margin: 0; }
}

@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top bar on mobile */
    .header { height: 70px; }
    .header .logo { padding-top: 10px; }
    .logo-box .icon { font-size: 30px; }
    .logo-box .text h1 { font-size: 20px; }
    
    .banner { height: 350px; }
    .swiper-wrapper { height: 100%; }
    .banner-text h2 { font-size: 24px; }
    .banner-text p { font-size: 16px; }
    
    .section-box { padding: 20px 0; }
    .section-title{margin-bottom: 20px;}
    .section-title h2 { font-size: 26px;  margin-bottom: 0;}
    
    .about-info h2 { font-size: 24px; }
    
    /* Single column for services and team on mobile */
    .service-item, .team-item { width: 100%; }
    .team-item .pic { height: auto; min-height: 300px; }
    
    .news-row .date { width: 50px; }
    .news-row .date .d { font-size: 18px; }
    .news-row .info { margin-left: 65px; }
    
    .footer { padding-top: 40px; }

    /* Mobile Footer Bar Specifics */
    .mobile-footer-bar { display: flex; }
    body { padding-bottom: 60px; }


    .f-nav{display: none;}
    .f-qr{display: none;}
    .footer-main{padding-bottom: 0;}

    .small-title{margin-bottom: 0;}
    .about-infom h2 { font-size: 22px; margin-bottom: 10px; font-weight: bold; color: #fff; }

    .news-list{max-width: 100%;}
}