/* ============================================
   mu123.fun - 科技感游戏平台全局样式
   ============================================ */

/* === CSS 变量 === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(15, 15, 30, 0.85);
    --bg-card-hover: rgba(25, 25, 50, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.06);

    --neon-cyan: #00f5ff;
    --neon-cyan-dim: #00a8b3;
    --neon-purple: #7c3aed;
    --neon-purple-dim: #5b21b6;
    --neon-orange: #ff6b35;
    --neon-pink: #ff2d6a;
    --neon-green: #00ff88;
    --neon-yellow: #ffd93d;

    --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.3), 0 0 40px rgba(0, 245, 255, 0.1);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
    --glow-orange: 0 0 15px rgba(255, 107, 53, 0.4);

    --text-primary: #e8eaf6;
    --text-secondary: #8b8fa3;
    --text-dim: #5a5d6e;
    --text-accent: var(--neon-cyan);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 245, 255, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-main: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    --font-mono: "Cascadia Code", "JetBrains Mono", "Fira Code", "Consolas", monospace;

    --transition-fast: 0.15s ease;
    --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 245, 255, 0.1);
    --shadow-neon: 0 0 30px rgba(0, 245, 255, 0.15);
}

/* === 重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 背景 === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0, 245, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0d0d1a 100%);
    pointer-events: none;
    z-index: -1;
}

/* 网格线背景 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* === 滚动条 === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan-dim);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* === 选择 === */
::selection {
    background: rgba(0, 245, 255, 0.2);
    color: var(--neon-cyan);
}

/* === 链接 === */
a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--text-primary);
    text-shadow: var(--glow-cyan);
}

/* === 排版 === */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p { line-height: 1.7; color: var(--text-secondary); }

/* === 容器 === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.08);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.user-avatar:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.user-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-med);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 245, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* === 卡片 === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-med);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

/* === 玻璃卡片 === */
.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
}

/* === 表单 === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-dim);
}

/* === 徽章 === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-cyan { background: rgba(0, 245, 255, 0.15); color: var(--neon-cyan); }
.badge-purple { background: rgba(124, 58, 237, 0.15); color: var(--neon-purple); }
.badge-orange { background: rgba(255, 107, 53, 0.15); color: var(--neon-orange); }
.badge-green { background: rgba(0, 255, 136, 0.15); color: var(--neon-green); }
.badge-pink { background: rgba(255, 45, 106, 0.15); color: var(--neon-pink); }
.badge-yellow { background: rgba(255, 217, 61, 0.15); color: var(--neon-yellow); }

/* === 游戏卡片 === */
.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    transition: var(--transition-med);
}

.game-card-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: var(--transition-med);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition-med);
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.game-card:hover .game-card-image {
    transform: scale(1.05);
}

.game-card:hover {
    box-shadow: var(--shadow-neon);
    border-color: rgba(0, 245, 255, 0.3);
}

.game-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
    transition: var(--transition-med);
}

.game-card:hover .game-card-play {
    transform: translate(-50%, -50%) scale(1);
}

/* === 排行榜 === */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.leaderboard-item:hover {
    background: rgba(0, 245, 255, 0.05);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ff9500); color: #1a1a1a; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); color: #1a1a1a; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-default { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.leaderboard-score {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* === 动画 === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: var(--glow-cyan); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.5), 0 0 80px rgba(0, 245, 255, 0.2); }
}

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

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-stagger > * {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.animate-stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* === 加载器 === */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 245, 255, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255,255,255,0.05) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Toast 通知 === */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    max-width: 360px;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: rgba(0, 255, 136, 0.15); border: 1px solid var(--neon-green); color: var(--neon-green); }
.toast-error { background: rgba(255, 45, 106, 0.15); border: 1px solid var(--neon-pink); color: var(--neon-pink); }
.toast-info { background: rgba(0, 245, 255, 0.15); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }

/* === 模态框 === */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* === 主内容区 === */
.main {
    padding-top: 64px;
    min-height: 100vh;
}

/* === Hero 区域 === */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-cyan) 100%);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    line-height: 1.1;
    margin-bottom: 20px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0%; }
    50% { background-position: 200%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* === 搜索栏 === */
.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 52px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-fast);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.08);
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

/* === 游戏网格 === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === 筛选标签 === */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-main);
}

.filter-tab:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.filter-tab.active {
    background: rgba(0, 245, 255, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* === 页面标题 === */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* === 登录/注册页 === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    animation: fadeIn 0.4s ease;
}

.auth-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-divider {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin: 20px 0;
}

/* === 分数显示 === */
.score-display {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* === 游戏区域 === */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.game-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-canvas-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.game-canvas-wrapper canvas {
    display: block;
    width: 100%;
    max-height: 80vh;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.game-overlay.hidden { display: none; }

/* === 页脚 === */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* === 移动端顶部导航栏 === */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 0;
}
.mobile-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}
.mobile-nav a.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.08);
}
.mobile-nav a svg {
    width: 18px;
    height: 18px;
}

/* === 移动端适配 === */
@media (max-width: 640px) {
    .navbar { display: none; }
    .mobile-nav { display: flex !important; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 1.6rem; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .auth-card { padding: 28px 20px; }
    .btn-lg { padding: 12px 28px; }
    .main { padding-top: 60px; }
    .page-header { padding: 20px 0 16px; }
    .hero { padding: 30px 0 20px; }
}

/* === 辅助类 === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.text-orange { color: var(--neon-orange); }
.text-green { color: var(--neon-green); }
.text-pink { color: var(--neon-pink); }
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* === 留言板（Hero风格） === */
.guestbook-hero {
    margin: 30px 0 10px;
}

.gh-card {
    background: linear-gradient(135deg, rgba(0,245,255,0.06), rgba(124,58,237,0.06));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 0 30px rgba(0,245,255,0.08), inset 0 1px 0 rgba(0,245,255,0.1);
    max-width: 620px;
}

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

.gh-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--neon-cyan);
}

.gh-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.gh-count span { color: var(--neon-cyan); font-weight: bold; }

.gh-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.gh-form-row input,
.gh-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gh-form-row input:focus,
.gh-form-row textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0,245,255,0.15);
}

.gh-form-row textarea { min-height: 60px; }

.gh-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.gb-status { font-size: 13px; min-height: 18px; }
.gb-status.ok { color: var(--neon-green); }
.gb-status.err { color: var(--neon-pink); }

.btn-glow {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: #000;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0,245,255,0.3);
    white-space: nowrap;
}

.btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0,245,255,0.5);
}

.btn-glow:active { transform: translateY(0); }

.gh-messages { margin-top: 4px; }

.gh-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    transition: color 0.2s;
}

.gh-toggle:hover { color: var(--neon-cyan); }

#gh-arrow { transition: transform 0.2s; }

.gh-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.gb-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}

.gb-item:hover { border-color: var(--border-glow); }

.gb-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gb-username {
    color: var(--neon-cyan);
    font-weight: bold;
    font-size: 13px;
}

.gb-time { color: var(--text-secondary); font-size: 11px; }

.gb-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}

.gb-empty {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding: 16px;
}

.gb-more {
    text-align: center;
    color: var(--neon-cyan);
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-more:hover { opacity: 0.7; }
.hidden { display: none !important; }
