@charset "utf-8";
/* ==========================================================================
   Mobile Optimization CSS
   1. Color unification with PC site (primary blue #1F4A8B)
   2. Smooth transitions and animations
   3. Touch-friendly interactions
   ========================================================================== */

/* ==========================================================================
   Part 1: Mobile Sidebar Navigation (css_nav override - applies all sizes
   but sidebar only shows on mobile)
   ========================================================================== */

/* Sidebar header: red -> brand blue */
.sidebar h6 {
    background-color: #1F4A8B !important;
    transition: background-color 0.3s ease;
}

/* Sidebar links: ensure readable color and smooth hover */
.sidebar li a {
    color: #333 !important;
    display: block;
    width: 100%;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.sidebar li a:hover,
.sidebar li a:active {
    color: #1F4A8B !important;
    padding-left: 6px;
}

.sidebar li {
    transition: background-color 0.25s ease;
}

.sidebar li:hover {
    background-color: #E8EEF5 !important;
}

/* Hamburger icon redesigned in Part 2 (@media) - modern glass button + X animation */


/* ==========================================================================
   Part 2: Mobile-only styles (@media max-width: 767px)
   Color unification + smooth effects
   ========================================================================== */
@media only screen and (max-width: 767px) {

    /* --- Smooth scrolling & touch optimizations --- */
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }

    body {
        -webkit-overflow-scrolling: touch;
        -webkit-tap-highlight-color: rgba(31, 74, 139, 0.15);
    }

    /* --- Top mobile nav bar: dark navy -> brand blue --- */
    #allbn_m {
        background: #1F4A8B !important;
        background: linear-gradient(135deg, #1F4A8B 0%, #2A5FA8 100%) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: background 0.4s ease, box-shadow 0.4s ease;
    }

    #allbn_m a {
        transition: color 0.25s ease, opacity 0.25s ease;
    }

    #allbn_m a:active {
        opacity: 0.7;
    }

    /* --- Section titles: red -> brand blue (match PC) --- */
    #kh_b .pro_biaoti span {
        color: #1F4A8B !important;
    }

    /* Section title underline gradient: unify with PC tri-color */
    #kh_b .pro_biaoti b {
        background: linear-gradient(to right,
            #B5D2E1 0%, #B5D2E1 33.3%,
            #1F4A8B 33.3%, #1F4A8B 66.6%,
            #BCC4B9 66.6%, #BCC4B9 100%) !important;
        border-radius: 2px;
    }

    /* --- Product category intro title: red -> blue --- */
    .wide_container_partone .left b {
        color: #1F4A8B !important;
        transition: color 0.3s ease;
    }

    .wide_container_partone .left strong {
        color: #1F4A8B !important;
    }

    /* --- About stats number color --- */
    .wide_container_partone .left .about_ts span {
        color: #1F4A8B !important;
    }

    /* --- Container three links: red -> blue --- */
    #wide_container_three a {
        color: #1F4A8B !important;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

    #wide_container_three a:hover {
        color: #054083 !important;
    }

    /* --- Index video company name: red -> blue --- */
    .index_video .right_video .right_bw b {
        color: #1F4A8B !important;
    }

    /* --- Product list item buttons --- */
    .flex_item span a {
        background-color: #1F4A8B !important;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .flex_item span a:hover {
        background-color: #054083 !important;
    }

    .flex_item span a:active {
        transform: scale(0.96);
    }

    /* --- Product card hover smoothness --- */
    .flex_item {
        transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease !important;
    }

    .flex_item:hover {
        border: 1px solid #1F4A8B !important;
        box-shadow: 0 6px 16px rgba(31, 74, 139, 0.18) !important;
        transform: translateY(-2px);
    }

    .flex_item:active {
        transform: translateY(0) scale(0.98);
    }

    /* --- Product detail page --- */
    #hc_contact {
        background: #1F4A8B !important;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    #hc_contact:hover {
        background: #054083 !important;
    }

    #hc_contact:active {
        transform: scale(0.95);
    }

    .hc_jieshao_biaoti {
        background: #1F4A8B !important;
    }

    /* --- News list title links: red -> blue --- */
    .news_img .title_right .list a {
        color: #1F4A8B !important;
        transition: color 0.25s ease;
    }

    .news_img .title_right .list a:hover {
        color: #054083 !important;
    }

    /* --- News title and con_line: red -> blue --- */
    .news_title {
        color: #1F4A8B !important;
    }

    .con_line {
        color: #1F4A8B !important;
    }

    /* --- Agent right section --- */
    #agent .agent_right b {
        color: #1F4A8B !important;
    }

    /* --- Index job border and accent --- */
    .index_job {
        border: solid 1px #1F4A8B !important;
    }

    /* --- Five product items smoothness --- */
    ul#five_pro li {
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    ul#five_pro li:active {
        transform: scale(0.95);
        opacity: 0.8;
    }

    /* --- Advantage box items --- */
    ul#adv_box li {
        transition: all 0.4s ease !important;
    }

    .adv_box_righttxt span b {
        color: #1F4A8B !important;
    }

    .adv_box_righttxt a:hover {
        color: #1F4A8B !important;
    }

    /* --- Mobile footer: match PC footer color --- */
    #foot_m {
        background: #F2F2F2 !important;
        border-top: 3px solid #1F4A8B;
    }

    ul#footnav_m li h2 {
        color: #1F4A8B !important;
        font-weight: bold !important;
        transition: color 0.25s ease;
    }

    ul#footnav_m li a {
        color: #666 !important;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

    ul#footnav_m li a:hover {
        color: #1F4A8B !important;
        padding-left: 4px;
    }

    /* --- Mobile copyright bar --- */
    .copy_m {
        background-color: #E3E3E3 !important;
        color: #555 !important;
        border-top: 1px solid #d0d0d0;
    }

    /* --- Bottom fixed menu bar: dark navy -> brand blue --- */
    .bottomqq {
        background: #1F4A8B !important;
        background: linear-gradient(135deg, #1F4A8B 0%, #2A5FA8 100%) !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    }

    .bottom1 {
        background-color: transparent !important;
    }

    .bottom1 a {
        transition: background-color 0.25s ease, transform 0.15s ease;
    }

    .bottom1 a:active {
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: scale(0.95);
    }

    .bottom1 a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }

    .bottom1 a img {
        transition: transform 0.2s ease;
    }

    .bottom1 a:active img {
        transform: scale(0.9);
    }

    /* --- Mobile logo area smoothness --- */
    .add {
        transition: opacity 0.3s ease;
    }

    .add img {
        transition: transform 0.3s ease;
    }

    .add:active img {
        transform: scale(0.98);
    }

    /* --- Sub-page banner: smoother appearance --- */
    #ban_sub {
        animation: fadeInUp 0.6s ease;
    }

    #ban_sub .banner_sub {
        transition: color 0.3s ease;
    }

    /* --- Sub-page breadcrumb bar --- */
    #sub_biaoti {
        background: linear-gradient(to right,
            #1F4A8B 0%, #1F4A8B 50%,
            #CCEAFC 50%, #CCEAFC 100%) !important;
    }

    .news_sub_bt {
        background: url(../img/sub_bt.png) left 0 no-repeat #CCEAFC !important;
    }

    /* --- Mobile category list (mobile_cplist) --- */
    .mobile_cplist {
        transition: max-height 0.4s ease;
    }

    #brand_list .content_menu ul li a {
        transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
    }

    #brand_list .content_menu ul li a:hover,
    #brand_list .content_menu ul li a:active {
        color: #1F4A8B !important;
        padding-left: 6px;
    }

    /* --- Left nav active item (sub pages) --- */
    ul#left_nav_pro li.active a,
    ul#left_nav_pro li a:hover {
        color: #1F4A8B !important;
    }

    ul#left_nav_pro li {
        transition: background-color 0.25s ease;
    }

    ul#left_nav_pro li:hover {
        background-color: #E8EEF5;
    }

    /* --- Product detail list items --- */
    #detail li {
        transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    }

    #detail li:hover {
        transform: translateY(-3px);
    }

    #detail li img {
        transition: border-color 0.3s ease !important;
    }

    #detail li:hover img {
        border: 1px solid #1F4A8B !important;
    }

    #detail li span a {
        transition: color 0.25s ease;
    }

    #detail li span a:hover {
        color: #1F4A8B !important;
    }

    /* --- Product detail (hc_pro) layout smoothness --- */
    .hc_pro {
        transition: box-shadow 0.3s ease;
    }

    /* --- Service list items --- */
    ul#service li.it a {
        background-color: #1F4A8B !important;
        transition: background-color 0.3s ease;
    }

    ul#service li.it a:hover {
        background-color: #054083 !important;
    }

    ul#service li a {
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* --- News identical list --- */
    ul#news_identical li {
        transition: background-color 0.25s ease;
    }

    ul#news_identical li a {
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

    ul#news_identical li a:hover {
        color: #1F4A8B !important;
        padding-left: 4px;
    }

    /* --- News detail back button --- */
    .news .back a {
        background: #1F4A8B !important;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .news .back a:hover {
        background: #054083 !important;
    }

    .news .back a:active {
        transform: scale(0.95);
    }

    /* --- Index news images hover --- */
    .l_news, .top_news, .bottom_news {
        overflow: hidden;
    }

    .l_news img, .top_news img, .bottom_news img {
        transition: transform 0.5s ease !important;
    }

    .l_news:hover img, .top_news:hover img, .bottom_news:hover img {
        transform: scale(1.05);
    }

    .l_news_biaot, .r_news_biaot {
        transition: background-color 0.3s ease !important;
    }

    /* --- Mobile banner (home-foc) smoother transitions --- */
    .changephoto {
        transition: opacity 0.5s ease !important;
    }

    .home-foc-nav a {
        transition: all 0.3s ease !important;
    }

    .home-foc-nav li {
        transition: transform 0.3s ease;
    }

    .home-foc-nav li:active {
        transform: scale(0.9);
    }

    /* --- AOS animation smoothness --- */
    [data-aos] {
        transition-property: transform, opacity !important;
        transition-duration: 0.8s !important;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    /* --- Toolbar (hamburger menu wrapper) --- */
    .toolbar {
        transition: background-color 0.3s ease;
    }

    /* ================================================================
       MODERN HAMBURGER BUTTON
       Glassmorphism circle + 3-line → X spring animation
       ================================================================ */

    /* Button container: frosted glass circle */
    .menu-button {
        position: relative !important;
        margin: 6px 14px 6px 6px !important;
        height: 44px !important;
        width: 44px !important;
        cursor: pointer;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.12) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        -webkit-tap-highlight-color: transparent;
        z-index: 10;
        float: right;
    }

    /* Three lines: middle = element background, top & bottom = box-shadow */
    .menu-button:before {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 20px !important;
        height: 2px !important;
        background: #fff !important;
        border: none !important;
        border-radius: 4px !important;
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff !important;
        transition: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    }

    /* Hidden diagonal line — becomes the second stroke of the X */
    .menu-button:after {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 22px !important;
        height: 2px !important;
        background: #fff !important;
        border-radius: 4px !important;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
        opacity: 0 !important;
        transition: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    }

    /* Tap feedback */
    .menu-button:active {
        transform: scale(0.88) !important;
        background: rgba(255, 255, 255, 0.25) !important;
    }

    /* === Active state (sidebar open) → transform to X === */
    .menu-button.active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

    .menu-button.active:before {
        box-shadow: 0 0 0 transparent, 0 0 0 transparent !important;
        transform: translate(-50%, -50%) rotate(45deg) !important;
        width: 22px !important;
    }

    .menu-button.active:after {
        opacity: 1 !important;
    }

    .menu-button.active:active {
        transform: scale(0.88) !important;
    }

    /* Idle breathing glow — draws attention when sidebar is closed */
    .menu-button:not(.active) {
        animation: navPulse 2.5s ease-in-out infinite;
    }

    /* Ripple element (created by JS on each tap) */
    .nav-ripple {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%);
        animation: navRipple 0.6s ease-out forwards;
        pointer-events: none;
    }

    /* ================================================================
       SIDEBAR PANEL ENHANCEMENTS
       ================================================================ */

    .sidebar {
        background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F8 100%) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .sidebar h6 {
        background: linear-gradient(135deg, #1F4A8B 0%, #2A5FA8 100%) !important;
        color: #fff !important;
        font-size: 14px !important;
        letter-spacing: 1px;
        box-shadow: 0 2px 8px rgba(31, 74, 139, 0.2);
    }

    .sidebar li {
        border-bottom: 1px solid rgba(31, 74, 139, 0.08) !important;
        position: relative;
        overflow: hidden;
    }

    .sidebar li a {
        color: #444 !important;
        font-size: 15px;
        position: relative;
        padding-left: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Blue accent bar on hover */
    .sidebar li a:before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 16px;
        background: #1F4A8B;
        border-radius: 0 3px 3px 0;
        transition: width 0.3s ease;
    }

    .sidebar li:hover a:before,
    .sidebar li:active a:before {
        width: 4px;
    }

    .sidebar li:hover {
        background-color: rgba(31, 74, 139, 0.06) !important;
    }

    /* Staggered slide-in animation for menu items (triggered by .nav-open) */
    .sidebar.nav-open li {
        opacity: 0;
        animation: navItemSlide 0.4s ease forwards;
    }
    .sidebar.nav-open li:nth-child(1) { animation-delay: 0.15s; }
    .sidebar.nav-open li:nth-child(2) { animation-delay: 0.20s; }
    .sidebar.nav-open li:nth-child(3) { animation-delay: 0.25s; }
    .sidebar.nav-open li:nth-child(4) { animation-delay: 0.30s; }
    .sidebar.nav-open li:nth-child(5) { animation-delay: 0.35s; }
    .sidebar.nav-open li:nth-child(6) { animation-delay: 0.40s; }
    .sidebar.nav-open li:nth-child(7) { animation-delay: 0.45s; }

    /* Overlay mask — frosted blur instead of plain black */
    [data-ssbplugin="mask"] {
        background: rgba(31, 74, 139, 0.25) !important;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    /* --- Smooth image loading --- */
    img {
        transition: opacity 0.3s ease;
    }

    /* --- Mobile scrollbar styling (Webkit) --- */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(31, 74, 139, 0.3);
        border-radius: 2px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(31, 74, 139, 0.5);
    }

    /* --- Biaoti_m (mobile news title) --- */
    .biaoti_m h3 {
        color: #1F4A8B !important;
    }

    /* --- Page pagination --- */
    .news_img .page .center a:hover {
        color: #1F4A8B !important;
    }

    .news_img .page {
        background-color: #E8EEF5 !important;
        transition: background-color 0.3s ease;
    }

    /* --- Contact form inputs smoothness --- */
    .dotinput:focus {
        border-bottom: 2px solid #1F4A8B !important;
        transition: border-color 0.3s ease;
    }

    .seacher_ly:focus {
        border: 1px solid #1F4A8B !important;
    }

} /* end @media */

/* ==========================================================================
   Part 3: Keyframe animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* GPU acceleration for smoother animations on mobile */
@media only screen and (max-width: 767px) {
    .flex_item,
    ul#five_pro li,
    ul#adv_box li,
    #detail li,
    .bottom1 a,
    .home-foc-nav a,
    .changephoto,
    .menu-button,
    .menu-button:before,
    .menu-button:after,
    .sidebar li {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

/* ==========================================================================
   Part 4: Modern navigation keyframe animations
   ========================================================================== */

/* Hamburger idle breathing glow */
@keyframes navPulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12),
                    0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12),
                    0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Tap ripple expansion */
@keyframes navRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Sidebar menu items staggered slide-in */
@keyframes navItemSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
