/* ============================================
   PG电子 - 像素复古街机风 主样式表
   CSS前缀: pg-
   ============================================ */

/* --- 字体引入 (本地化) --- */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/press-start-2p.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vt323.woff2') format('woff2');
}

/* --- 干扰码隐藏 --- */
.pixel-jammer-block { display: none; }

/* --- CSS变量 --- */
:root {
  --pg-primary: #1A1A2E;
  --pg-accent: #E94560;
  --pg-dark-blue: #0F3460;
  --pg-text: #E8E8E8;
  --pg-link: #E94560;
  --pg-font-heading: 'Press Start 2P', 'Microsoft YaHei', cursive;
  --pg-font-body: 'VT323', 'Microsoft YaHei', monospace;
  --pg-max-width: 1440px;
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--pg-primary);
  color: var(--pg-text);
  font-family: var(--pg-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--pg-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff6b81;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pg-font-heading);
  line-height: 1.4;
  color: var(--pg-text);
}

h1 { font-size: 1.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
}

/* --- 容器 --- */
.pg-container {
  width: 100%;
  max-width: var(--pg-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   导航栏
   ============================================ */
.pg-header {
  background-color: var(--pg-primary);
  border-bottom: 2px solid var(--pg-accent);
  box-shadow: inset 0 -1px 0 rgba(233,69,96,0.3);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
}

.pg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--pg-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.pg-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg-logo img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.pg-logo-text {
  font-family: var(--pg-font-heading);
  font-size: 0.9rem;
  color: var(--pg-accent);
  letter-spacing: 2px;
}

.pg-nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.pg-nav-links li a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--pg-font-heading);
  font-size: 0.55rem;
  color: var(--pg-text);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.pg-nav-links li a:hover {
  color: var(--pg-accent);
  animation: pg-pixel-shake 0.3s ease;
}

.pg-nav-links li a.pg-active {
  color: var(--pg-accent);
}

.pg-nav-links li a.pg-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 4px;
  background: var(--pg-accent);
}

/* 汉堡菜单 */
.pg-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: 2px solid var(--pg-accent);
}

.pg-hamburger span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--pg-accent);
}

@keyframes pg-pixel-shake {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
}

/* ============================================
   英雄横幅
   ============================================ */
.pg-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.pg-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0.6;
  z-index: 0;
}

.pg-hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

.pg-hero-title {
  font-size: 1.8rem;
  color: var(--pg-accent);
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(233,69,96,0.5);
  margin-bottom: 1rem;
  animation: pg-neon-flicker 3s infinite;
}

.pg-hero-subtitle {
  font-family: var(--pg-font-body);
  font-size: 1.4rem;
  color: var(--pg-text);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pg-neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

/* ============================================
   通用按钮
   ============================================ */
.pg-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--pg-font-heading);
  font-size: 0.7rem;
  color: var(--pg-text);
  background: var(--pg-accent);
  border: 3px solid var(--pg-accent);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg-btn:hover {
  background: transparent;
  color: var(--pg-accent);
  animation: pg-pixel-shake 0.3s ease;
}

.pg-btn-outline {
  background: transparent;
  color: var(--pg-accent);
}

.pg-btn-outline:hover {
  background: var(--pg-accent);
  color: var(--pg-text);
}

/* ============================================
   区块标题
   ============================================ */
.pg-section {
  padding: 3rem 0;
}

.pg-section-title {
  font-family: var(--pg-font-heading);
  font-size: 1.1rem;
  color: var(--pg-accent);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.pg-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--pg-accent);
}

/* ============================================
   游戏卡片网格
   ============================================ */
.pg-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.pg-game-card {
  background: var(--pg-dark-blue);
  border: 2px solid rgba(233,69,96,0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.pg-game-card:hover {
  border-color: var(--pg-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(233,69,96,0.2);
}

.pg-game-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  image-rendering: auto;
}

.pg-game-card-info {
  padding: 1rem;
}

.pg-game-card-info h3 {
  font-family: var(--pg-font-heading);
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--pg-accent);
}

.pg-game-card-info p {
  font-size: 1.1rem;
  color: rgba(232,232,232,0.7);
  margin-bottom: 0.8rem;
}

.pg-play-button {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-family: var(--pg-font-heading);
  font-size: 0.55rem;
  background: var(--pg-accent);
  color: var(--pg-text);
  border: 2px solid var(--pg-accent);
  text-decoration: none;
  transition: all 0.2s;
}

.pg-play-button:hover {
  background: transparent;
  color: var(--pg-accent);
}

/* ============================================
   试玩入口 CTA
   ============================================ */
.pg-trial-cta {
  background: linear-gradient(135deg, var(--pg-dark-blue), var(--pg-primary));
  border: 2px solid var(--pg-accent);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 900px;
}

.pg-trial-cta h2 {
  color: var(--pg-accent);
  margin-bottom: 1rem;
}

.pg-trial-cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   新闻跑马灯
   ============================================ */
.pg-news-reel {
  background: rgba(15,52,96,0.5);
  border-top: 2px solid var(--pg-accent);
  border-bottom: 2px solid var(--pg-accent);
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
}

.pg-news-track {
  display: flex;
  gap: 4rem;
  animation: pg-scroll-left 30s linear infinite;
  white-space: nowrap;
}

.pg-news-item {
  font-family: var(--pg-font-body);
  font-size: 1.1rem;
  color: var(--pg-text);
  flex-shrink: 0;
}

.pg-news-item span {
  color: var(--pg-accent);
  margin-right: 0.5rem;
}

@keyframes pg-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   优胜者光荣榜
   ============================================ */
.pg-scoreboard {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(15,52,96,0.4);
  border: 2px solid var(--pg-accent);
  padding: 1.5rem;
}

.pg-scoreboard-list {
  list-style: none;
}

.pg-scoreboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(233,69,96,0.15);
  font-size: 1.1rem;
}

.pg-scoreboard-list li:last-child {
  border-bottom: none;
}

.pg-rank {
  font-family: var(--pg-font-heading);
  font-size: 0.65rem;
  color: var(--pg-accent);
  min-width: 2rem;
}

.pg-player-name {
  flex: 1;
  margin-left: 0.8rem;
  color: var(--pg-text);
}

.pg-score {
  font-family: var(--pg-font-heading);
  font-size: 0.65rem;
  color: #FFD700;
}

/* ============================================
   分类导航
   ============================================ */
.pg-category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}

.pg-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.8rem;
  background: rgba(15,52,96,0.3);
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--pg-text);
}

.pg-category-item:hover {
  border-color: var(--pg-accent);
  background: rgba(233,69,96,0.1);
  color: var(--pg-accent);
}

.pg-category-icon {
  font-size: 2rem;
}

.pg-category-label {
  font-family: var(--pg-font-heading);
  font-size: 0.5rem;
}

/* ============================================
   核心优势
   ============================================ */
.pg-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pg-advantage-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(15,52,96,0.3);
  border: 2px solid rgba(233,69,96,0.2);
  transition: border-color 0.3s;
}

.pg-advantage-card:hover {
  border-color: var(--pg-accent);
}

.pg-advantage-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
}

.pg-advantage-card h3 {
  color: var(--pg-accent);
  margin-bottom: 0.8rem;
}

/* ============================================
   复古专栏
   ============================================ */
.pg-retro-zone {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg-retro-zone img {
  width: 45%;
  object-fit: cover;
  border: 2px solid var(--pg-accent);
}

.pg-retro-zone-content {
  flex: 1;
}

.pg-retro-zone-content h3 {
  color: var(--pg-accent);
  margin-bottom: 0.8rem;
}

/* ============================================
   APP推广
   ============================================ */
.pg-app-promo {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg-app-promo img {
  width: 280px;
  image-rendering: auto;
}

.pg-app-promo-content {
  flex: 1;
}

.pg-app-promo-content h2 {
  color: var(--pg-accent);
  margin-bottom: 1rem;
}

.pg-app-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================
   合作伙伴与认证
   ============================================ */
.pg-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid rgba(233,69,96,0.2);
}

.pg-partner-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

.pg-partner-badge img {
  width: 50px;
  height: 50px;
  image-rendering: pixelated;
}

.pg-partner-badge span {
  font-family: var(--pg-font-heading);
  font-size: 0.5rem;
  color: var(--pg-text);
}

/* ============================================
   页脚
   ============================================ */
.pg-footer {
  background: var(--pg-primary);
  border-top: 3px solid var(--pg-accent);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.pg-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--pg-max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.pg-footer-col h4 {
  font-family: var(--pg-font-heading);
  font-size: 0.65rem;
  color: var(--pg-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(233,69,96,0.3);
}

.pg-footer-col ul {
  list-style: none;
}

.pg-footer-col ul li {
  margin-bottom: 0.5rem;
}

.pg-footer-col ul li a {
  color: rgba(232,232,232,0.7);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.pg-footer-col ul li a:hover {
  color: var(--pg-accent);
}

.pg-footer-col p {
  color: rgba(232,232,232,0.6);
  font-size: 1rem;
}

.pg-social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pg-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(233,69,96,0.4);
  color: var(--pg-text);
  font-size: 1rem;
  transition: all 0.2s;
}

.pg-social-icon:hover {
  border-color: var(--pg-accent);
  background: var(--pg-accent);
  color: #fff;
}

.pg-newsletter {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

.pg-newsletter input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: rgba(15,52,96,0.5);
  border: 2px solid rgba(233,69,96,0.3);
  color: var(--pg-text);
  font-family: var(--pg-font-body);
  font-size: 1rem;
  outline: none;
}

.pg-newsletter input:focus {
  border-color: var(--pg-accent);
}

.pg-newsletter button {
  padding: 0.5rem 1rem;
  background: var(--pg-accent);
  border: 2px solid var(--pg-accent);
  color: var(--pg-text);
  font-family: var(--pg-font-heading);
  font-size: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pg-newsletter button:hover {
  background: transparent;
  color: var(--pg-accent);
}

.pg-footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233,69,96,0.15);
  max-width: var(--pg-max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pg-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.pg-beian a {
  color: rgba(232,232,232,0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pg-beian a:hover {
  color: var(--pg-accent);
}

.pg-beian img {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.pg-cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.pg-cert-badge img {
  width: 30px;
  height: 30px;
}

.pg-cert-badge span {
  font-size: 0.85rem;
  color: rgba(232,232,232,0.5);
}

.pg-copyright {
  font-size: 0.85rem;
  color: rgba(232,232,232,0.4);
}

/* ============================================
   内页 - 文章内容
   ============================================ */
.pg-page-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.pg-page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  image-rendering: auto;
}

.pg-page-banner-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

.pg-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.pg-article h2 {
  color: var(--pg-accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(233,69,96,0.2);
}

.pg-article h3 {
  color: var(--pg-accent);
  margin-top: 1.5rem;
}

.pg-article p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(232,232,232,0.85);
}

.pg-article img {
  width: 100%;
  margin: 1.5rem 0;
  border: 2px solid rgba(233,69,96,0.2);
}

.pg-article blockquote {
  border-left: 4px solid var(--pg-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(15,52,96,0.3);
  font-style: italic;
}

/* ============================================
   游戏试玩间
   ============================================ */
.pg-trial-room {
  display: flex;
  gap: 1.5rem;
  max-width: var(--pg-max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 600px;
}

.pg-trial-screen {
  flex: 1;
  background: #000;
  border: 4px solid var(--pg-accent);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 500px;
}

.pg-trial-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,52,96,0.2);
  position: relative;
  overflow: hidden;
}

.pg-trial-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  position: absolute;
}

.pg-trial-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.pg-trial-placeholder h3 {
  color: var(--pg-accent);
  margin-bottom: 1rem;
  animation: pg-neon-flicker 2s infinite;
}

.pg-trial-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(26,26,46,0.9);
  border-top: 2px solid var(--pg-accent);
}

.pg-trial-ctrl-btn {
  padding: 0.4rem 1rem;
  font-family: var(--pg-font-heading);
  font-size: 0.5rem;
  background: var(--pg-dark-blue);
  color: var(--pg-text);
  border: 2px solid var(--pg-accent);
  cursor: pointer;
  transition: all 0.2s;
}

.pg-trial-ctrl-btn:hover {
  background: var(--pg-accent);
}

.pg-trial-sidebar {
  width: 260px;
  background: rgba(15,52,96,0.3);
  border: 2px solid rgba(233,69,96,0.2);
  overflow-y: auto;
  flex-shrink: 0;
}

.pg-trial-sidebar h4 {
  font-family: var(--pg-font-heading);
  font-size: 0.6rem;
  color: var(--pg-accent);
  padding: 1rem;
  border-bottom: 2px solid rgba(233,69,96,0.2);
}

.pg-trial-game-list {
  list-style: none;
}

.pg-trial-game-list li {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(233,69,96,0.1);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.pg-trial-game-list li:hover,
.pg-trial-game-list li.pg-active {
  background: rgba(233,69,96,0.15);
  color: var(--pg-accent);
}

/* ============================================
   APP下载页
   ============================================ */
.pg-app-page {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.pg-app-page-visual {
  max-width: 300px;
  margin: 0 auto 2rem;
}

.pg-app-page-visual img {
  width: 100%;
}

.pg-qr-placeholder {
  width: 160px;
  height: 160px;
  background: #fff;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--pg-accent);
}

.pg-qr-placeholder span {
  color: #333;
  font-family: var(--pg-font-heading);
  font-size: 0.5rem;
}

/* ============================================
   Schema.org JSON-LD 不需要CSS
   ============================================ */

/* ============================================
   加载动画
   ============================================ */
.pg-loading-bar {
  width: 200px;
  height: 20px;
  border: 2px solid var(--pg-accent);
  margin: 1rem auto;
  position: relative;
  overflow: hidden;
}

.pg-loading-bar-inner {
  height: 100%;
  width: 0;
  background: var(--pg-accent);
  animation: pg-load-fill 2s ease-in-out infinite;
}

@keyframes pg-load-fill {
  0% { width: 0; }
  50% { width: 80%; }
  100% { width: 100%; }
}

/* ============================================
   响应式断点
   ============================================ */

/* 小型手机 360px */
@media (max-width: 480px) {
  h1 { font-size: 1rem; }
  h2 { font-size: 0.8rem; }
  .pg-hero { min-height: 350px; }
  .pg-hero-title { font-size: 1rem; }
  .pg-hero-subtitle { font-size: 1.1rem; }
  .pg-game-grid { grid-template-columns: 1fr; }
  .pg-retro-zone { flex-direction: column; }
  .pg-retro-zone img { width: 100%; }
  .pg-app-promo { flex-direction: column; text-align: center; }
  .pg-app-promo img { width: 200px; margin: 0 auto; }
  .pg-footer-grid { grid-template-columns: 1fr; }
  .pg-trial-room { flex-direction: column; }
  .pg-trial-sidebar { width: 100%; max-height: 300px; }
  .pg-advantages { grid-template-columns: 1fr; }
}

/* 平板 768px */
@media (max-width: 768px) {
  .pg-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pg-primary);
    border-bottom: 2px solid var(--pg-accent);
    flex-direction: column;
    padding: 1rem;
    z-index: 999;
  }
  .pg-nav-links.pg-open {
    display: flex;
  }
  .pg-nav-links li a {
    padding: 0.8rem 1rem;
    font-size: 0.6rem;
  }
  .pg-hamburger {
    display: flex;
  }
  .pg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pg-trial-room {
    flex-direction: column;
  }
  .pg-trial-sidebar {
    width: 100%;
    max-height: 250px;
  }
  .pg-retro-zone {
    flex-direction: column;
  }
  .pg-retro-zone img {
    width: 100%;
  }
  .pg-app-promo {
    flex-direction: column;
    text-align: center;
  }
  .pg-app-promo img {
    width: 220px;
    margin: 0 auto;
  }
}

/* 笔记本 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .pg-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg-nav-links li a {
    font-size: 0.5rem;
    padding: 0.4rem 0.5rem;
  }
}

/* 桌面 1440px+ */
@media (min-width: 1441px) {
  .pg-container {
    padding: 0 2rem;
  }
  .pg-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   页面淡入动画
   ============================================ */
.pg-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pg-fade-in.pg-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   扫描线效果
   ============================================ */
.pg-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 2;
}
