/* ============================================================
   Plasmafall 官网样式表
   
   🎨 自定义主题: 修改下方 CSS 变量即可全局调整配色
   🖼️ 替换图片: 搜索 "background-image" 或 HTML中的 src 属性
   ✏️ 修改文字: 直接编辑 HTML 中的文字内容
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  /* 主色调 */
  --color-bg:           #0a0a0f;
  --color-bg-secondary: #111118;
  --color-bg-card:      #16161f;
  --color-bg-card-hover:#1e1e2a;

  /* 文字色 */
  --color-text:         #e8e8ef;
  --color-text-muted:   #8888a0;
  --color-text-dim:     #55556a;

  /* 强调色（用户指定） */
  /* 主色： rgb(237, 93, 204) -> #ED5DCC （较鲜艳） */
  --color-accent:       #ED5DCC;
  --color-accent-rgb:   237, 93, 204;
  /* 辅色： rgb(229, 146, 190) -> #E592BE （柔和） */
  --color-accent-secondary: #E592BE;
  --color-accent-secondary-rgb: 229, 146, 190;
  --color-accent-glow:  rgba(var(--color-accent-rgb), 0.28);
  /* 备用衍生色（深色用于点缀） */
  --color-accent-tertiary:  #B04A97;

  /* 边框与分割 */
  --color-border:       rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);

  /* 字体 */
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Noto Sans SC', sans-serif;

  /* 间距 */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* 过渡 */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow:   0.8s ease;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- 通用工具类 ---------- */
.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: var(--color-text);
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================================================
   Header 导航栏
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 60px;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.logo-accent {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  gap: 40px;
}

/* Mobile navigation toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-toggle .hamburger {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  display: inline-block;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}
.nav-toggle .hamburger::before { top: -6px; }
.nav-toggle .hamburger::after { top: 6px; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   Banner 轮播部分
   ============================================================ */
.banner-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.02);
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 8s ease-out;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.3) 40%,
    rgba(10, 10, 15, 0.6) 70%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

.banner-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.indicator {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.indicator::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 5s linear;
}

.indicator.active::after {
  width: 100%;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.4);
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 60px var(--color-accent-glow);
}

.banner-title .accent {
  color: var(--color-accent);
}

.banner-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.8; }
}

/* ============================================================
   文字大标题部分
   ============================================================ */
.title-section {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.title-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.title-highlight {
  color: var(--color-accent);
  position: relative;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.deco-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.deco-diamond {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 2;
  font-weight: 300;
}

/* ============================================================
   游戏介绍滚动部分
   ============================================================ */
.works-section {
  padding: var(--section-padding);
  background: var(--color-bg-secondary);
  position: relative;
}

.works-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.game-showcase {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* --- 缩略图列表 --- */
.game-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
  flex-shrink: 0;
}

.game-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  aspect-ratio: 16 / 9;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.5);
  transition: background var(--transition-normal);
}

.game-thumb:hover .thumb-overlay {
  background: rgba(10, 10, 15, 0.2);
}

.game-thumb:hover img {
  transform: scale(1.05);
}

.game-thumb.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.game-thumb.active .thumb-overlay {
  background: rgba(10, 10, 15, 0.1);
}

/* --- 游戏大图展示 --- */
.game-display {
  flex: 1;
  min-width: 0;
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-card);
  margin-bottom: 32px;
}

.game-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.game-image.active {
  opacity: 1;
  transform: scale(1);
}

/* --- 游戏介绍文字 --- */
.game-info-wrapper {
  position: relative;
  min-height: 140px;
}

.game-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.game-info.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.game-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--color-text);
}

.game-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 700px;
}

.game-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(var(--color-accent-rgb), 0.08);
  color: var(--color-accent-secondary);
  border: 1px solid rgba(var(--color-accent-rgb), 0.14);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(var(--color-accent-rgb), 0.16);
  border-color: rgba(var(--color-accent-rgb), 0.28);
}

/* ============================================================
   关于我们部分
   ============================================================ */
/* ==================== 试玩栏目样式 ==================== */
.demo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg));
}
.demo-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}
.demo-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 14px;
}
.demo-media {
  flex: 0 0 420px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2));
}
.demo-image { width: 100%; height: 100%; display: block; }
.demo-info { flex: 1; min-width: 0; }
.demo-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.demo-desc { color: var(--color-text-muted); margin-bottom: 12px; }
.demo-meta { list-style: none; display: flex; gap: 12px; color: var(--color-text-dim); margin-bottom: 18px; padding-left: 0; }
.demo-actions { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-download { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary)); color: white; border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.btn-more { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-download-android { background: linear-gradient(90deg, #3DDC84, #2AA84F); color: white; border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.btn-download-android:hover { transform: translateY(-3px); }

/* Responsive: mobile layout for demo card */
@media (max-width: 768px) {
  .demo-card { flex-direction: column; padding: 16px; }
  .demo-media { flex: 0 0 auto; width: 100%; }
  .demo-image { width: 100%; height: 220px; object-fit: cover; }
  .demo-actions { flex-direction: column; display: flex; }
  .demo-actions .btn { width: 100%; justify-content: center; padding: 14px 16px; }
  .demo-actions .btn + .btn { margin-top: 10px; }
}
.btn-download:hover { transform: translateY(-3px); }

/* Global responsive adjustments */
@media (max-width: 768px) {
  /* Mobile nav behavior */
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 80px;
    right: 16px;
    left: 16px;
    background: linear-gradient(180deg, rgba(10,10,15,0.96), var(--color-bg-card));
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    border: 1px solid var(--color-border);
  }
  .main-nav .nav-link { padding: 12px; border-radius: 8px; }

  /* Banner adjustments */
  .banner-section { height: 60vh; min-height: 420px; }
  .banner-title { font-size: 2.6rem; }
  .banner-subtitle { font-size: 1rem; }

  /* Works section responsive */
  .game-showcase { flex-direction: column; }
  .game-thumbnails { flex-direction: row; gap: 12px; overflow-x: auto; min-width: 0; }
  .game-thumb { min-width: 140px; flex: 0 0 140px; }
  .game-image-wrapper { aspect-ratio: 16 / 9; }

  /* About & footer stacking */
  .footer-top { flex-direction: column; gap: 24px; }
  .social-cards { flex-direction: column; }
}

.about-section {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 60px;
  font-weight: 300;
}

.social-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all var(--transition-normal);
  flex: 1;
  max-width: 420px;
  text-align: left;
}

.social-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.social-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon .fallback-icon {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.social-icon .fallback-icon svg {
  width: 100%;
  height: 100%;
}

.social-info {
  flex: 1;
  min-width: 0;
}

.social-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.social-handle {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.social-desc {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.social-arrow {
  flex-shrink: 0;
  color: var(--color-text-dim);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.social-card:hover .social-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* ============================================================
   Footer 底部部分
   ============================================================ */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 60px 60px 30px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ============================================================
   动画
   ============================================================ */

/* 淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 文字揭示动画 */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   滚动条美化
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   选区样式
   ============================================================ */
::selection {
  background: var(--color-accent);
  color: white;
}
