/* 支付测试页面样式 */

.demo-container {
    padding: 6rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-wrapper {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.demo-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
}

.demo-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 订单信息 */
.order-info {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

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

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

.order-label {
    font-weight: 500;
    color: #64748b;
}

.order-value {
    font-weight: 600;
    color: #0f172a;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.step-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.step-item.active .step-number {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.step-item.active .step-text {
    color: #3b82f6;
    font-weight: 600;
}

/* 支付金额 */
.pay-amount {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.amount-label {
    font-size: 1.125rem;
    color: #64748b;
    margin-right: 0.5rem;
}

.amount-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.amount-input {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    border: none;
    background: transparent;
    outline: none;
    text-align: center;
    width: 120px;
    border-bottom: 2px solid #cbd5e1;
}

.amount-input:focus {
    border-bottom-color: #3b82f6;
}

/* 支付方式选择 */
.payment-methods {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.method-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.method-item.click_active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.method-icon {
    margin-bottom: 1rem;
}

.method-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.method-name {
    font-weight: 600;
    color: #0f172a;
}

/* 支付按钮 */
.pay-action {
    text-align: center;
}

.pay-note {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.pay-button {
    width: 100%;
    max-width: 300px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .demo-container {
        padding: 6rem 1.5rem 3rem;
    }

    .demo-wrapper {
        padding: 1.5rem;
    }

    .demo-title {
        font-size: 1.75rem;
    }

    .demo-subtitle {
        font-size: 1rem;
    }

    .order-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .step-indicator {
        margin-bottom: 1.5rem;
    }

    .step-indicator::before {
        top: 1rem;
    }

    .step-text {
        font-size: 0.75rem;
    }

    .pay-amount {
        padding: 1.5rem;
    }

    .amount-value {
        font-size: 1.5rem;
    }

    .amount-input {
        font-size: 1.5rem;
        width: 100px;
    }

    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .method-item {
        padding: 1rem 0.5rem;
    }

    .method-icon img {
        width: 36px;
        height: 36px;
    }

    .method-name {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .demo-title {
        font-size: 1.5rem;
    }

    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .method-item {
        padding: 0.75rem 0.25rem;
    }

    .method-icon img {
        width: 32px;
        height: 32px;
    }

    .method-name {
        font-size: 0.75rem;
    }

    .amount-value {
        font-size: 1.25rem;
    }

    .amount-input {
        font-size: 1.25rem;
        width: 80px;
    }
}