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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1f2a44;
  line-height: 1.5;

  /* 移动端游戏平台常用做法 */
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   Header / Footer
   ========================================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e8ef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e6e8ef;
  margin-top: 40px;
  padding: 24px 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* =========================================================
   Logo
   ========================================================= */
.logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #2a3355;
  padding:15px 0 15px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #2a3355;
}

h2 {
  font-size: 26px;
  margin: 24px 0 16px;
}

p {
  color: #4b5563;
}

a {
  color: inherit;
  text-decoration: none;
}

a:active {
  opacity: 0.8;
}

/* =========================================================
   Images
   ========================================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* =========================================================
   Navigation (可横向拖动菜单的基础支撑)
   ========================================================= */
.header-nav {
  border-top: 1px solid #f0f2f6;
}

.nav-scroll {
  display: flex;
  gap: 20px;
  padding: 12px 16px;

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-item {
  font-size: 15px;
  font-weight: 600;
  color: #5a648a;
  padding-bottom: 6px;
  position: relative;
  flex-shrink: 0;
}

.nav-item.active {
  color: #2a3355;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #2a3355;
  border-radius: 2px;
}

/* =========================================================
   Utility
   ========================================================= */
.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

/* =========================================================
   Ad Slot (公共，不侵入内容)
   ========================================================= */
.ad-slot {
  margin: 24px 0;
  text-align: center;
}



/* =========================================================
   Static Pages (About / Privacy / Contact)
   ========================================================= */
.container-page {
  max-width: 720px;
  margin: 32px auto 56px;
  padding: 0 16px;
  min-height: 450px;
}

/* 标题 */
.container-page h1 {
  font-size: 36px;
  font-weight: 800;
  color: #2a3355;
  margin-bottom: 24px;
}

/* 正文段落 */
.container-page p {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
}

/* 链接（如果有） */
.container-page a {
  color: #2a3355;
  font-weight: 600;
  text-decoration: underline;
}

/* 最后一段（比如 cookie 提示）稍微弱一点 */
.container-page p:last-child {
  font-size: 14px;
  color: #6b7280;
  margin-top: 32px;
}

/* =========================================================
   Game Detail Page
   ========================================================= */
.game-detail {
  text-align: center;
}

/* 顶部卡片 */
.game-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-cover {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* 标题 */
.game-title-main {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* 评分 */
.game-rating {
  color: #f87171;
  font-size: 20px;
  margin-bottom: 18px;
}

/* Play 按钮 */
.btn-play {
  display: inline-block;
  background: #ef635c;
  color: #fff;
  font-size: 20px;
  font-weight հասց: 800;
  padding: 16px 48px;
  border-radius: 999px;
  margin-bottom: 40px;
  text-decoration: none;
}

/* 描述 */
.game-description {
  text-align: left;
}

.game-description h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.game-description p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

/* =========================================================
   Popular Section
   ========================================================= */
.popular-section {
  margin-top: 48px;
}

.popular-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: left;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* =========================================================
   Game Detail Page
   ========================================================= */
.game-detail {
  text-align: center;
}

/* 顶部卡片 */
.game-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-cover {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* 标题 */
.game-title-main {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* 评分 */
.game-rating {
  color: #f87171;
  font-size: 20px;
  margin-bottom: 18px;
}

/* Play 按钮 */
.btn-play {
  display: inline-block;
  background: #ef635c;
  color: #fff;
  font-size: 20px;
  font-weight հասց: 800;
  padding: 16px 48px;
  border-radius: 999px;
  margin-bottom: 40px;
  text-decoration: none;
}

/* 描述 */
.game-description {
  text-align: left;
}

.game-description h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.game-description p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

/* =========================================================
   Popular Section
   ========================================================= */
.popular-section {
  margin-top: 48px;
}

.popular-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: left;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}



/* =========================================================
   Mobile tweaks
   ========================================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }
  
  .container-page {
    margin-top: 24px;
  }

  .container-page h1 {
    font-size: 30px;
  }

  .container-page p {
    font-size: 15px;
  }
}
