/* ============================================================
   山东烨森茂物流 · 首页样式
   设计语言：大图留白、细线分隔、低饱和中性底 + 品牌蓝/橙
   ============================================================ */

:root {
  --blue: #0d4f95;
  --blue-deep: #08305c;
  --blue-soft: #eaf2fa;
  --orange: #ef7d1f;
  --ink: #16212c;
  --ink-2: #3d4c5a;
  --muted: #6f7e8d;
  --line: #e5eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --maxw: 1240px;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(14, 40, 66, .05);
  --shadow: 0 12px 40px rgba(14, 40, 66, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  letter-spacing: .01em;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar-tag { opacity: .78; }
.topbar-right { display: flex; gap: 26px; }
.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .25s var(--ease);
}
.topbar-right a:hover { color: var(--orange); }
.ico { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* ---------- 头部 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
.header.shrink {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(14, 40, 66, .06);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 88px;
  transition: height .3s var(--ease);
}
.header.shrink .header-in { height: 68px; }

.logo { flex: none; }
.logo img {
  height: 52px;
  width: auto;
  transition: height .3s var(--ease);
}
.header.shrink .logo img { height: 42px; }

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-2);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color .22s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .28s var(--ease);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after,
.nav a.on::after { width: 100%; }
.nav a.on { color: var(--blue); font-weight: 600; }

.btn-quote {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-quote:hover { background: var(--blue-deep); transform: translateY(-1px); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  height: clamp(600px, 82vh, 860px);
  overflow: hidden;
  background: var(--blue-deep);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.slide.is-active { opacity: 1; transform: scale(1); }

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 30, 56, .86) 0%, rgba(8, 40, 70, .62) 42%, rgba(8, 40, 70, .12) 78%),
    linear-gradient(to top, rgba(6, 24, 44, .55) 0%, transparent 42%);
}

.hero-in {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-bottom: 40px;
}
.hero-kicker {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-sub {
  font-size: clamp(14.5px, 1.15vw, 17px);
  color: rgba(255, 255, 255, .8);
  max-width: 660px;
  margin-bottom: 38px;
  letter-spacing: .01em;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 125, 31, .32);
}
.btn-primary:hover { background: #e06f14; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: #f0f5fa; transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.dot {
  width: 34px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.dot.is-active { background: var(--orange); width: 52px; }

/* ---------- 数据条 ---------- */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 38px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat .unit {
  display: inline;
  font-size: 20px;
  margin-left: 3px;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0;
}
.stat > span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-kicker {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}
.sec-head h2,
.about-text h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.sec-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 业务卡片 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.svc {
  position: relative;
  padding: 38px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.svc:hover::before { transform: scaleY(1); }

.svc-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc:hover .svc-ico { background: var(--blue); color: #fff; }

.svc h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.svc p {
  font-size: 14.8px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 20px;
  min-height: 79px;
}
.svc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.svc li {
  font-size: 12.5px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .01em;
}

/* ---------- 关于 ---------- */
.about-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-points b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.about-points span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding: 0 22px 0 0;
}
.flow li::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  width: calc(100% - 62px);
  height: 1px;
  background: var(--line);
}
.flow li:last-child::after { display: none; }
.flow b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.flow li:hover b { background: var(--blue); color: #fff; border-color: var(--blue); }
.flow h4 { font-size: 16.5px; margin-bottom: 8px; }
.flow p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.case {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe6ed;
}
.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 26, 48, .82) 0%, rgba(6, 26, 48, .18) 48%, transparent 72%);
  transition: opacity .4s var(--ease);
}
.case:hover img { transform: scale(1.06); }
.case-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px 32px;
  color: #fff;
}
.case-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  margin-bottom: 12px;
}
.case-body h4 { font-size: 20px; margin-bottom: 6px; }
.case-body p { font-size: 13.5px; color: rgba(255, 255, 255, .74); }

/* ---------- 新闻 ---------- */
.news-in {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}
.news-left h2 { font-size: clamp(26px, 2.7vw, 38px); margin-bottom: 16px; }
.news-left p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.link-more {
  display: inline-block;
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-more:hover { color: var(--orange); border-color: var(--orange); }

.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 4px;
  align-items: baseline;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.news-list a:hover { background: var(--bg-soft); padding-left: 16px; }
.news-list time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.news-list h4 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 5px;
  transition: color .25s var(--ease);
}
.news-list a:hover h4 { color: var(--blue); }
.news-list p { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(105deg, var(--blue-deep) 0%, #0d4f95 62%, #1565b8 100%);
  color: #fff;
}
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 76px 24px;
}
.cta h2 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 14px; letter-spacing: -.02em; }
.cta p { color: rgba(255, 255, 255, .76); font-size: 15.5px; max-width: 560px; line-height: 1.8; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .4); }

/* ---------- 页脚 ---------- */
/* 2026-11-23 林时微：原先 #0b1b2c 看着像黑色，改成品牌深蓝并带一点纵向层次 */
/* CTA 与页脚共用一个渐变层（2026-11-23）：
   两块各自画渐变时，交界处会是「亮色收尾 → 暗色重启」，
   总有一条横线；铺在共同父级上才是连续的。 */
.blue-stack {
  background: linear-gradient(105deg, var(--blue-deep) 0%, #0d4f95 62%, #1565b8 100%);
}
.blue-stack .cta,
.blue-stack .footer {
  background: none;
}

.footer {
  /* 与 .cta 同一条渐变，页脚和上方区块连成一体 */
  background: linear-gradient(105deg, var(--blue-deep) 0%, #0d4f95 62%, #1565b8 100%);
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 24px 56px;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* 底栏用透明标记 + 文字，不用那张带不透明白底的整版图：
   白底图配 brightness(0) invert(1) 会被整张翻成纯白，结果就是一块白板 */
.footer-logo {
  height: 42px;
  width: auto;
  flex: none;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.footer-brand-wrap { display: block; }

.footer-brand-cn {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.3;
}

.footer-brand-en {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, .42);
  letter-spacing: .06em;
  margin-top: 3px;
  /* 避免 "LTD" 单独掉到第二行 */
  white-space: nowrap;
}
.footer-brand p { line-height: 1.85; max-width: 320px; }
.footer-col h5 {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.footer-col a {
  display: block;
  margin-bottom: 11px;
  transition: color .22s var(--ease);
}
.footer-col a:hover { color: var(--orange); }
.footer-contact p { margin-bottom: 9px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.svc-grid .reveal:nth-child(2) { transition-delay: .06s; }
.svc-grid .reveal:nth-child(3) { transition-delay: .12s; }
.svc-grid .reveal:nth-child(4) { transition-delay: .06s; }
.svc-grid .reveal:nth-child(5) { transition-delay: .12s; }
.svc-grid .reveal:nth-child(6) { transition-delay: .18s; }
.flow li:nth-child(2) { transition-delay: .08s; }
.flow li:nth-child(3) { transition-delay: .16s; }
.flow li:nth-child(4) { transition-delay: .24s; }
.flow li:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  /* 只压掉"大幅位移 / 循环"这类容易引起不适的动效，
     颜色与透明度这种低刺激过渡要保留 ——
     用 transition: none 全禁会让人以为"动画坏了 / 没生效"。 */
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* 顶栏换肤：幕布不做位移，但文字颜色仍渐变，保证看得出"发生了什么" */
  .site-top .nav-item > a,
  .site-top .nav-item .caret,
  .site-top .btn-quote,
  .site-top .menu-btn,
  .site-top .menu-btn span,
  .site-top .nav a::after {
    transition-duration: .26s !important;
    transition-delay: .10s !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; font-size: 14.5px; }
  .about-in { gap: 44px; }
  .news-in { grid-template-columns: 1fr; gap: 36px; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 40px; }
  .svc p { min-height: 0; }
}

@media (max-width: 900px) {
  .topbar-tag { display: none; }
  .topbar-in { justify-content: flex-end; }
  .header-in { height: 72px; gap: 16px; }
  .logo img { height: 42px; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 88px 28px 28px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(10, 30, 50, .16);
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    font-size: 16px;
    z-index: 120;
  }
  .nav.open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.on { color: var(--blue); }
  .btn-quote { margin-left: auto; height: 38px; padding: 0 16px; font-size: 13.5px; }
  .menu-btn { display: flex; }
  .section { padding: 72px 0; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-in { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow li::after { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; padding: 56px 24px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .topbar-right { gap: 16px; font-size: 12px; }
  .topbar-right a:last-child { display: none; }
  .hero { height: 78vh; min-height: 500px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  .btn { height: 46px; padding: 0 24px; font-size: 14.5px; }
  .stat { padding: 26px 12px; }
  .stat b { font-size: 30px; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; gap: 14px; }
  .flow { grid-template-columns: 1fr; row-gap: 32px; }
  .svc { padding: 28px 24px; }
  .news-list a { grid-template-columns: 1fr; gap: 8px; }
  .case-body { padding: 22px 22px; }
  .case-body h4 { font-size: 17px; }
  .footer-in { grid-template-columns: 1fr; gap: 34px; padding: 52px 18px 40px; }
  .footer-bottom .wrap { flex-direction: column; gap: 8px; }
}

/* ============================================================
   顶栏大菜单（马士基式）—— 2026-10-26 改版
   ============================================================ */
.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  align-self: stretch;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-item { display: flex; align-items: stretch; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.nav-item > a::after { bottom: 26px; }

/* —— 桌面端：让 <a> 不再被撑满整条顶栏 ——
   量出来顶栏 88px，文字只有 20px；旧版热区实际就是这 88px 的 <a>。
   把 <a> 收成 36px（文字上下各 8px），下划线跟着下移到底边。 */
@media (min-width: 901px) {
  .nav-item { align-items: center; }
  .nav-item > a { height: 36px; }
  .nav-item > a::after { bottom: 0; }
}

/* —— 导航热区（2026-10-29 重做）——
   量出来的事实：文字只有 20px 高，但 <a> 被 stretch 撑到 88px，
   所以旧版上下各扩 8px 实际热区高 104px，整条顶栏都能触发。
   现在：热区以文字为中心、36px 高（上下各留 8px），左右各 15px＝两词空隙（30px）的一半。
   菜单展开后才向下长成梯形，边缘外扩 18px，防止鼠标斜着下移时掉出热区。 */
.nav > .nav-item > a::before {
  content: "";
  position: absolute;
  left: -15px;
  right: -15px;
  top: 50%;
  height: 36px;
  margin-top: -18px;
}
/* 展开态：上沿贴文字带，下沿伸进菜单 30px，clip-path 拉成梯形（上窄下宽） */
.has-mega[data-isopen="1"] > a::before {
  left: -33px;
  right: -33px;
  height: 90px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}
.nav-item .caret {
  width: 13px;
  height: 13px;
  opacity: .5;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
/* caret 展开时翻转（点击展开，不再看 hover） */
.nav-item:hover .caret { transform: rotate(180deg); opacity: 1; }
.has-mega[data-isopen="1"] .caret { transform: rotate(180deg); opacity: 1; }
.nav-item.on > a { color: var(--blue); font-weight: 600; }

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  /* 底部两角倒角：全宽面板只倒下沿，上沿与顶栏无缝衔接 */
  border-radius: 0 0 22px 22px;
  box-shadow: 0 26px 50px rgba(14, 40, 66, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* 显隐动画交给 JS（Web Animations API），CSS 只做兜底 */
  transition: none;
  z-index: 95;
}
/* 2026-11-21：改成点击展开，悬停不再触发 */
.has-mega[data-isopen="1"] .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px 40px;
  display: grid;
  gap: 40px;
}
.mega-cols-1 { grid-template-columns: minmax(0, 220px); }
.mega-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col h6 {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.mega-col a {
  display: block;
  /* 左侧补内边距抵消负外边距：文字位置不变，悬停时有地方画底色 */
  padding: 9px 12px;
  margin-left: -12px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.mega-col a:hover {
  color: var(--blue);
  background: var(--blue-soft);
  transform: none;
}

@media (max-width: 1080px) {
  .nav { gap: 20px; font-size: 14px; }
}

/* ---------- 手机端：抽屉里子项平铺（不折叠） ---------- */
@media (max-width: 900px) {
  .nav-item {
    display: block;
    width: 100%;
  }
  .nav-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-item > a::after { display: none; }
  .nav-item .caret { display: none; }
  /* 抽屉里默认折叠：7 项业务全展开会把菜单拉成一屏空白 */
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    background: var(--bg-soft);
  }
  .nav-item[data-isopen="1"] > .mega {
    display: block;
  }
  .mega-in {
    padding: 10px 0 14px 14px;
    display: block;
    max-width: none;
  }
  .mega-cols-1,
  .mega-cols-4 { grid-template-columns: 1fr; }
  .mega-col { margin-bottom: 10px; }
  .mega-col h6 {
    display: block;
    font-size: 11px;
    margin: 8px 0 6px;
    opacity: .7;
  }
  .mega-col a {
    padding: 9px 0 9px 12px;
    font-size: 14px;
    border-left: 2px solid var(--line);
  }
}

/* ============================================================
   悬浮透明顶栏：首屏透明盖在图上，下滑变白（2026-10-26）
   ============================================================ */
.site-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.site-top.is-fixed {
  position: fixed;
  background: #fff;
  box-shadow: 0 4px 24px rgba(14, 40, 66, .08);
}
/* 里层 header 不再自己吸顶，交给外层容器
   必须保持 relative：z-index 对 static 元素无效，否则会被白色幕布盖住 */
.site-top .topbar {
  /* 必须高于白色幕布（幕布 z-index:1 且树序在后），否则里层文字会被盖住 */
  position: relative;
  z-index: 3;
}
.site-top .header {
  position: relative;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}

/* ---------- 透明态（首屏） ---------- */
/* logo 原图带白底，不用反色，改白色底板 */
/* 只给顶栏一级链接上白色，大菜单内部保持深色 */
.site-top:not(.is-fixed) .nav-item > a { color: rgba(255, 255, 255, .95); }
.site-top:not(.is-fixed) .nav-item > a:hover,
.site-top:not(.is-fixed) .nav-item.on > a { color: #fff; }
/* 悬停下划线统一橙色：原先大图态用白色、展开态用蓝色，各页不一致 */
.site-top:not(.is-fixed) .nav a::after { background: var(--orange); }
.site-top:not(.is-fixed) .nav-item .caret { opacity: .85; }
.site-top:not(.is-fixed) .btn-quote {
  background: #fff;
  color: var(--blue-deep);
}
.site-top:not(.is-fixed) .btn-quote:hover { background: #eaf1f8; }
.site-top:not(.is-fixed) .menu-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
}
.site-top:not(.is-fixed) .menu-btn span { background: #fff; }

/* ---------- 固定态（已下滑） ---------- */
.site-top.is-fixed .topbar {
  background: #fff;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.site-top.is-fixed .topbar-right a:hover { color: var(--blue); }
.site-top.is-fixed .header { background: #fff; }

/* 透明态 logo：白色底板承托原色 logo（原图有白底，不能反色） */
.site-top:not(.is-fixed) .logo {
  background: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.site-top:not(.is-fixed) .logo img {
  filter: none;
  height: 40px;
}
@media (max-width: 900px) {
  .site-top:not(.is-fixed) .logo { padding: 4px 10px; border-radius: 8px; }
  .site-top:not(.is-fixed) .logo img { height: 32px; }
}

/* 透明态：顶部轻微压暗，避免亮色横幅上白字看不清 */
.site-top:not(.is-fixed)::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -30px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 20, 36, .52) 0%, rgba(4, 20, 36, .28) 55%, transparent 100%);
}
.site-top:not(.is-fixed) > * {
  position: relative;
  z-index: 1;
}

/* 透明态 topbar：半透明深色，避免下滑时高度跳动 */
.site-top:not(.is-fixed) .topbar {
  background: rgba(4, 20, 36, .34);
  color: rgba(255, 255, 255, .86);
}
/* 注意：背景这句已被下方「品牌条统一浅色底」改写（#f7f9fb），
   但这条悬停置白的规则优先级更高（:not(.is-fixed) 算一个类），
   所以只改背景不改这里 → 未滚动时悬停变白字，白底上看不见。
   跟其它状态统一成品牌蓝。 */
.site-top:not(.is-fixed) .topbar-right a:hover { color: var(--blue); }

/* 首屏内容防撞（悬浮顶栏约 128px，矮屏时内容容易顶上去） */
.hero-in {
  /* 2026-11-26 修：原 132px 小于顶栏实际底边 156px（品牌条 67 + 导航 88 + 余量），
     1200×700 下英文 banner 小标题被导航压掉 12px。改为 168px 让开并留 12px 呼吸位。 */
  padding-top: 168px;
  padding-bottom: 56px;
  /* 内容超高时 flex 居中会向上溢出（顶边跑到 padding 上方），
     表现为「加了留白还是重叠」。safe 关键字让溢出时靠起始边对齐。 */
  justify-content: safe center;
}
@media (max-width: 900px) {
  .hero-in { padding-top: 124px; padding-bottom: 44px; }
}
@media (max-width: 620px) {
  .hero-in { padding-top: 112px; padding-bottom: 36px; }
}

/* 大菜单内部文字永远深色（白底面板），不受顶栏透明态影响 */
.site-top .mega,
.site-top .mega-col a,
.site-top .mega-col h6 { color: var(--ink-2); }
.site-top .mega-col h6 { color: var(--muted); }
.site-top .mega-col a:hover { color: var(--blue); }
.site-top .mega { background: #fff; }

/* ============================================================
   全站动效（2026-10-26）
   原则：只动 transform / opacity，时长 200–450ms，缓动统一
   ============================================================ */

/* 1) 顶栏白色幕布：从上往下落下，回顶时向上收起 */
.site-top > * {
  position: relative;
  z-index: 2;
}
.site-top.is-fixed {
  background: transparent;
  box-shadow: none;
}
.site-top .header,
.site-top.is-fixed .header {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}
.site-top.is-fixed .topbar {
  background: transparent;
}
.site-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1),
              box-shadow .42s cubic-bezier(.22, .61, .36, 1);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 0 rgba(14, 40, 66, 0);
}
.site-top.is-fixed::after {
  transform: scaleY(1);
  box-shadow: 0 4px 24px rgba(14, 40, 66, .08);
}

/* ---------------- 顶栏文字与幕布同步（2026-10-26） ----------------
   幕布：滚动 420ms（scaleY 从上往下扫）/ 菜单展开 460ms（淡入）
   文字：300ms，进入白色态时延迟 140ms —— 让底色先推进，
        再让文字变色；否则底色还透明时字已变深，深灰压大图看不清。
   退出时不留延迟：字先变回白色，背景再退，避免白字落在白底上。 */
.site-top .nav-item > a,
.site-top .nav-item .caret,
.site-top .btn-quote,
.site-top .menu-btn,
.site-top .menu-btn span {
  transition: color .24s var(--ease), background-color .24s var(--ease),
              border-color .24s var(--ease), opacity .24s var(--ease);
}

.site-top .nav a::after {
  transition: background-color .24s var(--ease);
}

/* 进入白色态：延迟，等幕布铺开 */
.site-top.is-fixed .nav-item > a,
.site-top.is-fixed .nav-item .caret,
.site-top.is-fixed .btn-quote,
.site-top.is-fixed .menu-btn,
.site-top.is-fixed .menu-btn span,
.site-top.is-fixed .nav a::after,
.site-top.is-mega-open .nav-item > a,
.site-top.is-mega-open .nav-item .caret,
.site-top.is-mega-open .btn-quote,
.site-top.is-mega-open .menu-btn,
.site-top.is-mega-open .menu-btn span,
.site-top.is-mega-open .nav a::after {
  transition-delay: .18s;
}

/* 2) 大菜单：各列错峰淡入（同样把起始态放进 keyframe） */
.has-mega[data-isopen="1"] .mega-col {
  animation: megaColIn .42s cubic-bezier(.22, .61, .36, 1) both;
}
.has-mega[data-isopen="1"] .mega-col:nth-child(1) { animation-delay: .04s; }
.has-mega[data-isopen="1"] .mega-col:nth-child(2) { animation-delay: .10s; }
.has-mega[data-isopen="1"] .mega-col:nth-child(3) { animation-delay: .16s; }
.has-mega[data-isopen="1"] .mega-col:nth-child(4) { animation-delay: .22s; }
@keyframes megaColIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 3) 首屏文字逐行升起
   注意：起始态写在 keyframe 里，基础状态必须可见。
   否则用户开启「减少动态效果」时 animation:none 会让文字永久隐身。 */
.hero-kicker,
.hero h1,
.hero-sub,
.hero-btns {
  animation: heroIn .9s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-kicker { animation-delay: .12s; }
.hero h1 { animation-delay: .26s; }
.hero-sub { animation-delay: .42s; }
.hero-btns { animation-delay: .56s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* 4) 页面进入：内容整体轻淡入 */
main {
  animation: pageIn .5s ease-out both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 5) 卡片 / 案例：进场稍柔和一些 */
.reveal {
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22, .61, .36, 1),
              transform .75s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

/* 6) 按钮与链接的手感 */
.btn {
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(239, 125, 31, .38); }

.link-more { transition: color .22s var(--ease), border-color .22s var(--ease), letter-spacing .22s var(--ease); }
.link-more:hover { letter-spacing: .02em; }

/* 7) 回到顶部按钮 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 92px;            /* 让开右下角的「在线咨询」按钮 */
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(13, 79, 149, .3);
  transition: opacity .32s var(--ease), transform .36s var(--ease), background .25s var(--ease);
  z-index: 80;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--blue-deep); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }
/* 客服面板展开时它会被盖住，直接隐起来更干净 */
body.ai-open .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 620px) {
  .to-top { right: 16px; bottom: 78px; width: 42px; height: 42px; }
}

/* 9) 联系页：左侧联系方式 + 右侧询盘表单 */
.contact-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.contact-side {
  position: sticky;
  top: 104px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 6px;
  box-shadow: 0 2px 10px rgba(22, 33, 44, .04);
}
.contact-side h3 { font-size: 16px; margin: 0 0 16px; color: var(--ink); }
.contact-side .contact-grid { display: block; }
.contact-side .contact-card {
  background: none;
  border: 0;
  border-bottom: 1px dashed #e8eef4;
  border-radius: 0;
  padding: 0 0 13px;
  margin: 0 0 13px;
  box-shadow: none;
}
.contact-side .contact-card:last-child { border-bottom: 0; margin-bottom: 0; }
.contact-side .contact-card:hover { transform: none; box-shadow: none; }
.contact-side .contact-card h4 {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.contact-side .contact-card p { margin: 0; font-size: 14px; color: var(--ink); }
.contact-side .contact-card p.small { font-size: 13px; line-height: 1.55; }
.contact-main .inq-h { margin-top: 0; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 620px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* 8) 产品图集切换：主图淡入 */
.product-gallery .main img {
  transition: opacity .3s var(--ease);
}
.product-gallery .main img.is-swapping { opacity: 0; }
.product-thumbs button {
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.product-thumbs button:hover { transform: translateY(-2px); }

/* 9) 表单/输入类（联系页以后加表单时自动生效） */
input, textarea, select {
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 79, 149, .12);
}

/* 兜底：用户开启「减少动态效果」时，所有依赖动效显示的元素保持可见 */
@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero h1,
  .hero-sub,
  .hero-btns,
  .mega-col,
  .reveal,
  main {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-top::after { transition: none; }
}

/* 顶栏子元素统一层级：内容(2) 永远在幕布(1) 之上 */
.site-top { isolation: isolate; }
.site-top .topbar,
.site-top .header { position: relative; z-index: 2; }
.site-top::after { z-index: 1; }

/* 兜底：确保 header 始终在白色幕布之上 */
.site-top .header,
.site-top.is-fixed .header {
  position: relative !important;
  z-index: 2 !important;
}

/* ============================================================
   顶栏状态平滑过渡（2026-10-26 二改）
   要点：
   1. .site-top 恒定 fixed —— 避免 absolute/fixed 切换打断过渡
   2. logo 的内边距/尺寸两种状态完全一致，只渐变底色，杜绝跳动
   3. 所有会变的属性统一 380ms 过渡
   ============================================================ */

/* 恒定定位，不再切换 position（切换会打断动画） */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* 幕布：落下来 / 收上去都用 480ms，缓动统一 */
.site-top::after {
  transition: transform .48s cubic-bezier(.22, .61, .36, 1),
              box-shadow .48s cubic-bezier(.22, .61, .36, 1);
}

/* logo：两种状态尺寸与内边距完全一致，只变底色和阴影 */
.site-top .logo {
  padding: 6px 14px;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.site-top:not(.is-fixed) .logo {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}
/* 取消透明态里的尺寸覆盖，避免高度跳动 */
.site-top:not(.is-fixed) .logo img {
  height: 46px;
}
.site-top .logo img {
  height: 46px;
  transition: filter .38s var(--ease);
}

/* 顶栏内所有会变的属性统一过渡 */
.site-top .topbar,
.site-top .topbar-right a,
.site-top .nav-item > a,
.site-top .nav-item .caret,
.site-top .btn-quote,
.site-top .menu-btn,
.site-top .menu-btn span,
.site-top .logo {
  transition: background .38s var(--ease),
              color .38s var(--ease),
              border-color .38s var(--ease),
              box-shadow .38s var(--ease),
              opacity .38s var(--ease),
              transform .38s var(--ease);
}

/* 导航下划线与文字同步柔和 */
.site-top .nav-item > a::after {
  transition: width .28s var(--ease), background .38s var(--ease), bottom .3s var(--ease);
}

/* 白色幕布出现时，先把文字压暗再变白，避免“白字压白底”的闪一下 */
.site-top .nav-item > a,
.site-top .btn-quote {
  will-change: color, background;
}

/* ============================================================
   大菜单出现动画（2026-10-26 三改）
   思路与顶栏幕布一致：白面板先淡入，内容再自上而下揭开
   ============================================================ */

/* 面板本体：显隐完全由 JS（Web Animations API）控制。
   这里绝不能留 opacity/visibility 的 transition：
   JS 写了 opacity:1 也会被它平滑成 .2~.3s 的过渡，
   两栏快速来回时每次都重新起过渡，面板永远显示不出来（有有无无）。 */
.mega {
  transform-origin: top;
  transition: none;
}
.has-mega[data-isopen="1"] .mega {
  transition: none;
}

/* 内容区：用 clip-path 自上而下揭开
   改成 keyframes 而不是 transition：
   元素从 visibility:hidden 变可见时，浏览器常常跳过首次 transition，
   但 keyframes 一定会在状态生效时播放。 */
.mega-in {
  clip-path: inset(0 0 100% 0);
}
/* 面板 / 内容 / 每列的入场动画一律交给 JS（build.js 的 open()），
   CSS 这里不再重复声明：
   ① CSS 动画优先级高于内联 style，悬停时每触发一次就会从 opacity:0 重放，
      两栏快速切换时表现为「有有无无」；
   ② 在 prefers-reduced-motion 下时长被压到 .01ms，动画会停在起始帧，
      面板明明展开了却看不见（内联写了 opacity:1 也压不过它）。 */

/* 链接的悬停手感再柔一点 */
.mega-col a {
  transition: color .2s var(--ease), transform .24s var(--ease), opacity .2s var(--ease);
}

/* 减少动效时：不做揭开，直接显示 */
@media (prefers-reduced-motion: reduce) {
  .mega-in { clip-path: none !important; }
}

/* ============================================================
   大菜单展开时：顶栏同步变白（2026-10-26）
   做法与下滑吸顶完全一致——复用同一块白色幕布，
   只是把触发条件从「已滚动」换成「菜单已展开」。
   注意：全程不改 padding / 宽度，避免悬停时导航横向跳动。
   ============================================================ */

/* 幕布：改由 .top-scrim 这个真实元素承担，
   动画交给 JS（与菜单面板同一组关键帧），不再用 class 触发 CSS 过渡。 */
/* 特异性必须高于 `.site-top > *`（同为 0,1,0 时会被它改成 relative，
   relative 下 inset:0 不撑尺寸 -> 高度 0 -> 整块幕布不可见） */
.site-top > .top-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(14, 40, 66, .10);
}
/* 兜底：万一 WAAPI 不可用，至少保证顶栏是白的 */
.site-top.is-mega-open > .top-scrim { opacity: 1; }

/* 首屏那层压暗渐变淡出 */
.site-top:not(.is-fixed)::before {
  transition: opacity .32s var(--ease);
}
.site-top:not(.is-fixed).is-mega-open::before { opacity: 0; }

/* 一级导航文字转深色（特异性高于透明态规则，不需要 !important） */
.site-top:not(.is-fixed).is-mega-open .nav-item > a { color: var(--ink); }
.site-top:not(.is-fixed).is-mega-open .nav-item > a:hover,
.site-top:not(.is-fixed).is-mega-open .nav-item.on > a { color: var(--blue); }
.site-top:not(.is-fixed).is-mega-open .nav a::after { background: var(--orange); }
.site-top:not(.is-fixed).is-mega-open .nav-item .caret { opacity: .55; }

/* 顶部信息条转深字，背景交给幕布统一绘制 */
.site-top:not(.is-fixed).is-mega-open .topbar {
  background: transparent;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.site-top:not(.is-fixed).is-mega-open .topbar-right a:hover { color: var(--blue); }

/* 询价按钮：白底描边 → 品牌蓝实心 */
.site-top:not(.is-fixed).is-mega-open .btn-quote {
  background: var(--blue);
  color: #fff;
}
.site-top:not(.is-fixed).is-mega-open .btn-quote:hover { background: var(--blue-deep); }

/* 汉堡按钮（窄屏）转深色 */
.site-top:not(.is-fixed).is-mega-open .menu-btn { border-color: rgba(14, 40, 66, .25); }
.site-top:not(.is-fixed).is-mega-open .menu-btn span { background: var(--ink); }

/* logo 底板只减阴影，不改 padding —— 保证零布局位移 */
.site-top:not(.is-fixed).is-mega-open .logo { box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }

/* ---------- 窄屏：大菜单是内联展开，不倒角 ---------- */
@media (max-width: 900px) {
  .mega { border-radius: 0; }
  .mega-col a { padding: 8px 10px; margin-left: -10px; border-radius: 8px; }
}

/* ============================================================
   顶部品牌条（2026-10-26）
   把 logo 与公司名放进原先那条深色信息条，去掉原来"白卡片"式 logo。
   品牌条始终深蓝：无论滚动还是展开菜单都不变白，
   否则深色 logo 图标与白色文字会在白底上消失。
   ============================================================ */

.topbar-in { height: 66px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-icon {
  height: 52px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}
.brand-cn {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.brand-en {
  color: #8a97a4;
  font-size: 10px;
  letter-spacing: .14em;
  margin-top: 2px;
  white-space: nowrap;
}

/* 品牌条统一浅色底 —— 彩色 logo（蓝色地球 + 蓝 YESMORE + 橙弧）
   只有在浅底上才清晰；深蓝底会与图形本身撞色。
   浅灰白而非纯白，是为与下方 header 的白色拉开一层。 */
.site-top .topbar,
.site-top:not(.is-fixed) .topbar,
.site-top.is-fixed .topbar,
.site-top:not(.is-fixed).is-mega-open .topbar {
  background: #f7f9fb;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.site-top .topbar-right a { color: var(--ink-2); }
.site-top .topbar-right a:hover { color: var(--blue); }

/* header 里已无 logo，把询价按钮推到最右 */
.header-in > .btn-quote { margin-left: auto; }

@media (max-width: 900px) {
  /* 小屏原本是 flex-end，会把品牌区推到右边 */
  .topbar-in { justify-content: space-between; }
  .header-in { height: 74px; }
}

@media (max-width: 900px) {
  .brand-icon { height: 44px; }
  .brand-cn { font-size: 15.5px; }
}

/* 小屏预算：图标 30 + 公司名(13px×11字≈143) + 电话(≈150) + 内边距 28 ≈ 351 < 400
   超出去会把右侧汉堡按钮顶到视口外，表现为"菜单按钮消失" */
@media (max-width: 700px) {
  .topbar-in { height: 54px; padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-icon { height: 36px; }
  .brand-cn { font-size: 13px; letter-spacing: 0; }
  .brand-en { display: none; }
  .topbar-right { gap: 10px; font-size: 11.5px; }
  .topbar-right .ico { width: 12px; height: 12px; }
}

@media (max-width: 420px) {
  /* 极窄屏：公司名让位给联系方式，避免整条溢出 */
  .brand-cn { font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   菜单展开遮罩（2026-10-26）
   夹在页面内容与顶栏之间：.site-top 是 z-index:100 且 isolation:isolate，
   遮罩取 90 —— 盖住正文，盖不住顶栏与菜单面板。
   ============================================================ */
.menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 36, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 90;
  transition: opacity .30s var(--ease), visibility .30s var(--ease);
}

body.menu-open .menu-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 遮罩在时给页面一点"沉下去"的暗示：内容轻微缩小，聚焦菜单 */
@media (min-width: 901px) {
  body.menu-open main {
    transform: scale(.996);
    transition: transform .30s var(--ease);
  }
}

/* ============================================================
   面板内链接的悬停下划线
   .nav a::after 是给顶栏导航画的，但面板也嵌在 <nav> 里，
   于是 24 个面板链接全被套上了同一条线 —— 而且是 left:0 全长直尺，
   压在 border-radius: 9px 的胶囊上会把两端圆角切成直角。
   这里把它收进胶囊内缘（左右各让 12px）并加圆角，各页统一橙色。
   ============================================================ */
.mega-col a::after {
  left: 12px;
  right: auto;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.mega-col a:hover::after {
  /* .nav a:hover::after 把宽度设成 100%，会让线往右溢出 12px，这里改回扣除内缩 */
  width: calc(100% - 24px);
}

@media (max-width: 900px) {
  /* 移动端面板改成竖排列表，本就隐藏了下划线，这里不参与 */
  .mega-col a::after { display: none; }
}

/* ============================================================
   顶栏下滑收起 / 上滑显现
   .site-top 是 position: fixed，直接上移自身即可；
   面板与幕布都是它的子元素，会一起移出视线。
   ============================================================ */

/* 显现（移除 is-hidden）：稍慢、柔和收回 */
.site-top {
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

/* 收起：稍快、干脆 —— 收快显慢，手感比对称过渡自然 */
.site-top.is-hidden {
  transform: translateY(-100%);
  transition-duration: .30s;
  transition-timing-function: cubic-bezier(.4, 0, .7, .2);
}

@media (prefers-reduced-motion: reduce) {
  /* 减少动效时只缩短时长，绝不能用 transition: none ——
     全禁会让状态切换变成瞬间跳，用户会以为“动画根本没加”。
     .2s 偏快、感知上仍像跳，给到 .34s/.28s 才能看出是在滑。 */
  .site-top { transition-duration: .34s; }
  .site-top.is-hidden { transition-duration: .28s; }
}

/* ---------- 为何选择我们 / 联系我们的专家（2026-11-17） ---------- */
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 44px; margin-top: 12px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { flex: 0 0 44px; height: 44px; color: #0d4f95; }
.why-icon svg { width: 44px; height: 44px; display: block; }
.why-item h4 { font-size: 17px; margin: 0 0 8px; color: #16212c; }
.why-item p { font-size: 13.5px; line-height: 1.78; color: #6f7e8d; margin: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: center; }
.step-icon { color: #0d4f95; margin-bottom: 16px; }
.step-icon svg { width: 46px; height: 46px; display: inline-block; }
.step h4 { font-size: 16px; margin: 0 0 8px; color: #16212c; }
.step p { font-size: 13.5px; line-height: 1.7; color: #6f7e8d; margin: 0; }
.steps-cta { text-align: center; margin-top: 40px; }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 640px) {
  .why-grid, .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- 在线询盘表单（2026-11-18） ---------- */
.inq-h { font-size: 20px; margin: 44px 0 6px; color: #16212c; }
.inq-lead { font-size: 13.5px; color: #6f7e8d; margin: 0 0 18px; }
.inq-form { max-width: 760px; }
.inq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.inq-form p { margin: 0 0 14px; }
.inq-form label { display: block; font-size: 13px; color: #16212c; margin-bottom: 6px; }
.inq-req { color: #d93025; }
.inq-form input, .inq-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dde4ec; border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; color: #16212c;
}
.inq-form input:focus, .inq-form textarea:focus { outline: 2px solid rgba(13, 79, 149, .18); border-color: #0d4f95; }
.inq-form textarea { resize: vertical; min-height: 132px; }
.inq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.inq-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.inq-msg { font-size: 13px; }
.inq-msg.ok { color: #1a7f3c; }
.inq-msg.bad { color: #b3261e; }
@media (max-width: 640px) { .inq-grid { grid-template-columns: 1fr; } }

/* ---------- AI 客服浮窗（2026-11-18） ---------- */
.ai-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.ai-fab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px;
  background: #0d4f95; color: #fff; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 79, 149, .28); transition: background .2s, transform .2s;
}
.ai-fab svg { width: 20px; height: 20px; }
.ai-fab:hover { background: #0b427c; transform: translateY(-2px); }
.ai-panel {
  position: absolute; right: 0; bottom: 62px; width: 340px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid #e3e9ef; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(22, 33, 44, .16); overflow: hidden;
}
.ai-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #0d4f95; color: #fff; font-size: 14px; }
.ai-panel header button { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ai-log { height: 300px; overflow-y: auto; padding: 14px; background: #f7f9fb; }
.ai-log p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; padding: 9px 12px; border-radius: 10px; max-width: 88%; }
.ai-bot { background: #fff; border: 1px solid #e6ecf2; color: #16212c; }
.ai-user { background: #0d4f95; color: #fff; margin-left: auto; }
.ai-wait { color: #6f7e8d; font-style: italic; }
.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef2f6; }
.ai-form input { flex: 1 1 auto; min-width: 0; padding: 9px 11px; border: 1px solid #dde4ec; border-radius: 8px; font: inherit; font-size: 13.5px; }
.ai-form button { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 8px; background: #0d4f95; color: #fff; font-size: 13.5px; cursor: pointer; }
@media (max-width: 520px) {
  .ai-panel { width: calc(100vw - 32px); }
  .ai-wrap { right: 16px; bottom: 16px; }
}

/* ---------- 业务页分区（菜单 7 类对应） ---------- */
.biz-sec + .biz-sec { margin-top: 8px; }
.biz-head { margin: 10px 0 18px; }
.biz-head h3 {
  font-size: 20px; font-weight: 600; color: var(--ink);
  padding-left: 12px; border-left: 3px solid var(--blue); line-height: 1.2;
  scroll-margin-top: 110px;
}
.biz-note {
  color: var(--muted); font-size: 15px; line-height: 1.9;
  background: #f7f9fb; border: 1px solid #eef2f6; border-radius: 10px;
  padding: 18px 20px;
}
@media (max-width: 760px) {
  .biz-head h3 { font-size: 18px; scroll-margin-top: 80px; }
}

/* ---------- 紧凑下拉（业务范围 7 项，2026-11-20） ----------
   原来单列也铺满整屏，右侧一大片空白；改成贴着导航项的窄面板。 */
.nav-item.mega-slim { position: relative; }
.nav-item.mega-slim .mega {
  left: -26px;
  right: auto;
  width: max-content;
  min-width: 188px;
  /* 2026-11-26 修：原上限 260px 装不下俄语下拉项。实测「Новости международных перевозок」
     文字宽 266px，加左右内边距后整块需 328px；而链接是 white-space:nowrap，
     宽度不够时不会换行，直接溢出到面板外面。这里按内容给足宽度，
     再用 min() 守住窄视口，避免面板整体跑出屏幕。 */
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 0 0 18px 18px;
}
.nav-item.mega-slim .mega-in {
  max-width: none;
  margin: 0;
  padding: 22px 24px 24px;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
}
.nav-item.mega-slim .mega-col a {
  display: block;
  padding: 10px 14px;
  margin-left: -14px;
  white-space: nowrap;
}
.nav-item.mega-slim .mega-col a::after { display: none; }

/* 窄屏：菜单是内联展开，恢复自然宽度 */
@media (max-width: 900px) {
  .nav-item.mega-slim .mega {
    left: 0;
    width: auto;
    max-width: none;
    border-radius: 0;
  }
  .nav-item.mega-slim .mega-in { padding: 14px 0 18px; }
  /* 2026-11-26：抽屉宽 min(78vw, 320px)，内层可用仅 230px，而俄语最长项
     「Новости международных перевозок」需 257px。桌面端的 nowrap 在这里会把字顶出面板，
     抽屉本身是竖排列表，折行比溢出去好看。 */
  .nav-item.mega-slim .mega-col a { white-space: normal; }
}

/* ---------- 手机端菜单修正（2026-11-21） ----------
   ① .mega-in 的 clip-path 是桌面悬停面板「自上而下揭开」用的；
      手机端面板常驻平铺，被裁成 0 高就只剩一块白底（整片白块挡内容）。
      这条必须放文件末尾：前面 .mega-in 的 clip-path 同特异性，靠顺序压过。
   ② .site-top .mega 的白色比手机端的 var(--bg-soft) 特异性高，得显式盖掉。
   ③ 抽屉里 3 组子项展开后超过一屏，不加滚动条下面的链接点不到。 */
@media (max-width: 900px) {
  .mega-in {
    clip-path: none !important;
  }
  .site-top .nav .mega,
  .site-top .nav-item.mega-slim .mega {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
  }
  .nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* 汉堡按钮固定深色（2026-11-21）：
     首屏大图态是「透明底 + 白线条」，那条规则特异性高，
     抽屉一开到白底上就变成白底白线 = 按钮全白看不清，
     连展开后的 ❌ 也看不见。这里直接钉死白底深线，不依赖任何状态类。 */
  .site-top .menu-btn,
  .site-top:not(.is-fixed) .menu-btn,
  .site-top.is-fixed .menu-btn,
  .site-top.is-mega-open .menu-btn,
  body.nav-open .site-top .menu-btn {
    background: #fff;
    border-color: rgba(14, 40, 66, .18);
  }
  .site-top .menu-btn span,
  .site-top:not(.is-fixed) .menu-btn span,
  .site-top.is-fixed .menu-btn span,
  .site-top.is-mega-open .menu-btn span,
  body.nav-open .site-top .menu-btn span {
    background: var(--ink);
  }
  /* 能展开的一级栏目：右侧箭头（手机端原本把 .caret 整个 display:none 了，
     于是「能点开」和「点了就跳走」长得一模一样）。 */
  .nav-item.has-mega .caret {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    opacity: .45;
    color: var(--blue);
  }
  .nav-item.has-mega[data-isopen="1"] .caret {
    opacity: 1;
  }
  .nav-item.has-mega[data-isopen="1"] > a {
    color: var(--blue);
  }
  /* 展开后子项左边加一道蓝线，和上面的标题连起来 */
  .nav-item.has-mega[data-isopen="1"] .mega-in {
    border-left: 2px solid rgba(13, 79, 149, .18);
    margin-left: 2px;
    padding-left: 16px;
  }
  /* 抽屉宽 304px 会盖住右上角按钮，不提层就关不掉；
     抽屉白底，按钮线条原本也是白，一并压成深色。 */
  .site-top .menu-btn {
    position: relative;
    z-index: 130;
  }
  body.nav-open .site-top .menu-btn {
    border-color: rgba(14, 40, 66, .18);
  }
  /* 首屏顶栏是白字压在图片上；抽屉是白底，白字进去等于消失。
     这里把抽屉内的主导航文字压回深色（选择器比特异性靠顺序取胜）。 */
  .site-top .nav .nav-item > a,
  .site-top:not(.is-fixed) .nav .nav-item > a,
  .site-top:not(.is-fixed) .nav .nav-item.on > a {
    color: var(--ink);
  }
  .site-top:not(.is-fixed) .nav .nav-item.on > a {
    color: var(--blue);
  }
  /* 关键：.site-top 上的 will-change: transform 会给 fixed 子元素造包含块，
     抽屉就只在顶栏那 130px 里定位，子面板溢出成一片白块。手机端关掉它。 */
  .site-top {
    will-change: auto;
  }
  /* 抽屉打开时顶栏不许下滑收起，否则 transform 又造出包含块 */
  body.nav-open .site-top,
  body.nav-open .site-top.is-hidden {
    transform: none !important;
    will-change: auto;
  }
}

/* lang-switch */
.lang-switch{display:inline-flex;align-items:center;gap:4px;margin-left:16px;font-size:12px;line-height:1;letter-spacing:.05em;white-space:nowrap}
.lang-switch a{color:inherit;opacity:.6;text-decoration:none;padding:4px 5px;border-radius:4px;transition:opacity .18s ease,background-color .18s ease}
.lang-switch a:hover{opacity:1;background-color:rgba(255,255,255,.14)}
.lang-switch a.on{opacity:1;font-weight:700;background-color:rgba(255,255,255,.18)}
.lang-switch i{font-style:normal;opacity:.28;font-size:11px}
@media (max-width:720px){.lang-switch{margin-left:8px;font-size:11px}.lang-switch a{padding:3px 4px}}

/* ru-hero-fit */
html[lang="ru"] .hero h1{font-size:clamp(26px,3.9vw,52px);line-height:1.2}
html[lang="ru"] .hero-sub{font-size:14px;line-height:1.7}
/* 2026-11-25 修：原为 padding-top:14px，但固定顶栏高 155px（品牌条 67 + 导航 88），
   俄语首屏小标题直接被压在导航行下面。改为让开顶栏并留 26px 呼吸位。 */
html[lang="ru"] .hero-in { padding-top:168px }
/* 俄语标题行数多，首屏给足高度，避免文字压到指示点 */
/* 首屏高度已统一为 clamp(600px,82vh,860px)（见 .hero 主规则），此处不再单独覆盖 */

/* ---------- 2026-11-25 长词导航防换行（俄语顶栏重叠修复） ---------- */
/* 背景：俄语菜单词比中英文长（"Примеры проектов" 等），宽度不足时会折成两行；
   .nav-item > a 高度是固定的 36px，两行文字会溢出并向上压到品牌条，
   表现为「顶栏公司名和导航文字重叠」。这里禁止折行，从根上断掉这条路径。 */
.nav-item > a { white-space: nowrap; }
/* 俄语整体略收紧，避免 992–1280px 之间横向溢出把"Контакты"顶到询价按钮上 */
html[lang="ru"] .nav { gap: 24px; font-size: 14px; }
html[lang="ru"] .nav-item > a { letter-spacing: 0; }
