/* ==========================================================================
   子比小游戏中心 (Zib Games Hub) · 前台样式
   命名空间统一使用 .zgh- 前缀，不污染子比主题样式
   ========================================================================== */

.zgh-app,
.zgh-modal {
    --zgh-bg: #ffffff;
    --zgh-surface: #ffffff;
    --zgh-surface-2: #f5f7fb;
    --zgh-text: #1b2432;
    --zgh-text-2: #4a5666;
    --zgh-muted: #8591a1;
    --zgh-border: #e7ecf3;
    --zgh-brand: #5b6cff;
    --zgh-brand-2: #8b5cf6;
    --zgh-brand-soft: rgba(91, 108, 255, .09);
    --zgh-shadow: 0 10px 30px rgba(24, 39, 75, .08);
    --zgh-shadow-hover: 0 18px 40px rgba(24, 39, 75, .16);
    --zgh-radius: 16px;
    --zgh-stage: #101827;
    --zgh-stage-2: #18233a;
    --zgh-stage-line: rgba(255, 255, 255, .09);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--zgh-text);
}

.zgh-app *, .zgh-app *::before, .zgh-app *::after,
.zgh-modal *, .zgh-modal *::before, .zgh-modal *::after { box-sizing: border-box; }

/* 深色：跟随系统 / 主题 */
.zgh-theme-dark,
body.theme-dark .zgh-theme-auto,
body.dark-theme .zgh-theme-auto,
body.night .zgh-theme-auto,
html[data-theme="dark"] .zgh-theme-auto,
.zgh-modal.zgh-dark {
    --zgh-bg: #171d2b;
    --zgh-surface: #1c2434;
    --zgh-surface-2: #222c3f;
    --zgh-text: #eef2f9;
    --zgh-text-2: #c2cbdc;
    --zgh-muted: #8b97ab;
    --zgh-border: #2c384d;
    --zgh-brand-soft: rgba(129, 140, 255, .16);
    --zgh-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    --zgh-shadow-hover: 0 18px 40px rgba(0, 0, 0, .4);
}
@media (prefers-color-scheme: dark) {
    .zgh-app.zgh-theme-auto,
    .zgh-modal.zgh-theme-auto {
        --zgh-bg: #171d2b;
        --zgh-surface: #1c2434;
        --zgh-surface-2: #222c3f;
        --zgh-text: #eef2f9;
        --zgh-text-2: #c2cbdc;
        --zgh-muted: #8b97ab;
        --zgh-border: #2c384d;
        --zgh-brand-soft: rgba(129, 140, 255, .16);
        --zgh-shadow: 0 10px 30px rgba(0, 0, 0, .28);
        --zgh-shadow-hover: 0 18px 40px rgba(0, 0, 0, .4);
    }
}

/* --------------------------------------------------------------------------
   页面容器 / Hero
   -------------------------------------------------------------------------- */
.zgh-app { width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 0 28px; }

.zgh-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 34px 32px;
    border-radius: 22px;
    background: linear-gradient(120deg, #eef1ff 0%, #f6efff 48%, #eaf7ff 100%);
    border: 1px solid var(--zgh-border);
    margin-bottom: 22px;
}
.zgh-theme-dark .zgh-hero,
body.theme-dark .zgh-theme-auto .zgh-hero,
html[data-theme="dark"] .zgh-theme-auto .zgh-hero {
    background: linear-gradient(120deg, #232a4a 0%, #2a2342 48%, #1c3448 100%);
}
@media (prefers-color-scheme: dark) {
    .zgh-app.zgh-theme-auto .zgh-hero { background: linear-gradient(120deg, #232a4a 0%, #2a2342 48%, #1c3448 100%); }
}
.zgh-hero-deco { position: absolute; inset: 0; pointer-events: none; }
.zgh-hero-deco span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.zgh-hero-deco span:nth-child(1) { width: 190px; height: 190px; right: -40px; top: -80px; background: linear-gradient(135deg, #9db3ff, #c4a8ff); }
.zgh-hero-deco span:nth-child(2) { width: 110px; height: 110px; right: 160px; bottom: -60px; background: linear-gradient(135deg, #86e3ce, #7cc4ff); opacity: .45; }
.zgh-hero-deco span:nth-child(3) { width: 60px; height: 60px; right: 300px; top: 24px; background: #ffd6a5; opacity: .5; }

.zgh-eyebrow {
    position: relative; display: inline-block; font-size: 11px; letter-spacing: .22em;
    font-weight: 700; color: var(--zgh-brand); background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .8); padding: 5px 12px; border-radius: 20px;
}
.zgh-theme-dark .zgh-eyebrow { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .12); }
.zgh-title { position: relative; font-size: 34px; line-height: 1.25; margin: 14px 0 8px; letter-spacing: -.5px; font-weight: 800; }
.zgh-subtitle { position: relative; margin: 0; color: var(--zgh-text-2); font-size: 15px; }
.zgh-hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.zgh-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--zgh-text-2);
    background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
    padding: 6px 12px; border-radius: 30px; backdrop-filter: blur(6px);
}
.zgh-theme-dark .zgh-chip { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .1); }
.zgh-chip b { color: var(--zgh-brand); font-size: 14px; }
.zgh-ico { font-style: normal; }

.zgh-notice {
    margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px;
    background: var(--zgh-brand-soft); border: 1px solid var(--zgh-border); color: var(--zgh-text-2);
}

/* --------------------------------------------------------------------------
   工具栏
   -------------------------------------------------------------------------- */
.zgh-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.zgh-search {
    display: flex; align-items: center; gap: 8px; min-width: 230px; flex: 0 1 280px;
    background: var(--zgh-surface); border: 1px solid var(--zgh-border);
    border-radius: 12px; padding: 0 14px; height: 42px; box-shadow: var(--zgh-shadow);
}
.zgh-search:focus-within { border-color: var(--zgh-brand); box-shadow: 0 0 0 3px var(--zgh-brand-soft); }
.zgh-search span { font-size: 14px; opacity: .6; }
.zgh-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--zgh-text); font-size: 13.5px; min-width: 0; }
.zgh-search input::placeholder { color: var(--zgh-muted); }

.zgh-tabs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.zgh-tab {
    border: 1px solid var(--zgh-border); background: var(--zgh-surface); color: var(--zgh-text-2);
    padding: 8px 15px; height: 38px; border-radius: 20px; font-size: 13px; cursor: pointer;
    transition: .18s ease; white-space: nowrap; font-family: inherit;
}
.zgh-tab:hover { border-color: var(--zgh-brand); color: var(--zgh-brand); }
.zgh-tab.is-active { background: linear-gradient(135deg, var(--zgh-brand), var(--zgh-brand-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(91, 108, 255, .3); }

/* --------------------------------------------------------------------------
   卡片网格
   -------------------------------------------------------------------------- */
.zgh-grid { display: grid; grid-template-columns: repeat(var(--zgh-cols, 4), minmax(0, 1fr)); gap: 18px; }
.zgh-card-item {
    display: flex; flex-direction: column; overflow: hidden; background: var(--zgh-surface);
    border: 1px solid var(--zgh-border); border-radius: var(--zgh-radius);
    box-shadow: var(--zgh-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    cursor: pointer; position: relative;
}
.zgh-card-item:hover { transform: translateY(-5px); box-shadow: var(--zgh-shadow-hover); border-color: rgba(91, 108, 255, .45); }
.zgh-card-thumb {
    position: relative; height: 132px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; isolation: isolate;
}
.zgh-card-thumb::before, .zgh-card-thumb::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .28); z-index: -1;
}
.zgh-card-thumb::before { width: 150px; height: 150px; top: -70px; left: -30px; }
.zgh-card-thumb::after { width: 110px; height: 110px; bottom: -60px; right: -10px; }
.zgh-card-icon { font-size: 60px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); transition: transform .25s ease; user-select: none; }
.zgh-card-item:hover .zgh-card-icon { transform: scale(1.12) rotate(-6deg); }
.zgh-card-cat {
    position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; color: #fff;
    background: rgba(0, 0, 0, .22); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 20px;
}
.zgh-card-best {
    position: absolute; right: 12px; bottom: 12px; font-size: 11px; color: #fff;
    background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 20px;
}
.zgh-card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.zgh-card-name { font-size: 15.5px; font-weight: 700; line-height: 1.4; margin: 0; }
.zgh-card-desc { font-size: 12.5px; color: var(--zgh-muted); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.zgh-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.zgh-tag { font-size: 10.5px; color: var(--zgh-brand); background: var(--zgh-brand-soft); border-radius: 5px; padding: 3px 7px; }
.zgh-tag.zgh-tag-2 { color: #1a9c62; background: rgba(26, 156, 98, .1); }
.zgh-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--zgh-border); }
.zgh-card-hint { font-size: 11px; color: var(--zgh-muted); }
.zgh-play-btn {
    border: 0; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--zgh-brand), var(--zgh-brand-2));
    padding: 8px 15px; border-radius: 9px; transition: .18s ease; white-space: nowrap;
}
.zgh-play-btn:hover { filter: brightness(1.08); transform: translateX(2px); }
.zgh-card-item.zgh-locked .zgh-play-btn { background: linear-gradient(135deg, #8a94a6, #6b7688); }

.zgh-empty { text-align: center; padding: 60px 20px; color: var(--zgh-muted); font-size: 14px; }
.zgh-footer { margin-top: 26px; text-align: center; font-size: 12px; color: var(--zgh-muted); }
.zgh-error { color: #d63638; font-size: 13px; }

/* --------------------------------------------------------------------------
   游戏弹层
   -------------------------------------------------------------------------- */
.zgh-modal {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    background: rgba(12, 18, 32, .68); backdrop-filter: blur(8px); padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.zgh-modal.is-open { opacity: 1; visibility: visible; }
.zgh-modal-panel {
    width: min(1120px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
    background: var(--zgh-surface); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.zgh-modal.is-open .zgh-modal-panel { transform: none; }
.zgh-modal.is-full .zgh-modal-panel { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
.zgh-modal-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--zgh-border); flex: 0 0 auto; }
.zgh-modal-title { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 9px; }
.zgh-modal-title span { font-size: 20px; }
.zgh-hud { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.zgh-hud-item { font-size: 12px; color: var(--zgh-text-2); background: var(--zgh-surface-2); border: 1px solid var(--zgh-border); padding: 6px 11px; border-radius: 8px; white-space: nowrap; }
.zgh-hud-item b { color: var(--zgh-brand); font-size: 14px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.zgh-icon-btn {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; border: 1px solid var(--zgh-border);
    background: var(--zgh-surface-2); color: var(--zgh-text-2); cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center; transition: .16s; font-family: inherit;
}
.zgh-icon-btn:hover { border-color: var(--zgh-brand); color: var(--zgh-brand); }

.zgh-modal-main { display: flex; gap: 0; overflow: hidden; flex: 1; min-height: 0; }
.zgh-stage-wrap {
    flex: 1; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center;
    padding: 18px; background: var(--zgh-surface-2); overflow: auto;
}
.zgh-stage {
    position: relative; width: 100%; max-width: 760px; min-height: 380px; border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #1b2740, var(--zgh-stage) 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .22);
    color: #f2f6ff; display: flex; align-items: center; justify-content: center; overflow: hidden;
    touch-action: manipulation;
}
.zgh-game-root {
    position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-start;
    padding: 12px; overflow: auto;
}
.zgh-stage canvas { display: block; max-width: 100%; border-radius: 8px; background: #0d1422; }
.zgh-stage-note { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); pointer-events: none; }

.zgh-side {
    width: 248px; flex: 0 0 248px; border-left: 1px solid var(--zgh-border);
    padding: 16px; overflow-y: auto; background: var(--zgh-surface);
}
.zgh-side h4 { margin: 0 0 10px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.zgh-side p { font-size: 12px; color: var(--zgh-muted); line-height: 1.7; margin: 0 0 18px; }
.zgh-rank { list-style: none; margin: 0; padding: 0; }
.zgh-rank li { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-bottom: 1px dashed var(--zgh-border); font-size: 12px; }
.zgh-rank li:last-child { border-bottom: 0; }
.zgh-rank-no { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: var(--zgh-surface-2); color: var(--zgh-muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.zgh-rank li:nth-child(1) .zgh-rank-no { background: #ffe9a8; color: #a06a00; }
.zgh-rank li:nth-child(2) .zgh-rank-no { background: #e6ebf2; color: #5b6678; }
.zgh-rank li:nth-child(3) .zgh-rank-no { background: #f8dcc4; color: #a15b24; }
.zgh-rank-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--zgh-text-2); }
.zgh-rank-score { font-weight: 700; color: var(--zgh-brand); font-variant-numeric: tabular-nums; }
.zgh-rank li.is-me .zgh-rank-name { color: var(--zgh-brand); font-weight: 700; }
.zgh-rank-empty { font-size: 12px; color: var(--zgh-muted); padding: 14px 0; text-align: center; }
.zgh-modal-foot { padding: 10px 18px; border-top: 1px solid var(--zgh-border); font-size: 12px; color: var(--zgh-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.zgh-modal-foot span:last-child { margin-left: auto; }

/* 遮罩：加载 / 登录 / 结束 */
.zgh-veil {
    position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
    background: rgba(9, 14, 26, .82); backdrop-filter: blur(6px); color: #fff;
}
.zgh-veil[hidden] { display: none; }
.zgh-veil-icon { font-size: 46px; line-height: 1; }
.zgh-veil h3 { margin: 0; font-size: 20px; }
.zgh-veil p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .72); max-width: 420px; line-height: 1.7; }
.zgh-veil-btns { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.zgh-veil-btn {
    border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600;
    padding: 10px 22px; border-radius: 10px; background: linear-gradient(135deg, var(--zgh-brand), var(--zgh-brand-2)); color: #fff;
}
.zgh-veil-btn.zgh-ghost { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); }
.zgh-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: zgh-spin .8s linear infinite; }
@keyframes zgh-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   游戏通用组件（深色舞台内使用）
   -------------------------------------------------------------------------- */
.zgh-g-wrap { width: 100%; min-height: 100%; margin: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.zgh-g-bar { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.zgh-g-bar b { color: #ffd479; font-size: 16px; font-variant-numeric: tabular-nums; }
.zgh-g-btn {
    font-family: inherit; cursor: pointer; border: 1px solid rgba(255, 255, 255, .18); color: #fff;
    background: rgba(255, 255, 255, .1); padding: 7px 14px; border-radius: 9px; font-size: 12.5px; transition: .15s;
}
.zgh-g-btn:hover { background: rgba(255, 255, 255, .2); }
.zgh-g-btn.is-primary { background: linear-gradient(135deg, #5b6cff, #8b5cf6); border-color: transparent; }
.zgh-g-pad { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 40px); gap: 6px; justify-content: center; margin-top: 6px; }
.zgh-g-pad button { font-family: inherit; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .09); color: #fff; border-radius: 9px; cursor: pointer; font-size: 15px; }
.zgh-g-pad button:active { background: rgba(255, 255, 255, .25); }
.zgh-g-tip { font-size: 11.5px; color: rgba(255, 255, 255, .45); text-align: center; line-height: 1.6; }

/* 2048 */
.zgh-2048-board { position: relative; width: 320px; height: 320px; max-width: 100%; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 8px; touch-action: none; }
.zgh-2048-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 100%; }
.zgh-2048-cell { background: rgba(255, 255, 255, .06); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #101827; transition: transform .09s ease; }
.zgh-2048-cell[data-v="0"] { background: rgba(255, 255, 255, .05); }
.zgh-2048-cell[data-v="2"] { background: #eee4da; }
.zgh-2048-cell[data-v="4"] { background: #ede0c8; }
.zgh-2048-cell[data-v="8"] { background: #f2b179; }
.zgh-2048-cell[data-v="16"] { background: #f59563; }
.zgh-2048-cell[data-v="32"] { background: #f67c5f; }
.zgh-2048-cell[data-v="64"] { background: #f65e3b; }
.zgh-2048-cell[data-v="128"] { background: #edcf72; font-size: 22px; }
.zgh-2048-cell[data-v="256"] { background: #edcc61; font-size: 22px; }
.zgh-2048-cell[data-v="512"] { background: #edc850; font-size: 22px; }
.zgh-2048-cell[data-v="1024"] { background: #edc53f; font-size: 18px; }
.zgh-2048-cell[data-v="2048"] { background: #edc22e; font-size: 18px; }
.zgh-2048-cell.is-new { animation: zgh-pop .16s ease; }
@keyframes zgh-pop { from { transform: scale(.6); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* 记忆翻牌 */
.zgh-mem-board { display: grid; grid-template-columns: repeat(4, 68px); gap: 10px; justify-content: center; }
.zgh-mem-card { width: 68px; height: 68px; perspective: 600px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.zgh-mem-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .32s ease; }
.zgh-mem-card.is-flip .zgh-mem-inner { transform: rotateY(180deg); }
.zgh-mem-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.zgh-mem-front { background: linear-gradient(135deg, #5b6cff, #8b5cf6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .55); font-size: 22px; }
.zgh-mem-back { background: #f4f7ff; transform: rotateY(180deg); }
.zgh-mem-card.is-done .zgh-mem-back { background: #d9f7e4; }

/* 打地鼠 */
.zgh-whack-board { display: grid; grid-template-columns: repeat(3, 92px); gap: 14px; justify-content: center; }
.zgh-whack-hole { position: relative; height: 84px; border-radius: 14px; background: #0b1120; box-shadow: inset 0 6px 14px rgba(0, 0, 0, .6); overflow: hidden; cursor: pointer; }
.zgh-whack-hole::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(#2b3549, #1a2233); z-index: 2; border-radius: 0 0 14px 14px; }
.zgh-whack-mole { position: absolute; left: 50%; bottom: -60px; width: 60px; transform: translateX(-50%); font-size: 42px; line-height: 1; transition: bottom .14s ease; z-index: 1; user-select: none; }
.zgh-whack-hole.is-up .zgh-whack-mole { bottom: 8px; }
.zgh-whack-hole.is-hit { animation: zgh-hit .2s ease; }
@keyframes zgh-hit { 50% { background: #3b516f; } }

/* 反应力测试 */
.zgh-react-box { width: min(460px, 92%); height: 230px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; user-select: none; transition: background .12s ease; text-align: center; padding: 20px; }
.zgh-react-box.is-idle { background: rgba(255, 255, 255, .08); }
.zgh-react-box.is-wait { background: #c9484b; }
.zgh-react-box.is-go { background: #22a06b; }
.zgh-react-box.is-result { background: rgba(91, 108, 255, .28); }
.zgh-react-box b { font-size: 26px; }
.zgh-react-box small { font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.7; }
.zgh-react-dots { display: flex; gap: 6px; }
.zgh-react-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.zgh-react-dots i.on { background: #ffd479; }

/* 移动端 */
@media (max-width: 1100px) { .zgh-side { display: none; } }
@media (max-width: 980px) { .zgh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .zgh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .zgh-hero { padding: 26px 20px 24px; border-radius: 16px; }
    .zgh-title { font-size: 26px; }
    .zgh-toolbar { gap: 10px; }
    .zgh-search { flex: 1 1 100%; }
    .zgh-tab { padding: 7px 12px; height: 34px; font-size: 12px; }
    .zgh-modal { padding: 0; }
    .zgh-modal-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
    .zgh-modal-head { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .zgh-modal-title { font-size: 14px; }
    .zgh-hud-item { font-size: 11px; padding: 4px 8px; }
    .zgh-stage-wrap { padding: 10px; }
    .zgh-stage { min-height: 320px; }
    .zgh-modal-foot { display: none; }
    .zgh-card-thumb { height: 100px; }
    .zgh-card-icon { font-size: 44px; }
    .zgh-card-body { padding: 12px; }
    .zgh-card-desc { font-size: 11.5px; min-height: 36px; }
    .zgh-mem-board { grid-template-columns: repeat(4, 60px); gap: 8px; }
    .zgh-mem-card { width: 60px; height: 60px; }
    .zgh-whack-board { grid-template-columns: repeat(3, 82px); gap: 10px; }
    .zgh-whack-hole { height: 76px; }
}
@media (max-width: 420px) {
    .zgh-grid { grid-template-columns: 1fr; }
    .zgh-mem-board { grid-template-columns: repeat(4, 54px); gap: 6px; }
    .zgh-mem-card { width: 54px; height: 54px; }
}
