/* ========================================
   GMG游戏元宇宙 - 全局样式表
   官网: http://www.xmzbc.cn
   ======================================== */

:root {
    --gmg-primary: #00f0ff;
    --gmg-secondary: #ff00ff;
    --gmg-accent: #7b2dff;
    --gmg-dark: #0a0a0f;
    --gmg-darker: #050508;
    --gmg-card: rgba(20, 20, 35, 0.8);
    --gmg-glow: rgba(0, 240, 255, 0.5);
    --gmg-neon-pink: rgba(255, 0, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gmg-darker);
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   背景效果
   ======================================== */
.gmg-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(123, 45, 255, 0.05) 0%, transparent 60%);
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    perspective: 500px;
}

.grid-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0, 240, 255, 0.1);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gmg-primary), var(--gmg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-brand::before {
    content: '🎮';
    margin-right: 0.5rem;
    -webkit-text-fill-color: initial;
}

.nav-link {
    color: #a0a0a0 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gmg-primary) !important;
    text-shadow: 0 0 10px var(--gmg-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gmg-primary), var(--gmg-secondary));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--gmg-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   页面标题区域
   ======================================== */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--gmg-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #808090;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   按钮样式
   ======================================== */
.btn-gmg-primary {
    background: linear-gradient(135deg, var(--gmg-primary), var(--gmg-accent));
    border: none;
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    text-decoration: none;
}

.btn-gmg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-gmg-primary:hover::before {
    left: 100%;
}

.btn-gmg-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.6);
    color: #000;
}

.btn-gmg-outline {
    background: transparent;
    border: 2px solid var(--gmg-primary);
    color: var(--gmg-primary);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    text-decoration: none;
}

.btn-gmg-outline:hover {
    background: var(--gmg-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

/* ========================================
   卡片样式
   ======================================== */
.gmg-card {
    background: var(--gmg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.gmg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gmg-primary), var(--gmg-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.gmg-card:hover::before {
    transform: scaleX(1);
}

.gmg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.4);
}

/* ========================================
   统计数据
   ======================================== */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gmg-primary), var(--gmg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--gmg-glow);
}

.stat-label {
    color: #808090;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   粒子效果
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gmg-primary);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 6px var(--gmg-primary);
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   加载动画
   ======================================== */
.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 240, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gmg-primary), var(--gmg-secondary));
    width: 0%;
    animation: loading 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gmg-glow);
}

@keyframes loading {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

/* ========================================
   滚动条
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gmg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gmg-primary), var(--gmg-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gmg-secondary), var(--gmg-primary));
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb-section {
    padding: 120px 0 30px;
    background: rgba(20, 20, 35, 0.5);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #808090;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-item.active {
    color: var(--gmg-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #505060;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.page-link {
    background: var(--gmg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: #808090;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--gmg-primary);
    color: var(--gmg-primary);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--gmg-primary), var(--gmg-accent));
    border-color: transparent;
    color: #000;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gmg-darker);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 80px 0 30px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gmg-primary), var(--gmg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-desc {
    color: #505060;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gmg-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gmg-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #505060;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--gmg-primary);
    padding-left: 5px;
}

.footer-links a::before {
    content: '>';
    font-size: 0.8rem;
    color: var(--gmg-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    color: #404050;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 991px) {
    .page-title { font-size: 2.2rem; }
    .stat-number { font-size: 2.5rem; }
}

@media (max-width: 767px) {
    .page-title { font-size: 1.8rem; }
    .page-header { padding: 120px 0 60px; }
    .btn-gmg-outline { margin-left: 0; margin-top: 1rem; }
}
