/* ========================================
   Steam账号找回系统 - 公共样式
   本地化CSS文件，避免依赖外部CDN
   ======================================== */

/* ===== 基础重置与全局样式 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #0f1923;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e2e8f0;
    min-height: 100vh;
}

body {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3e 100%);
}

/* ===== 毛玻璃效果 ===== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.glass-card.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ===== 输入框样式 ===== */
.input-field {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-field:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-field::placeholder {
    color: #64748b;
}

/* ===== 标签文字 ===== */
.label-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

/* ===== 场景图标 ===== */
.scene-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ===== 单选圆圈 ===== */
.radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    margin-top: 14px;
    transition: all 0.2s ease;
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 步骤指示器 ===== */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-dot.done {
    background: #3b82f6;
    color: #fff;
}

.step-dot.active {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
    color: #60a5fa;
}

.step-dot.pending {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.step-line.done {
    background: #3b82f6;
}

.step-label {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.step-label.active {
    color: #60a5fa;
}

.step-label.done {
    color: #3b82f6;
}

/* ===== 按钮样式 ===== */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== 场景主题色 ===== */
.scene-blue { --scene-color: #3b82f6; }
.scene-purple { --scene-color: #a78bfa; }
.scene-amber { --scene-color: #f59e0b; }
.scene-red { --scene-color: #ef4444; }

/* ===== 响应式布局 ===== */
.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* ===== 动画效果 ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== 工具类 ===== */
.hidden { display: none !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-1 { flex: 1; }

.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }

.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-sm { max-width: 24rem; }

.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }

.shrink-0 { flex-shrink: 0; }

.cursor-pointer { cursor: pointer; }

.transition-all { transition: all 0.3s ease; }

.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }

.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
