/* 培训课程缴费 - 样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
}

.pay-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Header */
.card-header {
    margin-bottom: 32px;
}

.icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #999;
}

/* Price */
.price-section {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

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

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -1px;
}

.price-desc {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Button */
.btn-pay {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-pay:active {
    transform: translateY(0);
}

/* Safety notice */
.safe-notice {
    margin-top: 16px;
    font-size: 12px;
    color: #bbb;
}

.safe-icon {
    margin-right: 4px;
}

/* Alert */
.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    line-height: 1.6;
}

.alert-error {
    background: #fff2f0;
    color: #e74c3c;
    border: 1px solid #ffccc7;
}

/* Redirect */
.redirect-card {
    padding: 48px 32px;
}

.redirect-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 4px solid #eee;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.redirect-card h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.redirect-amount {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.redirect-hint {
    font-size: 14px;
    color: #999;
}

/* Success */
.success-card {
    padding: 48px 32px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #e8f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
}

.success-card h1 {
    font-size: 24px;
    color: #27ae60;
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

/* Pending */
.pending-card {
    padding: 48px 32px;
}

.pending-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 4px solid #eee;
    border-top-color: #f39c12;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pending-card h1 {
    font-size: 20px;
    color: #f39c12;
    margin-bottom: 8px;
}

.pending-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

/* Result info */
.result-info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.info-row .amount {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

/* Button back */
.btn-back-home {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .pay-card {
        padding: 32px 20px;
    }

    .price-amount {
        font-size: 40px;
    }

    .btn-pay {
        font-size: 16px;
        padding: 14px;
    }
}
