﻿/* ============================================================
   gamers520 - 全新设计样式
   设计风格：暖色调游戏商店 / Vibrant Gaming Store
   主色：珊瑚橙 → 金色渐变，辅助：青色
   区别于音效网站的青紫霓虹+粒子背景风格
   ============================================================ */

:root {
    /* 背景色系 - 深色暖调 */
    --bg-primary: #0f1320;
    --bg-secondary: #161b2e;
    --bg-tertiary: #1e2540;
    --bg-card: rgba(30, 37, 64, 0.6);

    /* 文字色系 */
    --text-primary: #f5f7fa;
    --text-secondary: #9ca8c4;
    --text-muted: #63708f;

    /* 强调色 - 暖色珊瑚橙渐变 */
    --accent-primary: #ff6b35;
    --accent-secondary: #feca57;
    --accent-cyan: #48dbfb;
    --accent-pink: #ff2e63;
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ff2e63 50%, #feca57 100%);
    --gradient-cool: linear-gradient(135deg, #48dbfb, #0abde3);
    --gradient-card: linear-gradient(145deg, rgba(30,37,64,0.7), rgba(22,27,46,0.9));

    /* 边框 & 阴影 */
    --border-color: rgba(255, 107, 53, 0.15);
    --border-glow: rgba(255, 107, 53, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 24px rgba(255, 107, 53, 0.2);

    /* 圆角 */
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;

    /* 字体 */
    --font-display: 'Anton', 'Bebas Neue', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 64px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景光晕 - 替代粒子画布 */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(72, 219, 251, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -3%) scale(1.1); }
    66% { transform: translate(-3%, 5%) scale(0.95); }
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== 导航栏 ==================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(15, 19, 32, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==================== 面包屑 ==================== */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 32px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* ==================== Hero 横幅 ==================== */
.hero {
    position: relative;
    z-index: 1;
    padding: 48px 32px 40px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* 横幅渐变背景层 */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(15,19,32,0.92) 0%, rgba(15,19,32,0.6) 45%, rgba(15,19,32,0.2) 100%),
        radial-gradient(circle at 80% 50%, rgba(255,107,53,0.25), transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(72,219,251,0.15), transparent 40%);
    z-index: 1;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 56px 56px;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--accent-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: none;
}

.hero-btn.primary {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.45);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.hero-btn.secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(72, 219, 251, 0.08);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== 通用区块 ==================== */
.section {
    position: relative;
    z-index: 1;
    padding: 56px 32px;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}

/* ==================== 搜索框 ==================== */
.search-bar {
    max-width: 640px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== 分类标签 ==================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.cat-btn:hover {
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--accent-secondary);
    background: rgba(255, 107, 53, 0.06);
}

.cat-btn.active {
    background: var(--gradient-warm);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

/* ==================== 排序栏 ==================== */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -20px 0 30px;
    flex-wrap: wrap;
}

.sort-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.sort-btn:hover {
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--accent-secondary);
    background: rgba(255, 107, 53, 0.06);
}

.sort-btn.active {
    background: var(--gradient-warm);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

/* ==================== 游戏卡片网格（横向16:9） ==================== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.game-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* 横向封面 16:9 */
.game-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.game-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-cover img {
    transform: scale(1.06);
}

.game-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2540, #161b2e);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.game-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.game-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: var(--gradient-warm);
    color: #fff;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.game-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    flex: 1;
}

.game-card-tag {
    padding: 2px 8px;
    background: rgba(72, 219, 251, 0.08);
    border: 1px solid rgba(72, 219, 251, 0.15);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent-cyan);
}

.game-card-actions {
    display: flex;
    gap: 8px;
}

.game-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.game-card-btn.primary {
    background: var(--gradient-warm);
    color: #fff;
}

.game-card-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.game-card-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.game-card-btn.secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ==================== 分页 ==================== */
.pagination-wrap {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.page-btn.active {
    background: var(--gradient-warm);
    color: #fff;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ==================== 页脚 ==================== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 32px 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer a {
    color: var(--accent-primary);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-secondary);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* ==================== 空状态 ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: rgba(30, 37, 64, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 200;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-content {
        padding: 44px 40px;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 32px 20px 32px;
    }

    .hero-banner {
        min-height: auto;
    }

    .hero-content {
        padding: 36px 28px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-stats {
        gap: 28px;
    }

    .section {
        padding: 40px 20px;
    }

    .breadcrumb {
        padding: 76px 20px 12px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .game-card-body {
        padding: 12px;
    }

    .game-card-title {
        font-size: 0.95rem;
    }

    .game-card-meta {
        font-size: 0.72rem;
        gap: 10px;
    }

    .game-card-actions {
        flex-direction: column;
    }

    .cat-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat-num {
        font-size: 1.6rem;
    }
}

/* ==================== 手机游戏平台角标 ==================== */
.game-card-platform{position:absolute;top:10px;right:10px;padding:4px 10px;background:rgba(6,214,160,.85);color:#041310;border-radius:4px;font-size:.72rem;font-weight:700;letter-spacing:.5px}
.mobile-note{color:var(--text-muted);font-size:.85rem;margin:-8px 0 24px;line-height:1.7}
