:root {
      --primary-color: #6C5CE7;
      --secondary-color: #4A90E2;
      --gradient-start: #6C5CE7;
      --gradient-end: #4A90E2;
      --success-color: #00C853;
    }

    body {
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      min-height: 100vh;
      padding-top: 80px;
    }

    /* 导航栏样式 */
    .main-nav {
      background: rgba(255, 255, 255, 0.98) !important;
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
      color: #666 !important;
      transition: all 0.3s ease;
      border-radius: 8px;
      padding: 0.5rem 1rem !important;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--primary-color) !important;
      background: rgba(108, 92, 231, 0.05);
    }

    .dropdown-menu {
      margin-top: 0.5rem !important;
      border-radius: 16px !important;
      min-width: 220px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .dropdown-item {
      transition: all 0.3s ease;
      border-radius: 8px;
      margin: 0.25rem;
      padding: 0.5rem 1rem;
    }

    .dropdown-item:hover {
      background: rgba(108, 92, 231, 0.08);
      transform: translateX(5px);
    }

    @media (max-width: 991px) {
      .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      }

      .nav-item {
        margin: 0.25rem 0;
      }

      .dropdown-menu {
        box-shadow: none;
        background: rgba(245, 245, 245, 0.9);
        margin-left: 1rem;
      }
    }

    /* 内容样式 */
    .glass-card {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    /* ================= 排行榜完整样式 ================= */
    .ranking-container {
      margin-top: 1.5rem;
    }

    .ranking-list {
      padding-right: 8px;
      margin: 0 -0.5rem;
    }

    .ranking-item {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      margin-bottom: 0.5rem;
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid rgba(0, 0, 0, 0.05);
      position: relative;
    }

    .ranking-item:hover {
      transform: translateX(8px);
      box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
    }

    .ranking-number {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.95rem;
      background: rgba(108, 92, 231, 0.08);
      color: var(--primary-color);
      flex-shrink: 0;
    }

    .ranking-number.text-primary {
      background: linear-gradient(135deg, var(--primary-color), #8E7BEF);
      color: white !important;
    }

    .ranking-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      margin: 0 1rem;
      border: 2px solid #e9ecef;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      object-fit: cover;
      flex-shrink: 0;
    }

    .ranking-info {
      flex: 1;
      min-width: 0;
      overflow: hidden;
    }

    .ranking-info .fw-bold {
      font-size: 0.95rem;
      color: #333;
      line-height: 1.3;
      margin-bottom: 0.15rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ranking-info small {
      font-size: 0.8rem;
      color: #666;
      display: block;
    }

    .ranking-amount {
      font-weight: 700;
      color: var(--success-color);
      white-space: nowrap;
      font-size: 0.95rem;
      margin-left: 1rem;
      flex-shrink: 0;
    }

    /* 前三名特殊样式 */
    .top-three {
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(108, 92, 231, 0.02)) !important;
      border: 1px solid rgba(108, 92, 231, 0.15) !important;
    }

    /* 可滚动区域 */
    .scrollable-area {
      max-height: 300px;
      overflow-y: auto;
      margin-top: 1rem;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      padding-top: 1rem;
    }

    /* 滚动条样式 */
    .ranking-list::-webkit-scrollbar,
    .scrollable-area::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }

    .ranking-list::-webkit-scrollbar-track,
    .scrollable-area::-webkit-scrollbar-track {
      background: rgba(108, 92, 231, 0.05);
      border-radius: 3px;
    }

    .ranking-list::-webkit-scrollbar-thumb,
    .scrollable-area::-webkit-scrollbar-thumb {
      background: rgba(108, 92, 231, 0.2);
      border-radius: 3px;
      transition: background 0.3s ease;
    }

    .ranking-list::-webkit-scrollbar-thumb:hover,
    .scrollable-area::-webkit-scrollbar-thumb:hover {
      background: rgba(108, 92, 231, 0.3);
    }

    /* ================= 支付卡片样式 ================= */
    .payment-card {
      border-radius: 14px;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1.5px solid rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.98);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 120px;
      /* 统一高度 */
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .payment-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 14px;
      box-shadow: 0 4px 12px rgba(108, 92, 231, 0.08);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .payment-card:hover {
      transform: translateY(-2px);
      border-color: rgba(108, 92, 231, 0.2);
    }

    .payment-card:hover::before {
      opacity: 1;
    }

    .payment-card.active {
      border-color: var(--primary-color);
      background: linear-gradient(135deg,
          rgba(108, 92, 231, 0.04),
          rgba(108, 92, 231, 0.08));
      box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
    }

    .payment-card i {
      font-size: 1.75rem !important;
      /* 缩小图标 */
      margin-bottom: 0.75rem;
      transition: transform 0.3s ease;
    }

    .payment-card:hover i {
      transform: scale(1.1);
    }

    .payment-card h5 {
      font-size: 1.05rem !important;
      margin-bottom: 0.25rem;
      font-weight: 600;
      color: var(--primary-color);
    }

    .payment-card small {
      font-size: 0.82rem;
      color: #666;
      line-height: 1.3;
    }

    /* 移动端优化 */
    @media (max-width: 768px) {
      .payment-card {
        padding: 0.75rem;
        min-height: 100px;
      }

      .payment-card i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
      }

      .payment-card h5 {
        font-size: 0.95rem !important;
      }

      .payment-card small {
        font-size: 0.75rem;
      }
    }

    /* ================= 金额选择样式 ================= */
    .amount-badge {
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      cursor: pointer;
      padding: 0.75rem;
      border-radius: 12px;
      background: white;
    }

    .amount-badge .icon-wrapper {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 0.5rem;
      transition: all 0.3s ease;
    }

    .amount-badge:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 16px rgba(108, 92, 231, 0.15);
    }

    .amount-badge.active {
      border-color: var(--primary-color);
      background: rgba(108, 92, 231, 0.03);
    }

    /* ================= 广告卡片样式 ================= */
    .ad-card-pro {
      border-radius: 24px;
      background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
      overflow: hidden;
      position: relative;
      min-height: 320px;
    }

    .ad-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
      padding: 1.5rem;
      color: white;
    }

    .btn-custom {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid var(--primary-color);
      position: relative;
      overflow: hidden;
      background: white;
      color: var(--primary-color);
    }

    .btn-custom:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 24px rgba(108, 92, 231, 0.1);
      background: var(--primary-color);
      color: white !important;
    }

    /* ================= 页脚样式 ================= */
    footer a {
      text-decoration: none;
    }

    /* ================= 悬浮按钮样式 ================= */
    .float-button-container {
      --btn-size: 56px;
      position: fixed;
      right: 1rem;
      bottom: 1.5rem;
      z-index: 9999;
    }

    .button-group {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      padding: 1rem;
    }

    .float-btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--btn-size);
      height: var(--btn-size);
      border-radius: 50%;
      color: white;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .float-btn .tooltip {
      position: absolute;
      right: calc(100% + 1.5rem);
      bottom: 50%;
      transform: translateY(50%);
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      background: rgba(0, 0, 0, 0.9);
      color: #fff;
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      font-size: 0.95rem;
      pointer-events: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .float-btn .tooltip::after {
      content: '';
      position: absolute;
      left: 100%;
      top: 50%;
      transform: translateY(-50%);
      border-width: 8px;
      border-style: solid;
      border-color: transparent transparent transparent rgba(0, 0, 0, 0.9);
    }

    .float-btn:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .float-btn:hover .tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(50%) translateX(-6px);
    }

    .qq {
      background: #00AAEF;
    }

    .wx {
      background: #07C160;
    }

    .top {
      background: #666;
    }

    /* ================= 响应式设计 ================= */
    @media (max-width: 768px) {
      .ranking-item {
        padding: 0.75rem;
      }

      .ranking-avatar {
        width: 36px;
        height: 36px;
        margin: 0 0.75rem;
      }

      .ranking-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
      }

      .ranking-info .fw-bold {
        font-size: 0.9rem;
      }

      .ranking-amount {
        font-size: 0.9rem;
      }

      .float-button-container {
        right: 0.5rem;
        bottom: 1rem;
        --btn-size: 48px;
      }

      .float-btn .tooltip {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        right: calc(100% + 1rem);
      }

      .scrollable-area {
        max-height: 200px;
        /* 移动端调整高度 */
      }
    }

    /* 新增统计卡片样式 */
    .stats-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(108, 92, 231, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.stat-label i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  opacity: 0.8;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #6C5CE7;
  position: relative;
}

.stat-value::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(108, 92, 231, 0.3) 0%,
    rgba(76, 144, 226, 0.3) 100%);
}

/* 移动端优化（新增） */
@media (max-width: 768px) {
  .stats-container {
    padding: 1rem;
    margin: 1rem -0.5rem;
    border-radius: 16px;
  }

  .stat-card {
    padding: 1.25rem;
    margin: 0.5rem 0 !important;
    border-radius: 12px;
  }

  .stat-label {
    font-size: 1rem;
    flex-wrap: nowrap;
  }

  .stat-label i {
    font-size: 1.4rem;
    margin-right: 0.75rem;
  }

  .stat-value {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .stat-value::after {
    bottom: -2px;
    height: 1.8px;
  }
}

/* 桌面端增强（保留原有动画） */
@media (min-width: 769px) {
  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(108, 92, 231, 0.15);
  }
}

    /* 颜色调整 */
    #todayTotal {
      color: #6C5CE7 !important;
    }

    #allTotal {
      color: #00C853 !important;
    }

    #donorCount {
      color: #FFB300 !important;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .stats-container {
        border-radius: 14px;
        padding: 1rem;
      }

      .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
      }

      .stat-value {
        font-size: 1.5rem;
      }

      .stat-label {
        font-size: 0.85rem;
      }
    }

    .loading {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.8);
      z-index: 9999;
      display: none;
    }

    .loading-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
    }

    .modal-backdrop {
      background-color: rgba(200, 200, 200, 0.5) !important;
      /* 灰色半透明 */
      backdrop-filter: blur(2px);
      /* 可选：毛玻璃效果 */
    }

    /* ================= 支付弹窗核心样式 ================= */
    /* 支付弹窗核心样式 */
#paymentModal .modal-dialog {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  margin: 0 auto;
}

#paymentModal .modal-content {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
  overflow: hidden;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
}

#paymentModal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* 头部样式 */
.modal-header.p-4 {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 2rem;
}

/* 订单信息 */
.order-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.order-info-container i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.order-no-placeholder {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6C5CE7;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
  background: rgba(108, 92, 231, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* 二维码容器 */
.qrcode-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.qrcode-wrapper:hover {
  transform: scale(1.02);
}

.qrcode-image {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.qrcode-image.loaded {
  opacity: 1;
}

/* 加载骨架 */
.qrcode-skeleton {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(240, 240, 240, 1) 25%,
    rgba(230, 230, 230, 1) 50%,
    rgba(240, 240, 240, 1) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite linear;
  border-radius: 16px;
}

/* 支付提示 */
.payment-tips {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 2px dashed rgba(108, 92, 231, 0.2);
}

.payment-tips i {
  font-size: 2rem;
  color: #6C5CE7;
  margin-bottom: 1rem;
}

/* 倒计时 */
.countdown-wrapper {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(108, 92, 231, 0.1);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, #6C5CE7, #8E7BEF);
  transition: width 1s linear;
}

/* 手机端跳转按钮 */
.btn-pay-redirect {
  color: white;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: none; /* 默认隐藏 */
}

.btn-pay-redirect:active {
  transform: scale(0.98);
}

.btn-pay-redirect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.btn-pay-redirect:hover::after {
  left: 120%;
}

/* 动画效果 */
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes blobMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(12px, -12px); }
  50% { transform: translate(-8px, 8px); }
  75% { transform: translate(-12px, -8px); }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 50;
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  #paymentModal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
  }

  .qrcode-wrapper {
    padding: 1rem;
    max-width: 240px;
  }

  .btn-pay-redirect {
    display: block !important;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .modal-header.p-4 {
    padding: 1.5rem;
  }

  .blob {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 768px) {
  .btn-pay-redirect {
    display: none !important;
  }
}

/* 成功状态 */
.payment-success {
  text-align: center;
  padding: 3rem 0;
}

.success-check {
  stroke-dasharray: 50;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkmark 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 装饰元素 */
.blob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  filter: blur(12px);
  opacity: 0.6;
  animation: blobMove 8s infinite linear;
}

.blob.red { background: #FF3366; animation-delay: -1.5s; }
.blob.yellow { background: #FFD700; left: 15%; animation-delay: -3s; }
.blob.blue { background: #00C3FF; left: 85%; animation-delay: -5s; }
    
    /* 弹窗样式 */
.popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-content {
    position: relative;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.popup-logo {
    width: 60%;
    border-radius: 12px;
    border: 2px solid rgba(108,92,231,0.1);
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}