/* ============================================================
   一秒互联 www.yimiaonet.com 布局排版与动效增强
   2026-10-26 · 参考站 68team.com 的卡片体系与动效节奏
   原则：只改 布局/形状/位移/时间曲线，不改任何配色
   回滚：删除 foot.html 末尾对本文件与 lm-motion.js 的引用即可
   ============================================================ */

/* ---------- 一、卡片圆角统一（68team 大圆角体系，原 8/10/14px 混用） ---------- */
.v2-service-card,
.v2-case-card,
.home-faq-item { border-radius: 16px; }
.home-page-v2 .v2-case-card,
.home-page-v2 .v2-service-card,
.home-page-v2 .v2-contact__inner,
.home-page-v2 .home-partner-card { border-radius: 16px; }
.v2-case-card img { border-radius: inherit; }
.home-news-feature__media { border-radius: 16px; overflow: hidden; }

/* ---------- 二、按钮胶囊化（只改形状与内边距，颜色不动） ---------- */
.btn-p, .btn-o { border-radius: 999px; padding: 0 28px; }
.nav-cta { border-radius: 999px; }

/* ---------- 三、Stagger 依次入场（--rv-delay 由 lm-motion.js 分配） ---------- */
.ym-motion-ready .v2-reveal { animation-delay: var(--rv-delay, 0ms); }

/* ---------- 四、卡片 hover 曲线弹性化（位移/阴影沿用原规则，仅改时长曲线） ---------- */
.v2-case-card, .v2-service-card {
  transition-duration: 380ms, 380ms, 380ms;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1), cubic-bezier(.16, 1, .3, 1), cubic-bezier(.16, 1, .3, 1);
}
.v2-case-card img { transition: transform 520ms cubic-bezier(.16, 1, .3, 1); }
.home-faq-item { transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) {
  .home-faq-item:hover { transform: translateY(-2px); }
}

/* ---------- 五、hero 按钮 hover 微浮 ---------- */
@media (hover: hover) {
  .hero-actions .btn-p, .hero-actions .btn-o {
    transition: transform .32s cubic-bezier(.16, 1, .3, 1), box-shadow .32s, background-color .32s, border-color .32s, color .32s;
  }
  .hero-actions .btn-p:hover, .hero-actions .btn-o:hover { transform: translateY(-2px); }
  .hero-actions .btn-p:active, .hero-actions .btn-o:active { transform: translateY(0); }
}

/* ---------- 六、FAQ 手风琴：+ 号旋转过渡 + 展开内容淡入 ---------- */
.home-faq-item summary::after { display: inline-block; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.home-faq-item[open] summary::after { transform: rotate(180deg); }
.home-faq-item[open] p { animation: lm-faq-in .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lm-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 七、服务网格留白节奏（对齐 68team 卡片间距） ---------- */
.v2-service-grid { gap: 18px; }

/* ---------- 八、无障碍：用户偏好减少动效时全部关闭 ---------- */
@media (prefers-reduced-motion: reduce) {
  .v2-reveal { animation: none !important; }
  .home-faq-item[open] p { animation: none !important; }
  .v2-case-card, .v2-service-card, .home-faq-item,
  .hero-actions .btn-p, .hero-actions .btn-o,
  .v2-case-card img { transition: none !important; }
  .home-faq-item[open] summary::after { transform: none !important; }
}

/* ---------- 九、移动端菜单修复（2026-11-16） ----------
   1. 折叠按钮：去掉边框/底色/圆角框，改为纯图标按钮
   2. 一级导航：统一字号/颜色/字重；免费咨询作为 CTA 保留蓝色强调 */
html body .nav-mb,
html body[class] .nav-mb {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.mobile-nav-link {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #173451 !important;
}
/* 免费咨询作为最后一项目标明确的 CTA，保留蓝色加粗 */
.mobile-nav-item:last-child .mobile-nav-link {
  color: #0055d4 !important;
  font-weight: 600 !important;
}
