/**
 * main.css
 * ================================================
 * 网站基础样式定义文件
 * ------------------------------------------------
 * 功能说明：
 * 1. 定义CSS变量和全局色彩主题
 * 2. 设置基础页面样式（body、字体、背景等）
 * 3. 统一Tailwind CSS类的样式覆盖
 * 4. 定义LOGO特效和品牌视觉元素
 * 
 * 样式组织：
 * - CSS变量定义 (:root)
 * - 全局页面样式 (body, 背景渐变)
 * - 字体类重置 (.font-*, h1, h2, h3)
 * - 文本颜色类 (.text-white, .text-muted)
 * - LOGO白色发光特效 (.nav-logo)
 * 
 * 设计理念：
 * - 深色主题配色方案
 * - 现代游戏网站视觉风格
 * - 品牌色彩统一管理
 * - bg-color:#1f202f;#0e1029;#0a1540;#E0E4E9;
 * 
 * 版本: 1.0.4
 * 最后更新: 2025-01-XX
 */

/* 基础样式设置 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #0a0a0a;
    --game-container-bg: #1f2937;
    --game-title-bg: #026bff;
    --highlight-title: #d6fe51;
    --text-color: #f5f5f7;
    --text-secondary: #a0aec0;
    --accent-color: #fcd34d;
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
}

/* 全局通用样式 */
body {
    /* 背景图片
    background-image: url('../imgs/background-kid.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    */
    background-color: var(--background-color);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* 赛博朋克霓虹网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* 文本样式 */
h1, h2, h3, .font-teko {
    font-family: 'Nunito', sans-serif;
}

/* 游戏内容区域样式 - 已迁移到 game-content.css */

.text-white {
    color: var(--text-color);
}

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

.font-righteous {
    font-family: 'Nunito', sans-serif;
}

.font-russo {
    font-family: 'Nunito', sans-serif;
}

h1.font-righteous, 
.title-main {
    font-family: 'Nunito', sans-serif;
}

.font-pressstart {
    font-family: 'Nunito', sans-serif;
}

.font-vt323 {
    font-family: 'Nunito', sans-serif;
}

/* LOGO白色发光特效 */
.nav-logo {
    position: relative;
    z-index: 2;
}

/* LOGO背景: 光晕效果 */
/* .nav-logo::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 220px;
    background: radial-gradient(circle, rgba(245,245,247,0.35) 0%, rgba(245,245,247,0.0) 70%);
    filter: blur(24px);
    z-index: -1;
    pointer-events: none;
}   */

/* 回到顶部按钮样式 */
#to-top-button {
    position: fixed;
    right: 20px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    /* background: rgba(119,161,73,0.3); */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  #to-top-button.showButton {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.6s;
  }
  #to-top-button.hideButton {
    opacity: 0;
    pointer-events: none;
    animation: fadeOut 0.6s;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  /* 移动端适配 */
  @media (max-width: 600px) {
    #to-top-button {
      width: 40px;
      height: 40px;
      right: 16px;
      bottom: 30px;
    }
  }
  /* SVG箭头样式（可选，确保黄色） */
  #to-top-button svg {
    width: 100%;
    height: 100%;
    display: block;
  }