/* ========================================
   响应式H5移动端样式
   基于seavo.com移动端适配
   ======================================== */

/* 移动端基础设置 */
@media screen and (max-width: 768px) {
    html {
        font-size: 62.5%;
    }

    body {
        padding: 0;
        margin: 0;
        font-size: 1.6em;
        font-family: Microsoft YaHei, arial, '宋体';
        color: #585858;
        -webkit-text-size-adjust: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-user-select: none;
        user-select: none;
        min-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    .Contain {
        width: 100% !important;
        margin: 0 auto;
        position: relative;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* ========== 顶部导航 ========== */
    .top {
        height: auto !important;
        min-height: 60px;
        position: fixed;
        z-index: 900;
        top: 0;
        left: 0;
        width: 100%;
    }

    .top .Contain {
        width: 100% !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
    }

    .top .logo {
        margin: 0 0 0 15px !important;
        float: none;
        flex-shrink: 0;
    }

    .top .logo img {
        height: 36px !important;
        width: auto;
        vertical-align: middle !important;
        position: static !important;
        transform: none !important;
    }

    /* 隐藏PC端导航元素 */
    .top .right {
        display: none !important;
    }

    .top .nav {
        display: none !important;
    }

    .top .djc {
        display: none !important;
    }

    /* 汉堡菜单按钮 */
    .Phone_button {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        cursor: pointer;
        float: none;
        position: relative;
        z-index: 999;
        width: 50px;
        padding: 0;
        flex-shrink: 0;
        margin-right: 5px;
    }

    .Phone_button span {
        display: block;
        height: 3px;
        width: 26px;
        background: #fff;
        position: relative;
        top: 0;
        transition: all .3s;
    }

    .Phone_button span:before {
        position: absolute;
        left: 0;
        height: 3px;
        top: -8px;
        width: 100%;
        background: #fff;
        content: '';
        transition: all .3s;
    }

    .Phone_button span:after {
        position: absolute;
        left: 0;
        height: 3px;
        bottom: -8px;
        width: 100%;
        background: #fff;
        content: '';
        transition: all .3s;
    }

    .Phone_button.on span {
        background: none;
    }

    .Phone_button.on span:before {
        top: 0;
        transform: rotate(45deg);
    }

    .Phone_button.on span:after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* 隐藏PC端下拉菜单 */
    .subHei {
        display: none !important;
    }

    /* ========== Banner区域 ========== */
    .HomeBan {
        margin-top: 60px;
    }

    .HomeBan a {
        height: auto !important;
    }

    .ban_list_video {
        width: 100%;
        height: auto !important;
        position: relative;
        overflow: hidden;
    }

    .ban_list_video video,
    .ban_list_video img {
        width: 100%;
        height: auto;
        margin: 0;
        display: block;
    }

    .ban_list_video .videomask {
        background: rgba(0,0,0,.35);
    }

    .ban_list_video .videoTxt {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        margin-top: 0 !important;
        padding: 0 20px;
        box-sizing: border-box;
        z-index: 2;
    }

    .ban_list_video .videoTxt h3 {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .ban_list_video .videoTxt .txt {
        font-size: 13px;
        line-height: 1.6;
        display: none;
    }

    .HomeBan a.videoBtn {
        width: 120px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        margin: 15px auto 0;
        background-position: 90px center;
        border-width: 1px;
    }

    /* ========== 四小块区域 ========== */
    .floor1 ul {
        display: flex;
        flex-wrap: wrap;
    }

    .floor1 li {
        width: 50%;
        height: 200px;
    }

    .floor1 li img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .floor1 li a {
        width: 90%;
        font-size: 28px;
        margin-left: -45%;
    }

    /* ========== 产品区域 ========== */
    .floor2 {
        padding: 0 40px;
    }

    .floor2 .tit {
        width: 100%;
        font-size: 36px;
        margin: 50px auto 30px;
        text-align: center;
    }

    .floor2 .tit p {
        font-size: 18px;
        line-height: 1.6;
        padding-top: 15px;
    }

    .floor2 .HproList ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .floor2 li {
        width: 48%;
        margin: 0 0 20px !important;
    }

    .floor2 li:first-child {
        margin-left: 0 !important;
    }

    .floor2 li .img {
        width: 100%;
        height: auto;
    }

    .floor2 li .img img {
        width: 100%;
        height: auto;
    }

    .floor2 li h4 {
        font-size: 18px;
    }

    .floor2 .more {
        margin: 20px auto;
    }

    /* ========== 方案区域 ========== */
    .floor3 {
        padding: 0 40px;
    }

    .floor3 .tit {
        width: 100%;
        font-size: 36px;
        margin: 50px auto 30px;
        text-align: center;
    }

    .floor3 .tit p {
        font-size: 18px;
        line-height: 1.6;
    }

    .floor3 li {
        width: 100%;
        margin: 0 0 30px !important;
    }

    .floor3 li .img {
        width: 100%;
        overflow: hidden;
    }

    .floor3 li .img img {
        width: 100%;
        height: auto;
    }

    .floor3 li h4 {
        font-size: 24px;
    }

    /* ========== 新闻区域 ========== */
    .floor4 {
        padding: 0 40px 60px;
    }

    .floor4 .tit {
        width: 100%;
        font-size: 36px;
        text-align: center;
        margin-bottom: 30px;
    }

    .floor4 ul {
        width: 100%;
    }

    .floor4 li {
        font-size: 18px;
        line-height: 50px;
        padding: 10px 0;
    }

    .floor4 li .time {
        font-size: 16px;
        width: 100%;
        padding-right: 0;
        padding-bottom: 5px;
    }

    .floor4 li a {
        float: none;
        display: block;
        font-size: 18px;
        line-height: 1.5;
    }

    .floor4 li .more {
        display: none;
    }

    .floor4 .moreA {
        float: none;
        display: block;
        text-align: center;
        margin: 30px auto 0;
        font-size: 18px;
    }

    /* ========== 我能为你做什么 ========== */
    #do4s {
        padding: 0 15px !important;
        margin-bottom: 0;
        width: 100% !important;
        box-sizing: border-box;
    }

    #do4s .ydtitle {
        margin: 25px 0 15px;
    }

    #do4s .ydtitle i.arr {
        width: 24px;
        height: 14px;
        background-size: auto 100%;
    }

    #do4s .ydtitle h2 {
        font-size: 22px;
        padding-left: 0;
    }

    #do4s .ydtitle:after {
        width: 15%;
    }

    #do4s .dos {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
    }

    #do4s .do {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        float: none !important;
        margin-bottom: 10px;
        background-color: #fcfcfc;
        overflow: hidden;
        position: static !important;
        height: auto !important;
    }

    #do4s .do:nth-child(even) {
        background: #f6f6f6;
    }

    /* 修正顺序：item_cate 在左，item_list 在右 */
    #do4s .do .item_cate {
        order: 1;
        width: 38% !important;
        min-width: 120px;
        background-color: #0e4081 !important;
        padding: 18px 10px !important;
        float: none !important;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    #do4s .do .item_cate * {
        color: #fff !important;
        overflow: hidden;
        white-space: normal !important;
        text-overflow: unset !important;
    }

    #do4s .do .item_cate h3 {
        color: #fff !important;
        font-size: 15px !important;
        margin: 8px 0 4px;
        line-height: 1.4;
    }

    #do4s .do .item_cate small {
        color: rgba(255,255,255,0.7) !important;
        font-size: 11px !important;
    }

    #do4s .do .item_cate p {
        color: rgba(255,255,255,0.8) !important;
        font-size: 12px;
    }

    #do4s .do .item_cate .tubiao-svg {
        color: #fff !important;
        width: 36px;
        height: 36px;
        filter: none !important;
    }

    #do4s .do .item_cate .circle-dot {
        border-color: rgba(255,255,255,0.5) !important;
        padding-top: 10px;
    }

    #do4s .do .item_list {
        order: 2;
        width: 62% !important;
        height: auto !important;
        float: none !important;
        box-sizing: border-box;
        padding: 12px 12px !important;
        box-shadow: 2px 2px 7px rgba(70,70,70,.2);
        flex: 1;
        min-width: 0;
    }

    #do4s .do .item_list li {
        margin: 6px 0;
    }

    #do4s .do .item_list a {
        font-size: 13px;
    }

    #do4s .do .item_list .arrow-r {
        font-size: 13px;
    }

    /* 禁用hover效果 - 移动端全部展开显示 */
    #do4s .dos:hover .do {
        width: 100% !important;
        background-color: #fcfcfc;
        position: static !important;
        z-index: auto;
    }

    #do4s .dos:hover .do:nth-child(even) {
        background: #f6f6f6;
    }

    #do4s .dos:hover .do .item_cate {
        width: 38% !important;
        background-color: #0e4081 !important;
    }

    #do4s .dos:hover .do .item_cate * {
        color: #fff !important;
    }

    #do4s .dos:hover .do .item_cate h3 {
        color: #fff !important;
    }

    #do4s .dos:hover .do .item_cate small {
        color: rgba(255,255,255,0.7) !important;
    }

    #do4s .dos:hover .do .item_list {
        width: 62% !important;
        height: auto !important;
    }

    #do4s .dos:hover .do:hover {
        width: 100% !important;
        background-color: #fcfcfc;
        position: static !important;
    }

    #do4s .dos:hover .do:hover .item_cate {
        width: 38% !important;
        background-color: #0e4081 !important;
    }

    #do4s .dos:hover .do:hover .item_cate * {
        color: #fff !important;
    }

    #do4s .dos:hover .do:hover .item_list {
        width: 62% !important;
        height: auto !important;
    }

    #do4s > .spot {
        display: none !important;
    }

    /* ========== 我们的优势 ========== */
    .section-advantages {
        padding: 40px 0 50px;
    }

    .section-advantages .Contain {
        padding: 0 20px;
    }

    .section-advantages .section-title h2 {
        font-size: 24px;
    }

    .advantages-grid ul {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .advantages-grid li {
        padding: 25px 15px 20px;
    }

    .advantages-grid li h4 {
        font-size: 16px;
    }

    .advantages-grid li p {
        font-size: 12px;
        line-height: 1.6;
    }

    .adv-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }

    /* ========== 底部联系表单 ========== */
    .bottom-contact {
        display: none !important;
    }

    /* ========== 底部Footer ========== */
    .bottom {
        height: auto !important;
        background: #eee;
        padding: 0 0 30px;
    }

    .botTop {
        height: auto !important;
        padding: 30px 0 !important;
    }

    .botTop .Contain {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .botTop .logoBot {
        float: none !important;
        margin: 0 0 20px !important;
        text-align: center;
    }

    .botTop .logoBot img {
        height: 40px;
        width: auto;
    }

    .botTop .linkBot {
        float: none !important;
        margin-bottom: 20px;
    }

    .linkBot dl {
        float: none !important;
        width: 100% !important;
        margin-bottom: 15px;
    }

    .linkBot dt {
        font-size: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 5px;
    }

    .linkBot dd {
        display: inline-block;
        margin-right: 12px;
        font-size: 13px;
        line-height: 28px;
    }

    .lxxb {
        float: none !important;
        margin-bottom: 20px;
    }

    .lxxb h4,
    .gzwm h4 {
        font-size: 15px;
        padding-bottom: 8px;
    }

    .lxxb p {
        font-size: 13px;
        padding: 3px 0;
    }

    .lxxb p b {
        font-size: 14px;
    }

    .gzwm {
        float: none !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .gzwm img {
        width: 100px;
        height: auto;
    }

    .gzwm p {
        font-size: 13px;
    }

    .botFoo {
        padding: 12px 15px !important;
        border-bottom: none;
        text-align: center;
    }

    .botFoo .Contain {
        width: 100% !important;
        padding: 0 !important;
    }

    .botFoo a {
        display: inline-block;
        margin: 3px 5px;
        font-size: 12px;
    }

    .botFoo span {
        display: block;
        margin: 8px 0;
        padding: 0;
        border: none !important;
        font-size: 12px;
    }

    .clear {
        clear: both;
    }
}

/* 小屏手机适配 480px以下 */
@media screen and (max-width: 480px) {
    /* 我能为你做什么 */
    #do4s .do .item_cate {
        padding: 12px 8px !important;
        min-width: 100px;
    }

    #do4s .do .item_cate .tubiao-svg {
        width: 28px;
        height: 28px;
    }

    #do4s .do .item_cate h3 {
        font-size: 13px !important;
        margin: 6px 0 2px;
    }

    #do4s .do .item_cate small {
        font-size: 10px !important;
    }

    #do4s .do .item_cate p {
        font-size: 11px;
    }

    #do4s .do .item_list {
        padding: 8px 8px !important;
    }

    #do4s .do .item_list li {
        margin: 4px 0;
    }

    #do4s .do .item_list a {
        font-size: 12px;
    }

    /* 我们的优势 */
    .advantages-grid ul {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .advantages-grid li {
        padding: 20px 15px;
    }
}

/* 平板适配 769px - 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        min-width: 100% !important;
    }

    .Contain {
        width: 100% !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .top .logo img {
        height: 50px;
    }

    .nav li {
        padding: 0 8px;
    }

    .nav li a.aa {
        padding: 0 12px;
        font-size: 14px;
    }

    .HomeBan a {
        height: auto !important;
    }

    .ban_list_video {
        height: auto !important;
    }

    .ban_list_video video,
    .ban_list_video img {
        width: 100%;
        height: auto;
    }

    .ban_list_video .videoTxt h3 {
        font-size: 32px;
    }

    .ban_list_video .videoTxt .txt {
        font-size: 15px;
    }

    .floor1 li {
        height: 180px;
    }

    .floor1 li a {
        font-size: 18px;
    }

    .floor2 li,
    .floor3 li {
        width: 30%;
    }

    .bottom {
        height: auto;
    }

    /* Mega Menu - 平板触屏适配 */
    .mega-menu .mega-col {
        padding-right: 25px !important;
    }
    .mega-col dt {
        font-size: 14px !important;
    }
    .mega-col dd a {
        font-size: 13px !important;
        line-height: 28px !important;
    }

    /* 首页产品展示 - 平板 */
    .products-wrapper {
        gap: 20px;
    }
    .products-categories {
        width: 160px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .products-grid .product-img {
        height: 140px;
    }

    /* 首页应用领域 - 平板 */
    .app-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .app-card img {
        height: 150px;
    }

    /* 首页资讯中心 - 平板 */
    .news-wrapper {
        gap: 20px;
    }
    .news-column {
        padding: 20px;
    }

    /* 首页合作伙伴 - 平板 */
    .partners-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    /* 首页数据统计 - 平板 */
    .stats-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
    }
    .stats-num {
        font-size: 36px;
    }

    /* 我能为你做什么 - 平板适配 */
    #do4s .do {
        width: 23% !important;
    }

    #do4s .do:first-child {
        width: 46% !important;
    }

    #do4s .dos:hover .do {
        width: 23% !important;
    }

    #do4s .dos:hover .do:hover {
        width: 46% !important;
    }

    #do4s .do .item_cate .tubiao-svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    #do4s .item_cate h3 {
        font-size: 0.95rem;
    }

    /* 我们的优势 - 平板适配 */
    .advantages-grid ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .advantages-grid li {
        padding: 30px 18px;
    }

    .botTop .logoBot {
        margin-right: 50px;
    }

    .linkBot dl {
        width: 120px;
    }

    /* 联系我们分区 - 平板适配 */
    .contact-sections {
        flex-direction: column;
        gap: 30px;
    }
    .contact-info-section {
        flex: none;
        width: 100%;
    }

    /* 内页布局 - 平板适配 */
    .inner-layout {
        gap: 20px;
    }
    .inner-sidebar {
        width: 220px;
    }

    /* 产品页布局 - 平板适配 */
    .product-layout {
        gap: 20px;
    }
    .product-sidebar {
        width: 190px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .card-img {
        height: 160px;
    }

    /* 详情页画廊 - 平板 */
    .detail-gallery {
        width: 300px;
    }
    .gallery-main {
        width: 300px;
        height: 300px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   iPad Pro / MacBook Air 适配 1025px - 1440px
   ======================================== */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    body {
        min-width: 100% !important;
    }

    .Contain {
        width: 100% !important;
        max-width: 1200px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 导航间距微调 */
    .nav li {
        padding: 0 10px;
    }
    .nav li a.aa {
        font-size: 15px;
        padding: 0 12px;
    }

    /* Mega Menu 间距 */
    .mega-menu .mega-col {
        padding-right: 30px !important;
    }
    .mega-col dt {
        font-size: 15px !important;
    }
    .mega-col dd a {
        font-size: 13px !important;
    }

    /* 内页布局 */
    .inner-sidebar {
        width: 240px;
    }
    .inner-layout {
        gap: 22px;
    }

    /* 产品页布局 */
    .product-sidebar {
        width: 210px;
    }
    .product-layout {
        gap: 24px;
    }
    .card-img {
        height: 180px;
    }

    /* 详情页 */
    .detail-gallery {
        width: 350px;
    }
    .gallery-main {
        width: 350px;
        height: 350px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 首页产品分类 */
    .products-categories {
        width: 180px;
    }

    /* 应用领域 */
    .app-card img {
        height: 180px;
    }

    /* 底部联系表单 */
    .contact-sections {
        gap: 40px;
    }

    /* 底部Footer */
    .linkBot dl {
        width: 140px;
    }
}

/* ========== 移动端侧边导航样式 ========== */
#mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #000;
    z-index: 888;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-search {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    padding: 0 12px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.mobile-search .search-btn {
    padding: 0 15px;
    height: 40px;
    background: #2e75be;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #333;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    line-height: 50px;
    font-size: 16px;
    color: #fff;
    background: #000;
    text-decoration: none;
}

.mobile-nav-list > li > a::after {
    content: '+';
    font-size: 18px;
    color: #666;
    transition: transform 0.2s;
}

.mobile-nav-list > li > a.active::after {
    content: '-';
    color: #fff;
}

.mobile-nav-list > li > a:hover {
    color: #e94a16;
}

.mobile-subnav {
    display: none;
    background: #1a1a1a;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-subnav li a {
    display: block;
    padding: 0 20px 0 35px;
    line-height: 44px;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #262626;
    text-decoration: none;
}

.mobile-subnav li a:hover {
    color: #e94a16;
}

.mobile-nav-bottom {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    gap: 15px;
}

.mobile-nav-bottom a {
    display: inline-block;
    padding: 0 15px;
    font-size: 14px;
    color: #888;
    line-height: 36px;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
}

.mobile-nav-bottom a:hover {
    color: #fff;
    border-color: #666;
}

/* body菜单打开状态 */
body.menu-open {
    overflow: hidden;
}

/* 隐藏PC端汉堡菜单按钮 */
@media screen and (min-width: 769px) {
    .Phone_button {
        display: none !important;
    }

    #mobile-nav {
        display: none !important;
    }
}

/* 隐藏移动端不需要的元素 */
@media screen and (max-width: 768px) {
    .top .djc {
        display: none !important;
    }

    .subHei {
        display: none !important;
    }

    .top .right {
        display: none !important;
    }

    .top .nav {
        display: none !important;
    }

    /* 确保所有内页内容不溢出 */
    .inner-breadcrumb,
    .product-layout,
    .product-page,
    .Contain {
        max-width: 100%;
        overflow-x: hidden;
    }
}
