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

/* ========== 基础页面高度补偿 ========== */
body {
  /* 补偿固定导航高度，避免顶部内容被 fixed header 遮挡 (PC端) */
  padding-top: 70px !important;
}

/* ========== Header 导航样式 ========== */
/* PC端导航激活高亮与 Hover 态 */
.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;
}

@media (max-width: 768px) {
  .pc-nav { display: none !important; }
  .m-nav { display: flex !important; }
  body {
    /* 移动端顶部导航高度补偿 */
    padding-top: 60px !important;
  }
}

/* ========== M端底部悬浮下载栏 (移动端专属底栏) ========== */
.m-fixed-download-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    /* 移动端底部预留空间，避开底部悬浮栏遮挡内容 */
    padding-bottom: 86px !important;
  }
  
  /* Footer 内二维码与导航在移动端隐藏，保持底栏干净 */
  .footer-qrcode-group,
  .footer-nav,
  .footer-nav-list {
    display: none !important;
  }
  
  .m-fixed-download-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: #ffffff;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    border-top: 1px solid #f1f5f9;
  }
  
  .m-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  
  .m-bar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .m-bar-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .m-bar-title {
    font-size: 16px;
    color: #0f172a;
    font-weight: bold;
  }
  
  .m-bar-desc {
    font-size: 12px;
    color: #64748b;
  }
  
  .m-bar-btn {
    background: var(--brand-color) !important;
    color: #ffffff !important;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
    transition: all 0.25s ease;
  }

  .m-bar-btn:active {
    background: var(--brand-hover) !important;
    transform: scale(0.98);
  }
}

/* ========== Site Footer 专属样式 ========== */
.site-footer {
  background-color: #0F172A !important;
  color: #FFFFFF;
  padding: 50px 0 110px 0 !important; /* 底部预留 110px 避开 PC 悬浮按钮遮挡 */
  margin-top: 50px;
  width: 100% !important;
  box-sizing: border-box !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: 24px;
  margin-bottom: 24px;
  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-testimonial {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.6;
}

.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;
}

/* ========== 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);
}

/* ========== 移动端 Footer 响应式调整 ========== */
@media (max-width: 768px) {
  .site-footer {
    padding: 36px 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;
  }

  .f-testimonial {
    font-size: 14px;
  }

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