/* ============================================================
   umi6-extra.css — 交互补充层
   原站下拉菜单、移动端菜单由 Vue 运行时控制（SSR 时下拉是空的），
   本文件补回纯 CSS/JS 可驱动的显示逻辑，使静态复刻版交互完整。
   ============================================================ */

/* ---------- 1. 桌面端下拉：hover / 键盘聚焦时显示 ---------- */
.app-header__nav-item--dropdown > .app-header__dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease;
}
.app-header__nav-item--dropdown:hover > .app-header__dropdown,
.app-header__nav-item--dropdown:focus-within > .app-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* 悬停时下拉箭头翻转 */
.app-header__nav-item--dropdown:hover .app-header__dropdown-icon {
  transform: rotate(180deg);
}

/* ---------- 2. 下拉面板内部布局（mega menu） ---------- */
.app-header__dropdown a { display: block; text-decoration: none; }
.mega__item { display: flex; }
.mega__ic {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.mega__ic--dot { color: transparent; }
.mega__cta { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; }
.mega__cta-btn { border: none; border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }

/* ---------- 3. 移动端菜单（原站用 --open 类，JS 切换即可） ---------- */
.app-header__mobile-menu { overflow-y: auto; }
.app-header__mobile-nav-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.app-header__mobile-nav-group { display: flex; flex-direction: column; }
.app-header__mobile-nav-title {
  color: #9098ad; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  padding: 10px 11px 4px;
}
.app-header__mobile-nav-link {
  display: block; color: #1a2035; font-size: 15px; font-weight: 600;
  padding: 11px; border-radius: 10px; text-decoration: none;
}
.app-header__mobile-nav-link:active { background: #f4f6fc; }
.app-header__mobile-nav-sub {
  display: block; color: #5a6379; font-size: 13.5px;
  padding: 9px 11px 9px 22px; border-radius: 10px; text-decoration: none;
}

/* ---------- 4. 正文容器兜底 ---------- */
.main-content { width: 100%; }
/* 原站部分区块依赖 Vue 注入的行内样式，这里保证最小可读性 */
[data-v-d8b48c79] { box-sizing: border-box; }
img { max-width: 100%; }

/* ============================================================
   5. 导航下拉：图标位 + 科技感
   原站下拉项只有一个空圆点，图标位是空的；这里让 build.py 输出的
   SVG 图标立起来，并给面板与条目加一层冷色科技质感。
   ============================================================ */

/* 图标方块：保留原蓝色渐变，补内高光与过渡 */
.app-header__dropdown .mega__ic {
  position: relative;
  background: linear-gradient(140deg, #5b9bff 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .26), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .2s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s ease, filter .2s ease;
}
.app-header__dropdown .mega__svg { width: 17px; height: 17px; display: block; }

/* hover 时图标微微上浮、发亮，并透出一圈光晕 */
.app-header__dropdown .mega__ic::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(59, 130, 246, .42), rgba(99, 102, 241, 0) 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.app-header__dropdown .mega__item:hover .mega__ic {
  transform: translateY(-1px) scale(1.07);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .55);
  filter: saturate(1.12) brightness(1.04);
}
.app-header__dropdown .mega__item:hover .mega__ic::after { opacity: 1; }

/* 条目：左侧光条 + 渐变底色 + 轻微右移 */
.app-header__dropdown .mega__item {
  position: relative;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.app-header__dropdown .mega__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: translateY(-50%);
  opacity: .9;
  transition: height .18s ease;
}
.app-header__dropdown .mega__item:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, .10), rgba(139, 92, 246, .05));
  transform: translateX(2px);
  box-shadow: 0 6px 18px -12px rgba(37, 99, 235, .5);
}
.app-header__dropdown .mega__item:hover::before { height: 18px; }
.app-header__dropdown .mega__tx b { transition: color .18s ease; }
.app-header__dropdown .mega__item:hover .mega__tx b { color: #1d4ed8; }

/* 面板：冷色底 + 内高光 + 细网格纹理（纹理放在伪元素上，不挡鼠标） */
.app-header__dropdown.app-header__dropdown--mega {
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(246, 250, 255, .99));
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9),
              0 22px 54px -20px rgba(30, 64, 175, .3),
              0 0 0 1px rgba(255, 255, 255, .5);
  transition: opacity .18s ease, box-shadow .18s ease;
}
.app-header__nav-item--dropdown:hover > .app-header__dropdown--mega {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9),
              0 26px 62px -20px rgba(30, 64, 175, .38),
              0 0 0 1px rgba(59, 130, 246, .1);
}
.app-header__dropdown.app-header__dropdown--mega .mega__grid {
  position: relative;
  z-index: 1;
}
.app-header__dropdown.app-header__dropdown--mega::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, .075) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
}

/* 移动端菜单同步加图标位的最小保护 */
.app-header__mobile-nav-sub { transition: background .16s ease; }

@media (prefers-reduced-motion: reduce) {
  .app-header__dropdown .mega__item,
  .app-header__dropdown .mega__item::before,
  .app-header__dropdown .mega__ic,
  .app-header__dropdown .mega__ic::after { transition: none; }
  .app-header__dropdown .mega__item:hover { transform: none; }
}

/* ============================================================
   6. 产品页工作台界面图（营销智脑）
   浅色截图直接贴白底会糊在页面里，这里用描边 + 外投影 + 顶部渐变光
   把产品界面托起来，窄屏收圆角、减内边距。
   ============================================================ */
.mb-ui { padding: 6px 0 72px; }
.mb-ui__eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  color: #2563eb; text-transform: uppercase;
}
.mb-ui__lead {
  max-width: 760px; margin: 0 auto;
  font-size: 15.5px; line-height: 1.9; color: #5a6b83;
}
.mb-ui__frame {
  position: relative;
  margin: 34px auto 0;
  max-width: 1120px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, .16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset,
              0 30px 80px -36px rgba(30, 64, 175, .5),
              0 8px 24px -18px rgba(15, 23, 42, .18);
  transition: box-shadow .28s ease, transform .28s ease;
}
.mb-ui__frame::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .45), transparent);
}
.mb-ui__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.mb-ui__cap {
  margin: 0;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #7b8aa0;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid #eef2f8;
}
.mb-ui__frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset,
              0 38px 96px -38px rgba(30, 64, 175, .58),
              0 10px 28px -18px rgba(15, 23, 42, .22);
}

@media (max-width: 760px) {
  .mb-ui { padding: 2px 0 48px; }
  .mb-ui__lead { font-size: 14.5px; line-height: 1.85; }
  .mb-ui__frame { margin-top: 22px; border-radius: 14px; }
  .mb-ui__frame::before { display: none; }
  .mb-ui__cap { padding: 10px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mb-ui__frame { transition: none; }
  .mb-ui__frame:hover { transform: none; }
}
