/* =====================================================
   Game Website CSS - 统一样式设计
   ===================================================== */

/* ==================== 颜色和排版变量 ==================== */
:root {
    /* 浅色文字变量定义 */
    --light-text: #f8fafc; /* 浅灰色文字 */
    --light-text-secondary: #cbd5e1; /* 次要浅灰色文字 */
    --neon-cyan: #64ffda; /* 霓虹青色 */
    --primary: #0a192f; /* 主色调：深蓝黑色 - 未来感深色背景 */
    --primary-gradient: linear-gradient(135deg, #0a192f, #112240);
    --secondary: #64ffda; /* 辅助色：霓虹青色 - 未来感科技光效 */
    --accent: #f653a6; /* 强调色：霓虹粉紫色 - 未来感突出元素 */
    --light: #1e293b; /* 深色背景下的浅色 */
    --dark: #f8fafc; /* 文字颜色改为浅色 */
    --gray: #94a3b8;
    --success: #34d399;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(100, 255, 218, 0.15); /* 青色光晕阴影 */
    --transition: all 0.3s ease;
    --ad-height: 80px;
    --content-width: min(95%, 1400px);
}

/* about、privacy、contact页面文字样式 */
.content {
    /* 确保所有文字使用浅色 */
    color: var(--light-text) !important; /* 使用主要浅色文字 */
}

/* 覆盖标题内联样式 */
.content > div[style*="color: black"],
.content > div[style*="color: #474747"],
.content h1,
.content h2,
.content h3,
.content h4 {
    color: var(--light-text) !important;
}

/* 覆盖段落内联样式 */
.content p,
.content li,
.content span,
.content strong,
.content em,
.content div:not([class]) {
    color: var(--light-text-secondary) !important;
    line-height: 1.5;
}

/* 覆盖任何直接在content下的内联样式元素 */
.content > *[style*="color:"] {
    color: var(--light-text) !important;
}

/* 覆盖p标签内的内联样式 */
.content p[style*="color:"] {
    color: var(--light-text-secondary) !important;
}

/* 确保footer文字也是浅色 */
.footer_content {
    color: var(--light-text-secondary) !important;
}

.footer p {
    color: var(--light-text-secondary) !important;
}

/* 确保footer导航链接文字也是浅色 */
.foot_pd {
    color: var(--light-text-secondary) !important;
}

/* 确保页面所有链接也是浅色 */
.content a {
    color: var(--neon-cyan) !important;
    text-decoration: none;
    transition: var(--transition);
}

/* 链接悬停效果 */
.content a:hover {
    color: var(--accent) !important; /* 悬停时变为霓虹粉紫色 */
    text-shadow: 0 0 10px rgba(246, 83, 166, 0.5);
}

/* 确保body背景色与网站主题一致 */
body {
    background-color: var(--primary) !important;
    color: var(--light-text) !important;
}

/* ==================== 分类下拉菜单（Header版本） ==================== */
header .category-dropdown {
    position: relative;
    width: auto;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 0;
    margin-right: 0;
    padding: 0;
}

.search-container {
    margin: 0;
    padding: 0;
}

header .dropdown-btn {
    width: 70px; /* 减小宽度 */
    height: 28px; /* 减小高度 */
    padding: 0 8px; /* 减小内边距 */
    background: var(--light); /* 深色背景 */
    color: var(--secondary); /* 霓虹青色文字 */
    border: 1px solid var(--secondary); /* 霓虹青色边框 */
    border-radius: 14px; /* 设置全圆角，值为高度的一半 */
    cursor: pointer;
    font-size: 12px; /* 减小字体大小 */
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.3); /* 霓虹光晕效果 */
}

header .dropdown-btn i {
    font-size: 0.15rem;
    margin-left: 0.03rem;
}

header .dropdown-btn:hover {
    background: var(--secondary); /* 悬停时背景变为霓虹青色 */
    color: var(--primary); /* 文字变为深色 */
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.6); /* 增强霓虹光晕效果 */
    border-color: var(--secondary);
}

header .dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 70px;
    background: var(--light);
    border-radius: calc(var(--border-radius) - 2px);
    box-shadow: 0 3px 15px rgba(100, 255, 218, 0.2); /* 霓虹青色光晕 */
    border: 1px solid var(--secondary);
    z-index: 1000;
    margin-top: 0.08rem;
    max-height: 8rem;
    overflow-y: auto;
}

header .dropdown-item {
    width: 100%;
    padding: 0.12rem 0.15rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.2rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--dark);
}

header .dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

header .dropdown-item:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

header .dropdown-item.active {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(246, 83, 166, 0.5);
}

/* 响应式调整 - 确保下拉按钮固定大小 */
@media (max-width: 768px) {
    header .dropdown-btn {
        width: 70px !important; /* 减小宽度 */
        height: 28px !important; /* 减小高度 */
        padding: 0 8px !important; /* 减小内边距 */
        font-size: 12px !important; /* 减小字体大小 */
        background: var(--light); /* 深色背景 */
        color: var(--secondary); /* 霓虹青色文字 */
        border: 1px solid var(--secondary); /* 霓虹青色边框 */
        border-radius: 16px !important; /* 设置全圆角 */
        box-shadow: 0 0 10px rgba(100, 255, 218, 0.3); /* 霓虹光晕效果 */
    }
    
    header .dropdown-item {
        font-size: 0.3rem;
        padding: 0.3rem 0.4rem;
        color: var(--dark);
        border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    }
}

@media (max-width: 480px) {
    /* 调整logo大小以腾出更多空间 */
    .logo {
        font-size: 0.3rem;
        margin-right: 0.1rem;
    }
    
    .logo i {
        font-size: 0.35rem;
        margin-right: 0.05rem;
    }
    
    header {
        padding: 0.02rem 0 !important; /* 减小垂直内边距，使元素向上移动 */
    }
    
    .header-container {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center; /* 改为居中对齐 */
        justify-content: center; /* 垂直居中 */
        padding: 0 0.2rem !important;
        gap: 0.1rem !important;
        width: 100%; /* 确保容器宽度为100% */
        margin-top: -0.03rem !important; /* 向上移动整个容器 */
        padding-top: 0 !important;
    }
    
    /* 确保不改变元素尺寸 */
    .logo h1 {
        margin: 0 !important;
    }
    
    /* 调整搜索框尺寸以适应手机屏幕 */
    .search-container {
        flex-shrink: 1; /* 允许收缩 */
        height: 32px; /* 设置固定高度与下拉按钮一致 */
        margin-left: -50px; 
        padding: 0;
        width: 100%;
        max-width: 200px;
        display: block; /* 确保是块级元素以便居中 */
    }
    
    .search-container input {
        font-size: 0.22rem; /* 减小字体 */
        padding: 0.05rem 0.1rem; /* 减小内边距 */
        height: 100%; /* 占满容器高度 */
        min-width: 0; /* 允许内容收缩 */
    }
    
    .search-container button {
        padding: 0.05rem 0.1rem; /* 减小内边距 */
        height: 100%; /* 占满容器高度 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 调整下拉菜单居中显示 */
    header .category-dropdown {
        left: -25px; 
        height: auto;
        flex-shrink: 0;
        display: block; /* 确保是块级元素以便居中 */
        text-align: center; /* 文本居中 */
    }
    
    /* 确保下拉按钮固定大小 */
    header .dropdown-btn {
        width: 70px !important; /* 减小宽度 */
        height: 28px !important; /* 减小高度 */
        padding: 0 8px !important; /* 减小内边距 */
        font-size: 12px !important; /* 减小字体大小 */
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px !important; /* 设置全圆角 */
        background: var(--light); /* 深色背景 */
        color: var(--secondary); /* 霓虹青色文字 */
        border: 1px solid var(--secondary); /* 霓虹青色边框 */
        box-shadow: 0 0 8px rgba(100, 255, 218, 0.3); /* 霓虹光晕效果 */
    }
    
    header .dropdown-btn i {
        margin-left: 0.03rem;
        font-size: 0.18rem;
    }
}


/* ==================== 基础设置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    font-size: 2.5rem; /* 37.5px for rem calculations */
}

body {
    background: var(--light); /* 浅绿色背景 */
    color: var(--dark);
    line-height: 1.2;
    min-height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 100px; /* 为顶部固定header留出足够空间 */
}

.app {
    background: var(--light); /* 浅绿色背景 */
    background-attachment: fixed;
    min-width: 314px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== Header样式 ==================== */
header {
    background: var(--primary-gradient); /* 深绿色渐变 */
    color: white;
    padding: 0.1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* 右侧容器用于包裹搜索栏和选项栏，确保它们靠紧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 0; /* 完全移除间隙 */
    margin-left: auto;
}

/* 确保搜索栏和选项栏完全靠紧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.search-container {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.search-container input {
    border-radius: 0.2rem 0 0 0.2rem;
    border-right: none;
    background-color: var(--light);
    color: var(--dark);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2) inset;
}

.header-right .category-dropdown {
    margin: 0;
    padding: 0;
}

.header-right .dropdown-btn {
    border-radius: 0 0.2rem 0.2rem 0;
    border-left: none;
}

/* ==================== Footer样式 ==================== */
.footer {
    background: var(--primary); /* 深蓝黑色背景 */
    color: var(--secondary); /* 霓虹青色文字 */
    padding: 0.3rem 0;
    margin-top: auto;
    border-top: 3px solid var(--secondary);
    text-align: center;
    width: 100%;
    overflow: hidden;
    font-size: 10px; /* 修复footer字体大小 */
    box-shadow: 0 -2px 20px rgba(100, 255, 218, 0.15);
}

.footer_content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer_content a {
    text-decoration: none;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer_content a:hover {
    background-color: rgba(100, 255, 218, 0.2);
    color: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.footer_content div {
    margin: 0;
    display: inline-block;
}

.foot_pd {
    padding: 0 8px;
    display: inline-block;
    white-space: nowrap;
}



/* ==================== 字体定义 ==================== */
/* 移除了对缺失字体的引用，使用系统默认字体 */

/* ==================== 链接样式 ==================== */
a {
    text-decoration: none;
    color: var(--secondary);
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ==================== 快捷工具类 ==================== */
.f-c-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.f-r-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

/* ==================== 网格布局 ==================== */
.grid-container {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(6, 1fr); /* PC端默认6列布局 */
    grid-auto-rows: 1fr;
    gap: 15px;
    grid-auto-flow: row dense;
    margin: 0 auto;
}

/* ==================== Header样式 ==================== */
header {
    background: var(--primary-gradient);
    color: white;
    padding: 0.1rem 0;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 0.4rem;
    font-weight: bold;
    /* 未来风格渐变色 */
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 50%, #64ffda 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3), 0 0 20px rgba(100, 255, 218, 0.1);
    animation: gradientShift 3s ease infinite;
}

/* 渐变动画效果 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo i {
    margin-right: 0.2rem;
    font-size: 0.5rem;
}

.search-container {
    flex: 1;
    max-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
	left:-30px;
}

.search-container input {
    padding: 0.15rem 0.3rem;
    border: none;
    border-radius: 0.2rem 0 0 0.2rem;
    font-size: 0.3rem;
    width: 100%;
    outline: none;
}

.search-container button {
    background: var(--accent);
    border: none;
    padding: 0.15rem 0.3rem;
    border-radius: 0 0.2rem 0.2rem 0;
    color: white;
    cursor: pointer;
    outline: none;
}

.search-container button:hover {
    background: #ff5252;
}

/* ==================== Main内容样式 ==================== */
.main {
    flex: 1;
    margin: 20px 0;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin-bottom: 0.3rem;
}

.section-header h2 {
    /* 修改为浅色渐变文字效果 */
    background: linear-gradient(135deg, #f8fafc, #64ffda); /* 从浅灰到霓虹青色的渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    font-weight: bold;
    /* 添加文字阴影以增强可读性 */
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.controls {
    display: flex;
    align-items: center;
}

.games-count {
    color: var(--gray);
    font-size: 0.3rem;
}

/* ==================== 分类筛选样式 ==================== */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
    width: 90%;
}

.category-btn {
    padding: 0.15rem 0.3rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 0.2rem;
    color: var(--primary);
    font-size: 0.3rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.category-btn:hover {
    background: var(--primary);
    color: white;
}

.category-btn.active {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

/* ==================== 加载状态样式 ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray);
}

.loading i {
    font-size: 1rem;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    aspect-ratio: 1 / 1;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5%;
}

/* 定义不同网格的大小 */
.grid-item-1 {
    grid-column: span 1;
    grid-row: span 1;
}

.grid-item-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ==================== 游戏列表样式 ==================== */
.game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 2%;
}

.game-item {
    display: block;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5%;
}

.game-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.game-item h3 {
    font-size: 0.24rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-bottom: 0.1rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.2rem;
}

.game-category {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.05rem 0.1rem;
    border-radius: 0.1rem;
}

.game-rating {
    display: flex;
    align-items: center;
}

.game-rating i {
    color: #ffcc00;
    margin-right: 0.05rem;
}

/* ==================== 热门游戏样式 ==================== */
.hot-games-section {
    width: 100%;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* 热游容器 - 桌面端使用网格布局 */
.hot-game-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* 热游项样式 - 桌面端网格布局 */
.hot-game-item {
    display: block;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.hot-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 热游图片样式 */
.hot-game-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 5%;
}

/* 热游信息样式 */
.hot-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.hot-game-title {
    font-size: 0.24rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-bottom: 0.1rem;
}

.hot-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.2rem;
}

.hot-game-category {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.05rem 0.1rem;
    border-radius: 0.1rem;
}

.hot-game-rating {
    display: flex;
    align-items: center;
}

.hot-game-rating i {
    color: #ffcc00;
    margin-right: 0.05rem;
}

/* 旧的hot_game样式 - 保留兼容性 */
.hot_game {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 75%;
}

.hot_game_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 45%;
    margin: .1rem 0;
    padding: .2rem;
    border-radius: 0.15rem;
}

/* 响应式设计 - Hot Games Section */
@media (max-width: 1200px) {
    .hot-game-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hot-game-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hot-games-section {
        width: 130%;
        margin-left: 0;
        margin-left: -20%;
        margin-right: 0;
    }
    
    .hot-game-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        padding: 0;
    }
    
    /* 调整游戏卡片在单列布局中的样式 - 图片为主 */
    .hot-game-item {
        width: 100%;
        max-width: 100%;
        display: block;
        aspect-ratio: auto;
        padding: 10px;
        text-align: center;
    }
    
    .hot-game-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.8/1;
        border-radius: 12px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hot-game-info {
        position: static;
        background: var(--primary); /* 添加深色背景 */
        color: white; /* 确保文字为白色，与深色背景形成对比 */
        padding: 10px;
        border-radius: var(--border-radius);
        box-shadow: 0 0 15px rgba(100, 255, 218, 0.2); /* 添加霓虹光晕效果 */
    }
    
    .hot-game-title {
        font-size: 16px;
        margin-bottom: 8px;
        white-space: normal;
        overflow: visible;
        font-weight: bold;
    }
    
    .hot-game-meta {
        font-size: 14px;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hot-games-section {
        margin-left: 0;
        margin-left: -20%;
        margin-right: 0;
		
        margin-bottom: 1rem;
    }
    
    .hot-game-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        padding: 0;
    }
    
    /* 调整游戏卡片在手机端的样式 - 图片为主 */
    .hot-game-item {
        width: 100%;
        max-width: 100%;
        display: block;
        aspect-ratio: auto;
        padding: 8px;
        text-align: center;
    }
    
    .hot-game-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.8/1;
        border-radius: 10px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .hot-game-info {
        position: static;
        background: var(--primary); /* 添加深色背景 */
        color: white; /* 确保文字为白色，与深色背景形成对比 */
        padding: 8px;
        border-radius: var(--border-radius);
        box-shadow: 0 0 10px rgba(100, 255, 218, 0.2); /* 添加霓虹光晕效果 */
    }
    
    .hot-game-title {
        font-size: 14px;
        margin-bottom: 6px;
        white-space: normal;
        overflow: visible;
        font-weight: bold;
    }
    
    .hot-game-meta {
        font-size: 12px;
        justify-content: center;
        gap: 12px;
    }
}

.game-description {
    flex: 1;
    font-size: .2rem;
    height: 1rem;
    overflow: hidden;
    padding: 0 0.1rem;
    text-align: left;
    color: #FFFFFF;
    font-weight: bold;
}

.enter-button {
    padding: .15rem .2rem;
    font-size: .24rem;
    background: #ffa500;
    border: none;
    border-radius: 0.1rem;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: bold;
}

/* ==================== 分类样式 ==================== */
.category img {
    width: .3rem;
    height: .3rem;
}

/* ==================== Logo样式 ==================== */
.logo img {
    height: 0.65rem;
}

/* ==================== 搜索框样式 ==================== */
.search img {
    display: none;
    width: .36rem;
    height: .36rem;
}

.search input {
    padding: 0.2rem 0.4rem;
    border: none;
    border-radius: 0.2rem;
    font-size: 0.4rem;
}

/* ==================== 游戏标题样式 ==================== */
.game_title {
    width: 100%;
    height: .45rem;
    font-size: .26rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgb(255, 66, 52, 0.7), rgb(255, 66, 52, 0));
}

.game_title img {
    width: .24rem;
    height: .26rem;
    margin-left: 0.1rem;
}

.game_title_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game_title_item img {
    width: .78rem;
    height: .16rem;
    margin-right: .1rem;
}

/* 标题颜色变体 */
.pink {
    background: linear-gradient(to right, rgb(241, 75, 180, 0.7), rgb(241, 75, 180, 0));
}

.purple {
    background: linear-gradient(to right, rgb(137, 16, 191, 0.7), rgb(137, 16, 191, 0));
}

/* ==================== 页面标题样式 ==================== */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.section-title {
    font-size: 0.8rem;
    /* 添加浅色渐变文字效果 */
    background: linear-gradient(135deg, #f8fafc, #64ffda); /* 从浅灰到霓虹青色的渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    /* 添加文字阴影以增强可读性 */
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.all-link {
    font-size: 0.4rem;
    color: #007bff;
    text-decoration: none;
}

/* ==================== 广告样式 ==================== */
.banner-ad {
    width: 100vw;
    min-height: 200px;
    text-align: center;
    color: #b9b9b9;
    font-size: 0.2rem;
}

.banner-ad-pc {
    margin: .2rem 0;
    width: 100vw;
    text-align: center;
    color: #b9b9b9;
    min-height: 3rem;
    font-size: 0.2rem;
    display: block;
}

.detail-banner-ad {
    color: #b9b9b9;
    text-align: center;
    font-size: 0.2rem;
}

.detail-banner-ad-pc {
    width: 50%;
    margin: .1rem 0;
    font-size: .4rem;
    text-align: center;
    display: block;
}



/* ==================== 游戏详情页样式 ==================== */
.game-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-header {
    display: flex;
    align-items: flex-start;
    padding: .2rem;
}

.home-game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-info {
    flex: 1;
}

.detail-title {
    font-size: .42rem;
    margin: 0;
    margin-bottom: 0.1rem;
    color: #696969;
}

.detail-description {
    color: #A5A5A5;
    font-size: .18rem;
    margin-bottom: .2rem;
    min-height: .8rem;
    height: .8rem;
    overflow: hidden;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    height: .52rem;
    overflow: hidden;
}

.tag {
    padding: 0.05rem .1rem;
    margin-right: 0.2rem;
    font-size: .2rem;
    margin-bottom: 0.5rem;
    border: 2px dashed #C5C5C5;
    color: #828080;
}

.detail-img {
    width: 100%;
    padding: .1rem;
}

.game-image img {
    width: 100%;
    display: block;
}

.game-stats {
    background: #EBEBEB;
    display: flex;
    justify-content: start;
    font-size: .25rem;
    height: .6rem;
    align-items: center;
    color: #696969;
}

.like-percentage {
    margin: 0 .2rem;
}

.votes {
    margin-left: 1.2rem;
}

.play_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.play-button {
    display: block;
    width: 97%;
    padding: .18rem .31rem;
    font-size: .38rem;
    margin: 0.1rem .1rem .1rem .1rem;
    background: #FF8076;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    text-align: center;
}

.pcPlay {
    padding: 0;
    margin: 0 auto;
    background-color: #000;
    text-align: center;
    position: relative;
    background: #000;
    height: 12rem;
    width: 100%;
}

.play_game {
    width: 100%;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #cccccc;
}

.left_back {
    width: 1.3rem;
    height: .94rem;
    background-color: rgba(255, 255, 255, 0.3);
    position: fixed;
    border-radius: 0 30% 30% 0;
    top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.left_back_image {
    width: .9rem;
    height: .9rem;
    margin-right: -10%;
    border-radius: 50%;
}

/* ==================== 弹出层样式 ==================== */
.overflow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, .7);
}

.ads-close {
    display: flex;
    justify-content: right;
    padding-right: 3.06122vw;
    color: #dbdbdb;
    font-size: .8rem;
    width: 8%;
    float: right;
}

.dialog {
    z-index: 2000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 127.55102vw !important;
    overflow: hidden;
    font-size: 4.08163vw;
    background-color: #fff;
    color: #ccc;
    border-radius: 2vw;
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
    transition: .3s;
    transition-property: transform, opacity;
}

/* ==================== 友情链接样式 ==================== */
.friend_link {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.friend_link a {
    flex: 0 0 29%;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
}

/* ==================== 响应式设计 - 桌面端 ==================== */
@media screen and (min-width: 1260px) {
    .game_title {
        width: 75%;
    }

    .game-icon {
        width: 5rem;
        height: 5rem;
        margin-right: .4rem;
    }

    .detail-title {
        font-size: .6rem;
    }

    .detail-description {
        min-height: 2.8rem;
        font-size: .3rem;
        height: 2.8rem;
    }

    .tag {
        font-size: .4rem;
        color: #828080;
    }

    .game-header-ad {
        width: 75%;
        display: flex;
        flex-direction: row;
    }

    .game-header {
        width: 50%;
    }

    .play_game {
        display: none;
    }

    .detail-img {
        width: 45%;
        display: block;
        overflow: hidden;
    }

    .game-image {
        width: 100%;
    }

    .game-image img {
        width: 100%;
        max-height: 12rem;
    }

    .play-button {
        width: 44.5%;
        padding: .2rem .21rem;
    }

    .detail-banner-ad {
        display: none;
    }

    .dialog {
        width: 40%;
        height: 30vw !important;
    }

    .ads-close {
        padding-right: 1.5vw;
        font-size: .8rem;
    }
}

/* ==================== 响应式设计 - 大屏PC ==================== */
@media screen and (min-width: 1600px) {
    .grid-container {
        grid-template-columns: repeat(8, 1fr); /* 超大屏幕8列 */
    }
}

/* ==================== 响应式设计 - 中屏PC ==================== */
@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(5, 1fr); /* 中屏幕5列 */
    }
}

/* ==================== 响应式设计 - 小屏PC/平板 ==================== */
@media screen and (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 小屏幕4列 */
    }
}

/* ==================== 响应式设计 - 平板 ==================== */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 平板3列 */
        gap: 10px;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.05rem;
        padding: 0.1rem 0.3rem;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 0.05rem;
    }
    
    .search-container {
        width: 100%;
    }

}

/* ==================== 响应式设计 - 手机端 ==================== */
  @media screen and (max-width: 480px) {
      header {
          padding: 0.02rem 0; /* 减小垂直内边距，使元素向上移动 */
      }
      .grid-container {
          grid-template-columns: repeat(2, 1fr); /* 手机2列 */
          gap: 8px;
      }
      
      .category-filters {
          gap: 0.1rem;
      }
      
      .category-btn {
          padding: 0.1rem 0.2rem;
          font-size: 0.25rem;
      }
      
      .section-header {
          flex-direction: column;
          gap: 0.2rem;
          text-align: center;
      }
      

      .game-detail {
          padding: 0.2rem;
      }

      .game-header {
          padding: 0.15rem;
      }

      .game-icon {
          width: 1.8rem;
          height: 1.8rem;
      }

      .detail-title {
          font-size: 0.38rem;
      }

      .detail-description {
          font-size: 0.17rem;
      }

      .tag {
          padding: 0.04rem 0.08rem;
          font-size: 0.18rem;
      }

      .play-button {
          padding: 0.15rem 0.28rem;
          font-size: 0.36rem;
      }
      
      .game-list {
          padding: 0 1%;
      }

      .hot_game {
          width: 100%;
          flex-direction: column;
          align-items: center;
      }

      .hot_game_item {
          width: 95%;
          flex-direction: row;
          align-items: center;
      }

      .game-icon {
          margin-left: 0.1rem;
      }

      .game-description {
          margin-right: 0;
      }

      .pcPlay {
          display: none;
      }

      .game-header-ad {
          display: flex;
          flex-direction: column;
          width: 100%;
      }

      .banner-ad-pc {
          display: none;
      }

      .detail-banner-ad-pc {
          display: none;
      }

      /* 移动端特殊样式 */

      .game-detail {
          padding: 0.2rem;
      }

      .game-header {
          padding: 0.15rem;
      }

      .game-icon {
          width: 1.8rem;
          height: 1.8rem;
      }

      .detail-title {
          font-size: 0.38rem;
      }

      .detail-description {
          font-size: 0.17rem;
      }

      .tag {
          padding: 0.04rem 0.08rem;
          font-size: 0.18rem;
      }

      .play-button {
          padding: 0.15rem 0.28rem;
          font-size: 0.36rem;
      }
    }
  }
}