/* ========== 1. 统一品牌色 CSS 变量 ========== */
:root {
  --brand-color: #006BF5;
  --brand-hover: #0056c7;
  --brand-rgb: 0, 107, 245;
}

/* ========== 2. 基础页面高度补偿 ========== */
body {
  margin: 0 !important;
  padding-top: 70px !important; /* 补偿固定导航高度 (PC端) */
}

/* 确保前一屏 section 无底部外边距，与 Footer 完美无缝紧挨 */
.cta-banner-section,
section:last-of-type {
  margin-bottom: 0 !important;
}

/* ========== 3. Header 导航样式 ========== */
.pc-nav .nav-item.active {
  color: var(--brand-color) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-color);
  padding-bottom: 4px;
}

.pc-nav .nav-item:hover {
  color: var(--brand-color) !important;
}

/* 导航自带下载按钮配色 */
.header-btn-download {
  background: var(--brand-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3) !important;
}

.header-btn-download:hover {
  background: var(--brand-hover) !important;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.4) !important;
}

/* ========== 4. M端底部悬浮下载栏 ========== */
.m-fixed-download-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px !important; /* 移动端 Header 补偿 */
    padding-bottom: 86px !important; /* 避开移动端底部悬浮栏遮挡内容 */
  }

  .pc-nav { display: none !important; }
  .m-nav { display: flex !important; }
  
  /* Footer 内二维码与导航在移动端隐藏，保持底栏干净 */
  .footer-qrcode-group,
  .footer-nav-box,
  .footer-nav-list {
    display: none !important;
  }
  
  .m-fixed-download-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 72px !important;
    z-index: 998 !important;
    background: #ffffff !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    border-top: 1px solid #f1f5f9 !important;
  }
  
  .m-bar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
  }
  
  .m-bar-logo {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  .m-bar-text-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  
  .m-bar-title {
    font-size: 15px !important;
    color: #0f172a !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
  }
  
  .m-bar-desc {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
  }
  
  .m-bar-btn {
    background: linear-gradient(135deg, #4f93ff 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.25s ease !important;
  }

  .m-bar-btn:active {
    transform: scale(0.96) !important;
    opacity: 0.9 !important;
  }
}

/* ========== 5. Site Footer 专属样式 (无缝连接 & 消除留白) ========== */
.site-footer {
  background-color: #0F172A !important; /* 高品质深蓝黑 */
  color: #FFFFFF !important;
  padding: 60px 0 110px 0 !important; /* 底部预留 110px 避开 PC 悬浮按钮遮挡 */
  margin-top: 0 !important; /* 彻底清除顶部留白 */
  width: 100% !important;
  box-sizing: border-box !important;
  border-top: none !important;
}

.footer-container-fix {
  max-width: 1200px !important;
  width: 94% !important;
  margin: 0 auto !important;
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #273449;
  gap: 30px;
}

.footer-left-box {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.f-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-qrcode-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-qrcode-item {
  text-align: center;
}

.qrcode-label {
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 6px 0;
}

.qrcode-img {
  width: 76px;
  height: 76px;
  border: 2px solid #273449;
  border-radius: 8px;
  display: block;
  transition: border-color 0.3s ease;
}

.qrcode-img:hover {
  border-color: var(--brand-color);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav-list li a {
  color: #CBD5E1;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav-list li a:hover {
  color: var(--brand-color);
  text-decoration: underline;
}

.footer-info-bottom {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.f-copyright {
  color: #94A3B8;
  font-size: 13px;
  margin-bottom: 10px;
}

.f-risk-tip {
  color: #64748B;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}

/* ========== 6. PC端底部悬浮居中按钮 ========== */
.fixed-website-btn {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 0 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.fixed-website-btn a {
  display: block;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  background: #FFFFFF;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--brand-rgb), 0.3);
  padding: 10px 16px;
  text-decoration: none;
  pointer-events: auto;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--brand-rgb), 0.25);
}

.fixed-btn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fixed-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixed-btn-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.fixed-btn-text {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}

.fixed-btn-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-hover) 100%);
  padding: 8px 20px;
  border-radius: 25px;
}

.fixed-btn-action-text {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.fixed-btn-arrow {
  font-size: 12px;
  color: #FFFFFF;
  transition: transform 0.25s ease;
}

.fixed-website-btn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.45);
}

.fixed-website-btn a:hover .fixed-btn-arrow {
  transform: translateX(4px);
}

/* ========== 7. 移动端 Footer 响应式调整 ========== */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 100px 0 !important;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left-box {
    flex-direction: column;
    gap: 20px;
  }

  /* 移动端隐藏 PC 悬浮条（已有 m-fixed-download-bar 接管） */
  .fixed-website-btn {
    display: none !important;
  }
}