/* ==========================================================================
   正式站专属样式（内页头部、在线咨询表单、浮动咨询、能力矩阵等）
   与 designs/assets/base.css 配套使用，主题令牌来自 theme-a/b/c.css
   ========================================================================== */

/* ---------- 内页头图 ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 88px) 0 54px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 380px at 14% -20%, rgba(79,107,237,.28), transparent 66%),
    radial-gradient(620px 340px at 86% 0%, rgba(34,211,238,.16), transparent 68%);
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  margin: 14px 0 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.14;
  letter-spacing: -1px; font-weight: 800;
}
.page-hero .lead { margin: 18px 0 0; max-width: 640px; color: var(--text-dim); font-size: 16.5px; }

/* 内页首屏：左侧文案 + 右侧小号雷达 */
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: center;
}
.ph-copy { min-width: 0; }
.ph-radar { position: relative; }
.ph-radar::before {
  background: radial-gradient(circle 190px at var(--mx, 50%) var(--my, 50%),
    rgba(79,107,237,.24), rgba(34,211,238,.10) 44%, transparent 72%);
}
.fx-radar-sm {
  max-width: 330px;
  margin: 0 auto;
  box-shadow:
    calc(var(--sx, 0) * 14px) calc(var(--sy, 0) * 14px) 34px -16px rgba(79,107,237,.62),
    inset 0 0 60px rgba(79,107,237,.10);
}
.ph-radar .rc-status { top: -18px; right: 0; }
.ph-radar .fx-blip .lb { padding: 4px 9px; font-size: 11px; }

.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.crumb span { opacity: .7; }

/* ---------- 案例页底部提示 ---------- */
.cases-note {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 36px; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg, var(--surface));
  font-size: 15px; color: var(--text-dim);
}

/* ---------- 页脚：三列信息 + 居中的品牌区 ---------- */
.footer-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 900px;
  margin-inline: auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 46px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.footer-brand .brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; font-size: 18px; }
.footer-brand .brand-text { display: flex; flex-direction: column; line-height: 1.34; }
.footer-brand .brand-name { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.footer-brand .brand-sub { font-size: 12.8px; color: var(--text-mute); letter-spacing: .2px; }

/* ---------- 产品案例页：左侧分类菜单 + 右侧 4 列产品图 ---------- */
.cases-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.cases-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg, var(--surface));
  box-shadow: var(--shadow-card);
}
.side-title {
  padding: 0 10px 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-mute);
}
.side-tip { margin-top: 16px; padding: 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--text-mute); }

/* 分类按钮改造为左侧菜单项 */
.cases-side .filters { flex-direction: column; align-items: stretch; gap: 5px; margin-bottom: 0; }
.cases-side .filter {
  position: relative; justify-content: space-between; gap: 10px;
  padding: 11px 14px 11px 16px; border-radius: 10px; font-size: 14.2px;
  border-color: transparent; background: transparent; text-align: left;
  display: flex; align-items: center;
}
.cases-side .filter::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: 58%;
  border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateY(-50%) scaleY(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.cases-side .filter:hover { background: var(--surface-2); color: var(--text); }
.cases-side .filter.on {
  background: linear-gradient(120deg, var(--primary), var(--primary-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 26px -16px rgba(79,107,237,1);
}
.cases-side .filter.on::before { background: #fff; transform: translateY(-50%) scaleY(1); }
.cases-side .filter .cnt { font-family: var(--mono); font-size: 11.5px; opacity: .75; }

/* 真实产品图：1:1 卡片，与 2048×2048 原图比例一致，不裁切主体 */
.case-media { aspect-ratio: 1 / 1; }
.case-media img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .6s var(--ease);
  background: var(--bg-alt);
}
.case-card:hover .case-media img { transform: scale(1.06); }
.case-body h4 { font-size: 15.5px; }

/* ---------- 首屏「应用技术雷达」（无卡片外框，放大显示） ---------- */
.radar-stage { position: relative; }

/* 跟随鼠标的柔光（位置由脚本写入 --mx / --my） */
.radar-stage::before {
  content: ""; position: absolute; inset: -10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%),
    rgba(79,107,237,.26), rgba(34,211,238,.12) 42%, transparent 72%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.radar-stage:hover::before { opacity: 1; }

.rc-status {
  position: absolute; top: 0; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; color: var(--text-mute);
}
.rc-status i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.16); animation: rc-blink 1.8s var(--ease) infinite;
}
@keyframes rc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.fx-radar {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1;
  margin: 22px auto 4px; border-radius: 50%;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(79,107,237,.07), rgba(79,107,237,.02) 58%, rgba(79,107,237,0) 72%),
    var(--bg-soft);
  /* 阴影会跟随鼠标方向偏移，离开后回到居中 */
  box-shadow:
    calc(var(--sx, 0) * 22px) calc(var(--sy, 0) * 22px) 48px -20px rgba(79,107,237,.7),
    inset 0 0 80px rgba(79,107,237,.10);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.radar-stage:hover .fx-radar { border-color: rgba(79,107,237,.38); }
.fx-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(79,107,237,.16);
}
.fx-ring.r1 { width: 32%; height: 32%; border-color: rgba(79,107,237,.20); }
.fx-ring.r2 { width: 58%; height: 58%; }
.fx-ring.r3 { width: 84%; height: 84%; border-color: rgba(79,107,237,.12); }
.fx-cross {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(to right, transparent calc(50% - .5px), rgba(79,107,237,.14) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), rgba(79,107,237,.14) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
}
.fx-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(79,107,237,.34), rgba(34,211,238,.16) 24deg, rgba(34,211,238,0) 44deg, transparent 360deg);
  animation: fx-sweep 5.2s linear infinite;
}
@keyframes fx-sweep { to { transform: rotate(360deg); } }
.fx-core {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: linear-gradient(140deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(79,107,237,.10), 0 0 18px rgba(34,211,238,.55);
}

.fx-blip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.fx-blip .dot {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(79,107,237,.14);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fx-blip.on .dot {
  background: var(--accent); transform: scale(1.28);
  box-shadow: 0 0 0 6px rgba(34,211,238,.18), 0 0 16px rgba(34,211,238,.7);
}
.fx-blip.on::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.75); animation: fx-ping 1.7s var(--ease) infinite;
}
@keyframes fx-ping { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

.fx-blip .lb {
  position: absolute; top: 50%; white-space: nowrap; pointer-events: none;
  padding: 5px 11px; border-radius: 999px; font-size: 11.8px; font-weight: 600;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -14px rgba(15,23,42,.55);
  opacity: 0; transform: translateY(-50%) scale(.94);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.fx-blip.r .lb { left: 16px; }
.fx-blip.l .lb { right: 16px; }
.fx-blip.on .lb { opacity: 1; transform: translateY(-50%) scale(1); }

.rc-foot { margin-top: 14px; font-size: 12.8px; line-height: 1.6; color: var(--text-mute); text-align: center; }

/* ---------- 在线咨询 ---------- */
.consult { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 42px; align-items: start; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-dim); }
.contact-list svg { width: 19px; height: 19px; color: var(--accent); flex: 0 0 19px; }
.contact-list a:hover { color: var(--accent); }

.lead-form {
  padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--card-bg, var(--surface));
  box-shadow: var(--shadow-card);
}
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { display: block; margin-bottom: 16px; font-size: 13.5px; color: var(--text-dim); }
.lead-form label em { color: #f87171; font-style: normal; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px; font-size: 14.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 11px; outline: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  font-family: inherit;
}
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,107,237,.16);
}
.lead-form select option { background: var(--bg-soft); color: var(--text); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.lf-note { font-size: 12.5px; color: var(--text-mute); }
.lf-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.lf-msg.ok { color: #34d399; }
.lf-msg.err { color: #f87171; }
.lead-form .btn { border: 0; }

/* ---------- 浮动咨询入口 ---------- */
.quick-actions {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.quick-actions a {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--nav-solid);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.quick-actions a:hover { transform: translateY(-3px); color: var(--accent); box-shadow: var(--glow); }
.quick-actions svg { width: 21px; height: 21px; }
.quick-actions .qa-main { background: linear-gradient(140deg, var(--primary), var(--primary-deep)); color: #fff; border-color: transparent; }
.quick-actions .qa-main:hover { color: #fff; }

@media (max-width: 1080px) {
  .consult { grid-template-columns: 1fr; gap: 30px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .ph-radar { display: none; }
  .cases-layout { grid-template-columns: 1fr; gap: 20px; }
  .cases-side { position: static; padding: 14px; }
  .cases-side .filters { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cases-side .filter { border-color: var(--border); background: var(--surface); padding: 9px 16px; }
  .cases-side .filter::before { display: none; }
  .side-tip { display: none; }
}
@media (max-width: 860px) {
  .page-hero { padding: calc(var(--nav-h) + 52px) 0 40px; }
  .lead-form { padding: 22px 18px; }
  .lf-row { grid-template-columns: 1fr; }
  .quick-actions { right: 14px; bottom: 16px; }
  .quick-actions a { width: 46px; height: 46px; }
}

/* 浅色主题下的表单底色微调 */
html[data-variant="b"] .lead-form input,
html[data-variant="b"] .lead-form select,
html[data-variant="b"] .lead-form textarea { background: #fff; }
