/* =========================================
   PopGame Theme - Modern Decoration Fix
   ========================================= */

:root {
    --bg-pink: #fde2e2;
    --panel-blue: #4854bc;
    --card-blue: #a2d2ff;
    --card-hover: #74b9ff;
    --text-dark: #2d3436;
    --accent-yellow: #ffeaa7;
    --border-color: #000000;
    --white: #ffffff;
    --radius-m: 20px;
    --radius-s: 12px;
    --border-width: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-pink);
    font-family: 'Varela Round', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-image: radial-gradient(var(--panel-blue) 1px, transparent 1px);
    background-size: 24px 24px;
}

a { text-decoration: none; color: inherit; }

/* 主容器 */
.main-container {
    background-color: var(--panel-blue);
    width: 100%;
    max-width: 1400px;
    border-radius: 30px;
    border: 4px solid var(--border-color);
    padding: 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-shadow: 16px 16px 0px rgba(0,0,0,0.2);
}

/* =========================================
   1. 导航栏
   ========================================= */
.game-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.25);
    padding: 10px 20px;
    border-radius: 50px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-left { display: flex; gap: 10px; align-items: center; }

.nav-item, .nav-back-btn {
    color: var(--white);
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: inline-block;
}

.nav-item:hover, .nav-back-btn:hover {
    background: var(--white);
    color: var(--panel-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-item.active {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.playing-tag {
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; gap: 8px;
}
.playing-tag strong { color: var(--accent-yellow); }

/* =========================================
   2. Hero 区域 (带装饰球的现代版)
   ========================================= */
.hero-section {
    /* 基础背景 */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: var(--radius-m);
    padding: 50px 40px;
    margin-bottom: 40px;
    color: white;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.05);
    
    /* 关键属性：相对定位 & 隐藏溢出 (防止圆球跑出去) */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* --- 装饰球 1：右上角大圆 --- */
.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -50px;
    width: 300px;
    height: 300px;
    /* 径向渐变，制造通透感 */
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1; /* 放在文字后面 */
}

/* --- 装饰球 2：左下角模糊光斑 (新增加的，更有氛围) --- */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    filter: blur(20px); /* 高斯模糊，现代感 */
    z-index: -1;
}

/* 确保文字内容在圆球之上 */
.logo-text, .description {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.description {
    font-size: 1.2rem;
    color: var(--accent-yellow);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: none;
    line-height: 1.6;
}

/* =========================================
   3. 详情页 & 其他
   ========================================= */
.post-layout-wrapper { display: flex; flex-direction: column; width: 100%; }

.game-header-section {
    background: var(--card-blue);
    border: 3px solid var(--border-color);
    border-radius: var(--radius-m);
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 30px; box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.header-content { flex: 1; }
.game-page-title {
    font-size: 2rem; margin-bottom: 10px; color: var(--text-dark);
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}
.game-page-desc { font-size: 1rem; line-height: 1.5; color: #333; max-width: 800px; }

.header-sidebar {
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px; min-width: 220px;
}
.meta-row { display: flex; gap: 10px; }
.meta-tag {
    background: rgba(255,255,255,0.6); padding: 6px 12px; border-radius: 8px;
    font-size: 0.85rem; font-weight: bold; color: #555;
    border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; gap: 5px;
}

.fs-btn {
    width: 100%;
    background: var(--text-dark); color: var(--accent-yellow);
    border: 2px solid var(--white); padding: 12px 20px;
    border-radius: 12px; font-weight: 800; font-size: 0.95rem;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
    transition: all 0.2s; box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.fs-btn:hover {
    background: var(--white); color: var(--text-dark); border-color: var(--border-color);
    transform: translateY(-2px); box-shadow: 4px 6px 0 rgba(0,0,0,0.2);
}

.game-stage-container {
    width: 100%; aspect-ratio: 16 / 9;
    background: #000;
    border: 4px solid var(--border-color);
    border-radius: var(--radius-m);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
    margin-bottom: 15px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.game-iframe { width: 100%; height: 100%; border: none; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; width: 100%; }
@media (max-width: 900px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
    background-color: var(--card-blue); border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-m); display: flex; flex-direction: column; overflow: hidden;
    transition: all 0.2s; height: 100%; position: relative;
}
.game-card:hover { transform: translateY(-8px); box-shadow: 8px 8px 0px var(--border-color); background-color: var(--card-hover); z-index: 10; }
.card-cover-area { height: 180px; background: var(--white); border-bottom: var(--border-width) solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.card-cover-area img { width: 100%; height: 100%; object-fit: cover; }
.emoji-placeholder { font-size: 60px; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.game-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; text-align: center; }
.game-desc { font-size: 0.9rem; line-height: 1.5; color: #333; margin-bottom: 20px; text-align: center; flex-grow: 1; opacity: 0.9; }
.play-btn { display: block; width: 100%; background: var(--accent-yellow); border: 2px solid var(--border-color); padding: 10px 0; border-radius: 12px; font-weight: 800; text-align: center; color: var(--text-dark); box-shadow: 3px 3px 0 rgba(0,0,0,0.1); transition: background 0.2s; }
.play-btn:hover { background: #fff; }

@media (max-width: 800px) {
    .game-header-section { flex-direction: column; gap: 20px; }
    .header-sidebar { width: 100%; align-items: flex-start; flex-direction: row; justify-content: space-between; }
    .meta-row { flex-wrap: wrap; }
    .fs-btn { width: auto; }
}

footer { text-align: center; margin-top: auto; color: rgba(255,255,255,0.6); padding-top: 30px; }