/* ===== YOCY Brand Website - Global Styles ===== */

/* Google Fonts - loaded here for all pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand Colors */
  --primary: #0066FF;
  --primary-dark: #0050CC;
  --primary-light: #3388FF;
  --primary-bg: #EBF2FF;
  --accent: #00D4AA;
  --accent-dark: #00B890;

  /* Neutrals */
  --dark: #0A0E1A;
  --dark-2: #141824;
  --dark-3: #1E2333;
  --gray-900: #1A1D2B;
  --gray-800: #2A2D3E;
  --gray-700: #3A3D4E;
  --gray-600: #5A5D6E;
  --gray-500: #7A7D8E;
  --gray-400: #9A9DAE;
  --gray-300: #C0C3D0;
  --gray-200: #E0E2EA;
  --gray-100: #F0F1F5;
  --gray-50: #F7F8FA;
  --white: #FFFFFF;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Typography */
  --font-heading: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --nav-height: 80px; /* 减小导航栏高度，更紧凑 */

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { line-height: 1.7; color: var(--gray-600); }

.hero-dark {
  color: #fff !important;
}

.hero-dark h1,
.hero-dark h2,
.hero-dark h3,
.hero-dark h4,
.hero-dark .subtitle,
.hero-dark p {
  color: #fff !important;
}

.hero-dark .subtitle {
  opacity: 0.9;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Backgrounds --- */
.section-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.section-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}
.section-bg > .container {
  position: relative;
  z-index: 1;
}

#section-audience { background-image: url('../img/bg/02-audience.jpg'); }
/* Removed background for games section */
#section-news { background-image: url('../img/bg/04-info.jpg'); }

/* --- Homepage Specific --- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.audience-icon .icon { width: 32px; height: 32px; color: var(--primary); }
.game-cat-cover .icon { width: 48px; height: 48px; color: rgba(255,255,255,0.9); }

/* Audience cards */
.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.audience-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); /* 黑色带透明度的蒙版 */
  z-index: 1; /* 确保在背景图之上 */
  transition: var(--transition);
}

.audience-card:hover::after {
  background: rgba(0, 0, 0, 0.35); /* 悬停时稍微变亮，突出图片 */
}

.audience-card:hover::before { transform: scaleX(1); }
.audience-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.card-drivers { background-image: url('../img/cards/bg-drivers.png'); }
.card-automakers { background-image: url('../img/cards/bg-automakers.png'); }
.card-developers { background-image: url('../img/cards/bg-developers.png'); }

.audience-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative; /* Ensure it stays above overlay */
  z-index: 2;
}
.audience-card:hover .audience-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #fff;
}
.audience-icon .icon {
  color: #fff !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.audience-card h3 { 
  font-size: 1.1rem; 
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px; 
  position: relative; 
  z-index: 2; 
  color: var(--accent) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.audience-card h4 { 
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 12px;
  position: relative; 
  z-index: 2; 
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.audience-card p { 
  font-size: 0.9375rem; 
  line-height: 1.6;
  margin-bottom: 24px; 
  position: relative; 
  z-index: 2; 
  color: rgba(255, 255, 255, 0.9) !important; 
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.audience-card .btn-ghost { 
  font-size: 0.875rem; 
  font-weight: 700; 
  position: relative; 
  z-index: 2; 
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.audience-card .btn-ghost:hover {
  background: #fff !important;
  color: var(--dark) !important;
  border-color: #fff;
  transform: translateX(5px);
}

/* 想玩什么，车里都有 - 章节视觉重塑 */
#section-games {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff !important;
  padding: 40px 0 !important;
  overflow: hidden;
}

#section-games .container {
  max-width: 1400px;
  width: 90%;
}

#section-games .section-header {
  margin-bottom: 40px;
}

#section-games .grid-4 {
  gap: 30px;
  align-items: stretch;
}

.game-cat-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.game-cat-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.game-cat-cover {
  height: 220px; /* 适中的高度，确保不超出全屏 */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.game-cat-cover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4));
  z-index: 1;
}

.game-cat-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.game-cat-body h4 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #000;
  font-weight: 800;
  line-height: 1.2;
}

.game-cat-body .tagline {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
  font-style: normal; /* 去掉斜体，显得更稳重 */
}

.game-cat-body p {
  font-size: 1rem;
  color: #555 !important;
  line-height: 1.6;
  margin: 0;
}

/* --- Partners Section --- */
.partners-section {
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #000;
}


.partners-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 均匀加深背景，使对比更强烈 */
  z-index: 0;
}

/* --- Experience Slider (Direction 3) --- */
/* --- Experience Slider (Direction 3) --- */
.experience-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 1;
}

.experience-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  display: flex;
  align-items: center;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.experience-slide.active {
  opacity: 1;
  visibility: visible;
}

.experience-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
  z-index: 0;
}

.experience-slide.active .experience-bg {
  transform: scale(1.1);
}

.experience-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.85) 0%, 
    rgba(0,0,0,0.4) 40%, 
    rgba(0,0,0,0) 70%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}

.experience-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.experience-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.experience-logo {
  height: 80px;
  margin-bottom: 32px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.experience-logo img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

.experience-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.experience-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 48px;
  line-height: 1.8;
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.experience-stats {
  display: flex;
  gap: 60px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.stat-item .stat-val {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-item .stat-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.experience-slide.active .experience-tag,
.experience-slide.active .experience-logo,
.experience-slide.active .experience-title,
.experience-slide.active .experience-desc,
.experience-slide.active .experience-stats {
  transform: translateY(0);
  opacity: 1;
}

/* Nav Dots */
.experience-nav {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-width);
  padding: 0 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-dot {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* 扩大点击面积：用伪元素做隐形点击区 */
.nav-dot::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -4px;
  right: -4px;
  bottom: -10px;
}

.nav-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%; width: 0;
  background: #fff;
}

.nav-dot.active {
  background: rgba(255,255,255,0.1);
}

.nav-dot.active::after {
  width: 100%;
  transition: width 8s linear;
}

.nav-more {
  margin-left: auto;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  letter-spacing: 1px;
}


.experience-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.experience-header p {
  font-size: 1.125rem;
  color: #333;
}

@media (max-width: 1024px) {
  .experience-title { font-size: 2.5rem; }
  .stat-item .stat-val { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .experience-container { height: auto; left: 0; right: 0; margin-left: 0; margin-right: 0; width: 100%; padding: 80px 0 40px; }
  .experience-slide {
    position: relative; opacity: 1; visibility: visible; height: auto;
    flex-direction: column; margin: 0 16px 24px; border-radius: 16px;
  }
  .experience-bg { height: 200px; position: relative; border-radius: 16px 16px 0 0; }
  .experience-slide::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.9) 100%);
  }
  .experience-content { width: 100%; padding: 32px 20px 40px; position: relative; z-index: 2; }
  .experience-logo { height: 60px; margin-bottom: 20px; }
  .experience-title { font-size: 1.75rem; }
  .experience-title br { display: none; }
  .experience-desc { font-size: 1rem; margin-bottom: 24px; }
  .experience-stats { gap: 32px; }
  .stat-item .stat-val { font-size: 2.25rem; }
  .stat-item .stat-lbl { font-size: 0.75rem; }
  .experience-nav { display: none; }

  /* Remove slide animations on mobile — content always visible */
  .experience-tag,
  .experience-logo,
  .experience-title,
  .experience-desc,
  .experience-stats {
    transform: none !important;
    opacity: 1 !important;
  }
  .experience-slide.active .experience-bg { transform: none; }
}


@media (max-width: 1200px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
}

@media (max-width: 768px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .logo-text span[data-lang="zh"] { font-size: 1.1rem; }
}
}

/* News preview cards */
.news-preview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.news-preview-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-preview-cover {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.news-preview-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--primary);
}
.news-preview-body { padding: 20px; }
.news-preview-body h4 { 
  font-size: 1.1rem; 
  margin-bottom: 8px; 
  line-height: 1.4; 
  color: #000 !important;
  font-weight: 700;
}
.news-preview-body p { 
  font-size: 0.9rem; 
  color: #444 !important; 
  margin-bottom: 12px;
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  line-height: 1.6;
}
.news-preview-date { font-size: 0.8125rem; color: var(--gray-400); }

/* Glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.glow-orb-1 {
  width: 400px; height: 400px;
  background: rgba(0,102,255,0.12);
  top: 10%; right: 5%;
  animation: float 8s ease-in-out infinite;
}
.glow-orb-2 {
  width: 300px; height: 300px;
  background: rgba(0,212,170,0.08);
  bottom: 15%; left: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

/* --- Language Switching --- */
/* Simple, high-compatibility mode for Safari/Chrome using HTML classes */
html.lang-zh [data-lang="en"] {
  display: none !important;
}

html.lang-en [data-lang="zh"] {
  display: none !important;
}

/* 核心板块全屏布局定义 */
.section {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* 针对用户要求的三个板块：白底黑字 + 全屏高度 */
#section-audience, 
#section-news {
  background: #fff !important;
  color: #000 !important;
  height: 100vh;
  padding: 24px 0 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* 覆盖背景图蒙版，确保这三个板块是干净的白底 */
#section-audience::before, 
#section-news::before {
  display: none !important;
}

#section-audience .section-header,
#section-news .section-header {
  margin-bottom: 48px;
}

#section-audience .section-header h2,
#section-news .section-header h2 {
  color: #000 !important;
  font-size: 3rem;
  margin-bottom: 8px;
}

#section-audience .section-header p,
#section-news .section-header p {
  color: #333 !important;
  opacity: 1 !important;
  font-size: 1.25rem;
  margin-top: 4px;
}

/* 合作伙伴板块（第四页）：深色背景 + 白色文字 */
.partners-section {
  padding: 0 !important;
  background: #000 !important;
  min-height: 100vh;
  margin: 0 !important;
}

.partners-section .section-header {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.partners-section .section-header h2 {
  color: #fff !important;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.partners-section .section-header p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.25rem;
  margin-top: 10px;
}


#section-audience .section-header h2,
#section-news .section-header h2 {
  color: #000 !important;
}

#section-audience .section-header p,
#section-news .section-header p {
  color: #333 !important;
}

/* 确保合作伙伴板块（第四页）的一体化 */
.partners-section {
  padding: 0 !important;
  background: #000 !important;
  min-height: 100vh;
}

/* 合作伙伴的标题区域：强制为透明（因为背景图是深色的）或白底？
   用户说黑字看不清，说明背景是深色的。
   如果背景是深色的，文字必须是白色。
   如果用户坚持要黑字，背景必须是白色。
   根据最新要求“请改成黑色的字体”，我将这三个板块背景设为纯白。
*/

/* 针对合作伙伴板块（全屏滑块版），我们保持其深色沉浸感，但文字恢复为白色以保证可见度 */
.partners-section .section-header h2 {
  color: #fff !important;
}
.partners-section .section-header p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.section-dark { background: var(--dark); color: var(--white); }
.section-dark p { color: var(--gray-400); }
.section-gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* 默认浅色背景图板块 (带白色蒙版) */
.section, .section-bg {
  color: #000;
}
.section-header h2 { color: #000; }
.section-header p { color: #333; }

/* 明确深色板块覆盖 */
.section-dark, .partners-section {
  color: #fff;
}
.section-dark .section-header h2, .partners-section .section-header h2 { color: #fff; }
.section-dark .section-header p, .partners-section .section-header p { color: rgba(255, 255, 255, 0.8); }

/* 显式定义浅色背景板块的文字颜色（黑字） */
#section-audience, 
#section-news {
  color: #000 !important;
}

#section-audience .section-header h2,
#section-news .section-header h2 {
  color: #000 !important;
}

#section-audience .section-header p,
#section-news .section-header p {
  color: #333 !important;
  opacity: 1 !important;
  font-size: 1.25rem;
  margin-top: 4px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  transition: var(--transition);
}

/* Home page navbar overlaying dark video hero */
.home-page .navbar:not(.scrolled) {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-page .navbar:not(.scrolled) .nav-links a,
.home-page .navbar:not(.scrolled) .nav-logo span {
  color: #fff !important;
}
.home-page .navbar:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1); /* Make the logo white on transparent nav */
}
.home-page .navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 42px; /* 略微调大图标以匹配 1.8rem 的字号 */
  width: auto;
  object-fit: contain;
}
.nav-logo span[data-lang="zh"] { 
  color: var(--dark); 
  font-weight: 700;
  font-size: 1.8rem; /* 调整为 1.8rem */
}
.nav-logo span[data-lang="en"] { 
  font-size: 1.8rem; /* 调整为 1.8rem */
  font-weight: 900; 
  font-family: 'Marker Felt', 'Comic Sans MS', cursive;
  color: var(--gray-800);
  opacity: 1;
  letter-spacing: 0;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 20px;
  padding: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-switch button {
  border: none;
  background: none;
  padding: 5px 12px;
  border-radius: 17px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gray-500);
  transition: var(--transition);
  font-family: inherit;
}
.lang-switch button.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,102,255,0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 14px 0;
}
.btn-ghost:hover { gap: 12px; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.0625rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h4 { margin-bottom: 8px; color: var(--dark); }
.card p { font-size: 0.9375rem; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Hero Home - Realistic Cockpit Theme */
.hero-home {
  background-color: #000;
  background-image: url('../img/bg/hero-realistic.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff !important;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px !important;
  margin: 0 auto;
}

.hero-home h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.02em;
}
.hero-home .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent-bar {
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 32px;
  animation: shimmer 3s ease infinite;
  background-size: 200% 100%;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-home .btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}
.hero-home .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 102, 255, 0.6);
}
.hero-home .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* --- Section Backgrounds --- */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #000; /* 默认黑字，配合白色蒙版 */
}
.section-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.92); /* 浅色背景 */
  z-index: 0;
}
.section-bg > .container {
  position: relative;
  z-index: 2;
}

.section-bg .section-header h2 { color: #000; }
.section-bg .section-header p { color: #333; }

#section-audience { background-image: url('../img/bg/02-audience.jpg'); }
/* Removed background for games section */
#section-news { background-image: url('../img/bg/04-info.jpg'); }

.stat-card {
  text-align: center;
  padding: 32px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 64px 0 32px;
}
.footer .nav-logo span[data-lang="zh"],
.footer .nav-logo span[data-lang="en"] {
  color: #fff !important;
  font-size: 1.3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-500);
}
.footer h5 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 {
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: var(--gray-400);
  font-size: 1.125rem;
  margin-bottom: 40px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  font-family: inherit;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.5s ease; }

/* --- Logo Wall --- */
.logo-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.logo-wall-item {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.5;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
}
.logo-wall-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item h4 { font-size: 1.125rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.9375rem; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-400);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  content: '−';
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h4 { margin-bottom: 8px; }

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* --- Particles / Floating Elements (tech feel) --- */
.floating-dots {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.floating-dots span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}
.floating-dots span:nth-child(2) { animation-delay: 1s; animation-duration: 8s; }
.floating-dots span:nth-child(3) { animation-delay: 2s; animation-duration: 7s; }
.floating-dots span:nth-child(4) { animation-delay: 3s; animation-duration: 9s; }
.floating-dots span:nth-child(5) { animation-delay: 0.5s; animation-duration: 5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 64px;
  }
  .container { padding: 0 16px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    z-index: 999;
    padding: 20px 16px;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    max-height: calc(100vh - var(--nav-height) - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .navbar:not(.scrolled) .nav-links.open a,
  .nav-links.open a {
    color: var(--dark) !important;
  }
  .nav-links a {
    color: var(--dark) !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary) !important;
    background: var(--gray-100);
  }
  .nav-links a::after { display: none; }
  .nav-links .nav-lang-mobile { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { display: flex; }
  .nav-logo { font-size: 1.3rem; gap: 8px; }

  .hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 60px; }
  .hero-home { background-attachment: scroll; }
  .section-bg { background-attachment: scroll; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Allow button text to wrap on mobile */
  .btn { white-space: normal; word-break: break-word; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > .footer-brand { grid-column: span 2; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .tabs { flex-wrap: wrap; }
  .tab-btn { font-size: 0.8125rem; padding: 8px 16px; }

  .cta-section { padding: 60px 0; }
  .cta-section h2 { font-size: 1.8rem; }
  .cta-section p { font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  .stat-number { font-size: 2.25rem; }
  .logo-wall { gap: 24px; }

  .hero-home h1 { font-size: 2rem; }
  .hero-home .subtitle { font-size: 1rem; }
  .game-cat-cover { height: 140px; font-size: 2rem; }
  .partners-track { gap: 24px; }
  .partner-item { padding: 12px 20px; font-size: 0.8125rem; }
  
  /* Index page section stacking */
  .glow-orb-1, .glow-orb-2 { display: none; }
  .section { padding: 60px 0; min-height: auto; }
  #section-audience, #section-news { height: auto; padding: 60px 0; }
  #section-partners { height: auto; min-height: auto; background: transparent; }
  #section-games { height: auto; padding: 60px 0; }
  #section-games .section-header h2 { font-size: 1.8rem; }
  #section-games .section-header p { font-size: 1rem; }
  #section-partners.section-bg::before,
  #section-partners.partners-section::before { display: none; }
  #section-partners > .section-header { position: relative !important; top: auto !important; left: auto !important; transform: none !important; padding: 108px 16px 0; }
  #section-partners > .section-header h2 { font-size: 1.8rem !important; }
  #section-partners > .section-header p { font-size: 1rem !important; }
  .game-cat-cover { height: 120px; }
  .game-cat-cover span { font-size: 1.25rem; }
  .game-cat-body .tagline { font-size: 1.2rem; }
  #section-audience .section-header h2,
  #section-news .section-header h2 { font-size: 1.8rem; }
  #section-audience .section-header p,
  #section-news .section-header p { font-size: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.875rem; }

  /* Experience slider mobile refinement */
  .experience-slide { margin: 0 12px 20px; border-radius: 14px; }
  .experience-bg { height: 160px; border-radius: 14px 14px 0 0; }
  .experience-content { padding: 24px 16px 32px; }
  .experience-title { font-size: 1.4rem; }
  .experience-logo { height: 48px; }
  .experience-stats { gap: 20px; }
  .stat-item .stat-val { font-size: 1.75rem; }
  .experience-desc { font-size: 0.9rem; }
  .experience-tag { font-size: 0.7rem; padding: 6px 14px; }
  #section-partners > .section-header { padding: 88px 16px 0; }
  #section-partners > .section-header h2 { font-size: 1.8rem !important; }
  #section-partners > .section-header p { font-size: 1rem !important; }
  .nav-logo { font-size: 1.1rem; gap: 6px; }
}

/* --- English Typography Optimization --- */
html.lang-en h1 { word-break: normal; hyphens: none; }
html.lang-en h2 { letter-spacing: -0.02em; }
html.lang-en p { line-height: 1.7; }
html.lang-en .hero h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
html.lang-en .subtitle { font-size: clamp(0.95rem, 1.8vw, 1.2rem); }
html.lang-en .section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
html.lang-en .btn { white-space: normal; word-break: break-word; }
html.lang-en .stat-number { font-size: clamp(2rem, 4vw, 3rem); }

/* --- Animation Performance & Accessibility --- */
/* GPU-accelerated properties only */
.scenario-card, .game-card-play, .step-card,
.culture-card, .advantage-card, .solution-card,
.news-preview-card { will-change: transform; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg, .about-hero-bg { animation: none !important; transform: none !important; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-640 { max-width: 640px; }
.max-w-800 { max-width: 800px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WeChat QR Popup */
.btn-wechat {
  position: relative;
}
.qr-popup {
  position: absolute;
  bottom: 120%; /* Position above the button */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 180px;
  background: #fff;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 100;
  text-align: center;
  line-height: 1.4;
}
.qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.qr-popup img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 8px;
}
.qr-popup span {
  font-size: 0.75rem;
  color: #333;
  font-weight: 600;
  display: block;
}
.btn-wechat:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cta-section .qr-popup {
  bottom: 130%;
}

/* === Mobile QR Overlay (touch toggle) === */
@media (max-width: 768px) {
  /* Disable hover behavior on mobile */
  .btn-wechat:hover .qr-popup {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
  }
  /* Show via .show class (toggled by JS) */
  .btn-wechat .qr-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    padding: 24px;
    z-index: 10001;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  }
  .btn-wechat .qr-popup.show::after { display: none; }
  .btn-wechat .qr-popup.show img { width: 100%; max-width: 200px; margin: 0 auto 12px; border-radius: 8px; }
  .btn-wechat .qr-popup.show .qr-label { font-size: 0.85rem; color: #333; margin-bottom: 4px; font-weight: 600; display: block; }
  .btn-wechat .qr-popup.show .qr-wechat-id { font-size: 0.95rem; color: #0066ff; font-weight: 700; display: block; margin-bottom: 10px; }
  .btn-wechat .qr-popup.show .qr-copy-btn { display: inline-block; font-size: 0.8rem; color: #fff; background: #0066ff; padding: 6px 16px; border-radius: 20px; cursor: pointer; border: none; margin-bottom: 12px; }
  .btn-wechat .qr-popup.show .qr-email { font-size: 0.85rem; color: #555; display: block; }
  .btn-wechat .qr-popup.show .qr-email a { color: #0066ff; text-decoration: underline; }

  /* Overlay backdrop */
  .qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
  }
  .qr-overlay.show { display: block; }
}
