/* ==========================================================================
   Base · 重置 / 排版 / 容器 / 栅格 / 动效 / 导航 / 页脚
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-io); }
button { font-family: inherit; }
strong { color: var(--ink-2); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--ink); }

/* 滚动条（桌面） */
@media (hover: hover) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #D6DEEA; border-radius: 99px; border: 2px solid #fff; }
  ::-webkit-scrollbar-thumb:hover { background: #BFCADB; }
}

/* ---------- 容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 900px; }

.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-auto-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g-auto-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- 区块 ---------- */
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 104px 0; }
.section-tint { background: var(--surface-3); }
.section-mist { background: var(--grad-mist); }
.section-soft { background: var(--surface-2); }
.section-ink { background: var(--grad-ink); color: #C6D2E4; }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink p { color: #B7C5DA; }
.section-ink .sec-sub { color: #9FB1CB; }

.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin-inline: auto; }

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(0, 194, 177, .10);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
}
.sec-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(0, 194, 177, .16);
}
.section-ink .sec-eyebrow { background: rgba(255,255,255,.10); color: #7EE8D6; }
.section-ink .sec-eyebrow::before { background: #44D891; }

.sec-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.02em;
  /* 中文标题避免末字单独掉行（「管理场 / 景」） */
  text-wrap: balance;
}
.sec-sub {
  margin-top: 16px;
  max-width: 760px;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.8;
}
.sec-head.center .sec-sub { text-align: center; }

/* 标题内高亮（highlight 手法） */
.hl { color: var(--brand-600); }
.hl-underline {
  position: relative;
  display: inline-block;
  color: var(--brand-600);
}
.hl-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .34em;
  background: linear-gradient(90deg, rgba(68,216,145,.34), rgba(0,194,177,.10));
  border-radius: 3px;
  z-index: -1;
}

/* ---------- 文本工具 ---------- */
.t-muted { color: var(--muted); }
.t-sm { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-ink { color: var(--ink); }
.t-brand { color: var(--brand-600); }
.t-center { text-align: center; }
.t-balance { text-wrap: balance; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color var(--t-base) var(--ease-io), box-shadow var(--t-base) var(--ease-io), background var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 30, 49, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover, .nav-trigger:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link[aria-current="page"], .nav-item.active > .nav-trigger {
  color: var(--brand-700);
  background: var(--brand-50);
}
.nav-trigger .chev {
  width: 12px; height: 12px;
  margin-top: 1px;
  transition: transform var(--t-fast) var(--ease-io);
}
.nav-item { position: relative; }
.nav-item:hover > .nav-trigger .chev,
.nav-item.open > .nav-trigger .chev { transform: rotate(180deg); }

/* 巨型下拉（分栏 + 说明） */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  /* 水平位置由 core.js 的 placeMega() 计算写入（面板左缘对齐触发器，
     再按 .header-inner 左右边界钳制）。这里只留 left:0 兜底，
     绝不使用 left:50% + translateX(-50%) —— AI 面板 815px、触发器仅 56px，
     居中会把左缘推到屏幕外。 */
  left: 0;
  transform: translateY(6px);
  width: max-content;
  max-width: min(94vw, 980px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease-io), transform var(--t-fast) var(--ease-io), visibility var(--t-fast);
}
.nav-item:hover > .mega,
.nav-item.open > .mega,
.mega:hover { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-cols { display: flex; gap: 8px; }
.mega-col { min-width: 168px; }
/* AI 下拉三列等宽，避免首列被长描述撑宽；文本在固定列宽内自然换行 */
.mega--ai .mega-cols { display: grid; grid-template-columns: repeat(3, 220px); }
.mega--ai .mega-col { width: 220px; min-width: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--line-2); padding-left: 8px; }
.mega-col-title {
  padding: 6px 10px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  transition: background var(--t-fast), color var(--t-fast);
}
.mega-link:hover { background: var(--surface-2); color: var(--brand-700); }
.mega-link .ico {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.mega-link .ico svg { width: 14px; height: 14px; }
.mega-link b { display: block; font-weight: 600; color: var(--ink); font-size: 13.5px; }
.mega-link span.d { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.header-tel:hover { color: var(--brand-700); }

.burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
}
.drawer.open { display: block; }
.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 36, .48);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s var(--ease-io);
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 60px -30px rgba(20,30,49,.5);
  animation: slideInRight .28s var(--ease-out);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.drawer-head img { height: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.drawer-group + .drawer-group { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.drawer-group-title {
  padding: 10px 8px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}
.drawer-link:hover, .drawer-link[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.drawer-link svg { width: 14px; height: 14px; color: var(--muted); }
.drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- 页脚（浅色多栏） ---------- */
.site-footer {
  background: #F7F9FC;
  color: var(--text);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--line);
}
.footer-lead-band {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.footer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.footer-lead img.f-logo { display: block; height: 40px; width: auto; margin-bottom: 14px; }
.footer-lead .f-slogan {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}
.footer-lead .f-desc { max-width: 760px; margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.85; }
.footer-cta { flex: none; height: 46px; padding: 0 22px; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1.5fr);
  gap: 48px;
  padding-top: 46px;
  padding-bottom: 40px;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 2px; }
.footer-col a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 13px;
}
.footer-col a:hover { color: var(--brand-700); }

.footer-contact-card { border-left: 1px solid var(--line); padding-left: 32px; }
.footer-contact-card h4 { margin: 0 0 14px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.footer-contact svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--brand-600); }
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--brand-700); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--brand-700); }

/* 悬浮咨询按钮 */
.fab-consult {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 16px;
  border-radius: var(--r-pill);
  background: var(--grad-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 32px -12px rgba(0, 169, 155, .7);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base),
              opacity var(--t-base) var(--ease-out), visibility var(--t-base);
}
.fab-consult:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 169, 155, .8); }
.fab-consult svg { width: 17px; height: 17px; }
/* 页脚版权行进入视口时淡出：该按钮固定在右下角，会压住「隐私说明 / 网站地图 / 邮箱」
   三个链接并吃掉点击（elementFromPoint 命中的是按钮本身）。页脚自带 CTA 带，
   此处让位既恢复可点击，又不改动版权行布局。 */
.fab-consult.is-off {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 79;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink-2);
  box-shadow: var(--sh-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .nav-link, .nav-trigger { padding: 0 10px; font-size: 14px; }
  .header-tel { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .section { padding: 68px 0; }
  .section-lg { padding: 76px 0; }
  .footer-lead { grid-template-columns: 1fr; gap: 24px; padding-top: 42px; padding-bottom: 42px; }
  .footer-cta { justify-self: start; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding-top: 38px; padding-bottom: 32px; }
  .footer-contact-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }
  body { font-size: 15px; }
  .section { padding: 54px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 60px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-sub { margin-top: 12px; font-size: 15px; }
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
  .brand img { height: 26px; }
  /* 窄屏保留按钮文字，只省掉箭头，避免只剩箭头形成孤立胶囊 */
  .header-actions .btn-cta { padding: 0 14px; }
  .header-actions .btn-cta .arr { display: none; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fab-consult { right: 14px; bottom: 16px; height: 44px; padding: 0 15px; font-size: 13px; }
  .to-top { right: 16px; bottom: 72px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .sec-title { font-size: 23px; }
  .g-auto-260, .g-auto-300 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}