@charset "utf-8";
/* ============================================================
   昆诚劳务官网 - 全站响应式适配样式（移动端/窄屏）
   仅在窄屏生效，不影响 1100px 桌面布局
   ============================================================ */

html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }
.news_neirong img, .company_cont img { max-width: 100%; height: auto !important; }

/* ---------- <= 1180px：容器自适应 ---------- */
@media screen and (max-width: 1180px) {
  .sub_ad, .nav, .footer_nav, .link, .banquan p, #main, .lianxi, .other_ad,
  .hezuo, .hezuo_top, .about, .yewu, .shengchanxian {
    width: 100% !important;
    max-width: 1100px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
  .other_ad { height: auto; }
  .other_ad img { width: 100%; height: auto; }
  .yewu, .yewu_line, .liu_j, .liu_k, .liu_a { width: 100% !important; box-sizing: border-box; }
  .right { width: 100% !important; box-sizing: border-box; }
  .left { width: 221px; flex: 0 0 221px; }
  .lianxi { display: flex; gap: 16px; align-items: flex-start; }
  .right { flex: 1 1 auto; }
  .news_top, .news_nav, .news_neirong, .list, .next, .heng, .hezuo_top { width: 100% !important; box-sizing: border-box; }
  .news_neirong { padding-left: 14px; padding-right: 14px; }
  .no1 { width: 68%; }
  .no2 { width: 28%; }
}

/* ---------- <= 900px：平板/大屏手机 ---------- */
@media screen and (max-width: 900px) {
  #header { height: auto !important; }
  #header_top { height: auto; min-height: 27px; }
  .welcome { padding: 6px 12px; line-height: 1.6; letter-spacing: 0; font-size: 13px; }
  .header_ad { height: auto; padding: 8px 0; background-size: auto 100%; }
  .sub_ad { display: flex; flex-wrap: wrap; align-items: center; height: auto; }
  .logo { width: 62px; height: 62px; margin: 0 6px 0 0; }
  .logo img { width: 62px; height: 62px; }
  .kangcheng1 { width: auto; height: auto; margin-left: 4px; }
  .kangcheng1 img { height: 44px; width: auto; }
  .ad_zhaopin { float: none; margin: 6px 0 0 auto; }
  .ad_zhaopin img { height: 50px; width: auto; }

  .nav { height: auto !important; background: #e9e9e9; padding: 0 6px; }
  .nav ul { display: flex; flex-wrap: wrap; height: auto; }
  .nav ul li { float: none; width: 33.333%; height: 38px; margin: 0 !important; background: none !important; border-bottom: 1px solid #d5d5d5; }
  .nav ul li a { width: 100%; line-height: 38px; font-size: 15px; color: #333 !important; }
  .nav ul li a:hover { background: #1c7bc4; color: #fff !important; }

  #main { display: block; padding: 0 10px; }
  .wenhua, .yewu { float: none !important; width: 100% !important; height: auto !important; margin-left: 0 !important; }
  .wenhua img { width: 100%; height: auto; }
  .yewu_menu { width: 100% !important; }
  .paiqian { width: 49% !important; height: auto; margin: 6px 1% 0 0; box-sizing: border-box; }
  .paiqian img { width: 100%; height: auto; }
  .paiqian_cont { width: 100% !important; height: auto; padding: 8px 0; }
  .company_news { float: none !important; width: 100% !important; height: auto !important; margin: 10px 0 0 !important; }
  .company_pic { width: 100%; height: auto; margin: 0; }
  .company_pic img { width: 100%; height: auto; }
  .company_cont { padding: 10px 12px; line-height: 1.9; font-size: 15px; }
  .main_ad { width: 100% !important; height: auto !important; }
  .main_ad img { width: 100%; height: auto; }

  .news, .news.ls, .news.r { float: none !important; width: 100% !important; margin: 10px 0 0 !important; height: auto !important; }
  .news_top, .news_cont { width: 100% !important; height: auto !important; }
  .news_c { width: 100% !important; height: auto; }
  .bg { display: none; }
  .news_pic { width: 32% !important; height: auto !important; margin: 6px 0 6px 12px; box-sizing: border-box; }
  .news_pic img { width: 100%; height: auto; }
  .im_news { width: 58% !important; height: auto; }
  .news_cl { padding: 0 12px 10px; line-height: 1.8; }
  .news_cont p { width: auto !important; height: auto; margin: 8px 12px 0; line-height: 1.8; }
  div[style*="height:292px"], div[style*="height: 292px"] { height: auto !important; }

  .hezuo { width: 100% !important; height: auto !important; padding-bottom: 12px; background-size: cover; }
  .hezuo_top { height: auto !important; display: flex; flex-wrap: wrap; align-items: center; }
  .anli { margin: 6px 0 0 12px; }
  .anli_cont { margin: 6px 0 0 10px; float: none; font-size: 13px; color: #fff; }
  .anli_more { margin: 6px 12px 0 auto; }
  .qiye1 { width: 31% !important; height: auto; margin: 8px 1%; }
  .qiye1 img, .img1 { width: 100% !important; height: auto !important; }
  .qiye1 p { width: 100% !important; }

  .link { height: auto !important; display: flex; flex-wrap: wrap; padding: 4px 8px; box-sizing: border-box; }
  .link p { height: auto; line-height: 24px; margin: 0 14px 0 0; }
  #footer { height: auto !important; padding: 14px 0 6px; }
  .footer_nav { height: auto !important; display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .footer_top { margin: 0 22px 12px 0; }
  .weixin { width: 100% !important; height: auto; margin-top: 6px; }
  .weixin .guanzhu, .guanzhu_cont { float: none; display: inline-block; vertical-align: middle; }
  .banquan { height: auto !important; padding: 12px; line-height: 1.8; }
  .banquan p { letter-spacing: 0; }
  .suspend { display: none !important; }

  /* 内页 */
  .lianxi { display: block; padding: 0 10px; }
  .left, .company { width: 100% !important; float: none !important; }
  .left { margin-bottom: 10px; }
  .com_nav { width: 100% !important; box-sizing: border-box; }
  .com_about { width: 100% !important; height: auto !important; padding-bottom: 10px; }
  .com_about p { width: auto; margin: 6px 10px 0; padding-left: 10px; }
  .com_about p a { display: inline-block; }
  .lianxi1 { width: 100% !important; height: auto !important; padding-bottom: 10px; }
  .lianxi1 p { width: auto; }
  .right { float: none !important; width: 100% !important; }
  .news_top { height: auto !important; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; padding: 6px 10px !important; }
  .laowu_nav { padding-top: 0; }
  .more { padding-top: 0; height: auto; line-height: 1.6; }
  .news_nav { width: 100% !important; height: auto !important; min-height: 46px; margin-top: 8px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .news_nav h1, .news_nav strong { font-size: 21px !important; line-height: 1.5; text-align: center; }
  .news_neirong { width: 100% !important; padding: 12px 14px 20px; line-height: 1.9; font-size: 15px; box-sizing: border-box; }
  .news_neirong p { margin-top: 12px; font-size: 15px; line-height: 1.9; }
  .news_neirong table { width: 100% !important; max-width: 100%; display: block; overflow-x: auto; }
  .news_neirong td, .news_neirong th { word-break: break-word; }
  .news_neirong img { display: block; margin: 8px auto; }
  .list { height: auto !important; display: flex; align-items: center; padding: 6px 0; }
  .no1 { width: 68% !important; float: none; }
  .no1 a { display: block; line-height: 1.6; }
  .no2 { width: 30% !important; float: none; margin-left: 0; text-align: right; }
  .next { height: auto !important; line-height: 2; padding: 10px 0; font-size: 13px; }
  .next input[type=text] { width: 48px; }
  .about { width: 100% !important; height: auto !important; padding-bottom: 10px; background-size: cover; }
  .about span { width: 44% !important; height: auto; margin: 8px 0 0 4%; }
  .about span a { font-size: 13px; color: #fff; }

  /* 主营业务/服务页 */
  .yewu { width: 100% !important; height: auto !important; }
  .yewu_line { height: auto !important; line-height: 2; padding: 4px 0; }
  .pic { float: none !important; width: 100% !important; height: auto !important; text-align: center; }
  .pic img { display: inline-block; max-width: 100%; }
  .yewu_nav { width: 100% !important; height: auto !important; padding: 0 !important; }
  .yewu_nav p { text-indent: 2em; line-height: 1.9; }

  /* 服务流程页 */
  .liu_k { height: auto !important; background: none !important; padding: 6px 0; }
  .liu1, .liu2, .liu3, .liu4 { margin: 6px 0 0 0 !important; width: 100% !important; padding: 0 10px; }
  .liu1 p { margin-top: 10px; }
  .liu_h { font-size: 20px; text-align: center; }
  .liu_j { padding: 8px 10px; }
  .liu_a { height: auto !important; }
  .liu_b { font-size: 18px; padding-left: 10px; }
  .liu_c { width: 46% !important; height: auto; margin: 8px 2% 0; float: left; box-sizing: border-box; }
  .heng { height: auto !important; line-height: 2; padding: 4px 10px; }
}

/* ---------- <= 640px：手机 ---------- */
@media screen and (max-width: 640px) {
  body { font-size: 15px; }
  .nav ul li { width: 50%; }
  .welcome { font-size: 12px; }
  .logo { width: 52px; height: 52px; }
  .logo img { width: 52px; height: 52px; }
  .kangcheng1 img { height: 38px; }
  .yewu_menu { font-size: 15px; letter-spacing: 2px; }
  .company_cont { font-size: 15px; line-height: 1.9; letter-spacing: 0; }
  .c_m { height: auto; padding: 8px 5px; }
  .c_t { float: none; }
  .more { float: none; width: auto; }
  .more a { float: none; padding-right: 0; }
  .news_pic { width: 100% !important; margin: 0; }
  .news_pic img { width: 100%; height: auto; }
  .im_news { width: 100% !important; margin: 6px 0 0; }
  .qiye1 { width: 47% !important; }
  .footer_top { margin: 0 16px 12px 0; }
  .news_neirong, .news_neirong p { font-size: 16px; line-height: 1.9; }
  .news_neirong { padding: 10px 12px 18px; }
  .news_nav h1, .news_nav strong { font-size: 19px !important; }
  .list { flex-wrap: wrap; }
  .no1 { width: 100% !important; }
  .no2 { width: 100% !important; text-align: left; font-size: 12px; color: #999; }
  .no2 { margin-top: 2px; }
  .next { font-size: 12px; }
  .next form input[type=submit] { margin-top: 4px; }
  .news_top .more { width: 100%; font-size: 12px; color: #888; }
  .com_about p { height: auto; line-height: 1.8; }
  .about span { width: 46% !important; }
  .liu_c { width: 96% !important; margin: 8px 2% 0; }
  .paiqian { width: 100% !important; margin-right: 0; }
  .suspend { display: none !important; }
  .yewu_nav p { font-size: 15px; }
  .yewu_nav p a { font-size: 15px; }
  /* 表格与长英文防溢出 */
  .news_neirong, .news_neirong p, .news_neirong td { word-wrap: break-word; overflow-wrap: break-word; }
  .news_neirong pre { white-space: pre-wrap; }
}

/* ============================================================
   移动端精修（覆盖前序规则，解决错位/溢出/上下居中）
   ============================================================ */
@media screen and (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  /* 顶部欢迎条：可换行、上下居中、不撑高 */
  #header_top { height: auto !important; min-height: 0 !important; }
  .welcome {
    height: auto !important; padding: 6px 12px !important; margin: 0 !important;
    font-size: 12px !important; line-height: 1.7 !important; letter-spacing: 0 !important;
    text-align: center; display: block; white-space: normal; word-break: break-all;
  }

  /* 头部：logo + 品牌名一行，广告图独占一行，避免挤压溢出 */
  #header { height: auto !important; }
  .header_ad { height: auto !important; padding: 6px 0 8px !important; background-size: auto 100% !important; }
  .sub_ad { width: 100% !important; max-width: 100% !important; display: flex !important; flex-wrap: wrap; align-items: center; height: auto !important; padding: 0 12px !important; box-sizing: border-box; }
  .logo { flex: 0 0 48px; width: 48px !important; height: 48px !important; margin: 0 8px 0 0 !important; }
  .logo img { width: 48px !important; height: 48px !important; }
  .kangcheng1 { flex: 1 1 auto; width: auto !important; height: auto !important; margin: 0 !important; max-width: calc(100% - 56px); }
  .kangcheng1 img { width: 100% !important; max-width: 210px; height: auto !important; }
  .ad_zhaopin { flex: 0 0 100%; width: 100% !important; margin: 8px 0 0 !important; float: none !important; }
  .ad_zhaopin img { display: block; width: 100% !important; height: auto !important; max-height: 120px; object-fit: cover; }

  /* 导航：整行铺满，等分不溢出，文字上下居中 */
  .nav { width: 100% !important; max-width: 100% !important; height: auto !important; padding: 0 !important; margin: 0 !important; background: #ececec !important; box-sizing: border-box; }
  .nav ul { display: flex !important; flex-wrap: wrap; width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
  .nav ul li {
    float: none !important; width: 33.3333% !important; flex: 0 0 33.3333%; height: 40px !important;
    margin: 0 !important; background: none !important; box-sizing: border-box;
    border-bottom: 1px solid #dcdcdc; border-right: 1px solid #dcdcdc;
    display: flex; align-items: center; justify-content: center;
  }
  .nav ul li a {
    display: flex !important; align-items: center; justify-content: center;
    width: 100% !important; height: 100% !important; line-height: 1.2 !important;
    font-size: 14px !important; text-align: center; color: #333 !important;
    padding: 0 !important; box-sizing: border-box; overflow: hidden; white-space: nowrap;
  }
  .nav ul li a:hover { background: #1c7bc4; color: #fff !important; }

  /* 主营业务卡片：图片定高裁切，标题居中，上下齐整 */
  .paiqian { width: 100% !important; height: auto !important; margin: 8px 0 0 !important; }
  .paiqian > a { display: block; }
  .paiqian img { display: block; width: 100% !important; height: 150px !important; object-fit: cover; }
  .paiqian_cont {
    width: 100% !important; height: 36px !important; line-height: 36px !important;
    padding: 0 !important; text-align: center; font-size: 15px !important; letter-spacing: 2px;
  }
  .paiqian_cont a { display: inline-block; line-height: 36px; }

  /* 栏目标题行：标题与“更多”左右对齐 */
  .c_m { display: flex !important; align-items: center; justify-content: space-between; height: auto !important; padding: 8px 10px !important; box-sizing: border-box; }
  .c_t { float: none !important; margin: 0 !important; }
  .more { float: none !important; width: auto !important; height: auto !important; padding: 0 !important; }
  .more a { float: none !important; padding: 0 !important; font-size: 13px !important; }

  /* 新闻列表行：标题独占一行、日期在下，避免挤压 */
  .company_news p, .news_cont p { white-space: normal !important; line-height: 1.8 !important; padding: 2px 0; }

  /* 图片/广告位不溢出 */
  .main_ad img, .other_ad img, .wenhua img { width: 100% !important; height: auto !important; }

  /* 通用容器 */
  #main, .lianxi { width: 100% !important; max-width: 100% !important; padding-left: 10px !important; padding-right: 10px !important; box-sizing: border-box; }
}

@media screen and (max-width: 400px) {
  .nav ul li { width: 33.3333% !important; flex: 0 0 33.3333%; }
  .nav ul li a { font-size: 13px !important; }
  .paiqian img { height: 130px !important; }
}

/* 第二轮精修：面包屑、正文顺序、图片不裁切 */
@media screen and (max-width: 768px) {
  .lianxi { display: flex !important; flex-direction: column-reverse; }
  .lianxi > .left, .lianxi > .right { width: 100% !important; float: none !important; }
  .left { margin-bottom: 0; margin-top: 12px; }

  .news_top { display: block !important; height: auto !important; padding: 10px 12px !important; box-sizing: border-box; }
  .news_nav { margin: 0 !important; min-height: 0 !important; padding: 0 !important; }
  .news_nav h1, .news_nav strong { font-size: 19px !important; }
  .laowu_nav {
    float: none !important; display: block !important; width: 100% !important;
    margin: 6px 0 0 !important; padding: 0 !important;
    font-size: 12px !important; font-weight: normal !important; line-height: 1.8 !important;
    text-align: center !important; color: #666 !important;
  }
  .laowu_nav a { color: #1c7bc4 !important; }
  .news_top .more { display: block; width: 100% !important; text-align: center; margin-top: 4px; }

  /* 主业务卡片图：完整显示，不裁切文字 */
  .paiqian img { height: 150px !important; object-fit: contain !important; background: #eef3f8; }
  .paiqian_cont { border-top: 1px solid #fff; }

  /* 顶部通栏广告图限高，避免过长 */
  .other_ad { height: auto !important; overflow: hidden; }
  .other_ad img { width: 100% !important; height: auto !important; max-height: 160px; object-fit: cover; }
}

/* 移动端：电话按钮单独一行，不覆盖导航格 */
@media (max-width: 768px) {
  .nav_tel { position: static !important; width: 100% !important; height: 40px !important; line-height: 40px !important; }
  .nav_tel a { font-size: 16px !important; line-height: 40px !important; }
}

/* 小屏业务卡片改两列，缩短页面高度 */
@media (max-width: 640px) {
  .paiqian { width: 48.5% !important; margin: 8px 0 0 !important; }
  .paiqian.l { margin-right: 3% !important; }
  .paiqian img { height: 132px !important; }
  .paiqian_cont { font-size: 14px !important; letter-spacing: 1px !important; }
}
/* 公司简介栏在移动端同样铺满 */
@media (max-width: 768px) {
  .company_news.wide { width: 100% !important; float: none !important; }
}

/* 手机端：公司简介配图不再放大占屏 */
@media (max-width: 768px) {
  .company_pic { float: none !important; width: 100% !important; margin: 0 0 8px !important; text-align: center; }
  .company_pic img { max-height: 180px !important; width: auto !important; max-width: 100% !important; }
  .company_cont { padding: 10px 12px !important; }
}