/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 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: 500px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 30px 28px 40px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.alipay-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    background: #1677ff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.header p {
    color: #6b7280;
    font-size: 14px;
}

.amount-input {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    transition: all 0.2s;
    background: #f9fafb;
}

.input-group:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
    background: white;
}

.currency {
    font-size: 22px;
    font-weight: 500;
    padding: 12px 0 12px 18px;
    color: #6b7280;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 18px 14px 8px;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    color: #1f2937;
}

.input-group input::placeholder {
    color: #cbd5e1;
    font-weight: normal;
    font-size: 18px;
}

.product-info {
    background: #f3f4f6;
    padding: 14px 18px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.product-info label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.product-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.pay-btn {
    width: 100%;
    background: #1677ff;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 14px rgba(22, 119, 255, 0.3);
}

.pay-btn:hover {
    background: #0958d9;
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(22, 119, 255, 0.2);
}

.footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #9ca3af;
}

/* 支付成功页面 */
.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    font-size: 52px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.success-card h1 {
    color: #10b981;
    margin-bottom: 20px;
}

.order-detail {
    background: #f9fafb;
    border-radius: 24px;
    padding: 18px;
    margin: 20px 0;
    text-align: left;
}

.order-detail p {
    margin: 12px 0;
    font-size: 15px;
    color: #374151;
    word-break: break-all;
}

.order-detail .money {
    font-size: 20px;
    font-weight: bold;
    color: #1677ff;
}

.back-btn {
    display: inline-block;
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #d1d5db;
}

@media (max-width: 480px) {
    .card {
        padding: 24px 20px 32px;
    }
    h1 {
        font-size: 22px;
    }
    .input-group input {
        font-size: 18px;
    }
}