/* 北京西牛科技 · NEWPAIR 智维 官网全站样式
   ─────────────────────────────────────────────
   改这个文件，全站外观跟着变。
   主色：品牌蓝 #1a5fb4 ／ 深底 #16233d #102542
   版式：深蓝首屏 + 浅色分节交替 + 白卡片
   ───────────────────────────────────────────── */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.78; color: #2b3445; background: #fff; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: #1a5fb4; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ══════ 顶部导航 ══════ */
.nav { border-bottom: 1px solid #eaeef4; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; gap: 26px; min-height: 72px;
  flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
.nav .logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav .logo .mark { height: 32px; width: auto; display: block; }
.nav .logo .brand { font-size: 17px; font-weight: 700; color: #16233d; letter-spacing: 1.5px;
  line-height: 1.15; white-space: nowrap; }
.nav .logo .brand em { display: block; font-style: normal; font-size: 11px; font-weight: 400;
  color: #94a3b8; letter-spacing: .4px; margin-top: 2px; }
.nav nav { display: flex; align-items: center; gap: 23px; margin-left: auto;
  font-size: 15.5px; white-space: nowrap; }
.nav nav a { color: #43536b; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: #1a5fb4; text-decoration: none; border-bottom-color: #1a5fb4; }
.nav nav .tel { color: #fff; background: #1a5fb4; padding: 9px 18px; border-radius: 7px;
  font-weight: 600; border-bottom: none; }
.nav nav .tel:hover { background: #14509b; border-bottom-color: transparent; }

/* ══════ 首屏 ══════ */
.hero2 { position: relative; overflow: visible; padding: 62px 0 58px; background:
  radial-gradient(1100px 520px at 78% 18%, #1d4a86 0%, rgba(13,31,56,0) 62%),
  linear-gradient(160deg, #0b1728 0%, #102542 58%, #0b1728 100%); }
.hero2 .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.hero2 .eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; color: #7fb0ea;
  border: 1px solid rgba(127,176,234,.4); border-radius: 20px; padding: 5px 14px; margin-bottom: 22px; }
.hero2 h1 { font-size: 42px; line-height: 1.3; color: #fff; margin: 0 0 18px; letter-spacing: -0.8px; }
.hero2 h1 em { font-style: normal; color: #6fa8ec; }
.hero2 .sub { font-size: 18px; color: #b8c9de; margin: 0 0 28px; }
.hero2 .sub b { color: #e3ecf8; }
.hero2 .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero2 .micro { margin-top: 20px; font-size: 13.5px; color: #7f93ad; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 7px; font-weight: 600; font-size: 16px; }
.btn-main { background: #1a5fb4; color: #fff; }
.btn-main:hover { background: #14509b; text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* 真实产品截图外框 */
.ui-wrap { position: relative; }
.shot { background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(2,10,22,.55), 0 0 0 1px rgba(255,255,255,.13); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: #eef2f7;
  border-bottom: 1px solid #e3e9f0; }
.shot-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.shot-bar span { margin-left: 9px; font-size: 11.5px; color: #64748b; letter-spacing: .3px; }
.shot img { display: block; width: 100%; height: auto; }

/* ══════ 数字条 ══════ */
.nums { background: #102542; padding: 32px 0; }
.nums .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.nums b { display: block; font-size: 30px; color: #fff; line-height: 1.2; letter-spacing: -.5px; }
.nums span { font-size: 13.5px; color: #8fa6c2; }

/* ══════ 区块 ══════ */
section { padding: 60px 0; }
section.alt { background: #f7f9fc; }
h2 { font-size: 28px; margin: 0 0 10px; color: #16233d; letter-spacing: -.3px; }
.lead { color: #6b7a90; margin: 0 0 30px; font-size: 16.5px; }
.center { text-align: center; }

/* ══════ 图标格 ══════ */
.icons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.icon-item { text-align: center; padding: 22px 12px; border: 1px solid #e8ecf1; border-radius: 14px;
  background: #fff; transition: .18s; }
.icon-item:hover { border-color: #1a5fb4; box-shadow: 0 8px 24px rgba(26,95,180,.1); transform: translateY(-2px); }
.ico { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(145deg, #eaf2fd 0%, #dbe9fb 100%);
  color: #1a5fb4; margin: 0 auto 13px; }
.ico svg { width: 27px; height: 27px; }
.icon-item span { font-size: 15px; color: #33415c; font-weight: 500; }
.icon-item b { display: block; font-size: 12px; color: #1a5fb4; letter-spacing: 1px; margin-bottom: 3px; font-weight: 600; }

/* ══════ 卡片 ══════ */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { border: 1px solid #e8ecf1; border-radius: 14px; padding: 22px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: #16233d; }
.card h3 a { color: inherit; }
.card p { margin: 0; color: #6b7a90; font-size: 14.5px; }

/* ══════ 图形卡（不依赖素材照片） ══════ */
.art { position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #1a5fb4), var(--c2, #0e2440)); }
.art::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px; }
.art::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 68%);
  top: -70px; right: -50px; }
.art .word { position: absolute; left: 20px; bottom: 16px; color: #fff; z-index: 1;
  font-size: 21px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.art .kicker { position: absolute; left: 20px; top: 16px; color: rgba(255,255,255,.72); z-index: 1;
  font-size: 11px; letter-spacing: 1.6px; }
.art .ring { position: absolute; border: 1.5px solid rgba(255,255,255,.22); border-radius: 50%; z-index: 0; }
.ind { position: relative; overflow: hidden; padding: 0; }
.ind .art { height: 150px; }
.ind .body { padding: 20px 22px 22px; }
.ind.main { border-color: #1a5fb4; border-width: 2px; }
.ind .tag { position: absolute; top: 12px; left: 12px; background: #1a5fb4; color: #fff;
  font-size: 12px; padding: 3px 11px; border-radius: 20px; font-weight: 700; }

/* ══════ 三栏（角色 / 案例摘要） ══════ */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { border: 1px solid #e8ecf1; border-radius: 14px; padding: 24px; background: #fff; }
.role .who { font-size: 12.5px; letter-spacing: 1px; color: #1a5fb4; font-weight: 700; margin-bottom: 6px; }
.role h3 { font-size: 18px; margin: 0 0 12px; color: #16233d; line-height: 1.45; }
.role ul { margin: 0; padding-left: 18px; color: #55637a; font-size: 14.5px; }
.role li { margin: 7px 0; }

/* ══════ 对比表 ══════ */
.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 14px rgba(22,35,61,.06); }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid #eef2f7; vertical-align: top; }
.cmp thead th { background: #16233d; color: #fff; font-size: 14.5px; font-weight: 600; }
.cmp thead th:first-child { background: #102542; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: #16233d; font-weight: 600; }
.cmp .no { color: #9aa5b4; }
.cmp .yes { color: #12805c; }
.cmp tbody tr:nth-child(even) { background: #fafbfd; }

/* ══════ 正文页 ══════ */
article { max-width: 880px; margin: 0 auto; padding: 46px 24px 70px; }
article h1 { font-size: 30px; line-height: 1.42; margin: 0 0 8px; color: #16233d; }
article .meta { color: #93a1b5; font-size: 13.5px; margin-bottom: 26px; }
article h2 { font-size: 21px; margin: 34px 0 8px; }
article h3 { font-size: 17px; margin: 22px 0 6px; color: #16233d; }
article p { margin: 12px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin: 8px 0; }
.answer { margin: 24px 0 30px; padding: 0 0 24px; border-bottom: 1px solid #e8ecf1; }
.answer .lbl { display: none; }
.answer p { margin: 0; font-size: 16.5px; color: #3b4a61; line-height: 1.95; }
.answer p + p { margin-top: 12px; }
blockquote { margin: 26px 0; padding: 14px 20px; background: #fafafa; border-left: 4px solid #c2930a;
  font-size: 17px; font-weight: 700; color: #333; }
figure.screen { margin: 22px 0; }
figure.screen .shot { box-shadow: 0 10px 30px rgba(22,35,61,.14), 0 0 0 1px #e3e9f0; }
figure.screen figcaption { font-size: 13px; color: #8a99ae; margin-top: 9px; text-align: center; line-height: 1.65; }
.related { margin-top: 42px; padding-top: 20px; border-top: 1px solid #e8ecf1; }
.related ul { padding-left: 22px; }
.related li { margin: 9px 0; }

/* ══════ 底部标语带 ══════ */
.slogan { position: relative; min-height: 230px; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, #0b1c33 0%, #14375e 46%, #0d2338 100%); }
.slogan::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; }
.slogan .in { position: relative; z-index: 1; color: #fff; padding: 40px 24px; }
.slogan h2 { color: #fff; font-size: 32px; letter-spacing: 4px; margin: 0 0 8px; }
.slogan .en { font-size: 13px; letter-spacing: 3px; opacity: .78; }

/* ══════ 页脚 ══════ */
footer { background: #16233d; color: #9fb0c7; padding: 40px 0 38px; font-size: 14px; }
footer p { margin: 7px 0; }
footer a { color: #8fb6e8; }
footer .fnav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
footer .end { color: #6b7f99; font-size: 13px; margin-top: 18px; text-align: center; }

/* ══════ 结尾 CTA 带 ══════ */
.cta2 { background: linear-gradient(120deg, #0e2440 0%, #173a63 100%); padding: 62px 0; text-align: center; }
.cta2 h2 { color: #fff; font-size: 31px; margin: 0 0 12px; }
.cta2 p { color: #b8c9de; font-size: 17px; margin: 0 0 26px; }
.cta2 .btn { margin: 0 6px; }

/* ══════ 响应式 ══════ */
@media (max-width: 1040px) {
  .nav .wrap { gap: 18px; }
  .nav nav { gap: 15px; font-size: 14px; }
  .nav nav .tel { padding: 8px 13px; }
  .hero2 h1 { font-size: 36px; }
}
@media (max-width: 900px) {
  .hero2 .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero2 h1 { font-size: 29px; }
  .roles { grid-template-columns: 1fr; }
  .nums .wrap { grid-template-columns: repeat(2, 1fr); }
  .cmp th, .cmp td { padding: 11px 12px; font-size: 13.5px; }
  .shot { box-shadow: 0 14px 34px rgba(2,10,22,.4), 0 0 0 1px rgba(255,255,255,.13); }
}
@media (max-width: 880px) {
  .nav .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: auto; }
  .nav nav { margin-left: 0; flex-wrap: wrap; gap: 13px; font-size: 13.5px; width: 100%; }
  .nav .logo .brand em { display: none; }
  .nav .logo .mark { height: 26px; }
  .nav .logo .brand { font-size: 15.5px; }
}


/* ══════════ 横向流程带：把「一条链」画出来 ══════════ */
.flow { background: #102542; padding: 54px 0 58px; }
.flow h2 { color: #fff; font-size: 27px; margin: 0 0 6px; }
.flow .lead { color: #8fa6c2; margin: 0 0 38px; }
.flow-bar { display: flex; align-items: stretch; gap: 0; }
.flow-bar .step { flex: 1; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 18px 12px 16px; text-align: center; position: relative; }
.flow-bar .step .n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: #1a5fb4; color: #fff; font-size: 13px; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 10px; }
.flow-bar .step b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 5px; }
.flow-bar .step small { color: #8fa6c2; font-size: 12px; line-height: 1.5; display: block; }
.flow-bar .arrow { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; color: #3f6a9e; }
.flow-bar .arrow svg { width: 16px; height: 16px; }
.flow-bar .step.hot { background: rgba(26,95,180,.22); border-color: rgba(111,168,236,.5); }

/* ══════════ 痛点 → 解法 对照卡 ══════════ */
.painpair { display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid #e8ecf1; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: #fff; }
.painpair .side { padding: 22px 24px; }
.painpair .side.pain { background: #fdf6f4; border-right: 1px solid #f0e4e0; }
.painpair .side.fix { background: #f4fbf7; }
.painpair .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; display: block; }
.painpair .side.pain .tag { color: #b45309; }
.painpair .side.fix .tag { color: #12805c; }
.painpair h4 { margin: 0 0 8px; font-size: 17px; color: #16233d; }
.painpair p { margin: 0; font-size: 14.5px; color: #5b6b83; line-height: 1.72; }
.painpair .side.pain p { color: #8a6a58; }
.painpair .side.fix p { color: #3f6b57; }

/* ══════════ 大数字块 ══════════ */
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bignums .b { text-align: center; padding: 26px 14px; background: #fff;
  border: 1px solid #e8ecf1; border-radius: 14px; }
.bignums .b em { display: block; font-style: normal; font-size: 40px; font-weight: 700;
  color: #1a5fb4; line-height: 1.1; letter-spacing: -1px; }
.bignums .b em small { font-size: 17px; font-weight: 600; margin-left: 2px; }
.bignums .b span { display: block; margin-top: 8px; font-size: 13.5px; color: #7b8aa0; }

/* 大图展示 */
figure.screen.wide { margin: 26px -60px; }
figure.screen.wide .shot { box-shadow: 0 18px 46px rgba(22,35,61,.18), 0 0 0 1px #e3e9f0; }

@media (max-width: 1040px) {
  figure.screen.wide { margin: 22px 0; }
}
@media (max-width: 900px) {
  .flow-bar { flex-direction: column; }
  .flow-bar .arrow { flex: 0 0 22px; transform: rotate(90deg); }
  .painpair { grid-template-columns: 1fr; }
  .painpair .side.pain { border-right: none; border-bottom: 1px solid #f0e4e0; }
  .bignums { grid-template-columns: repeat(2, 1fr); }
  .bignums .b em { font-size: 32px; }
}


/* ══════════ 产品截图展示规范 ══════════════
   原则：整体构图和配色看得清，界面里的文字与数值不可读。
   —— 这不是偷懒，是刻意控制：既让人看到产品长什么样，又不把实现细节摆出来。
*/
figure.screen .shot { max-width: 620px; margin: 0 auto; }
figure.screen figcaption { max-width: 620px; margin-left: auto; margin-right: auto; }

/* 界面一览：两列缩略图，约 430px 一张 —— 能看出是什么模块，看不出具体数值 */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figure.screen { margin: 0; }
.gallery figure.screen .shot { max-width: 100%; }
.gallery figure.screen figcaption { max-width: 100%; font-size: 12.5px; text-align: left; margin-top: 7px; }
.gallery figure.screen.wide { grid-column: 1 / -1; }
.gallery figure.screen.wide .shot { max-width: 640px; margin: 0 auto; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
}

/* 奇数张的分组：最后一张占满两列并居中，避免左列孤零零 */
.gallery figure.screen:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gallery figure.screen:last-child:nth-child(odd) .shot { max-width: 620px; margin: 0 auto; }
.gallery figure.screen:last-child:nth-child(odd) figcaption { max-width: 620px; margin: 7px auto 0; }

/* ══════════ AI 助手区块 ══════════ */
.ai-hero { position: relative; overflow: hidden; padding: 64px 0 68px;
  background: radial-gradient(900px 460px at 82% 12%, #1d4a86 0%, rgba(13,31,56,0) 60%),
              linear-gradient(150deg, #0b1728 0%, #102542 55%, #0d1f36 100%); }
.ai-hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.ai-hero .kicker { display: inline-block; font-size: 12.5px; letter-spacing: 2px; color: #7fb0ea;
  border: 1px solid rgba(127,176,234,.4); border-radius: 20px; padding: 4px 13px; margin-bottom: 20px; }
.ai-hero h2 { color: #fff; font-size: 31px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.3px; }
.ai-hero h2 em { font-style: normal; color: #6fa8ec; }
.ai-hero .lead { color: #b8c9de; font-size: 16.5px; margin: 0 0 26px; }
.ai-points { display: flex; flex-direction: column; gap: 12px; }
.ai-points .p { color: #c7d7ea; font-size: 15px; line-height: 1.6; }
.ai-points .p b { color: #6fa8ec; font-weight: 600; margin-right: 8px; }
.ai-chat { background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(2,10,22,.55), 0 0 0 1px rgba(255,255,255,.13); }
.ai-chat-bar { display: flex; align-items: center; gap: 6px; padding: 12px 15px; background: #eef2f7;
  border-bottom: 1px solid #e3e9f0; }
.ai-chat-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ai-chat-bar span { margin-left: 9px; font-size: 12.5px; color: #64748b; letter-spacing: .3px; }
.ai-chat-body { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 11px; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 13px; font-size: 14px; line-height: 1.62; }
.bubble.q { align-self: flex-end; background: #1a5fb4; color: #fff; border-bottom-right-radius: 4px; }
.bubble.a { align-self: flex-start; background: #f1f5fb; color: #33415c; border-bottom-left-radius: 4px; display: flex; gap: 8px; }
.bubble.a::before { content: "🤖"; flex: 0 0 auto; font-size: 14px; }
.ai-chat-note { text-align: center; font-size: 11.5px; color: #a8b6c8; padding: 10px 16px 12px; }
.ai-chat-input { margin: 0 16px 16px; padding: 11px 15px; border: 1px solid #e3e9f0; border-radius: 22px;
  color: #9aa5b4; font-size: 13.5px; background: #fafbfd; }
@media (max-width: 900px) {
  .ai-hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .ai-hero h2 { font-size: 25px; }
}

/* ══════════ 预约演示表单 ══════════ */
.form-wrap { background: #f7f9fc; border: 1px solid #e8ecf1; border-radius: 16px; padding: 30px 32px 26px; margin: 30px 0 34px; }
.contact-form { margin-top: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14.5px; color: #33415c; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 15px;
  border: 1px solid #d5dde8; border-radius: 8px; background: #fff; font-family: inherit; color: #2b3445; transition: .15s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #1a5fb4; box-shadow: 0 0 0 3px rgba(26,95,180,.12); }
.form-row textarea { resize: vertical; }
.form-submit { width: 100%; border: none; cursor: pointer; padding: 14px; font-size: 16px; }
.form-msg { margin-top: 14px; font-size: 15px; min-height: 22px; text-align: center; }
.form-msg.ok { color: #12805c; font-weight: 600; }
.form-msg.err { color: #e03131; }

/* ══════════ 在线咨询对话框 ══════════ */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 8px;
  background: #1a5fb4; color: #fff; border-radius: 28px; padding: 14px 21px; cursor: pointer;
  box-shadow: 0 8px 26px rgba(26,95,180,.35); font-size: 16px; font-weight: 600; transition: .18s; user-select: none; }
.chat-fab:hover { background: #14509b; transform: translateY(-2px); }
.chat-fab-ico { font-size: 20px; }
.chat-fab.pulse { animation: chatPulse 1.4s ease-in-out infinite; }
@keyframes chatPulse { 0%,100% { box-shadow: 0 8px 26px rgba(26,95,180,.35); } 50% { box-shadow: 0 8px 40px rgba(26,95,180,.75); } }

.chat-panel { position: fixed; right: 24px; bottom: 24px; z-index: 101; width: 392px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: 16px; overflow: hidden; display: none; flex-direction: column;
  box-shadow: 0 20px 60px rgba(2,10,22,.35), 0 0 0 1px rgba(0,0,0,.06); }
.chat-panel.open { display: flex; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px;
  background: #1a5fb4; color: #fff; font-weight: 600; font-size: 16px; }
.chat-close { cursor: pointer; font-size: 22px; line-height: 1; opacity: .85; }
.chat-close:hover { opacity: 1; }
.chat-body { height: 412px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fc; }
.chat-bubble { max-width: 86%; padding: 11px 14px; border-radius: 13px; font-size: 14.5px; line-height: 1.6; }
.chat-bubble.bot { align-self: flex-start; background: #fff; color: #33415c; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.chat-bubble.client { align-self: flex-end; background: #1a5fb4; color: #fff; border-bottom-right-radius: 4px; }
.chat-input-wrap { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e8ecf1; background: #fff; }
.chat-input { flex: 1; border: 1px solid #d5dde8; border-radius: 8px; padding: 11px 13px; font-size: 14.5px; font-family: inherit; }
.chat-input:focus { outline: none; border-color: #1a5fb4; }
.chat-send { background: #1a5fb4; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-send:hover { background: #14509b; }
@media (max-width: 600px) {
  .chat-fab { right: 16px; bottom: 16px; padding: 11px 16px; }
  .chat-fab-txt { display: none; }
  .chat-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .chat-body { height: 320px; }
}