:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 32px rgba(99,102,241,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
a { color: var(--primary); text-decoration: none; }

/* 导航 */
.navbar {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.nav-logo { font-size: 1.35rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a { text-decoration: none; color: var(--text); padding: 8px 16px; border-radius: var(--radius-sm); transition: var(--transition); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { background: var(--primary); color: white; }

/* 首页 */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); }

/* 游戏网格 */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.game-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); cursor: pointer; transition: var(--transition);
    border: 1px solid transparent; position: relative; overflow: hidden;
    text-decoration: none; color: inherit; display: block;
}
.game-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transition: var(--transition); }
.game-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary-light); }
.game-card:hover::before { transform: scaleX(1); }
.game-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.game-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.game-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.game-tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.game-tag.new { background: #dbeafe; color: #2563eb; }
.game-tag.hot { background: #fee2e2; color: #dc2626; }

/* 游戏页通用 */
.game-page { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin: 24px 0; }
.game-page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.game-page-header h1 { font-size: 1.5rem; font-weight: 700; }
.back-btn { background: none; border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 0.9rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.back-btn:hover { background: #f1f5f9; border-color: var(--primary); color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* 页脚 */
.footer { background: white; border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: auto; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .game-grid { grid-template-columns: 1fr; }
    .game-page { padding: 20px; }
}
