/* 顺环官网 — 响应式样式（移动优先） */
:root {
  --green: #146c43;
  --green-d: #0f5132;
  --green-l: #e8f3ee;
  --ink: #1f2328;
  --gray: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --radius: 10px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- 头部 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-name {
  font-size: 18px; font-weight: 700; letter-spacing: .5px;
  white-space: nowrap; color: var(--ink); line-height: 1.3;
}
.brand-en {
  display: block; font-size: 11px; color: var(--gray);
  letter-spacing: 1.2px; line-height: 1.4; margin-top: 2px; white-space: nowrap;
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; letter-spacing: 0; }
  .brand-en { font-size: 9.5px; letter-spacing: .8px; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; }
.brand-text b { font-size: 15px; color: var(--ink); letter-spacing: .5px; white-space: nowrap; }
.brand-text span { font-size: 11px; color: var(--gray); letter-spacing: .5px; }

.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
}
.main-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.main-nav.open { display: block; }
.main-nav a {
  display: block;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}
.main-nav a.active { color: var(--green); font-weight: 600; background: var(--green-l); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex !important;
    position: static;
    border: 0; box-shadow: none;
    background: transparent;
    gap: 4px;
  }
  .main-nav a {
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .main-nav a:hover { background: var(--green-l); }
  .main-nav a.active { background: var(--green); color: #fff; }
}

/* ---------- 页头横幅 ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--green-d), var(--green));
  color: #fff;
  padding: 34px 0;
}
.page-hero h1 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.page-hero p { margin: 8px 0 0; opacity: .85; font-size: 14px; }

/* ---------- 首页大图 ---------- */
.hero {
  background: linear-gradient(120deg, #0f5132 0%, #146c43 55%, #1c8a56 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.hero h1 { font-size: 26px; margin: 0 0 12px; line-height: 1.4; }
.hero p { margin: 0 0 22px; opacity: .9; font-size: 15px; max-width: 620px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--green-d);
  font-weight: 600;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn:hover { opacity: .92; }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section.alt { background: #fff; }
.section-head { margin-bottom: 24px; }
.section-head h2 {
  font-size: 21px; margin: 0 0 6px; letter-spacing: .5px;
  padding-left: 12px; border-left: 4px solid var(--green);
}
.section-head p { margin: 0; color: var(--gray); font-size: 14px; }
.section-head .more { float: right; font-size: 14px; }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: #f2f4f7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card .body { padding: 12px 14px; }
.card .body h3 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }
.card .body p { margin: 6px 0 0; font-size: 13px; color: var(--gray); }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--green-l);
  color: var(--green-d);
  margin-bottom: 6px;
}
.tag.new { background: #fff3e0; color: #b45309; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat b { display: block; font-size: 16px; font-weight: 700; color: var(--green);
  line-height: 1.4; white-space: nowrap; letter-spacing: .3px; }
.stat span { display: block; font-size: 16px; font-weight: 400;
  color: var(--gray); line-height: 1.4; margin-top: 2px; }

/* ---------- 筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; color: var(--ink);
}
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 详情 ---------- */
.detail { display: grid; gap: 26px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 280px; } }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.panel h2 { font-size: 17px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose { font-size: 15.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.prose.paras { white-space: normal; }
.prose.paras p { text-indent: 2em; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-letter { }
.detail-title { font-size: 22px; margin: 0 0 6px; }
.detail-meta { color: var(--gray); font-size: 13px; margin-bottom: 18px; }
.detail-img { margin: 0 0 18px; text-align: center; }
.detail-img img { margin: 0 auto; max-height: 420px; object-fit: contain; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { display: block; padding: 9px 0; font-size: 14px; color: var(--ink); }
.side-list a:hover { color: var(--green); }

/* ---------- 业绩表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.perf {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 14px;
  min-width: 560px;
}
table.perf th, table.perf td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left;
}
table.perf th { background: var(--green-l); color: var(--green-d); font-weight: 600; white-space: nowrap; }
table.perf tr:nth-child(even) td { background: #fafbfc; }
.perf-group { margin-bottom: 32px; }
.perf-group h3 {
  font-size: 16px; margin: 0 0 10px; color: var(--green-d);
  display: flex; align-items: center; gap: 8px;
}
.perf-group h3 em { font-style: normal; font-size: 13px; color: var(--gray); font-weight: 400; }

/* ---------- 证书 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 16px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center;
}
.cert img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #f7f8fa; padding: 6px; }
.cert p { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--gray); }

/* ---------- 列表（新闻/招聘） ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.plain-list h3 { margin: 0 0 6px; font-size: 16px; }
.plain-list .meta { color: var(--gray); font-size: 13px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.info-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-row b { flex: 0 0 76px; color: var(--gray); font-weight: 400; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #14342a;
  color: rgba(255,255,255,.75);
  padding: 30px 0;
  font-size: 13.5px;
  margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,.8); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.footer-links span { color: rgba(255,255,255,.5); }

/* ---------- 后台 ---------- */
.admin-body { background: #f1f3f6; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 210px 1fr; } }
.admin-side { background: #14342a; color: #fff; padding: 16px; }
.admin-side h1 { font-size: 16px; margin: 0 0 16px; letter-spacing: .5px; }
.admin-side a {
  display: block; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.85);
  font-size: 14px; margin-bottom: 2px;
}
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 18px; }
@media (min-width: 900px) { .admin-main { padding: 26px 30px; } }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.admin-top h2 { margin: 0; font-size: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: #fafbfc; color: var(--gray); font-weight: 500; white-space: nowrap; }
.admin-table td.act { white-space: nowrap; }
.btn-sm {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.btn-sm.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-sm.danger { color: #b42318; border-color: #f3c2bd; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; color: var(--gray); margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=number], .form-row input[type=password],
.form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff;
}
.form-row textarea { resize: vertical; }
.form-row .hint { font-size: 12.5px; color: var(--gray); margin-top: 5px; }
.form-grid { display: grid; gap: 0 18px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff;
}
.pager .cur { background: var(--green); border-color: var(--green); color: #fff; }
.login-box {
  max-width: 360px; margin: 12vh auto; background: #fff; padding: 28px;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.login-box h1 { font-size: 19px; margin: 0 0 20px; text-align: center; }
.err { color: #b42318; font-size: 13.5px; margin-bottom: 12px; }
.empty { padding: 40px; text-align: center; color: var(--gray); font-size: 14px; }

/* 后台筛选栏 */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 240px; }
.filter-input, .filter-select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.filter-input { flex: 1; min-width: 150px; }
.filter-select { max-width: 190px; }

/* 前台业绩筛选 */
.perf-filter {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.perf-input, .perf-select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.perf-input { flex: 1 1 200px; min-width: 160px; }
.perf-select { flex: 0 1 190px; max-width: 100%; }
.perf-filter .btn-sm { padding: 10px 18px; font-size: 15px; }
.perf-summary { font-size: 14px; color: var(--gray); margin: 0 0 12px; }
.perf-summary b { color: var(--green); font-size: 16px; }
table.perf td.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  .perf-select { flex: 1 1 46%; }
  .perf-filter .btn-sm { flex: 1 1 100%; text-align: center; }
}

/* 手机端业绩表：只留时间/单位/类别，避免横向滚动 */
@media (max-width: 640px) {
  table.perf { min-width: 0; font-size: 13.5px; }
  table.perf th:nth-child(4), table.perf td:nth-child(4),
  table.perf th:nth-child(5), table.perf td:nth-child(5) { display: none; }
  table.perf th, table.perf td { padding: 8px 8px; }
  table.perf .tag { font-size: 11px; padding: 1px 6px; }
}

/* 上下线状态与按钮 */
.badge { display:inline-block; padding:2px 9px; border-radius:99px; font-size:12px; line-height:1.7; }
.badge.on { background:#e8f3ee; color:#146c43; }
.badge.off { background:#f2f3f5; color:#8a8f98; }
.btn-sm.warn { color:#b45309; border-color:#f3d4a8; background:#fffaf3; }
.btn-sm.ok { color:#146c43; border-color:#bfe0cf; background:#f4fbf7; }

/* ===== P0 改版：首页新样式 ===== */
/* Hero 实拍大图 + 深色蒙层 */
.hero {
  position: relative;
  background: linear-gradient(115deg, #0d452c 0%, #146c43 52%, #1e8a58 100%);
  padding: 74px 0 78px;
}
/* 洪工定：Hero 不用图，纯色渐变（保留标记便于日后恢复轮播） */
.hero-bg { display: none; }
.hero-dots { display: none; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
}
.hero-dots span {
  width: 26px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, width .3s;
}
.hero-dots span.on { background: #fff; width: 34px; }
.hero::before { content: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
@media (max-width: 640px) {
  .hero { padding: 52px 0 56px; background-position: center 30%; }
  .hero h1 { font-size: 26px; }
}

.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  margin-bottom: 18px;
}
.hero h1 { font-size: 34px; }
.hero p { font-size: 16px; }
.hero p b { font-size: 20px; }
.stats-sec { padding: 26px 0; }
.stats-sec .stats { gap: 12px; }
.stat b { color: var(--green); }
.stat:first-child b { color: #d2691e; }

/* 业务领域四宫格 */
.domain-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.domain {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.domain:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); transform: translateY(-3px); border-color: #cfe3d7; }
.domain-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-l); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 14px;
}
.domain h3 { margin: 0 0 8px; font-size: 18px; }
.domain p { margin: 0 0 14px; font-size: 13.5px; color: var(--gray); line-height: 1.7; min-height: 46px; }
.domain-more { font-size: 13px; color: var(--green); font-weight: 600; }

/* 资质横滚条 */
.cert-strip {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cert-mini {
  flex: 0 0 132px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.cert-mini img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #f7f8fa; }

/* CTA 收尾条 */
.cta {
  background: linear-gradient(120deg, var(--green-d), var(--green));
  color: #fff; padding: 40px 0; margin-top: 20px;
}
.cta .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; font-size: 22px; }
.cta p { margin: 0; opacity: .9; font-size: 14.5px; }
.cta-act { display: flex; gap: 12px; flex-wrap: wrap; }

/* 悬浮联系条 */
.float-bar {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-bar a {
  display: flex; align-items: center; gap: 8px; height: 46px;
  padding: 0 16px; border-radius: 99px; background: var(--green);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(20,108,67,.35);
  transition: transform .15s, background .15s;
}
.float-bar a:hover { background: var(--green-d); color: #fff; transform: translateY(-2px); }
.float-bar .fb-top { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 0; width: 46px; justify-content: center; }
.float-bar .fb-top:hover { background: var(--green-l); }
@media (max-width: 560px) {
  .float-bar { right: 12px; bottom: 14px; }
  .float-bar .fb-tel span { display: none; }
  .float-bar .fb-tel { padding: 0; width: 46px; justify-content: center; }
}

/* 后台概览：可点击数字卡片 */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 20px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.stat-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); border-color: #cfe3d7; }
.stat-card b { display: block; font-size: 26px; color: var(--green); line-height: 1.2; }
.stat-card span { font-size: 13px; color: var(--gray); }
.stat-card i { display: block; font-style: normal; font-size: 11.5px; color: #b45309; margin-top: 4px; }
.stat-card:first-child b { color: #d2691e; }

/* ============ 第二轮视觉优化（2026-10-27） ============ */

/* 1. 数据条：6 项一行，不再 4+2 折行 */
.stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; } }
@media (min-width: 1000px) { .stat { padding: 16px 10px; } .stat b { font-size: 16px; } .stat span { font-size: 16px; } }

/* 2. 区块节奏与标题层级 */
.section { padding: 60px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 24px; letter-spacing: .5px; }
.section-head p { font-size: 15px; margin-top: 6px; }
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 20px; }
}

/* 3. 卡片：白底图框、标题两行、卡片等高 */
.grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; } }
.card { display: flex; flex-direction: column; }
.card .thumb { background: #fff; }
.card .thumb img { padding: 12px; }
.card .body { flex: 1; display: flex; flex-direction: column; }
.card .body h3 {
  font-size: 15.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}

/* 4. 业务领域卡片等高 */
.domain { display: flex; flex-direction: column; }
.domain p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.domain-more { margin-top: auto; }

/* 5. 首页资质横滚：改 4:3，露出更多 */
.cert-mini { flex: 0 0 150px; }
.cert-mini img { aspect-ratio: 4 / 3; }

/* 6. 证书页：分组 + 精简说明 */
.cert-group { margin-bottom: 34px; }
.cert-group h3 {
  font-size: 17px; margin: 0 0 14px; padding-left: 10px;
  border-left: 3px solid var(--green); color: var(--ink);
}
.cert-group h3 em { font-style: normal; font-size: 13px; color: var(--gray); font-weight: 400; margin-left: 6px; }
.cert-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 14px; }
@media (min-width: 760px) { .cert-grid { grid-template-columns: repeat(auto-fill, minmax(168px,1fr)); gap: 18px; } }
.cert p {
  margin: 0; padding: 9px 10px; font-size: 12.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}

/* 7. 悬浮联系条：改成小圆按钮，不挡内容 */
.float-bar { right: 14px; bottom: 18px; gap: 10px; }
.float-bar a {
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  justify-content: center; overflow: hidden; white-space: nowrap;
}
.float-bar .fb-tel span {
  position: absolute; opacity: 0; pointer-events: none;
  transition: opacity .18s;
}
.float-bar .fb-tel { position: relative; transition: width .22s, border-radius .22s, background .18s; }
.float-bar .fb-tel:hover { width: auto; padding: 0 16px; border-radius: 99px; }
.float-bar .fb-tel:hover span { position: static; opacity: 1; }
@media (max-width: 640px) {
  .float-bar .fb-tel:hover { width: 46px; padding: 0; border-radius: 50%; }
  .float-bar .fb-tel:hover span { position: absolute; opacity: 0; }
}

/* 8. 图片懒加载占位 */
img[loading="lazy"] { background: #f2f4f7; }

/* 9. 案例照片：铺满图框（产品图仍用 contain 保留轮廓） */
.card-photo .thumb img { object-fit: cover; padding: 0; }
/* 10. 证书缩略略放大，浅色证书也看得清 */
@media (min-width: 760px) { .cert-grid { grid-template-columns: repeat(auto-fill, minmax(184px,1fr)); } }

/* 11. 数据条与下一区块之间的空白收紧（原来两段 padding 叠加成 120px） */
.section { padding: 52px 0; }
.stats-sec { padding: 40px 0 0; }
.stats-sec + .section { padding-top: 44px; }
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .stats-sec { padding: 26px 0 0; }
  .stats-sec + .section { padding-top: 32px; }
}

/* 12. 导航文字不折行（1080px 左右会一个词拆两行） */
.main-nav a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .brand-name { font-size: 16px; }
  .brand-en { font-size: 10px; letter-spacing: .8px; }
}

/* 13. 全称较长：按宽度分级缩字号，避免挤掉导航 */
.brand-name { font-size: 17px; letter-spacing: 0; }
@media (min-width: 900px) and (max-width: 1280px) { .brand-name { font-size: 15px; } }
@media (max-width: 480px) { .brand-name { font-size: 13.5px; } }
@media (max-width: 380px) { .brand-name { font-size: 12.5px; } }

/* 14. 900–1150px：全称较长，进一步缩字号保证完整显示 */
@media (min-width: 900px) and (max-width: 1150px) {
  .brand-name { font-size: 13px; }
  .brand-en { font-size: 9.5px; letter-spacing: .6px; }
  .main-nav a { padding: 8px 7px; font-size: 13.5px; }
  .brand-logo { height: 48px; }
}

/* 15. 提高优先级：旧规则 .brand-text b 会盖掉 .brand-name 的字号 */
.brand-text .brand-name { font-size: 17px; letter-spacing: 0; }
@media (min-width: 1151px) { .brand-text .brand-name { font-size: 17px; } }
@media (min-width: 900px) and (max-width: 1150px) { .brand-text .brand-name { font-size: 13px; } }
@media (max-width: 480px) { .brand-text .brand-name { font-size: 13px; } }
@media (max-width: 380px) { .brand-text .brand-name { font-size: 12px; } }

/* 16. 全称 16 字太占位：把桌面导航断点从 900 提到 1000，900–999 用汉堡菜单 */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex !important; position: static;
    border: 0; box-shadow: none; background: transparent; gap: 4px;
  }
  .main-nav a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
  .main-nav a:hover { background: var(--green-l); }
  .main-nav a.active { background: var(--green); color: #fff; }
}
@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
  }
  .main-nav.open { display: block; }
  .main-nav a { display: block; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 15px; }
}

/* 17. 品牌名按宽度分档 */
@media (min-width: 1400px) { .brand-text .brand-name { font-size: 16px; } }
@media (min-width: 1000px) and (max-width: 1399px) { .brand-text .brand-name { font-size: 13px; } }
@media (max-width: 999px) { .brand-text .brand-name { font-size: 14px; } }
@media (max-width: 480px) { .brand-text .brand-name { font-size: 13px; } }
@media (max-width: 380px) { .brand-text .brand-name { font-size: 12px; } }

/* 18. 断点再提到 1100：1000–1099 品牌名与导航仍会互挤 */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex !important; position: static; border: 0; box-shadow: none; background: transparent; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
}
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
  .main-nav.open { display: block; }
  .main-nav a { display: block; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 15px; }
  .brand-text .brand-name { font-size: 14px; }
}
@media (max-width: 480px) { .brand-text .brand-name { font-size: 13px; } }

/* 19. 1100 以上空间足够，品牌名放大到 14px 更协调 */
@media (min-width: 1100px) and (max-width: 1399px) { .brand-text .brand-name { font-size: 14px; } }

/* 20. 英文副标题：与中文名等宽（JS 计算字距），字重统一 */
.brand-en {
  font-size: 9.5px; font-weight: 400; color: #8a8f98;
  letter-spacing: 0; margin-top: 3px; line-height: 1.5;
  text-transform: uppercase;
}
@media (max-width: 480px) { .brand-en { font-size: 8.5px; margin-top: 2px; } }

/* 21. 让品牌文字块按内容宽度排列，JS 才能量到英文真实宽度 */
.brand-text { align-items: flex-start; }

/* 22. 证书图不可选中/拖拽（配合页面脚本） */
.cert img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* 23. 证书大图弹层 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(12,14,16,.9);
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); background: #fff;
  -webkit-user-drag: none; user-select: none;
}
.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.26); }

/* 24. 联系表单 */
.form-panel { margin-top: 22px; }
.msg-form { display: flex; flex-direction: column; gap: 14px; }
.msg-form .form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .msg-form .form-row { grid-template-columns: 1fr 1fr; } }
.msg-form label { display: block; font-size: 14px; color: var(--ink); }
.msg-form label i { color: #d2691e; font-style: normal; }
.msg-form input, .msg-form select, .msg-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
  font-family: inherit; color: var(--ink); background: #fff;
}
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,108,67,.12);
}
.msg-form textarea { resize: vertical; line-height: 1.7; }
.msg-form .btn { align-self: flex-start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 12.5px; color: var(--gray); margin-left: 4px; }
.form-tip { padding: 12px 14px; border-radius: 8px; font-size: 14.5px; margin-bottom: 16px; }
.form-tip.ok { background: #e8f3ee; color: #146c43; border: 1px solid #bfe0cf; }
.form-tip.err { background: #fff6ed; color: #b45309; border: 1px solid #f3d4a8; }

/* 25. 站内搜索 */
.search-form { display: flex; gap: 10px; margin-top: 14px; max-width: 620px; }
.search-form input {
  flex: 1; padding: 11px 14px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,.96); color: var(--ink);
}
.search-form .btn { flex: 0 0 auto; background: #fff; color: var(--green-d); }
.sr-group { margin-bottom: 30px; }
.sr-group h3 {
  font-size: 17px; margin: 0 0 12px; padding-left: 10px;
  border-left: 3px solid var(--green);
}
.sr-group h3 em { font-style: normal; font-size: 13px; color: var(--gray); font-weight: 400; margin-left: 6px; }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-list li { border-bottom: 1px dashed var(--line); }
.sr-list a { display: block; padding: 10px 2px; font-size: 15px; color: var(--ink); }
.sr-list a:hover { color: var(--green); }
.muted { color: var(--gray); font-size: 15px; }

/* 头部搜索按钮与面板 */
.search-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  color: var(--ink); border-radius: 8px;
}
.search-btn:hover { background: var(--green-l); color: var(--green-d); }
.search-panel {
  display: none; position: absolute; left: 0; right: 0; top: 72px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.08); padding: 14px 0;
}
.search-panel.on { display: block; }
.search-panel .wrap { display: flex; gap: 10px; }
.search-panel input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}

/* 26. 搜索面板层级：首页 Hero 是 position:relative，会盖住面板 */
.search-panel { z-index: 80; }
.search-panel .btn { background: var(--green); color: #fff; border-color: var(--green); }
.search-panel .btn:hover { background: var(--green-d); }

/* 27. 悬浮条右对齐：电话按钮展开时，回顶按钮不跟着移动 */
.float-bar { align-items: flex-end; }

/* 28. 移动端：业务领域两列，缩短首页长度 */
@media (max-width: 640px) {
  .domain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .domain { padding: 16px 12px; }
  .domain-ico { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
  .domain h3 { font-size: 15px; }
  .domain p { font-size: 12px; min-height: 3.4em; -webkit-line-clamp: 3; }
  .domain-more { font-size: 11.5px; }
}

/* 29. 打印样式：去掉导航/悬浮按钮，正文黑字铺满 */
@media print {
  .site-header, .float-bar, .site-footer .footer-links, .search-panel,
  .hero-btns, .cta, .chips, .lb-close, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wrap { max-width: 100%; padding: 0; }
  .section, .page-hero { padding: 8pt 0 !important; background: #fff !important; }
  .page-hero h1, .section-head h2, .detail-title { color: #000 !important; border-color: #000 !important; }
  .page-hero p, .section-head p, .muted { color: #333 !important; }
  a { color: #000 !important; text-decoration: none; }
  .card, .panel, .stat, .cert { border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .grid, .cert-grid, .domain-grid { gap: 8pt; }
  table.perf { font-size: 10pt; }
  table.perf th { background: #eee !important; color: #000 !important; }
  .detail { grid-template-columns: 1fr !important; }
  .prose { font-size: 12pt; line-height: 1.6; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  /* 打印时在页脚补一行出处 */
  body::after {
    content: "佛山市顺德区顺环市政工程设备有限公司　0757-22225706";
    display: block; margin-top: 12pt; font-size: 9pt; color: #666;
  }
}

/* 首页统计卡片可点击 */
a.stat { display: block; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s, background .2s; }
a.stat:hover { border-color: var(--green); box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-2px); }
a.stat:active { transform: translateY(0); }
a.stat span { display: block; }

/* ---------- 列表页名称筛选（2026-11-18） ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-bar input[type="search"] {
  flex: 1 1 240px; max-width: 360px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: 14px; background: #fff; color: var(--ink);
}
.filter-bar input[type="search"]:focus { outline: 2px solid var(--green-l); border-color: var(--green); }
.filter-bar button {
  padding: 8px 20px; border: 1px solid var(--green); border-radius: 99px;
  background: var(--green); color: #fff; font-size: 14px; cursor: pointer;
}
.filter-bar button:hover { background: var(--green-d); border-color: var(--green-d); }
.filter-bar .clear { font-size: 13px; color: var(--green-d); text-decoration: underline; }
/* ---------- 详情页双图并排（2026-11-18） ---------- */
.detail-img.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.detail-img.two img { width: 100%; height: auto; max-height: none; margin: 0; border-radius: 6px; }
@media (max-width: 640px) { .detail-img.two { grid-template-columns: 1fr; gap: 10px; } }
/* ---------- 详情页多图库（2026-11-18） ---------- */
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.detail-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 640px) { .detail-gallery { gap: 8px; } }
