/* ===== 全局重置 & 变量 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0c;
  --bg-deep: #111316;
  --primary-glow: #c79b6e;
  --text-light: #f0e9de;
  --text-dim: #9ca3af;
  --border-subtle: rgba(199, 155, 110, 0.1);
  --font-sans: 'Inter', sans-serif;
  --header-height: 70px;
}

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.3;
  pointer-events: none;
  z-index: -2;
}

.overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(20, 15, 25, 0.6) 0%, #0a0a0c 90%);
  z-index: -1;
  pointer-events: none;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== 头部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary-glow);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f5e6d3, #c79b6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-glow);
}

/* ===== 主要内容区 ===== */
.main-content {
  padding-top: var(--header-height);
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* ===== 首页英雄区 ===== */
.hero-content {
  max-width: 700px;
  padding: 40px 0;
}

.pre-title {
  font-size: 0.9rem;
  letter-spacing: 6px;
  color: var(--primary-glow);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  background: linear-gradient(120deg, #f5e6d3, #dbba93);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--primary-glow);
  color: var(--primary-glow);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--primary-glow);
  color: var(--bg-dark);
}

/* ===== 游戏作品集 (紧凑网格) ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background: rgba(20, 22, 28, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  transition: all 0.3s;
}

.game-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-5px);
}

.game-img {
  width: 100%;
  aspect-ratio: 16/16;
  background: linear-gradient(145deg, #2a241f, #1a1512);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a241f;
}

.game-img i {
  font-size: 2.5rem;
  color: var(--primary-glow);
  opacity: 0.5;
}

.game-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.game-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--primary-glow);
  border: 1px solid rgba(199, 155, 110, 0.3);
  padding: 2px 10px;
  margin-top: 10px;
  border-radius: 20px;
}

/* ===== 理念区域 (紧凑) ===== */
.理念内容 {
  max-width: 900px;
}

.理念描述 {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 30px 0;
  line-height: 1.6;
}

.text-glow {
  color: var(--primary-glow);
}

.stats-grid {
  display: flex;
  gap: 60px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-glow);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #7b7e8c;
  letter-spacing: 1px;
  margin-top: 5px;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.culture-item i {
  font-size: 2rem;
  color: var(--primary-glow);
  margin-bottom: 15px;
}

.culture-item h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.culture-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== 招聘区域 (紧凑列表) ===== */
.section-desc {
  color: var(--text-dim);
  margin-bottom: 30px;
}

.jobs-compact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.job-item {
  background: rgba(20, 22, 28, 0.6);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.job-item:hover {
  background: rgba(30, 33, 40, 0.8);
  padding-left: 25px;
}

.job-type {
  font-size: 0.8rem;
  color: var(--primary-glow);
  border: 1px solid rgba(199, 155, 110, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
}

.job-name {
  flex: 1;
  font-size: 1rem;
}

.job-item i {
  color: var(--primary-glow);
  opacity: 0.5;
}

.contact-prompt {
  margin-top: 30px;
  padding: 20px;
  background: rgba(199, 155, 110, 0.05);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.email-highlight {
  color: var(--primary-glow);
  font-weight: 500;
  margin-left: 5px;
}

/* ===== 底部页脚 ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  background: rgba(10, 10, 12, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--primary-glow);
}

/* ===== 模态框样式 ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #1a1d24;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--primary-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #1a1d24;
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-glow);
}

.close-modal {
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-glow);
}

.modal-body {
  padding: 20px;
  color: var(--text-dim);
  line-height: 1.6;
}

.modal-body h3 {
  color: var(--text-light);
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 5px;
}

.modal-body .bonus {
  color: #d4b28c;
  margin-top: 10px;
  padding: 10px;
  background: rgba(199, 155, 110, 0.1);
  border-left: 2px solid var(--primary-glow);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .culture-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ===== 动态内容样式 ===== */
[data-i18n] {
  transition: all 0.3s ease;
}

/* 确保招聘容器有最小高度 */
.jobs-compact {
  min-height: 300px;
  background: rgba(20, 22, 28, 0.3);
  border-radius: 4px;
}

/* 游戏卡片容器 */
#gamesGrid {
  min-height: 400px;
}

/* 加载状态 */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

.loading::after {
  content: "加载中...";
  display: block;
  text-align: center;
  padding: 20px;
  color: var(--primary-glow);
}

/* 职位详情模态框样式 */
.job-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.job-modal.show {
  display: flex;
}

.job-modal-content {
  background: #1a1d24;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--primary-glow);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1d24;
  border-radius: 8px 8px 0 0;
}

.job-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-glow);
  margin: 0;
}

.close-modal {
  font-size: 2rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: var(--primary-glow);
}

.job-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.job-modal-body h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 15px 0 10px 0;
}

.job-modal-body h4:first-child {
  margin-top: 0;
}

.job-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.job-modal-body li {
  color: var(--text-dim);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(199, 155, 110, 0.1);
}

.job-modal-body li:last-child {
  border-bottom: none;
}

.job-modal-body li::before {
  content: "▹";
  color: var(--primary-glow);
  position: absolute;
  left: 0;
}

.job-modal-body .bonus-section {
  margin-top: 15px;
  padding: 15px;
  background: rgba(199, 155, 110, 0.1);
  border-left: 3px solid var(--primary-glow);
  color: #d4b28c;
  font-weight: 400;
}

.job-modal-body .bonus-section i {
  color: var(--primary-glow);
  margin-right: 8px;
}

/* 页脚样式补充 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
  background: rgba(10, 10, 12, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-info {
  flex: 1;
}

.company-address {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.address-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-glow);
  margin-bottom: 4px;
}

.address-detail {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 350px;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--primary-glow);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .address-detail {
    max-width: 100%;
  }
  
  .footer-links {
    justify-content: center;
  }
}