/*
Theme Name: SEA Gaming Hub - Group A (PG Specialist)
Theme URI: https://example.com
Author: SEA Gaming Team
Description: PG SOFT专精主题 - 紫色系（v2 星光斜切视觉），适用于Fortune Tiger等PG游戏试玩评测站
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: sea-gaming-a
Tags: gaming, casino, responsive, seo-friendly
*/

/* ============================================================
   A组 v2 视觉系统 —— "星光赌场 / Neon Casino Night"
   设计要点（frontend-design + ui-ux-pro-max）：
   - 深空紫黑底 + 星光粒子，避开纯黑(#0B0B0B)与奶油底 AI 模板
   - 独特电紫 #B24BFF 而非 Tailwind 默认紫；琥珀金只做点睛
   - Orbitron(数字/标题) + Rajdhani(泰文正文)，原生泰文字体
   - 斜切角(右下 cut)是 A 组标志性形状，代替千篇一律圆角卡片
   - 动效克制：只保留星星闪烁与 FAQ 展开，去除全页进场动画
   ============================================================ */

:root {
  /* 色板 */
  --bg-void:      #0A0612;                 /* 深空紫黑 */
  --bg-panel:     #140E22;                 /* 面板 */
  --bg-card:      #1A1230;                 /* 卡片底 */
  --bg-card-hi:   #221740;                 /* 卡片 hover */
  --purple-core:  #B24BFF;                 /* 电紫主色 */
  --purple-deep:  #7A2FD6;                 /* 深紫 */
  --purple-dim:   rgba(178, 75, 255, 0.16);
  --amber-gold:   #FFC53D;                 /* 琥珀金点睛 */
  --text-hi:      #F2EDFB;
  --text-mid:     #B9AECB;
  --text-low:     #7D7391;
  --line:         rgba(178, 75, 255, 0.22);
  --line-strong:  rgba(178, 75, 255, 0.45);
  --up:           #3DDC97;
  --down:         #FF5C7A;

  /* 字体 */
  --font-display: 'Orbitron', 'Prompt', sans-serif;
  --font-body:    'Rajdhani', 'Noto Sans Thai', sans-serif;

  /* 布局 */
  --container: 1200px;
  --cut-lg: 22px;   /* 大斜切：游戏卡片/主按钮 */
  --cut-sm: 12px;   /* 小斜切：RTP卡/标签 */
  --radius: 6px;    /* 最小圆角，仅输入类与徽章使用 */
}

/* ============================================================
   全局
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(122, 47, 214, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(178, 75, 255, 0.12), transparent 55%);
  background-attachment: fixed;
  color: var(--text-hi);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

a { color: var(--purple-core); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-gold); }
img { max-width: 100%; height: auto; }

::selection { background: var(--purple-core); color: #fff; }

/* 键盘可达性 */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber-gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 节标题 —— 避免"全大写 eyebrow + 中间点 meta"模板痕 */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 28px;
  color: var(--text-hi);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: '';
  width: 26px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-core), transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.section-title em {
  font-style: normal;
  color: var(--purple-core);
}

/* ============================================================
   头部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 6, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-hi);
  text-transform: uppercase;
}
.site-logo a::after {
  content: '';
  display: block;
  height: 3px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--purple-core) 0%, var(--amber-gold) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-navigation .nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: 0.4px;
  border-bottom: 2px solid transparent;
}
.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu a.current-menu-item {
  color: var(--text-hi);
  border-bottom-color: var(--purple-core);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 40px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-hi);
}

/* ============================================================
   语言切换器（与 language-switcher.css 保持一致）
   ============================================================ */
.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-option {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: rgba(178, 75, 255, 0.08);
  border: 1px solid var(--line);
  transition: all .2s;
}
.lang-option:hover { color: var(--amber-gold); border-color: var(--line-strong); }
.lang-option.active {
  color: #fff;
  background: var(--purple-core);
  border-color: var(--purple-core);
}

/* ============================================================
   英雄区 —— 左对齐 + 星光粒子
   ============================================================ */
.hero-section {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* 星光粒子层（CSS 实现，三层） */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-particles i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--purple-core);
  opacity: 0.75;
  animation: twinkle 4s ease-in-out infinite;
}
.hero-particles i:nth-child(1)  { left: 8%;   top: 22%; animation-delay: 0s;   }
.hero-particles i:nth-child(2)  { left: 22%;  top: 64%; animation-delay: 1.2s; width: 3px; height: 3px; }
.hero-particles i:nth-child(3)  { left: 38%;  top: 14%; animation-delay: 2.1s; }
.hero-particles i:nth-child(4)  { left: 55%;  top: 78%; animation-delay: 0.6s; width: 3px; height: 3px; background: var(--amber-gold); }
.hero-particles i:nth-child(5)  { left: 72%;  top: 34%; animation-delay: 1.8s; }
.hero-particles i:nth-child(6)  { left: 88%;  top: 52%; animation-delay: 0.3s; width: 3px; height: 3px; }
.hero-particles i:nth-child(7)  { left: 46%;  top: 42%; animation-delay: 2.6s; }
.hero-particles i:nth-child(8)  { left: 66%;  top: 86%; animation-delay: 1.5s; }
.hero-particles i:nth-child(9)  { left: 14%;  top: 88%; animation-delay: 3.2s; background: var(--amber-gold); }
.hero-particles i:nth-child(10) { left: 92%;  top: 12%; animation-delay: 2.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 0.9;  transform: scale(1.25); }
}

.hero-section .container { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 1px;
  max-width: 14em;
  margin-bottom: 18px;
  color: var(--text-hi);
  text-transform: uppercase;
}
.hero-title .accent { color: var(--purple-core); }

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--text-mid);
  max-width: 46em;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 按钮体系：直角 + 右下斜切，主/次两级，不做渐变胶囊 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .22s;
}
.btn-primary {
  background: var(--purple-core);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--purple-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--purple-dim);
}
.btn-secondary {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn-secondary:hover {
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

/* 英雄区底部统计条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  max-width: 640px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--amber-gold);
}
.stat-item .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 2px;
}

/* ============================================================
   游戏区 / RTP 看板
   ============================================================ */
.games-section { padding: 72px 0 60px; }

/* RTP 看板：行情牌风格，深色面板 + 斜切角 */
.rtp-dashboard {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 34px 28px 28px;
  margin-bottom: 56px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  overflow: hidden;
}
.rtp-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-core), var(--amber-gold) 60%, transparent);
}

.rtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.rtp-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 20px 16px 16px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: border-color .2s, background .2s;
}
.rtp-card:hover { border-color: var(--line-strong); background: var(--bg-card-hi); }

.fire-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--amber-gold);
  color: #241600;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.rtp-game-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rtp-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.rtp-value.up     { color: var(--up); }
.rtp-value.down   { color: var(--down); }
.rtp-value.stable { color: var(--amber-gold); }

.rtp-label {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 8px;
}
.rtp-trend { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); }

/* 游戏卡片：斜切角网格 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color .2s, background .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hi);
  transform: translateY(-3px);
}

.game-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-panel);
}
.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform .3s;
}
.game-card:hover .game-thumbnail img { transform: scale(1.04); }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 6, 18, 0.55);
  opacity: 0;
  transition: opacity .2s;
}
.game-card:hover .game-overlay { opacity: 1; }

.btn-demo {
  padding: 10px 22px;
  background: var(--amber-gold);
  color: #241600;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.btn-demo:hover { color: #241600; background: #FFD86B; }

.hot-badge {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  background: var(--purple-core);
  color: #fff;
  padding: 4px 12px 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.game-info { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.game-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.game-title a { color: var(--text-hi); }
.game-title a:hover { color: var(--purple-core); }

.game-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rtp-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--up);
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: 3px 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}
.game-meta .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-gold);
  background: rgba(255, 197, 61, 0.08);
  border: 1px solid rgba(255, 197, 61, 0.25);
  padding: 3px 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}

.game-excerpt {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================================
   SEO 软文区 —— 浅色"纸面"与深色区形成节奏对比
   ============================================================ */
.seo-guide-section {
  background: #F6F1FF;                 /* 暖紫纸色，非纯白非 #f8f9fa */
  color: #2A2140;
  padding: 72px 0;
  border-top: 3px solid var(--purple-core);
  border-bottom: 1px solid var(--line);
}

.seo-guide-section .section-title { color: #2A2140; }
.seo-guide-section .section-title::before { background: linear-gradient(90deg, var(--purple-deep), transparent); }

.seo-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 48px;
  background: #FFFFFF;
  border: 1px solid #E3D6FA;
  border-left: 5px solid var(--purple-deep);
  box-shadow: 0 18px 50px rgba(74, 22, 138, 0.10);
  font-size: 1.02rem;
  line-height: 1.85;
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #4A168A;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.seo-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #2A2140;
  margin: 34px 0 12px;
  letter-spacing: 0.3px;
}
.seo-content p { color: #3A3150; margin-bottom: 14px; }
.seo-content strong { color: #241A3D; }

.feature-list, .tips-list {
  margin: 16px 0 22px;
  padding-left: 0;
  list-style: none;
  counter-reset: none;
}
.feature-list li, .tips-list li {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 14px 10px 34px;
  background: #F8F4FF;
  border: 1px solid #E9DDFF;
  color: #3A3150;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 14px;
  top: 9px;
  color: var(--purple-deep);
  font-size: 0.85rem;
}
.tips-list { counter-reset: tip; }
.tips-list li { counter-increment: tip; }
.tips-list li::before {
  content: counter(tip);
  position: absolute;
  left: 12px;
  top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--purple-deep);
}

/* 步骤区：斜切小方块编号 */
.steps-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.step {
  background: #FFFFFF;
  border: 1px solid #E3D6FA;
  padding: 22px 18px 18px;
  text-align: left;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.step-number {
  display: inline-block;
  width: 40px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: var(--purple-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.step p { font-size: 0.98rem; color: #3A3150; margin: 0; line-height: 1.6; }

/* ============================================================
   FAQ 区 —— 深色折叠面板
   ============================================================ */
.faq-section { padding: 72px 0 60px; }

.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--line-strong); }

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-question:hover { color: var(--amber-gold); }
.faq-question.active { color: var(--purple-core); }

.faq-icon {
  color: var(--purple-core);
  font-size: 0.75rem;
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-question.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease-out;
}
.faq-answer p {
  padding: 0 20px 20px;
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 1rem;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 48px 0 22px;
  margin-top: 30px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 14px;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: var(--text-mid); font-weight: 500; }
.footer-section a:hover { color: var(--amber-gold); }

.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-low);
  font-size: 0.85rem;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero-section { padding: 56px 0 48px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .seo-content { padding: 28px 24px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .header-container { flex-wrap: wrap; }
  .main-navigation { order: 3; width: 100%; display: none; }
  .main-navigation.open { display: block; }
  .main-navigation .nav-menu { flex-direction: column; gap: 0; padding: 10px 0; }
  .mobile-menu-toggle { display: flex; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-item .stat-num { font-size: 1.3rem; }

  .rtp-grid { grid-template-columns: repeat(2, 1fr); }
  .rtp-dashboard { padding: 26px 18px 20px; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

  .steps-guide { grid-template-columns: 1fr; }
  .seo-content { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .rtp-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   动效偏好：减少动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   详情页 / 列表页 / 404（v2.1 新增）
   ============================================================ */
.page-section { padding: 56px 0 72px; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: var(--text-low);
}
.page-breadcrumb a { color: var(--text-mid); }
.page-breadcrumb a:hover { color: var(--amber-gold); }
.crumb-sep { color: var(--text-low); }
.crumb-current { color: var(--text-mid); }

.page-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 40px 48px 44px;
  margin-bottom: 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  position: relative;
}

.page-header { margin-bottom: 22px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 12px 0 10px;
  color: var(--text-hi);
}
.page-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.page-thumbnail {
  margin-bottom: 26px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  overflow: hidden;
}

.page-content {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.9;
}
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  margin: 30px 0 12px;
  letter-spacing: 0.3px;
}
.page-content h2 { font-size: 1.35rem; }
.page-content h3 { font-size: 1.12rem; }
.page-content p { margin-bottom: 14px; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--purple-core); text-decoration: underline; }
.page-content a:hover { color: var(--amber-gold); }
.page-content img { border-radius: 4px; margin: 10px 0; }
.page-content blockquote {
  border-left: 4px solid var(--purple-core);
  padding: 12px 18px;
  margin: 18px 0;
  background: rgba(178, 75, 255, 0.07);
  color: var(--text-hi);
}

.page-cta { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-nav a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-mid);
  font-weight: 600;
  transition: all .2s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.page-nav a:hover { color: var(--amber-gold); border-color: var(--line-strong); }

/* 列表页 */
.game-card-link { color: inherit; }
.game-card-link:hover .game-title a { color: var(--purple-core); }

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: all .2s;
}
.pagination .page-numbers:hover { color: var(--amber-gold); border-color: var(--line-strong); }
.pagination .page-numbers.current {
  background: var(--purple-core);
  color: #fff;
  border-color: var(--purple-core);
}

/* 404 */
.notfound { text-align: center; padding: 80px 40px; }
.notfound .page-title { font-size: 4rem; color: var(--purple-core); margin: 0 0 8px; }
.notfound p { color: var(--text-mid); margin-bottom: 28px; }

@media (max-width: 768px) {
  .page-card { padding: 26px 20px 28px; }
  .page-section { padding: 40px 0 52px; }
}

/* 卡片链接兼容（v2.1）：缩略图改为 <a> 包裹后保持块级与悬停按钮 */
a.game-thumbnail { display: block; }
.game-thumbnail a { color: inherit; }
.btn-demo-static {
  display: inline-block;
  margin: 0 0 18px;
  text-align: center;
}

/* ===== 模块3 动态文章卡片（整改新增） ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(42, 33, 64, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 10px 28px rgba(42, 33, 64, 0.16);
    transform: translateY(-4px);
}

.article-card .article-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-card .article-info {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .article-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-core, #8b5cf6);
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.article-card .article-title {
    font-size: 17px;
    font-weight: 700;
    color: #241A3D;
    margin-bottom: 8px;
    line-height: 1.45;
}

.article-card .article-title a {
    color: inherit;
    text-decoration: none;
}

.article-card .article-title a:hover {
    color: var(--purple-core, #8b5cf6);
}

.article-card .article-excerpt {
    font-size: 14px;
    color: #3A3150;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.article-card .article-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--purple-core, #8b5cf6);
    text-decoration: none;
}

.article-card .article-link:hover {
    color: #ec4899;
}

.article-card .no-articles {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
