/* 站内在线客服入口：顶部导航常驻按钮 + 首页客服卡片 + 页脚客服块
   新文件名引入，避免 CDN 同路径缓存不刷新 */

/* ---------- 顶部导航常驻入口 ---------- */
.navbar-service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #17a06d, #0f8357);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(21, 154, 104, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.navbar-service:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #0f8357, #0b6e49);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(21, 154, 104, 0.32);
}
.navbar-service i { font-size: 0.92rem; }
.navbar-service .ns-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ef0b8;
  box-shadow: 0 0 0 3px rgba(142, 240, 184, 0.25);
  animation: ns-pulse 2.2s ease-in-out infinite;
}
@keyframes ns-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(142, 240, 184, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(142, 240, 184, 0.08); }
}
.navbar-service .ns-short { display: none; }

/* 移动端菜单里的客服入口 */
.mobile-nav-service {
  margin: 0.35rem 0 0.2rem;
}
.mobile-nav-service .mobile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 10px;
  background: #eaf7f0;
  color: #0f8357 !important;
  font-weight: 600;
}

/* 中等宽度：六个长导航项 + 客服按钮挤不下，收起搜索框、三个下载站导航项改用短标签 */
@media (max-width: 1200px) {
  .navbar-search { display: none; }
  .navbar-nav { gap: 1rem; }
  .navbar-actions { gap: 0.75rem; }
  .navbar-nav .nav-link[href^="https://zb.51qpm.cn"],
  .navbar-nav .nav-link[href^="https://8.51qpm.cn"],
  .navbar-nav .nav-link[href^="https://v.51qpm.cn"] { font-size: 0; }
  .navbar-nav .nav-link[href^="https://zb.51qpm.cn"]::after { content: "直播软件"; font-size: 0.88rem; }
  .navbar-nav .nav-link[href^="https://8.51qpm.cn"]::after { content: "电商软件"; font-size: 0.88rem; }
  .navbar-nav .nav-link[href^="https://v.51qpm.cn"]::after { content: "混剪软件"; font-size: 0.88rem; }
}
@media (max-width: 992px) {
  .navbar-nav { gap: 0.55rem; }
  .navbar-nav .nav-link { padding: 0.3rem 0.3rem; font-size: 0.84rem; }
  .navbar-nav .nav-link[href^="https://zb.51qpm.cn"]::after,
  .navbar-nav .nav-link[href^="https://8.51qpm.cn"]::after,
  .navbar-nav .nav-link[href^="https://v.51qpm.cn"]::after { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  .navbar-actions { gap: 0.6rem; }
  .navbar-service {
    height: 32px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
    gap: 0.3rem;
    box-shadow: 0 3px 9px rgba(21, 154, 104, 0.22);
  }
  .navbar-service .ns-full { display: none; }
  .navbar-service .ns-short { display: inline; }
  .navbar-service .ns-dot { display: none; }
}
@media (max-width: 360px) {
  .navbar-service .ns-short { display: none; }
  .navbar-service { padding: 0 0.55rem; }
}

/* ---------- 首页 hero 在线客服卡片（替换原二维码视觉） ---------- */
.home-hero-visual.home-service-card {
  aspect-ratio: auto;
  max-width: 340px;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 24px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(142, 240, 184, 0.28), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #f4fbf6 60%, #fdfaf0 100%);
  border: 1px solid #dceadf;
  box-shadow: 0 20px 44px rgba(23, 59, 48, 0.12);
}
.home-service-card .hs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f8357;
  background: #e6f6ee;
  border: 1px solid #cbebda;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.home-service-card .hs-eyebrow .hs-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
}
.home-service-card .hs-title {
  margin: 0.35rem 0 0;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 800;
  color: #14352a;
}
.home-service-card .hs-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.72;
  color: #4d6a5c;
}
.home-service-card .hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #17a06d, #0f8357);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(21, 154, 104, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-service-card .hs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(21, 154, 104, 0.32);
}
.home-service-card .hs-points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.home-service-card .hs-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #5b7466;
}
.home-service-card .hs-points i {
  color: #159a68;
  font-size: 0.7rem;
  margin-top: 0.28rem;
}

/* 首页 CTA 下的客服可用性说明（当前首页未使用，保留备用） */
@media (max-width: 768px) {
  .home-hero .home-hero-visual.home-service-card {
    max-width: 100%;
    width: 100%;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 18px;
  }
  .home-service-card .hs-title { font-size: 1.06rem; }
  .home-service-card .hs-sub { font-size: 0.79rem; }
  .home-service-card .hs-points li { font-size: 0.74rem; }
}

/* ---------- 页脚在线客服块（替换原二维码） ---------- */
.site-footer .footer-section-service .fs-tip {
  margin: 0 0 0.8rem;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.site-footer .footer-section-service .fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #159a68;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}
.site-footer .footer-section-service .fs-btn:hover { background: #0f8357; }
.site-footer .footer-section-service .fs-note {
  margin: 0.75rem 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 992px) {
  .site-footer .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .site-footer .footer-content { grid-template-columns: 1fr; }
}
