/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动态渐变背景 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #4facfe 0%, #00f2fe 25%, #43e9f7 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 动态波浪效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.container {
    max-width: 500px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: white;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 头部光效 */
.header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.content {
    padding: 40px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: block;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.radio-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.radio-option label > * {
    position: relative;
    z-index: 1;
}

.radio-option input[type="radio"]:checked + label {
    color: white;
    border-color: #4facfe;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.radio-option input[type="radio"]:checked + label::before {
    opacity: 1;
}

.radio-option label:hover {
    border-color: #4facfe;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.2);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.5);
    background-position: right center;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 30px rgba(108, 117, 125, 0.4);
}

/* 二维码容器 */
.qrcode-container {
    text-align: center;
    padding: 30px;
}

.qrcode-box {
    display: inline-block;
    padding: 25px;
    background: white;
    border: 3px solid #4facfe;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(79, 172, 254, 0.3);
    }
}

#qrcode {
    margin: 0 auto;
}

.qrcode-tips {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.qrcode-tips .icon {
    font-size: 48px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 订单信息 */
.order-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #bae6fd;
    transition: all 0.3s ease;
}

.order-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
}

.order-info h3 {
    color: #0369a1;
    margin-bottom: 15px;
    font-size: 18px;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.order-info-item:hover {
    padding-left: 10px;
    background: rgba(186, 230, 253, 0.3);
    border-radius: 6px;
}

.order-info-item:last-child {
    border-bottom: none;
}

.order-info-label {
    color: #0369a1;
    font-weight: 500;
}

.order-info-value {
    color: #0c4a6e;
    font-weight: 600;
}

.order-info-value.amount {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
}

/* 支付状态 */
.status-box {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-out;
}

.status-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: inline-block;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-icon.success {
    color: #52c41a;
}

.status-icon.error {
    color: #f5222d;
}

.status-icon.pending {
    color: #faad14;
}

.status-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.status-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 倒计时 */
.countdown {
    font-size: 18px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-top: 15px;
    animation: pulse 1s ease-in-out infinite;
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.2);
}

/* 链接动画 */
a {
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* 表格样式增强 */
table {
    position: relative;
}

table tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.1);
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 20px auto;
        border-radius: 15px;
    }
    
    .content {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f9ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}
