/* ============================================
   AI游戏工厂 - 科技感简洁风格全局样式
   主色：深蓝 #0a0e27 / 科技青 #00d4ff / 强调紫 #7c5cff / 成功绿 #00ff9d
   ============================================ */

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

:root {
    --bg-primary: #06091a;
    --bg-secondary: #0d1230;
    --bg-card: #121837;
    --bg-card-hover: #1a2248;
    --border: rgba(0, 212, 255, 0.15);
    --border-glow: rgba(0, 212, 255, 0.4);
    --text-primary: #e8ecff;
    --text-secondary: #8b93c9;
    --text-muted: #5a6398;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c5cff;
    --accent-green: #00ff9d;
    --accent-pink: #ff5fa2;
    --accent-orange: #ff9b42;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c5cff 100%);
    --gradient-purple: linear-gradient(135deg, #7c5cff 0%, #ff5fa2 100%);
    --gradient-green: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景网格效果 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-cyan); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent-purple); }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; outline: none; }

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(0,212,255,0.08); }
.nav-link.highlight {
    background: var(--gradient-primary);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}
.nav-link.highlight:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,255,0.4); }
.nav-link.btn-primary {
    background: var(--accent-cyan);
    color: #06091a !important;
    font-weight: 600;
}
.user-menu { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.user-name { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.token-badge {
    background: rgba(0,255,157,0.15);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0,255,157,0.3);
}
.logout-btn {
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}
.logout-btn:hover { color: var(--accent-pink); background: rgba(255,95,162,0.1); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* ===== 主内容区 ===== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* ===== Hero / 创建区 ===== */
.hero {
    position: relative;
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(124,92,255,0.08) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,92,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.hero p { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; max-width: 640px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== 创建游戏卡片（首页内嵌） ===== */
.create-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
}
.create-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}
.create-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.create-card-header h2 {
    font-size: 22px;
    font-weight: 700;
}
.create-card-header .badge {
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.create-form { display: flex; flex-direction: column; gap: 16px; }
.create-textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.2s;
}
.create-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.create-textarea::placeholder { color: var(--text-muted); }
.create-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.model-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.model-tag {
    background: rgba(124,92,255,0.15);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(124,92,255,0.3);
}
.cost-info { color: var(--accent-orange); font-weight: 600; }
.create-submit {
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.create-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,212,255,0.4); }
.create-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 示例提示 */
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.example-chip {
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.example-chip:hover { background: rgba(0,212,255,0.15); color: var(--accent-cyan); }

/* 生成进度 */
.generate-progress {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.generate-progress.active { display: block; }
.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 12px 0 16px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}
.progress-steps { list-style: none; }
.progress-steps li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.progress-steps li.done { color: var(--accent-green); }
.progress-steps li.active { color: var(--accent-cyan); font-weight: 600; }
.progress-steps li .step-icon { font-size: 16px; }
.progress-steps li.done .step-icon::before { content: '✓'; }
.progress-steps li.active .step-icon::before { content: '◈'; animation: pulse 1s infinite; }
.progress-steps li:not(.done):not(.active) .step-icon::before { content: '○'; }

@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== 按钮 ===== */
.btn-large {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,212,255,0.4); color: #fff; }
.btn-outline {
    border: 1px solid var(--border-glow);
    color: var(--accent-cyan);
}
.btn-outline:hover { background: rgba(0,212,255,0.08); border-color: var(--accent-cyan); }
.btn-primary {
    background: var(--accent-cyan);
    color: #06091a !important;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: #00e0ff; transform: translateY(-1px); }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: rgba(255,95,162,0.15); color: var(--accent-pink); border: 1px solid rgba(255,95,162,0.3); }
.btn-danger:hover { background: rgba(255,95,162,0.25); }

/* ===== Features ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== 游戏列表 ===== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-title a { font-size: 14px; font-weight: 500; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    display: block;
    color: var(--text-primary);
}
.game-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); color: var(--text-primary); }
.game-cover {
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-cover svg { width: 100%; height: 100%; }
.game-info { padding: 14px 16px; }
.game-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-author { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.game-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-secondary); }

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 40px 24px 24px;
    position: relative;
    z-index: 1;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.footer-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.footer-section p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-section a { display: block; font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
.footer-section a:hover { color: var(--accent-cyan); }
.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    font-size: 14px;
    max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(0,255,157,0.4); }
.toast.error { border-color: rgba(255,95,162,0.4); }

/* ===== 表单通用 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.form-label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }

.form-control, .form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}
.form-control:focus, .form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
    background: #0f1536;
}
.form-control::placeholder, .form-input::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
select.form-control { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; padding-right: 36px; }

.btn-block { display: block; width: 100%; text-align: center; }
a.btn-gradient, button.btn-gradient { text-decoration: none; border: none; }

/* alert */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.alert-success { background: rgba(0,255,157,0.1); color: var(--accent-green); border-color: rgba(0,255,157,0.3); }
.alert-error, .alert-danger { background: rgba(255,95,162,0.1); color: var(--accent-pink); border-color: rgba(255,95,162,0.3); }
.alert-warning { background: rgba(255,155,66,0.1); color: var(--accent-orange); border-color: rgba(255,155,66,0.3); }
.alert-info { background: rgba(0,212,255,0.1); color: var(--accent-cyan); border-color: rgba(0,212,255,0.3); }

/* 变量补全（防漏） */
:root {
    --danger: #ef4444;
    --warning: var(--accent-orange);
    --success: var(--accent-green);
    --primary: var(--accent-cyan);
    --gray-400: var(--text-muted);
}

/* 游戏中心页面区 */
.page-hero { margin-bottom: 32px; }
.page-hero-title { font-size: 2rem; font-weight: 800; margin: 0 0 8px; background: var(--gradient-primary); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.page-hero-subtitle { color: var(--text-secondary); font-size: 1rem; margin: 0 0 20px; }
.filter-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search-form { flex: 1; min-width: 260px; display: flex; gap: 8px; }
.search-form .form-control { flex: 1; }
.sort-tabs { display: flex; gap: 4px; background: var(--bg-card); border:1px solid var(--border); padding: 4px; border-radius: 10px; }
.sort-tab { padding: 8px 18px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: all 0.2s; }
.sort-tab.active { background: var(--gradient-primary); color: #fff; font-weight: 600; }
.sort-tab:hover:not(.active) { color: var(--accent-cyan); }
.search-tip { color: var(--text-muted); font-size: 14px; }

/* 空状态 */
.empty-state { text-align: center; padding: 80px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.empty-state .empty-emoji { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.3rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-link {
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.page-link:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.page-link.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* 创建卡片 */
.create-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.loading-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 进度条 */
.progress-bar-wrap {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 12px 0;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0,212,255,0.6);
}
.step-log {
    background: #040714;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #8bffcd;
    max-height: 260px;
    overflow-y: auto;
    line-height: 1.8;
}
.step-log .step-done { color: var(--accent-green); }
.step-log .step-doing { color: var(--accent-cyan); }
.step-log .step-error { color: var(--accent-pink); }

/* 示例芯片 */
.example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* 模型信息条 */
.model-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 10px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.model-info-bar strong { color: var(--accent-cyan); }
.token-hint { color: var(--accent-orange); font-weight: 600; }

/* ===== 认证页 ===== */
.auth-container {
    max-width: 420px;
    margin: 60px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
}
.auth-container h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.auth-container .subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-container .btn-primary { width: 100%; padding: 12px; font-size: 15px; margin-top: 8px; }
.auth-container .form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,9,26,0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-card);
}
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ===== 标签 / Badge ===== */
.badge { font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.badge-pending { background: rgba(255,155,66,0.15); color: var(--accent-orange); border: 1px solid rgba(255,155,66,0.3); }
.badge-success { background: rgba(0,255,157,0.15); color: var(--accent-green); border: 1px solid rgba(0,255,157,0.3); }
.badge-danger { background: rgba(255,95,162,0.15); color: var(--accent-pink); border: 1px solid rgba(255,95,162,0.3); }
.badge-purple { background: rgba(124,92,255,0.15); color: var(--accent-purple); border: 1px solid rgba(124,92,255,0.3); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .user-menu { flex-direction: column; align-items: stretch; margin-left: 0; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
    .main-content { padding: 20px 16px; }
    .hero { padding: 32px 20px; }
    .hero h1 { font-size: 28px; }
    .create-card { padding: 20px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .game-info { padding: 10px 12px; }
    .create-actions { flex-direction: column; align-items: stretch; }
    .create-submit { width: 100%; }
}

/* ===== 输入框强化样式（科技感） ===== */
.form-control, .form-input, textarea.form-control, input.form-control {
    background: rgba(6, 9, 26, 0.7) !important;
    border: 1.5px solid rgba(0, 212, 255, 0.25) !important;
    border-radius: 12px !important;
    color: #e8edff !important;
    font-size: 15px !important;
    padding: 14px 18px !important;
    transition: all 0.25s ease !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
    box-sizing: border-box !important;
}
.form-control::placeholder, .form-input::placeholder { color: #505a80 !important; }
.form-control:focus, .form-input:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0,212,255,0.18), 0 0 20px rgba(0,212,255,0.08) !important;
    background: rgba(6, 9, 26, 0.95) !important;
    transform: translateY(-1px);
}
textarea.form-control {
    font-size: 15px !important;
    line-height: 1.7 !important;
    padding: 18px 20px !important;
}
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 18px) center !important;
    background-size: 12px 8px !important;
    padding-right: 42px !important;
}

/* 创建游戏输入框（首页） */
.create-section textarea.form-control {
    font-size: 16px !important;
    padding: 20px 22px !important;
    min-height: 140px !important;
    border-radius: 14px !important;
    background: rgba(6, 9, 26, 0.8) !important;
    border: 1.5px solid rgba(0, 212, 255, 0.3) !important;
    line-height: 1.8 !important;
}

/* 登录/注册卡片 */
.auth-card {
    background: linear-gradient(135deg, rgba(18,24,55,0.95) 0%, rgba(22,30,68,0.95) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 18px !important;
    padding: 36px 32px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,255,0.05) !important;
    backdrop-filter: blur(20px);
}
