:root {
  --primary: #ff7d2a;
  --primary-deep: #ef6410;
  --primary-soft: #fff3e9;
  --bg: #f3f5fa;
  --card: #ffffff;
  --txt: #242a3d;
  --txt-2: #7c8598;
  --txt-3: #a5adbd;
  --line: #eaeef6;
  --blue: #1677ff;
  --green: #00b578;
  --red: #ff3b30;
  --radius: 12px;
  /* 主题皮肤扩展维度（各 theme-* 覆盖，构成站点间差异化观感，反模板审核要点）：
     --btn-radius 按钮圆角 / --card-shadow 卡片投影 / --card-border 卡片描边 / --hero-radius 轮播底角 */
  --btn-radius: 999px;
  --card-shadow: 0 1px 3px rgba(24, 30, 52, .05);
  --card-border: none;
  --hero-radius: 0 0 16px 16px;
  --head-grad: linear-gradient(135deg, #232f78 0%, #4c5fe8 100%);
  --logo-grad: linear-gradient(135deg, #ff9a3d, #ff5e2e);
  --btn-grad: linear-gradient(90deg, #ff7d2a, #ff9a4d);
  --bar-grad: linear-gradient(180deg, #ff7d2a, #ffb066);
  --btn-shadow: rgba(255, 125, 42, .35);
}

html.theme-blue {
  --primary: #1677ff; --primary-deep: #0e5fd8; --primary-soft: #eaf2ff;
  --radius: 6px; --btn-radius: 6px; --card-shadow: none; --card-border: 1px solid #e5ecf8; --hero-radius: 0;
  --head-grad: linear-gradient(135deg, #0c2e6e 0%, #1e5fd0 100%);
  --logo-grad: linear-gradient(135deg, #4d9aff, #0e5fd8);
  --btn-grad: linear-gradient(90deg, #1677ff, #4d9aff);
  --bar-grad: linear-gradient(180deg, #1677ff, #7ab8ff);
  --btn-shadow: rgba(22, 119, 255, .35);
}
html.theme-green {
  --primary: #00b578; --primary-deep: #00966c; --primary-soft: #e6f9f1;
  --radius: 18px; --btn-radius: 999px; --card-shadow: 0 5px 16px rgba(0, 181, 120, .10); --card-border: none; --hero-radius: 0 0 22px 22px;
  --head-grad: linear-gradient(135deg, #094d3c 0%, #12966f 100%);
  --logo-grad: linear-gradient(135deg, #35d6a3, #00966c);
  --btn-grad: linear-gradient(90deg, #00b578, #3dd9a4);
  --bar-grad: linear-gradient(180deg, #00b578, #7de3bd);
  --btn-shadow: rgba(0, 181, 120, .35);
}
html.theme-purple {
  --primary: #7b5cf0; --primary-deep: #6a45e0; --primary-soft: #f1edff;
  --radius: 10px; --btn-radius: 10px; --card-shadow: 0 3px 12px rgba(123, 92, 240, .08); --card-border: none; --hero-radius: 0 0 12px 12px;
  --head-grad: linear-gradient(135deg, #2a1a5e 0%, #6a45e0 100%);
  --logo-grad: linear-gradient(135deg, #a78bff, #7b5cf0);
  --btn-grad: linear-gradient(90deg, #7b5cf0, #a78bff);
  --bar-grad: linear-gradient(180deg, #7b5cf0, #c0aaff);
  --btn-shadow: rgba(123, 92, 240, .35);
}
html.theme-red {
  --primary: #f0455c; --primary-deep: #d93047; --primary-soft: #ffeef1;
  --radius: 2px; --btn-radius: 2px; --card-shadow: none; --card-border: 1px solid #f2d8dc; --hero-radius: 0;
  --head-grad: linear-gradient(135deg, #4d1020 0%, #c22b45 100%);
  --logo-grad: linear-gradient(135deg, #ff7a8a, #e03047);
  --btn-grad: linear-gradient(90deg, #f0455c, #ff7a8a);
  --bar-grad: linear-gradient(180deg, #f0455c, #ff9dad);
  --btn-shadow: rgba(240, 69, 92, .35);
}
html.theme-crimson {
  --primary: #b03a2e; --primary-deep: #8f1d22; --primary-soft: #fbeee9;
  --radius: 4px; --btn-radius: 4px; --card-shadow: none; --card-border: 1px solid #f0e2de; --hero-radius: 0 0 8px 8px;
  --head-grad: linear-gradient(135deg, #5c1015 0%, #a02c2c 100%);
  --logo-grad: linear-gradient(135deg, #d4a24f, #8f1d22);
  --btn-grad: linear-gradient(90deg, #b03a2e, #d4a24f);
  --bar-grad: linear-gradient(180deg, #b03a2e, #d4a24f);
  --btn-shadow: rgba(176, 58, 46, .35);
}
/* 紫麟互娱专属主题（原 theme-blue 与游梦想撞色，改青碧色系；大圆角胶囊按钮，轻盈水感） */
html.theme-teal {
  --primary: #0aa5a0; --primary-deep: #07857f; --primary-soft: #e3f6f5;
  --radius: 20px; --btn-radius: 999px; --card-shadow: 0 6px 18px rgba(10, 165, 160, .10); --card-border: none; --hero-radius: 0 0 20px 20px;
  --head-grad: linear-gradient(135deg, #06343a 0%, #0b8a86 100%);
  --logo-grad: linear-gradient(135deg, #35c9c2, #07857f);
  --btn-grad: linear-gradient(90deg, #0aa5a0, #35c9c2);
  --bar-grad: linear-gradient(180deg, #0aa5a0, #7fd9d5);
  --btn-shadow: rgba(10, 165, 160, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, select, button, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; background: none; }

.page-wrap { max-width: 750px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
.page-body { padding: 12px 12px 24px; }
.page-body.bottom-bar { padding-bottom: 86px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-grad);
  color: #fff;
  padding: 11px 14px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--logo-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.logo-txt { margin-left: 9px; line-height: 1.25; }
.logo-txt strong { display: block; font-size: 17px; letter-spacing: .5px; }
.logo-txt em { display: block; font-style: normal; font-size: 11px; opacity: .75; }
.header-link {
  display: flex; align-items: center; font-size: 13px;
  background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 12px 5px 8px;
}
.header-link svg { width: 15px; height: 15px; margin-right: 3px; }

.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 750px; margin: 0 auto;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
}
.tab-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  font-size: 10px; color: var(--txt-2); padding: 3px 0;
}
.tab-bar a svg { width: 22px; height: 22px; margin-bottom: 2px; }
.tab-bar a.active { color: var(--primary); font-weight: 600; }
.tab-bar a.active svg { fill: var(--primary); }

.site-footer { padding: 26px 16px calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.site-footer .footer-links { margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; line-height: 2.2; }
.site-footer .footer-links a { color: var(--txt-2); font-size: 12px; padding: 0 8px; position: relative; }
.site-footer .footer-links a + a::before { content: ""; position: absolute; left: -2px; top: 50%; transform: translateY(-50%); height: 10px; width: 1px; background: var(--line); }
.footer-copy { font-size: 11px; color: var(--txt-3); line-height: 1.8; }
.footer-icp a { font-size: 11px; color: var(--txt-3); }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--card-shadow); border: var(--card-border); }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.card-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--bar-grad); margin-right: 8px; }
.card-title .title-left { display: flex; align-items: center; flex: 1; }
.card-title .more { font-size: 12px; font-weight: 400; color: var(--txt-2); display: flex; align-items: center; }
.card-title .more::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--txt-3); border-right: 1.5px solid var(--txt-3); transform: rotate(45deg); margin-left: 4px; }

.btn-main {
  display: block; width: 100%; text-align: center;
  background: var(--btn-grad);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: var(--btn-radius); padding: 12px 0;
  box-shadow: 0 6px 16px var(--btn-shadow);
}
.btn-main:active { opacity: .88; }
.btn-main.disabled { background: #d4d8e2; box-shadow: none; color: #fff; }

.game-icon {
  width: 56px; height: 56px; border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.game-icon.sm { width: 44px; height: 44px; border-radius: 11px; font-size: 19px; }
.game-icon.lg { width: 72px; height: 72px; border-radius: 17px; font-size: 30px; }
img.game-icon { object-fit: cover; }

.tag {
  display: inline-block; font-size: 10px; line-height: 1; padding: 4px 7px;
  border-radius: 4px; background: var(--primary-soft); color: var(--primary); margin-right: 6px;
}
.tag.blue { background: #eaf2ff; color: var(--blue); }
.tag.green { background: #e6f9f1; color: var(--green); }
.tag.gray { background: #f1f3f8; color: var(--txt-2); }

.price { color: var(--primary); font-weight: 700; }
.price .rmb { font-size: 12px; margin-right: 1px; }
.price .num { font-size: 18px; }
.price-origin { color: var(--txt-3); text-decoration: line-through; font-size: 11px; margin-left: 5px; font-weight: 400; }

.toast {
  position: fixed; left: 50%; bottom: 130px; transform: translate(-50%, 20px);
  background: rgba(30, 34, 48, .9); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 8px; z-index: 999;
  opacity: 0; transition: all .3s; max-width: 76%; text-align: center;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notice-card {
  display: flex; align-items: center; background: #fff;
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
}
.notice-icon {
  flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--primary);
  border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px;
  margin-right: 9px;
}
.notice-scroll { flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.notice-track { animation: noticeUp linear infinite; }
.notice-track a {
  display: block; height: 20px; line-height: 20px;
  font-size: 12px; color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes noticeUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hero-swiper { overflow: hidden; position: relative; border-radius: var(--hero-radius); }
.hero-track { display: flex; transition: transform .55s ease; }
.hero-slide {
  position: relative; min-width: 100%; overflow: hidden; color: #fff;
  padding: 26px 18px 30px;
}
.hero-slide::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .16));
  pointer-events: none;
}
.hero-slide .hero-mark {
  position: absolute; top: -10px; right: -12px;
  font-size: 120px; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, .07); letter-spacing: 6px;
  pointer-events: none; user-select: none;
}
.hero-slide .gh-row { position: relative; display: flex; align-items: center; gap: 14px; }
.hero-slide .game-icon.xl {
  width: 84px; height: 84px; border-radius: 20px; font-size: 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.hero-slide .gh-main { flex: 1; min-width: 0; }
.hero-slide .gh-main h1 {
  font-size: 21px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.hero-slide .gh-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.hero-slide .htag {
  font-size: 10px; color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  padding: 2px 7px; background: rgba(255,255,255,.08);
}
.hero-slide .gh-meta { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 8px; }
.hero-slide .gh-desc {
  position: relative; font-size: 12px; color: rgba(255,255,255,.88);
  line-height: 1.8; margin-top: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide .gh-acts { position: relative; display: flex; gap: 10px; margin-top: 15px; }
.hero-slide .gh-btn {
  flex: 1; text-align: center; font-size: 15px; font-weight: 700;
  border-radius: var(--btn-radius); padding: 11px 0;
}
.hero-slide .gh-btn.main {
  background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.hero-slide .gh-btn.ghost {
  color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-slide .gh-btn:active { opacity: .88; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; }
.hero-dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.45); margin: 0 3px; transition: width .3s; }
.hero-dots i.on { width: 14px; background: #fff; }

/* ===== 首页骨架变体（config.js layout.skeleton 驱动，html 上加 skel-xxx class）=====
   classic = 轮播 + 卡片纵列（默认）；portal = 矮 banner + 功能宫格；immersive = 单游戏沉浸式首屏。
   同一套代码三种结构，站点间 DOM 结构与观感均不同（反模板审核要点）。 */

/* --- portal 骨架：轮播压缩为矮 banner，配合 nav 宫格 --- */
html.skel-portal .hero-slide { padding: 16px 16px 22px; }
html.skel-portal .hero-slide .game-icon.xl { width: 58px; height: 58px; border-radius: 15px; font-size: 25px; }
html.skel-portal .hero-slide .gh-main h1 { font-size: 17px; }
html.skel-portal .hero-slide .gh-desc { margin-top: 8px; -webkit-line-clamp: 1; }
html.skel-portal .hero-slide .gh-acts { margin-top: 10px; }
html.skel-portal .hero-slide .gh-btn { padding: 8px 0; font-size: 13px; }
html.skel-portal .hero-dots { bottom: 7px; }

/* --- portal 骨架：功能宫格导航（layout.home 数组中的 nav 模块） --- */
.nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.nav-cell {
  display: flex; align-items: center; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--card-shadow); border: var(--card-border);
  padding: 13px 12px;
}
.nav-cell .nv-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: calc(var(--radius) * .7);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.nav-cell .nv-info { flex: 1; min-width: 0; margin-left: 10px; }
.nav-cell .nv-t { font-size: 14px; font-weight: 700; }
.nav-cell .nv-d { font-size: 10px; color: var(--txt-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-cell .nv-arw {
  width: 7px; height: 7px; flex-shrink: 0; margin-left: 4px;
  border-top: 2px solid #c6cddb; border-right: 2px solid #c6cddb;
  transform: rotate(45deg);
}
.nav-cell:active .nv-t { color: var(--primary); }

/* --- immersive 骨架：单游戏沉浸式首屏 --- */
.immersive-hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 540px; padding: 30px 20px 38px;
  display: flex; flex-direction: column;
  border-radius: 0 0 22px 22px;
}
.immersive-hero .ih-mark {
  position: absolute; right: -26px; bottom: 34px;
  font-size: 210px; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, .055); letter-spacing: 10px;
  pointer-events: none; user-select: none;
}
.immersive-hero .ih-kicker { position: relative; font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.78); }
.immersive-hero .ih-head { position: relative; display: flex; align-items: center; gap: 15px; margin-top: 18px; }
.immersive-hero .ih-game-icon {
  width: 92px; height: 92px; border-radius: 22px; font-size: 38px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  border: 2px solid rgba(255,255,255,.30);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .30);
  text-shadow: 0 2px 4px rgba(0,0,0,.18);
}
.immersive-hero img.ih-game-icon { object-fit: cover; }
.immersive-hero .ih-title { flex: 1; min-width: 0; }
.immersive-hero .ih-title h1 { font-size: 30px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 3px 10px rgba(0,0,0,.35); }
.immersive-hero .gh-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.immersive-hero .htag {
  font-size: 10px; color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  padding: 2px 7px; background: rgba(255,255,255,.08);
}
.immersive-hero .ih-desc { position: relative; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.9); margin-top: 16px; }
.immersive-hero .ih-server { position: relative; margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.72); display: flex; align-items: center; }
.immersive-hero .ih-sv-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700; color: #5c3a10;
  background: linear-gradient(90deg, #f4d488, #d4a24f);
  border-radius: 999px; padding: 2px 8px; margin-right: 8px;
}
.immersive-hero .ih-sv-names { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.immersive-hero .ih-acts { position: relative; margin-top: auto; display: flex; gap: 11px; padding-top: 24px; }
.immersive-hero .ih-btn { flex: 1; text-align: center; font-size: 16px; font-weight: 700; border-radius: var(--btn-radius); padding: 14px 0; }
.immersive-hero .ih-btn.primary { background: linear-gradient(90deg, #f4d488, #d4a24f); color: #5c3a10; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }
.immersive-hero .ih-btn.light { color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38); }
.immersive-hero .ih-btn:active { opacity: .9; }
.immersive-hero .ih-ticker {
  position: relative; margin-top: 15px; display: flex; align-items: center;
  background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 8px 13px;
  font-size: 11px; color: rgba(255,255,255,.92);
}
.immersive-hero .ih-tk-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 700; color: #5c3a10;
  background: linear-gradient(90deg, #f4d488, #d4a24f);
  border-radius: 999px; padding: 2px 7px; margin-right: 8px;
}
.immersive-hero .ih-tk-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.immersive-hero .ih-ticker:active { opacity: .85; }

/* immersive 下公告条上浮叠于沉浸式 hero 底边（视觉上公告嵌在首屏底部） */
html.skel-immersive .notice-card { margin-top: -26px; position: relative; z-index: 5; box-shadow: 0 -4px 16px rgba(15, 25, 50, .10); }

.qa-row { display: flex; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.qa-row:last-child { border-bottom: none; }
.qa-row .qa-q { flex: 1; min-width: 0; font-size: 13px; color: var(--txt); }
.qa-row .qa-arw {
  width: 8px; height: 8px; flex-shrink: 0; margin-left: 10px;
  border-top: 2px solid #c6cddb; border-right: 2px solid #c6cddb;
  transform: rotate(45deg);
}
.qa-row:active .qa-q { color: var(--primary); }

.game-head {
  background: var(--head-grad);
  padding: 18px 14px 40px; color: #fff;
}
.game-head-inner { display: flex; align-items: center; }
.game-head .gh-info { flex: 1; min-width: 0; margin-left: 13px; }
.game-head .gh-name { display: flex; align-items: center; }
.game-head .gh-name h2 { font-size: 19px; font-weight: 800; margin-right: 8px; }
.game-head .gh-tags { margin-top: 7px; }
.game-head .gh-tags .tag { background: rgba(255,255,255,.16); color: #fff; }
.game-head .gh-meta { font-size: 11px; opacity: .72; margin-top: 7px; }
.detail-body { margin-top: -28px; }

.panel-tabs { display: flex; background: #fff; border-radius: var(--radius); padding: 4px; margin-bottom: 12px; }
.panel-tabs a {
  flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: var(--txt-2); border-radius: 9px;
}
.panel-tabs a.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.form-row { margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; }
.form-label .req { color: var(--red); margin-right: 3px; }
.form-input, .form-select {
  width: 100%; background: #f6f7fb; border-radius: 9px; padding: 11px 12px;
  font-size: 14px; color: var(--txt); border: 1px solid transparent; appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--primary); background: #fff; }
.form-input::placeholder { color: #b7bdca; }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px; border-right: 1.5px solid var(--txt-3); border-bottom: 1.5px solid var(--txt-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.form-hint { font-size: 11px; color: var(--txt-3); margin-top: 5px; }

.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.rate-item {
  display: block;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 4px 9px;
  text-align: center; background: #fff;
}
.rate-item .r-label { font-size: 14px; font-weight: 700; }
.rate-item .r-price { font-size: 15px; color: var(--primary); font-weight: 800; margin-top: 3px; }
.rate-item .r-origin { font-size: 10px; color: var(--txt-3); text-decoration: line-through; }
.rate-item.on { border-color: var(--primary); background: var(--primary-soft); position: relative; }
.rate-item.on::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 0; height: 0;
  border-top: 16px solid var(--primary); border-left: 16px solid transparent;
  border-top-right-radius: 9px;
}

.coin-strip {
  background: linear-gradient(135deg, #fffaeb 0%, #fdf0d5 100%);
  border: 1px solid #f3e0b0; border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 12px;
}
.coin-strip .coin-top { display: flex; align-items: center; }
.coin-strip .coin-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #f0b429, #b8862e);
  color: #fff; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(196, 148, 55, .32);
}
.coin-strip .coin-info { flex: 1; min-width: 0; margin-left: 11px; }
.coin-strip .coin-name { font-size: 15px; font-weight: 800; color: #6b4f12; display: flex; align-items: center; }
.coin-strip .coin-name .tag { background: #f7e3b5; color: #a67c1e; margin-left: 6px; }
.coin-strip .coin-desc { font-size: 11px; color: #a0801e; margin-top: 3px; }
.coin-strip .coin-go {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #8a6516;
  background: #fff; border: 1px solid #ecd9a8; border-radius: 999px;
  padding: 8px 14px; margin-left: 10px;
}
.coin-strip .coin-denoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.coin-strip .coin-denoms a {
  text-align: center; font-size: 12px; font-weight: 700; color: #8a6516;
  background: #fff; border: 1px solid #ecd9a8; border-radius: 999px;
  padding: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coin-strip .coin-denoms a:active { background: #fdf3d9; }

.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-card {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px; background: #fff;
}
.pkg-card.on { border-color: var(--primary); background: var(--primary-soft); }
.pkg-info { flex: 1; min-width: 0; }
.pkg-info .p-name { font-size: 14px; font-weight: 700; }
.pkg-info .p-content { font-size: 11px; color: var(--txt-2); margin: 4px 0 5px; }
.pkg-info .p-price { font-size: 16px; }
.pkg-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d4d9e4; margin-left: 10px; flex-shrink: 0;
}
.pkg-card.on .pkg-radio { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 5px, #fff 5.5px); }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 750px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: flex; align-items: center;
}
.buy-bar .sum { flex: 1; }
.buy-bar .sum .s-label { font-size: 11px; color: var(--txt-2); }
.buy-bar .sum .s-amount { font-size: 12px; }
.buy-bar .btn-main { width: auto; padding: 11px 38px; margin-left: 10px; }

.order-game { display: flex; align-items: center; }
.order-game .og-info { flex: 1; margin-left: 11px; }
.order-game .og-info h3 { font-size: 15px; font-weight: 700; }
.order-game .og-info p { font-size: 12px; color: var(--txt-2); margin-top: 4px; }
.order-rows { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 9px; }
.order-row:last-child { margin-bottom: 0; }
.order-row .o-k { color: var(--txt-2); flex-shrink: 0; margin-right: 16px; }
.order-row .o-v { text-align: right; word-break: break-all; }

.pay-list { display: flex; flex-direction: column; }
.pay-item { display: flex; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pay-item:last-child { border-bottom: none; }
.pay-logo {
  width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pay-logo.ali { background: #1677ff; }
.pay-logo.wc { background: #09bb07; }
.pay-logo.un { background: #e64340; }
.pay-item .pay-info { flex: 1; margin-left: 11px; }
.pay-item .pay-info .p-name { font-size: 14px; font-weight: 600; }
.pay-item .pay-info .p-desc { font-size: 11px; color: var(--txt-3); margin-top: 2px; }
.pay-check { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #d4d9e4; }
.pay-item.checked .pay-check { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 5px, #fff 5.5px); }
.pay-item.disabled { opacity: .45; }

.pay-mask {
  position: fixed; inset: 0; background: rgba(16, 19, 30, .58); z-index: 100;
  display: flex; align-items: flex-end;
}
.pay-sheet {
  width: 100%; max-width: 750px; margin: 0 auto;
  background: #fff; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  animation: sheetUp .3s ease;
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
.pay-sheet-head {
  background: var(--head-grad); color: #fff;
  border-radius: 18px 18px 0 0; padding: 15px; text-align: center; position: relative;
}
.pay-sheet-head h4 { font-size: 15px; font-weight: 700; }
.pay-sheet-head .ps-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: .85; }
.pay-sheet-body { padding: 26px 20px 8px; text-align: center; }
.pay-sheet-body .ps-amount { font-size: 38px; font-weight: 800; color: #182034; }
.pay-sheet-body .ps-amount .rmb { font-size: 18px; margin-right: 2px; }
.pay-sheet-body .ps-order { font-size: 12px; color: var(--txt-3); margin-top: 7px; }
.pay-sheet-body .ps-game { font-size: 13px; color: var(--txt-2); margin-top: 3px; }
.pay-sheet-btn {
  margin: 22px 20px 0; display: block; width: calc(100% - 40px);
  background: var(--btn-grad); color: #fff;
  font-size: 16px; font-weight: 700; border-radius: 999px; padding: 12px 0;
  box-shadow: 0 6px 16px var(--btn-shadow);
}
.pay-sheet-btn:active { opacity: .88; }
.pay-sheet-note { font-size: 11px; color: var(--txt-3); margin-top: 12px; padding: 0 20px 6px; line-height: 1.7; }
.pay-done { padding: 8px 20px 4px; }
.pay-done .done-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 6px auto 14px;
  background: #e6f9f1; color: var(--green); font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pay-done h4 { font-size: 16px; text-align: center; margin-bottom: 8px; }
.pay-done p { font-size: 12px; color: var(--txt-2); text-align: center; line-height: 1.8; }

.flow-steps { display: flex; padding: 6px 0 2px; }
.flow-step { flex: 1; text-align: center; position: relative; }
.flow-step .f-icon {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.flow-step .f-txt { font-size: 12px; color: var(--txt-2); }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -12%; top: 22px; width: 24%; height: 2px;
  background: repeating-linear-gradient(90deg, #d4d9e4 0 5px, transparent 5px 10px);
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; font-size: 14px; font-weight: 600;
}
.faq-q .arrow {
  width: 7px; height: 7px; border-right: 1.5px solid var(--txt-3); border-bottom: 1.5px solid var(--txt-3);
  transform: rotate(45deg); transition: transform .25s; flex-shrink: 0; margin-left: 10px;
}
.faq-item.open .faq-q .arrow { transform: rotate(-135deg); }
.faq-a { padding: 0 2px 13px; font-size: 13px; color: var(--txt-2); line-height: 1.75; }

.contact-card { background: var(--head-grad); color: #fff; padding: 18px 16px; border-radius: var(--radius); margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.contact-card .c-tip { font-size: 11px; opacity: .75; margin-bottom: 13px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-cell { background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 12px; }
.contact-cell .c-k { font-size: 11px; opacity: .75; }
.contact-cell .c-v { font-size: 14px; font-weight: 700; margin-top: 3px; }
.contact-phone {
  display: block; margin-top: 12px; text-align: center; font-size: 15px; font-weight: 800;
  background: #fff; color: var(--primary-deep); border-radius: 999px; padding: 11px 0;
}

.about-hero { background: var(--head-grad); color: #fff; text-align: center; padding: 30px 20px 36px; }
.about-hero .ah-logo {
  width: 64px; height: 64px; border-radius: 17px; margin: 0 auto 12px;
  background: var(--logo-grad);
  font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.about-hero h2 { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.about-hero p { font-size: 12px; opacity: .78; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -22px; padding: 0 12px; margin-bottom: 12px; }
.stat-card { background: #fff; border-radius: var(--radius); text-align: center; padding: 14px 4px; box-shadow: 0 4px 14px rgba(35, 47, 120, .06); }
.stat-card .s-num { font-size: 17px; font-weight: 800; color: var(--primary); }
.stat-card .s-num em { font-style: normal; font-size: 11px; margin-left: 1px; }
.stat-card .s-label { font-size: 10px; color: var(--txt-3); margin-top: 3px; }
.about-text { font-size: 13px; color: var(--txt-2); line-height: 1.9; text-indent: 2em; }
.about-list li { display: flex; font-size: 13px; margin-bottom: 10px; }
.about-list li:last-child { margin-bottom: 0; }
.about-list .a-k { color: var(--txt-2); flex-shrink: 0; margin-right: 14px; }
.about-list .a-v { word-break: break-all; }

.agr-meta { font-size: 12px; color: var(--txt-3); line-height: 1.8; margin-bottom: 10px; }
.agr-p { font-size: 13px; color: var(--txt-2); line-height: 1.9; margin-bottom: 8px; }
.agr-p:last-child { margin-bottom: 0; }

/* 支付结果页 */
.result-hero { text-align: center; padding: 34px 20px 4px; }
.res-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: #fff;
}
.res-icon.ok { background: linear-gradient(135deg, #35d184, #1fa963); box-shadow: 0 10px 24px rgba(43, 196, 119, .28); }
.res-icon.warn { background: #eef1f6; color: #8a94a6; box-shadow: none; }
.res-icon.spin { background: #fff; border: 4px solid #e6eaf2; border-top-color: var(--primary); animation: resSpin .8s linear infinite; }
@keyframes resSpin { to { transform: rotate(360deg); } }
.result-hero h2 { font-size: 20px; font-weight: 800; }
.res-sub { font-size: 13px; color: var(--txt-2); margin-top: 8px; line-height: 1.75; }
.res-sub b { color: var(--primary); font-weight: 700; }
.res-copy { font-style: normal; font-size: 11px; color: var(--primary); margin-left: 8px; cursor: pointer; }
.res-btns { display: flex; gap: 10px; margin-top: 16px; }
.res-btns .btn-main { flex: 1; width: auto; }
.btn-ghost {
  flex: 1; text-align: center; font-size: 14px; font-weight: 600;
  border: 1px solid #dfe3ec; border-radius: 999px; padding: 11px 0;
  color: #5b6478; background: #fff;
}
.res-help { text-align: center; font-size: 12px; color: var(--txt-3); margin-top: 14px; }
.res-help a { color: var(--primary); }
.demo-tip { font-size: 11px; color: #8a94a6; background: #f1f3f8; border-radius: 8px; padding: 7px 10px; text-align: center; margin-bottom: 12px; }

.safe-list li { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.safe-list li:last-child { border-bottom: none; }
.safe-list .sl-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; margin-right: 11px;
}
.safe-list .sl-info .sl-t { font-size: 14px; font-weight: 700; }
.safe-list .sl-info .sl-d { font-size: 12px; color: var(--txt-2); margin-top: 2px; line-height: 1.6; }

/* 运营公告（首页卡片行 + news.html 列表页） */
.news-row { display: flex; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: none; }
.news-row .tag { flex-shrink: 0; margin-right: 9px; }
.news-row .n-main { flex: 1; min-width: 0; }
.news-row .n-title { font-size: 13px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row .n-meta { font-size: 11px; color: var(--txt-3); margin-top: 3px; }
.news-row .n-arw {
  width: 8px; height: 8px; flex-shrink: 0; margin-left: 10px;
  border-top: 2px solid #c6cddb; border-right: 2px solid #c6cddb;
  transform: rotate(45deg);
}
.news-row:active .n-title { color: var(--primary); }

.news-item { padding: 13px 2px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-head { display: flex; align-items: center; }
.news-date { font-size: 11px; color: var(--txt-3); margin-left: auto; }
.news-title { display: flex; align-items: flex-start; font-size: 14px; font-weight: 700; line-height: 1.55; margin-top: 7px; cursor: pointer; }
.news-title .t-txt { flex: 1; min-width: 0; }
.news-title .n-arrow {
  width: 7px; height: 7px; flex-shrink: 0; margin-left: 10px; margin-top: 5px;
  border-right: 1.5px solid var(--txt-3); border-bottom: 1.5px solid var(--txt-3);
  transform: rotate(45deg); transition: transform .25s;
}
.news-item.open .n-arrow { transform: rotate(-135deg); }
.news-body p { font-size: 13px; color: var(--txt-2); line-height: 1.85; margin-top: 8px; }
.news-body p:first-child { margin-top: 6px; }
.news-count { font-size: 11px; color: var(--txt-3); font-weight: 400; }
.news-empty { text-align: center; font-size: 12px; color: var(--txt-3); padding: 30px 0 10px; }

@media (min-width: 751px) {
  .site-header, .tab-bar, .buy-bar { border-radius: 0; }
  .page-wrap { box-shadow: 0 0 40px rgba(30, 38, 80, .08); }
}
