/* ===== 全局重置 & 设计变量 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 深邃奢华色板 */
  --bg-dark: #0a0a0c;
  --bg-deep: #050508;
  --bg-elevated: #111317;
  --bg-card: rgba(18, 20, 26, 0.7);
  --bg-card-solid: #12141a;
  
  /* 暖金主色调 — 高级感 */
  --primary: #d9a75c;
  --primary-glow: #e6b874;
  --primary-dim: #b8864b;
  --primary-soft: rgba(217, 167, 92, 0.12);
  
  /* 文字层级 */
  --text-light: #f0ede8;
  --text-muted: #a8aab3;
  --text-dim: #7a7d89;
  
  /* 边框与光效 */
  --border-subtle: rgba(230, 184, 116, 0.12);
  --border-active: rgba(230, 184, 116, 0.4);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(217, 167, 92, 0.15);
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 80px;
  --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== 高级动态背景 ===== */
#hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  z-index: -2;
  filter: brightness(0.7) contrast(1.1);
}

.overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 30%, rgba(10, 8, 12, 0.5) 0%, #050508 85%);
  z-index: -1;
  pointer-events: none;
}

/* 额外光晕层 */
.glow-orb {
  position: fixed;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(217, 167, 92, 0.08) 0%, transparent 70%);
  top: -30vh;
  right: -20vw;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.glow-orb.second {
  bottom: -40vh;
  left: -25vw;
  top: auto;
  background: radial-gradient(circle, rgba(200, 150, 80, 0.05) 0%, transparent 70%);
}

/* ===== 容器优化 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ===== 头部导航 — 通透玻璃 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary-glow);
  filter: drop-shadow(0 0 6px rgba(230, 184, 116, 0.4));
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #f5efE8, #e6c9a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.8rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-glow);
}

/* ===== 主要内容区 ===== */
.main-content {
  padding-top: var(--header-height);
}

.section {
  padding: 100px 0;
}

.section:first-of-type {
  padding-top: 80px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-glow);
  border-radius: 3px;
}

/* ===== 英雄区 — 大气留白 ===== */
.hero-content {
  max-width: 720px;
  padding: 60px 0 40px;
}

.pre-title {
  font-size: 0.85rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
  font-weight: 400;
}


/* 为 hero 文字添加阴影和描边效果 */
.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  letter-spacing: -0.03em;
  /* 添加文字阴影增强可读性 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
  background: linear-gradient(120deg, #f5e6d3, #e6bc84);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 为渐变文字也添加阴影 */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.pre-title {
  font-size: 0.85rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
  font-weight: 400;
  /* 添加文字阴影 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
  /* 增强文字可读性 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 400;
}
.hero-highlight {
  background: linear-gradient(120deg, #f5e6d3, #e6bc84);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.8rem;
  border: 1.5px solid var(--primary-glow);
  color: var(--primary-glow);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 48px;
  transition: var(--transition);
  background: transparent;
}

.cta-button:hover {
  background: var(--primary-glow);
  color: var(--bg-dark);
  box-shadow: 0 8px 24px rgba(217, 167, 92, 0.3);
  transform: translateY(-2px);
}

/* ===== 作品集网格 — 精致卡片 ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 28px 24px 28px;
  transition: var(--transition);
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--border-active);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(230, 184, 116, 0.1);
  background: rgba(22, 24, 32, 0.8);
}

.game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #25282f, #191c22);
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-img img {
  transform: scale(1.05);
}

.game-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.game-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-glow);
  border: 1px solid rgba(230, 184, 116, 0.35);
  padding: 4px 12px;
  border-radius: 40px;
  letter-spacing: 0.3px;
}

/* ===== 核心理念区域 ===== */
.理念描述 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 32px 0 56px;
  line-height: 1.7;
  max-width: 880px;
}

.text-glow {
  color: var(--primary-glow);
  font-weight: 500;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.culture-item {
  background: rgba(12, 14, 20, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 28px;
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.culture-item:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  background: rgba(18, 20, 28, 0.7);
}

.culture-item i {
  font-size: 2.2rem;
  color: var(--primary-glow);
  margin-bottom: 20px;
}

.culture-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.culture-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== 招聘区域 — 极简专业 ===== */
.section-desc {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
  max-width: 680px;
}

.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin-top: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.job-category i {
  font-size: 1rem;
  opacity: 0.8;
}

.job-item {
  background: rgba(16, 18, 24, 0.6);
  backdrop-filter: blur(4px);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.job-item:hover {
  background: rgba(28, 30, 38, 0.9);
  border-color: var(--border-subtle);
  transform: translateX(6px);
}

.job-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.job-item i {
  color: var(--primary-glow);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.job-item:hover i {
  opacity: 1;
  transform: translateX(4px);
}

.contact-prompt {
  margin-top: 48px;
  padding: 32px;
  background: rgba(217, 167, 92, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.email-highlight {
  color: var(--primary-glow);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===== 底部页脚 — 精致 ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 40px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.company-address {
  text-align: left;
}

.address-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-glow);
  margin-bottom: 6px;
}

.address-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--primary-glow);
}

/* ===== 模态框样式 — 高级玻璃 ===== */
.job-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.job-modal.show {
  display: flex;
}

.job-modal-content {
  background: var(--bg-elevated);
  max-width: 520px;
  width: 90%;
  border: 1px solid var(--border-active);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.job-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-solid);
}

.job-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin: 0;
}

.close-modal {
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.close-modal:hover {
  color: var(--primary-glow);
}

.job-modal-body {
  padding: 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.job-modal-body h4 {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 12px 0;
}

.job-modal-body h4:first-child {
  margin-top: 0;
}

.job-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.job-modal-body li {
  color: var(--text-muted);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid rgba(230, 184, 116, 0.08);
  font-size: 0.9rem;
}

.job-modal-body li:last-child {
  border-bottom: none;
}

.job-modal-body li::before {
  content: "▹";
  color: var(--primary-glow);
  position: absolute;
  left: 0;
}

.bonus-section {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(217, 167, 92, 0.08);
  border-left: 3px solid var(--primary-glow);
  border-radius: 16px;
  color: #e6c48a;
  font-size: 0.9rem;
}

/* ===== 响应式优化 ===== */
@media (max-width: 992px) {
  .games-grid {
    gap: 24px;
  }
  .culture-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .culture-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .company-address {
    text-align: center;
  }
  .address-detail {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* 加载占位优化 */
.loading {
  opacity: 0.5;
  pointer-events: none;
}


/* ===== 服务网格 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-glow);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== 技术栈网格 ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--border-active);
  transform: translateX(6px);
}

.tech-item i {
  font-size: 2rem;
  color: var(--primary-glow);
}

.tech-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tech-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== 流程网格 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.process-step {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-glow);
  opacity: 0.5;
  margin-bottom: 16px;
}

.process-card i {
  font-size: 2rem;
  color: var(--primary-glow);
  margin-bottom: 16px;
}

.process-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== 统计网格 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: scale(1.02);
  border-color: var(--border-active);
}

.stat-card i {
  font-size: 2rem;
  color: var(--primary-glow);
  margin-bottom: 16px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-glow);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== FAQ 样式 ===== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-question span:first-child {
  font-size: 1rem;
}

.faq-question i {
  color: var(--primary-glow);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* ===== 客户网格 ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.client-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.client-card i {
  font-size: 2rem;
  color: var(--primary-glow);
  margin-bottom: 16px;
}

.client-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.client-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .services-grid, .process-grid, .stats-grid, .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid, .process-grid, .stats-grid, .tech-grid, .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero 轮播背景 ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

/* .slide-overlay {
  display: none;
 
} */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 从上到下：顶部半透明 -> 中间更透明 -> 底部加深 */
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 8, 0.4) 0%,
    rgba(5, 5, 8, 0.15) 30%,
    rgba(5, 5, 8, 0.5) 70%,
    rgba(5, 5, 8, 0.8) 100%
  );
  pointer-events: none;
}
/* 轮播控制按钮 */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(217, 167, 92, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 167, 92, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  color: var(--primary-glow);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: 24px;
}

.carousel-next {
  right: 24px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(217, 167, 92, 0.4);
  border-color: var(--primary-glow);
  transform: translateY(-50%) scale(1.05);
}

/* 轮播指示器 */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-glow);
  width: 28px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: var(--primary-glow);
  transform: scale(1.2);
}

/* 确保 hero 内容在轮播之上 */
.hero-section .container {
  position: relative;
  z-index: 10;
}

/* 轮播动画效果 */
@keyframes slideFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-slide.active img {
  animation: slideFade 1.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  .carousel-dots {
    bottom: 20px;
    gap: 8px;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
  
  .carousel-dot.active {
    width: 20px;
  }
}

/* ===== About Us 页面样式 ===== */
.about-hero {
  margin: 40px 0 60px 0;
  position: relative;
}

.about-image-container {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.about-image-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.about-image-container img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-image-container:hover img {
  transform: scale(1.02);
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 24px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image-container:hover .about-image-overlay {
  opacity: 1;
}

.about-image-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-glow);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-image-caption i {
  font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .about-hero {
    margin: 20px 0 40px;
  }
  
  .about-image-container {
    border-radius: 20px;
  }
  
  .about-image-container img {
    max-height: 300px;
  }
  
  .about-image-overlay {
    padding: 20px 16px 12px;
  }
  
  .about-image-caption {
    font-size: 0.75rem;
    gap: 8px;
  }
}
/* 强制游戏卡片可见 - 覆盖动画效果 */
.games-grid .game-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.games-grid .game-card.animated {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 保留悬停效果 */
.games-grid .game-card:hover {
  transform: translateY(-8px) !important;
}

/* ===== 游戏详情模态框 ===== */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.game-modal.show {
  display: flex;
}

.game-modal-content {
  background: var(--bg-elevated);
  max-width: 600px;
  width: 90%;
  border: 1px solid var(--border-active);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}

.game-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-solid);
}

.game-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin: 0;
}

.game-modal-body {
  padding: 28px;
  max-height: 70vh;
  overflow-y: auto;
}

.game-detail-icon {
  text-align: center;
  margin-bottom: 24px;
}

.game-detail-icon img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--border-active);
}

.game-detail-info {
  margin-bottom: 24px;
}

.game-detail-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.game-modal-body h4 {
  color: var(--primary-glow);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 12px 0;
}

.game-modal-body h4:first-of-type {
  margin-top: 0;
}

.game-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-modal-body li {
  color: var(--text-muted);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid rgba(230, 184, 116, 0.08);
  font-size: 0.9rem;
}

.game-modal-body li:last-child {
  border-bottom: none;
}

.game-modal-body li::before {
  content: "🎮";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* 游戏卡片点击效果 */
.game-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-card:active {
  transform: scale(0.98);
}

/* ===== 移动端导航优化 ===== */
@media (max-width: 640px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }
  
  .logo-area {
    margin-bottom: 2px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 4px;
  }
  
  .site-header {
    height: auto;
    min-height: 70px;
  }
  
  /* 调整主内容的上边距 */
  .main-content {
    padding-top: 110px;
  }
}

/* 超小屏幕进一步压缩 */
@media (max-width: 380px) {
  .logo-icon {
    font-size: 1.4rem;
  }
  
  .logo-text {
    font-size: 0.95rem;
  }
  
  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
}

/* ===== 移动端深度适配 ===== */

/* 1. 修复轮播图在移动端的裁剪问题 */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    height: auto;
  }
  
  .hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 关键修复：以宽度为基准，保证图片横向完整显示 */
    object-position: center center;
  }
  
  /* 优化蒙层，确保文字在任何背景下都可读 */
  .slide-overlay {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 8, 0.5) 0%,
      rgba(5, 5, 8, 0.2) 40%,
      rgba(5, 5, 8, 0.6) 80%,
      rgba(5, 5, 8, 0.85) 100%
    );
  }
  
  /* Hero 内容区域适配 */
  .hero-content {
    padding: 40px 0 80px;
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    line-height: 1.2;
  }
  
  .pre-title {
    font-size: 0.7rem;
    letter-spacing: 6px;
  }
  
  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  
  /* 轮播控制按钮适配 */
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(8px);
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  .carousel-dots {
    bottom: 20px;
  }
}

/* 2. 修复游戏列表在移动端显示为 2 列 */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  
  /* 游戏卡片移动端优化 */
  .game-card {
    padding: 16px 12px 20px;
    border-radius: 20px;
  }
  
  .game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .game-card p {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  
  .game-tag {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  
  .game-img {
    margin-bottom: 16px;
    border-radius: 16px;
  }
}

/* 超小屏幕进一步优化（如 iPhone SE 375px） */
@media (max-width: 480px) {
  .games-grid {
    gap: 12px;
  }
  
  .game-card {
    padding: 12px 8px 16px;
  }
  
  .game-card h3 {
    font-size: 1rem;
  }
  
  .game-card p {
    font-size: 0.7rem;
  }
  
  .game-tag {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
  
  /* Hero 标题进一步缩小 */
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
}

/* 极小屏幕（如折叠屏折叠状态） */
@media (max-width: 360px) {
  .games-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .game-card {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 3. 修复导航栏与内容的间距问题 */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    height: var(--header-height);
  }
  
  .main-content {
    padding-top: var(--header-height);
  }
  
  .section:first-of-type {
    padding-top: 0;
  }
}

/* 4. 修复文化价值观网格在移动端的显示 */
@media (max-width: 768px) {
  .culture-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .culture-item {
    padding: 24px 20px;
  }
}

/* 5. 修复底部页脚在移动端的显示 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .company-address {
    text-align: left;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 24px;
  }
}

/* 6. 模态框移动端适配 */
@media (max-width: 768px) {
  .job-modal-content,
  .game-modal-content {
    width: 95%;
    max-height: 85vh;
    border-radius: 24px;
  }
  
  .job-modal-header,
  .game-modal-header {
    padding: 18px 20px;
  }
  
  .job-modal-body,
  .game-modal-body {
    padding: 20px;
  }
  
  .job-modal-header h3,
  .game-modal-header h3 {
    font-size: 1.2rem;
  }
}

/* 7. 修复游戏详情弹窗图片 */
@media (max-width: 768px) {
  .game-detail-icon img {
    width: 80px;
    height: 80px;
  }
}


/* ===== 移动端轮播图修复 - 以宽度为准，高度自适应 ===== */
@media (max-width: 768px) {
  /* 取消 Hero 区域的最小高度限制 */
  .hero-section {
    min-height: auto;
    height: auto;
    display: block;
  }
  
  /* 轮播容器改为相对定位，高度由内容撑开 */
  .hero-carousel {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  /* 幻灯片容器高度自适应 */
  .carousel-slides {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  /* 每张幻灯片相对定位，高度由图片决定 */
  .carousel-slide {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  .carousel-slide:not(.active) {
    display: none;
  }
  
  .carousel-slide.active {
    display: block;
  }
  
  /* 图片以宽度为准，高度自适应 */
  .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  /* 蒙层跟随图片高度 */
  .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 8, 0.3) 0%,
      rgba(5, 5, 8, 0.1) 40%,
      rgba(5, 5, 8, 0.5) 80%,
      rgba(5, 5, 8, 0.8) 100%
    );
  }
  
  /* Hero 文字内容绝对定位在图片上方 */
  .hero-section .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
  }
  
  .hero-section .container * {
    pointer-events: auto;
  }
  
  /* 轮播控制按钮位置调整 */
  .carousel-prev,
  .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(8px);
    z-index: 20;
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  /* 轮播指示器 */
  .carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
  }
  
  /* Hero 文字内容适配 */
  .hero-content {
    padding: 20px;
    text-align: center;
    max-width: 90%;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .pre-title {
    font-size: 0.65rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.85rem;
  }
}

/* 超小屏幕进一步优化 */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-desc {
    font-size: 0.8rem;
    padding: 0 10px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
  }
}