/* 支付页面样式 */
.payment-page {
    padding: 2rem 0;
    min-height: 70vh;
}

/* 支付标题样式 */
.payment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.payment-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* 支付信息样式 */
.payment-info {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 商品列表样式 */
.payment-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.item-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.item-total {
    font-weight: bold;
    color: #3498db;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefits-list h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.payment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.payment-methods {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.payment-methods h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.payment-method {
    margin-bottom: 1.5rem;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #3498db;
}

.method-header {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.method-header:hover {
    background: #e9ecef;
}

.method-header label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
}

.method-header input[type="radio"] {
    margin: 0;
}

.method-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.method-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.method-content.active {
    padding: 2rem;
    max-height: 500px;
}

.qr-payment {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.qr-code {
    flex-shrink: 0;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.qr-instructions h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.qr-instructions p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    line-height: 1.6;
}

.payment-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.card-form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.card-icons {
    position: absolute;
    right: 10px;
    top: 35px;
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bank-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.bank-info h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.bank-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: bold;
}

.bank-note {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.payment-summary {
    position: sticky;
    top: 100px;
}

.order-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.payment-breakdown {
    margin-bottom: 2rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.discount {
    color: #28a745;
}

.breakdown-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.payment-timer {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.timer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-weight: 500;
}

.countdown {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-actions .btn-secondary,
.payment-actions .btn-primary {
    flex: 1;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    text-align: center;
}

.badge i {
    font-size: 1.5rem;
}

/* 支付状态模态框 */
.payment-status {
    text-align: center;
    padding: 2rem;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-icon.processing {
    color: #ffc107;
}

.status-icon.success {
    color: #28a745;
}

.status-icon.error {
    color: #dc3545;
}

.payment-status h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.payment-status p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.status-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.qr-code img {
    animation: pulse 2s infinite;
}

.countdown {
    animation: pulse 1s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qr-payment {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .qr-code img {
        width: 150px;
        height: 150px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-actions {
        flex-direction: column;
    }

    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .timer-info {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .payment-methods,
    .summary-card {
        padding: 1rem;
    }

    .method-content.active {
        padding: 1rem;
    }

    .qr-code img {
        width: 120px;
        height: 120px;
    }

    .amount {
        font-size: 1.2rem;
    }

    .badge {
        font-size: 0.8rem;
    }

    .badge i {
        font-size: 1.2rem;
    }
}