/* 像素蛋糕充值系统 - 前端样式 */

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

/* 防止Vue加载时闪烁 */
[v-cloak] {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.notice {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    line-height: 1.6;
}

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

.quick-links {
    margin-top: 15px;
    text-align: center;
}

.link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 步骤指示器 */
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-title {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.step.active .step-title {
    color: #667eea;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.step-line.active {
    background: #667eea;
}

/* 表单区域 */
.form-section {
    animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-code-group input {
    flex: 1;
    font-size: 18px;
    padding: 16px 20px;
    letter-spacing: 2px;
    font-weight: 600;
    width: 300px; /* 新增：固定宽度（可根据需求修改为 350px、400px 等） */
    min-width: 280px; /* 可选：设置最小宽度，防止窗口缩小后宽度过窄 */
    box-sizing: border-box; /* 关键：保证 padding 不撑大实际宽度，宽度包含内边距和边框 */
}

/* 按钮样式 */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 20px;
    white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    background: transparent;
    color: #999;
    margin-top: 10px;
    font-size: 14px;
}

.btn-text:hover {
    color: #667eea;
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

/* CDK信息 */
.cdk-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.cdk-info p {
    color: #2e7d32;
    font-size: 16px;
}

/* 成功信息 */
.success-info {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-in;
}

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

.success-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.success-message {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.success-message .main-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message .sub-text {
    font-size: 16px;
    color: #ff9800;
    margin-bottom: 10px;
    font-weight: 600;
}

.success-message .tip-text {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.action-buttons .btn {
    text-decoration: none;
    display: block;
}

/* 任务提交成功提示 */
.task-submitted-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    text-align: center;
    border: 2px solid #667eea;
    animation: slideIn 0.5s ease-in;
}

.task-submitted-notice .notice-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

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

.task-submitted-notice h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.task-submitted-notice .notice-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.task-submitted-notice .notice-time {
    font-size: 18px;
    color: #ff9800;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-submitted-notice .notice-tip {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* 任务状态 */
.task-status {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.task-status h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.status-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #999;
}

.status-card.status-0 {
    border-left-color: #999;
}

.status-card.status-1 {
    border-left-color: #2196f3;
    background: #e3f2fd;
}

.status-card.status-2 {
    border-left-color: #4caf50;
    background: #e8f5e9;
}

.status-card.status-3 {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.status-card.status-4 {
    border-left-color: #f44336;
    background: #ffebee;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-text {
    font-weight: 600;
    font-size: 16px;
}

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

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.status-message {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 错误提示 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    animation: shake 0.5s ease-in;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .steps {
        padding: 0 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 12px;
    }
}

