/* ============================================================
   方案配置区（照基恩士 VHX-X1 产品页结构改写）
   - sticky 选项卡条：一屏一方案，滚动高亮（scrollspy 由 solutions.js 驱动）
   - 方案屏：左侧全幅工况图 + 卖点大标题，右侧系统组成（平台/单元/镜头式积木）
   - 页底固定三键 CTA 条：预约评估 / 获取报价 / 下载资料（滚过 hero 出现）
   视觉沿用站点暗色玻璃体系（tokens.css），不引入浅色面板。
   ============================================================ */

/* ---- hero 系统组成标注（平台/单元/镜头式） ---- */
.hero__units {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.hero__units li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--glass-line-2);
  border-radius: 999px;
  background: var(--glass-2);
  font: 400 12.5px/1 var(--font-sans);
  color: var(--fg-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__units li i {
  font: 600 10px/1 var(--font-mono);
  font-style: normal;
  color: var(--lime);
  letter-spacing: 0.06em;
}

/* ---- sticky 选项卡条 ---- */
.sol-tabs {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 40;
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: clamp(28px, 4vh, 44px);
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow-x: auto;
  scrollbar-width: none;
}
.sol-tabs::-webkit-scrollbar { display: none; }

.sol-tabs__btn {
  flex: 1 0 auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-2);
  font: 500 14px/1 var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.sol-tabs__btn:hover { color: var(--fg); background: var(--glass-3); }
.sol-tabs__btn.is-on {
  color: #0b0d11;
  background: var(--lime);
  font-weight: 600;
}
.sol-tabs__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- 方案屏 ---- */
.sol {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: min(78vh, 720px);
  padding: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(20px, 3vh, 36px);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  scroll-margin-top: calc(var(--nav-h) + 92px);
}
.sol:last-of-type { margin-bottom: 0; }

/* 图文交错（金利来业务板块的左图右文 / 右图左文交替） */
.sol--rev .sol__media { order: 2; }
.sol--rev .sol__info { order: 1; }

.sol__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  min-height: 320px;
}
.sol__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.sol:hover .sol__media img { transform: scale(1.03); filter: saturate(1); }
.sol__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(7,8,10,0) 46%, rgba(7,8,10,0.66) 100%);
  pointer-events: none;
}
.sol__metric {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font: 600 clamp(26px, 3.2vw, 44px)/1.1 var(--font-display);
  color: var(--lime);
  text-shadow: 0 2px 22px rgba(7, 8, 10, 0.8);
}
.sol__metric small {
  display: block;
  font: 400 12px/1.5 var(--font-mono);
  color: rgba(238, 241, 244, 0.72);
  letter-spacing: 0.08em;
}

.sol__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 6px 4px;
}
.sol__cap {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.sol__cap b { color: var(--lime); font-weight: 600; }
.sol__title {
  font: 600 clamp(24px, 2.6vw, 38px)/1.28 var(--font-display);
  color: var(--fg);
  letter-spacing: 0.01em;
}
.sol__desc {
  font: 400 15px/1.85 var(--font-sans);
  color: var(--fg-2);
  max-width: 46ch;
}

/* 系统组成：平台/单元/镜头式积木清单 */
.sol__units { list-style: none; padding: 0; margin: 2px 0 0; }
.sol__units li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font: 400 13.5px/1.6 var(--font-sans);
  color: var(--fg-2);
}
.sol__units li i {
  font: 500 11px/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.sol__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.sol__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font: 500 13.5px/1 var(--font-sans);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.sol__cta--solid { background: var(--lime); color: #0b0d11; font-weight: 600; }
.sol__cta--solid:hover { transform: translateY(-2px); }
.sol__cta--ghost { border: 1px solid var(--line-2); color: var(--fg); background: var(--glass-2); }
.sol__cta--ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---- 页底固定三键 CTA 条 ---- */
.ctabar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 8px;
  transform: translate(-50%, calc(100% + 40px));
  background: var(--glass);
  border: 1px solid var(--glass-line-2);
  border-radius: 16px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.ctabar.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.ctabar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 0;
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ctabar__btn--solid { background: var(--lime); color: #0b0d11; font-weight: 700; }
.ctabar__btn--solid:hover { transform: translateY(-2px); }
.ctabar__btn--ghost { background: var(--glass-3); border: 1px solid var(--line-2); color: var(--fg); }
.ctabar__btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.ctabar__btn svg { width: 15px; height: 15px; flex: none; }

/* ---- 响应式 ---- */
@media (max-width: 980px) {
  .sol { grid-template-columns: 1fr; min-height: 0; }
  .sol__media { min-height: 240px; aspect-ratio: 16 / 9; }
  .sol__media img { position: absolute; }
  .sol-tabs { top: calc(var(--nav-h) + 2px); }
  .ctabar { left: 12px; right: 12px; bottom: 12px; transform: translate(0, calc(100% + 40px)); }
  .ctabar.is-show { transform: translate(0, 0); }
  .ctabar__btn { flex: 1; justify-content: center; padding: 12px 8px; font-size: 13px; }
  .ctabar__btn small { display: none; }
}

/* ---- 评估承诺横幅（金利来中部深色横幅） ---- */
.band {
  position: relative;
  padding: clamp(72px, 11vh, 130px) 0;
  background: #101216;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 18% 0%, rgba(204, 255, 0, 0.07), transparent 60%),
    radial-gradient(50% 80% at 88% 100%, rgba(16, 185, 129, 0.06), transparent 60%);
  pointer-events: none;
}
.band__inner { position: relative; text-align: center; }
.band__eyebrow {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin: 0 0 18px;
}
.band__title {
  font: 600 clamp(26px, 3.4vw, 46px)/1.32 var(--font-display);
  color: var(--fg);
  margin: 0 auto;
  max-width: 22ch;
}
.band__lead {
  font: 400 15px/1.9 var(--font-sans);
  color: var(--fg-2);
  max-width: 58ch;
  margin: 22px auto 0;
}
.band__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vh, 44px);
}
.band__btn {
  padding: 13px 30px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font: 500 14px/1 var(--font-sans);
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.band__btn:first-child {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b0d11;
  font-weight: 700;
}
.band__btn:hover { border-color: var(--lime); color: var(--lime); }
.band__btn:first-child:hover { background: var(--lime-3); color: #0b0d11; }

@media (max-width: 980px) {
  .sol--rev .sol__media { order: 0; }
  .sol--rev .sol__info { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sol__media img, .sol__cta, .ctabar, .ctabar__btn, .band__btn { transition: none; }
}
