/* web/static/css/wechat-payment.css */

/* 支付标签页样式 */
.wechat-tab {
    color: #07c160;
}

.wechat-tab.active {
    color: #fff;
    background-color: #07c160;
    border-color: #07c160;
}

.wechat-tab:hover:not(.active) {
    color: #07c160;
    border-color: #e9ecef #e9ecef #07c160;
}

/* 支付容器 */
.wechat-payment-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* 支付状态 */
.wechat-payment-status {
    margin-bottom: 20px;
    min-height: 50px;
}

/* 二维码容器 */
.wechat-qrcode-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.wechat-qrcode {
    margin: 0 auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #e9ecef;
}

.wechat-qrcode-hint {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* 套餐卡片 */
.wechat-package-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.wechat-package-card:hover {
    border-color: #07c160;
    box-shadow: 0 0 0 1px #07c160;
}

.wechat-package-card.selected {
    border-color: #07c160;
    background-color: rgba(7, 193, 96, 0.05);
}

.wechat-package-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.wechat-package-price {
    color: #07c160;
    font-size: 1.25rem;
    font-weight: 700;
}

.wechat-package-desc {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* 支付按钮 */
.btn-wechat {
    background-color: #07c160;
    border-color: #07c160;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-wechat:hover {
    background-color: #05a84c;
    border-color: #059945;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

/* 加载动画 */
.wechat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wechat-loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(7, 193, 96, 0.2);
    border-top-color: #07c160;
    border-radius: 50%;
    animation: wechat-spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes wechat-spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .wechat-payment-container {
        padding: 15px;
    }

    .wechat-package-card {
        padding: 12px;
    }

    .btn-wechat {
        padding: 12px 20px;
        width: 100%;
    }
}
/* �ײͿ�Ƭ��ǿ��ʽ */
.wechat-package-card {
    padding: 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    text-align: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.wechat-package-card:hover {
    border-color: #07c160 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.wechat-package-card.selected {
    border-color: #07c160 !important;
    background: rgba(7, 193, 96, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
}

.wechat-package-name {
    font-weight: 600;
    color: #0b0b0d;
    margin-bottom: 6px;
    font-size: 14px;
}

.wechat-package-chars {
    font-size: 24px;
    font-weight: 700;
    color: #07c160;
    margin-bottom: 4px;
}

.wechat-package-price {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.btn-wechat:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 优惠信息标签 - 醒目显示 */
.wechat-package-promo {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(238, 90, 36, 0.4);
    animation: promo-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes promo-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* 确保卡片有相对定位 */
.wechat-package-card {
    position: relative;
    padding-top: 16px; /* 为顶部标签留出空间 */
}
