/* INDEX支付管理系统样式文件 */

/* 通用样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.module {
    display: none;
}

.module.active {
    display: block;
}

/* 侧边栏样式 */
.list-group-item {
    border: none;
    border-radius: 0;
}

.list-group-item:hover {
    background-color: #e9ecef;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 支付方式卡片样式 */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: #0d6efd;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.payment-icons {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.payment-icon {
    height: 40px;
    margin: 0 5px;
}

.method-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.supported-currencies {
    margin-top: 10px;
}

/* 二维码显示样式 */
.qr-code-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

.qr-code-container.qr-generated {
    border-color: #28a745;
    background-color: #f8fff9;
}

.qr-info {
    margin-top: 15px;
    text-align: center;
}

.payment-methods-info .badge {
    margin: 2px;
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-refunded {
    background-color: #cce7ff;
    color: #004085;
}

/* 信用卡表单样式 */
.card-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.card-form .form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #ced4da;
}

.card-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.card-brand {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #6c757d;
}

.security-notice {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-top: 20px;
}

/* 电子钱包表单样式 */
.wallet-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.payment-logo {
    height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.payment-amount-display {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.amount-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.amount-value {
    font-size: 32px;
    font-weight: bold;
    color: #212529;
}

.payment-notice {
    background-color: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* 加载状态样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* 按钮样式增强 */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式增强 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px;
}

.card-body {
    padding: 25px;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
}

.table-responsive {
    border-radius: 8px;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .col-md-3 {
        margin-bottom: 15px;
    }
    
    .amount-value {
        font-size: 24px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* 工具提示样式 */
.tooltip {
    font-size: 14px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
} 