/* =========================================================
   门户三栏布局（对齐 aiqu 参考站结构）
   左侧竖导航 | 中间主栏 | 右侧榜/下载
   ========================================================= */
:root {
  --aiqu-teal: #15f3df;
  --aiqu-teal-2: #0fc5b4;
  --aiqu-teal-3: #00d9c5;
  --aiqu-bg: #f5f7fa;
  --aiqu-card: #fff;
  --aiqu-text: #333;
  --aiqu-muted: #999;
  --aiqu-line: rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--aiqu-bg);
  color: var(--aiqu-text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
li { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- 整体三栏 ---------- */
.layout {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1496px;
  padding: 16px;
  position: relative;
  gap: 0;
  min-height: 100vh;
}

.sidebar-left {
  position: relative;
  z-index: 201;
  width: 220px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.left-content {
  background: transparent;
}
.left-content .logo {
  display: block;
  height: 56px;
  width: 200px;
  margin-bottom: 16px;
}
.left-content .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.left-content .logo:empty,
.left-content .logo {
  color: #111;
  font-weight: 800;
  font-size: 18px;
  line-height: 56px;
}

.side-menu {
  margin: 0;
  padding: 0;
}
.side-menu a {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 8px;
  max-width: 180px;
  padding: 10px 16px;
  border-radius: 13px;
  color: #999;
  font-size: 16px;
  font-weight: 700;
  transition: all .25s;
}
.side-menu a i {
  font-size: 22px;
  width: 28px;
  text-align: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.side-menu a span { white-space: nowrap; }
.side-menu a:hover { color: #333; background: #f3f4f5; }
.side-menu a.is-active {
  background: #f3f4f5;
  color: #111;
}
.side-menu a.is-active i { color: var(--aiqu-teal-2); }

.side-user {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-user-name {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user a {
  font-size: 13px;
  color: #999;
}
.side-user a:hover { color: #15f3df; }
.side-btn {
  height: 36px;
  border-radius: 18px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}
.side-btn.primary {
  background: linear-gradient(90deg, var(--aiqu-teal), var(--aiqu-teal-2));
  border: none;
  color: #fff;
  font-weight: 700;
}

/* ---------- 中间主栏 ---------- */
.main-content {
  width: 600px;
  flex-shrink: 0;
  margin: 0 24px;
  min-height: calc(100vh - 32px);
  padding: 0 6px 40px;
  background: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
  background: #fff;
  border-radius: 4px;
  align-self: stretch;
}

/* ---------- 右侧栏 ---------- */
.sidebar-right {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-right::-webkit-scrollbar { display: none; }

.right-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.rt-btn {
  flex: 1;
  height: 44px;
  border-radius: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.rt-btn.teal { background: linear-gradient(90deg, #52c2a9, #4ed797); }
.rt-btn.blue { background: linear-gradient(90deg, #1375ff, #08b3ff); }

.right-content { border-radius: 20px; }

.sidebar-module {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  margin: 0 0 16px;
  padding: 16px;
}
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.module-title {
  color: #333;
  font-size: 16px;
  font-weight: 700;
}
.module-more {
  color: #999;
  font-size: 12px;
}
.game-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.side-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.side-logo img { width: 100%; height: 100%; object-fit: cover; }
.side-info { flex: 1; min-width: 0; }
.side-name {
  color: #333;
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-tags {
  color: #999;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-empty {
  color: #bbb;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

.download-module {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.download-module .module-header { margin-bottom: 0; }
.qrcode-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: #f5f7fa;
  border-radius: 8px;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  padding: 10px;
}
.download-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, var(--aiqu-teal), var(--aiqu-teal-2));
  color: #fff;
  border: none;
  border-radius: 60px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 移动端顶栏（默认隐藏） ---------- */
.mobile-top { display: none; }

/* ---------- 通用卡片 / 列表（参考站游戏卡） ---------- */
.section-title {
  border-left: 4px solid var(--aiqu-teal-3);
  color: #333;
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 12px;
  padding-left: 10px;
}
.section-title.en-title {
  color: #ccc;
  font-size: 28px;
  border: none;
  padding: 0;
  margin-bottom: 8px;
}

.common-intro {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  overflow: hidden;
}
.game-intro-card {
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.game-intro-card:hover { background: #fafafa; }
.game-logo-box {
  width: 94px;
  height: 94px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.game-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.game-intro-card .content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  min-width: 0;
}
.game-intro-card .info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.game-intro-card .name {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-intro-card .meta {
  color: #a0aec0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.game-intro-card .play { color: #63b3ed; }
.discount-badge {
  align-self: center;
  background: linear-gradient(90deg, #15f3df, #0fc5b4);
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* 分类胶囊 */
.sticky-categories {
  align-items: center;
  background: #fff;
  display: flex;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.category-item {
  background: #f5f5f5;
  border-radius: 20px;
  color: #666;
  font-size: 14px;
  padding: 6px 16px;
  margin-right: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.category-item.active {
  background: linear-gradient(90deg, #15f3df, #0fc5b4);
  color: #fff;
  font-weight: 700;
}

/* ---------- 首页 ---------- */
.home-featured {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 8px;
  background: #0f172a;
}
.home-featured .banner-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: .92;
}
.home-featured .featured-tag {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border-radius: 0 20px 20px 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.home-featured .featured-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15,23,42,0), rgba(15,23,42,.9));
}
.home-featured .featured-game-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-featured .featured-game-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: #334155;
  flex-shrink: 0;
}
.home-featured .featured-game-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-featured .featured-game-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.home-featured .featured-game-stats {
  color: #e2e8f0;
  font-size: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-featured .cta {
  margin-left: auto;
  background: linear-gradient(90deg, var(--aiqu-teal), var(--aiqu-teal-2));
  color: #fff;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.home-side-btns {
  display: flex;
  gap: 10px;
  margin: 14px 0 4px;
}
.home-side-btns .pill {
  flex: 1;
  height: 40px;
  border-radius: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.home-side-btns .pill.teal { background: linear-gradient(90deg, #52c2a9, #4ed797); }
.home-side-btns .pill.blue { background: linear-gradient(90deg, #1375ff, #08b3ff); }

.game-list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding-bottom: 8px;
}

/* 新闻卡 */
.news-card-row {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  display: flex;
  overflow: hidden;
  margin: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: transform .2s;
}
.news-card-row:hover { transform: translateY(-2px); }
.news-card-row .news-image {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: #eef2f7;
}
.news-card-row .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-row .news-content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.news-card-row .news-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-row .news-meta {
  color: #999;
  font-size: 12px;
}
.news-card-row .news-summary {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ---------- 排行 ---------- */
.rank-hero {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff;
  padding: 22px 16px;
  border-radius: 0 0 4px 4px;
  margin: -16px -6px 8px;
}
.rank-hero h1 { margin: 0 0 4px; font-size: 22px; }
.rank-hero p { margin: 0; opacity: .9; font-size: 13px; }

/* ---------- 详情页 ---------- */
.detail-topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.detail-topnav .back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-right: 8px;
  flex-shrink: 0;
}
.detail-topnav .title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.shot-scroll::-webkit-scrollbar { display: none; }
.shot-scroll img {
  height: 240px;
  width: auto;
  max-width: 280px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
  cursor: zoom-in;
}

.detail-intro-card {
  background: #fff;
  border-radius: 16px;
  padding: 4px 0 8px;
}
.download-section {
  margin: 12px 0;
}
.download-main-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, var(--aiqu-teal), var(--aiqu-teal-2));
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.game-info-rows {
  background: #fff;
  border-radius: 16px;
  padding: 8px 16px 12px;
  margin-bottom: 14px;
}
.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .info-label {
  width: 88px;
  color: #999;
  flex-shrink: 0;
}
.info-row .info-value {
  flex: 1;
  color: #333;
  word-break: break-word;
}
.desc-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.desc-card h3 {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.desc-card p, .desc-card .description-content {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.tag-chip {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 12px;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
}
.tag-chip.teal {
  background: linear-gradient(90deg, #15f3df, #0fc5b4);
  color: #fff;
  font-weight: 700;
}

/* ---------- APP 下载页 ---------- */
.box-page { background: #fff; }
.box-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.download-section-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
}
.download-info { flex: 1; min-width: 260px; }
.download-info h2 {
  color: #1b1a1f;
  font-size: 22px;
  margin: 0 0 10px;
}
.tagline {
  color: #ed4634;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 15px;
}
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 20px;
}
.meta-item { color: #666; font-size: 13px; }
.download-options {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.features {
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
}
.features h2, .platform-advantages h2 {
  text-align: center;
  font-size: 20px;
  color: #1b1a1f;
  margin: 0 0 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.feature-card {
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
  overflow: hidden;
  padding: 18px 15px;
  text-align: center;
  transition: all .3s;
}
.feature-card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, .1);
  transform: translateY(-6px);
}
.feature-card.card-1 {
  background: linear-gradient(135deg, #fff, #f9f0f0);
  border-top: 3px solid #ed4634;
}
.feature-card.card-2 {
  background: linear-gradient(135deg, #fff, #f0f7f9);
  border-top: 3px solid #4dd3bc;
}
.feature-card.card-3 {
  background: linear-gradient(135deg, #fff, #f9f7f0);
  border-top: 3px solid #ffc107;
}
.feature-card h3 {
  color: #333;
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}
.feature-card p {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.platform-advantages {
  padding: 25px 15px;
  border-bottom: 1px solid #f0f0f0;
}
.pk-wrap {
  display: flex;
  gap: 12px;
}
.pk-list {
  flex: 1;
  min-width: 0;
}
.comparison-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.pk-list01 .comparison-title { border-color: #ed4634; color: #ed4634; }
.pk-list02 .comparison-title { border-color: #ccc; color: #666; }
.pk-list ul { margin: 0; padding: 0; list-style: none; }
.pk-list li {
  font-size: 14px;
  padding: 10px 5px;
  text-align: center;
}
.pk-list01 li { color: #ed4634; font-weight: 500; }
.pk-list02 li { color: #666; }

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #bbb;
  background: #fff;
  border-radius: 16px;
}
.empty-state i {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.site-footer {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 24px 10px 8px;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1218px) {
  .sidebar-left { width: 72px; }
  .left-content .logo { width: 46px; height: 46px; margin: 8px auto 16px; }
  .left-content .logo img { width: 46px; height: 46px; }
  .left-content .logo { font-size: 0; line-height: 0; }
  .side-menu a { justify-content: center; padding: 0; width: 48px; max-width: 48px; margin: 0 auto 8px; }
  .side-menu a span { display: none; }
  .side-menu a i { margin: 0; }
  .side-user { display: none; }
  .main-content { margin: 0 16px; }
}

@media screen and (max-width: 1002px) {
  .sidebar-right { display: none; }
}

@media screen and (max-width: 696px) {
  .main-content {
    flex: 1;
    margin: 0 0 0 12px;
    width: auto;
  }
  .game-logo-box { width: 80px; height: 80px; border-radius: 14px; }
  .game-intro-card .name { font-size: 16px; }
  .news-card-row { flex-direction: column; }
  .news-card-row .news-image { width: 100%; height: 160px; }
  .features-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 499px) {
  .layout {
    display: block;
    padding: 0;
    max-width: 100%;
  }
  .sidebar-left { display: none; }
  .main-content {
    width: 100%;
    margin: 0;
    min-height: auto;
    box-shadow: none;
    border-radius: 0;
    padding-bottom: 72px;
  }
  .mobile-top {
    display: block;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .08);
  }
  .mobile-top .m-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    font-weight: 800;
    color: #111;
    font-size: 15px;
  }
  .mobile-top .m-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 10px;
    top: 0;
    height: 44px;
    align-items: center;
  }
  .mobile-top .m-actions a {
    font-size: 12px;
    color: #666;
  }
  .mobile-top .m-actions .m-app {
    background: linear-gradient(90deg, var(--aiqu-teal), var(--aiqu-teal-2));
    color: #fff;
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 700;
  }
  .mobile-top .m-nav {
    display: flex;
    border-top: 1px solid #f0f0f0;
    overflow-x: auto;
    padding: 0 4px;
  }
  .mobile-top .m-nav a {
    flex: 1;
    min-width: 64px;
    text-align: center;
    padding: 10px 6px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
  }
  .mobile-top .m-nav a.is-active {
    color: var(--aiqu-teal-2);
    border-bottom: 2px solid var(--aiqu-teal-2);
  }
  .home-featured .banner-img { height: 180px; }
  .home-featured .featured-footer { padding: 14px; }
  .home-featured .featured-game-name { font-size: 16px; }
  .home-featured .cta { padding: 8px 12px; font-size: 12px; }
  .section-title { font-size: 16px; }
  .download-section-box { padding: 15px; }
  .features, .platform-advantages { padding: 15px; }
  .rank-hero { margin: 0 0 8px; border-radius: 0; }
  .shot-scroll img { height: 180px; max-width: 220px; }
}
