/* 响应式覆盖：桌面端沿用 /legacy/css/css.css，这里只做窄屏适配与少量表单样式 */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

header {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.clear {
    clear: both;
}

/* flickerplate 源样式写死 min-width:1200px，并给轮播 ul 设置很宽的宽度，必须覆盖并裁剪 */
.flicker-example,
.flicker-example.flickerplate,
.flickerplate {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* 移动端导航按钮（桌面隐藏） */
.nav-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 18px;
    z-index: 20;
    width: 42px;
    height: 38px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.nav-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #333;
    border-radius: 1px;
}

.head {
    position: relative;
}

.logo {
    max-width: 100%;
}

.logo h1 img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

/* 留言表单 */
.feedback-form {
    margin-top: 15px;
}

.feedback-table {
    width: 90%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.feedback-table td.label {
    width: 80px;
    text-align: right;
    font-size: 14px;
    color: #333;
}

.feedback-table input[type="text"],
.feedback-table textarea {
    width: 80%;
    max-width: 420px;
    padding: 7px 9px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.submit-btn {
    background: #e30001;
    color: #fff;
    border: 0;
    padding: 8px 24px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.submit-btn:hover {
    background: #c50001;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.news-meta {
    color: #999;
    font-size: 13px;
    margin: 8px 0 15px;
}

.related-products {
    margin-top: 30px;
}

.related-title {
    font-size: 18px;
    color: #e30001;
    border-bottom: 1px solid #e30001;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* 1240px 以下：容器改为流式 */
@media (max-width: 1240px) {
    .top_con,
    .head,
    .wrap,
    .main_product,
    .wrap_main {
        width: 100%;
        max-width: 1200px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .ncon {
        width: calc(100% - 210px);
    }

    .productList {
        width: 100%;
    }

    .productList li {
        width: 25%;
        margin-right: 0;
    }

    .main_product li img {
        width: 100%;
        height: auto;
    }

    .main_product_tt_team {
        width: 100%;
        box-sizing: border-box;
    }

    .main_news_aboutus,
    .main_news_right,
    .main_news_aboutus_top,
    .main_news_aboutus_content,
    .main_news_right_top,
    .main_news_right_list,
    .main_news_right_list ul,
    .main_news_right_list li {
        width: 100%;
        box-sizing: border-box;
    }

    .main_news_aboutus {
        margin-bottom: 20px;
    }

    .main_news {
        height: auto;
    }
}

/* 992px 以下：侧栏下沉、导航折叠 */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
        z-index: 9999;
    }

    .head {
        height: auto;
        padding: 10px 60px 10px 15px;
        box-sizing: border-box;
    }

    .logo {
        float: none;
        text-align: left;
        max-width: calc(100% - 55px);
    }

    .logo h1 img {
        max-height: 60px;
        max-width: 100%;
        width: auto;
    }

    .nav-toggle {
        top: 12px;
        right: 12px;
    }

    .menu {
        float: none;
        width: 100%;
    }

    .menu nav ul {
        display: none;
        margin-top: 10px;
        border-top: 1px solid #eee;
    }

    .menu.nav-open nav ul {
        display: block;
    }

    .menu ul li {
        float: none;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .menu ul li a {
        display: block;
        line-height: 42px;
    }

    .nmenu {
        float: none;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    .ncon {
        float: none;
        width: 100%;
    }

    .productList li,
    .main_product li {
        width: 33.33%;
    }

    .productList li img,
    .main_product li img {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .main_news_aboutus,
    .main_news_right {
        float: none;
        width: 100%;
    }

    .main_news_right_list li,
    .main_news_right_list li a {
        white-space: normal;
    }

    .main_news_right_list li a {
        width: auto;
    }

    .flicker-example {
        height: 260px !important;
    }

    .flicker-example li > a > div {
        height: 260px !important;
    }
}

/* 768px 以下：两列产品、列表换行 */
@media (max-width: 768px) {
    .productList li,
    .main_product li {
        width: 50%;
    }

    .productListTitle,
    .main_product_tt_team {
        width: 100%;
        box-sizing: border-box;
    }

    .newsListTitle {
        width: 72%;
        height: auto;
        line-height: 22px;
    }

    .newsDate {
        width: 28%;
        height: auto;
        line-height: 22px;
        text-align: right;
    }

    .newsList ul li {
        height: auto;
        min-height: 36px;
        line-height: 22px;
        padding: 6px 0 6px 20px;
        overflow: hidden;
    }

    .nmenu-list ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .nmenu-list ul li {
        padding: 0;
    }

    .nmenu-list ul li a {
        height: 32px;
        line-height: 32px;
        font-size: 12px;
        background-size: 100% 100%;
    }

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

    .flicker-example {
        height: 200px !important;
    }

    .flicker-example li > a > div {
        height: 200px !important;
    }

    .feedback-table {
        width: 100%;
    }

    .feedback-table td.label {
        width: 62px;
    }

    .feedback-table input[type="text"],
    .feedback-table textarea {
        width: 100%;
        max-width: none;
    }

    .foot {
        line-height: 22px;
        padding: 12px 10px;
        box-sizing: border-box;
    }
}

/* 480px 以下 */
@media (max-width: 480px) {
    .top_con,
    .head,
    .wrap,
    .main_product,
    .wrap_main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .productList li,
    .main_product li {
        width: 50%;
    }

    .productList li img,
    .main_product li img {
        padding: 1px;
    }

    .productListTitle a,
    .main_product_tt_team a {
        font-size: 12px;
    }

    .lmcontent {
        padding: 0 4px;
        box-sizing: border-box;
    }

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

/* 备案凭证：水印图片 + 防止右键/拖拽/长按直接保存 */
.cert-protect {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.cert-protect img {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.cert-shield {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}
