/* ===========================
   GameHub 平台公共样式
   =========================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#0f0f1a;
  --bg2:#1a1a2e;
  --bg3:#16213e;
  --accent:#e94560;
  --accent-h:#c73652;
  --gold:#f0c040;
  --text:#eaeaea;
  --muted:#8892a4;
  --r-sm:8px;
  --r-md:16px;
  --r-lg:24px;
  --shadow:0 8px 32px rgba(0,0,0,.5);
  --tr:.25s ease;
}

body{
  font-family:'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
}

/* ===========================
   平台布局
   =========================== */
.platform{
  max-width:1100px;
  margin:0 auto;
  padding:24px 32px 40px;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* 头部 */
.platform-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:24px;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.logo-icon{
  font-size:1.8rem;
}
.logo-text{
  font-size:1.6rem;
  font-weight:900;
  letter-spacing:3px;
  background:linear-gradient(135deg,var(--gold),var(--accent));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.platform-desc{
  color:var(--muted);
  font-size:1rem;
  letter-spacing:2px;
}

/* ===========================
   主布局：左右分栏
   =========================== */
.main-layout{
  display:flex;
  gap:24px;
  flex:1;
  min-height:0;
}

/* ===========================
   左侧游戏列表
   =========================== */
.game-sidebar{
  width:260px;
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  background:var(--bg2);
  border-radius:var(--r-md);
  border:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}

.sidebar-header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 18px;
  font-size:.85rem;
  font-weight:700;
  color:var(--muted);
  letter-spacing:1px;
  text-transform:uppercase;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.sidebar-icon{
  font-size:.9rem;
}

.game-list{
  display:flex;
  flex-direction:column;
  padding:6px;
}

.game-list-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:var(--r-sm);
  text-decoration:none;
  color:var(--text);
  transition:background var(--tr),transform var(--tr);
  cursor:pointer;
}
.game-list-item:hover{
  background:rgba(255,255,255,.05);
  transform:translateX(3px);
}
.game-list-item.active{
  background:rgba(240,192,64,.1);
  border:1px solid rgba(240,192,64,.25);
}
.game-list-item.active .list-item-name{
  color:var(--gold);
}

.list-item-icon{
  font-size:1.6rem;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg3);
  border-radius:var(--r-sm);
  flex-shrink:0;
}

.list-item-info{
  flex:1;
  min-width:0;
}
.list-item-name{
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.5px;
  margin-bottom:2px;
}
.list-item-desc{
  color:var(--muted);
  font-size:.72rem;
}

/* 占位项 */
.game-list-item.placeholder{
  opacity:.45;
  cursor:default;
}
.game-list-item.placeholder:hover{
  background:transparent;
  transform:none;
}

/* 开发中游戏项 */
.game-list-item.developing{
  opacity:.7;
  cursor:default;
  border:1px dashed rgba(255,255,255,.15);
  background:rgba(240,192,64,.03);
}
.game-list-item.developing:hover{
  background:rgba(240,192,64,.06);
  transform:none;
}
.game-list-item.developing .list-item-icon{
  opacity:.6;
}
.game-list-item.developing .list-item-name{
  color:var(--muted);
}

/* 开发中文本标签 */
.developing-tag{
  color:#f0c040 !important;
  font-weight:600;
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:1}
  50%{opacity:.6}
}

/* 开发徽章 */
.dev-badge{
  display:inline-block;
  font-size:.7rem;
  font-weight:700;
  padding:3px 10px;
  background:linear-gradient(135deg,#f0c040,#e6a800);
  color:#1a1a2e;
  border-radius:20px;
  letter-spacing:.5px;
  vertical-align:middle;
  margin-left:8px;
  animation:pulse 2s infinite;
}

/* 开发中标签 */
.tag.developing{
  background:linear-gradient(135deg,rgba(240,192,64,.25),rgba(230,168,0,.25));
  color:#f0c040;
  border:1px solid rgba(240,192,64,.3);
}

/* 禁用按钮 */
.btn-launch.disabled{
  background:rgba(255,255,255,.1);
  color:var(--muted);
  cursor:not-allowed;
  font-weight:600;
}
.btn-launch.disabled:hover{
  transform:none;
  box-shadow:none;
}

/* ===========================
   右侧游戏详情区
   =========================== */
.game-detail{
  flex:1;
  min-width:0;
}

.detail-card{
  background:var(--bg2);
  border-radius:var(--r-md);
  border:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}

.detail-preview{
  width:100%;
  height:220px;
  background:linear-gradient(135deg,#16213e 0%,#0f0f1a 50%,#1a1a2e 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.preview-placeholder{
  text-align:center;
  opacity:.7;
}
.preview-placeholder span{
  font-size:4rem;
  display:block;
  margin-bottom:8px;
}
.preview-placeholder p{
  color:var(--muted);
  font-size:.9rem;
  letter-spacing:2px;
}

.detail-info{
  padding:24px 28px;
}
.detail-title{
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:1px;
  margin-bottom:8px;
}
.detail-desc{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.6;
  margin-bottom:16px;
}

.detail-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.tag{
  background:rgba(240,192,64,.12);
  color:var(--gold);
  font-size:.72rem;
  font-weight:600;
  padding:4px 12px;
  border-radius:20px;
  letter-spacing:.5px;
}
.tag-dim{
  background:rgba(255,255,255,.06);
  color:var(--muted);
}

.detail-actions{
  display:flex;
  gap:12px;
}

.btn-launch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 36px;
  background:linear-gradient(135deg,var(--gold),#e6a800);
  color:#1a1a2e;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:1px;
  border-radius:var(--r-sm);
  text-decoration:none;
  transition:transform var(--tr),box-shadow var(--tr);
}
.btn-launch:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 24px rgba(240,192,64,.3);
}

/* ===========================
   页面过渡动画
   =========================== */
.page-transition{
  position:fixed;inset:0;z-index:9999;
  pointer-events:none;opacity:0;
  background:var(--bg);
  transition:opacity .35s cubic-bezier(.4,0,.2,1);
}
.page-transition.active{
  opacity:1;
  pointer-events:all;
}

/* ===========================
   底部
   =========================== */
.platform-footer{
  text-align:center;
  padding:40px 0 20px;
  color:var(--muted);
  font-size:.78rem;
  letter-spacing:1px;
}

/* ===========================
   响应式
   =========================== */
@media(max-width:720px){
  .main-layout{
    flex-direction:column;
  }
  .game-sidebar{
    width:100%;
  }
  .game-list{
    flex-direction:row;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .game-list::-webkit-scrollbar{display:none}
  .game-list-item{
    flex-shrink:0;
    width:auto;
    min-width:110px;
  }
  .list-item-info{
    display:flex;flex-direction:column;gap:2px;
  }
  .list-item-icon{
    width:36px;height:36px;font-size:1.3rem;
  }
  .list-item-name{font-size:.78rem;white-space:nowrap}
  .list-item-desc{font-size:.65rem}
  .detail-preview{
    height:160px;
  }
  .detail-info{
    padding:20px;
  }
  .detail-title{
    font-size:1.2rem;
  }
  .detail-desc{
    font-size:.82rem;
  }
  .platform{
    padding:16px 12px 24px;
  }
  .platform-header{
    padding-bottom:12px;
    margin-bottom:16px;
  }
  .logo-text{
    font-size:1.3rem;
  }
}
