/* style.css - Zencode Game 网站统一样式，更新自提供的 :root 风格，优化隐私政策行间距 */

:root {
  --maxw: 1100px;
  --accent: #0b84ff;
}

* {
  box-sizing: border-box;
}

/* 汉堡菜单按钮默认隐藏 */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

/* 移动端样式 */
@media (max-width: 600px) {
  nav {
    display: none; /* 默认隐藏导航菜单 */
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  header {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

/* 展示导航菜单 */
nav.active {
  display: flex;
}

nav a.active {
  color: var(--accent);
}


body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  line-height: 1.6;
  margin: 0;
  color: #111;
  background: #fafafa;
}

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

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}

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

.brand .logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b84ff, #3ec7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Hero 区域 */
.hero {
  padding: 40px 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.hero p {
  margin: 0 auto 20px;
  max-width: 700px;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #0a6fcc;
}

/* 游戏列表 */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.content-page {
  padding: 20px 0;
}

.policy {
  white-space: pre-wrap;
  line-height: 1.4; /* 缩小行间距 */
  margin-bottom: 12px;
}

h2 {
  margin-top: 0;
  color: var(--accent);
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 14px;
  text-align: center;
}

footer .footer-text {
  text-align: center;
  font-size: 14px;
  color: #666;
}

footer .footer-links {
  display: block; /* 换行 */
  margin-top: 5px;
}

/* 团队成员样式 */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-member {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 20px;
}

.member-role {
  color: #666;
  font-size: 16px;
  margin: 0 0 15px;
}

.member-bio {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}


/* 响应式 */
@media (max-width: 992px) {
  .games {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  nav a {
    margin: 5px 10px 0 0;
  }

  .card img {
    height: 140px;
  }
}