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

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

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

.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 800;
}

.header h2 {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.95;
}

form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6B73FF;
    box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.1);
}

/* ===== 修复后的金额输入样式 ===== */
.amount-input {
    position: relative;
    width: 100%;
}

.currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    z-index: 2;
    pointer-events: none; /* 让点击穿透到输入框 */
    background: transparent;
    line-height: 1;
}

.amount-input input {
    width: 100%;
    padding: 15px 15px 15px 40px !important; /* 左边距加大到40px，避免重叠 */
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.amount-input input:focus {
    outline: none;
    border-color: #6B73FF;
    box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.1);
}

/* 隐藏number输入框的上下箭头 */
.amount-input input[type="number"] {
    -moz-appearance: textfield;
}
.amount-input input[type="number"]::-webkit-outer-spin-button,
.amount-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* ===== 修复结束 ===== */

.package-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
}

.package-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.package-info p {
    color: #666;
    font-size: 0.9em;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.terms {
    background: #fff3e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffb74d;
}

.terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms label {
    color: #333;
    font-size: 0.95em;
}

.terms a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.terms a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 13, 255, 0.3);
}

.btn-submit .arrow {
    font-size: 1.4em;
    transition: transform 0.2s;
}

.btn-submit:hover .arrow {
    transform: translateX(5px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer {
    background: #f8f9fa;
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.contact {
    text-align: center;
    margin-bottom: 20px;
}

.contact p {
    color: #666;
    margin-bottom: 5px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.3s;
}

.links a:hover {
    color: #6B73FF;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.8em;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B73FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}