/* 卡密兑换页面样式 */

/* 主内容区域 */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

.page-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

/* 表单容器 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 15px 15px 30px rgba(166, 180, 200, 0.15), -15px -15px 30px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 20px 20px 40px rgba(166, 180, 200, 0.2), -20px -20px 40px rgba(255, 255, 255, 0.9);
}

/* 结果容器 */
.result-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

/* 表单组 */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    background-color: white;
    box-shadow: inset 5px 5px 10px rgba(166, 180, 200, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: inset 3px 3px 6px rgba(166, 180, 200, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-size: 1rem;
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 5px 5px 15px rgba(59, 130, 246, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 20px rgba(59, 130, 246, 0.4), -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 3px 3px 10px rgba(59, 130, 246, 0.3), -3px -3px 10px rgba(255, 255, 255, 0.8);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-group input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
}
