/* 添加到你现有的 style 标签中 */

#card-form {
    display: none; /* 默认隐藏 */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#card-form h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.card-fields-container {
    margin-bottom: 1.5rem;
}

#card-number-field-container {
    margin: 1rem 0;
    max-width: 400px;
}

.billing-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    color: #666;
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.1);
}

.submit-button {
    background: #2ecc71;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.submit-button:hover {
    background: #27ae60;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #card-form {
        padding: 1rem;
        margin: 1rem;
    }

    .billing-address-grid {
        grid-template-columns: 1fr;
    }
}

/* 显示动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}