
:root {
    --color-bg-page: #050505;     /* 页面背景: 接近纯黑 */
    --color-green-neon: #00ff66;  /* 亮霓虹绿 */
    --color-green-dark: #008833;  /* 深绿 */
    --color-text-light: #f0f0f0;  /* 浅色文本 */
    --color-text-secondary: #aaaaaa; /* 新增次要文本颜色 */
    --color-glass-bg: rgba(255, 255, 255, 0.08); /* 磨砂玻璃背景 */
    --grid-cols-pc: 4;            /* PC端改为 4 栏，卡片更大气 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Consolas', 'Arial', monospace; /* 科技感字体 */
    background-color: var(--color-bg-page);
    color: var(--color-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* --- 2. 网页结构 --- */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* --- 3. 顶部焦点区域 (Header - 炫酷效果) --- */
.header {
    padding: 20px 10px 5px;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.05) 0%, rgba(5, 5, 5, 1) 70%); /* 顶部光晕效果 */
    text-align: center;
}

/* 移动端顶部栏 */
.nav-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px;
}
.nav-top-bar .fa-bars, .nav-top-bar .fa-search {
    font-size: 30px;
    color: #03a9f4;
    text-shadow: 0 0 8px #03a9f4;
    cursor: pointer;
}

/* 标题和搜索区域 */
.header-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-text-light);
    text-shadow: 0 0 10px #03a9f4, 0 0 20px #03a9f4;
    margin-bottom: 25px;
    letter-spacing: 2px;
}
.header-subtitle {
    font-size: 18px;
    color: #03a9f4;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.search-area-wrapper {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-container {
    border: 2px solid #03a9f4;
    border-radius: 40px;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.7);
    padding: 8px 25px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
.search-container input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #03a9f4;
    font-size: 18px;
    padding: 5px 10px;
    outline: none;
}
.search-container input::placeholder {
    color: #03a9f4;
}
.search-container i {
    color: #03a9f4;
    font-size: 20px;
}

/* LATEST GAMES 标题 - 增加分隔线和光晕 */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #03a9f4;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.7);
    margin: 50px 0 20px;
    letter-spacing: 2px;
    position: relative;
}
.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 40%;
    background: linear-gradient(to right, #03a9f4, transparent);
}
.section-title::before { left: 0; }
.section-title::after {
    right: 0;
    background: linear-gradient(to left, #03a9f4, transparent);
}

/* --- 4. 游戏网格 (PC端瀑布流效果) --- */
.game-grid-section { padding: 30px 15px; }
.game-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols-pc), 1fr);
    gap: 20px;
}

/* --- 5. 游戏卡片 (磨砂玻璃/霓虹效果) --- */
.game-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-glass-bg); /* 磨砂玻璃基底 */
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px #03a9f4, 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9; /* 比例更像视频或游戏封面 */
    width: 100%;
    overflow: hidden;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.game-card:hover img {
    transform: scale(1.1);
}

.card-info {
    padding: 15px;
    flex-grow: 1;
    /* 增加一个内部的霓虹边框效果 */
    border-top: 1px solid rgba(0, 255, 102, 0.1);
}
.card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-light);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-subtitle {
    font-size: 13px;
    color: #03a9f4;
    text-shadow: 0 0 3px #03a9f4;
    font-style: italic;
}
.card-rating {
    margin-top: 8px;
    font-size: 14px;
    color: #ffc107; /* 评分使用金色 */
}
.card-rating i {
    margin-right: -2px;
}

/* --- 6. 网站描述区域 --- */
.website-description-area {
    background-color: #0d0d0d;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--color-green-dark);
}
.website-description-area p {
    margin: 0 auto 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}
.website-description-area strong {
    color: #03a9f4;
}
.monster-image {
    filter: drop-shadow(0 0 10px #03a9f4); /* 给吉祥物增加霓虹阴影 */
}

/* --- 7. 底部 Footer --- */
.footer {
    padding: 20px 10px;
    text-align: center;
    border-top: 1px solid var(--color-green-dark);
}
.footer-links a {
    color: #03a9f4;
    text-shadow: 0 0 5px #03a9f4;
    margin: 0 5px;
}

/* --- 8. 移动端菜单样式 (修复功能) --- */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 75%; max-width: 300px; height: 100%;
    background: #000;
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    box-shadow: 2px 0 10px #03a9f4;
}
.mobile-menu.open { transform: translateX(0); }
/* 修复：移动端菜单没有 overlay，为了演示，这里移除 overlay 变量和 JS 逻辑 */
.mobile-menu-close {
    text-align: right;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    color: #03a9f4;
}

.mobile-menu-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-green-dark);
    display: block;
    color: var(--color-text-light);
    font-size: 16px;
    transition: background 0.3s;
}
.mobile-menu-item:hover {
    background-color: var(--color-green-dark);
}

/* --- 9. 新增 PC 端导航栏样式 --- */
.pc-nav-links {
    text-align: center;
    padding: 15px 10px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 255, 102, 0.15);
    border-bottom: 1px solid rgba(0, 255, 102, 0.15);
    background: rgba(0, 0, 0, 0.4);
    display: none; /* 默认在移动端隐藏 */
}
.nav-link-item {
    color: #03a9f4;
    font-size: 14px;
    font-weight: bold;
    margin: 0 15px;
    padding: 5px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #03a9f4;
    transition: color 0.3s, text-shadow 0.3s;
    display: inline-block; /* 确保链接水平排列 */
}
.nav-link-item:hover {
    color: var(--color-text-light);
    text-shadow: 0 0 15px #03a9f4;
}

/* --- 10. 响应式布局 (Mobile < 768px) --- */
@media (max-width: 768px) {
    .header-title { font-size: 28px; }
    .header-subtitle { font-size: 16px; }
    .section-title { font-size: 20px; margin-top: 30px; }

    /* 移动端卡片布局：2列 */
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .game-card {
        border-radius: 8px;
    }
    .card-info { padding: 10px 8px; }
    .card-title { font-size: 14px; }
    .card-subtitle { font-size: 14px; }
    .card-rating { font-size: 12px; }
}

/* --- 11. PC端定制 (桌面 > 768px) --- */
@media (min-width: 769px) {
    .nav-top-bar { display: none; } /* 隐藏移动端顶部图标 */
    .header-title { margin-top: 30px; }


    /* 显式显示 PC 导航栏 */
    .pc-nav-links {
        display: block;
    }
}