:root {
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --light-color: #f1f5f9;
    --dark-color: #1e293b;
    --success-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #165DFF 0%, #0EA5E9 100%);
    --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8;
    background-image: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.03) 0%, transparent 70%),
                      linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    color: var(--primary-color);
    line-height: 1.6;
    min-height: 100vh;
    background-size: 200% 200%;
    animation: subtleBackgroundShift 20s ease infinite;
}

@keyframes subtleBackgroundShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 科技感增强样式 */

/* 按钮样式增强 */
.next-button, .submit-button, .back-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.next-button::before, .submit-button::before, .back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

.next-button:hover::before, .submit-button:hover::before, .back-button:hover::before {
    left: 100%;
}

/* 科技感卡片样式 */
.tech-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
}

.tech-card:hover::before {
    left: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    background: linear-gradient(135deg, #165DFF 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(15, 118, 230, 0.1);
    background-size: 200% auto;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.product-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    border: 2px solid rgba(15, 118, 230, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(15, 118, 230, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(22, 93, 255, 0.1);
}

.product-card img {
    max-width: 120px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.version-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

select, input[type='radio'] {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

select {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 118, 230, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 科技感表单元素样式 */
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 科技感表单元素样式 */
input[type='text'], input[type='email'], input[type='password'] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

input[type='text']:focus, input[type='email']:focus, input[type='password']:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 30px;
}

.step-indicator .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator .step.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.step-indicator .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 10px);
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.6) 100%);
    transform: translateY(-50%);
    z-index: -1;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid rgba(15, 118, 230, 0.15);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.payment-option:hover {
    background-color: #f9f9f9;
}

.payment-option input[type='radio'] { margin-right: 15px; width: 18px; height: 18px; accent-color: var(--secondary-color); transition: all 0.3s ease; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }

.price {
    margin-left: auto;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.order-summary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.order-summary p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#total-price {
    color: var(--accent-color);
    font-weight: bold;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

button:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.back-button {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.next-button {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.back-button:hover {
    background-color: #dcdde1;
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.submit-button:hover {
    background-color: #2980b9;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    color: #7f8c8d;
    border-top: 1px solid #ddd;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    text-align: center;
    margin: 30px 0;
}

.order-id {
    font-family: monospace;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
}

@media (max-width: 768px) {
    /* 表单输入框样式 */
    input[type='text'], input[type='email'], input[type='password'] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid rgba(15, 118, 230, 0.15);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.85);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    }

    input[type='text']:focus, input[type='email']:focus, input[type='password']:focus {
        outline: none;
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    /* 移动端适配 */
    .product-types {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .payment-option {
        flex-direction: column;
        align-items: flex-start;
    }
    .price {
        margin-left: 0;
        margin-top: 10px;
    }
    .container {
        padding: 15px;
    }

    /* 移动端增强样式 */
    header h1 {
        font-size: 1.8rem;
    }

    .product-card {
        padding: 15px;
    }

    button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
    button {
        width: 100%;
        margin-bottom: 10px;
    }
}