/* 承诺金功能样式 */

/* 用户信息卡片中的承诺金行 */
.commitment-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.commitment-info .commitment-label {
    font-size: 13px;
    color: #cfd6e4;
}
.commitment-info .commitment-value {
    font-size: 13px;
    color: #ffc832;
    font-weight: 700;
}

/* 承诺金弹窗 */
.commitment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.commitment-overlay.active {
    display: flex;
}

.commitment-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 90%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
}

.commitment-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.commitment-modal-body {
    padding: 20px;
}

/* 承诺金说明文字 */
.commitment-notice-box {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.commitment-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 8px;
}

.commitment-notice-text {
    font-size: 12px;
    color: #8892b0;
    line-height: 1.7;
}

/* 金额信息区域 */
.commitment-amount-box {
    background: rgba(255, 200, 50, 0.08);
    border: 1px solid rgba(255, 200, 50, 0.2);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.commitment-amount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #8892b0;
}

.commitment-amount-row:last-child {
    margin-bottom: 0;
}

.commitment-amount-row .amount {
    color: #ffc832;
    font-weight: 600;
}

.commitment-amount-row .amount-due {
    color: #ff6464;
    font-weight: 700;
    font-size: 15px;
}

/* 分隔线 */
.commitment-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

/* 承诺内容 */
.commitment-section-title {
    font-size: 13px;
    color: #cfd6e4;
    margin-bottom: 10px;
    font-weight: 600;
}

.commitment-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #cfd6e4;
    line-height: 1.5;
}

.commitment-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* 协议文本框 */
.commitment-agreement-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 12px;
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.commitment-agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cfd6e4;
    line-height: 1.5;
}

.commitment-agreement-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* 扣除信息 */
.commitment-deduct-box {
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.2);
    padding: 10px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.commitment-deduct-box .deduct-label {
    font-size: 12px;
    color: #8892b0;
}

.commitment-deduct-box .deduct-amount {
    font-size: 20px;
    font-weight: 700;
    color: #ff6464;
    margin-top: 4px;
}

.commitment-deduct-box .deduct-balance {
    font-size: 12px;
    color: #8892b0;
    margin-top: 4px;
}

/* 余额不足警告 */
.commitment-amount-row .amount-insufficient {
    color: #ff6464;
    font-weight: 700;
}

.commitment-balance-warning {
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
}

.commitment-balance-warning .warning-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff6464;
    margin-bottom: 6px;
}

.commitment-balance-warning .warning-text {
    font-size: 12px;
    color: #ffb0b0;
    line-height: 1.6;
    margin-bottom: 2px;
}

/* 按钮区域 - 矩形无圆角 */
.commitment-btn-row {
    display: flex;
    gap: 0;
    margin-top: 16px;
}

.commitment-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

.commitment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.commitment-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #8892b0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.commitment-btn-confirm {
    background: #00d4ff;
    color: #0f0f23;
    font-weight: 600;
}

.commitment-btn-confirm:disabled {
    background: rgba(0, 212, 255, 0.3);
    color: rgba(15, 15, 35, 0.5);
}

.commitment-btn-danger {
    background: #ff6464;
    color: #fff;
    font-weight: 600;
}

/* 清退弹窗中的提示列表 */
.commitment-info-list {
    margin-bottom: 16px;
}

.commitment-info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #cfd6e4;
    line-height: 1.5;
}

.commitment-info-list-item .num {
    color: #ffc832;
    font-weight: 600;
    flex-shrink: 0;
}

/* 清退失败 - 算力机列表 */
.commitment-server-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    margin: 10px 0;
    max-height: 150px;
    overflow-y: auto;
}

.commitment-server-list-item {
    font-size: 12px;
    color: #8892b0;
    margin-bottom: 4px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.commitment-server-list-item:last-child {
    border-bottom: none;
}

/* 清退成功 - 锁定日期提示 */
.commitment-lock-warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 10px 16px;
    margin: 10px 0;
    text-align: center;
}

.commitment-lock-warning .lock-date {
    font-size: 15px;
    font-weight: 700;
    color: #ffc107;
}

.commitment-lock-warning .lock-hint {
    font-size: 12px;
    color: #8892b0;
    margin-top: 4px;
}

/* 单按钮居中 */
.commitment-btn-row.single {
    justify-content: center;
}

.commitment-btn-row.single .commitment-btn {
    flex: none;
    width: 100%;
}
