: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 {
      cursor: pointer;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(108, 92, 231, 0.04);
      transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
      padding: 1.2rem 0.5rem 1rem 0.5rem;
      margin-bottom: 0.5rem;
      text-align: center;
    }

    .payment-card.hover,
    .payment-card:hover {
      border-color: var(--primary-color);
      box-shadow: 0 4px 16px rgba(108, 92, 231, 0.10);
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), #fff 80%);
    }

    .payment-card.active {
      border-color: var(--primary-color);
      box-shadow: 0 6px 24px rgba(108, 92, 231, 0.15);
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.10), #fff 80%);
    }

    .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 {
      border: 2px solid #e9ecef;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(108, 92, 231, 0.04);
      transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
      padding: 1rem 0.5rem;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .amount-badge:hover {
      border-color: var(--primary-color);
      box-shadow: 0 4px 16px rgba(108, 92, 231, 0.10);
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), #fff 80%);
    }

    .amount-badge.active {
      border-color: var(--primary-color);
      box-shadow: 0 6px 24px rgba(108, 92, 231, 0.15);
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.10), #fff 80%);
    }

    /* ================= 广告卡片样式 ================= */
    .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);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stat-card {
      position: relative;
      padding: 1.5rem;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.95);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid rgba(108, 92, 231, 0.1);
      overflow: hidden;
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg,
          rgba(108, 92, 231, 0.05) 0%,
          rgba(76, 144, 226, 0.05) 50%,
          rgba(108, 92, 231, 0.05) 100%);
      transform: rotate(45deg);
      z-index: 0;
    }

    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 24px rgba(108, 92, 231, 0.15);
    }

    .stat-content {
      position: relative;
      z-index: 1;
    }

    .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;
      position: relative;
      display: inline-block;
      padding: 0 0.5rem;
    }

    .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%);
      border-radius: 2px;
    }

    /* 颜色调整 */
    #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);
      /* 可选：毛玻璃效果 */
    }

/* 支付弹窗专用样式（添加到index.css底部） */
#paymentModal {
    /* 覆盖公告弹窗的z-index */
    z-index: 99999 !important;
}

#paymentModal .modal-dialog {
    min-height: calc(100vh - 3rem);
    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);
}

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

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

/* 二维码容器 */
#paymentModal .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);
}

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

/* 移动端优化 */
@media (max-width: 576px) {
    #paymentModal .modal-dialog {
        min-height: 100vh;
        margin: 0;
    }
    
    #paymentModal .qrcode-wrapper {
        /* 固定宽高比1:1 */
        width: 35vw !important;
        height: 35vw !important;
        /* 移除所有可能的内边距 */
        padding: 0 !important;
        /* 覆盖可能的外部阴影 */
        box-shadow: none !important;
    }

    /* 二维码图片自适应 */
    #paymentModal .qrcode-wrapper > img {
        border: 1px solid rgba(0,0,0,0.1) !important; /* 调试边框 */
        width: 100% !important;
        height: 100% !important;
    }
}

/* 新增覆盖样式 */
#paymentModal .modal-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

#paymentModal .amount-placeholder {
    color: #1677FF !important;
    font-size: 2rem !important;
}

#paymentModal .btn-primary {
    background: #1677FF !important;
    border-color: #1677FF !important;
}
    
    /* 公告弹窗样式 */
.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);
}
.mobel{
    flex-wrap: nowrap;
    flex-direction: column;
}
#rankingList {
    max-height: 250px;  /* 固定高度 */
    overflow-y: auto;   /* 允许垂直滚动 */
    padding: 10px; /* 保持间距 */
}

/* 自定义滚动条（适用于 WebKit 浏览器，如 Chrome, Edge, Safari） */
#rankingList::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
}

#rankingList::-webkit-scrollbar-track {
    background: transparent; /* 轨道背景透明 */
}

#rankingList::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* 滚动条颜色（淡灰色） */
    border-radius: 4px; /* 滚动条圆角 */
}

#rankingList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4); /* 滚动条悬停时颜色加深 */
}


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

/* 联系方式和公告栏样式 */
.glass-card h5 {
    color: #333;
    font-weight: 600;
}

.glass-card .notice-item h6 {
    color: #333;
}

.glass-card .notice-content {
    font-size: 0.95rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .col-lg-4 {
        margin-top: 20px;
    }
}

/* 联系方式卡片样式（右侧栏） */
.glass-card .staff-list {
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.glass-card .staff-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    width: 48%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px;
}

.glass-card .staff-item:hover {
    transform: scale(1.05);
    background-color: rgba(249, 249, 249, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glass-card .staff-avatar-wrapper {
    position: relative;
    margin-bottom: 6px;
}

.glass-card .staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.glass-card .avatar-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #52c41a;
    border-radius: 50%;
    border: 2px solid white;
}

.glass-card .staff-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 2px;
}

.glass-card .staff-title {
    font-size: 12px;
    color: #888;
    margin-top: 0;
    text-align: center;
}

.glass-card .divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
    width: 100%;
}

.glass-card .hotline-section {
    padding: 0;
}

.glass-card .hotline-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    background-color: rgba(249, 249, 249, 0.5);
}

.glass-card .hotline-item:hover {
    transform: scale(1.02);
    background-color: rgba(249, 249, 249, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glass-card .phone-icon-wrapper {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.glass-card .phone-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.glass-card .hotline-info {
    flex: 1;
}

.glass-card .phone-number {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.glass-card .phone-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.glass-card .online-indicator {
    width: 10px;
    height: 10px;
    background-color: #52c41a;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

/* 移动端响应式 */
@media (max-width: 576px) {
    .glass-card .staff-item {
        padding: 6px 0;
    }
    
    .glass-card .staff-avatar {
        width: 40px;
        height: 40px;
    }
    
    .glass-card .staff-name {
        font-size: 13px;
    }
    
    .glass-card .staff-title {
        font-size: 11px;
    }
}