/* 费用中心样式 */

.cost-center-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== 支付弹窗样式 ==================== */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.payment-modal.show {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 8px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.payment-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px 16px;
    position: relative;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.payment-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0;
    line-height: 1;
}

.payment-close-btn:hover {
    background: transparent;
    color: #666;
}

.payment-modal-body {
    padding: 16px 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-amount {
    margin-bottom: 24px;
}

.payment-amount .amount-label {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}

.payment-amount .amount-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e5fdb;
}

.payment-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.payment-qrcode #paymentQRCode {
    width: 200px;
    height: 200px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-qrcode #paymentQRCode canvas,
.payment-qrcode #paymentQRCode img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0 auto;
}

.payment-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.payment-method-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-method-logo img {
    height: 32px;
    object-fit: contain;
}

.payment-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 24px 20px;
    justify-content: flex-end;
}

.payment-btn-back,
.payment-btn-confirm {
    height: 32px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-btn-back {
    background: white;
    color: #666;
    border: 1px solid #d9d9d9;
}

.payment-btn-back:hover {
    color: #1e5fdb;
    border-color: #1e5fdb;
}

.payment-btn-confirm {
    background: #1e5fdb;
    color: white;
}

.payment-btn-confirm:hover {
    background: #1651c5;
}

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #1e5fdb;
}

.tab-btn.active {
    color: #1e5fdb;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e5fdb;
}

/* 余额和套餐区域 */
.balance-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 32px;
}

.balance-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.balance-header h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.balance-card .balance-amount {
    margin-bottom: 20px;
}

.amount-value {
    font-size: 48px;
    font-weight: 600;
    color: #333;
}

.amount-unit {
    font-size: 16px;
    color: #999;
    margin-left: 8px;
}

.package-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.package-type {
    margin-bottom: 8px;
}

.type-label {
    display: inline-block;
    padding: 4px 12px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
}

.package-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.info-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: white;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.info-btn:hover {
    border-color: #1e5fdb;
    color: #1e5fdb;
}

/* 账单详情 */
.account-detail {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-header {
    margin-bottom: 20px;
}

.detail-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.detail-content {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-size: 14px;
    color: #666;
    margin-right: 16px;
}

.detail-value {
    font-size: 14px;
    color: #333;
}

.detail-value .num-value {
    color: #1e5fdb;
    font-weight: 600;
    margin: 0 4px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

/* 交易记录 */
.transaction-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.transaction-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table thead {
    background: #fafafa;
}

.transaction-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-table td {
    padding: 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.empty-data {
    text-align: center !important;
    color: #999 !important;
    padding: 40px !important;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    gap: 30px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.page-size-select {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    color: #666;
}

.page-size-select:hover {
    color: #1e5fdb;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.page-btn:hover:not(:disabled) {
    color: #1e5fdb;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.page-jump {
    font-size: 14px;
    color: #666;
}

.page-input {
    width: 50px;
    height: 30px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    line-height: 28px;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-input:focus {
    border-color: #1e5fdb;
}

/* 套餐弹窗 */
.package-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.package-option {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.package-option:hover {
    border-color: #1e5fdb;
    box-shadow: 0 4px 12px rgba(30, 95, 219, 0.15);
    transform: translateY(-4px);
}

.package-option.highlight {
    border-color: #1e5fdb;
    background: linear-gradient(180deg, #f0f5ff 0%, white 30%);
}

.recommend-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #1e5fdb 0%, #0d3e9e 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
}

.package-option h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 16px 0;
}

.package-price {
    font-size: 32px;
    font-weight: 600;
    color: #1e5fdb;
    margin: 0 0 20px 0;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.package-features li::before {
    content: '✓';
    color: #52c41a;
    margin-right: 8px;
    font-weight: bold;
}

/* 响应式 */
@media (max-width: 1024px) {
    .balance-section {
        grid-template-columns: 1fr;
    }
    
    .package-options {
        grid-template-columns: 1fr;
    }
}


/* 顶部操作栏 */
.cost-top-bar {
    background: white;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cost-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-display {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 16px;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

.cost-actions .balance-display .balance-label {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1 !important;
}

.cost-actions .balance-display .balance-amount {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0.5px !important;
}

.cost-actions .balance-display .balance-number {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1 !important;
}

.btn-default {
    background: white;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    color: #1e5fdb;
    border-color: #1e5fdb;
}

/* 按钮基础样式 */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1e5fdb 0%, #0d3e9e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 95, 219, 0.3);
}

.btn-secondary {
    background: #f5f7fa;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-secondary:hover {
    background: #e8f0fe;
    color: #1e5fdb;
    border-color: #1e5fdb;
}

/* 账单卡片（合并版） */
.bill-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    max-width: 800px;
}

.bill-left {
    flex: 1;
    padding-right: 20px;
    border-right: 1px solid #f0f0f0;
}

.bill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bill-right {
    flex: 1.5;
}

.bill-label {
    font-size: 14px;
    color: #666;
}

.bill-right .bill-label {
    margin-bottom: 12px;
}

.bill-value {
    margin-bottom: 16px;
}

.bill-value .amount-value {
    font-size: 36px;
    font-weight: 600;
    color: #1e5fdb;
}

.bill-value .amount-unit {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.package-tag {
    display: inline-block;
}

.bill-detail {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
}

.bill-action {
    display: flex;
    gap: 12px;
}

/* 温馨提示区域 */
.bill-tips {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tips-icon {
    font-size: 18px;
}

.tips-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.tips-content {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.tips-content p {
    margin: 8px 0;
}

/* 调整账单卡片布局为三列 */
.bill-card {
    display: flex;
    gap: 0;
    max-width: 100%;
}

.bill-card .bill-left,
.bill-card .bill-right,
.bill-card .bill-tips {
    flex: 1;
    padding: 0 20px;
}

.bill-card .bill-left {
    border-right: 1px solid #f0f0f0;
}

.bill-card .bill-right {
    border-right: 1px solid #f0f0f0;
}

/* ==================== 在线充值弹窗样式 ==================== */

.recharge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.recharge-modal.show {
    display: flex;
}

.recharge-modal-content {
    background: white;
    border-radius: 8px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.recharge-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recharge-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.recharge-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.recharge-close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.recharge-modal-body {
    padding: 24px 20px;
}

.recharge-section {
    margin-bottom: 20px;
}

.recharge-section:last-child {
    margin-bottom: 0;
}

.recharge-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.recharge-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.recharge-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.recharge-input[readonly] {
    background-color: #f7fafc;
    cursor: not-allowed;
    color: #333;
}

.recharge-input[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

.recharge-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* 充值档位选择 */
.recharge-amounts {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.recharge-amount-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.recharge-amount-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.recharge-amount-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.recharge-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.recharge-payment-btn {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.recharge-payment-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.recharge-payment-btn.active {
    border-color: #667eea;
    background: #eef2ff;
    position: relative;
}

/* 旧版伪元素勾勾 - 已禁用，使用V2版本的 .payment-check 元素 */
.recharge-payment-btn.active::after {
    content: none !important;
    display: none !important;
}

.recharge-payment-logo {
    width: 120px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.recharge-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.recharge-btn-cancel,
.recharge-btn-submit {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
}

.recharge-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.recharge-btn-cancel:hover {
    background: #e0e0e0;
}

.recharge-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.recharge-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.recharge-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 自定义对话框 ==================== */

/* 确认对话框 */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(2px);
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dialog-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.custom-dialog-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
    max-height: 400px;
    overflow-y: auto;
}

.custom-dialog-body p {
    margin: 0 0 12px;
}

.custom-dialog-body p:last-child {
    margin-bottom: 0;
}


.custom-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.dialog-btn-cancel {
    background: #f7fafc;
    color: #4a5568;
}

.dialog-btn-cancel:hover {
    background: #e2e8f0;
}

.dialog-btn-confirm {
    background: #1e5fdb;
    color: white;
}

.dialog-btn-confirm:hover {
    background: #1651c4;
    box-shadow: 0 2px 8px rgba(30, 95, 219, 0.3);
}

/* 提示对话框 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(2px);
}

.custom-alert {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: dialogSlideIn 0.3s ease-out;
}

.custom-alert-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-alert-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.custom-alert-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
}

.custom-alert-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.alert-btn {
    padding: 8px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.alert-btn-confirm {
    background: #1e5fdb;
    color: white;
}

.alert-btn-confirm:hover {
    background: #1651c4;
    box-shadow: 0 2px 8px rgba(30, 95, 219, 0.3);
}


/* 禁用按钮样式 */
.btn.disabled-btn,
.btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    position: relative;
}

.btn.disabled-btn:hover,
.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #1e5fdb !important;
}

.btn.disabled-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.btn.disabled-btn:hover::after {
    opacity: 1;
}

/* ============================================
   充值弹窗 V2 风格样式
   ============================================ */

/* 标题组样式 */
.recharge-title-group {
    flex: 1;
}

.recharge-title-group h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.recharge-desc {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

/* V2 头部 */
.recharge-header-v2 {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border-bottom: 2px solid #e2e8f0;
}

.recharge-close-v2 {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recharge-close-v2:hover {
    background: #fee;
    border-color: #fc8181;
    color: #e53e3e;
}

/* V2 标签样式 */
.recharge-label-v2 {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
}

.label-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* V2 快捷金额网格布局 - 一排5个 */
.recharge-amounts-v2 {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.recharge-amount-v2 {
    flex: 1;
    flex-direction: column;
    padding: 8px 6px;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.recharge-amount-v2 .amount-num {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.recharge-amount-v2 .amount-unit {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

.recharge-amount-v2:hover {
    border-color: #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.2);
}

.recharge-amount-v2.active {
    border-color: #3182ce;
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.recharge-amount-v2.active .amount-num,
.recharge-amount-v2.active .amount-unit {
    color: #fff;
}

/* V2 输入框组 */
.recharge-input-group {
    position: relative;
    margin-top: 10px;
}

.input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #3182ce;
    pointer-events: none;
    z-index: 1;
}

.recharge-input-v2 {
    padding-left: 32px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    position: relative;
    z-index: 0;
}

.recharge-input-v2:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* V2 提示样式 */
.recharge-tip-v2 {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fefcbf 0%, #faf089 100%);
    border-radius: 6px;
    border-left: 3px solid #d69e2e;
    font-size: 12px;
    color: #744210;
}

/* V2 支付方式卡片 */
.recharge-payment-v2 {
    margin-top: 10px;
}

.recharge-payment-card {
    position: relative;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.recharge-payment-card .payment-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.recharge-payment-card .payment-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.recharge-payment-card:hover {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    transform: translateY(-2px);
}

.recharge-payment-card.active {
    border-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.25);
}

.recharge-payment-card.active .payment-check {
    display: flex !important;
}

.recharge-payment-card.active .payment-text {
    color: #22543d;
}

/* V2 底部按钮 */
.recharge-footer-v2 {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.recharge-btn-v2-cancel,
.recharge-btn-v2-submit {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.recharge-btn-v2-cancel {
    background: #fff;
    border: 2px solid #cbd5e0;
    color: #4a5568;
}

.recharge-btn-v2-cancel:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recharge-btn-v2-submit {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.recharge-btn-v2-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.5);
}

/* ============================================
   开通套餐弹窗 V2 简约风格
   ============================================ */

/* 弹窗主体 - 更紧凑 */
.package-modal-v2 {
    width: 680px;
    max-height: none;
    overflow: visible;
}

/* 头部样式 */
.package-header-v2 {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.package-title-wrapper h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 600;
    color: white;
}

.package-subtitle {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.package-close-v2 {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.package-close-v2:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 主体内容 */
.package-body-v2 {
    padding: 16px 20px;
}

/* 区块标签 */
.section-label-v2 {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

/* 套餐网格 - 2行3列 */
.package-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

/* 套餐卡片 - 更紧凑 */
.package-grid-v2 .package-card {
    padding: 12px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.package-grid-v2 .package-card:hover {
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.package-grid-v2 .package-card.selected {
    border-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.package-grid-v2 .package-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.package-grid-v2 .package-specs {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}

.package-grid-v2 .package-price {
    font-size: 16px;
    font-weight: 700;
    color: #3182ce;
}

/* 开通周期区域 */
.duration-section-v2 {
    margin-bottom: 16px;
}

.duration-grid-v2 {
    display: flex;
    gap: 8px;
}

.duration-card-v2 {
    flex: 1;
    position: relative;
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.duration-card-v2:hover {
    border-color: #48bb78;
    transform: translateY(-2px);
}

.duration-card-v2.active {
    border-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.25);
}

.duration-card-v2 .duration-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.duration-card-v2.active .duration-title {
    color: #22543d;
}

.duration-card-v2 .duration-price {
    font-size: 14px;
    font-weight: 700;
    color: #38a169;
}

.duration-card-v2.active .duration-price {
    color: #22543d;
}

.duration-card-v2 .duration-badge {
    position: absolute;
    top: -8px;
    right: 6px;
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

/* 底部区域 - 支付和订单信息并排 */
.bottom-section-v2 {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.payment-section-v2 {
    flex: 1;
}

.payment-grid-v2 {
    display: flex;
}

.payment-btn-v2 {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.payment-btn-v2:hover {
    border-color: #3182ce;
}

.payment-btn-v2.active {
    border-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.payment-icon-v2 {
    font-size: 24px;
}

.payment-btn-v2 .payment-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.balance-text-v2 {
    font-size: 15px;
    font-weight: 700;
    color: #3182ce;
}

/* 订单信息 */
.order-info-v2 {
    flex: 1;
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-info-v2 .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info-v2 .order-label {
    font-size: 12px;
    color: #718096;
}

.order-info-v2 .order-value {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

/* 底部栏 */
.package-footer-v2 {
    background: #f7fafc;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-amount-v2 {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-amount-v2 .amount-label {
    font-size: 13px;
    color: #4a5568;
}

.amount-value-v2 {
    font-size: 20px;
    font-weight: 700;
    color: #c05621;
}

/* 底部按钮 */
.footer-buttons-v2 {
    display: flex;
    gap: 10px;
}

.btn-cancel-v2,
.btn-confirm-v2 {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-v2 {
    background: white;
    border: 1px solid #cbd5e0;
    color: #4a5568;
}

.btn-cancel-v2:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.btn-confirm-v2 {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.btn-confirm-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .package-modal-v2 {
        width: 95%;
    }
    
    .package-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .duration-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-section-v2 {
        flex-direction: column;
    }
}

/* ==================== 全新充值弹窗样式 - 现代渐变设计 ==================== */

.recharge-modern {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: 520px;
    max-width: 95%;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: rechargeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rechargeSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 装饰性背景圆圈 */
.recharge-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
}

.recharge-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.recharge-circle-1 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -30px;
    animation-delay: 0s;
}

.recharge-circle-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -20px;
    animation-delay: 2s;
}

.recharge-circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: -10px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, 10px) scale(1.05);
    }
}

/* 头部样式 */
.recharge-header-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px 28px;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.recharge-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recharge-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    font-size: 28px;
    line-height: 1;
}

.recharge-title-group h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.recharge-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #718096;
    font-weight: 400;
}

.recharge-close-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f7fafc;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #718096;
    font-size: 24px;
    line-height: 1;
}

.recharge-close-modern:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: rotate(90deg);
}

/* 主体内容 */
.recharge-body-modern {
    position: relative;
    background: white;
    padding: 28px;
}

/* 卡片样式 */
.recharge-card {
    background: #f7fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.recharge-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recharge-card:last-child {
    margin-bottom: 0;
}

.recharge-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.recharge-card-icon {
    font-size: 20px;
    line-height: 1;
}

.recharge-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.recharge-required {
    color: #f56565;
    font-size: 14px;
    margin-left: 2px;
}

/* 输入框样式 */
.recharge-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.recharge-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    z-index: 1;
}

.recharge-input-modern {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    background: white;
    transition: all 0.3s;
    box-sizing: border-box;
}

.recharge-input-modern:focus {
    outline: none;
    border-color: #667eea;
    background: #fafbff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.recharge-input-modern::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* 金额范围提示 */
.recharge-range-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-bottom: 16px;
}

/* 快捷金额按钮 */
.recharge-quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.recharge-quick-btn {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recharge-quick-btn:hover {
    border-color: #667eea;
    background: #fafbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.recharge-quick-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.quick-amount {
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

.quick-unit {
    font-size: 11px;
    color: inherit;
    opacity: 0.8;
}

.recharge-quick-btn.active .quick-amount,
.recharge-quick-btn.active .quick-unit {
    color: white;
}

/* 支付方式 */
.recharge-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recharge-payment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recharge-payment-item:hover {
    border-color: #cbd5e0;
    background: #fafbff;
    transform: translateX(4px);
}

.recharge-payment-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.payment-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.payment-icon-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.payment-desc {
    font-size: 12px;
    color: #718096;
}

.payment-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    color: transparent;
}

.recharge-payment-item.active .payment-check {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

/* 底部按钮 */
.recharge-footer-modern {
    position: relative;
    background: white;
    padding: 20px 28px 28px 28px;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
}

.recharge-btn-modern {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.recharge-btn-modern:hover {
    transform: translateY(-2px);
}

.recharge-btn-modern.recharge-btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.recharge-btn-modern.recharge-btn-cancel:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.recharge-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.recharge-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.recharge-btn-primary:hover::before {
    left: 100%;
}

.recharge-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
}

.recharge-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .recharge-modern {
        width: 95%;
        border-radius: 16px;
    }
    
    .recharge-header-modern {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .recharge-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .recharge-title-group h3 {
        font-size: 18px;
    }
    
    .recharge-body-modern {
        padding: 20px;
    }
    
    .recharge-quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recharge-footer-modern {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
    }
    
    .recharge-btn-modern {
        width: 100%;
    }
}
