/* ============ 基础 ============ */
:root {
  --primary: #0B4F9E;
  --primary-dark: #093D7A;
  --accent: #F5A623;
  --ink: #1A2233;
  --ink-soft: #5A6472;
  --line: #E4E8EE;
  --bg-alt: #F6F8FB;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 40, 80, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ 顶部通栏 ============ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 6px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-contact a { color: var(--accent); font-weight: 600; }

/* ============ 导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(15,40,80,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; display: block; }
.brand svg.logo-full { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* 中英文切换按钮 */
.lang-switch {
  margin-left: 4px; margin-right: 14px;
  padding: 5px 14px; font-size: 13px; font-weight: 700;
  color: var(--primary); background: #fff;
  border: 1.5px solid var(--primary); border-radius: 999px;
  cursor: pointer; transition: .2s; letter-spacing: 1px;
}
.lang-switch:hover { background: var(--primary); color: #fff; }

/* 服务团队亮点 */
.team-highlight {
  margin-top: 28px; padding: 18px 24px;
  background: linear-gradient(90deg, rgba(30, 58, 138, .08), rgba(13, 148, 136, .08));
  border-left: 3px solid var(--primary); border-radius: 10px;
  color: var(--ink); font-size: 15px; line-height: 1.9;
}

@media (max-width: 640px) {
  .lang-switch { position: absolute; right: 56px; top: 22px; margin: 0; padding: 4px 12px; }
}

/* ============ Banner ============ */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.no-img { background: linear-gradient(120deg, #0B4F9E 0%, #1466C6 55%, #1E7EE0 100%); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,28,58,.88) 18%, rgba(9,48,96,.55) 55%, rgba(9,48,96,.18) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 90px 0; }
.hero-tag {
  display: inline-block; font-size: 14px; letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 22px; color: #FFD591;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.22; font-weight: 700; }
.hero-sub { margin: 22px 0 34px; font-size: 17px; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; transition: .25s;
}
.btn-primary { background: var(--accent); color: #33230A; }
.btn-primary:hover { background: #FFB63A; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,166,35,.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ============ 数据条 ============ */
.stats { background: #fff; padding: 42px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
a.stat { display: block; text-decoration: none; padding: 14px 10px; border-radius: 12px; transition: .2s; }
a.stat:hover { background: var(--bg-soft, #f5f8ff); transform: translateY(-2px); }
.stat strong { display: block; font-size: 21px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.stat span { font-size: 14px; color: var(--ink-soft); line-height: 1.7; display: block; }

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-tag { font-size: 13px; letter-spacing: 3px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--accent); margin: 16px auto 0; border-radius: 2px;
}
.section-desc { color: var(--ink-soft); font-size: 15.5px; }

/* ============ 设备领域卡片 ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .3s; box-shadow: 0 2px 8px rgba(15,40,80,.04);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
a.card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #DDE7F2, #C4D4E6); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; position: relative; padding-left: 14px; }
.card-body h3::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 4px; height: 18px; background: var(--accent); border-radius: 2px;
}
.card-body p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ 服务 ============ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: .3s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 26px;
  background: linear-gradient(135deg, #EAF2FB, #D8E7F8);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service h3 { font-size: 17.5px; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ 关于 ============ */
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #DDE7F2, #C4D4E6); box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: 34px; margin-bottom: 20px; }
.about-text p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.about-vision {
  background: #F4F7FC; border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 14px 16px; font-size: 14.5px; line-height: 1.8;
}
.about-text b { color: var(--primary); }
.about-list { list-style: none; margin: 4px 0 22px; }
.about-list li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #33230A; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; transition: .3s;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 12px; }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); }
.contact-card a { color: var(--primary); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ============ 页脚 ============ */
.footer { background: #0E1A2B; color: rgba(255,255,255,.6); padding: 30px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============ 详情页四列服务卡 ============ */
.service-grid.four { grid-template-columns: repeat(4, 1fr); }
.service .card-img { border-radius: 10px; margin-bottom: 16px; }
.service .card-img img { transition: transform .5s; }
.service:hover .card-img img { transform: scale(1.06); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .card-grid, .service-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid.four { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .topbar-inner { flex-direction: column; justify-content: center; text-align: center; gap: 2px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-200%); transition: transform .3s; z-index: 99;
    visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 6%; }
  .nav-toggle { display: block; }
  .card-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid.four { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-content { padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15.5px; margin: 16px 0 26px; }
  .stat strong { font-size: 18px; }
  .section-head h2 { font-size: 27px; }
  .brands-strip { padding: 42px 0; }
  .b-item { padding: 14px 6px; }
  .b-item strong { font-size: 14.5px; }
  .b-item span { font-size: 11.5px; }
  .industry-switch { top: 70px; }
  .industry-switch a { padding: 6px 14px; font-size: 13px; }
  .about-vision { padding: 12px 14px; font-size: 14px; }
  .intro-lead { font-size: 14.5px; margin-bottom: 34px; }
}

/* ============ 行业详情页（追加样式，勿动上方已有规则） ============ */
.detail-hero { min-height: 460px; }
.detail-hero .hero-content { padding: 70px 0; }
.detail-hero .hero h1 { font-size: clamp(30px, 4vw, 44px); }

/* 行业切换导航条 */
.industry-switch {
  position: sticky; top: 72px; z-index: 90;
  background: #fff; border-bottom: 1px solid var(--line);
}
.industry-switch-inner { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; -ms-overflow-style: none; }
.industry-switch-inner::-webkit-scrollbar { display: none; }
.industry-switch a {
  flex: none; font-size: 14px; color: var(--ink-soft);
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line);
  transition: .2s; white-space: nowrap;
}
.industry-switch a:hover, .industry-switch a.on {
  color: #fff; background: var(--primary); border-color: var(--primary);
}

/* 行业简介引导语 */
.intro-lead {
  max-width: 860px; margin: 0 auto 46px; text-align: center;
  color: var(--ink-soft); font-size: 15.5px;
}

/* 代理品牌区 */
.brand-block + .brand-block { margin-top: 46px; }
.brand-block h3 { font-size: 22px; margin-bottom: 4px; }
.brand-en { font-size: 13px; letter-spacing: 2px; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.brand-desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 24px; max-width: 860px; }
.card-body h4 { font-size: 16.5px; margin-bottom: 8px; color: var(--ink); }
.card-link {
  display: inline-block; margin-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--primary); transition: color .2s;
}
.card-link:hover { color: var(--accent); }

/* 首页代理品牌条（无缝自动轮播） */
.brands-strip { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.brands-strip .section-head { margin-bottom: 36px; }
.b-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 20px 10px; transition: .3s; display: block;
}
.b-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.b-item strong { display: block; font-size: 16.5px; color: var(--primary); margin-bottom: 4px; }
.b-item span { font-size: 12.5px; color: var(--ink-soft); }
.brands-marquee { width: min(1180px, 92%); margin: 0 auto; overflow: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.brands-marquee::-webkit-scrollbar { display: none; }
.brands-track {
  --b-gap: 18px;
  display: flex; width: max-content;
  animation: brandsScroll 60s linear infinite;
}
.brands-group { display: flex; gap: var(--b-gap); padding-right: var(--b-gap); }
.brands-track .b-item { flex: 0 0 calc((min(1180px, 92vw) - 5 * var(--b-gap)) / 6); min-width: 0; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  .brands-marquee { overflow-x: auto; }
}

@media (max-width: 1199px) {
  .detail-hero { min-height: 380px; }
  .brands-track .b-item { flex-basis: calc((min(1180px, 92vw) - 3 * var(--b-gap)) / 4); }
}
@media (max-width: 767px) {
  .detail-hero { min-height: 320px; }
  .industry-switch { top: 71px; }
  .brands-track .b-item { flex-basis: calc((min(1180px, 92vw) - 2 * var(--b-gap)) / 3); }
}

/* ============ 在线客服悬浮组件 ============ */
.cs-widget { position: fixed; right: 24px; bottom: 64px; z-index: 999; }

/* 悬浮按钮 */
.cs-fab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 999px; box-shadow: 0 6px 20px rgba(11, 79, 158, .35);
  transition: .3s;
}
.cs-fab:hover, .cs-fab.active { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 79, 158, .45); }

/* 弹框 */
.cs-popup {
  position: absolute; right: 0; bottom: 64px;
  width: 340px; max-width: calc(100vw - 32px);
  max-height: min(520px, calc(100vh - 140px)); /* 不遮挡顶部导航栏 */
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 40, 80, .22);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
  transition: .28s cubic-bezier(.2, .8, .3, 1);
}
.cs-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* 头部 */
.cs-popup-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: grab; user-select: none; touch-action: none;
}
.cs-popup-head:active { cursor: grabbing; }
.cs-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.cs-head-info { flex: 1; min-width: 0; line-height: 1.4; }
.cs-head-info strong { display: block; font-size: 15px; }
.cs-head-info span { font-size: 12px; opacity: .85; }
.cs-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-right: 4px; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}
.cs-close {
  border: none; background: rgba(255,255,255,.15); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1; transition: .2s;
}
.cs-close:hover { background: rgba(255,255,255,.3); }

/* 消息区 */
.cs-popup-body {
  height: 260px; overflow-y: auto; padding: 14px;
  background: var(--bg-alt);
  display: flex; flex-direction: column; gap: 10px;
}
.cs-msg {
  max-width: 82%; padding: 9px 12px; font-size: 13px; line-height: 1.6;
  border-radius: 10px; word-break: break-word;
}
.cs-msg a { color: var(--primary); font-weight: 600; }
.cs-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-top-left-radius: 3px; }
.cs-msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-top-right-radius: 3px; }

/* 打字中 */
.cs-typing { display: flex; gap: 4px; align-items: center; padding: 12px; }
.cs-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #B8C0CC;
  animation: csBlink 1.2s infinite;
}
.cs-typing span:nth-child(2) { animation-delay: .2s; }
.cs-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes csBlink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* 快捷问题 */
.cs-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px; border-top: 1px solid var(--line); background: #fff;
}
.cs-quick button {
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-soft);
  font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.cs-quick button:hover { border-color: var(--primary); color: var(--primary); background: #EDF3FB; }

/* 输入区 */
.cs-popup-foot { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); }
.cs-popup-foot input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; outline: none; transition: .2s;
}
.cs-popup-foot input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 79, 158, .1); }
.cs-popup-foot button {
  border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; transition: .2s;
}
.cs-popup-foot button:hover { background: var(--primary-dark); }

@media (max-width: 767px) {
  .cs-widget { right: 16px; bottom: 16px; }
  .cs-fab { padding: 10px 14px; font-size: 14px; }
  .cs-popup { bottom: 58px; }
}
