/* ===========================================================
   上海翼联工贸有限公司 · Jergens 华东区代理商
   设计语言：工业 B2B · 品牌蓝 #16459D
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #16459D;
  --brand-dark: #0E2E63;
  --brand-ink: #0A2450;
  --brand-light: #4A78C4;
  --brand-tint: #EEF3FB;
  --accent: #E2761B;
  --accent-dark: #C25F10;

  --ink: #1E2833;
  --ink-2: #3C4A5C;
  --muted: #6B7A8D;
  --line: #E2E8F0;
  --line-soft: #EFF3F8;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --bg-deep: #0A2450;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 40, 80, .06), 0 1px 2px rgba(16, 40, 80, .04);
  --shadow: 0 6px 20px rgba(16, 40, 80, .10);
  --shadow-lg: 0 18px 44px rgba(10, 36, 80, .16);

  --maxw: 1240px;
  --nav-h: 68px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
/* 内联图标默认尺寸：icon() 只输出 viewBox，不给 width/height 时
   浏览器会按 100% 容器宽渲染（撑到 300~450px），必须显式约束。
   后续更具体的规则（.feat-icon svg / .float-item svg 等）会覆盖这里。 */
svg { width: 1em; height: 1em; flex: none; vertical-align: -.14em; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; color: var(--brand-ink); }
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; min-height: 40px;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar-tags { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tag-agent {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .3px;
}
.topbar-contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-contact svg { width: 15px; height: 15px; }
.topbar-contact b { color: #fff; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.tag-agent svg { width: 14px; height: 14px; }

/* ---------- Header / Logo ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(16, 40, 80, .04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: var(--nav-h); padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img.logo-img { height: 32px; width: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-text { line-height: 1.3; }
.brand-name { display: block; font-size: 15px; font-weight: 800; color: var(--brand-ink); letter-spacing: .3px; white-space: nowrap; }
.brand-sub { display: block; font-size: 10px; color: var(--muted); letter-spacing: .3px; white-space: nowrap; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tel-badge {
  display: flex; flex-direction: column; line-height: 1.2;
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.tel-badge small { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.tel-badge strong { font-size: 16px; color: var(--brand); font-weight: 800; letter-spacing: .3px; white-space: nowrap; }

/* ---------- 导航 ---------- */
/* 导航禁止换行 —— 一旦 wrap，整个 header 会被挤成两三行 */
.main-nav { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; }
.main-nav > li { position: relative; list-style: none; margin: 0; }
.main-nav > li > a {
  display: block; padding: 9px 8px; border-radius: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.main-nav > li > a:hover { color: var(--brand); background: var(--brand-tint); }
.main-nav > li.active > a { color: var(--brand); background: var(--brand-tint); }
.main-nav > li.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 4px; vertical-align: 3px;
  border: 3.5px solid transparent; border-top-color: currentColor;
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
  max-height: 78vh; overflow-y: auto;
  max-width: min(560px, calc(100vw - 32px));
}
.main-nav li:hover .dropdown, .main-nav li:focus-within .dropdown { display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1px; }
.dropdown ul.cats { grid-template-columns: 1fr 1fr; }
.dropdown li { margin: 0; }
.dropdown a {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
}
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }
.dropdown a .num { color: var(--accent); font-weight: 700; font-size: 12px; min-width: 20px; }

/* 移动端菜单 */
.nav-toggle {
  display: none; background: var(--brand); color: #fff; border: 0;
  border-radius: 8px; padding: 9px 14px; font-size: 15px; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, #2A63BB 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 82% 12%, rgba(226, 118, 27, .22), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 11px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr;
  gap: 0; align-items: start; padding: 60px 0 64px;
}
.hero h1 { color: #fff; font-size: 40px; line-height: 1.24; margin-bottom: 18px; letter-spacing: .5px; }
.hero .lead { font-size: 16.5px; color: rgba(255, 255, 255, .9); margin-bottom: 26px; max-width: 640px; }
.hero-highlight { color: #FFC98A; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(226,118,27,.28); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }

.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.fact-num { font-size: 27px; font-weight: 800; color: #fff; letter-spacing: .5px; line-height: 1.1; }
.fact-num em { font-style: normal; color: #FFC98A; }
.fact-label { font-size: 12.5px; color: rgba(255,255,255,.75); letter-spacing: .5px; }

/* 三张优势卡横向排布（原来在右栏纵向堆叠，配图被撑爆后极高） */
.hero-badges {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18);
}
.badge-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(3px);
  transition: background .2s ease, border-color .2s ease;
}
.badge-card:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.badge-card h4 {
  color: #fff; margin-bottom: 6px; font-size: 15.5px;
  display: flex; align-items: center; gap: 9px;
}
.badge-card h4 svg { width: 20px; height: 20px; color: #FFC98A; }
.badge-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.7; }

/* ---------- 信赖标识 ---------- */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trustbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Section 通用 ---------- */
.section { padding: 62px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 31px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.head-underline { width: 54px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 14px; }
.section-head.center .head-underline { margin-left: auto; margin-right: auto; }

/* ---------- 产品分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 18px; transition: all .24s ease; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .26s ease;
}
.cat-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card:hover::before { transform: scaleY(1); }
.cat-num {
  font-size: 12px; font-weight: 800; color: #fff; background: var(--brand);
  min-width: 30px; height: 26px; padding: 0 7px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
}
.cat-card h3 { font-size: 16px; margin: 0; color: var(--brand-ink); }
.cat-card h3 a { color: inherit; }
.cat-card h3 a:hover { color: var(--accent); }
.cat-card p { margin: 0; font-size: 13.2px; color: var(--muted); line-height: 1.6; flex: 1; }
.cat-card .more { font-size: 13px; font-weight: 700; color: var(--brand); }
.cat-card .more::after { content: " →"; }

/* ---------- 双栏 About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.4l3 3 6-6' fill='none' stroke='%2316459D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
}

/* ---------- 服务流程 / 优势 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; transition: all .24s ease;
}
.feat:hover { box-shadow: var(--shadow); border-color: var(--brand-light); transform: translateY(-3px); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--brand);
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- 应用案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  transition: all .24s ease;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-thumb { background: var(--brand-tint); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: contain; }
.case-thumb svg { width: 60px; height: 60px; color: var(--brand-light); }
.case-body { padding: 18px 20px 20px; }
.case-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.case-body p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint);
  color: var(--brand); font-weight: 600;
}

/* ---------- 面包屑 ---------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #C3CEDB; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--brand); font-weight: 600; }

/* ---------- 内容页布局 ---------- */
.page-title-bar {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 40px 0 38px; position: relative; overflow: hidden;
}
.page-title-bar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 12px);
}
.page-title-bar .wrap { position: relative; z-index: 1; }
.page-title-bar h1 { color: #fff; margin-bottom: 8px; }
.page-title-bar p { color: rgba(255,255,255,.85); margin: 0; max-width: 760px; }

.content-layout { display: grid; grid-template-columns: 268px 1fr; gap: 36px; padding: 46px 0 66px; align-items: start; }
.sidebar {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto;
}
.sidebar-title { font-size: 14px; font-weight: 800; color: var(--brand-ink); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); letter-spacing: .5px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a {
  display: block; padding: 8px 10px; border-radius: 6px; font-size: 13.6px; color: var(--ink-2);
  border-left: 3px solid transparent;
}
.side-nav a:hover { background: var(--brand-tint); color: var(--brand); }
.side-nav a.active { background: var(--brand-tint); color: var(--brand); border-left-color: var(--accent); font-weight: 700; }
.side-nav .sub { padding-left: 22px; font-size: 13px; color: var(--muted); }

.article { min-width: 0; background: #fff; }
.article h2 { margin-top: 1.6em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.article h3 { margin-top: 1.3em; color: var(--brand); }
.article table { margin: 16px 0; font-size: 13.5px; border: 1px solid var(--line); }
.article table th, .article table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: middle; }
.article table th { background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; white-space: nowrap; }
.article table tr:nth-child(even) td { background: #FCFDFF; }
.article img { border-radius: 8px; margin: 8px 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--line); }
.table-scroll table { margin: 0; border: 0; min-width: 520px; }

.prod-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.prod-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; transition: box-shadow .2s ease; }
.prod-gallery figure:hover { box-shadow: var(--shadow); }
.prod-gallery img { width: 100%; height: 140px; object-fit: contain; background: #FBFCFE; }
.prod-gallery figcaption { font-size: 12.2px; color: var(--muted); text-align: center; padding-top: 8px; line-height: 1.5; }

/* 分页 */
.pager { display: flex; gap: 10px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .btn { padding: 9px 18px; font-size: 14px; }
.pager .btn:disabled, .pager .btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- 联系/CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), #17467F 60%, var(--brand));
  color: #fff; border-radius: var(--radius-lg); padding: 40px 42px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 88% 20%, rgba(226,118,27,.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { width: 100%; }

/* ---------- 联系我们 信息卡 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; background: #fff; transition: box-shadow .2s ease; }
.info-card:hover { box-shadow: var(--shadow); }
.info-card h3 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; color: var(--brand); }
.info-card .big { font-size: 19px; font-weight: 800; color: var(--brand-ink); letter-spacing: .4px; }
.info-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); min-height: 320px; }

/* ---------- 下载/表格列表 ---------- */
.dl-list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.dl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft);
}
.dl-row:last-child { border-bottom: 0; }
.dl-row:hover { background: var(--brand-tint); }
.dl-row h4 { margin: 0 0 3px; font-size: 15px; }
.dl-row p { margin: 0; font-size: 13px; color: var(--muted); }

.note-box {
  border-left: 4px solid var(--accent); background: #FFF7F0; padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; font-size: 14px; color: #6A4218;
}
.note-box strong { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.72); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; padding: 52px 0 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 13.6px; }
.site-footer a:hover { color: #FFC98A; }
.footer-logo { height: 40px; background: #fff; padding: 4px 10px; border-radius: 6px; margin-bottom: 16px; display: inline-block; }
.footer-contact li { display: flex; gap: 9px; line-height: 1.6; }
.footer-contact b { color: #fff; font-weight: 700; }
.footer-contact .k { color: rgba(255,255,255,.5); min-width: 42px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---------- 悬浮联系 ---------- */
.float-contact {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
}
.float-item {
  width: 50px; height: 50px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow); color: var(--brand); font-size: 10px; text-decoration: none;
  transition: all .2s ease; gap: 2px;
}
.float-item:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateX(-3px); }
.float-item svg { width: 19px; height: 19px; }
.float-pop {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px 14px; white-space: nowrap; display: none;
  font-size: 13px; color: var(--ink);
}
.float-wrap { position: relative; }
.float-wrap:hover .float-pop { display: block; }

.backtop {
  position: fixed; right: 16px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow);
  display: none; align-items: center; justify-content: center; z-index: 90;
}
.backtop.show { display: flex; }
.backtop svg { width: 20px; height: 20px; }

/* ---------- 搜索页/表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14px; transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,69,157,.1);
}
.field textarea { min-height: 120px; resize: vertical; }

.search-bar { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.search-bar input { flex: 2; min-width: 220px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; }
.search-bar select { flex: 1; min-width: 150px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-bar .btn { padding: 11px 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 56px; }
  .hero h1 { font-size: 33px; }
}
/* 导航在 1180px 以下切换到汉堡菜单：桌面端必须单行放得下才不会被挤变形 */
@media (max-width: 1240px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 10px; gap: 0; max-height: 76vh; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 12px 14px; border-radius: 6px; }
  .main-nav > li.has-sub > a::after { float: right; margin-top: 8px; }
  .dropdown {
    position: static; box-shadow: none; border: 0; max-width: none;
    border-top: 1px solid var(--line-soft); border-radius: 0;
    max-height: none; display: none; padding: 4px 0 4px 10px;
  }
  .main-nav li:hover .dropdown { display: none; }
  .main-nav li.sub-open .dropdown { display: block; }
  .dropdown ul, .dropdown ul.cats { grid-template-columns: 1fr; }
  .dropdown a { white-space: normal; }
  .nav-toggle { display: inline-flex; }
  .header-cta .tel-badge { display: none; }
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; max-height: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .feat-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; padding-top: 24px; }
  .cta-band { grid-template-columns: 1fr; padding: 30px 26px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .cat-grid, .feat-grid, .case-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 26px; }
  .hero-facts { gap: 20px; }
  .section { padding: 42px 0; }
  .section-head h2 { font-size: 25px; }
  .brand-text { display: none; }
  .brand-divider { display: none; }
  .float-contact { right: 10px; gap: 6px; }
  .float-item { width: 44px; height: 44px; }
  .topbar .wrap { justify-content: center; text-align: center; padding: 8px 16px; gap: 8px; }
  .topbar-tags span:not(.tag-agent) { display: none; }
  .topbar-contact { gap: 10px; font-size: 12.5px; justify-content: center; }
  .badge-card { padding: 14px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .prod-gallery { grid-template-columns: repeat(2, 1fr); }
}
