/* =========================================================================
   Rodd Hughes 手机端适配层  (mobile.css)
   -------------------------------------------------------------------------
   设计原则
   1. 全部规则写在 @media (max-width: 768px) 内，PC 端渲染结果与改造前一致。
   2. 手机端新增模块（首屏文案层 / 领域网格 / 投递卡 / 底部固定条 / 抽屉菜单）
      在 PC 上一律 display:none，不占据布局空间。
   3. 只重排、不改设计语言：沿用原站字体、棕色主色 #86674a、白底与浅灰底。
   4. 内容全部来自后台同一份数据，本文件不含任何硬编码文案。
   ========================================================================= */

/* ---------- 手机专属元素：桌面端不渲染 ---------- */
.m-burger,
.m-drawer,
.m-bar,
.m-hero,
.m-intro,
.m-domains,
.m-cta,
.m-foot-domains { display: none; }

@media (max-width: 768px) {

  /* =====================================================================
     0. 盒模型统一
     原站是 content-box：一旦把某栏改成 width:100% 又保留 padding，
     实际宽度就会超出视口、右侧被裁。手机上统一 border-box 最稳。
     ===================================================================== */
  *, *::before, *::after { box-sizing: border-box; }

  /* =====================================================================
     1. 基础
     ===================================================================== */
  body {
    /* 给底部固定条留出高度，避免最后一行内容被盖住 */
    padding-bottom: 72px;
    -webkit-text-size-adjust: 100%;
  }
  img { max-width: 100%; }
  /* 原站所有栏宽都是 1200 定宽居中，手机上改为满宽 + 左右留白 */
  .auto {
    width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  /* 法律条款正文 */
  .legal-doc {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    margin: 28px auto 48px;
    font-size: 14.5px;
    line-height: 1.85;
  }
  .legal-doc h1 { font-size: 22px; margin-bottom: 18px; }
  .legal-doc h2 { font-size: 16px; margin: 26px 0 10px; }
  .legal-doc .legal-contact { padding: 14px 16px; }

  /* =====================================================================
     2. 顶栏：白底同款 logo + 汉堡，替换 1200 定宽横排菜单
     ===================================================================== */
  .head { height: 56px; }
  /* 原站用 <div style="height:70px"> 顶开固定头部，手机上同步收窄 */
  .head + div[style] { height: 56px !important; }
  .head_1 {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .logo { line-height: 56px; }
  .logo img { height: 14px; margin: 21px 0; }
  .nav { display: none !important; }

  .m-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    float: right;
    width: 40px;
    height: 56px;
    margin-right: -6px;
    padding-right: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-burger i {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #4a4a4a;
    border-radius: 2px;
  }
  .m-burger i:nth-child(3) { width: 14px; }

  /* ---------- 抽屉菜单 ---------- */
  .m-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
  }
  .m-drawer.open { display: flex; }
  html.m-open,
  html.m-open body { overflow: hidden; }

  .m-drawer-hd {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 10px 0 16px;
    border-bottom: 1px solid #eee;
  }
  .m-drawer-hd img { width: auto; height: 14px; }
  .m-close {
    width: 44px;
    height: 44px;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
  }
  .m-drawer-bd {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 34px;
  }
  .m-drawer-bd ul li { border-bottom: 1px solid #f2f2f2; }
  .m-lv1 {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #4a4a4a;
  }
  .m-sub { padding: 0 20px 10px 30px; }
  .m-sub:empty { display: none; padding: 0; }
  .m-sub a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    color: #777;
  }
  /* 可折叠子菜单：JS 加上 .m-has-sub / .m-collapsed 后生效，脚本缺席时子项照常显示 */
  .m-has-sub { position: relative; }
  .m-has-sub .m-lv1 { padding-right: 58px; }
  .m-sub.m-collapsed { display: none; }
  .m-sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 50px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-sub-toggle i {
    display: block;
    width: 9px;
    height: 9px;
    margin: -4px auto 0;
    border-right: 1.5px solid #b0b0b0;
    border-bottom: 1.5px solid #b0b0b0;
    transform: rotate(45deg);
    transition: transform .22s ease;
  }
  .m-has-sub.m-open .m-sub-toggle i { transform: rotate(-135deg); }
  .m-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #999;
  }
  .m-lang a { color: #666; font-weight: bold; }

  /* =====================================================================
     3. 首页：首屏文案层 + 简介卡 + 领域网格 + 投递卡
     ===================================================================== */

  /* 原站首屏是一张纯大图（无文案），手机上隐藏，改用下方 .m-hero */
  #zhongjian,
  .m-hero-hide { display: none; }

  .m-hero {
    display: block;
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #2b2521;
  }
  .m-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: .8;
  }
  .m-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,16,12,.62) 0%, rgba(20,16,12,.18) 40%, rgba(20,16,12,.88) 100%);
  }
  .m-hero-bd {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 26px;
    z-index: 2;
    color: #fff;
  }
  .m-hero-bd h1 {
    font-size: 19px;
    line-height: 1.55;
    font-weight: normal;
    letter-spacing: .5px;
    margin-bottom: 10px;
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
  }
  .m-hero-sub {
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    letter-spacing: .5px;
  }
  .m-hero-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  .m-btn {
    flex: 1;
    height: 46px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: .5px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-btn-solid { background: #a8804f; color: #fff; }
  .m-btn-line { border: 1px solid rgba(255,255,255,.55); color: #fff; }

  .m-intro {
    display: block;
    background: #fff;
    padding: 24px 20px 26px;
  }
  .m-intro h2 {
    font-size: 15px;
    font-weight: normal;
    color: #663300;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .m-intro p {
    font-size: 14px;
    line-height: 1.9;
    color: #666;
  }
  .m-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #86674a;
  }

  .m-domains {
    display: block;
    background: #f5f5f5;
    padding: 26px 16px 10px;
  }
  .m-sec-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
  }
  .m-sec-h h2 {
    font-size: 15px;
    font-weight: normal;
    color: #663300;
    letter-spacing: 1px;
  }
  .m-sec-h a { font-size: 12.5px; color: #86674a; }
  .m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .m-grid a {
    background: #fff;
    border: 1px solid #ece7e0;
    border-radius: 3px;
    padding: 13px 10px;
    font-size: 13px;
    line-height: 1.2;
    color: #5a534c;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-cta {
    display: block;
    margin: 22px 16px 30px;
    padding: 24px 20px;
    background: #86674a;
    border-radius: 8px;
    color: #fff;
  }
  .m-cta h2 {
    font-size: 17px;
    font-weight: normal;
    margin-bottom: 8px;
  }
  .m-cta p {
    font-size: 12.5px;
    line-height: 1.8;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
  }
  .m-cta .m-btn { background: #fff; color: #6b4f36; font-weight: bold; }

  /* =====================================================================
     4. 底部固定操作条（全站）
     ===================================================================== */
  .m-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 10px;
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #ece7e0;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .m-bar-btn,
  .m-bar-tel {
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-bar-btn { flex: 1.4; background: #a8804f; color: #fff; }
  .m-bar-tel {
    flex: 1;
    border: 1px solid #d8cfc4;
    color: #5a534c;
    font-size: 13px;
    white-space: nowrap;
  }
  /* Cookie 提示条出现时让位：先让用户处理告知，关闭后固定条自动回来 */
  html.has-consent .m-bar { display: none; }
  html.has-consent body { padding-bottom: 140px; }

  /* =====================================================================
     5. 页脚：1200 五栏 → 单列堆叠
     ===================================================================== */
  .foot .auto { padding-left: 20px; padding-right: 20px; }
  .logo_f { margin: 28px 0 18px; }
  .logo_f img { height: 14px; }
  .foot_1 { margin-left: 0; padding-bottom: 10px; }
  .foot_1 ul li {
    /* 模板第一列带 inline style="width:15%"，必须 !important 才能覆盖，
       否则城市名会被压成 25px 宽、一字一行 */
    width: 100% !important;
    float: none;
    margin-bottom: 16px;
  }
  /* 手机端 12 个细分领域用单独的整块网格（下表 .m-foot-domains），
     PC 的三列排版在这里隐藏，避免出现空标题行 */
  .foot_1 ul li:nth-child(2),
  .foot_1 ul li:nth-child(3),
  .foot_1 ul li:nth-child(4) { display: none; }
  .foot_1 ul li:last-child { width: 100%; }
  .foot_1 ul li h1 { font-size: 14px; margin-bottom: 8px; }
  .foot_1 ul li p {
    display: inline-block;
    width: 48%;
    font-size: 13px;
    line-height: 2;
  }
  .foot_1 ul li p a { font-size: 13px; line-height: 2; }
  .foot_img { display: inline-block; margin-right: 12px; }
  .foot_img img { width: 36px; height: 36px; }
  /* 二维码浮层在触屏上易误触，改为点击不弹出（保留图标） */
  .foot_img .code { display: none !important; }

  .m-foot-domains {
    display: block;
    margin: 0 0 6px;
  }
  .m-foot-domains h1 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  .m-fd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .m-fd-grid a {
    font-size: 13px;
    line-height: 2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .foot_3 {
    line-height: 1.9;
    padding: 14px 0 4px;
    font-size: 13px;
  }
  .foot_3 a { margin: 0 10px; display: inline-block; }
  .foot_legal { text-align: left; }
  .foot_legal a,
  .foot_legal span { display: block; }
  .foot_legal i { display: none; }
  .foot_legal_2 { text-align: left; padding: 8px 16px 0; }
  .foot_2 {
    text-align: left;
    font-size: 12px;
    line-height: 1.7;
    padding: 10px 16px 16px;
  }

  /* =====================================================================
     6. 关于我们
     ===================================================================== */
  .about_1 ul li {
    /* 原站 .about_right 自带 width:44% !important，必须用 !important 才能覆盖，
       否则公司简介会被压成 158px 宽的窄条、文字竖着挤 */
    width: 100% !important;
    float: none !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .about_1 ul li img {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
  }
  .about_right {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 20px 26px !important;
    background-size: 55%;
    background-position: center 20px;
  }
  .about_right .soller {
    height: auto !important;
    max-height: none;
    overflow: visible;
    padding: 18px 0 22px;
  }
  .about_right h1 { font-size: 18px; margin: 26px 0 16px; }
  .about_right p { font-size: 14px; line-height: 1.85; margin-bottom: 16px; }

  .advantage_1a { padding-top: 26px; padding-bottom: 10px; }
  /* PC 上两个卡片组之间是 margin 30 + ul margin 15 叠出来的大空档，
     手机上只保留和卡片间距一致的 14px，避免出现一条明显的空白带 */
  .advant_1b { width: 100%; margin-bottom: 0 !important; }
  .advant_1b ul { margin-bottom: 0 !important; }
  .advant_1b ul li {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 20px 18px;
    font-size: 13.5px;
    line-height: 1.8;
  }
  .advant_1b h2 { font-size: 15px; }
  .advant_1b p {
    font-size: 13.5px;
    line-height: 1.8;
    /* 原站限制 5 行 + JS 截断加省略号，手机上改为完整显示 */
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  /* 卡片正文原本写死 110px 高、由脚本截字，手机上一律改为自然高度 */
  .mode {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 14px;
    overflow: visible;
  }
  .mode-text {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
  }
  .zhuangshi { margin: 18px 0 26px; text-align: center; }
  /* 「OUR STRENGTHS」是图片（448×39）。PC 上靠 margin-left:60px 右移，
     手机上 448px 宽必然超出 390px 视口被裁掉尾字母，改为居中并等比缩放 */
  .zhuangshi img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 34px;
    margin: 0 auto !important;
    display: block;
  }

  /* PC 是 flex 左右两栏，手机必须改纵向，否则两个 100% 宽度会横向溢出 */
  .sense_1 {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 26px;
    padding-bottom: 20px;
  }
  .sense_left {
    width: 100% !important;
    flex: 1 1 auto;
    float: none !important;
    overflow: visible;
  }
  .sense_right {
    width: 100% !important;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 22px;
    display: block;
    float: none !important;
  }
  .sense_right img {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
  }
  .sense_left h1 { font-size: 17px; margin-bottom: 16px; }
  .sense_left ul li { margin-bottom: 18px; }
  .sense_left ul li:last-child { margin-bottom: 0; }
  .sense_icon { width: 40px; height: 40px; line-height: 40px; margin-right: 14px; }
  .sense_icon img { width: auto; height: 22px; margin: 9px 0; }
  .sense_text { font-size: 13.5px; line-height: 1.8; }
  .sense_text h2 { font-size: 15px; line-height: 1.6; }
  .sense_text p { font-size: 13.5px; line-height: 1.8; }
  .sense_en .sense_text p { font-size: 13px; line-height: 1.75; }

  /* =====================================================================
     7. 细分领域：左右两栏 → 单列；表单分三段
     ===================================================================== */
  .field { width: 100%; padding: 0 16px; box-sizing: border-box; }
  .field_left,
  .field_right {
    width: 100% !important;
    float: none !important;
    height: auto !important;
  }
  .field_left { padding: 20px 0 8px; }
  .field_left_1 h1 { font-size: 19px; line-height: 1.5; margin-bottom: 12px; }
  .field_left_1 p,
  .field_left p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 12px;
  }
  .field_left_2 { margin-top: 18px; }
  .field_left_1a { width: 100%; float: none; margin-bottom: 14px; }
  .field_left_1a h1 { font-size: 15px; margin-bottom: 8px; }
  .field_left_1a ul li {
    font-size: 13.5px;
    line-height: 1.9;
  }
  .field_right {
    padding: 22px 18px 26px;
    margin: 12px 0 26px;
    box-sizing: border-box;
  }
  .field_right h1 { font-size: 17px; margin-bottom: 14px; }
  .field_right ul li input,
  .field_right ul li select {
    width: 100% !important;
    box-sizing: border-box;
  }
  /* 原站表单里 select 用 48% 并排，手机上改为整行更易点按 */
  .field_right ul li select.fl,
  .field_right ul li select.fr {
    width: 100% !important;
    float: none !important;
    margin-bottom: 8px;
  }

  /* ---------- 投递表单：三步推进 ---------- */
  .m-stepbar {
    display: flex;
    gap: 6px;
    margin: 0 0 8px;
  }
  .m-stepbar i {
    flex: 1;
    height: 3px;
    background: #e8e2da;
    border-radius: 2px;
  }
  .m-stepbar i.on { background: #a8804f; }
  .m-stepname {
    font-size: 12.5px;
    color: #8a7f73;
    letter-spacing: .3px;
    margin-bottom: 14px;
  }
  .m-stepnav { margin-top: 4px; }
  .m-stepnav button,
  .field_right .m-stepnav button,
  .contact_r .m-stepnav button {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    border-radius: 3px;
    background: #a8804f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }
  .m-stepnav .m-back {
    height: 42px;
    margin-top: 8px;
    background: none;
    color: #8a7f73;
    border: 1px solid #ddd6cc;
    font-size: 13px;
  }

  /* =====================================================================
     8. 联系我们
     ===================================================================== */
  .contact { width: 100%; padding: 0 16px; box-sizing: border-box; }
  .contact_l,
  .contact_r {
    width: 100% !important;
    float: none !important;
  }
  .contact_l { padding-top: 16px; }
  .contact_l ul li {
    font-size: 13.5px;
    line-height: 1.85;
    margin-bottom: 18px;
  }
  .contact_l li .office-name { font-size: 15px; }
  .map { width: 100%; height: 240px; margin: 6px 0 0; }
  .map img { width: 100%; height: 100%; object-fit: cover; }
  .contact_r {
    padding: 22px 18px 26px;
    margin: 22px 0 26px;
    box-sizing: border-box;
  }
  .contact_r h1 { font-size: 17px; margin-bottom: 14px; }
  .contact_r ul li input,
  .contact_r ul li select { width: 100% !important; box-sizing: border-box; }
  .contact_r ul li select.fl,
  .contact_r ul li select.fr {
    width: 100% !important;
    float: none !important;
    margin-bottom: 8px;
  }

  /* =====================================================================
     9. 加入我们 / 招聘相关
     ===================================================================== */
  .daolu { width: 100%; padding: 28px 16px 32px; box-sizing: border-box; }
  /* 原站用 margin-left 做左右错落的版式，手机上一律归零改单列 */
  .daolu_l,
  .daolu_r,
  .study,
  .study ul li,
  .reward_1,
  .reward_r,
  .duty_img,
  .duty_right,
  .join_mask { margin-left: 0 !important; margin-right: 0 !important; }
  .daolu_l,
  .daolu_r {
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }
  .daolu_l img {
    width: 100%;
    height: auto;
    max-width: 100%;
    float: none;
    display: block;
  }
  .daolu_r { padding: 18px 0 24px; }
  .daolu_r h1 {
    font-size: 17px;
    line-height: 44px;
    text-indent: 24px;
    background-size: 100% 100%;
    margin-bottom: 14px;
  }
  .daolu_r p { margin-top: 14px; font-size: 13.5px; line-height: 1.85; }

  .study { width: 100%; padding: 0 16px; box-sizing: border-box; }
  .study ul li {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-bottom: 14px;
  }
  .study ul li h1 { font-size: 16px; }
  .study ul li p { font-size: 13.5px; line-height: 1.8; }

  .reward_1,
  .duty_img { height: auto !important; }
  .reward_1 img,
  .duty_img img { width: 100%; height: auto; min-height: 0; display: block; }
  .reward_r,
  .duty_right {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 18px 16px 24px;
    box-sizing: border-box;
    overflow: visible !important;
  }
  .reward_r h1,
  .duty_right h1 { font-size: 17px; }
  .reward_r p,
  .duty_right p,
  .reward_r li { font-size: 13.5px; line-height: 1.85; }
  .reward_r ul li { height: auto !important; }
  /* 「申请加入」原站是 330px 固定高 + 文字绝对定位盖在图上，
     手机上文一多就溢出被裁，且露出容器底部的白条。
     这里改成「上图 + 下文」自然高度，文字块用品牌棕底保证可读。 */
  .join {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #86674a;
  }
  .join > img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .join_mask {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 20px 18px 24px;
    box-sizing: border-box;
    overflow: visible !important;
    background: #86674a;
    text-align: left;
  }
  .join_mask p {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.95;
    color: #fff;
  }

  /* =====================================================================
     10. 提交成功页
     ===================================================================== */
  .success {
    width: 100% !important;
    box-sizing: border-box;
    padding: 40px 20px;
  }
  .success h1 { font-size: 18px; line-height: 1.6; }
}
