/* ============================================================
   移动端适配（<=1000px）
   说明：原站为 990px 定宽版式，以下样式仅在窄屏生效，不影响 PC 端
   ============================================================ */
@media screen and (max-width: 1000px) {

    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        width: auto;
        max-width: 100%;
        margin: 0;
        font-size: 15px;
        overflow-x: hidden;
    }

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

    /* ---------- 顶部 ---------- */
    #header {
        width: 100%;
    }

    #header img {
        width: 100%;
        padding-top: 0;
        display: block;
    }

    #headerLink {
        position: static;
        text-align: right;
        padding: 4px 8px;
        font-size: 12px;
    }

    /* ---------- 导航 ---------- */
    #nav {
        width: 100%;
        height: auto;
        padding: 0;
    }

    #navLi {
        width: 100%;
    }

    #navLeft,
    #navRight,
    #ul_nav li.navLine {
        display: none;
    }

    #navCon {
        width: 100%;
        height: auto;
        float: none;
        background: #f5faf2;
        border-top: 1px solid #dbe8d6;
        border-bottom: 1px solid #dbe8d6;
    }

    #ul_nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #ul_nav li {
        float: none;
        width: 25%;
        text-align: center;
        line-height: 2.4;
    }

    /* 导航原为 12px 小字图片，移动端改用文字，保证可读性 */
    #ul_nav li a {
        display: block;
        font-size: 14px;
        color: #006633;
        line-height: 2.6;
    }

    #ul_nav li a img {
        display: none;
    }

    #ul_nav li a[href="./"]::after { content: "首页"; }
    #ul_nav li a[href="about.html"]::after { content: "关于我们"; }
    #ul_nav li a[href="news.html"]::after { content: "新闻中心"; }
    #ul_nav li a[href="products.html"]::after { content: "产品展示"; }
    #ul_nav li a[href="order.html"]::after { content: "在线订购"; }
    #ul_nav li a[href="leave.html"]::after { content: "在线留言"; }
    #ul_nav li a[href="job.html"]::after { content: "人才招聘"; }
    #ul_nav li a[href="contact.html"]::after { content: "联系我们"; }

    /* ---------- 轮播 / 横幅 ---------- */
    #gallery {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    #img {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    #img li img {
        width: 100%;
        height: auto;
        display: block;
    }

    #control {
        float: none;
        margin: 6px auto;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    #control li {
        margin: 0 4px;
    }

    /* ---------- 通用内容容器 ---------- */
    #content,
    #con {
        width: 100%;
        box-sizing: border-box;
    }

    #content > h1 {
        height: auto !important;
        line-height: 1.7 !important;
        padding: 8px 10px;
        font-size: 14px !important;
    }

    /* ---------- 首页 ---------- */
    #con_left,
    #con_right {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    #recom,
    #trends {
        width: 100%;
        background-size: 100% 100%;
    }

    /* 栏目标题右侧“更多…”链接：原为 padding-left:550px 的浮动 span */
    #trends > span {
        float: none !important;
        display: block;
        padding: 0 10px 0 0 !important;
        margin-top: 0 !important;
        line-height: 36px;
        text-align: right;
    }

    #more_recom {
        width: 100%;
        padding-left: 0;
        text-align: right;
        height: auto;
    }

    /* 首页产品轮播：保持横向滚动条带，只裁掉溢出部分 */
    #con_left #demo {
        width: 100% !important;
        height: auto;
        padding: 6px 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    #con_left #demo li {
        float: left;
        width: 170px;
        height: auto;
        padding: 6px 15px;
        box-sizing: border-box;
    }

    .demo_explain,
    .demo_explain_ch,
    .demo_explain_40Mn,
    .demo_explain_40 {
        position: static;
        display: block;
        margin: 6px 0 0;
        text-align: center;
        font-size: 13px;
        line-height: 1.5;
    }

    #con_buttom {
        width: 100%;
    }

    #trends_con,
    #other {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    #other {
        border-left: none;
        border-top: 1px dashed #D4D0C8;
    }

    #trends_con div,
    #other div {
        margin: 0 12px;
        padding: 8px 0;
        font-size: 14px;
        line-height: 1.7;
    }

    #type_nav_con,
    #search_nav_con {
        height: auto;
        padding: 10px 12px;
    }

    #search_nav_con input[type="text"] {
        width: 55%;
        box-sizing: border-box;
        height: 30px;
    }

    #con_about {
        padding: 10px 12px;
    }

    #con_about p {
        font-size: 14px;
        line-height: 1.9;
    }

    #index_contact {
        font-size: 14px;
        line-height: 2;
    }

    #index_job {
        padding: 15px 0;
    }

    /* ---------- 内页左侧栏目 ---------- */
    #con_left ul {
        padding: 4px 0;
        display: flex;
        flex-wrap: wrap;
    }

    #con_left li {
        width: 50%;
        height: 34px;
        line-height: 34px;
        background-size: 100% 100% !important;
        box-sizing: border-box;
    }

    #con_left li span {
        padding-left: 0;
        display: block;
        text-align: center;
    }

    /* 侧栏中的联系方式块占满整行（原为行内 style="height:126px"） */
    #con_left li[style*="126px"] {
        width: 100% !important;
        height: auto !important;
        line-height: 2;
        padding: 8px 0;
        text-align: center;
    }

    #con_right {
        float: none;
        width: 100%;
    }

    /* ---------- 内页标题 / 正文 ---------- */
    #con_nav {
        height: auto;
        line-height: 1.8;
        padding: 8px 4px;
        font-size: 16px;
    }

    #con_img img {
        width: 100%;
        height: auto;
    }

    #con_con {
        padding: 12px;
        text-indent: 2em;
        font-size: 14px;
        line-height: 1.9;
    }

    #con_con p {
        line-height: 1.9 !important;
    }

    #con_contract {
        padding: 12px;
        font-size: 14px;
        line-height: 2;
        word-break: break-all;
    }

    /* ---------- 新闻列表 ---------- */
    #con_title {
        display: none;
    }

    .con_text {
        padding: 8px 12px;
    }

    .con_text span {
        width: auto !important;
        height: auto !important;
        line-height: 1.6;
        background: none;
    }

    .con_text span:first-child {
        display: none;
    }

    .con_text span:nth-child(2) {
        display: block;
        text-align: left !important;
        font-size: 15px;
        padding-bottom: 2px;
    }

    .con_text span:nth-child(3),
    .con_text span:nth-child(4) {
        font-size: 12px;
        color: #888;
        margin-right: 12px;
    }

    /* ---------- 新闻正文 ---------- */
    #news_title {
        font-size: 17px;
        line-height: 1.6;
        padding: 10px 12px 0;
        text-align: left;
    }

    #news_con {
        padding: 10px 12px 0;
        text-indent: 2em;
        font-size: 15px;
        line-height: 1.9;
        min-height: 0;
    }

    #print_text {
        width: auto;
        padding: 6px 12px 0;
    }

    #news_header {
        text-indent: 0;
        padding: 6px 12px 12px;
        font-size: 12px;
    }

    /* ---------- 产品页 ---------- */
    #con_right #demo,
    #con_right #demo1 {
        width: 100%;
        height: auto;
        padding: 6px 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    #con_right #demo li {
        width: 50%;
        height: auto;
        padding: 6px 2%;
        box-sizing: border-box;
    }

    #con_right #demo1 {
        padding: 10px 12px;
    }

    #product_explain {
        width: auto;
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.9;
    }

    #product_explain span {
        width: auto;
        text-align: left;
        font-size: 12px;
    }

    /* ---------- 订购 / 留言表单 ---------- */
    #con {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .order_n {
        width: 100%;
        display: block;
        text-align: left;
        line-height: 1.8;
        margin-top: 10px;
        font-size: 14px;
    }

    #con input[type="text"],
    #con input[type="email"],
    #con input[type="tel"],
    #con textarea,
    #con select {
        width: 100%;
        box-sizing: border-box;
        height: 36px;
        font-size: 14px;
        padding: 4px 8px;
    }

    #con textarea {
        height: 100px;
    }

    /* ---------- 底部 ---------- */
    #footer {
        width: 100%;
        height: auto;
        margin: 0;
    }

    #footer > img {
        width: 100% !important;
        height: 100px !important;
        display: block;
    }

    #footer > div {
        position: static !important;
        margin: 0 !important;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 2;
        text-align: center;
        word-break: break-all;
    }
}

/* 小屏手机进一步优化 */
@media screen and (max-width: 480px) {
    #ul_nav li {
        width: 33.33%;
    }

    #con_left li {
        width: 100%;
        height: 38px;
        line-height: 38px;
    }

    body {
        font-size: 14px;
    }
}
