/* ===== GM 手游站 · 前台样式（黑金 / 象牙 双主题） ===== */

/* ---- 主题一：墨黑 + 香槟金（默认，高档深色） ---- */
:root {
  --bg: #0d0f12;
  --bg-soft: #13161b;
  --card: #171a20;
  --card-2: #1e222a;
  --line: #272b34;
  --line-gold: rgba(214, 178, 110, .16);
  --text: #eceef3;
  --text-2: #b9bfcc;
  --muted: #828a9a;
  --gold: #d6b26e;
  --gold-2: #f2dcae;
  --gold-deep: #a9832f;
  --gold-soft: rgba(214, 178, 110, .12);
  --gold-grad: linear-gradient(135deg, #e6c98c 0%, #d6b26e 45%, #b98f45 100%);
  --hero-grad: radial-gradient(circle at 78% 8%, rgba(214, 178, 110, .22), transparent 46%),
               radial-gradient(circle at 12% 92%, rgba(214, 178, 110, .12), transparent 42%),
               linear-gradient(135deg, #12141a 0%, #1a1c22 45%, #211f19 100%);
  --shadow: 0 2px 12px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
  --tag-bg: rgba(255, 255, 255, .06);
  --tag-text: #a8afbe;
  --head-bg: rgba(13, 15, 18, .86);
  --radius: 12px;
  --header-h: 58px;
}

/* ---- 主题二：象牙白 + 深金（浅色高级版） ---- */
body[data-theme="ivory"] {
  --bg: #f7f5f0;
  --bg-soft: #f1eee7;
  --card: #ffffff;
  --card-2: #faf8f3;
  --line: #e7e1d4;
  --line-gold: rgba(168, 128, 47, .18);
  --text: #17191e;
  --text-2: #4b4f59;
  --muted: #8d8778;
  --gold: #a8802f;
  --gold-2: #c9a35c;
  --gold-deep: #7d5d1b;
  --gold-soft: #faf2e1;
  --gold-grad: linear-gradient(135deg, #c9a35c 0%, #a8802f 55%, #8a6a23 100%);
  --hero-grad: radial-gradient(circle at 78% 8%, rgba(201, 163, 92, .26), transparent 46%),
               radial-gradient(circle at 12% 92%, rgba(201, 163, 92, .14), transparent 42%),
               linear-gradient(135deg, #14161b 0%, #1e2027 45%, #262218 100%);
  --shadow: 0 1px 3px rgba(23, 25, 30, .06), 0 6px 20px rgba(23, 25, 30, .04);
  --shadow-lg: 0 14px 40px rgba(23, 25, 30, .12);
  --tag-bg: #f2efe8;
  --tag-text: #7c7565;
  --head-bg: rgba(255, 255, 255, .9);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  padding-top: var(--header-h); padding-bottom: 70px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* ===== 顶栏 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--head-bg); z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; position: relative;
}
.header-left, .header-right { width: 44px; display: flex; align-items: center; }
.header-right { justify-content: flex-end; }
.header-center { position: absolute; left: 50%; transform: translateX(-50%); }
.header-btn {
  width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.header-btn:hover { color: var(--gold); background: var(--gold-soft); }
.header-btn svg { width: 21px; height: 21px; }
.header-logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 29px; height: 29px; border-radius: 8px; background: var(--gold-grad); color: #22190a;
  font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: .5px; box-shadow: 0 2px 10px rgba(214, 178, 110, .25);
}
.header-logo-text {
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-theme="ivory"] .header-logo-text { background: none; color: var(--text); }

/* 下拉菜单 */
.menu-dropdown {
  display: none; position: absolute; top: 50px; left: 12px; min-width: 172px;
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 200; border: 1px solid var(--line-gold);
}
.menu-dropdown.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; font-size: 13.5px; color: var(--text-2); letter-spacing: .3px;
}
.dropdown-item:hover { background: var(--gold-soft); color: var(--gold); }

/* ===== 搜索弹层 ===== */
.search-modal {
  display: none; position: fixed; inset: 0; background: rgba(6, 7, 9, .72);
  z-index: 500; padding: 90px 16px 0; backdrop-filter: blur(6px);
}
.search-modal.show { display: block; }
.search-modal-content {
  max-width: 460px; margin: 0 auto; background: var(--card); border-radius: 16px;
  padding: 22px; position: relative; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-gold);
}
.search-modal-close {
  position: absolute; right: 14px; top: 10px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--muted);
}
.search-modal-title { font-size: 16px; margin-bottom: 16px; letter-spacing: 1px; }
.search-form-modal { display: flex; gap: 8px; }
.search-input {
  flex: 1; height: 42px; border-radius: 9px; border: 1px solid var(--line);
  padding: 0 14px; font-size: 14px; outline: none; background: var(--bg-soft); color: var(--text);
}
.search-input:focus { border-color: var(--gold); }
.search-submit-btn {
  height: 42px; padding: 0 22px; border: 0; border-radius: 9px;
  background: var(--gold-grad); color: #22190a; font-size: 14px; font-weight: 700;
}
.hot-words { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.hot-words a { color: var(--gold); }

/* ===== Hero ===== */
.hero-section {
  background: var(--hero-grad); color: #fff; text-align: center;
  padding: 46px 16px 34px; border-radius: 0 0 22px 22px; margin-bottom: 22px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-gold);
}
.hero-section::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.hero-title {
  font-size: 25px; font-weight: 700; margin-bottom: 10px;
  letter-spacing: 4px; color: #f6efe0;
}
.hero-desc { font-size: 12.5px; color: rgba(236, 238, 243, .62); margin-bottom: 22px; letter-spacing: 1.6px; }
.hero-search-box {
  display: flex; max-width: 520px; margin: 0 auto; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(214, 178, 110, .28); border-radius: 10px; padding: 5px;
  position: relative; z-index: 2; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-search-input {
  flex: 1; border: 0; outline: none; padding: 0 14px; font-size: 14px;
  background: transparent; height: 38px; color: #fff; letter-spacing: .5px;
}
.hero-search-input::placeholder { color: rgba(255, 255, 255, .38); }
.hero-search-btn {
  border: 0; border-radius: 7px; padding: 0 24px; height: 38px;
  background: var(--gold-grad); color: #22190a; font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
}

/* ===== 推广卡片 ===== */
.promo-cards-container {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 1080px; margin: 0 auto 22px; padding: 0 16px;
}
.promo-card {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: var(--radius); padding: 13px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: all .22s ease;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.promo-card:first-child {
  grid-column: 1 / -1; border-color: var(--line-gold);
  background: linear-gradient(115deg, var(--gold-soft), transparent 65%), var(--card);
}
.promo-icon-box { position: relative; flex-shrink: 0; }
.promo-icon { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; }
.promo-badge-corner {
  position: absolute; bottom: -5px; right: -9px; background: var(--gold-grad); color: #22190a;
  font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; letter-spacing: .5px;
}
.promo-info { min-width: 0; }
.promo-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; letter-spacing: .6px; }
.promo-desc {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== 筛选 chips ===== */
.filter-bar { display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 9px 20px; border-radius: 10px; background: transparent;
  border: 1px solid var(--line); font-size: 13px; color: var(--text-2); white-space: nowrap;
  letter-spacing: .8px; transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); font-weight: 600; }
.filter-group { margin-bottom: 8px; }
.filter-label { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; }

/* ===== 分类玩家交流群入口 ===== */
.group-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(214, 178, 110, .14), rgba(214, 178, 110, .04));
  border: 1px solid var(--line-gold);
}
.group-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.group-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-gold);
}
.group-ico svg { width: 19px; height: 19px; }
.group-txt { min-width: 0; }
.group-name { font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.group-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.group-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 8px;
  background: var(--gold-grad); color: #22190a; font-size: 14px; font-weight: 800;
  letter-spacing: 1.5px; box-shadow: 0 8px 20px rgba(214, 178, 110, .22);
}
.group-btn:hover { filter: brightness(1.07); }
.group-all { margin: 0 0 14px; }
.group-all-title {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--text-2); letter-spacing: 1px; margin-bottom: 10px;
}
.group-all-title svg { width: 15px; height: 15px; color: var(--gold); }
.group-all-list { display: flex; flex-wrap: wrap; gap: 9px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); transition: all .2s ease;
}
.group-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.group-chip-name { font-size: 13px; color: var(--text-2); }
.group-chip-btn { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .5px; }

@media (max-width: 480px) {
  .group-bar { padding: 12px 13px; }
  .group-name { font-size: 14px; }
  .group-btn { height: 38px; padding: 0 16px; font-size: 13px; }
}

/* ===== 版本平铺（等宽大框，网格平均分配整行） ===== */
.filter-bar-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 11px; overflow: visible; padding: 4px 0 16px;
}
.filter-bar-tiles .chip {
  display: flex; align-items: center; justify-content: center;
  padding: 15px 8px;
  background: var(--card);
  border-radius: 12px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 1.2px;
}
.filter-bar-tiles .chip:hover { transform: translateY(-1px); border-color: var(--gold); }
.filter-bar-tiles .chip.on {
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

/* ===== 区块标题 ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 16px; gap: 12px;
}
.section-title-group { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.section-title {
  font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  letter-spacing: 2px; position: relative; padding-left: 12px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--gold-grad);
}
.section-title svg { width: 16px; height: 16px; color: var(--gold); }
.section-count { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.view-all-btn { font-size: 12.5px; color: var(--gold); white-space: nowrap; letter-spacing: .8px; }
.view-all-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== 游戏列表 ===== */
.game-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.game-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: all .22s ease; overflow: hidden;
}
.game-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }
.game-item-link { display: flex; align-items: center; gap: 13px; padding: 13px; }
.game-icon-box {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--line-gold);
}
.game-icon { width: 100%; height: 100%; object-fit: cover; }
.game-info-box { flex: 1; min-width: 0; }
.game-title {
  font-size: 14.5px; font-weight: 700; margin-bottom: 5px; letter-spacing: .6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-desc {
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.game-tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.game-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 4px; line-height: 1.7; letter-spacing: .5px; }
.tag-platform { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-gold); font-weight: 600; }
.tag-theme { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.tag-default { background: var(--tag-bg); color: var(--tag-text); }
.game-action { flex-shrink: 0; }
.download-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 20px; border-radius: 7px;
  background: var(--gold-grad); color: #22190a; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; white-space: nowrap; box-shadow: 0 3px 12px rgba(214, 178, 110, .2);
}

/* ===== 加载更多 ===== */
.load-more-container { text-align: center; padding: 6px 0 30px; }
.load-more-btn {
  display: inline-block; padding: 10px 44px; border-radius: 8px; background: transparent;
  border: 1px solid var(--line-gold); color: var(--gold); font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 2px; transition: all .2s ease;
}
.load-more-btn:hover { background: var(--gold-soft); }
.load-more-btn.loading { opacity: .5; pointer-events: none; }
.no-more-data { font-size: 11.5px; color: var(--muted); padding: 12px 0; letter-spacing: 1px; }
.empty-state { text-align: center; color: var(--muted); font-size: 13.5px; padding: 60px 0; letter-spacing: 1px; }

/* ===== 详情页 ===== */
.detail-hero { position: relative; color: #fff; overflow: hidden; padding: 34px 16px 30px; margin-bottom: -20px; }
.detail-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(22px) brightness(.42) saturate(.85); transform: scale(1.18);
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 13, .55), rgba(9, 10, 13, .9));
}
.detail-hero-content {
  position: relative; z-index: 2; max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.detail-game-icon {
  width: 84px; height: 84px; border-radius: 18px; object-fit: cover;
  border: 1px solid rgba(214, 178, 110, .55); box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  margin-bottom: 14px; background: #1a1c22;
}
.detail-game-title {
  font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.4;
  letter-spacing: 1.2px; color: #f7f2e6;
}
.detail-tags-row { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.detail-tag {
  font-size: 10.5px; padding: 3px 10px; border-radius: 4px; letter-spacing: .8px;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(4px);
}
.detail-tag.tag-platform {
  background: var(--gold-grad); color: #22190a; border-color: transparent; font-weight: 700;
}
.detail-download-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 230px; height: 48px; padding: 0 36px; border-radius: 8px;
  background: var(--gold-grad); color: #22190a; font-size: 15px; font-weight: 800;
  letter-spacing: 2.5px; box-shadow: 0 10px 28px rgba(214, 178, 110, .28);
}
.detail-download-btn svg { width: 17px; height: 17px; }
.detail-download-btn.disabled {
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6);
  box-shadow: none; font-size: 13px; letter-spacing: 1px;
}
.detail-dl-more { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
/* 「立即下载」旁的自定义附加按钮：金边描边，点击跳后台配置的链接 */
.detail-btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 230px; height: 48px; padding: 0 36px; margin-top: 10px; border-radius: 8px;
  background: var(--gold-grad); color: #22190a; font-size: 15px; font-weight: 800;
  letter-spacing: 2.5px; box-shadow: 0 10px 28px rgba(214, 178, 110, .28);
  transition: filter .25s ease, transform .2s ease;
}
.detail-btn2:hover { filter: brightness(1.07); }
.detail-btn2:active { transform: scale(.97); }
.detail-dl-mini {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 230px; height: 48px; padding: 0 36px; border-radius: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: 2.5px;
  background: transparent; border: 1.5px solid var(--gold); color: var(--gold);
}
.detail-dl-mini:hover { background: var(--gold); color: #22190a; }

.detail-main { position: relative; z-index: 3; padding-bottom: 10px; }
.card-section {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 12px;
}
.card-section .section-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; color: var(--gold); }
.card-section .section-title::before { height: 18px; }
.benefit-section {
  background: linear-gradient(180deg, var(--gold-soft), transparent 70%), var(--card);
  border-color: var(--line-gold);
}
.benefit-list { display: flex; flex-direction: column; gap: 11px; }
.benefit-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.benefit-dot { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.benefit-dot svg { width: 12px; height: 12px; }
.benefit-text { flex: 1; }
.benefit-link {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: #22190a;
  background: var(--gold-grad); padding: 3px 11px; border-radius: 5px; letter-spacing: .8px;
}
.section-text { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }

.screenshot-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.screenshot-item {
  flex-shrink: 0; width: 220px; height: 124px; border-radius: 8px; overflow: hidden;
  background: var(--card-2); cursor: zoom-in; border: 1px solid var(--line);
}
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.screenshot-item:hover img { transform: scale(1.05); }
/* 宣传片卡片：封面 + 播放键，点击在灯箱内播放 */
.screenshot-item.shot-video { position: relative; cursor: pointer; width: 300px; height: 169px; }
.shot-video .shot-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .42) 100%);
}
.shot-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .45); border: 1.5px solid var(--gold); color: var(--gold);
  transition: transform .25s ease, background .25s ease, color .25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}
.shot-play svg { width: 16px; height: 16px; margin-left: 2px; }
.shot-video:hover .shot-play { transform: translate(-50%, -50%) scale(1.12); background: var(--gold); color: #0d0f12; }
.shot-badge {
  position: absolute; left: 7px; top: 7px; padding: 2px 7px; border-radius: 4px; pointer-events: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  color: #14161a; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.lightbox video { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; }

.faq-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-q { font-size: 13px; font-weight: 600; margin-bottom: 5px; letter-spacing: .5px; color: var(--text); }
.faq-a { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(5, 6, 8, .95);
  z-index: 900; padding: 20px; align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* ===== 分类页 / 客服页 ===== */
.page-head {
  background: var(--hero-grad); color: #fff; padding: 30px 16px 28px; margin-bottom: 18px;
  border-radius: 0 0 20px 20px; border-bottom: 1px solid var(--line-gold);
}
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: 3px; color: var(--gold); }
.page-sub { font-size: 12.5px; color: rgba(255, 255, 255, .6); letter-spacing: 1px; line-height: 1.9; }
.page-sub-warn {
  display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.6;
  color: #ffcf6e; letter-spacing: .5px;
  text-shadow: 0 0 14px rgba(255, 190, 80, .35);
}

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-card {
  background: var(--bg-soft); border-radius: 9px; padding: 20px 16px; text-align: center;
  border: 1px solid var(--line);
}
.contact-label { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; letter-spacing: 1.5px; }
.contact-value {
  font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 14px; letter-spacing: 2px;
}
.contact-btn {
  display: inline-block; padding: 8px 20px; border-radius: 6px;
  background: var(--gold-grad); color: #22190a; font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
}
.announce-box {
  margin-top: 14px; padding: 11px 15px; border-radius: 7px; font-size: 12px; letter-spacing: .8px;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-gold);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 22px 0 18px; color: var(--muted); font-size: 11.5px; text-align: center;
}
.footer-tags { max-width: 1080px; margin: 0 auto 16px; padding: 0 16px; }
.footer-tags h4 {
  font-size: 12px; color: var(--text-2); margin-bottom: 10px; text-align: left; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.footer-tags h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 11.5px; color: var(--text-2); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 5px; letter-spacing: .5px;
}
.tag-cloud a:hover { color: var(--gold); border-color: var(--line-gold); }
.footer-note p { margin: 4px 0; letter-spacing: .6px; }
.contact-line { color: var(--text-2); }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 58px;
  background: var(--head-bg); border-top: 1px solid var(--line);
  display: flex; z-index: 300; backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--muted); letter-spacing: .8px;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { color: var(--gold); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(20, 22, 28, .96); color: #f2e9d5; font-size: 12.5px; padding: 10px 22px;
  border-radius: 7px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 900;
  border: 1px solid rgba(214, 178, 110, .3); letter-spacing: .5px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 桌面端 ===== */
@media (min-width: 900px) {
  .promo-cards-container { grid-template-columns: repeat(3, 1fr); }
  .promo-card:first-child { grid-column: auto; }
  .game-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-list.compact { grid-template-columns: 1fr; }
  .bottom-nav { display: none; }
  body { padding-bottom: 30px; }
  .hero-title { font-size: 28px; letter-spacing: 6px; }
  .screenshot-item { width: 262px; height: 148px; }
  .screenshot-item.shot-video { width: 300px; height: 169px; }
}
@media (max-width: 480px) {
  .game-icon-box { width: 62px; height: 62px; border-radius: 8px; }
  .game-title { font-size: 13.5px; letter-spacing: .3px; }
  .download-btn { padding: 0 14px; height: 31px; font-size: 11.5px; letter-spacing: 1px; }
  .promo-icon { width: 46px; height: 46px; }
  .detail-download-btn { min-width: 200px; }
  .detail-dl-mini { min-width: 200px; }
  .hero-title { letter-spacing: 2px; font-size: 22px; }
}

/* ===== 首屏快捷入口（搜索框正下方，居中） ===== */
.hero-quick {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
  position: relative; z-index: 2;
}
.hero-quick a {
  display: inline-flex; align-items: center; margin: 0 5px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(214, 178, 110, .34);
  color: #f0ece2;
  font-size: 13px; font-weight: 500; letter-spacing: .6px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, color .2s, transform .14s;
}
.hero-quick a:hover {
  background: rgba(214, 178, 110, .16);
  border-color: var(--gold);
  color: #ffe9bd;
  transform: translateY(-1px);
}
.hero-quick a:active { transform: scale(.97); }
.hero-quick .hq-ico { display: flex; color: var(--gold); }
.hero-quick .hq-ico svg { width: 15px; height: 15px; }

/* ===== 首屏三大专区入口（胶囊下方，比胶囊更大更醒目） ===== */
.hero-entries {
  display: flex; flex-wrap: wrap; justify-content: center;
  max-width: 520px; margin: 14px auto 0;
  position: relative; z-index: 2;
}
.hero-entry {
  flex: 1 1 0; min-width: 92px;
  display: flex; align-items: center; justify-content: center;
  margin: 4px 5px 0;
  padding: 15px 8px; border-radius: 13px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(214, 178, 110, .38);
  color: #f6efe0; font-size: 14.5px; font-weight: 600; letter-spacing: .6px;
  white-space: nowrap; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .2s, border-color .2s, color .2s, transform .14s, box-shadow .2s;
}
.hero-entry:hover {
  background: rgba(214, 178, 110, .17);
  border-color: var(--gold);
  color: #ffe9bd;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .28);
}
.hero-entry:active { transform: scale(.985); }
.hero-entry .he-ico { display: flex; color: var(--gold); flex: 0 0 auto; }
.hero-entry .he-ico svg { width: 17px; height: 17px; }
.hero-entry .he-title { overflow: hidden; text-overflow: ellipsis; }

/* ===== 自助购买 ===== */
.buy-list { display: flex; flex-direction: column; gap: 10px; }
.buy-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px; background: var(--card-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.buy-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.buy-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px;
  background: var(--gold-soft); color: var(--gold);
}
.buy-desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 5px; }
.buy-btn {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px;
  background: var(--gold-grad); color: #17130a;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}

/* ===== 步骤列表 ===== */
.step-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 12px; }
.step-no {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold);
  font-size: 13px; font-weight: 700;
}
.step-item b { font-size: 14.5px; }
.step-item p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 4px; }

/* ===== 使用教程 · 操作视频 ===== */
.guide-videos { display: flex; flex-direction: column; gap: 18px; }
.guide-video-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.guide-video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 10px; overflow: hidden; background: #000;
  border: 1px solid var(--line-gold);
}
.guide-video-frame iframe,
.guide-video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}

/* ===== 提示框 ===== */
.notice-box {
  padding: 14px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid var(--line-gold);
  font-size: 13px; line-height: 1.75; color: var(--text-2);
}
.notice-box b { color: var(--gold); }

@media (max-width: 560px) {
  .hero-quick { margin-top: 13px; }
  .hero-quick a { padding: 7px 13px; font-size: 12px; letter-spacing: .2px; }
  .hero-quick .hq-ico svg { width: 13px; height: 13px; }
  .hero-entries { margin-top: 11px; }
  .hero-entry { font-size: 12.5px; letter-spacing: .2px; border-radius: 11px; }
  .hero-entry .he-ico svg { width: 14px; height: 14px; }
  .filter-bar-tiles { gap: 8px; grid-template-columns: repeat(2, 1fr); }
  .filter-bar-tiles .chip { padding: 13px 6px; font-size: 13.5px; }
  .buy-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .buy-btn { text-align: center; padding: 11px 18px; }
}

/* ===== 账号 · 我的 · 积分商城 ===== */
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.auth-label {
  display: block; font-size: 12.5px; color: var(--text-2);
  margin-bottom: 8px; margin-top: 14px; letter-spacing: .5px;
}
.auth-label:first-of-type { margin-top: 0; }
.auth-hint { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.auth-input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 14.5px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  outline: none; font-family: inherit; box-sizing: border-box;
}
.auth-input:focus { border-color: var(--gold); background: var(--card-2); }
.auth-btn {
  width: 100%; height: 48px; margin-top: 20px; border: 0; border-radius: 12px;
  background: var(--gold-grad); color: #22190a; font-size: 16px; font-weight: 800;
  letter-spacing: 4px; cursor: pointer; font-family: inherit;
}
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-help {
  text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.auth-help a { color: var(--gold); font-weight: 600; }
.auth-help-sub { display: block; font-size: 11.5px; margin-top: 4px; opacity: .75; }
.auth-msg {
  padding: 11px 13px; border-radius: 9px; font-size: 13px; line-height: 1.7; margin-bottom: 14px;
}
.auth-msg-err { background: rgba(220, 80, 60, .12); border: 1px solid rgba(220, 80, 60, .3); color: #e8836f; }
.auth-msg-ok { background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold); }
body[data-theme="ivory"] .auth-msg-err { color: #b8402a; }
.auth-note {
  margin-top: 16px; padding: 12px 13px; border-radius: 9px; font-size: 12.5px; line-height: 1.8;
  background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--text-2);
}
.auth-note b { color: var(--gold); }

.me-hero { background: var(--hero-grad); padding: 26px 16px 22px; border-radius: 0 0 20px 20px; }
.me-top { display: flex; align-items: center; margin-bottom: 20px; }
.me-avatar {
  width: 52px; height: 52px; border-radius: 15px; background: var(--gold-grad);
  color: #22190a; font-size: 22px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; margin-right: 13px; flex-shrink: 0;
}
.me-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.me-sub { font-size: 11.5px; color: rgba(255, 255, 255, .55); margin-top: 5px; }
.me-stats { display: flex; }
.me-stat {
  flex: 1; text-align: center; padding: 10px 4px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.me-stat:last-child { border-right: 0; }
.me-stat b { display: block; font-size: 21px; font-weight: 800; color: var(--gold-2); letter-spacing: .5px; }
.me-stat span { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 5px; }

.me-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 13px; }
.ref-box { background: var(--bg-soft); border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.ref-line { display: flex; align-items: center; margin-bottom: 10px; }
.ref-line:last-child { margin-bottom: 0; }
.ref-label { font-size: 12px; color: var(--muted); width: 58px; flex-shrink: 0; }
.ref-code {
  flex: 1; font-size: 17px; font-weight: 800; color: var(--gold);
  letter-spacing: 3px; font-family: ui-monospace, Menlo, monospace;
}
.ref-input {
  flex: 1; height: 34px; padding: 0 10px; font-size: 12px; color: var(--text-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 7px; box-sizing: border-box;
  min-width: 0;
}
.copy-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; margin-left: 8px;
  border: 1px solid var(--line-gold); background: var(--gold-soft); color: var(--gold);
  border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
  font-family: inherit;
}
.copy-btn svg { width: 12px; height: 12px; margin-right: 4px; }
.copy-btn:active { opacity: .7; }
.me-actions { display: flex; margin-top: 14px; }
.me-action-btn {
  flex: 1; height: 42px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: #22190a; border-radius: 10px; border: 0;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.me-action-btn:first-child { margin-right: 10px; }
.me-action-ghost { background: transparent; border: 1px solid var(--line-gold); color: var(--gold); }

.me-row {
  display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.me-row:last-child { border-bottom: 0; }
.me-row-main { flex: 1; min-width: 0; }
.me-row-name { font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.me-row-sub { font-size: 11.5px; color: var(--muted); }
.me-row-tag {
  font-size: 11.5px; color: var(--text-2); background: var(--tag-bg);
  padding: 4px 10px; border-radius: 6px; flex-shrink: 0; margin-left: 10px;
}
.me-row-tag.status-pending { color: var(--gold); background: var(--gold-soft); }
.me-row-tag.status-done { color: #4caf7d; background: rgba(76, 175, 125, .12); }
.me-row-tag.status-reject { color: #e8836f; background: rgba(220, 80, 60, .12); }
.me-row-delta { font-size: 15px; font-weight: 700; flex-shrink: 0; margin-left: 10px; }
.me-row-delta.up { color: var(--gold); }
.me-row-delta.down { color: var(--muted); }
.me-badge { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; flex-shrink: 0; margin-left: 10px; }
.me-badge-ok { color: #4caf7d; background: rgba(76, 175, 125, .12); }
.me-badge-err { color: #e8836f; background: rgba(220, 80, 60, .12); }
.me-empty { text-align: center; font-size: 12.5px; color: var(--muted); padding: 20px 0; }
.me-logout { text-align: center; padding: 18px 0 8px; }
.me-logout a { font-size: 13px; color: var(--muted); }

.points-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.points-bar-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.points-bar-num { font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.points-bar-btn {
  height: 38px; padding: 0 16px; display: flex; align-items: center;
  background: var(--gold-grad); color: #22190a; border-radius: 9px;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

.redeem-item {
  display: flex; align-items: center; padding: 15px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 10px;
}
.redeem-item:last-child { margin-bottom: 0; }
.redeem-item.sold-out { opacity: .55; }
.redeem-main { flex: 1; min-width: 0; margin-right: 12px; }
.redeem-name { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.redeem-desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 7px; }
.redeem-meta { font-size: 11px; color: var(--muted); }
.redeem-side { text-align: center; flex-shrink: 0; }
.redeem-cost { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.redeem-cost span { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.redeem-btn {
  display: block; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line-gold);
  background: var(--gold-soft); color: var(--gold); font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.redeem-btn.disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 560px) {
  .auth-card { padding: 18px 14px; }
  .me-stat b { font-size: 19px; }
  .redeem-item { align-items: flex-start; }
  .redeem-cost { font-size: 18px; }
  .ref-line { flex-wrap: wrap; }
  .ref-input { min-width: 120px; }
}
