/* =====================================================================
   私域展示平台 · 前端 H5 样式
   设计系统 (Design Tokens) + 统一移动端组件
   ===================================================================== */

:root {
  --c-bg: #f4f6fa;
  --c-surface: #ffffff;
  --c-brand: #2f6fed;
  --c-brand-2: #5b8def;
  --c-brand-soft: #eef3ff;
  --c-text: #1f2329;
  --c-text-2: #5b6472;
  --c-text-3: #8a94a6;
  --c-border: #eceef2;
  --c-border-2: #e3e5e9;
  --c-price: #ff4d4f;
  --c-warn: #ff7a45;
  --c-success: #16a34a;
  --c-danger: #f5222d;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sh-sm: 0 1px 3px rgba(16,24,40,.06);
  --sh-md: 0 6px 20px rgba(16,24,40,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--c-bg); color: var(--c-text); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--c-bg); padding-bottom: 64px; position: relative; }
body.no-tabbar .app { padding-bottom: 0; }

/* 顶栏：品牌 + 搜索 */
.topbar { position: sticky; top: 0; z-index: 10; background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
.brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2)); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--c-text); }
.search { display: flex; gap: 8px; }
.search input { flex: 1; border: 1px solid var(--c-border-2); background: #f3f4f6; border-radius: var(--r-pill); padding: 9px 14px; font-size: 14px; transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: var(--c-brand); background: #fff; }
.search button { border: 0; background: var(--c-brand); color: #fff; border-radius: var(--r-pill); padding: 0 18px; font-size: 14px; }

.page { padding: 12px; }

/* 底部标签栏 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 56px; background: #fff; border-top: 1px solid var(--c-border); display: flex; box-shadow: 0 -2px 12px rgba(16,24,40,.06); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #9aa0a6; gap: 2px; transition: color .15s; }
.tabbar a .ic { font-size: 18px; line-height: 1; }
.tabbar a.active { color: var(--c-brand); font-weight: 600; }

/* 通用卡片 */
.blk { background: var(--c-surface); border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: var(--sh-sm); }
.blk-h { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--c-text); display: flex; align-items: center; gap: 8px; position: relative; padding-left: 11px; }
.blk-h::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2)); }
.blk-h-link { display: flex; align-items: center; justify-content: space-between; }
.blk-h .more { font-size: 13px; font-weight: 500; color: var(--c-brand); text-decoration: none; margin-left: auto; }
.intro { font-size: 14px; line-height: 1.8; color: var(--c-text-2); word-break: break-word; }

/* 富文本详情（企业详情 / 产品详情）：图片视频表格自适应，避免溢出 */
.ent-detail-rich,
.pdetail-rich { font-size: 14px; line-height: 1.7; color: #333; word-wrap: break-word; overflow-wrap: break-word; }
.ent-detail-rich > :first-child,
.pdetail-rich > :first-child { margin-top: 0; }
.ent-detail-rich > :last-child,
.pdetail-rich > :last-child { margin-bottom: 0; }
.ent-detail-rich img,
.pdetail-rich img,
.ent-detail-rich video,
.pdetail-rich video { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.ent-detail-rich p,
.pdetail-rich p { margin: 0 0 10px; }
.ent-detail-rich h1, .ent-detail-rich h2, .ent-detail-rich h3, .ent-detail-rich h4,
.pdetail-rich h1, .pdetail-rich h2, .pdetail-rich h3, .pdetail-rich h4 { margin: 14px 0 8px; font-weight: 700; line-height: 1.4; }
.ent-detail-rich ul, .ent-detail-rich ol,
.pdetail-rich ul, .pdetail-rich ol { padding-left: 22px; margin: 0 0 10px; }
.ent-detail-rich li,
.pdetail-rich li { margin: 4px 0; }
.ent-detail-rich a,
.pdetail-rich a { color: var(--c-brand); text-decoration: underline; }
.ent-detail-rich table,
.pdetail-rich table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.ent-detail-rich th, .ent-detail-rich td,
.pdetail-rich th, .pdetail-rich td { border: 1px solid #e5e5e5; padding: 6px 8px; text-align: left; word-break: break-all; }
.ent-detail-rich th,
.pdetail-rich th { background: #f6f7f9; font-weight: 600; }
.ent-detail-rich blockquote,
.pdetail-rich blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--c-brand); background: #f6f7f9; color: #555; }


/* 首页轮播 */
.banner { position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; background: linear-gradient(135deg, var(--c-brand), #7aa2ff); height: 160px; box-shadow: var(--sh-sm); }
.banner .swiper { position: relative; height: 100%; overflow: hidden; }
.banner .swiper-track { display: flex; height: 100%; transition: transform .4s ease; }
.banner .swiper-slide { position: relative; flex: 0 0 100%; height: 100%; }
.banner .swiper-slide a { display: block; height: 100%; }
.banner .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .swiper-slide .bt { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 18px 14px 10px; font-weight: 600; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.4); background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.banner .swiper-dots { position: absolute; right: 12px; bottom: 8px; display: flex; gap: 5px; z-index: 3; }
.banner .swiper-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.banner .swiper-dots span.on { background: #fff; width: 16px; border-radius: 3px; }
.banner .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }

/* 标签 chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--c-brand-soft); color: var(--c-brand); padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; }
.chip.hot { background: #fff1ec; color: var(--c-warn); }

/* 企业横向卡片 */
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ent-card { flex: 0 0 140px; background: #fafbff; border-radius: var(--r-sm); padding: 10px; border: 1px solid var(--c-border); }
.ent-logo { width: 100%; height: 70px; border-radius: 8px; background: #e9edf5; overflow: hidden; }
.ent-logo img { height: 100%; object-fit: cover; }
.ent-name { font-weight: 600; margin-top: 6px; }
.ent-sub { color: var(--c-text-3); font-size: 12px; margin-top: 2px; }

/* 产品网格 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .15s ease, box-shadow .15s ease; }
.pcard:active { transform: translateY(-2px); box-shadow: var(--sh-md); }
.pimg { height: 110px; background: #e9edf5; }
.pimg img { height: 100%; object-fit: cover; }
.pinfo { padding: 8px 9px 10px; }
.pname { font-size: 13px; font-weight: 500; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psub { padding: 0 8px; color: var(--c-text-3); font-size: 11px; }
.pprice { padding-top: 5px; color: var(--c-price); font-weight: 700; font-size: 13px; }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
}

.noimg { background: repeating-linear-gradient(45deg,#e9edf5,#e9edf5 10px,#dfe4ee 10px,#dfe4ee 20px) !important; display: flex; align-items: center; justify-content: center; color: #aab; font-size: 12px; }

/* 企业列表 */
.elist { display: flex; flex-direction: column; gap: 10px; }
.erow { display: flex; gap: 10px; background: #fff; border-radius: var(--r); padding: 10px; align-items: center; box-shadow: var(--sh-sm); }
.eimg { width: 56px; height: 56px; border-radius: 8px; background: #e9edf5; flex-shrink: 0; overflow: hidden; }
.eimg img { height: 100%; object-fit: cover; }
.en { font-weight: 600; }
.es { color: var(--c-text-3); font-size: 12px; margin-top: 2px; }
.empty { color: #aaa; text-align: center; padding: 30px; }

/* 企业列表（独立页：搜索 + 卡片网格 + 分页） */
.bh-count { display: inline-block; min-width: 20px; margin-left: 8px; padding: 1px 8px; background: var(--c-brand-soft, #eef3ff); color: var(--c-brand); border-radius: 999px; font-size: 13px; font-weight: 600; text-align: center; }
.efilter { margin-bottom: 12px; }
.efilter .ef-wrap { display: flex; gap: 8px; }
.efilter input { flex: 1; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: 9px 14px; font-size: 14px; background: #fff; }
.efilter input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft, #eef3ff); }
.efilter button { border: 0; background: var(--c-brand); color: #fff; padding: 0 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; cursor: pointer; }
.egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ecard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .12s ease, box-shadow .12s ease; }
.ecard:active { transform: translateY(-2px); box-shadow: var(--sh-md); }
.eimg { height: 120px; background: #e9edf5; display: flex; align-items: center; justify-content: center; color: #9aa6bd; font-size: 14px; }
.eimg img { height: 100%; width: 100%; object-fit: cover; }
.ename { padding: 8px 10px 0; font-size: 14px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintro { padding: 2px 10px 0; font-size: 12px; color: var(--c-text-3); line-height: 1.4; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.emeta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px 10px; font-size: 12px; color: var(--c-text-3); }
.em-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-prod { color: var(--c-brand); font-weight: 600; flex-shrink: 0; }
/* 前端分页（复用设计令牌） */
.pager { margin-top: 16px; padding: 10px 0; text-align: center; font-size: 13px; color: var(--c-text-3); }
.pager a, .pager b { display: inline-block; min-width: 26px; padding: 4px 8px; margin: 0 2px; border-radius: 8px; text-decoration: none; }
.pager a { color: var(--c-brand); background: var(--c-brand-soft, #eef3ff); }
.pager a:hover { background: #dde7ff; }
.pager b { color: #fff; background: var(--c-brand); }

/* 企业详情头 */
.ent-head { display: flex; gap: 12px; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2)); color: #fff; border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--sh-sm); }
.elogo { width: 64px; height: 64px; border-radius: 10px; background: rgba(255,255,255,.25); flex-shrink: 0; overflow: hidden; }
.elogo img { height: 100%; object-fit: cover; }
.et { font-size: 17px; font-weight: 700; }
.ent-head .es { font-size: 12px; opacity: .9; margin-top: 4px; color: #fff; }
.intro { color: #555; line-height: 1.6; }
.vids video { width: 100%; border-radius: var(--r); margin-bottom: 8px; background: #000; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert-grid .ci { background: #e9edf5; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.cert-grid .ci img { width: 100%; height: 100%; object-fit: cover; }
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--c-brand-soft); border-radius: 8px; padding: 10px 12px; }
.file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text); }
.file-item .dl { color: var(--c-brand); flex-shrink: 0; font-weight: 600; }

/* 产品详情 */
.pdetail .pgallery { border-radius: var(--r); overflow: hidden; background: #e9edf5; margin-bottom: 12px; }
.pdetail .pgallery img { width: 100%; max-height: 320px; object-fit: cover; }
.pinfo { background: #fff; border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: var(--sh-sm); }
.pt { font-size: 18px; font-weight: 700; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pmeta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.pmeta .pm { background: var(--c-brand-soft); color: var(--c-brand); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.pl { background: #fff7f5; color: var(--c-warn); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.pl.hot { background: #ffece8; color: var(--c-danger); }
.pintro { color: #555; line-height: 1.6; }
.crumb { color: var(--c-text-3); font-size: 12px; margin: 8px 0; }
.params { width: 100%; border-collapse: collapse; }
.params td { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: top; }
.params .pk { color: var(--c-text-3); width: 90px; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th, .specs td { padding: 8px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.specs th { color: var(--c-text-3); font-weight: 500; }
.specs .del { color: #bbb; text-decoration: line-through; }
.quals a { display: inline-block; margin: 4px 8px 4px 0; color: var(--c-brand); }
.contact div { margin: 4px 0; color: #555; }
.contact .intro { margin-bottom: 10px; }
.contact .ci-row { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.contact .ci-row div { margin: 2px 0; }

/* 平台留言表单 */
.msg-tip { color: var(--c-text-3); font-size: 13px; margin: 0 0 14px; }
.msg-form { display: flex; flex-direction: column; gap: 14px; }
.msg-form label { display: flex; flex-direction: column; font-size: 14px; color: var(--c-text); gap: 6px; }
.msg-form .req { color: #ff5b5b; }
.msg-form input, .msg-form select, .msg-form textarea {
  border: 1px solid var(--c-border-2); border-radius: var(--r-sm); padding: 11px 12px; font-size: 14px; font-family: inherit; background: #fff; color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.msg-form textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.msg-form .btn { align-self: flex-start; margin-top: 4px; }
.msg-ok { background: #eafaf0; border: 1px solid #bfe9cf; color: #1a8a4f; padding: 12px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 14px; }
.msg-err { background: #fff3f0; border: 1px solid #ffd0c4; color: #d9360c; padding: 12px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 14px; }
.share { text-align: center; margin: 16px 0; }
.btn { display: inline-block; background: var(--c-brand); color: #fff; padding: 10px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }

/* 分享弹窗（复制链接 / 二维码 两种方式） */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,24,40,.45); padding: 16px;
}
.modal-mask[hidden] { display: none; }
.modal {
  width: min(440px, 92vw);
  background: #fff; border-radius: var(--r-lg, 16px);
  box-shadow: 0 20px 50px rgba(16,24,40,.22);
  overflow: hidden; animation: modalIn .18s ease;
}
@keyframes modalIn { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--c-border, #eee);
  font-size: 16px; font-weight: 600; color: var(--c-text, #1f2733);
}
.modal-x {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: var(--c-text-3, #98a2b3); cursor: pointer; padding: 0 4px;
}
.modal-x:hover { color: var(--c-text, #1f2733); }
.share-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.stab {
  flex: 1; padding: 9px 0; border: 0; background: #f3f5f8; cursor: pointer;
  font-size: 14px; color: var(--c-text-2, #5b6675); border-radius: 10px;
  transition: all .15s ease; font-weight: 500;
}
.stab.active {
  background: var(--c-brand, #2f6fed); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(47,111,237,.28);
}
.share-pane { padding: 16px; }
.share-label { display: block; font-size: 13px; color: var(--c-text-2, #5b6675); margin-bottom: 8px; }
.share-link-row { display: flex; gap: 8px; }
.share-link-row .form-input {
  flex: 1; min-width: 0; font-size: 13px; color: var(--c-text-2, #5b6675);
  background: #f7f9fc;
}
.share-msg { display: block; min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--c-success, #1a8a4f); }
.qr-box { display: flex; justify-content: center; padding: 8px 0 4px; }
.qr-box img { width: 200px; height: 200px; border: 1px solid var(--c-border, #eee); border-radius: 10px; }
.qr-tip { text-align: center; font-size: 13px; color: var(--c-text-3, #98a2b3); margin-top: 6px; }
.share-qr-actions { text-align: center; margin-top: 14px; }

/* 分类页 */
.cat-page { display: flex; gap: 10px; }
.cat-left { width: 90px; flex-shrink: 0; background: #fff; border-radius: var(--r); overflow: hidden; align-self: flex-start; }
.cat-left .ci { display: block; padding: 14px 8px; text-align: center; font-size: 13px; color: #555; border-bottom: 1px solid #f3f4f6; }
.cat-left .ci.on { background: var(--c-brand-soft); color: var(--c-brand); font-weight: 700; }
.cat-right { flex: 1; min-width: 0; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sub { background: #fff; border: 1px solid var(--c-border-2); padding: 5px 12px; border-radius: 14px; font-size: 12px; color: #555; }
.sub.on { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* 企业列表（分类筛选 + 网格） */
.ent-list-page { display: flex; gap: 10px; align-items: flex-start; }
.ent-list-main { flex: 1; min-width: 0; }

/* 搜索页 */
.sform { display: flex; gap: 8px; margin-bottom: 12px; }
.sform input { flex: 1; border: 1px solid var(--c-border-2); border-radius: var(--r-pill); padding: 9px 14px; }
.sform button { border: 0; background: var(--c-brand); color: #fff; border-radius: var(--r-pill); padding: 0 18px; }

/* 首页搜索区 + 实时联想下拉 */
.home-search { padding: 12px; }
.hsearch { position: relative; }
.hs-wrap { display: flex; gap: 8px; }
.hs-wrap input { flex: 1; border: 1px solid var(--c-border-2); background: #f3f4f6; border-radius: 20px; padding: 11px 16px; font-size: 15px; transition: border-color .15s, background .15s; }
.hs-wrap input:focus { outline: none; border-color: var(--c-brand); background: #fff; }
.hs-wrap button { border: 0; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-2)); color: #fff; border-radius: 20px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #eee; border-radius: var(--r); box-shadow: var(--sh-md); overflow: hidden; z-index: 30; }
.sg { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f3f4f6; }
.sg:last-child { border-bottom: 0; }
.sg:active { background: #f5f8ff; }
.sg-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; display: flex; flex-direction: column; }
.sg-sub { font-size: 11px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-tag { flex-shrink: 0; font-size: 11px; color: var(--c-brand); background: var(--c-brand-soft); padding: 2px 8px; border-radius: 10px; }
.sg-tag.prod { color: var(--c-warn); background: #fff1ec; }

/* 企业暂停查看 / 不存在 提示块 */
.notice-block { margin: 60px 24px; padding: 28px 20px; text-align: center; color: #888; font-size: 16px; background: var(--c-bg); border-radius: var(--r); border: 1px solid var(--c-border); }

/* 网站底部信息（来自网站设置） */
.site-footer { background: #fff; border-top: 1px solid var(--c-border); padding: 18px 14px; margin-top: 12px; font-size: 12px; color: var(--c-text-3); text-align: center; line-height: 1.9; }
.site-footer .f-brand { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.site-footer .f-intro { color: #666; font-size: 12px; margin: 0 auto 8px; max-width: 320px; }
.site-footer .f-info { margin-bottom: 8px; }
.site-footer .f-qr { margin: 8px auto; }
.site-footer .f-qr img { width: 110px; height: 110px; border-radius: 8px; border: 1px solid #eee; margin: 0 auto; }
.site-footer .f-qr span { display: block; margin-top: 4px; font-size: 11px; color: #999; }
.site-footer .f-copy { color: #aaa; font-size: 11px; border-top: 1px dashed #eee; padding-top: 8px; margin-top: 6px; }
.site-footer .f-msg { margin-top: 8px; }
.site-footer .f-msg a { display: inline-block; background: var(--c-brand); color: #fff; padding: 7px 18px; border-radius: var(--r-pill); font-size: 13px; }

/* 企业资讯区块 / 列表 / 详情 */
.ent-head.simple { background: #fff; color: var(--c-text); border-radius: var(--r); padding: 12px; flex-direction: column; align-items: flex-start; gap: 6px; box-shadow: var(--sh-sm); }
.ent-head.simple .back { font-size: 13px; color: var(--c-brand); }
.ent-head.simple .et { font-size: 16px; font-weight: 700; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: flex; gap: 10px; background: #fafbff; border-radius: var(--r); padding: 10px; align-items: center; border: 1px solid var(--c-border); }
.news-item .nimg { width: 64px; height: 64px; border-radius: 8px; background: #e9edf5; flex-shrink: 0; overflow: hidden; }
.news-item .nimg img { height: 100%; object-fit: cover; }
.news-item .ninfo { flex: 1; min-width: 0; }
.news-item .nt { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .nm { color: var(--c-text-3); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .ndate { color: #aaa; font-size: 11px; margin-top: 4px; }
.more { display: block; text-align: center; color: var(--c-brand); font-size: 13px; margin-top: 10px; }

.news-detail { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh-sm); }
.news-detail .nd-title { font-size: 19px; font-weight: 700; margin: 4px 0 6px; line-height: 1.4; }
.news-detail .nd-meta { color: #aaa; font-size: 12px; margin-bottom: 12px; }
.news-detail .nd-cover { border-radius: 10px; overflow: hidden; background: #e9edf5; margin-bottom: 12px; }
.news-detail .nd-cover img { width: 100%; }

/* 富文本正文渲染 */
.rich-content { line-height: 1.8; font-size: 15px; color: #2b2f36; word-break: break-word; }
.rich-content h2 { font-size: 18px; margin: 16px 0 8px; }
.rich-content h3 { font-size: 16px; margin: 14px 0 6px; }
.rich-content p { margin: 8px 0; }
.rich-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rich-content a { color: var(--c-brand); text-decoration: underline; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin: 8px 0; }
.rich-content blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid #d0d7e2; color: #666; background: #f7f8fa; }
.rich-content hr { border: 0; border-top: 1px solid #eee; margin: 16px 0; }

/* =====================================================================
   企业详情页（沉浸式头部大图设计）
   ===================================================================== */
.page.flush { padding: 0; }

.ent-hero {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-brand);
}
.ent-hero.no-img {
  background-image: linear-gradient(135deg, var(--c-brand), var(--c-brand-2));
}
.ent-hero-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.42) 100%);
}
.ent-back {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  line-height: 32px;
  text-align: center;
  font-size: 24px;
  color: #fff;
  background: rgba(16,24,40,.35);
  border-radius: 50%;
  text-decoration: none;
  backdrop-filter: blur(2px);
}
.ent-hero-foot {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.elogo {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16,24,40,.25);
  border: 2px solid #fff;
}
.elogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elogo.noimg { background: rgba(255,255,255,.85); }
.ent-meta { padding-bottom: 4px; min-width: 0; }
.ent-meta .et {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ent-meta .es {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  margin-top: 3px;
}

.ent-body {
  background: var(--c-bg);
  border-radius: 18px 18px 0 0;
  margin-top: -16px;
  position: relative;
  z-index: 4;
  padding: 16px 12px 12px;
}
.ent-tagline {
  font-size: 14px;
  color: var(--c-text-2);
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
}
.ent-share { padding: 4px 4px 12px; border-bottom: 1px solid var(--c-border); margin-bottom: 4px; }
.ent-share .btn { width: 100%; }
.ent-quick {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.ent-quick .qk {
  flex: 1;
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--sh-sm);
}
.ent-quick .qk-l { font-size: 11px; color: var(--c-text-3); }
.ent-quick .qk-v { font-size: 13px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 桌面端增强：头部更高、内容居中收窄 */
@media (min-width: 768px) {
  .ent-hero { height: 300px; }
  .elogo { width: 84px; height: 84px; flex-basis: 84px; border-radius: 20px; }
  .ent-meta .et { font-size: 24px; }
  .ent-body { max-width: 720px; margin: -16px auto 0; padding: 20px 20px 12px; }
  .ent-tagline { font-size: 15px; }
}
@media (min-width: 1024px) {
  .ent-body { max-width: 860px; }
}

/* =====================================================================
   企业详情页：浏览徽标 / 视频缩略图 / 证书预览 / 底部联系卡 / 禁复制
   ===================================================================== */
.ent-view {
  display: inline-block;
  background: rgba(16,24,40,.5);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 11px;
  backdrop-filter: blur(2px);
}
/* 整页禁止复制（分享弹窗内仍可选中） */
.no-copy, .no-copy * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.modal, .modal * { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

/* 视频缩略图网格 */
.vid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vid-card { display: block; text-decoration: none; }
.vid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1020;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover: hover) {
  .vid-card:hover .vid-thumb { transform: translateY(-2px); box-shadow: var(--sh-md); }
}
.vid-thumb img, .vid-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; line-height: 42px; text-align: center;
  background: rgba(16,24,40,.55); color: #fff;
  border-radius: 50%; font-size: 16px; padding-left: 3px;
}
.vid-dur {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(16,24,40,.7); color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 8px;
}
.vid-cap { font-size: 12px; color: var(--c-text-2); margin-top: 6px; }

/* 证书/文件预览项 */
.cert-grid .ci { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cert-grid .ci:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.cert-file {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; box-sizing: border-box;
  background: #eef1f7;
}
.cert-file .cf-ico { font-size: 28px; line-height: 1; }
.cert-file em { font-style: normal; font-size: 12px; color: var(--c-text-2); text-align: center; word-break: break-all; }

/* 底部联系卡 */
.contact-card {
  background: linear-gradient(180deg, var(--c-brand-soft) 0%, var(--c-surface) 55%);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--sh-sm);
}
.cc-intro { color: var(--c-text-2); font-size: 13px; line-height: 1.6; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--c-border); }
.cc-row { display: flex; gap: 12px; padding: 7px 0; align-items: flex-start; }
.cc-k { flex: 0 0 52px; color: var(--c-text-3); font-size: 13px; }
.cc-v { flex: 1; min-width: 0; color: var(--c-text); font-size: 14px; line-height: 1.5; word-break: break-all; }
.cc-tel { color: var(--c-brand); font-weight: 600; text-decoration: none; }
.cc-tel em, .cc-wx em {
  font-style: normal; font-size: 11px; font-weight: 400; color: #fff;
  background: var(--c-brand); padding: 1px 6px; border-radius: 8px; margin-left: 6px;
}
.cc-wx { color: var(--c-text); text-decoration: none; }

/* 视频 / 预览弹窗 */
.vid-modal, .prev-modal { max-width: 720px; width: 92%; }
.vid-player video { width: 100%; max-height: 70vh; background: #000; border-radius: 0 0 var(--r) var(--r); display: block; }
.prev-body { padding: 12px; }
.prev-body img { width: 100%; height: auto; display: block; border-radius: 8px; }
.prev-body iframe { width: 100%; height: 70vh; border: 0; border-radius: 8px; background: #fff; }

/* =====================================================================
   响应式适配：移动端优先，桌面 / 平板增强（H5 与 PC 共用同一套代码）
   ===================================================================== */

/* 平板及以上：放宽容器、网格多列、底部导航转为顶部横向导航 */
@media (min-width: 768px) {
  body { background: #e7ebf2; }
  .app {
    display: flex;
    flex-direction: column;
    max-width: 1080px;
    background: var(--c-bg);
    box-shadow: 0 0 0 1px rgba(16,24,40,.04), 0 16px 50px rgba(16,24,40,.12);
    padding-bottom: 24px;
  }
  .topbar { order: 1; display: flex; align-items: center; gap: 16px; }
  .brand-row { margin-bottom: 0; }
  .search { flex: 1; max-width: 460px; }

  /* 底部手机栏 → 顶部横向导航（与顶栏在同一柔性容器内排序） */
  .tabbar {
    order: 2;
    position: static;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    margin: 12px 16px 0;
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: none;
    background: var(--c-surface);
  }
  .tabbar a {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    font-size: 14px;
  }
  .tabbar a.active { background: var(--c-brand-soft); }

  main.page { order: 3; padding: 16px; }
  footer.site-footer { order: 4; }

  .banner { height: 220px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pimg { height: 150px; }
  .pname { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
  .h-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 12px; }
  .h-scroll .ent-card { flex: none; }
  .elist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .egrid { grid-template-columns: repeat(3, 1fr); }
  .cat-page { gap: 16px; }
  .cat-left { width: 172px; }
  .vids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* 桌面：容器更宽、产品网格 4 列 */
@media (min-width: 1024px) {
  .app { max-width: 1200px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .egrid { grid-template-columns: repeat(4, 1fr); }
}

/* 产品详情：桌面端左右两栏（图左信息右，信息列可滚动时图 sticky） */
@media (min-width: 900px) {
  .pdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .pdetail > .pgallery { grid-column: 1; grid-row: 1; position: sticky; top: 72px; margin-bottom: 0; }
  .pdetail > .pinfo { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .pdetail > .crumb,
  .pdetail > .blk,
  .pdetail > .share { grid-column: 1 / -1; }
}
