/* 佳鸿威官网 - 响应式样式 */
:root {
  --blue: #0d3a67;
  --blue-dark: #082746;
  --blue-light: #1668b4;
  --orange: #ff7a1a;
  --bg: #f5f7fa;
  --text: #2b3441;
  --muted: #7a8593;
  --border: #e4e9f0;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(13, 58, 103, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; font-size: 22px; font-weight: 700; padding: 8px 14px; border-radius: 8px; letter-spacing: 2px;
}
.logo-sub { font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.4; }
.header-contact { display: flex; align-items: center; gap: 18px; }
.hotline span { display: block; font-size: 12px; color: var(--muted); }
.hotline strong { color: var(--orange); font-size: 18px; }
.kf-open {
  padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.35); white-space: nowrap;
}
.kf-open:hover { background: #e86a00; }
.kf-open:active { transform: scale(0.97); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; }

.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; display: flex; }
.main-nav a { display: block; color: #fff; padding: 13px 22px; font-size: 15px; transition: background 0.2s; }
.main-nav a:hover, .main-nav a.active { background: var(--orange); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: 0.9; max-width: 760px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 28px; border-radius: 30px; font-size: 15px; transition: transform 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.6); color: #fff; }

/* 区块 */
.section { padding: 48px 0; }
.section-alt { background: #fff; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.sec-head h2 { font-size: 24px; color: var(--blue-dark); }
.sec-head span { color: #c3ccd8; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.sec-head .more { margin-left: auto; color: var(--blue-light); font-size: 14px; }

/* 卡片 */
.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: #eef2f6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { padding: 12px 14px 4px; font-size: 14px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--blue-light); }
.card-date { padding: 0 14px 12px; font-size: 12px; color: var(--muted); }

/* 公司简介 */
.about-brief p { color: var(--text); font-size: 15px; max-width: 960px; }

/* 新闻三栏 */
.news-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.news-col h3 { font-size: 16px; color: var(--blue-dark); border-bottom: 2px solid var(--blue); padding-bottom: 10px; margin-bottom: 8px; }
.news-col h3 a:hover { color: var(--orange); }
.news-row { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.news-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex: none; }
.news-row a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row a:hover { color: var(--blue-light); }
.news-row time { color: var(--muted); font-size: 12px; flex: none; }

/* 列表页 */
.page-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-light));
  color: #fff; text-align: center; padding: 44px 16px;
}
.page-banner h1 { font-size: 26px; }
.crumbs { padding: 14px 16px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--blue-light); }
.crumbs em { color: #c3ccd8; font-style: normal; margin: 0 6px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
.cat-chips a { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 16px; font-size: 14px; color: var(--text); }
.cat-chips a.active, .cat-chips a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.news-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 20px; }
.news-list .news-row { font-size: 15px; padding: 13px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.pager a { background: #fff; border: 1px solid var(--border); min-width: 38px; text-align: center; padding: 7px 12px; border-radius: 6px; font-size: 14px; }
.pager a.active, .pager a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 详情 */
.detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; }
.detail-title { font-size: 24px; color: var(--blue-dark); line-height: 1.4; }
.detail-meta { color: var(--muted); font-size: 13px; margin: 12px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); display: flex; gap: 18px; flex-wrap: wrap; }
.detail-content { font-size: 15px; }
.detail-content p { margin: 10px 0; }
.detail-content img { margin: 12px auto; border-radius: 6px; }
.detail-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.detail-content td, .detail-content th { border: 1px solid var(--border); padding: 8px 12px; font-size: 14px; }
.detail-content img { max-width: 100%; height: auto; }
.detail-content .c-cap { text-align: center; font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.detail-content .c-h { font-size: 17px; color: var(--blue-dark); margin: 20px 0 8px; padding-left: 10px; border-left: 3px solid var(--blue); }
.hp-icon img { width: 100%; height: 100%; object-fit: contain; }
.related { margin-top: 36px; }
.related h3 { font-size: 18px; color: var(--blue-dark); margin-bottom: 14px; }
.detail-nav { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14px; }
.detail-nav a:hover { color: var(--blue-light); }
.contact-box { margin-top: 30px; }
.contact-box h3 { color: var(--blue-dark); margin-bottom: 12px; }
.contact-box table { width: 100%; border-collapse: collapse; }
.contact-box th, .contact-box td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; text-align: left; }
.contact-box th { background: #f2f6fb; color: var(--blue-dark); width: 110px; }

/* 搜索 */
.search-form { display: flex; gap: 10px; max-width: 560px; margin-bottom: 20px; }
.search-form input { flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
.search-form button { padding: 11px 26px; background: var(--blue); color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.search-count { color: var(--muted); margin-bottom: 18px; }

/* 页脚 */
.site-footer { background: var(--blue-dark); color: #b9c6d6; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 16px 30px; font-size: 14px; }
.footer-grid h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid p { margin: 4px 0; }
.footer-grid a:hover { color: #fff; }
.icp { margin-top: 10px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px; text-align: center; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.copyright > span { color: #93a7c0; }
.copyright .icp-badge a { color: #a8bdd6; text-decoration: none; }
.copyright .icp-badge a:hover { color: #fff; text-decoration: underline; }

/* 页脚：微信在线沟通（多个二维码） */
.footer-qrs { padding: 30px 16px 6px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-qrs-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-qrs-head .fl-title { color: #fff; font-size: 16px; font-weight: 700; }
.footer-qrs-head .fl-sub { color: #8fa3bd; font-size: 13px; }
.qr-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.qr-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.qr-card:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
.qr-card img { width: 88px; height: 88px; flex: 0 0 88px; object-fit: cover; border-radius: 8px; background: #fff; display: block; }
.qr-meta { min-width: 0; }
.qr-card b { display: block; color: #fff; font-size: 14px; margin-bottom: 5px; }
.qr-card i { display: block; font-style: normal; color: #a9bad4; font-size: 12px; line-height: 1.6; }

/* 页脚：友情链接 */
.footer-links { padding: 18px 16px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #8fa3bd; line-height: 2; }
.footer-links .fl-title { color: #fff; font-weight: 700; margin-right: 8px; }
.footer-links a { color: #8fa3bd; margin-right: 16px; display: inline-block; }
.footer-links a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .hero { padding: 48px 0; }
  .hotline { display: none; }
  .kf-open { padding: 8px 13px; font-size: 13px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
  .logo-sub { display: none; }
  .detail { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .qr-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qr-card { padding: 10px; gap: 9px; }
  .qr-card img { width: 70px; height: 70px; flex: 0 0 70px; }
  .qr-card b { font-size: 13px; margin-bottom: 3px; }
  .qr-card i { font-size: 11px; line-height: 1.5; }
  .sec-head h2 { font-size: 20px; }
}
@media (max-width: 420px) {
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qr-row { grid-template-columns: 1fr; }
}

/* ===== 大气版首页新增 ===== */

/* 轮播 Banner */
.carousel { position: relative; height: 460px; overflow: hidden; background: var(--blue-dark); }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,39,70,0.82) 0%, rgba(8,39,70,0.45) 55%, rgba(8,39,70,0.15) 100%);
}
.slide-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 32px; color: #fff; }
.slide-inner h2 { font-size: 40px; letter-spacing: 2px; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.slide-inner p { font-size: 18px; opacity: 0.95; }
.slide-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.slide-dot { width: 34px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s; }
.slide-dot.active { background: var(--orange); }
.slide-arrows button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 26px; line-height: 1;
  transition: background 0.2s;
}
.slide-arrows button:hover { background: rgba(255,255,255,0.35); }
.slide-arrows #slidePrev { left: 20px; }
.slide-arrows #slideNext { right: 20px; }

/* 数据统计条 */
.stats-bar { background: var(--orange); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 22px 8px; color: #fff; }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.stat span { font-size: 14px; opacity: 0.95; }

/* 版块标题居中变体 */
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sec-head.center p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sec-head.light h2, .sec-head.light span { color: #fff; }
.sec-head.light .more { color: #ffd9b8; }
.section-dark { background: var(--blue-dark); }
.section-dark .sec-head h2 { color: #fff; }

/* 分类图块 */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.cat-tile-img { aspect-ratio: 16/10; overflow: hidden; background: #eef2f6; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-tile:hover .cat-tile-img img { transform: scale(1.08); }
.cat-tile-name { padding: 12px 6px; font-size: 15px; font-weight: 600; color: var(--blue-dark); }

/* 服务流程 */
.steps-sec { background: linear-gradient(180deg, #fff 0%, #f0f5fb 100%); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; position: relative; transition: transform 0.2s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-ico { font-size: 34px; margin-bottom: 8px; }
.step-no { position: absolute; top: 12px; right: 14px; font-size: 26px; font-weight: 800; color: #e8eef5; }
.step h3 { font-size: 16px; color: var(--blue-dark); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* 视频中心 */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid.two { grid-template-columns: repeat(2, 1fr); }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-sec .video-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.video-card video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.video-card h3 { padding: 14px 16px 4px; font-size: 16px; color: var(--blue-dark); }
.video-sec .video-card h3 { color: #fff; }
.video-card p { padding: 0 16px 6px; font-size: 13px; color: var(--muted); }
.video-sec .video-card p { color: #b9c6d6; }
.video-date { padding: 0 16px 14px; font-size: 12px; color: var(--muted); }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }
/* 列表页某个分类下暂时没有内容时的占位卡片 */
.col-main .empty-note {
  padding: 56px 24px; background: #fff; border: 1px dashed var(--border);
  border-radius: var(--radius); line-height: 2;
}
.col-main .empty-note p { margin: 0; }
.col-main .empty-note b { color: var(--text); font-size: 16px; }

/* 品牌墙 */
.brand-wall { margin-top: 30px; }
.brand-title { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 14px; border-left: 4px solid var(--orange); padding-left: 10px; }
.brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 6px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--blue-dark); transition: all 0.2s;
}
.brand:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== 悬浮在线客服 ===== */
.kf-wrap { position: fixed; right: 18px; bottom: 90px; z-index: 999; font-size: 14px; }
.kf-fab {
  position: relative;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), #ff9a3d); color: #fff;
  box-shadow: 0 6px 20px rgba(255,122,26,0.45); display: flex; flex-direction: column;
  align-items: center; justify-content: center; transition: transform 0.2s, opacity 0.2s;
}
.kf-fab:hover { transform: scale(1.08); }
.kf-fab.hide { opacity: 0; pointer-events: none; transform: scale(0.6); }
.kf-fab-icon { font-size: 20px; line-height: 1; }
.kf-fab-text { font-size: 11px; line-height: 1.2; margin-top: 2px; }
/* hidden 属性优先于任何 display 规则 */
[hidden] { display: none !important; }
.kf-fab-dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; }

/* ---------- 右侧跟随自动提示卡（访客进站 N 秒后滑出） ----------
   用 ID 选择器提高优先级：首页 body.hp > * { position:relative; z-index:1 } 会压过普通类选择器的 fixed 定位 */
#kfTip.kf-tip {
  position: fixed; right: 0; top: 50%; z-index: 9998; opacity: 0;
  transform: translate(115%, -50%);
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.35s;
}
#kfTip.kf-tip.show { transform: translate(0, -50%); opacity: 1; }
.kf-tip-in {
  position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-right: 0;
  border-radius: 12px 0 0 12px; padding: 12px 12px 12px 10px; max-width: 320px;
  box-shadow: -8px 10px 30px rgba(8, 39, 70, 0.20);
}
.kf-tip-in:hover { border-color: #cddcec; }
.kf-tip-av {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; text-align: center;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff;
  font-size: 11px; line-height: 1.05;
}
.kf-tip-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kf-tip-tx b { color: var(--blue); font-size: 14px; }
.kf-tip-tx i { font-style: normal; color: var(--text); font-size: 12.5px; line-height: 1.5; }
.kf-tip-go {
  flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; text-align: center;
  background: linear-gradient(135deg, var(--orange), #ff9a3d); color: #fff;
  font-size: 11px; line-height: 1.15; font-weight: 600; border-radius: 8px; padding: 0 9px;
}
.kf-tip-close {
  position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: #8a96a3; font-size: 15px;
  line-height: 1; cursor: pointer; padding: 0;
}
.kf-tip-close:hover { color: var(--orange); border-color: var(--orange); }
.kf-panel {
  position: absolute; bottom: 74px; right: 0; width: 336px; background: #fff;
  border-radius: 14px; box-shadow: 0 12px 40px rgba(8,39,70,0.25); overflow: hidden;
  display: none;
}
.kf-panel.open { display: block; }
.kf-head { background: var(--blue); color: #fff; padding: 12px 16px; position: relative; }
.kf-head-t { display: block; font-weight: 600; font-size: 15px; }
.kf-head-s { display: block; font-size: 11px; opacity: 0.75; margin-top: 2px; }
.kf-close { position: absolute; right: 12px; top: 9px; font-size: 20px; cursor: pointer; opacity: 0.8; line-height: 1; }
.kf-tabs { display: flex; border-bottom: 1px solid var(--border); }
.kf-tab { flex: 1; padding: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.kf-tab.active { color: var(--blue); border-bottom-color: var(--orange); font-weight: 600; }
.kf-pane { display: none; padding: 14px; }
.kf-pane.active { display: block; }
.kf-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.kf-item:hover { background: #f2f6fb; }
.kf-item b { display: block; font-size: 14px; color: var(--text); }
.kf-item i { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.kf-ico { width: 38px; height: 38px; border-radius: 50%; background: #eef4fb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.kf-hot .kf-ico { background: #fff1e6; }
.kf-qr { display: none; text-align: center; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; margin: 8px 0; }
.kf-qr img { width: 130px; margin: 0 auto; }
.kf-qr p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kf-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.kf-form-tip { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kf-form input, .kf-form textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 10px; font-size: 13px; font-family: inherit; resize: none;
}
.kf-form input:focus, .kf-form textarea:focus { outline: none; border-color: var(--blue-light); }
.kf-submit { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--orange); color: #fff; font-size: 14px; cursor: pointer; }
.kf-submit:hover { background: #e86a00; }
.kf-msg-ok { display: none; margin-top: 10px; font-size: 13px; color: #0a8f4e; text-align: center; }

/* ===== 在线咨询对话区 ===== */
#kfPaneChat { padding: 0; }
.kf-chat-body { height: 296px; overflow-y: auto; padding: 12px 14px; background: #f6f8fb; }
.kf-welcome {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; line-height: 1.75; color: #5b6b7f;
}
.kf-msg { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; }
.kf-msg.me { justify-content: flex-end; }
.kf-av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none;
}
.kf-bub {
  max-width: 212px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word;
}
.kf-msg.me .kf-bub { background: var(--blue); border-color: var(--blue); color: #fff; }
.kf-time { display: block; font-style: normal; font-size: 10px; opacity: 0.55; margin-top: 4px; }
.kf-sys { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.kf-say { padding: 12px 14px; border-top: 1px solid var(--border); }
.kf-say-t { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kf-say input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; margin-bottom: 8px; font-family: inherit;
}
.kf-say input:focus { outline: none; border-color: var(--blue-light); }
.kf-say-btns { display: flex; gap: 8px; }
.kf-say-btns .kf-submit { flex: 1 1 auto; padding: 9px; font-size: 13px; }
.kf-skip {
  flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.kf-skip:hover { border-color: var(--blue); color: var(--blue); }
.kf-chat-foot { display: none; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.kf-chat-foot textarea {
  flex: 1 1 auto; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; resize: none; max-height: 88px; line-height: 1.5;
}
.kf-chat-foot textarea:focus { outline: none; border-color: var(--blue-light); }
.kf-chat-foot button {
  flex: 0 0 auto; padding: 9px 16px; border: 0; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 13px; cursor: pointer;
}
.kf-chat-foot button:hover { background: #e86a00; }
@media (max-width: 420px) {
  .kf-wrap { right: 12px; bottom: 76px; }
  .kf-panel { width: calc(100vw - 24px); }
  .kf-chat-body { height: 244px; }
  /* 手机上提示卡改到底部，避免遮挡内容中部 */
  #kfTip.kf-tip { top: auto; bottom: 168px; transform: translate(115%, 0); }
  #kfTip.kf-tip.show { transform: translate(0, 0); }
  .kf-tip-in { max-width: calc(100vw - 60px); padding: 10px; }
  .kf-tip-av { width: 36px; height: 36px; font-size: 10px; }
  .kf-tip-tx b { font-size: 13px; }
  .kf-tip-tx i { font-size: 12px; }
}

/* 响应式补充 */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .carousel { height: 360px; }
  .slide-inner h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .carousel { height: 240px; }
  .slide-inner h2 { font-size: 22px; }
  .slide-inner p { font-size: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .video-grid.two { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .kf-panel { width: 300px; }
}

/* ===== 栏目页：顶部大图 + 左侧子栏目 ===== */
.page-banner { position: relative; overflow: hidden; }
.page-banner.has-img { padding: 0; background-size: cover; background-position: center; }
.page-banner.has-img .pb-inner {
  background: linear-gradient(rgba(8,28,58,0.55), rgba(8,28,58,0.55));
  padding: 72px 16px; text-align: center;
}
.page-banner.has-img h1 { font-size: 30px; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.page-banner.has-img .pb-inner p { margin-top: 8px; font-size: 15px; opacity: 0.92; }
.col-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.side-title {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-light));
  color: #fff; font-size: 16px; padding: 13px 16px;
}
.side-nav { list-style: none; }
.side-nav li a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.side-nav li:last-child a { border-bottom: 0; }
.side-nav li a:hover, .side-nav li a.active { background: #eef5fd; color: var(--blue); font-weight: 600; }
.side-nav em {
  font-style: normal; font-size: 12px; background: #eef2f7; color: var(--muted);
  border-radius: 10px; padding: 1px 9px; flex-shrink: 0;
}
.side-nav li a.active em { background: var(--blue); color: #fff; }

/* ===== 侧栏两级：大栏目点击下拉子栏目 ===== */
.side-nav .side-parent { justify-content: flex-start; gap: 8px; cursor: pointer; }
.side-nav .side-parent > em { margin-left: auto; }
.side-caret {
  flex: 0 0 auto; width: 0; height: 0; margin-right: 3px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #9aa8bb; transition: transform 0.25s ease;
}
.side-nav .side-group.open > .side-parent .side-caret { transform: rotate(180deg); }
.side-nav .side-subs { list-style: none; display: none; background: #f7f9fc; }
.side-nav .side-group.open > .side-subs { display: block; }
.side-nav .side-subs li a {
  padding: 9px 16px 9px 30px; font-size: 13px; color: #5a6b80;
  border-bottom: 1px solid #eaeff5;
}
.side-nav .side-subs li a > span { position: relative; }
.side-nav .side-subs li a > span::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px;
  margin-top: -2px; border-radius: 50%; background: #c3cddb;
}
.side-nav .side-subs li a em { background: #e7edf5; font-size: 11px; padding: 0 7px; }
.side-nav .side-subs li a:hover { background: #eef5fd; color: var(--blue); }
.side-nav .side-subs li a.active { background: #e8f1fd; color: var(--blue); font-weight: 600; }
.side-nav .side-subs li a.active > span::before { background: var(--blue); }
.side-nav .side-subs li a.active em { background: var(--blue); color: #fff; }
.side-nav .side-subs li a.side-sub-all { color: var(--muted); font-size: 12.5px; }
.side-nav .side-subs li a.side-sub-all > span::before { background: #d5dde7; }
/* 三级：分组下再展开品牌细分类（PLC触摸屏维修 → 触摸屏维修 → 国产品牌触摸屏维修） */
.side-nav .side-subs .side-subs { background: #eff4fa; }
.side-nav .side-subs .side-subs li a { padding: 8px 16px 8px 46px; font-size: 12.5px; }
.side-nav .side-subs .side-subs li a > span::before { background: #dbe3ec; }
.side-nav .side-subs .side-subs li a.side-sub-all { font-size: 12px; }
.side-contact { padding: 16px; font-size: 14px; color: var(--muted); }
.side-contact h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; }
.side-phone { font-size: 19px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.side-contact p { margin: 3px 0; }
.side-btn {
  display: block; text-align: center; margin-top: 10px; padding: 9px 0;
  background: var(--orange); color: #fff; border-radius: 6px; font-weight: 600;
}
.side-btn:hover { opacity: 0.9; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-cat {
  display: inline-block; margin-top: 6px; font-size: 12px; color: var(--blue);
  background: #eef5fd; border-radius: 10px; padding: 2px 10px;
}
@media (max-width: 900px) {
  .col-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .page-banner.has-img .pb-inner { padding: 46px 16px; }
  .page-banner.has-img h1 { font-size: 24px; }
}

/* ===== 最新发布产品模块 ===== */
.latest-box { margin-top: 40px; border-top: 2px solid var(--border); padding-top: 22px; }
.latest-box .sec-head { margin-bottom: 18px; }


/* ===== 栏目列表：小图 + 名称信息 行样式 ===== */
.list-rows { display: flex; flex-direction: column; gap: 12px; }
.list-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; transition: box-shadow 0.2s, border-color 0.2s;
}
.list-row:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.row-thumb { width: 132px; height: 88px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f2f5f9; }
.row-thumb img, .row-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-info { flex: 1; min-width: 0; }
.row-info h3 {
  font-size: 16px; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-row:hover .row-info h3 { color: var(--blue); }
.row-meta { margin-top: 8px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.row-cat { background: #eef5fd; color: var(--blue); border-radius: 10px; padding: 2px 10px; font-size: 12px; }
.row-desc { margin-top: 6px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-arrow { font-size: 22px; color: #c3ccd8; flex-shrink: 0; }
.list-row:hover .row-arrow { color: var(--blue); }
.about-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.about-box img { max-width: 100%; }
@media (max-width: 600px) {
  .row-thumb { width: 104px; height: 72px; }
  .row-info h3 { font-size: 15px; }
}


/* ===== 栏目页小图网格（维修项目/成功案例） ===== */
.col-main .grid-4 { gap: 14px; }
.col-main .grid-4 .card-img { height: 150px; }
.col-main .grid-4 .card-title { font-size: 14px; padding: 10px 12px 2px; }
.col-main .grid-4 .card-date { font-size: 12px; padding: 0 12px 12px; }
@media (max-width: 900px) {
  .col-main .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 详情页底部「更多推荐」：一行 4 个缩小卡片 ===== */
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more-grid .card { border-radius: 8px; }
.more-grid .card-img { aspect-ratio: auto; height: 118px; }
.more-grid .card-title { font-size: 13px; padding: 8px 10px 2px; line-height: 1.5; }
.more-grid .card-date { font-size: 11.5px; padding: 0 10px 8px; }
@media (max-width: 1024px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 700px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .more-grid .card-img { height: 96px; }
}

/* ===== 导航：下拉子栏目（情报资讯） ===== */
.main-nav a { padding: 13px 15px; }
.main-nav li.has-sub { position: relative; }
.main-nav .caret {
  display: inline-block; width: 0; height: 0; margin-left: 5px;
  border: 4px solid transparent; border-top-color: #fff;
  transform: translateY(-1px);
}
.main-nav .sub-nav {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 150px; background: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28); z-index: 60;
  list-style: none; flex-direction: column;
}
.main-nav li.has-sub:hover .sub-nav { display: flex; }
.main-nav .sub-nav a {
  padding: 11px 18px; font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.main-nav .sub-nav li:first-child a { border-top: 0; }
.main-nav .sub-nav a:hover, .main-nav .sub-nav a.active { background: var(--orange); }

/* ===== 情报资讯页 ===== */
.empty-note { color: var(--muted); padding: 20px 0; text-align: center; }

@media (max-width: 768px) {
  .main-nav .sub-nav {
    display: flex; position: static;
    box-shadow: none; background: rgba(0,0,0,0.14);
  }
  .main-nav .sub-nav a { padding-left: 38px; }
  .main-nav a { padding: 12px 18px; }
}

/* ===== 左侧子栏目：两级侧栏随展开自然增高，不再内部滚动截断 ===== */
.side-nav { overscroll-behavior: contain; }

/* ===== 首页底部：维修优势（高端深色版块） ===== */
.adv-sec {
  background: linear-gradient(135deg, #081a36 0%, #10305e 60%, #0d2648 100%);
  color: #fff;
}
.adv-sec .sec-head.center h2, .adv-sec .sec-head.center span { color: #fff; }
.adv-sec .sec-head.center p { color: rgba(255,255,255,0.75); }
.adv-sec .sec-head.center span { opacity: 0.55; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.adv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}
.adv-img { height: 150px; background-size: cover; background-position: center; transition: transform 0.4s; }
.adv-card:hover .adv-img { transform: scale(1.05); }
.adv-body { padding: 18px 20px 22px; }
.adv-body h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: 0.5px; }
.adv-body p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.78); }
@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-img { height: 170px; }
}

/* ===== 维修优势：品牌配色 + 加粗标题 + 右侧微信扫码 ===== */
.adv-sec {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 45%, var(--blue-light) 100%);
}
.adv-sec .sec-head.center h2 { font-weight: 800; font-size: 30px; letter-spacing: 2px; }
.adv-sec .sec-head.center p { font-weight: 700; font-size: 17px; color: #fff; }
.adv-wrap { position: relative; }
.adv-qr {
  position: absolute; right: 0; top: 6px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 12px; padding: 9px 13px;
  color: #fff; transition: background 0.2s, border-color 0.2s;
}
.adv-qr:hover { background: rgba(255,255,255,0.20); border-color: #fff; }
.adv-qr img {
  width: 86px; height: 86px; display: block;
  background: #fff; border-radius: 8px; padding: 4px;
}
.adv-qr span { font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: 1px; }
@media (max-width: 768px) {
  .adv-qr { position: static; margin: 0 auto 20px; width: max-content; }
  .adv-sec .sec-head.center h2 { font-size: 24px; }
  .adv-sec .sec-head.center p { font-size: 15px; }
}

/* ===== 页头：公司图标 + 右侧文字加粗 ===== */
.logo-img { height: 52px; display: block; }
.logo-sub { font-weight: 700; color: var(--text); }
@media (max-width: 768px) {
  .logo-img { height: 42px; }
}

/* ===== 关于页：地图导航卡 ===== */
.map-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-top: 20px;
}
.map-box h3 { font-size: 17px; margin-bottom: 14px; color: var(--text); }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: 8px; display: block; }
.jhw-map { width: 100%; height: 340px; border-radius: 8px; background: #eef3f8; z-index: 0; }
.leaflet-container { font: inherit; }
.map-addr { margin: 12px 0; font-size: 14px; color: var(--text); }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; }
.map-links a {
  display: inline-block; padding: 9px 18px; font-size: 14px; font-weight: 600;
  background: var(--blue); color: #fff; border-radius: 6px; transition: background 0.2s;
}
.map-links a:hover { background: var(--blue-light); }

/* ===== 页脚 / 侧栏 / 联系方式 微信扫码图标 ===== */
.footer-qr {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 8px 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; transition: background 0.2s;
}
.footer-qr:hover { background: rgba(255,255,255,0.15); }
.footer-qr img { width: 74px; height: 74px; border-radius: 6px; background: #fff; padding: 3px; display: block; }
.footer-qr span { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.7; }

.side-qr {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 10px 12px; background: #f2f8ff; border: 1px dashed var(--blue);
  border-radius: 8px; transition: background 0.2s;
}
.side-qr:hover { background: #e6f1ff; }
.side-qr img { width: 78px; height: 78px; border-radius: 6px; background: #fff; border: 1px solid var(--border); display: block; }
.side-qr span { font-size: 13px; font-weight: 700; color: var(--blue-dark); line-height: 1.7; }

.wechat-cell { display: flex; align-items: center; gap: 14px; }
.wx-qr { display: inline-flex; align-items: center; gap: 8px; }
.wx-qr img { width: 72px; height: 72px; border-radius: 6px; background: #fff; border: 1px solid var(--border); padding: 2px; display: block; }
.wx-qr em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.wx-qr:hover em { text-decoration: underline; }

@media (max-width: 768px) {
  .footer-qr img, .side-qr img, .wx-qr img { width: 64px; height: 64px; }
  .wechat-cell { flex-direction: column; align-items: flex-start; }
}

/* ===== 详情页「图片展示」图集（后台每个内容可上传多张配图） ===== */
.detail-gallery { margin: 26px 0 8px; padding: 18px; background: #f7fafd; border: 1px solid var(--border); border-radius: 10px; }
.detail-gallery .dg-title { font-size: 16px; color: var(--blue-dark); margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--blue); }
.detail-gallery .dg-title span { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.dg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dg-item { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.dg-item:hover { box-shadow: 0 8px 20px rgba(13,58,103,0.14); transform: translateY(-2px); }
.dg-pic { display: block; height: 128px; overflow: hidden; background: #eef2f7; }
.dg-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-cap { display: block; font-size: 12.5px; color: var(--text); line-height: 1.6; padding: 8px 10px; }
@media (max-width: 1024px) { .dg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .dg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .dg-pic { height: 104px; } }

/* ===== 详情页「维修视频」（后台每个内容可单独添加视频） ===== */
.detail-video { margin: 26px 0 8px; padding: 18px; background: #f7fafd; border: 1px solid var(--border); border-radius: 10px; }
.detail-video .dv-title { font-size: 16px; color: var(--blue-dark); margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--blue); }
.detail-video .dv-title span { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.dv-box video { width: 100%; max-width: 720px; display: block; margin: 0 auto; border-radius: 8px; background: #000; }

/* ===== 详情页「在线沟通联系」（后台每个内容可单独设置，留空用站点默认） ===== */
.detail-contact { margin: 22px 0 8px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, #f7fafd, #eef5fd); }
.dc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dc-head b { font-size: 16px; color: var(--blue-dark); padding-left: 10px; border-left: 3px solid var(--blue); }
.dc-head span { font-size: 12.5px; color: var(--muted); }
.dc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dc-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; transition: box-shadow 0.2s, transform 0.2s; }
a.dc-item:hover { box-shadow: 0 8px 20px rgba(13, 58, 103, 0.14); transform: translateY(-2px); }
.dc-ico { font-size: 22px; flex: 0 0 auto; }
.dc-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-txt b { font-size: 13.5px; color: var(--blue-dark); }
.dc-txt i { font-style: normal; font-size: 14px; color: var(--text); font-weight: 700; word-break: break-all; }
.dc-qr { margin-left: auto; text-align: center; flex: 0 0 auto; }
.dc-qr img { width: 74px; height: 74px; display: block; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 2px; }
.dc-qr em { font-style: normal; font-size: 11.5px; color: var(--blue); display: block; margin-top: 4px; }
@media (max-width: 1024px) { .dc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .dc-grid { grid-template-columns: 1fr; gap: 10px; }
  .dc-qr img { width: 64px; height: 64px; }
  .detail-video, .detail-contact, .detail-gallery { padding: 14px; }
}

/* ---------- 莺语客服对话窗（第三方脚本渲染后用 CSS 纠正） ---------- */
/* 莺语脚本对宽度<768 的屏幕写死 100% 宽 × 80% 高，几乎占满整屏；这里收敛成正常聊天窗大小 */
@media (max-width: 767px) {
  #layui-kflayer19911116 {
    width: 92% !important;
    height: 66% !important;
    top: auto !important;
    bottom: 8px !important;
  }
}

/* ---------- 联系方式弹窗（首页「免费故障检测」按钮触发） ---------- */
/* 用 ID 选择器：首页 hp-home.css 的 body.hp > * 会把直接子元素改成 relative，ID 优先级更高 */
#ctMask {
  position: fixed !important; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 24, 44, .58); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s ease;
}
#ctMask[hidden] { display: none; }
#ctMask.show { opacity: 1; }
.ct-box {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 26px 24px 20px;
  box-shadow: 0 24px 60px rgba(8, 39, 70, .32);
  transform: translateY(14px) scale(.97); transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}
.ct-mask.show .ct-box { transform: none; }
.ct-close {
  position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: #9aa7b8; cursor: pointer; border-radius: 50%;
}
.ct-close:hover { background: #f0f4f9; color: var(--blue); }
.ct-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.ct-ico-lg { font-size: 26px; display: block; margin-bottom: 6px; line-height: 1.2; }
.ct-head b { display: block; font-size: 20px; color: var(--blue); letter-spacing: 1px; }
.ct-head i { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ct-rows { display: grid; gap: 10px; margin: 16px 0 14px; }
.ct-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: #f5f8fc; border: 1px solid var(--border); transition: background .2s, border-color .2s, transform .2s;
}
a.ct-row:hover { background: #eaf2fd; border-color: #b9d3f5; transform: translateY(-1px); }
.ct-ico { font-size: 20px; flex: 0 0 auto; line-height: 1; }
.ct-tx { flex: 1 1 auto; min-width: 0; }
.ct-tx b { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ct-tx i { display: block; font-style: normal; font-size: 17px; font-weight: 700; color: var(--blue); letter-spacing: .4px; word-break: break-all; }
.ct-go {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(92deg, #1d4ed8, #2f6bf0); box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
}
.ct-row-wx .ct-tx i { font-size: 15px; color: #0b8f52; }
.ct-nw { white-space: nowrap; }
.ct-sep { font-style: normal; color: #9fb0c6; padding: 0 3px; font-weight: 400; }
.ct-qr { text-align: center; padding: 2px 0 14px; }
.ct-qr img {
  width: 148px; height: 148px; object-fit: contain; margin: 0 auto; padding: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.ct-qr p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ct-online {
  display: block; width: 100%; padding: 12px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(92deg, #0ea55e, #14c473); box-shadow: 0 10px 24px rgba(16, 150, 90, .28);
}
.ct-online:hover { filter: brightness(1.05); }
@media (max-width: 480px) {
  .ct-mask { padding: 14px; }
  .ct-box { max-width: 100%; border-radius: 14px; padding: 22px 18px 16px; max-height: 88vh; }
  .ct-tx i { font-size: 16px; }
  .ct-qr img { width: 126px; height: 126px; }
}
