/* ========== 以太坊靓号生成器专用样式 ========== */
/* 路径: /chains/eth/style.css */

/* 全局重置 - 与主站保持一致 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0b121f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
}

/* 主容器 - 1080px宽屏适配 */
.container {
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2d4672;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #4d86cf;
    box-shadow: 0 4px 0 #1f3452;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1f3452;
}

.back-link:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1f3452;
}

/* 链标识 */
.chain-badge {
    background: linear-gradient(145deg, #1f2b42, #151f32);
    border-radius: 40px;
    padding: 25px 30px;
    margin: 25px 0 30px;
    border: 2px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(255,215,0,0.15);
}

.chain-icon {
    width: 80px;
    height: 80px;
    background: #0f1a28;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
}

.chain-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
}

.chain-name {
    color: #ffd700;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255,215,0,0.3);
}

/* 生成器主容器 */
.generator {
    background: linear-gradient(145deg, #1a2538, #0f1a28);
    border-radius: 40px;
    padding: 35px;
    border: 1px solid #2d4d7a;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    margin-bottom: 30px;
}

/* 模式选择卡片 */
.mode-card {
    background: #0f1827;
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #2d4d7a;
}

.mode-title {
    color: #b0c8f0;
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-title span {
    font-size: 28px;
}

/* 普通模式卡片 */
.normal-card {
    background: #1a2538;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #4f9eff;
    box-shadow: 0 10px 25px rgba(79,158,255,0.1);
}

/* 会员模式卡片 */
.premium-card {
    background: #1a2538;
    border-radius: 25px;
    padding: 20px;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 25px rgba(255,215,0,0.1);
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.mode-radio {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.mode-text {
    font-size: 20px;
    font-weight: bold;
}

.mode-text.normal {
    color: #aaccff;
}

.mode-text.premium {
    color: #ffd700;
}

.mode-hint {
    color: #8da4cc;
    font-size: 15px;
    margin-left: 34px;
    margin-top: 5px;
}

/* 普通模式选项网格 */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-left: 34px;
}

.pattern-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f1a28;
    padding: 12px 15px;
    border-radius: 50px;
    color: #a2bbdf;
    cursor: pointer;
    border: 1px solid #2f4160;
    transition: all 0.2s;
    font-size: 14px;
}

.pattern-option:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.pattern-option input {
    accent-color: #4f9eff;
    width: 16px;
    height: 16px;
}

/* 会员规则标签 */
.rules-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    margin-left: 34px;
}

.rule-tag {
    background: #0f1a28;
    padding: 8px 20px;
    border-radius: 50px;
    color: #ffd700;
    font-size: 15px;
    border: 1px solid #ffd700;
    font-weight: bold;
}

.rule-tag span {
    margin-right: 5px;
    font-size: 18px;
}

.rule-hint {
    color: #4caf50;
    font-size: 15px;
    margin-left: 34px;
    margin-top: 10px;
    font-weight: bold;
}

/* 输入组 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    color: #8da4cc;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background: #1a2538;
    border: 2px solid #2d4d7a;
    padding: 16px 20px;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.2);
    outline: none;
}

.hint-text {
    color: #8da4cc;
    font-size: 14px;
    margin: 10px 0;
    padding: 0 10px;
}

/* 批量设置卡片 */
.batch-card {
    background: #1b263b;
    border-radius: 40px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #2d4d7a;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.batch-title {
    color: #b0c8f0;
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-badge {
    color: #4caf50;
    font-size: 14px;
    background: #0f1a28;
    padding: 6px 12px;
    border-radius: 40px;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.batch-field label {
    color: #8da4cc;
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
}

.batch-field input,
.batch-field select {
    width: 100%;
    background: #0f1a28;
    border: 1px solid #314a6b;
    padding: 16px 20px;
    border-radius: 50px;
    color: white;
    font-size: 16px;
}

.batch-tips {
    color: #6e8bb5;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* 预估时间卡片 */
.time-card {
    background: linear-gradient(145deg, #1b263b, #0f1a28);
    padding: 20px 25px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    border: 1px solid #2d4d7a;
}

.time-label {
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-value {
    color: #ffd700;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* 会员挖矿统计 */
.mining-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #2d4d7a;
}

.stat-label {
    color: #8da4cc;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-number {
    color: #ffd700;
    font-size: 32px;
    font-weight: bold;
}

.mining-log {
    background: #0f1a28;
    border-radius: 20px;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: #8da4cc;
    border: 1px solid #2d4d7a;
}

/* 生成按钮 */
.generate-btn {
    width: 100%;
    background: linear-gradient(95deg, #ffd700, #b8860b);
    color: #0f1a2b;
    border: none;
    padding: 20px;
    border-radius: 70px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 0 #8b6910;
    transition: all 0.2s;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn span {
    font-size: 36px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 0 #8b6910;
}

.generate-btn:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 #8b6910;
}

.generate-btn.disabled {
    opacity: 0.5;
    transform: translateY(0);
    box-shadow: 0 10px 0 #8b6910;
    cursor: not-allowed;
}

/* 结果区域 */
.result-card {
    background: #1b263b;
    border-radius: 40px;
    padding: 30px;
    margin-top: 30px;
    border: 2px solid #ffd700;
}

.result-title {
    color: #ffd700;
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    flex: 2;
    background: linear-gradient(95deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 60px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #4caf50;
    box-shadow: 0 6px 0 #1b5e20;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1b5e20;
}

.clear-btn {
    flex: 1;
    background: #6b2d2d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #b04f4f;
    box-shadow: 0 6px 0 #3d1717;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #3d1717;
}

.result-list {
    max-height: 350px;
    overflow-y: auto;
    background: #0b121f;
    border-radius: 25px;
    padding: 15px;
    margin-bottom: 20px;
}

.result-item {
    background: #1a2538;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #2d4d7a;
}

.result-stats {
    color: #6e8bb5;
    font-size: 15px;
    text-align: center;
    padding: 15px;
    background: #0f1a28;
    border-radius: 50px;
}

/* 进度条 */
.progress-container {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2d4d7a;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-info {
    color: #aaccff;
    font-size: 18px;
}

.progress-time {
    color: #8da4cc;
    font-size: 16px;
}

.progress-time span {
    color: #ffd700;
    font-weight: bold;
}

.progress-percent {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    background: #1b263b;
    height: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #4f9eff, #aaccff);
    border-radius: 5px;
    transition: width 0.3s;
}

.stop-btn {
    background: #6b2d2d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #b04f4f;
    margin: 10px auto 0;
    display: block;
}

/* 停止挖矿按钮样式 */
.stop-mining-btn {
    margin-top: 15px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.stop-mining-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.stop-mining-btn:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.cost-info {
    background: #1e3a5f;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #ffd700;
}

.stop-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.stop-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.stop-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}


/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .chain-badge {
        padding: 20px;
    }
    
    .chain-icon {
        width: 60px;
        height: 60px;
    }
    
    .chain-icon img {
        width: 48px;
        height: 48px;
    }
    
    .chain-name {
        font-size: 24px;
    }
    
    .generator {
        padding: 20px;
    }
    
    .mode-title {
        font-size: 18px;
    }
    
    .pattern-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-grid {
        grid-template-columns: 1fr;
    }
    
    .mining-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-value {
        font-size: 24px;
    }
    
    .generate-btn {
        font-size: 22px;
        padding: 15px;
    }
    
    .result-actions {
        flex-direction: column;
    }
}
/* ========== 弹窗样式 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, #1a2538, #0f1a28);
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    border: 2px solid #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.cost-confirm-content {
    border-color: #ffd700;
}

.success-content {
    border-color: #4caf50;
    text-align: center;
    padding: 30px;
}

.insufficient-content {
    border-color: #ff6b6b;
}

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

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 22px;
    font-weight: bold;
}

.modal-icon {
    font-size: 28px;
}

.modal-close {
    background: none;
    border: none;
    color: #8da4cc;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.cost-summary {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #2d4d7a;
}

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

.cost-label {
    color: #8da4cc;
    font-size: 16px;
}

.cost-value {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.cost-value.highlight {
    color: #ffd700;
    font-size: 24px;
}

.cost-value.usdt {
    color: #4caf50;
    font-size: 24px;
}

.cost-rate-info {
    text-align: center;
    margin: 15px 0;
}

.rate-badge {
    background: #1e3a5f;
    color: #ffd700;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid #ffd700;
}

.balance-info {
    background: #1a2538;
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    color: #8da4cc;
    font-size: 15px;
}

.balance-value {
    color: #4caf50;
    font-size: 20px;
    font-weight: bold;
}

.balance-after {
    background: #0f1a28;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8da4cc;
}

.after-value {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #2d4d7a;
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: #2d2d2d;
    color: #8da4cc;
}

.modal-btn.cancel:hover {
    background: #3d3d3d;
    transform: translateY(-2px);
}

.modal-btn.confirm {
    background: linear-gradient(95deg, #ffd700, #b8860b);
    color: #0f1a2b;
    box-shadow: 0 4px 0 #8b6910;
}

.modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8b6910;
}

.modal-btn.recharge {
    background: linear-gradient(95deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 4px 0 #1b5e20;
}

.modal-btn.recharge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1b5e20;
}

/* 成功弹窗样式 */
.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

.success-title {
    color: #4caf50;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-details {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #8da4cc;
}

.success-value {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.success-value.usdt {
    color: #4caf50;
}

.success-message {
    color: #8da4cc;
    margin: 20px 0;
}

.success-btn {
    background: linear-gradient(95deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #1b5e20;
    transition: all 0.2s;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1b5e20;
}

/* 余额不足弹窗 */
.insufficient-icon {
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
}

.insufficient-title {
    color: #ff6b6b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.insufficient-details {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
}

.insufficient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #2d4d7a;
}

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

.need-value {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
}

.current-value {
    color: #8da4cc;
    font-size: 20px;
    font-weight: bold;
}

.diff-value {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
}

.insufficient-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
/* ========== 余额不足弹窗样式 ========== */
.insufficient-content {
    background: linear-gradient(145deg, #1a2538, #0f1a28);
    border-radius: 30px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border: 2px solid #ff6b6b;
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.3);
}

.insufficient-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 15px;
    animation: shake 0.5s ease;
}

.insufficient-title {
    color: #ff6b6b;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.insufficient-details {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2d4d7a;
}

.insufficient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #2d4d7a;
    color: #ffffff; /* 白色文字 */
    font-size: 16px;
}

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

.insufficient-item span:first-child {
    color: #8da4cc; /* 浅蓝色标签 */
    font-weight: 500;
}

.need-value {
    color: #ffd700 !important; /* 金色 - 需要 */
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.current-value {
    color: #4caf50 !important; /* 绿色 - 当前 */
    font-size: 18px;
    font-weight: bold;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.diff-value {
    color: #ff6b6b !important; /* 红色 - 差额 */
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.insufficient-item span:last-child span {
    color: #8da4cc !important; /* USDT小字颜色 */
    font-size: 13px;
    margin-left: 5px;
}

.insufficient-message {
    text-align: center;
    color: #ffd700;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background: #1e3a5f;
    border-radius: 50px;
    border: 1px solid #ffd700;
    font-weight: bold;
}

.insufficient-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


/* ========== 费用确认弹窗样式 ========== */
.cost-confirm-content {
    background: linear-gradient(145deg, #1a2538, #0f1a28);
    border-radius: 30px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    border: 2px solid #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

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

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 22px;
    font-weight: bold;
}

.modal-icon {
    font-size: 28px;
}

.modal-close {
    background: none;
    border: none;
    color: #8da4cc;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.cost-summary {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2d4d7a;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #2d4d7a;
}

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

.cost-label {
    color: #8da4cc;
    font-size: 16px;
    font-weight: 500;
}

.cost-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.cost-value.highlight {
    color: #ffd700;
    font-size: 22px;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.cost-value.usdt {
    color: #4caf50;
    font-size: 22px;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.cost-rate-info {
    text-align: center;
    margin: 20px 0;
}

.rate-badge {
    background: #1e3a5f;
    color: #ffd700;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid #ffd700;
    font-weight: bold;
    display: inline-block;
}

.balance-info {
    background: #0f1a28;
    border-radius: 15px;
    padding: 15px 20px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2d4d7a;
}

.balance-label {
    color: #8da4cc;
    font-size: 15px;
    font-weight: 500;
}

.balance-value {
    color: #4caf50;
    font-size: 20px;
    font-weight: bold;
}

.balance-after {
    background: #0f1a28;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2d4d7a;
}

.balance-after span:first-child {
    color: #8da4cc;
    font-size: 15px;
}

.after-value {
    color: #4caf50;
    font-size: 18px;
    font-weight: bold;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #2d4d7a;
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background: #2d2d2d;
    color: #ffffff;
}

.modal-btn.cancel:hover {
    background: #3d3d3d;
    transform: translateY(-2px);
}

.modal-btn.confirm {
    background: linear-gradient(95deg, #ffd700, #b8860b);
    color: #0f1a2b;
    box-shadow: 0 4px 0 #8b6910;
}

.modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8b6910;
}

.modal-btn.recharge {
    background: linear-gradient(95deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 4px 0 #1b5e20;
}

.modal-btn.recharge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1b5e20;
}

/* ========== 扣费成功弹窗样式 ========== */
.success-content {
    background: linear-gradient(145deg, #1a2538, #0f1a28);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 350px;
    width: 90%;
    border: 2px solid #4caf50;
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.3);
    text-align: center;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

.success-title {
    color: #4caf50;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.success-details {
    background: #0f1a28;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #2d4d7a;
}

.success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #2d4d7a;
    color: #ffffff;
}

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

.success-item span:first-child {
    color: #8da4cc;
    font-size: 15px;
}

.success-value {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.success-value.usdt {
    color: #4caf50;
}

.success-message {
    color: #8da4cc;
    font-size: 15px;
    margin: 20px 0;
}

.success-btn {
    background: linear-gradient(95deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #1b5e20;
    transition: all 0.2s;
    width: 100%;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1b5e20;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* 动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}


/* 动画 */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .cost-value {
        font-size: 18px;
    }
    
    .cost-value.highlight,
    .cost-value.usdt {
        font-size: 20px;
    }
    
    .insufficient-actions {
        flex-direction: column;
    }
}
