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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(0.5deg); }
    66% { transform: translateY(10px) rotate(-0.5deg); }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 统一的页面进入动画 */
.container > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.2); }
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
}

.subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-bottom: 30px;
    position: relative;
}

/* 统一的主体卡片样式 */
.welcome-card,
.purchase-card,
.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* 充值页面内容样式 */
.step-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.purchase-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.purchase-desc {
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    font-size: 16px;
}

.welcome-card h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.welcome-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* 卡片信息显示 */
.card-info p {
    margin: 0;
    font-size: 14px;
    color: #1e40af;
    position: relative;
    z-index: 1;
}

.card-info span {
    font-weight: 600;
    color: #1d4ed8;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 20px;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.welcome-card::before,
.purchase-card::before,
.content-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: left 0.8s ease;
}

.welcome-card:hover::before,
.purchase-card:hover::before,
.content-card:hover::before {
    left: 100%;
}

.welcome-card:hover,
.purchase-card:hover,
.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e5e7eb, #d1d5db, #e5e7eb);
    border-radius: 2px;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.step-item span {
    font-size: 12px;
    color: #999;
    text-align: center;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.step-item.active .step-circle::before {
    width: 60px;
    height: 60px;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(79, 70, 229, 0.6); }
}

.step-item.active span {
    color: #4f46e5;
    font-weight: 500;
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: bounce-in 0.6s ease-out;
}

@keyframes bounce-in {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.step-item.completed span {
    color: #10b981;
}

/* 卡密信息显示 */
.card-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.card-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* 步骤区域 */
.step-section {
    margin-bottom: 30px;
}

.step-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

/* 登录提示 */
.login-tip {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    position: relative;
}

/* 按钮统一样式和动画 */
.btn-primary, .btn-secondary, .btn-success, .btn-outline, .btn-choice, .btn-start {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary, .btn-success, .btn-start {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4f46e5;
    color: #4f46e5;
    backdrop-filter: blur(10px);
}

/* 按钮悬停效果 */
.btn-primary:hover:not(:disabled),
.btn-success:hover:not(:disabled),
.btn-start:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

/* 按钮点击效果 */
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-outline:active,
.btn-start:active {
    transform: translateY(1px);
}

/* 按钮波纹效果 */
.btn-primary::before,
.btn-secondary::before,
.btn-success::before,
.btn-start::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-primary:active::before,
.btn-secondary:active::before,
.btn-success:active::before,
.btn-start:active::before {
    width: 300px;
    height: 300px;
}

/* 按钮禁用状态 */
.btn-primary:disabled, 
.btn-secondary:disabled, 
.btn-success:disabled, 
.btn-outline:disabled,
.btn-start:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 输入框样式 */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* 复选框动画 */
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
    animation: checkbox-bounce 0.3s ease;
}

@keyframes checkbox-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 消息提示动画 */
.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.show {
    opacity: 1;
    transform: translateY(0);
    animation: slide-in 0.4s ease-out;
}

@keyframes slide-in {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* 加载动画增强 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(229, 231, 235, 0.3);
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse-size 2s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

@keyframes pulse-size {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

/* 主页特殊样式 */
.welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float-icon 3s ease-in-out infinite;
}

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

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 20px;
}

.feature-item span:last-child {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 购买页面特殊样式 */
.choice-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.choice-option {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.choice-option:hover {
    border-color: #4f46e5;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.btn-choice {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-option h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.choice-option p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.choice-icon {
    font-size: 40px;
    margin-bottom: 16px;
    animation: bounce-gentle 2s ease-in-out infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 0 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .welcome-card,
    .purchase-card,
    .content-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .step-indicator {
        margin-bottom: 30px;
        padding: 20px 15px;
    }
    
    .step-indicator::before {
        left: 45px;
        right: 45px;
        top: 40px;
    }
    
    .step-item span {
        font-size: 11px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .features-list,
    .choice-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .welcome-icon {
        font-size: 48px;
    }
    
    .choice-option {
        padding: 24px 16px;
    }
    
    .button-group-confirm {
        flex-direction: column;
    }
    
    .btn-back,
    .button-group-confirm .btn-success {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .value {
        text-align: left;
    }
    
    .login-tip {
        margin-top: 12px;
        padding: 12px;
    }
    
    .tip-text {
        font-size: 13px;
    }
}

/* 其他保留的样式... */
.tip-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.tip-text code {
    background: #fed7aa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #9a3412;
}

.button-group-confirm {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-back {
    flex: 1;
    max-width: 25%;
    padding: 14px 16px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
}

.btn-back:hover:not(:disabled) {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
}

.button-group-confirm .btn-success {
    flex: 3;
    max-width: 75%;
}

.confirm-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid #a7f3d0;
}

.label {
    font-weight: 500;
    color: #064e3b;
}

.value {
    color: #047857;
    font-weight: 600;
    word-break: break-all;
    text-align: right;
}

.checkbox-section {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.back-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back-home:hover {
    border-color: #d1d5db;
    background: rgba(249, 250, 251, 0.95);
    transform: translateY(-1px);
}

.price-info {
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    margin-right: 8px;
}

.original-price {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 8px;
}

.discount {
    font-size: 12px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.purchase-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.purchase-notice h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.purchase-notice ul {
    margin: 0;
    padding-left: 20px;
}

.purchase-notice li {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 8px;
    line-height: 1.5;
}

.message.success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-section {
    text-align: center;
    padding: 20px 0;
}

.loading-state {
    padding: 40px 0;
}

.loading-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.loading-state p {
    color: #666;
}

.result-state {
    padding: 40px 0;
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.result-state.success .result-icon {
    background: #d1fae5;
    color: #10b981;
}

.result-state.success .result-icon::before {
    content: '✓';
}

.result-state.error .result-icon {
    background: #fee2e2;
    color: #ef4444;
}

.result-state.error .result-icon::before {
    content: '✗';
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-desc {
    color: #666;
    font-size: 14px;
} 