/* ===== v6.1 — 加 15 项 UI 优化 ===== */

/* 1. 固定底栏(只在移动版显示) */
.v6-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  z-index: 99;
  padding: 8px 16px;
  display: none;
  justify-content: space-between;
  align-items: center;
}
.v6-mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.v6-mobile-bar .mb-call {
  background: var(--gold);
  color: var(--navy-dark);
}
.v6-mobile-bar .mb-call:hover {
  background: #d4a93e;
  color: var(--navy-dark);
  text-decoration: none;
}
.v6-mobile-bar .mb-icon {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

/* 2. 微信悬浮 */
.v6-wechat {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 60px; height: 60px;
  background: #07c160;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 98;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s;
}
.v6-wechat:hover {
  transform: scale(1.1);
}
.v6-wechat-popup {
  display: none;
  position: fixed;
  bottom: 170px; right: 24px;
  width: 200px;
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 98;
  text-align: center;
}
.v6-wechat-popup.show { display: block; }
.v6-wechat-popup h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--navy-dark);
}
.v6-wechat-popup p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.v6-wechat-popup .qrcode-placeholder {
  width: 150px; height: 150px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  padding: 8px;
}

/* 4. 客户证言轮播 */
.v6-testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 16px;
  scrollbar-width: thin;
}
.v6-testimonial-track::-webkit-scrollbar { height: 6px; }
.v6-testimonial-track::-webkit-scrollbar-track { background: var(--bg-soft); }
.v6-testimonial-track::-webkit-scrollbar-thumb { background: var(--gold); }
.v6-testimonial {
  flex: 0 0 380px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px;
  scroll-snap-align: start;
  position: relative;
}
.v6-testimonial::before {
  content: '"';
  position: absolute;
  top: 12px; right: 20px;
  font-size: 64px;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  font-family: 'Georgia', serif;
}
.v6-testimonial p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 16px;
  min-height: 80px;
}
.v6-testimonial .author {
  display: flex; align-items: center; gap: 12px;
}
.v6-testimonial .author-avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.v6-testimonial .author-name {
  font-size: 14px; font-weight: 700; color: var(--navy-dark);
}
.v6-testimonial .author-role {
  font-size: 12px; color: var(--text-dim);
}

/* 5. 夜间模式 */
.v6-theme-toggle {
  position: fixed;
  bottom: 100px; left: 24px;
  width: 44px; height: 44px;
  background: var(--navy-dark);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  z-index: 98;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.v6-theme-toggle:hover { transform: scale(1.1); }
body.v6-dark {
  background: #0c1424;
  color: #e0e6ed;
}
body.v6-dark .v6-strip { background: #050a16; }
body.v6-dark .v6-section-dark { background: #050a16; }
body.v6-dark .v6-service-card,
body.v6-dark .v6-case,
body.v6-dark .v6-promise,
body.v6-dark .v6-promise { background: #1a2332; color: #e0e6ed; }
body.v6-dark .v6-promise h5 { color: var(--gold); }
body.v6-dark .v6-section-head h2 { color: var(--gold); }
body.v6-dark .v6-promise p { color: rgba(255,255,255,0.7); }
body.v6-dark .v6-case-body h4 { color: var(--gold); }
body.v6-dark .v6-case-body p { color: rgba(255,255,255,0.65); }

/* 6. 加载动画 */
@keyframes v6-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.v6-fade-in {
  animation: v6-fade-in 0.6s ease-out backwards;
}
.v6-fade-in-1 { animation-delay: 0.1s; }
.v6-fade-in-2 { animation-delay: 0.2s; }
.v6-fade-in-3 { animation-delay: 0.3s; }
.v6-fade-in-4 { animation-delay: 0.4s; }

/* 7. FAQ 折叠(已经有 .v6-faq 但用 details/summary 即可) */
.v6-faq details {
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  margin-bottom: 12px;
  transition: all 0.2s;
}
.v6-faq details[open] {
  box-shadow: 0 4px 12px rgba(200, 155, 60, 0.15);
}
.v6-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-dark);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.v6-faq summary::-webkit-details-marker { display: none; }
.v6-faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.2s;
}
.v6-faq details[open] summary::after {
  content: '−';
}
.v6-faq p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* 9. OG 分享图(用大图做 og:image) — 已在 HTML 加 meta */

/* 10. Cookie 同意 banner */
.v6-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(12, 34, 71, 0.97);
  color: white;
  padding: 16px 24px;
  z-index: 999;
  display: flex; align-items: center; gap: 16px;
  font-size: 13px;
  border-top: 2px solid var(--gold);
}
.v6-cookie-banner button {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.v6-cookie-banner button:hover { background: #d4a93e; }
.v6-cookie-banner.hide { display: none; }

/* 11. 滚动进度条 */
.v6-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 100;
  width: 0;
  transition: width 0.1s ease-out;
}

/* 13. 移动端立即拨号 */
.v6-mobile-call {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 99;
  animation: v6-pulse 2s infinite;
}
@keyframes v6-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.v6-mobile-call:hover {
  text-decoration: none;
  color: var(--navy-dark);
}

/* 14. 返回顶部 */
.v6-back-top {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 44px; height: 44px;
  background: var(--navy-dark);
  color: var(--gold);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 98;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--gold);
  transition: transform 0.2s;
}
.v6-back-top:hover { transform: scale(1.1); }
.v6-back-top.show { display: flex; }

/* 15. 即时联系按钮(右下) */
.v6-quick-contact {
  position: fixed;
  bottom: 180px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 97;
}
.v6-quick-contact a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.v6-quick-contact a:hover { color: white; }
.v6-qc-call { background: #10b981; }
.v6-qc-wechat { background: #07c160; }
.v6-qc-email { background: #3b82f6; }

/* === Responsive === */
@media (max-width: 640px) {
  .v6-mobile-bar { display: flex; padding-bottom: env(safe-area-inset-bottom, 0); }
  body { padding-bottom: 70px; }
  .v6-mobile-call { display: flex; }
  .v6-wechat { display: none; }
  .v6-theme-toggle { display: none; }
  .v6-quick-contact { display: none; }
}

/* 隐藏 scrollbar 但保留功能 */
.v6-section::-webkit-scrollbar { width: 6px; }
.v6-section::-webkit-scrollbar-track { background: var(--bg-soft); }
.v6-section::-webkit-scrollbar-thumb { background: var(--gold); }