/* 移动端样式（wap 模板专用）。PC 端继续用旧站 index.css，互不影响。 */

:root {
  --brand: #115a87;
  --brand-2: #0268b3;
  --accent: #ec6c00;
  --ink: #1f2329;
  --ink-2: #55606b;
  --ink-3: #949ba3;
  --line: #e6eaee;
  --bg: #f4f6f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol, li { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

/* ---------------- 顶部 ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 0 4%; background: #fff;
  border-bottom: 1px solid var(--line);
}
.hdr-logo img { height: 30px; width: auto; }
.hdr-menu { padding: 6px 8px; color: var(--brand); font-size: 22px; line-height: 1; }

/* 抽屉导航 */
.nav-mask {
  position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: 74%; max-width: 320px; background: #fff;
  transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column; overflow-y: auto;
}
body.nav-open .nav-mask { opacity: 1; visibility: visible; }
body.nav-open .nav-drawer { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.nav-drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--brand);
  border-bottom: 1px solid var(--line);
}
.nav-drawer-hd button { font-size: 22px; line-height: 1; color: var(--ink-3); }
.nav-drawer > ul { padding: 6px 0; }
.nav-drawer > ul > li > a {
  display: block; padding: 12px 16px; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid #f2f4f6;
}
.nav-drawer .sub { padding: 0 0 6px 16px; background: #fafbfc; }
.nav-drawer .sub a { display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-2); }
.nav-drawer-ft { margin-top: auto; padding: 16px; font-size: 13px; color: var(--ink-3); }

/* ---------------- 通用块 ---------------- */
.wrap { padding: 12px 4%; }
.sec { background: #fff; margin: 10px 0; border-radius: 10px; overflow: hidden; }
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
}
.sec-hd h2 {
  position: relative; padding-left: 11px; font-size: 17px; font-weight: 600; color: var(--ink);
}
.sec-hd h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 2px; background: var(--brand);
}
.sec-hd .more { font-size: 13px; color: var(--ink-3); }
.sec-body { padding: 0 14px 14px; }

/* ---------------- 轮播 ---------------- */
.banner { position: relative; background: #d8dee5; }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-item { flex: 0 0 100%; scroll-snap-align: start; }
.banner-item img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 6px; justify-content: center;
}
.banner-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55);
  transition: width .2s, background .2s;
}
.banner-dots i.on { width: 16px; border-radius: 4px; background: #fff; }

/* ---------------- 通知公告 ---------------- */
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.notice-tag {
  flex: none; padding: 2px 8px; border-radius: 4px; font-size: 12px;
  color: #fff; background: var(--brand-2);
}
.notice-list { flex: 1; overflow: hidden; height: 24px; }
.notice-list a {
  display: block; height: 24px; line-height: 24px; font-size: 14px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 集团简介 ---------------- */
.intro-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.intro-text { padding: 12px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.intro-text a { color: var(--brand-2); }
.intro-stats { display: flex; gap: 8px; margin-top: 12px; }
.intro-stats .stat {
  flex: 1; padding: 10px 4px; text-align: center; border-radius: 8px; background: #f2f6fa;
}
.intro-stats .num { display: block; font-size: 18px; font-weight: 700; color: var(--brand); }
.intro-stats .num em { font-size: 12px; font-weight: 400; margin-left: 2px; }
.intro-stats .lbl { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 新闻条目 ---------------- */
.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f4f6; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item .thumb {
  flex: none; width: 104px; height: 70px; border-radius: 6px; overflow: hidden; background: #eaeef2;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-item .tt {
  font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .sum {
  margin-top: 4px; font-size: 13px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .date { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--ink-3); }
.news-item.no-thumb .txt { padding-right: 0; }

/* 带日期块的文字列表 */
.date-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f4f6; }
.date-list li:last-child { border-bottom: 0; }
.date-list .d {
  flex: none; width: 52px; text-align: center; color: var(--brand);
  border-right: 1px solid var(--line); padding-right: 8px;
}
.date-list .d b { display: block; font-size: 20px; line-height: 1.1; font-family: Arial, sans-serif; }
.date-list .d span { font-size: 11px; color: var(--ink-3); }
.date-list .c { min-width: 0; }
.date-list .c a {
  font-size: 15px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.date-list .c p {
  margin-top: 4px; font-size: 13px; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- 面包屑 ---------------- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 4%; font-size: 13px; color: var(--ink-3); background: #fff;
  border-bottom: 1px solid var(--line);
}
.crumb a { color: var(--ink-2); }
.crumb i { font-style: normal; color: #c6ccd2; }

/* ---------------- 列表页 ---------------- */
.list-card { background: #fff; border-radius: 10px; margin: 10px 0; padding: 4px 14px; }
.pager { padding: 16px 4% 24px; text-align: center; }
.pager a, .pager span, .laypage_main a, .laypage_main span {
  display: inline-block; min-width: 34px; padding: 6px 10px; margin: 3px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 13px; color: var(--ink-2);
}
.laypage_main .laypage_curr, .pager .on {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* ---------------- 详情页 ---------------- */
.art { background: #fff; padding: 16px 4% 20px; }
.art h1 { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.art-info {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.art-body { font-size: 16px; line-height: 1.85; color: #333; word-wrap: break-word; word-break: break-word; }
.art-body p { margin: 0 0 1em; }
.art-body img { width: 100% !important; height: auto !important; margin: 8px 0; }
.art-body video, .art-body audio { display: block; width: 100%; height: auto; margin: 8px 0; background: #000; }
.art-body table { width: 100% !important; display: block; overflow-x: auto; border-collapse: collapse; }
.art-body iframe { width: 100%; }

.video-box { margin: 0 0 14px; background: #000; border-radius: 8px; overflow: hidden; }
.video-box video { display: block; width: 100%; height: auto; max-height: 60vh; background: #000; }

.art-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.art-nav p { margin-bottom: 8px; color: var(--ink-3); }
.art-nav a { color: var(--ink-2); }

/* ---------------- 页脚 ---------------- */
.ft { margin-top: 14px; padding: 18px 4% calc(20px + env(safe-area-inset-bottom)); background: var(--brand); color: rgba(255, 255, 255, .85); }
.ft p { font-size: 13px; line-height: 1.9; }
.ft a { color: rgba(255, 255, 255, .85); }
.ft .ft-name { font-size: 15px; color: #fff; margin-bottom: 6px; }

/* ---------------- 404 ---------------- */
.nf { padding: 60px 8%; text-align: center; }
.nf h1 { font-size: 44px; color: var(--brand); }
.nf p { margin: 12px 0 20px; color: var(--ink-2); }
.nf .btn {
  display: inline-block; padding: 9px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 14px;
}

/* ---------------- 表单页（水务营业厅客户诉求） ---------------- */
.ws-form { padding: 14px 2px 18px; }
.ws-form h1 { font-size: 18px; font-weight: 600; color: var(--ink); }
.ws-form .sub { margin: 6px 0 16px; font-size: 13px; color: var(--ink-3); }
.ws-form .req { color: #c0392b; margin-left: 2px; }
.ws-form .row { margin-bottom: 14px; }
.ws-form .row > label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.ws-form input[type=text], .ws-form input[type=tel], .ws-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; color: var(--ink); outline: none;
}
.ws-form textarea { min-height: 110px; resize: vertical; }
.ws-form input:focus, .ws-form textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 90, 135, .08);
}
.ws-form .hint { margin-top: 4px; font-size: 12px; color: var(--ink-3); }

.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chips .chip { position: relative; display: inline-block; cursor: pointer; }
.ws-chips .chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.ws-chips .chip span {
  display: inline-block; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 14px; color: var(--ink-2);
}
.ws-chips .chip input:checked + span {
  border-color: var(--brand); background: var(--brand); color: #fff;
}
.ws-chips .chip input:focus-visible + span { box-shadow: 0 0 0 2px rgba(17, 90, 135, .18); }

.ws-errs {
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid #f3c9c2; border-radius: 8px;
  background: #fdf0ee; color: #c0392b; font-size: 13px;
}
.ws-errs li { line-height: 1.9; }

.ws-btn {
  display: block; width: 100%; height: 44px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 500;
}
.ws-btn:active { background: #0e4a6e; }
.ws-btn.ghost {
  margin-top: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 15px;
}

.ws-qr {
  margin: 10px 0; padding: 18px 14px; border-radius: 10px;
  background: #fff; text-align: center;
}
.ws-qr img { display: block; width: 160px; height: 160px; margin: 0 auto; }
.ws-qr p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.ws-done { padding: 34px 10px 26px; text-align: center; }
.ws-done .ico { font-size: 42px; line-height: 1; color: #16794b; }
.ws-done h2 { margin: 12px 0 6px; font-size: 18px; color: var(--ink); }
.ws-done p { font-size: 14px; line-height: 2; color: var(--ink-2); }
.ws-done a { color: var(--brand-2); text-decoration: underline; }

/* 蜜罐：真实用户看不到，脚本会填 */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
