/* ============================================================
 *  金林云科技 · 官网样式表
 *  配色：金蝶蓝 + 浅灰底，商务清爽风（参照广东地区金蝶代理商官网）
 *  想改主色调，只需改下面 :root 里的 --brand 一行。
 * ============================================================ */

:root {
  --brand:        #0052d9;   /* 主色：金蝶蓝 */
  --brand-dark:   #00337a;
  --brand-light:  #e8f0ff;
  --accent:       #ff7a00;   /* 强调色：CTA / 数字 */
  --text:         #1a1f2e;
  --text-2:       #4b5567;
  --text-3:       #828b9c;
  --line:         #e5e9f0;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --radius:       14px;
  --shadow:       0 6px 24px rgba(16, 34, 68, .07);
  --shadow-lg:    0 16px 48px rgba(16, 34, 68, .13);
  --max:          1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: .22s; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 82, 217, .28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 82, 217, .34); }
.btn-ghost { color: var(--brand); border-color: #cadcff; background: #fff; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--brand-dark); color: #c8d8f5; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-item b { color: #fff; letter-spacing: .3px; }
.topbar-right { display: flex; gap: 22px; }
.topbar-mobile { position: relative; padding-left: 22px; }
.topbar-mobile::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 13px; background: rgba(255,255,255,.28); transform: translateY(-50%); }

/* ---------- 头部 ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16,34,68,.09); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #2b7dff);
  color: #fff; font-size: 21px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 82, 217, .3);
}
/* 用真实 Logo 图片时：去掉渐变底和阴影，图片完整显示 */
.brand-mark.brand-mark-img { background: none; box-shadow: none; overflow: hidden; }
.brand-mark.brand-mark-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 页脚深色底上给 Logo 图垫一层浅色圆角，避免深色部分吃进图里 */
.brand-light .brand-mark.brand-mark-img { background: #f4f7fb; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: .5px; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: .2px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; flex-shrink: 0; }
/* 导航文字永不折行：中文可在任意字符间断行，flex 压缩时会出现「产品中/心」两行，必须禁掉。
   基准尺寸按 1152px 容器（--max 1200 - 左右内边距）放得下 8 个链接 + 品牌 + 两个按钮来定 */
.nav-link { padding: 8px 11px; border-radius: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; transition: .2s; position: relative; white-space: nowrap; }
.nav-link:hover { color: var(--brand); background: var(--bg-soft); }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; background: var(--brand); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 Hero（浅色实景 + 背景图轮播） ---------- */
.hero {
  position: relative; overflow: hidden; color: #0c2d52;
  /* 无背景图时的兜底：品牌蓝渐变 */
  background: linear-gradient(120deg, #e9f1fb 0%, #dceafc 50%, #cfe3fa 100%);
}
/* 轮播层：js 按 heroSlides 注入 .slide，加 .on 的那张淡入 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 42%;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-bg .slide.on { opacity: 1; }
/* 左侧浅色文字区：白 → 透明，右侧完整露出实景 */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(94deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.94) 28%,
    rgba(255,253,248,.74) 42%,
    rgba(255,255,255,.30) 52%,
    rgba(255,255,255,0) 62%);
}
/* 底部品牌蓝轻渐变：过渡到下方深色数字条 */
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1;
  background: linear-gradient(180deg, rgba(11,32,64,0) 0%, rgba(11,32,64,.26) 62%, rgba(11,32,64,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 84px 0 72px; max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.92); border: 1.5px solid rgba(14,75,142,.45);
  color: #0a3a75;
  padding: 7px 17px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(9,42,96,.12);
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: #0f9d58; box-shadow: 0 0 0 4px rgba(15,157,88,.25); }
.hero h1 { font-size: 44px; line-height: 1.28; font-weight: 800; letter-spacing: -.4px; margin-bottom: 20px; color: #071f3d; text-shadow: 0 1px 0 #fff, 0 2px 14px rgba(255,255,255,.9); }
.hero h1 .hl { color: #0a66c2; }
.hero p.lead { font-size: 17px; font-weight: 500; color: #122e4d; max-width: 580px; margin-bottom: 34px;
  text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 1px 6px rgba(255,255,255,.9), 0 0 26px rgba(255,255,255,.75); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
/* 浅色首屏上的按钮：主按钮改品牌蓝实底，副按钮白底描边 */
.hero .btn-light { background: #1173d4; color: #fff; box-shadow: 0 8px 20px rgba(17,115,212,.32); }
.hero .btn-light:hover { background: #0d5fb4; }
.hero .btn-outline { background: rgba(255,255,255,.92); color: #0e4b8e; border-color: rgba(14,75,142,.35); }
.hero .btn-outline:hover { background: #fff; }
/* 尊重系统"减少动态效果"设置：轮播退化为只显示第一张 */
@media (prefers-reduced-motion: reduce) {
  .hero-bg .slide { transition: none; }
  .hero-bg .slide:not(:first-child) { display: none; }
}

/* 数字条 */
.stats { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.22); background: rgba(7,22,48,.46); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: 0; }
.stat b { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.5px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.stat b small { font-size: 15px; font-weight: 600; color: #9fd0ff; margin-left: 3px; }
.stat span { display: block; font-size: 13.5px; font-weight: 500; color: #e6effc; margin-top: 5px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ---------- 通用区块 ---------- */
.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-label { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -.4px; margin: 10px 0 14px; }
.sec-head p { color: var(--text-2); font-size: 16px; }

/* ---------- 荣誉条 ---------- */
.honor-strip { border-bottom: 1px solid var(--line); background: #fff; }
.honor-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; }
.honor-inner .hl-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.honor-chip {
  font-size: 13.5px; color: var(--brand-dark); background: var(--brand-light);
  border: 1px solid #cfe0ff; border-radius: 999px; padding: 6px 15px; font-weight: 500;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .26s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cadcff; }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--brand);
}
/* 大号渐变序号（about「为什么选我们」卡片） */
.ico-num {
  font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: .5px;
  margin-bottom: 14px;
  background: linear-gradient(120deg, #0052d9 25%, #4f94ff 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #0052d9;
}
.card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 650; }
.card p { color: var(--text-2); font-size: 14.5px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag { font-size: 12.5px; color: var(--text-2); background: var(--bg-soft); border-radius: 6px; padding: 4px 10px; }
.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 600; font-size: 14.5px; margin-top: 18px; }
.card-link::after { content: "→"; transition: .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* 产品卡（带顶部色条） */
.pcard { border-top: 4px solid var(--brand); }
.pcard .pcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pcard-level { font-size: 12px; color: #fff; background: var(--brand); padding: 3px 11px; border-radius: 999px; font-weight: 500; }
.pcard h3 { font-size: 20px; margin-bottom: 8px; }
.pcard .pcard-sub { color: var(--brand); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }

/* 方案卡 */
.scard { display: flex; gap: 20px; align-items: flex-start; }
.scard .sico { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-light), #d7e6ff); display: flex; align-items: center; justify-content: center; color: var(--brand); }

/* 行业方案页：镇街标签 + 产业背景说明 */
.area-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-light); border: 1px solid #cfe0ff; padding: 4px 13px; border-radius: 999px; letter-spacing: .2px; line-height: 1.6; }
.ind-bg { font-size: 13.5px; line-height: 1.8; color: var(--text-2); background: var(--bg-soft); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 15px; margin-top: 14px; }

/* ---------- 服务流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; position: relative; transition: .25s; }
.flow-step:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.flow-step .num { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.flow-step h4 { font-size: 16.5px; margin: 9px 0 8px; }
.flow-step p { font-size: 13.5px; color: var(--text-2); }
.flow-step::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid #c8d5e8; border-right: 2px solid #c8d5e8; transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }

/* ---------- 案例 ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .26s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-cover { height: 132px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); position: relative; display: flex; align-items: flex-end; padding: 16px; }
.case-cover .case-cat { font-size: 12px; color: #fff; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 3px 11px; border-radius: 999px; }
.case-cover .case-mark { position: absolute; right: 16px; top: 14px; font-size: 34px; font-weight: 700; color: rgba(255,255,255,.16); letter-spacing: 1px; }
.case-body { padding: 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: var(--text-2); }
.case-metrics { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.case-metrics div b { color: var(--accent); font-size: 20px; font-weight: 700; }
.case-metrics div span { display: block; font-size: 12.5px; color: var(--text-3); }

/* ---------- 镇区覆盖 ---------- */
.town-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.town-grid span {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 22px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: .22s;
}
.town-grid span:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- 新闻 ---------- */
.news-item { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: .2s; }
.news-item:hover { padding-left: 8px; }
.news-date { flex-shrink: 0; width: 84px; text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 10px 0; }
.news-date b { display: block; font-size: 23px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12px; color: var(--text-3); }
.news-main h3 { font-size: 17px; margin-bottom: 6px; }
.news-main p { font-size: 14px; color: var(--text-2); }
.news-cat { font-size: 12.5px; color: var(--brand); background: var(--brand-light); border-radius: 5px; padding: 2px 9px; margin-right: 8px; }

/* --- 新闻详情页（由 data/news-data.js 渲染） --- */
.crumb-bar { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.crumb-bar a { color: var(--brand); }
.crumb-bar a:hover { text-decoration: underline; }
.article-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-head h1 { font-size: 30px; line-height: 1.4; margin: 14px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--text-3); }
.article-body { font-size: 15.5px; }
.article-body.prose p { margin-bottom: 15px; line-height: 1.85; }
.article-body.prose h3 { margin-top: 32px; }
.article-body b { color: var(--text); font-weight: 600; }
.prose blockquote {
  background: var(--bg-soft); border-left: 4px solid var(--brand);
  padding: 18px 22px; border-radius: 0 10px 10px 0;
  color: var(--text-2); margin: 18px 0; font-size: 15px;
}
.prose ol.dot { margin: 12px 0 14px 22px; list-style: decimal; }
.prose ol.dot li { color: var(--text-2); margin-bottom: 9px; padding-left: 4px; }
.article-cta {
  margin-top: 36px; padding: 24px 26px; background: var(--brand-light);
  border-radius: var(--radius); display: flex; flex-wrap: wrap;
  gap: 16px; align-items: center; justify-content: space-between;
}
.article-cta p { color: var(--brand-dark); font-size: 14.5px; margin: 0; max-width: 480px; }
.article-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.article-nav a {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--text); transition: .2s; line-height: 1.5;
}
.article-nav a span { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; margin-bottom: 6px; }
.article-nav a:hover { border-color: var(--brand); background: var(--brand-light); }

/* ---------- 内页头部 ---------- */
.page-hero { background: linear-gradient(120deg, #002a66, var(--brand-dark) 60%, #0b5fe0); color: #fff; padding: 58px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -100px; bottom: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(43,125,255,.5), transparent 65%); border-radius: 50%; }
.page-hero .crumb { font-size: 13.5px; color: #a8c2ea; position: relative; z-index: 2; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin: 12px 0 10px; position: relative; z-index: 2; }
.page-hero p { color: #bdd2f2; font-size: 16px; max-width: 700px; position: relative; z-index: 2; }

/* ---------- 内容排版 ---------- */
.prose h2 { font-size: 24px; margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--brand); }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { color: var(--text-2); margin-bottom: 12px; }
.prose ul.dot { margin: 12px 0 12px 4px; }
.prose ul.dot li { position: relative; padding-left: 20px; color: var(--text-2); margin-bottom: 9px; }
.prose ul.dot li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* 时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), #cfe0ff); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.tl-item b { color: var(--brand); font-size: 15px; }
.tl-item h4 { font-size: 17px; margin: 3px 0 6px; }
.tl-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
thead th { background: var(--bg-soft); text-align: left; padding: 14px 18px; font-weight: 650; color: var(--text); border-bottom: 1px solid var(--line); }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td.hl { color: var(--brand); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--brand); flex-shrink: 0; transition: .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 400px; }

/* --- 页签组件（通用，用法：<div data-tabs> 内放 .tab-btn 与 .tab-pane，data-tab 对应 data-pane） --- */
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--line); margin: 20px 0 22px;
}
.tabs-nav .tab-btn {
  padding: 10px 20px; font-size: 15px; font-weight: 600; color: var(--text-2);
  border-radius: 10px 10px 0 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .2s, background .2s, border-color .2s;
}
.tabs-nav .tab-btn:hover { color: var(--brand); background: var(--brand-light); }
.tabs-nav .tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: tabIn .28s ease; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.migrate-box { background: #eef4ff; border-radius: var(--radius); padding: 28px; }
.migrate-box h4 { color: var(--brand-dark); margin-bottom: 14px; }
.migrate-box .mig-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.migrate-box .mig-line:last-child { margin-bottom: 0; }
.migrate-box .mig-from { font-size: 13.5px; color: var(--text-3); }
.migrate-box .mig-to { font-weight: 700; color: var(--brand-dark); }
.migrate-box .mig-arrow { color: var(--brand); font-weight: 700; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
/* 第三方表单嵌入卡片：iframe 撑满卡片内容区，留一点内边距不贴边
   （iframe 高度以第三方给的 height 属性为准，这里不设 min-height 免得裁内容） */
.lead-embed-wrap { padding: 18px; overflow: hidden; }
.lead-embed-wrap iframe { border: 0; display: block; width: 100%; }
@media (max-width: 520px) { .lead-embed-wrap { padding: 10px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.field label i { color: #e5484d; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--text); background: #fcfdff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0,82,217,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: 13px; color: var(--text-3); margin-top: 12px; text-align: center; }
.form-ok { display: none; background: #eaf7ee; border: 1px solid #b7e4c7; color: #1b7a45; border-radius: 10px; padding: 13px 16px; font-size: 14.5px; margin-bottom: 16px; }

/* 上门地图卡：未嵌地图时是指引卡，粘入 embedCode 后自动变为全宽地图 */
.map-slot { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.map-slot.map-on { border: 0; padding: 0; background: none; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.map-hint { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.map-slot iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.form-ok .ok-quick { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #b7e4c7; font-size: 13.5px; }
.form-ok .ok-quick a { color: #0f6b3c; font-weight: 700; text-decoration: underline; }

/* ---------- 快捷联系（电话 + 微信二维码，与留言表单并存） ---------- */
.quick-contact { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); }
.qc-head h4 { font-size: 17px; margin-bottom: 6px; }
.qc-head p { font-size: 13.5px; color: var(--text-3); }
.qc-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 18px; }
.qc-links { display: grid; gap: 10px; }
.qc-link { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); transition: .2s; }
.qc-link:hover { border-color: var(--brand); background: var(--brand-light); transform: translateX(3px); }
.qc-link .qc-ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qc-link span { display: flex; flex-direction: column; min-width: 0; }
.qc-link b { font-size: 16.5px; color: var(--text); letter-spacing: .3px; }
.qc-link em { font-style: normal; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.qc-link-main { border-color: rgba(0,82,217,.35); background: var(--brand-light); }
.qc-link-main .qc-ico { background: var(--brand); color: #fff; }
.qc-qr { text-align: center; border-left: 1px dashed var(--line); padding-left: 22px; }
.qc-qr img { width: 132px; height: 132px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; display: block; }
.qc-qr > span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* 第三方表单嵌入位（lead.mode = "embed" 时才有内容） */
[data-lead-embed] { display: none; }
[data-lead-embed] iframe { width: 100%; border: 0; min-height: 640px; }

/* ---------- 联系信息块 ---------- */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.info-item .iico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item h4 { font-size: 14px; color: var(--text-3); font-weight: 500; margin-bottom: 3px; }
.info-item p { font-size: 16px; font-weight: 600; color: var(--text); word-break: break-all; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1a33; color: #93a4c0; margin-top: 0; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 46px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.footer-cta p { font-size: 14.5px; max-width: 620px; }
.footer-main { display: grid; grid-template-columns: 1.35fr 2fr; gap: 50px; padding-top: 44px; padding-bottom: 36px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text em { color: #7b8fb0; }
.foot-desc { font-size: 14px; margin: 18px 0 20px; line-height: 1.75; }
.foot-contact li { display: flex; gap: 12px; font-size: 14px; margin-bottom: 9px; }
.foot-contact li span { color: #6b7f9e; width: 62px; flex-shrink: 0; }
.foot-contact li b, .foot-contact li a { color: #cfdcee; font-weight: 500; }
.foot-contact li a:hover { color: #fff; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { font-size: 14px; transition: .2s; }
.foot-col a:hover { color: #fff; padding-left: 4px; }
.footer-towns { padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.town-label { font-size: 13px; color: #6b7f9e; }
.town-chip { font-size: 12.5px; background: rgba(255,255,255,.07); border-radius: 6px; padding: 4px 11px; color: #9db1cf; }
.footer-bottom { background: rgba(0,0,0,.28); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #6b7f9e; flex-wrap: wrap; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- 浮动侧栏 ---------- */
.side-dock { position: fixed; right: 18px; bottom: 90px; z-index: 950; display: flex; flex-direction: column; gap: 8px; }
.dock-item {
  width: 58px; height: 58px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--brand); transition: .22s;
}
.dock-item em { font-style: normal; font-size: 11px; color: var(--text-2); }
.dock-item:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.dock-item:hover em { color: #fff; }
.dock-top { opacity: 0; pointer-events: none; }
.dock-top.show { opacity: 1; pointer-events: auto; }

/* 浮动栏里的微信：点击弹出二维码 */
.dock-wx-wrap { position: relative; }
.dock-wx { cursor: pointer; font-family: inherit; }
.dock-wx-wrap.open .dock-wx { background: #07C160; color: #fff; border-color: #07C160; }
.dock-wx-wrap.open .dock-wx em { color: #fff; }
.dock-qr {
  position: absolute; right: calc(100% + 12px); bottom: 0; width: 196px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px; text-align: center; display: none; z-index: 960;
}
.dock-wx-wrap.open .dock-qr { display: block; animation: dockQrIn .2s ease; }
.dock-qr::after {
  content: ""; position: absolute; right: -6px; bottom: 20px; width: 11px; height: 11px;
  background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.dock-qr img { width: 100%; height: auto; border-radius: 8px; display: block; }
.dock-qr b { display: block; font-size: 14px; margin: 9px 0 3px; color: var(--text); }
.dock-qr span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.55; }
@keyframes dockQrIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* ---------- 滚动进场 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
/* ≤1240：隐藏头部座机按钮（顶栏「服务热线」已有同一号码），给导航让出一行空间 */
@media (max-width: 1240px) {
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3n)::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  /* ≤1080：导航收起为抽屉菜单 */
  .topbar-mobile { display: none; }
  .header-inner { height: 66px; gap: 14px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 10px; border-radius: 8px; font-size: 15.5px; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { padding: 9px 15px; font-size: 14px; }
}
/* 公司实景照片（about 页） */
.office-photo {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg, 0 12px 34px rgba(7,31,61,.08));
}
.office-photo img { display: block; width: 100%; height: auto; }
.office-photo figcaption {
  padding: 13px 20px; font-size: 13.5px; color: var(--text-3, #6b7a90);
  border-top: 1px solid var(--line); background: #fff; text-align: center;
}
/* 资质与荣誉证书卡片（about 页） */
.cert-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: .25s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cadcff; }
.cert-thumb {
  height: 300px; display: flex; align-items: center; justify-content: center;
  padding: 14px; background:
    linear-gradient(45deg, #f7f9fc 25%, transparent 25%, transparent 75%, #f7f9fc 75%),
    linear-gradient(45deg, #f7f9fc 25%, #fff 25%, #fff 75%, #f7f9fc 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.cert-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-info { border-top: 1px solid var(--line); padding: 14px 14px 16px; text-align: center; }
.cert-info h3 { font-size: 15px; margin: 0 0 5px; }
.cert-info p { font-size: 12.5px; color: var(--text-3); margin: 0; }
@media (max-width: 820px) {
  .cert-thumb { height: 240px; }
}
@media (max-width: 820px) {
  .hero-inner { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  /* 窄屏：白色文字区改为自上而下，文字在上、实景露出下半部分 */
  .hero-bg::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.88) 44%,
      rgba(255,255,255,.34) 72%,
      rgba(255,255,255,.08) 100%);
  }
  .hero-bg .slide { background-position: center 58%; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .section { padding: 54px 0; }
  .sec-head h2 { font-size: 25px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .page-hero h1 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .side-dock { right: 10px; bottom: 70px; }
  .dock-item { width: 50px; height: 50px; }
  .news-item { align-items: flex-start; }
  .tabs-nav { gap: 2px; margin: 16px 0 18px; }
  .tabs-nav .tab-btn { padding: 9px 13px; font-size: 14px; }
  .migrate-box { padding: 22px; }
  .article-head h1 { font-size: 23px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-cta { padding: 20px; }
  .qc-body { grid-template-columns: 1fr; gap: 18px; }
  .qc-qr { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 18px; }
  .qc-qr img { width: 156px; margin: 0 auto; }
  .dock-qr { width: 178px; padding: 12px; }
}
@media (max-width: 520px) {
  .brand-text em { display: none; }
  /* 顶栏放不下口号+电话：隐藏左侧口号，保住右侧服务热线 */
  .topbar-inner > .topbar-item:first-child { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr; }
  .quick-contact { padding: 22px 18px; }
  .qc-link b { font-size: 15.5px; }
}
