/* 基础样式 */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 40px 0;
    font-size: 14px;
}

.container {
    max-width: 1200px;
}

.donation-container {
    max-width: 100%;
    margin: 0;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    background: white;
    transition: all 0.3s ease;
}

/* 金额按钮基础边框 */
.donation-container .amount-btn {
    border: 2px solid #dee2e6 !important; /* 强制定义边框三要素 */
    transition: border-color 0.3s ease;   /* 单独定义边框过渡 */
}

/* 激活状态边框 */
.donation-container .amount-btn.active {
    border: 2px solid #0d6efd !important; /* 双重保险：!important + 特异性 */
    background-color: #0d6efd;
}

/* 悬停状态 */
.donation-container .amount-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    
}

/* 覆盖Bootstrap默认边框 */
.btn-outline-primary {
    border-color: #dee2e6 !important; /* 重置默认边框颜色 */
}

.amount-btn {
    margin: 0;
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-width: 2px;
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

.amount-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd !important; /* 添加这一行 */
    border-width: 2px; /* 确保边框宽度 */
    border-style: solid; /* 明确指定边框样式 */
}

.custom-amount {
    margin: 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.input-group-text {
    border: none;
    background-color: #f8f9fa;
    font-weight: bold;
    color: #0d6efd;
    padding: 0 20px;
}

.form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    background: white;
}

.form-control:focus {
    box-shadow: none;
    background: white;
}

#payButton {
    width: 100%;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
    transition: all 0.3s ease;
}

#payButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.page-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.2rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border-radius: 4px;
}

.card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    margin-bottom: 20px;
    background: white;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

.card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

footer {
    margin-top: 60px;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

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

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

.text-center p a {
    text-decoration: none;

}

.loading i {
    font-size: 40px;
    color: #0d6efd;
}

.ranking-container {
    margin-top: 50px;
}

.ranking-number {
    font-weight: bold;
    font-size: 1.2rem;
}

.ranking-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f8f9fa;
}

.ranking-list::-webkit-scrollbar {
    width: 6px;
}

.ranking-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.ranking-list::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 3px;
}

.ranking-item {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    min-width: 0;
    margin: 0 10px;
}

.ranking-amount {
    font-weight: 600;
    color: #0d6efd;
    white-space: nowrap;
    font-size: 0.95rem;
}

.qrcode-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.qrcode-modal .modal-header {
    border-bottom: none;
    padding: 25px 30px 15px;
    position: relative;
}

.qrcode-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    width: 100%;
    position: relative;
}

.qrcode-modal .modal-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    margin: 10px auto 0;
    border-radius: 2px;
}

.qrcode-modal .modal-body {
    padding: 0 30px 30px;
    text-align: center;
}

.qrcode-modal .qr-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.1);
    position: relative;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.qrcode-modal .qr-container:hover {
    transform: translateY(-3px);
}

.qrcode-modal .qr-container:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(13, 110, 253, 0.1);
    border-radius: 20px;
    z-index: -1;
}

.qrcode-modal .alipay-btn {
    background: linear-gradient(45deg, #1677ff, #4096ff);
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(22, 119, 255, 0.2);
}

.qrcode-modal .alipay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.3);
}

.qrcode-modal .alipay-btn i {
    font-size: 1.2em;
    margin-right: 8px;
}

.qrcode-modal .payment-tips {
    margin: 25px 0 15px;
    padding: 15px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-modal .spinner-border {
    width: 1.2em;
    height: 1.2em;
    border-width: 0.15em;
    margin-right: 8px;
}

.qrcode-modal .modal-footer {
    border-top: none;
    padding: 15px 30px 25px;
    background: rgba(255, 255, 255, 0.8);
}

.qrcode-modal .countdown-text {
    font-size: 0.9em;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-modal .countdown-number {
    color: #0d6efd;
    font-weight: 600;
    margin: 0 3px;
}

.payment-methods {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-btn {
    padding: 12px 30px;
    border-radius: 15px;
    border: 2px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    z-index: 1;
}

.payment-btn.active {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.payment-btn img {
    height: 24px;
    width: 24px;
}

.payment-btn.alipay.active {
    border-color: #1677ff;
    background: rgba(22, 119, 255, 0.05);
}

.payment-btn.epay.active {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .captcha-container {
                transform: scale(0.9);
                transform-origin: center top;
            }
            
    .container {
        padding: 0 10px;
    }

    .donation-container {
        padding: 20px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .payment-btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
    }

    .amount-buttons {
        gap: 10px;
    }

    .amount-btn {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 10px 15px;
        font-size: 0.95rem;
        border: 2px solid #dee2e6;
    }

    .custom-amount {
        margin: 30px 0;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }

    #payButton {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .ranking-container {
        margin-top: 30px;
    }

    .ranking-item {
        padding: 10px 8px;
    }

    .ranking-avatar {
        width: 35px;
        height: 35px;
    }

    .ranking-info {
        margin: 0 8px;
    }

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

    .ranking-number {
        font-size: 1rem;
        min-width: 24px;
    }

    .qrcode-modal .modal-content {
        margin: 20px;
    }

    .qrcode-modal .qr-container {
        padding: 15px;
    }

    .qrcode-modal .modal-title {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .amount-btn {
        flex: 0 0 auto;
        max-width: none;
    }

    .ranking-container {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .row {
        margin: 0 -20px;
    }

    .col-lg-7,
    .col-lg-5 {
        display: flex;
        flex-direction: column;
        gap: 30px;
        
    }
}

.message-input {
    margin-top: 15px;
}

#messageInput {
    resize: vertical;
    min-height: 38px;
}

/**/
.ad[data-v-15ac1b16] {
    padding: 10px 15px;
    overflow: hidden;
    width: 100%;
    /*max-width: 320px;*/
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    font-size: 14px;
    box-shadow: #00000073 0 25px 20px -20px;
    margin-bottom: 30px;
}

.ad[data-v-15ac1b16]:before {
    content: "";
    position: absolute;
    background: linear-gradient(rgb(255 255 255 / 10%), rgb(155 213 255));
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: .5em
}

.ad .bg-wrapper[data-v-15ac1b16] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200%;
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    z-index: 1;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    -webkit-transform: translateX(-70px);
    transform: translate(-70px)
}

.ad .bg-wrapper .img[data-v-15ac1b16] {
    width: 60px;
    background-size: 100% 100%;
    height: 120px;
    border-radius: 5px;
    position: relative
}

.ad .bg-wrapper .img[data-v-15ac1b16]:before {
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 5px;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2
}

.ad .bg-wrapper .strip[data-v-15ac1b16] {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    gap: 10px;
    -webkit-animation: bgMove-15ac1b16 60s linear infinite;
    animation: bgMove-15ac1b16 60s linear infinite
}

.ad .bg-wrapper .strip[data-v-15ac1b16]:nth-of-type(2n) {
    -webkit-animation: bgMoveReverse-15ac1b16 60s linear infinite;
    animation: bgMoveReverse-15ac1b16 60s linear infinite
}

@-webkit-keyframes bgMove-15ac1b16 {
    0% {
        -webkit-transform: rotate(-30deg) translateY(0);
        transform: rotate(-30deg) translateY(0)
    }

    to {
        -webkit-transform: rotate(-30deg) translateY(-80%);
        transform: rotate(-30deg) translateY(-80%)
    }
}

@keyframes bgMove-15ac1b16 {
    0% {
        -webkit-transform: rotate(-30deg) translateY(0);
        transform: rotate(-30deg) translateY(0)
    }

    to {
        -webkit-transform: rotate(-30deg) translateY(-80%);
        transform: rotate(-30deg) translateY(-80%)
    }
}

@-webkit-keyframes bgMoveReverse-15ac1b16 {
    0% {
        -webkit-transform: rotate(-30deg) translateY(-85%);
        transform: rotate(-30deg) translateY(-85%)
    }

    to {
        -webkit-transform: rotate(-30deg) translateY(5%);
        transform: rotate(-30deg) translateY(5%)
    }
}

@keyframes bgMoveReverse-15ac1b16 {
    0% {
        -webkit-transform: rotate(-30deg) translateY(-85%);
        transform: rotate(-30deg) translateY(-85%)
    }

    to {
        -webkit-transform: rotate(-30deg) translateY(5%);
        transform: rotate(-30deg) translateY(5%)
    }
}

.ad .wrapper[data-v-15ac1b16] {
    position: relative;
    z-index: 4;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-direction: column;
    flex-direction: column;
    color: #4d7bff;
}

.ad .wrapper .icon img[data-v-15ac1b16] {
    width: 50px;
    height: 50px;
    border-radius: 9px
}

.ad .wrapper .toolbar[data-v-15ac1b16] {
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-top: 5px;
    gap: 5px
}

.ad .wrapper .toolbar .info[data-v-15ac1b16] {
    color: #4d7bff;
    gap: 2px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex: 1;
    flex: 1
}

.ad .wrapper .toolbar .info p[data-v-15ac1b16] {
    margin: 0;
    font-size: 12px
}

.ad .wrapper .toolbar .info p[data-v-15ac1b16]:first-child {
    font-size: 16px;
    font-weight: 700
}

.ad .wrapper .toolbar .info p .tag[data-v-15ac1b16] {
    background: #4d7bff;
    color: #e2e8f0;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 5px
}

.ad .wrapper .toolbar .get-more[data-v-15ac1b16] a {
    padding: 4px 15px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: #4d7bff;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 12px;
    opacity: .8;
    text-decoration: none;
    transition: .3s;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -ms-transition: .3s;
    -o-transition: .3s;
}

.ad .wrapper .toolbar .get-more[data-v-15ac1b16] a:hover {
    opacity: 1
}
/**/
.captcha-container {
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* 备用居中方案 */
    width: 400px; /* 调整宽度 */
    max-width: 100%; /* 防止超出父容器 */
    margin: 0 auto; /* 水平居中 */
}

/* 强制覆盖极验默认样式 */
.geetest_holder.geetest_wind {
    width: 100% !important; /* 让验证码填充容器 */
    max-width: 300px; /* 限制最大宽度 */
    margin: 0 auto !important; /* 水平居中 */
}

#payButton.verified {
    background: #28a745;
    border-color: #28a745;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.captcha-status {
    display: none;
    padding: 10px;
    border-radius: 5px;
    background: #e9f5eb;
    border-left: 4px solid #28a745;
    color: #28a745;
    margin-bottom: 10px;
}

.captcha-status.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


@font-face {
            font-family: 'DingLieZhuHaiFont';
            src: url('../zt/dingliezhuhaifont.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
        }

/* 新增渐变背景和动效 */
.popup-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    backdrop-filter: blur(3px); /* 毛玻璃效果 */
}

.popup-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff9de2 0%, #c879ff 100%); /* 粉紫渐变 */
    padding: 25px;
    margin: 0 auto;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(200,121,255,0.3); /* 主题色投影 */
    animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); /* 入场动画 */
    font-family: 'DingLieZhuHaiFont', sans-serif; /* 设置字体 */
}

@keyframes popIn {
    0% {
        transform: translateY(-60%) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.2);
    color: #ffec80;
}

/* 图片悬浮动效 */
.popup-content img {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.popup-content img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 文字样式优化 */
.popup-content p {
    color: #fff;
    margin: 12px 0;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popup-content span[style*="color:#3553ed"] {
    color: #ffec80 !important; /* 强调色改为淡黄色 */
    font-weight: 500;
    letter-spacing: 1px;
}

/* 图标特效 */
.fa-qq, .fa-weixin {
    transition: all 0.3s ease;
    margin: 0 8px;
}

.fa-qq:hover, .fa-weixin:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
}

/* 底部图片装饰 */
.popup-content > img:last-child {
    border: 2px solid rgba(255,255,255,0.3);
    margin-top: 15px;
    border-radius: 15px;
    padding: 5px;
}

.btn {
    padding: 10px 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 110, 196, 0.9), rgba(0, 150, 255, 0.9)); /* 粉蓝渐变 */
    color: #000000; /* 文字颜色改为白色以提高对比度 */
    box-shadow: 0 4px 15px rgba(200, 121, 255, 0.3); /* 保留原来的阴影效果 */
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 110, 196, 0.9), rgba(0, 150, 255, 0.9)); /* 粉蓝渐变 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,121,255,0.4);
}