/* ==========================================
   核心变量定义 (符合方案一：暗夜霓虹微醺风)
   ========================================== */
:root {
    --bg-color: #0F1115; /* 深邃午夜黑 */
    --primary-purple: #8B5CF6; /* 迷幻紫 */
    --primary-blue: #3B82F6; /* 电光蓝 */
    --accent-pink: #EC4899; /* 霓虹粉 */
    --accent-cyan: #2DD4BF; /* 荧光青 */
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* 毛玻璃卡片背景 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   全局重置与基础排版
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 覆盖 GeneratePress 父主题内联样式 (generate-style-inline-css) 的变量 */
    --base-2: var(--bg-color);
    --contrast: var(--text-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden; /* 防止发光背景引起横向滚动条 */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .game-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

img {
    max-width: 100%;
    border-radius: 24px;
    display: block;
    margin: 2rem auto;
}

/* ==========================================
   环境光效 (Ambient Glow)
   ========================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
}
.glow-purple {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary-purple);
}
.glow-blue {
    bottom: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-blue);
}
.glow-pink {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 30vw;
    height: 30vw;
    background: var(--accent-pink);
    opacity: 0.2;
}

/* ==========================================
   布局容器
   ========================================== */
.container {
    max-width: 1000px; /* 控制最大宽度，增加留白 */
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* ==========================================
   UI 元素：毛玻璃卡片 (Glassmorphism)
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 32px; /* 大圆角 */
    padding: 3rem;
    margin-bottom: 3rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.15); /* 发光阴影 */
    border-color: rgba(255, 255, 255, 0.15);
}

/* 渐变文字高亮 */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 头部 Hero 区域 */
.hero-section {
    text-align: center;
    padding: 10vh 0;
}
.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* 列表布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* 游戏条目样式 */
.game-block {
    margin-bottom: 2rem;
}
.game-title {
    font-size: 2rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.3);
    width: fit-content;
}

/* 平滑动效隐藏初始状态 */
.reveal {
    opacity: 0;
    visibility: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .glass-card { padding: 2rem; }
}

/* ==========================================
   导航栏
   ========================================== */
.site-custom-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
}
.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}
.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0;
}
.header-nav {
    display: flex;
    gap: 2rem;
}
.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.header-nav a:hover {
    color: var(--accent-cyan);
}

/* Footer logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin: 0;
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .header-nav { gap: 1.5rem; }
}

/* ==========================================
   站点底部
   ========================================== */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: var(--accent-cyan);
}
.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-nav { gap: 1.5rem; }
}
