/* ==========================================================================
   mobile.css —— 手机端兼容样式（独立文件，不影响桌面端原有样式）
   断点：<= 768px 为主，<= 480px 小屏微调
   ========================================================================== */

/* ---------- 移动端导航抽屉（汉堡菜单） ---------- */
.menu-switch {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    /* 桌面端隐藏 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 5px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: auto;
    z-index: 310;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all .3s ease;
}

@media screen and (max-width: 768px) {

    /* ---------- 通用 ---------- */
    body {
        overflow-x: hidden;
    }

    /* ---------- 头部：移动端固定白底，始终显示深色 logo ---------- */
    .site-header {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    }

    .header-container {
        height: 60px;
        padding: 0 12px;
    }

    .site-header .logo {
        display: none !important;
    }

    .site-header .logo-a {
        display: flex !important;
    }

    .site-header .logo-a img {
        height: 50px;
        width: auto;
    }

    /* 汉堡按钮（手机端显示） */
    .menu-toggle {
        display: flex;
    }

    .menu-switch:checked~.menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-switch:checked~.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-switch:checked~.menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 导航抽屉：从右侧滑入 */
    .nav-right {
        display: flex;
        flex: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60%;
        max-width: 300px;
        margin-left: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
        padding-top: 70px;
        transform: translateX(105%);
        transition: transform .3s ease;
        z-index: 300;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-switch:checked~.nav-right {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
    }

    .nav-menu li {
        line-height: 52px;
        text-align: left;
        padding: 0 26px;
        border-bottom: 1px solid #f0f2f5;
    }

    .nav-menu li.active {
        border-bottom: 1px solid #f0f2f5;
    }

    .nav-menu a {
        color: #333;
        font-size: 16px;
    }

    .nav-menu li.active a {
        color: #0066cc;
        font-weight: 600;
    }

    .nav-right .tel-phone a{
        line-height: 1.6;
        font-size: 18px;
        color: #0066cc;
        margin: 22px 26px 30px;
        justify-content: flex-start;
    }

    .nav-right .tel-phone img {
        filter: invert(0) brightness(1);
    }

    /* ---------- 首页大 Banner ---------- */
    .head-banner {
        height: 400px;
    }

    .head-banner .title_inner {
        width: 100%;
        padding: 0 20px;
        flex-direction: column;
    }

    .head-banner .title_inner h1,
    .head-banner .title_inner h2 {
        font-size: 26px;
        letter-spacing: 1px;
        line-height: 1.4;
    }

    .head-banner .title_inner p {
        font-size: 14px;
        line-height: 24px;
        margin-top: 12px;
        margin-bottom: 24px;
        letter-spacing: 1px;
    }

    .head-banner .title_inner .banner-btn {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
    }

    .head-banner .title_inner .banner-btn .phone-btn {
        font-size: 15px;
        padding: 8px 18px 6px;
    }

    .head-banner .title_inner .banner-btn .phone-btn img {
        width: 18px;
    }

    .banner-bottom {
        gap: 4px;
        padding-bottom: 12px;
    }

    .banner-bottom svg {
        width: 18px;
        height: 18px;
    }

    /* ---------- 内页 Hero ---------- */
    .hero-inner {
        height: 230px;
        margin-top: 60px;
    }

    .hero_banner {
        height: 230px;
        margin-top: 60px;
    }

    .inner-tip,
    .banner-tip {
        width: 100%;
        padding: 0 20px;
        font-size: 14px;
        line-height: 26px;
        box-sizing: border-box;
    }

    .inner-title,
    .banner-title {
        font-size: 26px;
        line-height: 1.4;
    }

    .hero_banner .title_name {
        font-size: 26px;
    }

    /* ---------- 面包屑导航 ---------- */
    .ny-daohang {
        height: auto;
        line-height: 44px;
    }

    .ny-daohang .topbar {
        width: 100%;
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .nav-link {
        font-size: 13px;
    }

    .ny-daohang .right-nav {
        gap: 18px;
        display: none !important;
    }

    .ny-daohang .right-nav .li-item {
        font-size: 14px;
    }

    /* ---------- 标题区 ---------- */
    .title-block {
        padding-top: 26px;
        margin-bottom: 32px;
    }

    .title-block .watermark {
        font-size: 44px;
        top: 16px;
        letter-spacing: 2px;
    }

    .title-block .title-zh {
        font-size: 24px;
        padding-top: 16px;
    }

    .title-block .title-red-bar {
        margin-top: 12px;
    }

    .title-block .title-sub {
        font-size: 13px;
        margin-top: 10px;
        line-height: 1.8;
        padding: 0 16px;
    }

    .align-left.title-block {
        margin-bottom: 24px;
    }

    .align-left.title-block .watermark {
        left: -4px;
    }

    /* ---------- 首页产品中心 ---------- */
    .products-section,
    .application-section {
        padding: 40px 12px;
    }

    .procont {
        width: 100%;
    }

    .procont li {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .procont li a {
        padding: 12px;
    }

    .procont li a h3 {
        font-size: 15px;
        padding-top: 10px;
        margin-bottom: 6px;
    }

    .procont li a span {
        font-size: 13px;
        line-height: 1.6;
    }

    .procont li .more-product {
        padding: 16px;
        min-height: 110px;
    }

    .procont li .more-product h3 {
        font-size: 16px;
    }

    .procont li .more-product img {
        width: 28px;
        margin-top: 14px;
    }

    /* ---------- 核心优势 ---------- */
    .features-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 26px 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .feature:last-child {
        border-bottom: none;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .feature-icon img {
        max-width: 100%;
        height: auto;
    }

    .feature h3 {
        font-size: 16px;
    }

    .feature p {
        font-size: 13px;
        line-height: 22px;
    }

    /* ---------- AI 算法区 ---------- */
    .serve-main {
        padding: 40px 0;
    }

    .serve-box {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .serve-box .serve-card {
        border-radius: 12px;
    }

    .serve-box .serve-card img {
        height: 130px;
    }

    .serve-box .serve-card .serve-text {
        padding: 10px 12px;
    }

    .serve-box .serve-card .h2-text,
    .serve-box .more-card .h2-text {
        font-size: 14px;
    }

    .serve-box .serve-card .text-p,
    .serve-box .more-card .text-p {
        font-size: 11px;
        margin-top: 4px;
        line-height: 1.5;
    }

    .serve-box .more-card {
        padding: 16px;
        min-height: 96px;
        border-radius: 12px;
        grid-column: span 2;
    }

    /* ---------- 咨询条 ---------- */
    .btn-small {
        margin-top: 24px;
        padding: 0 15px;
    }

    .consultation-bar {
        padding: 6px 10px 6px 14px;
    }

    .phone-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .phone-number {
        font-size: 19px;
        margin-right: 12px;
    }

    .zixun-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    /* ---------- 关于我们（首页） ---------- */
    .about-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 16px;
    }

    .about-grid .about-text p {
        font-size: 14px;
        line-height: 26px;
    }

    .about-actions {
        margin-top: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 20px 8px;
    }

    .stat-card .num {
        font-size: 30px;
    }

    .stat-card .num small {
        font-size: 14px;
    }

    .stat-card .lbl {
        font-size: 12px;
        margin-top: 8px;
    }

    .banner-right img {
        width: 100%;
    }

    /* ---------- 页脚 ---------- */
    .footer-cont {
        width: 100%;
        padding: 26px 20px 30px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 24px 10px;
        box-sizing: border-box;
    }


    footer .footer-cont .footer-cell .sub {
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    footer .footer-cont .footer-cell li a {
        font-size: 14px;
    }

    footer .footer-cont .footer-cell li:not(:first-child) {
        margin-top: 10px;
    }

    footer .footer-cont .footer-cell.qr-code {
        display: none;
    }

    .code-img {
        display: none;
    }

    footer .footer-cont .footer-cell.qr-code,
    footer .footer-cont .footer-cell.phone {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .footer-cont .footer-cell.qr-code img {
        width: 100px;
        height: 100px;
    }

    footer .footer-cont .footer-cell.phone {
        font-size: 24px;
        width: 60%;
        text-align: left;
    }

    footer .footer-cont .footer-cell.phone a {
        font-size: 24px;
    }

    footer .footer-copyright {
        font-size: 12px;
        line-height: 22px;
        padding: 12px 12px;
        word-break: break-all;
    }

    /* ---------- 关于我们页 ---------- */
    .about-bg {
        padding: 30px 0;
    }

    .about-container {
        padding: 24px 18px;
    }

    .about-container .left-title {
        font-size: 26px;
    }

    .about-container .left-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .about-content p {
        font-size: 14px !important;
        text-indent: 26px !important;
    }

    .maxtitle {
        font-size: 28px;
        padding-bottom: 16px;
    }

    h4.subtitle {
        font-size: 15px;
        margin: 14px auto 28px;
        line-height: 1.6;
    }

    .about-images {
        gap: 12px;
        margin-top: 20px;
    }

    .about-images .img-li {
        width: 100%;
        height: auto;
    }

    /* ---------- 联系我们页 ---------- */
    .contact-container {
        flex-direction: column;
        padding: 20px;
        gap: 24px;
    }

    .contact-info h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .contact-info p {
        font-size: 15px;
    }


    .contact-map {
        width: 100%;
    }

    .contact-map img {
        width: 100%;
        object-fit: cover;
    }

    /* ---------- 定制服务页 ---------- */
    .dz-title {
        margin-bottom: 24px;
        padding: 0 12px;
    }

    .dz-title .tit-h2 {
        font-size: 22px;
    }

    .dz-title .tit-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .dz-serve ul {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .dz-serve ul li {
        padding: 20px;
        border-radius: 12px;
    }

    .dz-serve h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .dz-serve p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .flow-section {
        margin-top: 36px;
    }

    .flow-steps {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .flow-step {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .flow-step-title {
        font-size: 16px;
    }

    .flow-step-desc {
        font-size: 13px;
    }

    .flow-arrow {
        width: 100%;
        min-width: 0;
        height: 34px;
    }

    .flow-arrow::after {
        transform: rotate(90deg);
    }

    .flow-promise {
        flex-wrap: wrap;
        gap: 12px 18px;
        margin-top: 26px;
        padding-top: 20px;
    }

    .flow-promise-item {
        font-size: 13px;
    }

    /* ---------- 产品中心页 ---------- */
    .chanpin-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .chanpin-grid .chanpin-card {
        padding: 10px;
    }

    .chanpin-grid .chanpin-card .product-img {
        height: 120px;
    }

    .chanpin-grid .chanpin-card .product-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .chanpin-grid .chanpin-card .product-info {
        font-size: 12px;
        line-height: 1.5;
    }

    .chanpin-card .sf-ul li {
        font-size: 11px;
        padding: 1px 8px 0;
    }

    .pro-title {
        width: 100%;
        padding: 14px 15px;
        font-size: 20px;
        margin: 10px auto 0;
        box-sizing: border-box;
    }

    /* ---------- 产品详情页 ---------- */
    .ny-index1,
    .ny-index2 {
        padding: 40px 0;
    }

    .ny-algorithm {
        width: 100%;
        flex-direction: column;
        gap: 22px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .ny-algorithm h4 {
        font-size: 22px;
    }

    .ny-algorithm p {
        font-size: 15px;
        line-height: 26px;
    }

    .algorithm-right img {
        width: 100%;
        height: auto;
        padding: 12px;
    }

    .product-title {
        width: 100%;
        padding: 0 15px;
        font-size: 22px;
        margin-bottom: 18px;
        box-sizing: border-box;
    }

    .table-body {
        width: 100%;
        border-right: 0;
    }

    .table-body tr {
        font-size: 13px;
    }

    .table-body tr.body-bg {
        font-size: 14px;
    }

    .table-body tr .well {
        padding: 8px 10px;
    }

    .fangan-box {
        padding: 0 12px;
    }

    .zixun-btns {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 20px;
    }

    .zixun-btns .zixun-btn {
        padding: 8px 18px;
    }

    /* ---------- 咨询弹窗 ---------- */
    .contactUs_warpper .concat_inner {
        width: 86%;
        max-width: 420px;
        height: auto;
        min-height: 0;
        padding: 22px 16px;
        box-sizing: border-box;
    }

    .contactUs_warpper .concat_inner .title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .contactUs_warpper .concat_inner .customWx img {
        width: 200px;
        height: 200px;
    }

    .contactUs_warpper .concat_inner .saomiao {
        font-size: 14px;
    }

    /* ---------- 其他容器 ---------- */
    .margin-futop,
    .news-title {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .inner-container {
        padding: 30px 15px;
    }

    .about-content {
        max-width: 100%;
    }

    .btn-button {
        font-size: 14px;
        padding: 6px 22px;
    }

    .tit-text {
        font-size: 16px;
    }
}

/* ---------- 小屏（<=480px）微调 ---------- */
@media screen and (max-width: 480px) {

    .head-banner {
        height: 580px;
    }

    .title_inner {
        flex-direction: column;
    }

    .head-banner .title_inner h1,
    .head-banner .title_inner h2 {
        font-size: 24px;
    }

    .consultation-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .serve-box .serve-card .text-p,
    .serve-box .more-card .text-p {
        font-size: 10px;
    }

    .footer-cont .footer-cell {
        width: 30%;
    }

    .chanpin-grid .chanpin-card .product-img {
        height: 100px;
    }
}