/* 欣一荣环保 移动端整站适配 2026-11-26
   仅在移动端 header 加载，桌面端不受影响 */

@media screen and (max-width: 1024px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    background: #f3f6ef;
    color: #30352f;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  /* 顶部与抽屉导航 */
  .header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(38, 60, 30, .08);
  }
  .header_pic_nav {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(25, 45, 22, .12);
    padding-bottom: 110px;
  }
  .header_pic_nav li {
    padding: 16px 4%;
    border-bottom: 1px solid #f0f3ec;
  }
  .header_pic_nav li a span,
  .header_pic_nav li span {
    font-size: 16px;
    line-height: 1.6;
  }
  .header_pic_nav li.menu-item-has-children i:after {
    top: 18px;
    right: 4%;
  }
  #waper_drog_nav {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
    padding-top: 16px !important;
    background: #fff !important;
  }
  #waper_drog_nav .waper_drog_nav_in {
    width: 100%;
    padding: 0;
  }
  #waper_drog_nav ul li {
    padding: 16px 4%;
    border-bottom: 1px solid #f0f3ec;
  }
  #waper_drog_nav ul li a span {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 首页任务入口 */
  .xyr-task-entry {
    margin: 14px 0 12px !important;
    padding: 20px 4% 22px !important;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(47, 73, 20, .05);
  }
  .xyr-task-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .xyr-task-head h2 {
    font-size: 22px;
  }
  .xyr-task-head p {
    font-size: 13px;
    line-height: 1.7;
  }
  .xyr-task-card {
    min-height: 0;
    padding: 16px 16px 15px;
    border-radius: 9px;
  }
  .xyr-task-card strong {
    font-size: 17px;
  }
  .xyr-task-desc {
    font-size: 13px;
    line-height: 1.75;
  }

  /* 业务范围：两列、只留中文主标题 */
  .twotab .index_boxs {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(32, 52, 25, .04);
  }
  #list_nav ul {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  #list_nav ul li {
    width: 48.5% !important;
    margin: 0 1.5% 12px 0 !important;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(23, 40, 20, .08);
  }
  #list_nav ul li:nth-child(2n) {
    margin-right: 0 !important;
  }
  #list_nav ul li img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  #list_nav ul li .zhezhao2 {
    background: linear-gradient(180deg, rgba(19, 32, 22, 0) 32%, rgba(17, 30, 20, .84) 100%) !important;
    opacity: 1 !important;
  }
  #list_nav ul li .text_list_nav {
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 0 11px 11px !important;
    box-sizing: border-box;
    text-align: left;
  }
  #list_nav ul li .text_list_nav span.text_list_nav_title {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  }
  #list_nav ul li .text_list_nav span:not(.text_list_nav_title),
  #list_nav ul li .text_list_nav p {
    display: none !important;
  }
  .more_m {
    width: 140px;
    padding: 8px 0;
    margin: 4px auto 0;
    border-radius: 22px;
    font-size: 14px;
  }

  /* 关于我们 */
  .twotab .about_img img {
    border-radius: 8px;
  }
  .twotab .text_about p {
    font-size: 15px;
    line-height: 1.9;
  }

  /* 服务流程：两列卡片 */
  .icons_in {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    max-width: none;
    padding: 0 !important;
  }
  .icons_in .list_nav_title {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0;
  }
  .icons_in .wp_clear {
    display: none !important;
  }
  .icons_in .icons_contact {
    width: 100% !important;
    margin: 0 !important;
    padding: 64px 12px 16px !important;
    box-sizing: border-box;
    border: 1px solid #e8eee0;
    border-radius: 9px;
    background: #fbfcf8;
  }
  .icons_in .icons_contact .ba {
    display: none !important;
  }
  .icons_in .icons_contact span p {
    font-size: 12px !important;
    line-height: 1.7;
    color: #778273;
  }

  /* 最新发布 */
  .xyr-latest {
    margin: 20px 0 0 !important;
    padding: 0 3% 18px !important;
  }
  .xyr-latest-head {
    margin-bottom: 14px;
  }
  .xyr-latest-grid {
    gap: 14px;
  }
  .xyr-latest-card {
    border-radius: 10px;
  }
  .xyr-latest-body {
    padding: 12px 14px 14px;
  }
  .xyr-latest-card h3 {
    font-size: 16px;
  }
  .xyr-latest-card p {
    font-size: 13px;
  }

  /* 首页 CTA */
  .xyr-home-cta {
    margin-bottom: 24px !important;
  }
  .xyr-home-cta-in {
    padding: 20px 18px;
    border-radius: 12px;
  }
  .xyr-home-cta-t {
    font-size: 17px;
  }
  .xyr-home-cta-btn {
    height: 46px;
    line-height: 46px;
  }

  /* 展开更多按钮：移动端不再需要，避免空白横条 */
  .move_open_btn {
    display: none !important;
  }

  /* 内页正文 */
  .the_page_content {
    width: 100% !important;
    padding: 0 4% !important;
    box-sizing: border-box;
  }
  .post_content {
    width: 100% !important;
    padding: 18px 0 8px !important;
    font-size: 16px;
  }
  .post_content p {
    font-size: 16px;
    line-height: 1.95;
    margin: 0 0 15px;
  }
  .post_content h2 {
    font-size: 19px;
    line-height: 1.6;
    margin: 28px 0 12px;
  }
  .post_content h3 {
    font-size: 17px;
    line-height: 1.7;
    margin: 24px 0 10px;
  }
  .post_content li {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 6px;
  }
  .post_content ul,
  .post_content ol {
    padding-left: 1.25em;
  }
  .post_content img {
    border-radius: 6px;
  }
  .post_content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
  }
  .post_content table th,
  .post_content table td {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .post_content a {
    color: #5f8f24;
  }
  .post_content iframe[src*="map.php"] {
    display: block;
    width: 100% !important;
    height: 220px !important;
    border: 0;
    border-radius: 8px;
  }
  .post_content iframe[src*="h=450px"] {
    display: none !important;
  }
  body.page-id-7 .the_page_content {
    padding: 0 3% !important;
  }
  body.page-id-7 .post_content p {
    font-size: 13.5px;
    line-height: 1.9;
  }

  /* 联系表单 */
  .xyr-lead-form {
    padding: 20px 16px !important;
    margin: 18px 0 6px;
  }
  .xyr-lead-field label {
    font-size: 15px !important;
  }
  .xyr-lead-field input[type=text],
  .xyr-lead-field input[type=tel],
  .xyr-lead-field select,
  .xyr-lead-field textarea {
    font-size: 16px !important;
  }
  .xyr-lead-actions button {
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 7px !important;
    background: #5f8f24 !important;
    box-shadow: 0 4px 12px rgba(95, 143, 36, .22) !important;
  }

  /* 页脚 */
  .new_footer {
    background: linear-gradient(180deg, #1c2a1f 0%, #131b14 100%);
  }
  .new_footer_in {
    padding-bottom: 12px;
  }
  .nf_box1 span {
    font-size: 14px;
    line-height: 1.8;
  }
  .nf_box3 img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
  }
  .new_footer_bottm {
    width: 100% !important;
    box-sizing: border-box;
    padding: 14px 4% 0 !important;
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    font-size: 12px;
    line-height: 1.8;
    color: #8d998f;
  }
  .new_footer_bottm p {
    font-size: 12px !important;
    line-height: 1.9;
    color: #9da99f;
  }

  /* 搜索浮层 */
  .search_box_out {
    background: #f3f6ef !important;
    background-image: none !important;
  }
  .search_box_in {
    width: 88%;
    margin: 14% 6% 0;
  }
  .search_boxs {
    height: 42px;
    border: 2px solid #5f8f24;
    border-radius: 8px;
    overflow: hidden;
  }
  .search_boxs input[type=text] {
    width: 62%;
    height: 18px;
    line-height: 18px;
    margin-top: 10px;
    padding-left: 12px;
    font-size: 16px;
    color: #333;
  }
  .search_boxs input[type=text]+input {
    height: 42px;
    line-height: 42px;
    margin-top: 0;
    padding: 0 16px;
    border-radius: 0;
    background: #5f8f24;
    color: #fff;
    font-size: 15px;
  }
  .search_box_in .close_seach {
    position: absolute;
    top: 72px;
    right: 18px;
    width: 30px;
    height: 30px;
    margin: 0;
    background-size: contain;
    background-repeat: no-repeat;
  }
}
