/* =========================================
   GameBox 前台样式 - 共享样式表
   ========================================= */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --accent: #00cec9;
    --accent-dark: #00b5b0;
    --danger: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
    --vip-gold: #f9ca24;
    --dark: #1a1a2e;
    --darker: #2d2d44;
    --card: #ffffff;
    --card-hover: #f5f5f7;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --border: rgba(0,0,0,0.08);
    --border-light: rgba(0,0,0,0.04);
    --text: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #6e7094;
    --text-dim: #8a8a9a;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-accent: linear-gradient(135deg, var(--accent), #00b894);
    --gradient-warning: linear-gradient(135deg, #f9ca24, #f0932b);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0); }

html, body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: #f0f1f3;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

body { padding-top: 64px; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

.clearfix::after { content: ''; display: block; clear: both; }

/* 通用容器 */
.container { max-width: 1406px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 - 透明背景 */
.header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 导航条滚动变色 - 标题下方图片时变为半透明毛玻璃 */
.header.scrolled-over-hero {
    background: rgba(255,255,255,0.35);
    border-bottom-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* 导航条暗色模式 - 暗色背景时切换为白色文字+深色半透明背景 */
.header.nav-dark-mode {
    background: rgba(0,0,0,0.45);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header.nav-dark-mode .logo { color: #fff; }
.header.nav-dark-mode .logo span { -webkit-text-fill-color: #fff; }

.header.nav-dark-mode .nav-item > a { color: rgba(255,255,255,0.85); }
.header.nav-dark-mode .nav-item > a:hover,
.header.nav-dark-mode .nav-item > a.active { color: #fff; background: rgba(255,255,255,0.1); }

.header.nav-dark-mode .nav-arrow { color: rgba(255,255,255,0.5); }
.header.nav-dark-mode .menu-icon { filter: brightness(2); }

.header.nav-dark-mode .search-bar { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.header.nav-dark-mode .search-bar input { color: #fff; }
.header.nav-dark-mode .search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.header.nav-dark-mode .search-bar .search-icon { color: rgba(255,255,255,0.5); }

.header.nav-dark-mode .header-right .btn-outline { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.header.nav-dark-mode .header-right .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header.nav-dark-mode .user-avatar { border-color: rgba(255,255,255,0.3); }

.header.nav-dark-mode .nav-dropdown { background: rgba(20,20,40,0.95); border-color: rgba(255,255,255,0.08); }
.header.nav-dark-mode .dropdown-header { border-bottom-color: rgba(255,255,255,0.08); }
.header.nav-dark-mode .dropdown-header h4 { color: #fff; }
.header.nav-dark-mode .dropdown-header p { color: rgba(255,255,255,0.5); }
.header.nav-dark-mode .dropdown-item { color: rgba(255,255,255,0.75); }
.header.nav-dark-mode .dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    overflow: visible;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 160px;
}

.logo-icon {
    width: 43px;
    height: 43px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; flex-shrink: 0; }

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #4a4a5a;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.25s;
}

.nav-item > a.active {
    color: rgb(36, 104, 242);
    font-weight: 600;
    background: none;
}

.nav-item > a:hover {
    color: rgb(36, 104, 242);
    background: none;
}

/* 菜单图标放大效果 */
.menu-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-item > a:hover .menu-icon {
    transform: scale(1.25);
}

.nav-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s;
    color: #4a4a5a;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* 导航下拉菜单 - 1406宽度 */
.nav-dropdown {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 1406px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-radius: 0 0 16px 16px;
    padding: 20px 40px 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 下拉菜单标题区域 */
.dropdown-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dropdown-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.dropdown-desc {
    font-size: 13px;
    color: #999;
}

.dropdown-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #4a4a5a;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* 悬停从左到右蓝底白字效果 */
.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgb(36, 104, 242);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 10px;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item:hover {
    color: #ffffff;
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(36, 104, 242, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.dropdown-item:hover .dropdown-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.dropdown-text {
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav .vip-badge {
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.header-right { display: flex; align-items: center; gap: 12px; min-width: 200px; flex-shrink: 0; justify-content: flex-end; }

/* 登录注册按钮横排 */
.header-right .btn { white-space: nowrap; }
.header-right .btn + .btn { margin-left: 0; }

.user-menu { position: relative; cursor: pointer; }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(108,92,231,0.2);
}

.user-avatar.vip {
    border-color: #f9ca24;
    box-shadow: 0 0 10px rgba(249,202,36,0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    width: 200px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    display: none;
    z-index: 200;
}

.user-menu:hover .user-dropdown { display: block; }

/* 防止鼠标从头像移到菜单时丢失hover */
.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    transition: background 0.15s;
}

.user-dropdown a:hover { background: rgba(108,92,231,0.06); color: #6c5ce7; }
.user-dropdown .divider { border-top: 1px solid rgba(0,0,0,0.06); margin: 4px 0; }

/* 搜索框 */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 25px;
    padding: 0 16px;
    height: 42px;
    width: 320px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #1a1a2e;
    font-size: 14px;
    padding: 0 8px;
}

.search-bar input::placeholder { color: #999; }

.search-bar button {
    background: none;
    border: none;
    color: #6c5ce7;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

/* 搜索下拉 */
.search-wrap {
    position: relative;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 400px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}

.search-group { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.search-group:last-of-type { border-bottom: none; }

.search-group-title {
    padding: 6px 16px 4px;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-more {
    color: #6c5ce7;
    font-weight: normal;
    font-size: 12px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}
.search-item:hover { background: rgba(108,92,231,0.06); }

.search-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.search-info { flex: 1; min-width: 0; }

.search-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.search-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #6c5ce7;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
}
.search-footer:hover { background: rgba(108,92,231,0.04); }

.search-loading, .search-empty {
    padding: 24px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 轮播图 */
.banner-section { padding: 24px 0; }

.banner-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    background: var(--card);
}

.banner-slider .slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slider .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 48px;
    background: linear-gradient(135deg, #f0f2f8 0%, #f0f2ff 100%);
}

.banner-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(240,242,248,0.92) 0%, rgba(240,242,248,0.3) 60%, transparent 100%);
}

.banner-slider .slide-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.banner-slider .slide-tags { display: flex; gap: 8px; margin-bottom: 16px; }

.banner-slider .slide-tag {
    padding: 4px 12px;
    background: rgba(108,92,231,0.06);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
}

.banner-slider .slide h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.banner-slider .slide p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.banner-slider .slide .cover-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active { width: 24px; border-radius: 4px; background: var(--accent); }

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.banner-nav:hover { background: var(--primary); border-color: var(--primary); }
.banner-nav.prev { left: 16px; }
.banner-nav.next { right: 16px; }

/* 分类导航 */
.category-nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.category-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 8px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-btn:hover { border-color: var(--primary); color: var(--accent); }

.cat-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    font-weight: 500;
}

/* 游戏卡片 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* 游戏卡片样式 - 已整合到下方增强样式区域 */

/* 用户下拉菜单兼容 */
.user-dropdown.show { display: block; }

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .more {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 列表页面 */
.page-section { padding: 32px 0; }

.page-header {
    background: linear-gradient(135deg, #f0f2f8, #ffffff);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* 游戏详情 */
.game-detail-wrap { padding: 32px 0; }

.game-detail-header {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.game-cover-wrap {
    width: 280px;
    height: 370px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f2f8, #f0f2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    position: relative;
}

.game-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }

.game-detail-info { flex: 1; }

.game-detail-info h1 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }

.game-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.tag-vip { background: rgba(249,202,36,0.12); color: #f9ca24; border: 1px solid rgba(249,202,36,0.3); }
.tag-hot { background: rgba(255,71,87,0.1); color: #ff4757; }
.tag-new { background: rgba(46,213,115,0.1); color: #2ed573; }

.game-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(108,92,231,0.06);
    border-radius: 12px;
    border: 1px solid rgba(108,92,231,0.06);
}

.game-price { font-size: 32px; color: var(--danger); font-weight: 700; }
.game-price.free { color: var(--accent); font-size: 28px; }
.game-ori-price { color: var(--text-dim); font-size: 16px; text-decoration: line-through; }
.game-price-tip { color: var(--text-muted); font-size: 13px; }

.game-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item .label { color: var(--text-dim); }
.meta-item .val { color: var(--text); }

.game-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 游戏描述 */
.game-desc-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.game-desc-box h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 评论区/截图 */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.screenshots-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshots-grid img:hover { transform: scale(1.03); }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--primary); color: var(--accent); }
.pagination .active { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* 表单 */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus { outline: none; border-color: var(--primary); }
.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-tip { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* 用户中心 */
.user-center { padding: 32px 0; }

.user-center-layout { display: flex; gap: 24px; }

.user-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.user-sidebar .user-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 12px;
    font-weight: 700;
}

.user-card .nickname { font-size: 17px; font-weight: 600; margin-bottom: 4px; }

.vip-badge-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
}

.vip-badge-display.level-0 { background: rgba(0,0,0,0.08); color: var(--text-muted); }
.vip-badge-display.level-1 { background: rgba(108,92,231,0.06); color: #a29bfe; }
.vip-badge-display.level-2 { background: rgba(0,206,201,0.12); color: var(--accent); }
.vip-badge-display.level-3 { background: rgba(249,202,36,0.2); color: #f9ca24; }
.vip-badge-display.level-4 { background: linear-gradient(135deg, #f9ca24, #f0932b); color: #fff; }

.side-nav { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--text-muted);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.side-nav a:hover { background: rgba(108,92,231,0.06); color: var(--accent); border-left-color: var(--primary); }
.side-nav a.active { background: rgba(108,92,231,0.08); color: var(--accent); border-left-color: var(--accent); }

.user-main { flex: 1; }

/* 卡片盒子 */
.card-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.card-box .box-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 统计数字 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card .num { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.04);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tr:hover td { background: rgba(108,92,231,0.04); }
.data-table tr:last-child td { border-bottom: none; }

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.pending { background: rgba(255,165,2,0.1); color: #ffa502; }
.status-tag.paid, .status-tag.success { background: rgba(46,213,115,0.1); color: #2ed573; }
.status-tag.cancelled, .status-tag.closed { background: rgba(128,128,160,0.15); color: var(--text-muted); }
.status-tag.refunded { background: rgba(255,71,87,0.1); color: #ff4757; }
.status-tag.processing { background: rgba(0,206,201,0.1); color: var(--accent); }

/* 登录注册页 */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    padding: 48px 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(108,92,231,0.08);
    filter: blur(100px);
    top: -200px;
    right: -100px;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0,206,201,0.12);
    filter: blur(100px);
    bottom: -200px;
    left: -100px;
}

.auth-box {
    width: 420px;
    padding: 48px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

.auth-box .auth-title { text-align: center; margin-bottom: 32px; }
.auth-box .auth-title .logo-lg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
}
.auth-box .auth-title h2 { font-size: 24px; font-weight: 700; }
.auth-box .auth-title p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.auth-box .form-group { margin-bottom: 18px; }
.auth-box .form-control { height: 46px; }

.auth-box .btn-submit { width: 100%; height: 46px; font-size: 15px; letter-spacing: 2px; border: none; outline: none; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }

.auth-box .auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* 游戏详情页广告位 */
.game-side-ads {
    margin-top: 24px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.game-side-ads h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}
.game-side-ads .ads-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.game-side-ads .ad-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.game-side-ads .ad-item:hover {
    background: var(--card-hover);
    transform: translateX(4px);
}
.game-side-ads .ad-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.game-side-ads .ad-item span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏详情页广告位 - 竖向列表 */
.game-side-ads .ad-item-vertical {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.game-side-ads .ad-item-vertical:hover {
    background: var(--card-hover);
    transform: translateX(4px);
}
.game-side-ads .ad-item-vertical img {
    width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.game-side-ads .ad-item-vertical span {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.game-side-ads .ads-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 游戏详情页两栏布局 */
.game-detail-layout {
    display: flex;
    gap: 24px;
}
.game-detail-layout .main-content {
    flex: 1;
    min-width: 0;
}
.game-detail-layout .sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    width: 440px;
    max-width: 90vw;
}

.modal-box h2 { font-size: 20px; margin-bottom: 20px; text-align: center; }

/* 支付方式 */
.pay-methods { display: flex; gap: 12px; margin: 20px 0; }

.pay-method {
    flex: 1;
    padding: 16px;
    background: rgba(0,0,0,0.04);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 28px;
}

.pay-method:hover { border-color: var(--primary); }

.pay-method.active { border-color: var(--accent); background: rgba(0,206,201,0.05); }

.pay-method span { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 底部 */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #666; font-size: 13px; line-height: 1.8; }

.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #333; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #666; font-size: 13px; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 公告栏 */
.announcement-bar {
    background: linear-gradient(90deg, rgba(108,92,231,0.06), rgba(0,206,201,0.08));
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.announcement-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-tag {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.announcement-tag.type-1 { background: rgba(108,92,231,0.06); color: #a29bfe; }
.announcement-tag.type-2 { background: rgba(255,165,2,0.15); color: #ffa502; }
.announcement-tag.type-3 { background: rgba(255,71,87,0.2); color: #ff4757; }

.announcement-content { flex: 1; color: var(--text-muted); font-size: 13px; }

/* VIP套餐 */
.vip-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.vip-plan {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.vip-plan:hover { border-color: var(--primary); transform: translateY(-4px); }

.vip-plan.popular { border-color: var(--primary); position: relative; }
.vip-plan.popular::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 10px;
}

.vip-plan .plan-icon { font-size: 40px; margin-bottom: 12px; }
.vip-plan .plan-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.vip-plan .plan-days { color: var(--text-dim); font-size: 12px; margin-bottom: 16px; }
.vip-plan .plan-price { font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.vip-plan .plan-price span { font-size: 14px; }
.vip-plan .plan-ori { color: var(--text-dim); font-size: 13px; text-decoration: line-through; margin-bottom: 16px; }
.vip-plan .plan-desc { color: var(--text-muted); font-size: 12px; }

/* 工具提示 */
.tip { color: var(--text-dim); font-size: 12px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .nav { display: none; }
    .search-bar { width: 100%; order: 3; }
    .banner-slider { height: 220px; }
    .banner-slider .slide h2 { font-size: 22px; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .game-detail-header { flex-direction: column; }
    .game-cover-wrap { width: 100%; height: 260px; }
    .user-center-layout { flex-direction: column; }
    .user-sidebar { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   ��ǿ��ʽ - ���� gmmr.cn ����
   ========================================= */

/* ���ർ����ǿ */
.category-nav {
    margin: 24px 0;
    background: var(--card);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--accent);
}

.cat-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 500;
}

/* ��Ϸ��Ƭ��ǿ */
.game-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(108,92,231,0.12);
}

.game-card .card-cover {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #f0f2f8, #f0f2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    overflow: hidden;
}

.game-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .card-cover img {
    transform: scale(1.05);
}

.game-card .vip-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.game-card .price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.game-card .price-tag.free {
    background: var(--success);
}

.game-card .card-info {
    padding: 16px;
}

.game-card .card-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card .card-meta {
    display: flex;
    gap: 12px;
    color: var(--text-dim);
    font-size: 12px;
}

/* ҳ��������ǿ */
.page-section {
    margin: 32px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .more {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.section-title .more:hover {
    color: var(--accent);
}

/* ���������ʽ��ǿ */
.box-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ��Ƭʽ���� */
.card-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

/* =========================================
   全站 Page Hero - 黑色渐变背景+白色文字+左对齐
   ========================================= */
.page-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #2d1b4e 100%);
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 104, 242, 0.4), transparent);
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(36, 104, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* page-header-section 也统一（games.php等使用） */
.page-header-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #2d1b4e 100%);
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 104, 242, 0.4), transparent);
}

.page-header-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(36, 104, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header-section h1 {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.page-header-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108,92,231,0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(108,92,231,0.4);
    color: var(--primary-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,92,231,0.1);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--dark);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,206,201,0.4);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 10px 10px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* VIP�ײͿ�Ƭ��ǿ */
.vip-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vip-plan {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.vip-plan:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(108,92,231,0.06);
}

.vip-plan.popular {
    border-color: var(--warning);
    background: linear-gradient(180deg, rgba(249,202,36,0.08) 0%, var(--card) 100%);
}

.vip-plan.popular::before {
    content: '���ܻ�ӭ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-warning);
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.vip-plan .plan-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vip-plan .plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vip-plan .plan-days {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 20px;
}

.vip-plan .plan-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.vip-plan .plan-ori {
    color: var(--text-dim);
    font-size: 14px;
    text-decoration: line-through;
    margin-bottom: 20px;
}

.vip-plan .plan-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* �ײ���ǿ */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand p {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ҳ��ͷ����ǿ */
.page-header {
    padding: 60px 0;
    text-align: center;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ��Ӧʽ */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .nav { display: none; }
    .search-bar { width: 100%; order: 3; }
    .banner-slider { height: 220px; }
    .banner-slider .slide h2 { font-size: 22px; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .game-card .card-cover { height: 180px; }
    .game-detail-header { flex-direction: column; }
    .game-cover-wrap { width: 100%; height: 260px; }
    .user-center-layout { flex-direction: column; }
    .user-sidebar { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .vip-plans { grid-template-columns: 1fr; }
}
