/* 造游 · 游戏平台：深色 + 紫/橙霓虹，八门神器风格的延续 */
:root {
  --bg: #0e0d16;
  --panel: #1a1828;
  --panel-2: #241f38;
  --accent: #ff7a3d;       /* 橙，呼应八门神器 */
  --accent-2: #8b5cff;     /* 紫，游戏感 */
  --text: #ecebf5;
  --sub: #8b87a3;
  --line: #2a2640;
  --gold: #ffcf5c;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  background: radial-gradient(circle at 30% 0%, #1b1530, #07060c 70%);
  color: var(--text);
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; padding: 16px;
}

.phone {
  width: 100%; max-width: 400px; height: 780px; max-height: 94vh;
  background: var(--bg); border-radius: 30px; border: 8px solid #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.7); display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}

.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px 4px; font-size: 13px;
}
.statusbar .icons span { margin-left: 6px; font-size: 12px; }

.appbar { padding: 6px 18px 10px; border-bottom: 1px solid var(--line); }
.appbar .title { font-size: 18px; font-weight: 800; letter-spacing: .5px; }

.screen { flex: 1; overflow-y: auto; padding: 14px; }
.view { display: none; }
.view.active { display: block; }

/* 首页横幅（推荐游戏） */
.banner {
  border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  position: relative; overflow: hidden; cursor: pointer;
}
.banner .tag { font-size: 12px; opacity: .9; }
.banner h2 { font-size: 22px; margin: 6px 0; }
.banner p { font-size: 13px; opacity: .85; }
.banner .play {
  display: inline-block; margin-top: 10px; background: #fff; color: #1a1828;
  padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 13px;
}

.section-title { margin: 18px 4px 10px; font-size: 14px; color: var(--sub); }

/* 分类标签 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px;
  background: var(--panel); color: var(--text); font-size: 13px;
  border: 1px solid var(--line); cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* 网格卡片 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: var(--panel); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); transition: transform .08s;
}
.card:active { transform: scale(.97); }
.card .ico { font-size: 30px; }
.card .name { font-weight: 700; font-size: 14px; }
.card .meta { font-size: 12px; color: var(--sub); display: flex; justify-content: space-between; }

/* 列表项（游戏） */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--panel); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--line);
}
.item:active { background: var(--panel-2); }
.item .ico { font-size: 26px; width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center; background: var(--panel-2);
  border-radius: 10px; }
.item .meta { flex: 1; }
.item .name { font-weight: 700; }
.item .desc { font-size: 12px; color: var(--sub); }
.item .rate { color: var(--gold); font-size: 13px; }
.item .arrow { color: var(--sub); }

/* 搜索 */
.search { margin-bottom: 12px; }
.search input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--accent-2); }

/* 我的 - 资料 */
.profile { display: flex; align-items: center; gap: 14px; padding: 8px 4px 6px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
}
.profile .name { font-size: 17px; font-weight: 800; }
.profile .sub { font-size: 12px; color: var(--sub); margin-top: 2px; }

/* 详情 overlay */
.overlay {
  position: absolute; inset: 0; background: var(--bg);
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; z-index: 20;
}
.overlay.open { transform: translateX(0); }
.overlay-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.overlay-head .back {
  background: none; border: none; color: var(--accent-2);
  font-size: 15px; cursor: pointer; padding: 4px 0;
}
.overlay-body { flex: 1; overflow-y: auto; padding: 16px; }
.detail-hero {
  text-align: center; padding: 14px 0 18px;
}
.detail-hero .big {
  font-size: 64px; width: 110px; height: 110px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border-radius: 22px;
}
.detail-hero h2 { font-size: 20px; }
.detail-hero .stars { color: var(--gold); margin-top: 4px; }
.detail-hero .cat { color: var(--sub); font-size: 13px; margin-top: 4px; }
.tags { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.tagpill { font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: var(--panel-2); color: var(--accent-2); }
.desc-box { margin-top: 14px; padding: 14px; background: var(--panel);
  border-radius: 12px; font-size: 14px; line-height: 1.6; color: #d6d3e6; }
.actions { margin-top: 16px; display: flex; gap: 10px; }
.btn {
  flex: 1; background: var(--accent); color: #1a1205; border: none;
  border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 800;
  cursor: pointer;
}
.btn:active { opacity: .85; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.faved { background: var(--accent-2); color: #fff; }

/* 底部导航 */
.tabbar {
  display: flex; justify-content: center; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(14, 13, 22, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tab {
  flex: 0 0 auto; background: none; border: none; color: var(--sub);
  padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 11px;
}
.tab span { font-size: 20px; }
.tab.active { color: var(--accent); }
