/* ---------------- 基础设置 & 字体 ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #9ca3af;
    --primary-cyan: #22d3ee;
    --primary-purple: #818cf8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* 科技网格背景 */
    background-image: 
        linear-gradient(rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.95)),
        linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- 语言切换逻辑 ---------------- */
/* 默认显示中文，隐藏英文 */
.lang-en { display: none; }
.lang-cn { display: inline-block; }

/* 当Body有 class="en-mode" 时，反转显示 */
body.en-mode .lang-cn { display: none; }
body.en-mode .lang-en { display: inline-block; }

/* ---------------- 导航栏 ---------------- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
}
.logo .icon { color: var(--primary-cyan); margin-right: 8px; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary-cyan); }

.nav-actions { display: flex; gap: 15px; align-items: center; }

.btn-lang {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.btn-lang:hover { border-color: var(--primary-cyan); color: var(--primary-cyan); }

.btn-primary {
    background: linear-gradient(90deg, #0891b2, #2563eb);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s;
    border: none; cursor: pointer;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }

/* ---------------- Hero Section ---------------- */
.hero-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* 隐藏溢出的SVG */
}

/* SVG 背景样式 */
#hero-svg-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
#hero-svg-bg .node {
    fill: var(--primary-cyan);
    transition: r 0.3s ease;
}
#hero-svg-bg .link {
    stroke: var(--primary-cyan);
    stroke-opacity: 0.3;
}

.glow {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
}
.glow-blue { background: var(--primary-cyan); top: 10%; left: 10%; }
.glow-purple { background: var(--primary-purple); bottom: 10%; right: 10%; }

.hero-grid {
    position: relative; /* 确保内容在SVG之上 */
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary-cyan);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}
.badge .dot {
    width: 8px; height: 8px; background: var(--primary-cyan);
    border-radius: 50%; margin-right: 8px;
    box-shadow: 0 0 8px var(--primary-cyan);
}

.main-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.text-neon {
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 30px; }

.cta-group { display: flex; gap: 15px; }
.btn-large { padding: 12px 30px; font-size: 16px; }
.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--primary-cyan); color: var(--primary-cyan); }

/* 手机演示区 */
.phone-frame {
    width: 280px; height: 560px;
    border: 8px solid #333;
    border-radius: 40px;
    background: #111;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.2);
}
.screen {
    height: 100%; 
    width: 100%;
    background: linear-gradient(135deg, #1e1b4b, #000);
    border-radius: 32px;
    /* --- 关键：为绝对定位的子元素提供参考 --- */
    position: relative; 
    /* -------------------------------------- */
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    color: white;
    padding-bottom: 20px;
    overflow: hidden; /* 确保内容不会溢出圆角 */
}
/* 确保初始视图也铺满整个屏幕，并让flex布局在内部起作用 */
#initial-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 将屏幕的 Flex 布局继承或重新应用到此容器，以居中内容 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px; /* 与屏幕的 padding 保持一致 */
}


/* Iframe 容器：用于加载游戏 */
.iframe-container {
    position: absolute; /* 绝对定位，相对于 .screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 确保它能覆盖初始视图 */
    background-color: #000;
}

/* 核心切换类 */
.hidden {
    display: none !important; 
}
/* Iframe 元素：铺满其父容器 (.iframe-container) */
#demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 退出按钮：定位在 Iframe 上方 */
#btn-exit-demo {
    position: absolute;
    bottom: 8%;
    right: 15px;
    z-index: 11; 
    border-radius: 15px !important;
    font-size: 14px;
    /* ... 按钮的美化样式 ... */
}
#btn-exit-demo {
    /* 基础样式 */
    background-color: #515151; /* 退出/危险操作常用的红色 */
    color: white; /* 文字颜色 */
    border: none; /* 移除默认边框 */
    padding: 10px; /* 内边距 */
   
    
    cursor: pointer; /* 鼠标悬停时显示手型 */
    border-radius: 8px; /* 柔和的圆角 */
    text-transform: uppercase; /* 文字大写 (可选) */
    outline: none; /* 移除点击时的焦点外框 */
    transition: all 0.3s ease; /* 所有属性变化时添加平滑过渡效果 */
  
    /* 阴影效果 (让按钮有立体感) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* 悬停（Hover）效果 */
  #btn-exit-demo:hover {
    background-color: #d32f2f; /* 悬停时颜色变深 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* 悬停时阴影略微变大 */
    transform: translateY(-1px); /* 略微向上抬起，增强交互感 */
  }
  
  /* 激活/点击（Active）效果 */
  #btn-exit-demo:active {
    background-color: #b71c1c; /* 点击时颜色变得更深 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 点击时阴影收缩，模拟按下效果 */
    transform: translateY(1px); /* 略微向下沉，模拟按下效果 */
  }
.game-icon { font-size: 60px; color: var(--primary-cyan); margin-bottom: 20px; }
.btn-play {
    background: #fbbf24; color: black;
    padding: 8px 24px; border-radius: 20px;
    font-weight: bold; cursor: pointer;
    margin-top: 20px;
    animation: bounce 1s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 手机内嵌数据统计 */
.phone-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    bottom: 20px;
}
.float-stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}
.value { font-size: 16px; font-weight: bold; }
.green { color: #4ade80; }
.cyan { color: var(--primary-cyan); }

/* ---------------- 数据 & 媒体 ---------------- */
.data-strip { position: relative; z-index: 1; background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 40px 0; }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.data-item .number { font-family: var(--font-head); font-size: 2.5rem; font-weight: bold; }
.plus { color: var(--primary-cyan); }
.data-item .label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* 跑马灯 */
.media-section { padding: 40px 0; background: black; overflow: hidden; position: relative; z-index: 1; }
.section-label { text-align: center; font-size: 14px; color: var(--text-muted); letter-spacing: 3px; margin-bottom: 30px; text-transform: uppercase; }
.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; }
.marquee-content span {
    display: inline-block;
    font-size: 20px; font-weight: bold; color: #555;
    margin: 0 40px;
    transition: color 0.3s;
}
.marquee-content span:hover { color: white; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------------- 解决方案 (V2 - Network) ---------------- */
.solutions-section { padding: 80px 0; background: linear-gradient(to bottom, #050505, #111827); position: relative; z-index: 1; }
.solutions-network-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 500px;
}
.solutions-info-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: all 0.5s ease;
}
.panel-content {
    transition: opacity 0.5s ease;
}
.panel-icon {
    font-size: 32px;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    display: block;
}
.panel-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.panel-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.solutions-network {
    position: relative;
    width: 100%;
    height: 500px;
}
.network-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-cyan) 0%, rgba(34, 211, 238, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 18px;
    color: white;
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.network-node {
    position: absolute;
    width: 100px; height: 100px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}
.network-node .node-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
}
.network-node .node-label {
    font-size: 12px;
    margin-top: 8px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.network-node:hover .node-icon {
    background: var(--primary-cyan);
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-cyan);
}
.network-node:hover .node-label {
    color: var(--primary-cyan);
}

.solutions-network.dimmed .network-node:not(:hover) {
    opacity: 0.3;
}
.solutions-network.dimmed .network-lines .line:not(.active) {
    stroke-opacity: 0.1;
}

.network-lines {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
}
.network-lines .line {
    stroke: var(--primary-cyan);
    stroke-width: 1;
    stroke-opacity: 0.4;
    transition: all 0.3s ease;
}
.network-lines .line.active {
    stroke-opacity: 1;
    stroke-width: 2;
}

/* ---------------- 核心优势 (Tabs) ---------------- */
.why-section { padding: 80px 0; position: relative; z-index: 1; }
.center-title { text-align: center; font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 50px; }

.why-tabs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--glass-border);
    padding-right: 20px;
}
.tab-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}
.tab-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}
.tab-link.active {
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary-cyan);
    border-color: rgba(34, 211, 238, 0.3);
}
.tab-link .icon {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.tabs-content .tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.tabs-content .tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 30px;
    align-items: center;
    opacity: 1;
}
.pane-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}
.pane-content .pain-point {
    color: #f87171;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}
.pane-content .solution-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.pane-svg {
    width: 100%;
    height: 200px;
}
.pane-svg svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ---------------- 联系我们 ---------------- */
.contact-section { padding: 80px 0; position: relative; z-index: 1; }
.contact-layout { display: flex; padding: 40px; gap: 50px; flex-wrap: wrap; }
.form-side { flex: 2; }
.info-side { flex: 1; border-left: 1px solid var(--glass-border); padding-left: 40px; display: flex; flex-direction: column; justify-content: center; }
.input-row { display: flex; gap: 15px; }
input, textarea {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px; color: white; margin-bottom: 15px;
    border-radius: 4px; font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary-cyan); }
.full-width { width: 100%; padding: 15px; margin-top: 10px; }
.qr-box { width: 150px; height: 150px; background: white; color: black; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-weight: bold; }

/* ---------------- 响应式适配 ---------------- */
@media (max-width: 992px) {
    .solutions-network-layout {
        grid-template-columns: 1fr;
    }
    .solutions-network {
        height: 400px;
        margin-top: 40px;
    }
    .why-tabs-layout {
        grid-template-columns: 1fr;
    }
    .tabs-nav {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 15px;
        overflow-x: auto;
    }
    .tab-link {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        font-size: 12px;
    }
    .tab-link .lang-en, .tab-link .lang-cn {
        white-space: nowrap;
    }
    .tabs-content .tab-pane.active {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pane-svg {
        margin: 20px auto 0;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* 移动端简单处理：隐藏菜单 */
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; }
    .hero-demo { order: 1; margin-bottom: 40px; }
    .subtitle { margin: 0 auto 30px; }
    .cta-group { justify-content: center; }
    .data-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { flex-direction: column; padding: 20px; }
    .info-side { border-left: none; padding-left: 0; border-top: 1px solid var(--glass-border); padding-top: 30px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2.8rem; }
    .data-grid { gap: 20px; }
    .data-item .number { font-size: 2rem; }
    .input-row { flex-direction: column; gap: 0; }
}
/* ==================================== */
/* 游戏案例展示模块样式 (最高科技感定制版) */
/* ==================================== */

/* --- 基础布局和主题 --- */
.game-showcase-section {
    padding: 80px 0 120px 0;
    /* 关键：升级背景，使用渐变和重复图案模拟高科技电路板纹理 */
    background-color: #050810; /* 更深邃的背景色 */
    background-image: 
        /* 蓝色点状星光 */
        radial-gradient(circle at 50% 50%, rgba(30, 200, 255, 0.05) 1px, transparent 0),
        /* 垂直细线 */
        repeating-linear-gradient(0deg, rgba(30, 200, 255, 0.02) 0px, rgba(30, 200, 255, 0.02) 1px, transparent 1px, transparent 20px),
        /* 水平细线 */
        repeating-linear-gradient(90deg, rgba(30, 200, 255, 0.02) 0px, rgba(30, 200, 255, 0.02) 1px, transparent 1px, transparent 20px);
    background-size: 20px 20px;
}

.text-neon-h2 {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.7), 0 0 15px rgba(0, 198, 255, 0.4);
}
/* ========================================================= */
/* 1. 结构与网格布局 (GRID LAYOUT) */
/* ========================================================= */
.game-showcase-section .center-title { margin-bottom: 10px; }
.game-showcase-section .case-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.game-showcase-grid.custom-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 35px 25px; 
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px; 
    position: relative;
    z-index: 2; 
}

.game-showcase-grid.custom-layout .center-item {
    grid-column: 2 / span 2; 
    justify-self: center; 
    width: 100%; 
    max-width: 300px;
}

/* ========================================================= */
/* 2. 模块核心样式和遮罩层 (MODULE & OVERLAY) */
/* ========================================================= */
.game-module {
    /* 基础结构 */
    position: relative;
    display: block;
    
    height: 400px; /* 示例高度 */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white; 
    background: rgba(18, 24, 42, 0.8); 

    /* 初始光晕/边框设置 */
    z-index: 1; 
    border: 1px solid transparent; 
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); 
    
    /* 关键过渡效果 */
    transition: 
        transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), /* 爆发式过渡 */
        box-shadow 0.4s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* 2A. 背景图片铺满 */
.module-cover {
    position: absolute; /* 绝对定位，覆盖整个父容器 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* 在底层 */
    transition: transform 0.4s ease-out; /* 悬停缩放过渡 */
}

/* 2B. 遮罩层 (使用 ::after 伪元素) */
.game-module::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 初始状态：半透明黑色遮罩 */
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 1; 
    pointer-events: none;
    /* 关键：悬停时的透明度过渡 */
    transition: opacity 0.3s ease-out;
}

/* 2C. 悬停时取消遮罩层 (实现您的需求) */
.game-module:hover::after {
    opacity: 0; /* 透明度变为 0，遮罩消失 */
}

/* ========================================================= */
/* 3. 信息面板样式 (INFO PANEL) */
/* ========================================================= */
.module-info {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px; 
    box-sizing: border-box;
    z-index: 2;
    color: #ffffff;
   
    background: none;
}

.game-title { margin: 0 0 5px 0; font-size: 1.5em; font-weight: 700; }
.game-stats { margin: 0; font-size: 0.9em; color: #c9e0ff; font-weight: 500;}

/* 圆形 RPG 标签 */
.game-tag-circle {
    position: relative;
    top: 10px;
    right: 15px;
  
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #3b82f6; 
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    z-index: 3; /* 确保它在最上面 */
}


/* ========================================================= */
/* 4. 悬停和颜色定义 (HOVER EFFECTS) */
/* ========================================================= */

/* 4A. 悬停时背景和内部光线效果 */
.game-module:hover .module-cover {
    transform: scale(1.02); 
}

/* 使用 ::before 制作内部科技光线/边框效果 (保留您之前的代码) */
.game-module::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset; 
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.game-module:hover::before {
    opacity: 1; 
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.1) inset,
        0 0 15px rgba(0, 198, 255, 0.2) inset; 
}

/* 4B. 蓝色霓虹光晕 */
.game-module.blue-neon:hover {
    transform: scale(1.08); 
    z-index: 10;
    box-shadow: 
        0 0 0 1px #00c6ff, 
        0 0 15px 3px rgba(0, 198, 255, 0.8), 
        0 20px 40px rgba(0, 0, 0, 0.6); 
}

/* 4C. 紫色霓虹光晕 */
.game-module.purple-neon:hover {
    transform: scale(1.08); 
    z-index: 10;
    box-shadow: 
        0 0 0 1px #c084fc, 
        0 0 15px 3px rgba(192, 132, 252, 0.8), 
        0 20px 40px rgba(0, 0, 0, 0.6); 
}

/* ========================================================= */
/* 5. 响应式调整 (RESPONSIVE) */
/* ========================================================= */
@media (max-width: 1366px) {
   
    .game-module {
        height: 320px;
    }
}
@media (max-width: 1024px) {
    .game-showcase-grid.custom-layout {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto; 
        gap: 25px;
    }
    .game-showcase-grid.custom-layout .center-item {
        grid-column: 1 / span 2; 
        max-width: 100%;
        margin: 0 auto;
    }
    .game-module:hover {
        transform: scale(1.08); /* 禁用 3D 旋转 */
    }
}

@media (max-width: 600px) {
    .game-showcase-grid.custom-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .game-showcase-grid.custom-layout .center-item {
        grid-column: 1 / span 1; 
    }
}
/* 3A. 遮罩层 (使用 ::before 伪元素，仅作用于 .module-info 区域) */
.module-info::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 遮罩颜色：半透明黑色 */
    background-color: rgba(0, 0, 0, 0.6); 
    /* 确保遮罩在信息内容和背景图之间 */
    z-index: 1; 
    pointer-events: none;
    transition: opacity 0.3s ease-out; /* 添加透明度过渡 */
}

/* 3B. 悬停时取消遮罩 */
.game-module:hover .module-info::before {
    opacity: 0; /* 遮罩消失 */
}

/* 3C. 确保信息内容在遮罩之上 */
.module-info > * {
    position: relative; /* 确保子元素（h3, p, div）高于 z-index: 1 的遮罩 */
    z-index: 2; 
}
/* 确保 .module-cover 已经设置了 transition */
.module-cover {
  
    transition: transform 0.4s ease-out; /* 保持原有的过渡 */
}

/* 悬停时，放大卡片的同时，背景图轻微下移和右移 */
.game-module:hover .module-cover {
    transform: scale(1.02) translate(3px, 3px); /* 放大 1.02，并向右下角平移 3px */
}
.module-info {
   
    transition: transform 0.3s ease-out; 
}

/* 悬停时，信息区向上轻微移动 */
.game-module:hover .module-info {
    transform: translateY(-5px); /* 向上移动 5 像素 */
}
/* 1. 成功与错误的提示样式 */
.tip {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none;
}
.success-style {
    background-color: #f0f9eb !important;
    border: 1px solid #e1f3d8 !important;
    color: #67c23a !important;
}
.error-style {
    background-color: #fef0f0 !important;
    border: 1px solid #fde2e2 !important;
    color: #f56c6c !important;
}

/* 2. Loading 旋转动画 */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3. 按钮禁用状态 */
.submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
