/* ========== zzjqr.html 知子机器人页面移动端适配样式（仅在小于1200px时生效） ========== */

@media (max-width: 1200px) {
    /* 防止横向溢出 */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* ========== 头部特殊结构适配 ========== */
    .header {
        max-width: 100%;
    }

    .header .container {
        max-width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    /* 导航栏 - 一行显示所有元素 */
    .header .container .nav {
        max-width: 100%;
        line-height: 46px;
        padding: 0;
    }

    .header .container .nav > ul {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        flex-wrap: nowrap;
    }

    .header .container .nav > ul > a {
        text-decoration: none;
        display: flex;
    }

    .header .container .nav > ul > a > li,
    .header .container .nav > ul > li {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    /* Logo */
    .header .container .nav > ul > a > li > img.logo,
    .header .container .nav > ul img.logo {
        width: 80px;
        height: auto;
        display: block;
    }

    /* 头部高度 */
    .header {
        height: auto !important;
    }

    .header .container {
        height: auto !important;
        padding: 8px 15px;
    }

    .header .container .nav {
        height: auto !important;
    }

    /* 知子机器人标题 - 覆盖PC端大padding */
    .header .container .nav > ul > li.has-robot {
        flex: 1;
        justify-content: center;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .header .container .nav > ul > li.has-robot > a {
        font-size: 14px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

    /* 右侧图标区域 - 最后一个li（电话） */
    .header .container .nav > ul > li.has-child:last-child {
        display: flex !important;
        align-items: center;
        gap: 5px;
    }

    /* 搜索图标li（倒数第二个） */
    .header .container .nav > ul > li.has-child:nth-last-child(2) {
        display: flex !important;
        align-items: center;
        gap: 5px;
        margin-left: 5px;
    }

    /* 搜索图标 */
    .header .container .nav > ul > li.has-child img#searchIcon {
        width: 22px !important;
        height: 22px !important;
        cursor: pointer;
        display: inline-block !important;
        margin-right: 0 !important;
    }

    /* 隐藏分隔符 */
    .header .container .nav > ul > li.has-child span.divider {
        margin: 0 10px;
    }

    /* 电话图标 */
    .header .container .nav > ul > li.has-child img.tel {
        width: 22px !important;
        height: 22px !important;
        cursor: pointer;
        display: inline-block !important;
        margin-left: 0 !important;
    }

    /* 电话号码 - 移动端显示 */
    .header .container .nav > ul > li.has-child span.phone {
        font-size: 13px !important;
        color: #333;
        white-space: nowrap;
        display: inline !important;
        margin-left: 5px !important;
    }

    /* ========== 搜索框移动端适配 ========== */
    .header .container .search-box {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 60px 20px 20px;
        box-sizing: border-box;
        display: none;
    }

    .header .container .search-box.active {
        display: block;
    }

    .header .container .search-box > ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        padding: 0;
    }

    .header .container .search-box > ul > li {
        list-style: none;
    }

    .header .container .search-box input {
        width: 100%;
        height: 44px;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .header .container .search-box .search-txt {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 44px;
        background: #BD0F0F;
        border-radius: 4px;
        cursor: pointer;
    }

    .header .container .search-box .search-txt img {
        width: 20px;
        height: 20px;
    }

    .header .container .search-box h2 {
        font-size: 16px;
        margin: 20px 0 15px;
    }

    .header .container .search-box .new-product {
        padding: 0;
        list-style: none;
    }

    .header .container .search-box .new-product li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        list-style: none;
    }

    .header .container .search-box .new-product li a {
        font-size: 14px;
        color: #333;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header .container .search-box .new-product .new {
        background: #BD0F0F;
        color: #fff;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 12px;
    }

    .header .container .search-box .colse {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .header .container .search-box .colse img {
        width: 100%;
        height: 100%;
    }

    /* ========== 顶部轮播图适配 ========== */
    .header .top-carousel {
        height: auto;
        max-width: 100%;
        position: relative;
    }

    .header .top-carousel .carousel {
        position: relative;
        width: 100%;
        height: 220px;
    }

    .header .top-carousel .carousel .carousel-track {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .header .top-carousel .carousel .carousel-item {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .header .top-carousel .carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    /* 轮播图标题 - 绝对定位显示在图片上 */
    .header .top-carousel .carousel > h3 {
        position: absolute;
        top: 20%;
        left: 15px;
        right: 15px;
        font-size: 20px;
        line-height: 1.4;
        color: #1D2128;
        margin: 0;
        z-index: 5;
    }

    .header .top-carousel .carousel > .brief {
        position: absolute;
        top: 50%;
        left: 15px;
        right: 15px;
        font-size: 13px;
        color: #FFFFFF;
        background: rgba(51, 51, 51, 0.85);
        padding: 8px 12px;
        border-radius: 4px;
        line-height: 1.5;
        z-index: 5;
    }

    /* ========== 主体内容适配 ========== */
    .main .contentRobot {
        max-width: 100%;
        padding: 20px 15px;
        height: auto;
        background-size: cover;
        box-sizing: border-box;
    }

    /* 选项卡区域 */
    .main .contentRobot .robot-tabs {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        border-radius: 12px;
        line-height: 35px;
    }

    .main .contentRobot .robot-tabs .left-text {
        font-size: 18px;
        text-align: center;
    }

    .main .contentRobot .robot-tabs .right-tabs {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .main .contentRobot .robot-tabs .right-tabs .robot {
        width: auto;
        padding: 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .main .contentRobot .robot-tabs .right-tabs .robot .text {
        padding: 5px 10px;
        border-bottom: 2px solid transparent;
        cursor: pointer;
    }

    .main .contentRobot .robot-tabs .right-tabs .robot .text.active {
        color: #BD0F0F;
        border-bottom-color: #BD0F0F;
    }

    .main .contentRobot .robot-tabs .right-tabs .robot .lone {
        color: #ccc;
    }

    /* 内容区域 */
    .main .contentRobot .robot-content {
        padding: 20px 0;
    }

    .main .contentRobot .robot-content .bobot-box {
        margin: 20px 0;
        text-align: center;
    }

    .main .contentRobot .robot-content .bobot-box .robot-title {
        font-size: 22px;
    }

    .main .contentRobot .robot-content .bobot-box .robot-brief {
        font-size: 14px;
    }

    .main .contentRobot .robot-content .robot-flex {
        flex-direction: column;
        gap: 20px;
    }

    .main .contentRobot .robot-content .robot-flex .robot-img {
        width: 100%;
        height: auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .main .contentRobot .robot-content .robot-flex .robot-img img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        display: block;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text {
        padding: 0;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text h3 {
        font-size: 16px;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text .line {
        width: 40px;
        height: 2px;
        margin: 8px 0;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon .flex-item {
        flex-wrap: wrap;
        gap: 0 0;
        align-items: center;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon img {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon span {
        font-size: 13px;
        white-space: nowrap;
    }

    /* 每对图标+文字作为一组整齐排列 */
    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon .flex-item img + span {
        margin-right: 12px;
    }

    /* 让每个 img+span 对形成视觉分组 */
    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon .flex-item img {
        vertical-align: middle;
    }

    .main .contentRobot .robot-content .robot-flex .robot-text .robot-icon .flex-item span {
        vertical-align: middle;
        display: inline-flex;
        align-items: center;
    }

    /* ========== 技术优势区域 ========== */
    .main .robot-news {
        height: auto;
        max-width: 100%;
        padding: 0 15px;
        margin-top: 30px;
        box-sizing: border-box;
    }

    .main .robot-news .title {
        font-size: 20px;
    }

    .main .robot-news .line {
        width: 50px;
        height: 3px;
        margin: 10px auto;
    }

    .main .robot-news .news-content {
        flex-direction: column;
        padding-top: 20px;
        gap: 20px;
    }

    .main .robot-news .news-content .news-brief {
        width: 100%;
    }

    .main .robot-news .news-content .news-brief ul {
        padding: 0;
    }

    .main .robot-news .news-content .news-brief li {
        padding: 0 12px;
        margin: 12px 0;
        font-size: 14px;
        border-left-width: 3px;
        list-style: none;
    }

    .main .robot-news .news-content img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
        display: block;
    }

    /* ========== 行业应用区域 ========== */
    .main .robot-apply {
        height: auto;
        max-width: 100%;
        padding: 0 15px;
        margin: 30px 0;
        box-sizing: border-box;
    }

    .main .robot-apply .title {
        font-size: 20px;
    }

    .main .robot-apply .line {
        width: 50px;
        height: 3px;
        margin: 10px auto 20px;
    }

    .main .robot-apply .card-list {
        flex-direction: column;
        gap: 15px;
        padding-top: 0;
    }

    .main .robot-apply .card-list .position {
        width: 100%;
        position: relative;
    }

    .main .robot-apply .card-list .position img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    .main .robot-apply .card-list .position span {
        position: absolute;
        bottom: 15px;
        left: 15px;
        font-size: 18px;
        color: #FFFFFF;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* ========== 页脚适配 ========== */
    .footer {
        height: auto !important;
        padding: 15px;
        box-sizing: border-box;
        background-color: #232323 !important;
    }

    .footer .foot-bot {
        height: auto !important;
        background-color: #232323 !important;
    }

    .footer .foot-bot .bot-item {
        height: auto !important;
        padding: 8px 0;
    }

    .footer .foot-bot .bot-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer .foot-bot .bot-flex li {
        margin-left: 0 !important;
        text-align: center;
        font-size: 12px;
        line-height: 1.6;
        list-style: none;
        color: #999999;
    }

    .footer .foot-bot .bot-flex li a {
        font-size: 12px;
        color: #999999;
        text-decoration: none;
    }
}
