@charset "utf-8";
/*
 * 企业环保信息公示网 EP 主题 - 移动端适配样式
 * 版本：20261127
 * 说明：仅在 viewport 生效后按断点覆盖，桌面端（>=1050px）维持原布局。
 */

/* ---------- 404 页面 ---------- */
.error-404 { max-width: 660px; margin: 20px auto 40px; text-align: center; padding: 16px; }
.error-code { font-size: 80px; font-weight: 700; color: #4cb050; line-height: 1.1; letter-spacing: 2px; }
.error-title { font-size: 20px; color: #333; margin: 6px 0 10px; }
.error-desc { font-size: 14px; color: #888; line-height: 1.8; margin: 0 0 22px; }
.error-actions a { display: inline-block; margin: 6px 5px; padding: 8px 18px; border-radius: 20px; font-size: 14px; }
.btn-home { background: #4cb050; color: #fff; }
.btn-plain { border: 1px solid #cdd8cd; color: #4cb050; background: #fff; }
.error-search { margin: 26px auto 0; display: flex; max-width: 420px; }
.error-search input { flex: 1; border: 1px solid #dcdfdc; border-right: 0; border-radius: 20px 0 0 20px; padding: 0 16px; height: 38px; font-size: 14px; box-sizing: border-box; }
.error-search button { border: 0; background: #4cb050; color: #fff; border-radius: 0 20px 20px 0; padding: 0 20px; font-size: 14px; cursor: pointer; }

/* ---------- 无障碍隐藏标题（SEO 用 H1） ---------- */
.ep-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 大屏内容宽度收敛 ---------- */
@media (min-width: 1400px) {
  .top-nav > ul { max-width: 1400px; }
  .content { max-width: 1400px; margin-left: auto; margin-right: auto; }
}

/* ---------- 平板 768 - 1049 ---------- */
@media (max-width: 1049px) and (min-width: 768px) {
  .top-nav { height: 76px; }
  .top-nav > ul > li { width: auto; padding: 0 12px; font-size: 16px; line-height: 76px; }
  .top-nav > ul > li.logo img { height: 48px; width: 48px; }
  .banner { height: 160px; }
  .banner > img:first-child { height: 160px; }
  .banner > img.tit { height: 62px; width: 480px; margin-left: -240px; }
  .content { width: 92%; padding: 30px 4%; }
  .guide1, .guide { font-size: 22px; }
  td { font-size: 13px; line-height: 40px; }
  .tb-con, .tb-con1 { max-height: 600px; }
}

/* ---------- 手机 <= 767 ---------- */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }

  /* 顶部导航：logo 单独一行，菜单居中换行 */
  .top-nav { height: auto; padding: 6px 0 2px; border-bottom: 1px solid #ededed; }
  .top-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; margin: 0; }
  .top-nav > ul > li {
    float: none; width: auto !important; flex: 0 0 auto;
    font-size: 15px; line-height: 1; padding: 9px 9px;
  }
  .top-nav > ul > li.logo { order: -1; flex: 0 0 100%; text-align: center; padding: 2px 0 8px; }
  .top-nav > ul > li.logo img { width: 44px; height: 44px; }

  /* 横幅：背景图铺满，标题图居中 */
  .banner { height: auto !important; box-sizing: border-box; padding: 18px 12px 20px; background: #eef5ec url(bg1.jpg) center / cover no-repeat; }
  .banner > img:first-child { display: none !important; }
  .banner > img.tit {
    position: static !important; display: block;
    width: 88% !important; max-width: 520px; height: auto !important;
    margin: 0 auto !important; left: auto !important; top: auto !important;
  }

  /* 内容容器 */
  .content { width: auto !important; padding: 16px 12px 24px; }
  .content .pos-relative { height: auto !important; padding: 0 0 4px; }
  .content .pos-relative hr { display: none; }
  .content .guide1 {
    position: static !important; display: block !important;
    width: auto !important; left: auto !important; top: auto !important;
    margin: 0 !important; padding: 0 0 4px;
    font-size: 18px !important; text-align: left;
    background: transparent !important;
  }
  .content .guide1 img { display: inline-block; vertical-align: middle; width: 24px; height: 24px; margin-right: 8px; }
  .content .guide {
    position: static !important; width: auto !important; left: auto !important;
    font-size: 18px !important; text-align: left; padding: 0 0 6px;
  }
  .content .pos-relative > span { float: none !important; display: block; padding-top: 0 !important; text-align: right; font-size: 13px; }

  /* 表格转卡片 */
  .information-disclosure1 { margin-top: 0; }
  .tb-con, .tb-con1 { border: 0 !important; border-radius: 0 !important; max-height: none !important; overflow: visible !important; }
  .information-disclosure1 table { display: block; width: 100% !important; table-layout: auto; }
  .information-disclosure1 tr {
    position: relative; display: block; box-sizing: border-box; background: #fff !important;
    border: 1px solid #e7e7e7; border-radius: 10px;
    padding: 12px 44px 10px 14px; margin: 0 0 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  }
  .information-disclosure1 tr.tbhead { display: none !important; }
  .information-disclosure1 td {
    display: block !important; width: auto !important; border: 0 !important;
    padding: 0 !important; line-height: 1.6; text-align: left !important;
    text-indent: 0 !important; white-space: normal !important; overflow: visible !important;
    font-size: 14px;
  }
  .information-disclosure1 td:nth-child(1) {
    font-size: 15px; font-weight: 700; color: #2f2f2f; line-height: 1.45; margin-bottom: 7px;
  }
  /* 行业类别 / 县区 / 起止日期 / 发布日期 → 小标签 */
  .information-disclosure1 td:nth-child(2),
  .information-disclosure1 td:nth-child(3),
  .information-disclosure1 td:nth-child(6),
  .information-disclosure1 td:nth-child(7) {
    display: inline-block !important; background: #f3f6f3; border-radius: 4px;
    padding: 0 7px !important; margin: 0 6px 6px 0;
    font-size: 12px; line-height: 1.9; color: #6d6d6d; vertical-align: top;
  }
  .information-disclosure1 td:nth-child(2)::before { content: "行业 "; color: #a2a2a2; }
  .information-disclosure1 td:nth-child(3)::before { content: "县区 "; color: #a2a2a2; }
  .information-disclosure1 td:nth-child(6)::before { content: "公示期 "; color: #a2a2a2; }
  .information-disclosure1 td:nth-child(7)::before { content: "发布 "; color: #a2a2a2; }
  .information-disclosure1 td:nth-child(4) {
    color: #454545; font-size: 13.5px; line-height: 1.5; margin-bottom: 5px;
    display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden !important;
  }
  .information-disclosure1 td:nth-child(5) {
    color: #8c8c8c; font-size: 12.5px; line-height: 1.5;
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important;
  }
  .information-disclosure1 td:nth-child(5)::before { content: "地址："; color: #a8a8a8; }
  /* 查看 / 编辑 / 附件 按钮 */
  .information-disclosure1 td:nth-child(8) {
    position: absolute !important; right: 8px; top: 8px; width: 34px !important; height: 34px;
  }
  .information-disclosure1 td:nth-child(8) a { display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; }
  .information-disclosure1 td:nth-child(8) img { width: 24px; height: 24px; }
  /* 手机端卡片不再需要上下留白行 */
  .information-disclosure1 tr.tbhead, .information-disclosure1 tr:empty { display: none !important; }

  /* 正文 */
  .article-content { font-size: 15px; line-height: 1.9 !important; }
  .article-content img, .tb-con1 img { max-width: 100%; height: auto; }
  .article-content table { display: table; width: 100% !important; }
  .article-content td, .article-content th { display: table-cell !important; width: auto !important; white-space: normal !important; padding: 4px 6px !important; }

  /* 表单（前台投稿/编辑/登录/注册） */
  input[type="text"], input[type="password"], input[type="email"], input[type="search"],
  select, textarea { max-width: 100%; box-sizing: border-box; }
  .wp-editor-wrap, .wp-editor-container, .mce-panel { max-width: 100%; }
  #new_post p label { display: block; }
  .inputy, .inputn { margin: 6px 4px; }

  /* 页脚 */
  .footer { height: auto; box-sizing: border-box; line-height: 1.9; padding: 14px 12px 18px; font-size: 12px; }
  .footer a { white-space: nowrap; }
  .footer img { vertical-align: middle; }

  .error-code { font-size: 64px; }
  .error-actions a { margin: 4px 3px; padding: 7px 14px; }
}

/* ---------- 小屏 <= 359 ---------- */
@media (max-width: 359px) {
  .top-nav > ul > li { font-size: 14px; padding: 8px 7px; }
  .content { padding-left: 10px; padding-right: 10px; }
  .information-disclosure1 tr { padding-right: 42px; }
}
