/* ============================================================
   FXPrism 官网 · 主题样式（V3.6.0）
   风格：深色金融科技 + 品牌青色发光（与驾驶舱 V3.4.0 同源 Token）
   ============================================================ */

:root {
  --bg-1: #06111f;
  --bg-2: #0a1a2e;
  --panel-bg: rgba(18, 36, 58, 0.82);
  --panel-border: rgba(53, 214, 255, 0.18);
  --accent: #35d6ff;
  --accent-bright: #5eeaff;
  --profit: #34d399;
  --loss: #fb7185;
  --text: #d7e7ff;
  --text-muted: #7f96b8;
  --text-dim: #54708f;
  --radius: 14px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

/* 文案注入完成前隐藏页面，避免占位符闪烁；无 JS 时由 <noscript> 兜底恢复显示 */
html:not(.fxprism-ready) body { visibility: hidden; }

/* ---------- 导航 ---------- */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 17, 31, 0.85);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  display: block;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(53, 214, 255, 0.5);
}
.brand .brand-mark img { width: 100%; height: 100%; display: block; }
.brand .brand-name { font-weight: 700; letter-spacing: 0.12em; font-size: 15px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 13.5px; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-lang {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--panel-border); padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s ease;
}
.nav-lang:hover { color: var(--accent); border-color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; border-radius: 10px; cursor: pointer;
  padding: 9px 18px; border: 1px solid transparent; font-family: var(--font);
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #35d6ff, #0b6cf5); color: #fff;
  box-shadow: 0 4px 18px rgba(53, 214, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 4px 26px rgba(53, 214, 255, 0.6); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--panel-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }

/* 汉堡菜单（移动端） */
.nav-hamburger {
  display: none; align-items: center; justify-content: center; width: 34px; height: 34px;
  cursor: pointer; border: 1px solid var(--panel-border); border-radius: 8px;
}
.nav-hamburger svg { width: 18px; height: 18px; stroke: var(--text); }

/* ---------- 通用区块 ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.section-tag, #strategies .tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; border: 1px solid rgba(53, 214, 255, 0.3);
  padding: 4px 12px; border-radius: 999px; background: rgba(53, 214, 255, 0.07); margin-bottom: 14px;
}
.section-title, #strategies .section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 15px; max-width: 640px; }
.section-head { margin-bottom: 36px; }

/* 滚动渐入动效 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background:
    radial-gradient(800px 400px at 75% -10%, rgba(53, 214, 255, 0.14), transparent 60%),
    radial-gradient(600px 380px at 10% 20%, rgba(11, 108, 245, 0.16), transparent 60%),
    var(--bg-1);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 214, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 214, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(700px 420px at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(700px 420px at 70% 0%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 84px 24px 56px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--accent); border: 1px solid rgba(53, 214, 255, 0.35);
  background: rgba(53, 214, 255, 0.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--profit); box-shadow: 0 0 8px var(--profit); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 850; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(90deg, #5eeaff, #35d6ff, #0b6cf5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--text-muted); font-size: 16.5px; max-width: 640px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .stats-row { display: flex; gap: 36px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero .stat { text-align: center; }
.hero .stat b { display: block; font-size: 22px; font-weight: 800; font-family: var(--mono); color: var(--text); }
.hero .stat span { font-size: 12px; color: var(--text-dim); }

/* ---------- 视频播放器（Hero） ---------- */
.video-wrap {
  position: relative; max-width: 860px; margin: 46px auto 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(53, 214, 255, 0.12);
  aspect-ratio: 16 / 9; background: #000;
}
.video-wrap video { width: 100%; height: 100%; display: block; }
.video-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  background: radial-gradient(400px 200px at 50% 45%, rgba(11, 108, 245, 0.25), rgba(6, 17, 31, 0.7) 70%);
  cursor: pointer; transition: opacity 0.3s;
}
.video-overlay .play-btn {
  width: 66px; height: 66px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #35d6ff, #0b6cf5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(53, 214, 255, 0.18), 0 8px 30px rgba(53, 214, 255, 0.45);
  transition: transform 0.2s;
}
.video-overlay .play-btn:hover { transform: scale(1.06); }
.video-overlay .play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.video-overlay .v-label { font-size: 13px; color: var(--text); letter-spacing: 0.04em; }
.video-overlay .v-sub { font-size: 11px; color: var(--text-dim); }

/* ---------- 信任条 ---------- */
.trust-bar { border-top: 1px solid rgba(53, 214, 255, 0.1); border-bottom: 1px solid rgba(53, 214, 255, 0.1); }
.trust-inner { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.trust-inner span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); }
.trust-inner svg { width: 14px; height: 14px; stroke: var(--accent); }

/* ---------- Mockup ---------- */
.mockup {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(53, 214, 255, 0.1);
  background: var(--bg-2);
}
.mockup .m-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--panel-border); }
.mockup .m-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mockup .m-bar i:nth-child(1) { background: #fb7185; }
.mockup .m-bar i:nth-child(2) { background: #fbbf24; }
.mockup .m-bar i:nth-child(3) { background: #34d399; }
.mockup .m-url { margin-left: 10px; font-size: 11px; color: var(--text-dim); background: rgba(255, 255, 255, 0.04); padding: 3px 12px; border-radius: 6px; }
.mockup .m-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.mockup .m-side { border-right: 1px solid var(--panel-border); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.mockup .m-side .ms-logo { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.mockup .m-side .ms-logo .m { width: 18px; height: 18px; border-radius: 5px; display: block; overflow: hidden; }
.mockup .m-side .ms-logo .m img { width: 100%; height: 100%; display: block; }
.mockup .m-side .ms-item { font-size: 11.5px; color: var(--text-dim); padding: 7px 10px; border-radius: 7px; }
.mockup .m-side .ms-item.active { background: rgba(53, 214, 255, 0.12); color: var(--accent); }
.mockup .m-main { padding: 20px; }
.mockup .m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mockup .m-kpi { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px 14px; }
.mockup .m-kpi .k-label { font-size: 10.5px; color: var(--text-dim); }
.mockup .m-kpi .k-val { font-size: 16px; font-weight: 700; font-family: var(--mono); margin-top: 3px; }
.mockup .m-kpi .k-val.up { color: var(--profit); }
.mockup .m-kpi .k-val.down { color: var(--loss); }
.mockup .m-chart { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 16px; }
.mockup .m-chart .c-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }
.mockup .m-chart svg { width: 100%; height: 130px; }

/* ---------- 功能卡 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 22px; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.feat-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 120px at 20% 0%, rgba(53, 214, 255, 0.1), transparent 60%); opacity: 0; transition: opacity 0.25s; }
.feat-card:hover { transform: translateY(-3px); border-color: rgba(53, 214, 255, 0.4); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.feat-card:hover::before { opacity: 1; }
.feat-card .f-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(53, 214, 255, 0.12); border: 1px solid rgba(53, 214, 255, 0.3); margin-bottom: 14px;
}
.feat-card .f-icon svg { width: 19px; height: 19px; stroke: var(--accent); }
.feat-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--text-muted); }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; position: relative;
}
.price-card.hot { border-color: rgba(53, 214, 255, 0.55); box-shadow: 0 0 40px rgba(53, 214, 255, 0.15); }
.price-card.hot .hot-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.05em; color: #fff;
  background: linear-gradient(135deg, #35d6ff, #0b6cf5); padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card .p-name { font-size: 14px; font-weight: 700; color: var(--text); }
.price-card .p-price { font-size: 34px; font-weight: 850; margin: 14px 0 4px; font-family: var(--mono); }
.price-card .p-price small { font-size: 13px; color: var(--text-dim); font-family: var(--font); font-weight: 400; }
.price-card .p-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card ul li { font-size: 12.8px; color: var(--text-muted); padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.price-card ul li svg { width: 14px; height: 14px; stroke: var(--profit); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; }
.price-enterprise-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 28px; line-height: 1.8; }

/* ---------- 精选策略（v4.10.0 · 官网通栏行式单列，与驾驶舱同一视觉语法） ---------- */
.stg-list { display: flex; flex-direction: column; gap: 14px; }
.stg-card {
  position: relative; overflow: hidden; cursor: pointer;
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 200px; gap: 20px;
  align-items: center; padding: 16px 20px; min-height: 148px;
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius);
  transition: all 0.25s ease;
}
.stg-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(620px 200px at 12% 0%, rgba(53, 214, 255, 0.1), transparent 60%);
}
.stg-card:hover { transform: translateY(-3px); border-color: rgba(53, 214, 255, 0.4); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); color: var(--text); }
.stg-card:hover::before { opacity: 1; }
/* 左 · 封面 96×96 正方形（背景图中心裁剪并弱化） */
.stg-cover {
  width: 96px; height: 96px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--panel-border); opacity: 0.85; filter: saturate(0.85);
  background-color: var(--bg-2); background-size: cover; background-position: center;
  background-repeat: no-repeat; transition: all 0.25s ease;
}
.stg-card:hover .stg-cover { opacity: 1; filter: none; }
/* 中 · 信息区（弹性，占最大空间） */
.stg-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stg-name {
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stg-meta { font-size: 12px; color: var(--text-muted); }
.stg-sum {
  font-size: 13px; color: var(--text); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 右 · 资金曲线 200×64 + 曲线下方左点赞右登录提示 */
.stg-chart { width: 200px; flex-shrink: 0; }
.stg-chart svg { display: block; width: 200px; height: 64px; }
.stg-chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.like-stat { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; color: var(--loss); font-variant-numeric: tabular-nums; cursor: default; }
.stg-login-hint { font-size: 12px; color: var(--accent); white-space: nowrap; }
/* 推荐 · 贴整卡左上角的斜角标签（整卡 position:relative; overflow:hidden） */
.corner-ribbon { position: absolute; top: 0; left: 0; width: 104px; height: 104px; overflow: hidden; pointer-events: none; z-index: 3; }
.corner-ribbon > span {
  position: absolute; top: 24px; left: -32px; width: 148px; display: block; transform: rotate(-45deg);
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 0;
  background: linear-gradient(135deg, #5eeaff, #0b6cf5); color: #04101d;
  box-shadow: 0 0 14px rgba(53, 214, 255, 0.55), 0 3px 10px rgba(0, 0, 0, 0.45);
}
.stg-noscript { font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--panel-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--panel-bg); }
.faq-item summary { padding: 16px 20px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--accent); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 16px; font-size: 13px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 50% 100%, rgba(53, 214, 255, 0.16), transparent 65%);
}
.cta-final h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-final p { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; position: relative; }
.cta-final .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
footer.site-foot { border-top: 1px solid var(--panel-border); background: var(--bg-2); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 28px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { font-size: 12px; color: var(--text-dim); max-width: 300px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols .fc h4 { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.foot-cols .fc a { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.foot-cols .fc a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid rgba(53, 214, 255, 0.1); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--text-dim); }
/* 底部 ICP 备案号：仅中文版（.cn）显示，英文版隐藏 */
.foot-icp { color: var(--text-dim); }
.foot-icp:hover { color: var(--accent); }
[data-lang="en"] .foot-icp { display: none; }
.disclaimer { font-size: 10.5px; color: var(--text-dim); line-height: 1.7; margin-top: 16px; border: 1px dashed rgba(53, 214, 255, 0.2); padding: 12px 16px; border-radius: 10px; }

/* ---------- 响应式（三档断点） ---------- */
@media (max-width: 1024px) {
  .feat-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup .m-body { grid-template-columns: 1fr; }
  .mockup .m-side { display: none; }
  .stg-card { grid-template-columns: 80px minmax(0, 1fr) 170px; gap: 16px; padding: 14px 16px; min-height: 132px; }
  .stg-cover { width: 80px; height: 80px; }
  .stg-chart, .stg-chart svg { width: 170px; }
  .stg-chart svg { height: 52px; }
}
@media (max-width: 767px) {
  .section { padding: 44px 16px; }
  .section-title { font-size: 23px; }
  .feat-grid, .price-grid { grid-template-columns: 1fr; }
  .mockup .m-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 56px 16px 40px; }
  .nav-inner { padding: 0 16px; }
  /* 移动端折叠导航 */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(6, 17, 31, 0.97);
    border-bottom: 1px solid var(--panel-border); padding: 8px 24px;
  }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(53, 214, 255, 0.08); }
  .nav-links a:last-child { border-bottom: none; }
  .site-nav.nav-open .nav-links { display: flex; }
  /* 移动端隐藏登录/注册按钮（保留在折叠菜单外，压缩空间） */
  .nav-right .btn { display: none; }
  /* 精选策略：单列堆叠 */
  .stg-card { grid-template-columns: 1fr; gap: 14px; align-items: flex-start; }
  .stg-name { white-space: normal; }
  .stg-chart, .stg-chart svg { width: 100%; }
}

/* ---------- 联系我们悬浮入口（V4.4.0 · V2.0 视觉重设计） ----------
   交互模型：
     · hover 容器 → 圆形图标滑出为「联系我们」胶囊按钮（仅展开按钮）
     · 点击按钮 → 弹出二维码面板（点击模式，面板不随鼠标消失）
     · 点击面板外 / ✕ / Esc → 关闭面板 */
.contact-fab {
  position: fixed; right: 6px; bottom: 96px; z-index: 90;
}
.fab-btn {
  position: relative; z-index: 92;
  display: flex; align-items: center;
  height: 50px; padding: 0 15px; border: 0; border-radius: 25px; cursor: pointer;
  background: linear-gradient(135deg, #2fd7e8 0%, #5b86e5 52%, #7c5bff 100%);
  color: #fff; font-size: 14px; font-weight: 600; font-family: var(--font);
  box-shadow: 0 12px 30px rgba(47, 150, 220, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.28),
              inset 0 -2px 6px rgba(0, 0, 0, 0.18);
  transition: border-radius 0.34s cubic-bezier(.22, 1, .36, 1),
              box-shadow 0.3s cubic-bezier(.22, 1, .36, 1),
              transform 0.3s cubic-bezier(.22, 1, .36, 1);
}
/* 柔和径向呼吸光晕（伪元素，替代原 box-shadow 硬闪） */
.fab-btn::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 25px;
  background: radial-gradient(closest-side, rgba(47, 215, 232, 0.55), rgba(124, 91, 255, 0.12) 70%, transparent);
  animation: fab-glow 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
}
@keyframes fab-glow {
  0%, 100% { transform: scale(0.94); opacity: 0.5; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn:active { transform: translateY(0) scale(0.96); }
.fab-btn .fab-icon { display: grid; place-items: center; flex-shrink: 0; }
.fab-btn svg { width: 21px; height: 21px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.fab-btn .fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; margin-left: 0;
  transition: max-width 0.34s cubic-bezier(.22, 1, .36, 1),
              opacity 0.2s ease,
              margin-left 0.34s cubic-bezier(.22, 1, .36, 1);
}

/* 桌面 hover 设备：默认半隐藏（圆形图标贴边），悬浮容器时展开为胶囊按钮（仅按钮，不弹面板） */
@media (hover: hover) {
  .fab-btn { transform: translateX(calc(100% - 44px)); }
  .contact-fab:hover .fab-btn,
  .contact-fab:focus-within .fab-btn { transform: translateX(0); }
  .contact-fab:hover .fab-label,
  .contact-fab:focus-within .fab-label { max-width: 92px; opacity: 1; margin-left: 8px; }
  .contact-fab:hover .fab-btn::before,
  .contact-fab:focus-within .fab-btn::before { animation-play-state: paused; opacity: 0.8; }
  /* 面板与按钮重叠，消除鼠标移动间隙（点击模式下面板由 click 控制，仅布局占位） */
  .contact-panel { bottom: 44px; }
}
/* 触屏设备：圆形纯图标按钮完整显示，点击弹出面板 */
@media (hover: none) {
  .fab-btn { transform: none; width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; }
  .fab-btn .fab-label { display: none; }
}

.contact-panel {
  position: absolute; right: 0; bottom: 62px; z-index: 91;
  width: 296px;
  background: rgba(10, 26, 46, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(53, 214, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  padding: 18px;
  transform-origin: right bottom;
  transition: opacity 0.26s ease, transform 0.34s cubic-bezier(.16, 1, .3, 1);
}
.contact-panel[hidden] { display: none; }
.contact-panel.closed { opacity: 0; transform: translateY(10px) scale(0.95); pointer-events: none; }
/* 面板 → 按钮 指向箭头 */
.contact-panel .cp-arrow {
  position: absolute; right: 20px; bottom: -7px;
  width: 14px; height: 14px; transform: rotate(45deg);
  background: rgba(10, 26, 46, 0.9);
  border-right: 1px solid rgba(53, 214, 255, 0.3);
  border-bottom: 1px solid rgba(53, 214, 255, 0.3);
  border-bottom-right-radius: 3px;
  pointer-events: none;
}
.contact-panel .cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.contact-panel .cp-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.contact-panel .cp-title .tick {
  width: 20px; height: 20px; border-radius: 7px;
  background: linear-gradient(135deg, #2fd7e8 0%, #5b86e5 52%, #7c5bff 100%);
  display: grid; place-items: center;
}
.contact-panel .cp-title .tick svg { width: 11px; height: 11px; }
.contact-panel .cp-close {
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 13px; line-height: 1;
  font-family: var(--font);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.contact-panel .cp-close:hover { background: rgba(255, 255, 255, 0.15); color: var(--text); transform: rotate(90deg); }
.contact-panel .cp-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.contact-panel .cp-body .qr {
  display: block; width: 148px; height: 148px; object-fit: contain;
  margin: 0 auto 10px; padding: 8px;
  background: #fff; border-radius: 10px;
}
.contact-panel .cp-caption { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.contact-panel .btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 20px;
  background: linear-gradient(135deg, #2fd7e8, #5b86e5);
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 22px rgba(47, 150, 220, 0.22);
  transition: transform 0.18s cubic-bezier(.22, 1, .36, 1), box-shadow 0.2s;
}
.contact-panel .btn-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 150, 220, 0.32); }
.contact-panel .btn-cta:active { transform: translateY(0) scale(0.98); }
.contact-panel .btn-cta svg { width: 16px; height: 16px; }
.contact-panel .cp-mail {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed rgba(53, 214, 255, 0.2);
  font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.contact-panel .cp-mail:hover { color: var(--accent); }
.contact-panel .cp-mail svg { width: 15px; height: 15px; flex-shrink: 0; }

/* 移动端：纯图标圆形按钮 + 窄面板 */
@media (max-width: 767px) {
  .contact-fab { right: 14px; bottom: 78px; }
  .fab-btn { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .fab-btn .fab-label { display: none; }
  .contact-panel { width: min(280px, calc(100vw - 36px)); right: 4px; bottom: 58px; }
}
