﻿body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #fafbfc;
  color: #222;
  box-sizing: border-box;
}

.site-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  transition: all 0.2s;
  position: relative;
}

/* ------- 侧边栏 --------- */
.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #eee;
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  z-index: 1201;
  transition: none;
}

.sidebar .logo {
  font-weight: bold;
  font-size: 1.22rem;
  margin: 0 24px 28px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar nav {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0 18px 0 18px;
}
.sidebar nav ul li {
  margin-bottom: 8px;
  word-break: break-all;
}
.sidebar nav ul li.active > a {
  color: #2c7be5;
  font-weight: bold;
  background: #e9f1fa;
}
.sidebar nav ul li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.sidebar nav ul li a:hover {
  background: #f2f4f7;
  color: #2c7be5;
}

/* -------- 菜单按钮 -------- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3000 !important;
  box-shadow: 0 1px 8px 0 #0001;
}
.menu-toggle span {
  display: inline-block;
  font-size: 2rem;
  line-height: 2rem;
}
@media (max-width: 850px) {
  .menu-toggle {
    display: flex !important;
  }
}

/* ------- 菜单遮罩层 --------- */
.menu-mask {
  display: none;
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background:rgba(0,0,0,0.20);
  z-index: 1100;   /* 一定比sidebar小! */
  transition: opacity 0.2s;
  opacity: 0;
}
.sidebar.showmenu ~ .menu-mask {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------- 内容区 --------- */
.main-content {
  flex: 1;
  padding: 40px 32px 32px 32px;
  overflow-y: auto;
  min-width: 0;
  background: #fafbfc;
  max-width: 100vw;
  box-sizing: border-box;
  transition: all 0.2s;
}
.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
img {
  max-width: 100%;
  border-radius: 8px;
  box-sizing: border-box;
  height: auto;
}
.table-box {
  margin: 24px 0;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  margin-bottom: 16px;
  min-width: 320px;
}
th, td {
  border: 1px solid #eee;
  padding: 12px 10px;
  text-align: left;
}
th {
  background: #f5f7fa;
}
.pagination {
  margin: 32px 0 0 0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pagination button {
  border: none;
  background: #f3f4f6;
  color: #333;
  border-radius: 4px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}
.pagination button.active, .pagination button:hover {
  background: #2c7be5;
  color: #fff;
}
ul, ol {
  margin: 12px 0 18px 20px;
  padding-left: 20px;
}
h1, h2, h3 {
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #202020;
  line-height: 1.3;
}
h2 {
  font-size: 1.3rem;
}

/* ------- 响应式（PC→Pad→移动端） --------- */
@media (max-width: 1100px) {
  .main-content {
    padding: 24px 8px 20px 8px;
  }
}

/* ----------- 移动端专属 -------------- */
@media (max-width: 850px) {
  .menu-toggle {
    display: flex !important;
  }
  .site-layout {
    flex-direction: column;
    position: static;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80vw;
    max-width: 330px;
    min-width: 0;
    box-shadow: 2px 0 18px 0 #0002;
    background: #fff;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.77,0,.18,1);
  }
  .sidebar.showmenu {
    transform: translateX(0);
  }
  .main-content {
    padding: 17vw 3vw 10vw 3vw;
    width: 100vw;
    font-size: 1rem;
    max-width: 100vw;
  }
  .sidebar .logo {
    margin: 0 14px 16px 14px;
    font-size: 1.09rem;
  }
}
@media (max-width: 500px) {
  .sidebar {
    width: 97vw;
    max-width: 99vw;
    padding: 10px 0 8px 0;
  }
  .sidebar .logo {
    display: none;
  }
  .main-content {
    padding: 10vw 2vw 18vw 2vw;
    font-size: 0.98rem;
  }
  .table-box { font-size: 0.88rem;}
}

/* --------- 滚动条美化 ----------- */
::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}
::-webkit-scrollbar {
  width: 6px;
  background: #fafbfc;
}

/* ======= Added styles for new pages ======= */
.hero { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.05); margin-bottom: 24px; }
.hero-img { width: 100%; display: block; }
.hero-text { position: absolute; left: 24px; bottom: 24px; background: rgba(255,255,255,.8); backdrop-filter: blur(4px); padding: 14px 18px; border-radius: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display:block; border:1px solid #eee; border-radius:14px; overflow:hidden; text-decoration:none; color:#222; background:#fff; box-shadow:0 5px 22px rgba(0,0,0,.04); transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.06); }
.card-thumb { height:160px; overflow:hidden; }
.card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.card-body { padding:12px 14px 16px; }
.card-body h3 { margin:6px 0 6px; font-size:18px; }
.list-dot li { margin:6px 0; }
.callout { padding:14px 16px; background:#f6f7fb; border:1px solid #eee; border-radius:12px; margin:16px 0 12px; }
.img-figure { margin: 12px 0 20px; text-align:center; }
.img-figure img { max-width:100%; border-radius: 16px; border:1px solid #eee; box-shadow: 0 6px 26px rgba(0,0,0,.05); }
.img-figure .caption { font-size: 12px; color: #666; }

/* team */
.team-list { display: grid; gap: 14px; margin: 10px 0 18px; }
.member { display:flex; gap:12px; align-items:center; background:#fff; border:1px solid #eee; border-radius:12px; padding:10px 12px; box-shadow:0 4px 18px rgba(0,0,0,.03); }
.member .avatar { width:44px; height:44px; border-radius:50%; background:#f0f3ff; border:1px solid #e5e8fb; display:flex; align-items:center; justify-content:center; font-weight:700; }

/* Nested menu (submenu) */
.sidebar nav ul li.has-children > a { cursor: default; opacity:.9; }
.sidebar nav ul li .submenu { list-style:none; margin:6px 0 6px 10px; padding-left:12px; border-left:2px solid #f2f3f5; display:block; }
.sidebar nav ul li .submenu li a { font-size: 14px; opacity:.8; }
.sidebar nav ul li .submenu li.active > a { font-weight: 600; opacity: 1; }

/* Partners orbit */
.partners-orbit { position: relative; height: 520px; display:flex; align-items:center; justify-content:center; }
.partners-orbit .center-logo { position:absolute; width:160px; height:160px; border-radius:50%; background:#ffcf40; display:flex; align-items:center; justify-content:center; text-align:center; font-weight:800; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.partners-orbit .orbit { position:absolute; border-radius:50%; border: 2px dashed #e9ecf3; }
.partners-orbit .orbit-outer { width:520px; height:520px; }
.partners-orbit .orbit-inner { width:320px; height:320px; }
.partners-orbit .bubble { position:absolute; width:96px; height:96px; border-radius:50%; background:#fff; border:1px solid #e9ecf3; box-shadow:0 6px 20px rgba(0,0,0,.05); display:flex; align-items:center; justify-content:center; font-weight:600; }

/* Place bubbles around orbits */
.partners-orbit .orbit-outer .bubble:nth-child(1) { left:50%; transform:translate(-50%,-50%); top:0; }
.partners-orbit .orbit-outer .bubble:nth-child(2) { right:-10px; top:25%; }
.partners-orbit .orbit-outer .bubble:nth-child(3) { left:-10px; top:30%; }
.partners-orbit .orbit-outer .bubble:nth-child(4) { left:15%; bottom:5%; }
.partners-orbit .orbit-outer .bubble:nth-child(5) { right:18%; bottom:8%; }
.partners-orbit .orbit-outer .bubble:nth-child(6) { right:22%; top:5%; }
.partners-orbit .orbit-outer .bubble:nth-child(7) { left:22%; top:8%; }

.partners-orbit .orbit-inner .bubble:nth-child(1) { left:50%; top:-30px; transform:translateX(-50%); }
.partners-orbit .orbit-inner .bubble:nth-child(2) { left:50%; bottom:-30px; transform:translateX(-50%); }

@media (max-width: 860px) {
  .partners-orbit { height: 460px;}
  .partners-orbit .orbit-outer { width:420px; height:420px;}
  .partners-orbit .orbit-inner { width:260px; height:260px;}
  .partners-orbit .bubble { width:80px; height:80px; font-size:12px;}
  .partners-orbit .center-logo { width:130px; height:130px; font-size:14px; }
}

/* --- FIX: 确保移动端展开一定生效（兜底优先级） --- */
@media (max-width: 850px) {
  .site-layout .sidebar.showmenu { transform: translateX(0) !important; }
}

/* ===== Footer ===== */
.site-footer{
  position:fixed;
  left:260px;       /* 桌面端避开侧栏宽度 */
  right:0;
  bottom:0;
  background:#fff;
  border-top:1px solid #eee;
  box-shadow:0 -4px 16px rgba(0,0,0,.04);
  z-index: 1000;
}
.footer-inner{
  display:flex;
  gap:12px 16px;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  flex-wrap:wrap;
}
.footer-badges{ display:flex; gap:8px; flex-wrap:wrap;}
.footer-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border:1px solid #eee; border-radius:8px;
  background:#f7f8fa; color:#444; text-decoration:none; font-size:14px;
}
.footer-badge svg{ opacity:.85; }
.footer-links{ display:flex; gap:12px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:#2c7be5; font-size:14px; }

/* 给内容区留出底部空间，避免被固定 footer 遮住 */
.main-content{ padding-bottom: 92px; }

/* 移动端：侧栏覆盖全屏，footer 左边不需要预留 */
@media (max-width: 850px){
  .site-footer{ left:0; }
}

/* 小徽章 */
.badge{
  display:inline-block; padding:2px 8px; border-radius:999px;
  font-size:12px; line-height:18px; border:1px solid #cfe8d9;
  background:#e9f7ef; color:#177245;
}
.badge.warn{ background:#fff7e6; border-color:#ffe5b4; color:#b36b00; }

/* ===== Game Home (Landing) ===== */

/* Hero Carousel */
.hp-hero{ position:relative; margin:-12px 0 18px 0; }
.hp-carousel{ position:relative; height:min(60vh,520px); min-height:340px; border-radius:18px; overflow:hidden; box-shadow:0 10px 36px rgba(0,0,0,.08); }
.hp-slide{
  position:absolute; inset:0;
  background: #0b0e1a center/cover no-repeat;
  background-image: var(--bg);
  opacity:0;
  transform: scale(1.04);
  animation: hpFade 18s infinite;
}
.hp-slide:nth-child(1){ animation-delay: 0s; }
.hp-slide:nth-child(2){ animation-delay: 6s; }
.hp-slide:nth-child(3){ animation-delay:12s; }

@keyframes hpFade{
  0%{ opacity:0; transform:scale(1.04); }
  6%{ opacity:1; transform:scale(1.0); }
  28%{ opacity:1; transform:scale(1.0); }
  33%{ opacity:0; transform:scale(1.02); }
  100%{ opacity:0; transform:scale(1.02); }
}

.hp-hero-caption{
  position:absolute; left:28px; bottom:28px;
  background: linear-gradient( to right, rgba(255,255,255,.9), rgba(255,255,255,.72) );
  padding:14px 18px; border-radius:12px; max-width:min(680px,80%);
  backdrop-filter: blur(2px);
}
.hp-hero-caption h1{ margin:0 0 6px 0; font-size:28px; }
.hp-hero-caption p{ margin:0; opacity:.9; }
.hp-cta{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 14px; border-radius:10px; text-decoration:none;
  background:#edf1f7; color:#333; border:1px solid #e5e8ee; font-weight:600;
}
.btn:hover{ filter:brightness(0.98); }
.btn-primary{ background:#2c7be5; color:#fff; border-color:#2c7be5; }
.btn-ghost{ background:#fff; color:#2c7be5; border-color:#e5efff; }

/* Section */
.hp-section{ margin:22px 0; }
.hp-section-header{ margin-bottom:12px; }
.hp-section-header h2{ margin:0 0 6px 0; font-size:22px; }
.hp-section-header p{ margin:0; color:#555; }

/* Features */
.hp-features{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
.feature-card{ background:#fff; border:1px solid #eee; border-radius:14px; padding:14px; box-shadow:0 6px 20px rgba(0,0,0,.04); }
.feature-card .f-icon{ font-size:24px; margin-bottom:6px; }

/* Cards 3 columns */
.hp-cards-3{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Two columns */
.hp-two-cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:16px; align-items:start; }
.hp-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

/* Screenshots */
.hp-screens{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:10px; }
.hp-screens .screen{
  border-radius:14px; border:1px solid #eee; height:180px; background: #121621 center/cover no-repeat;
  background-image: var(--bg); box-shadow:0 8px 24px rgba(0,0,0,.05);
}

/* Partners */
.hp-partner-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.p-badge{
  display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px;
  border:1px solid #e6eaf2; background:#f6f8fb; color:#384454; font-weight:600; font-size:14px;
}

/* Final CTA */
.hp-cta-final{ text-align:center; background:#fff; border:1px solid #eee; border-radius:18px; padding:20px; box-shadow:0 10px 30px rgba(0,0,0,.04); }
.hp-cta-final h2{ margin:0 0 8px 0; }

/* Mobile tweaks */
@media (max-width: 850px){
  .hp-carousel{ min-height:280px; }
  .hp-hero-caption{ left:14px; right:14px; bottom:14px; max-width:none; }
}

/* Footer link separators & wrap */
.footer-links a + a::before{
  content: "·";
  margin: 0 6px;
  color: #c6ccd8;
}
@media (max-width: 520px){
  .footer-links { row-gap: 6px; }
  .footer-links a + a::before{ margin: 0 4px; }
}

