/* css/gameHall.css — 网页版游戏大厅（暗金，平移自 gameHall.wxss，rpx×0.5→px） */
body { background: #14100C; } /* 暗金页整体深色底，避免深卡浮在浅灰上 */
.gh-root { padding: 12px; display: flex; flex-direction: column; gap: 12px; }

/* ===== 小爱向导卡 ===== */
.gh-guide-card { display: flex; align-items: center; gap: 12px; background: #1A140E; border: 1px solid #2E2618; border-radius: 10px; padding: 12px; }
.gh-guide-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: #0d1626; border: 1px solid rgba(201,178,122,0.6); box-shadow: 0 0 12px rgba(201,178,122,0.25); object-fit: cover; }
.gh-guide-bubble { flex: 1; min-width: 0; }
.gh-guide-name { color: #E8D9A8; font-size: 14px; font-weight: bold; letter-spacing: 1px; }
.gh-guide-text { margin-top: 4px; color: #9C8F80; font-size: 13px; line-height: 1.7; border-left: 3px solid #C9B27A; padding-left: 10px; }

/* ===== 英雄区 ===== */
.gh-hero { padding: 24px 16px 20px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #2A1F14 0%, #14100C 70%); border-bottom: 1px solid #3A3024; border-radius: 12px; }
.gh-hero-title { color: #E8D9A8; font-size: 34px; font-weight: bold; letter-spacing: 8px; text-shadow: 0 0 16px rgba(201,178,122,0.35); }
.gh-hero-sub { color: #C9B27A; font-size: 14px; margin-top: 6px; letter-spacing: 4px; }
.gh-hero-lore { margin-top: 14px; color: #9C8F80; font-size: 13px; line-height: 1.8; text-align: left; border-left: 3px solid #8B2941; padding-left: 12px; }

/* ===== 卡片 ===== */
.gh-card { background: #1A140E; border: 1px solid #2E2618; border-radius: 12px; padding: 14px; }
.gh-sec-title { color: #C9B27A; font-size: 14px; font-weight: bold; margin-bottom: 12px; letter-spacing: 1px; padding-left: 8px; border-left: 3px solid #C9B27A; }

/* ===== 进度卡 ===== */
.gh-prog-row { display: flex; align-items: baseline; justify-content: space-between; }
.gh-prog-stage { color: #E8D9A8; font-size: 22px; font-weight: bold; }
.gh-prog-s { color: #C9B27A; font-size: 14px; }
.gh-prog-form { color: #8B2941; font-size: 13px; margin-top: 4px; }
.gh-prog-bar { height: 8px; background: #2A2216; border-radius: 5px; overflow: hidden; margin: 10px 0 6px; border: 1px solid #3A3024; }
.gh-prog-fill { height: 100%; background: linear-gradient(90deg, #6B5A2E, #C9B27A); transition: width .4s; }
.gh-prog-meta { color: #9C8F80; font-size: 12px; }
.gh-prog-new { color: #E8D9A8; font-size: 18px; font-weight: bold; text-align: center; margin-top: 6px; }
.gh-prog-new-sub { color: #9C8F80; font-size: 13px; text-align: center; margin: 8px 0 4px; line-height: 1.7; }
.gh-btn-start { margin-top: 14px; text-align: center; padding: 12px 0; background: linear-gradient(135deg, #8B2941, #5A1A2C); border: 1px solid #C46A4A; color: #F0E6C8; font-size: 16px; font-weight: bold; letter-spacing: 6px; border-radius: 10px; cursor: pointer; }
.gh-btn-start:active { opacity: 0.85; }

/* ===== 六阶之路 ===== */
.gh-stage-path { display: flex; flex-direction: column; }
.gh-stage-step { display: flex; align-items: flex-start; gap: 10px; }
.gh-stage-num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #5A4630; color: #C9B27A; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; background: rgba(107,90,46,0.18); }
.gh-stage-info { flex: 1; padding-bottom: 12px; border-left: 1px dashed #2E2618; margin-left: -18px; padding-left: 30px; }
.gh-stage-step:last-child .gh-stage-info { border-left-color: transparent; }
.gh-stage-name { color: #E8D9A8; font-size: 14px; font-weight: bold; }
.gh-stage-desc { color: #9C8F80; font-size: 12px; margin-top: 2px; }

/* ===== 六灵根 ===== */
.gh-roots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-root-cell { width: calc(33.333% - 6px); background: #211A12; border: 1px solid #2E2618; border-radius: 8px; padding: 10px 8px; text-align: center; box-sizing: border-box; }
.gh-root-name { color: #E8D9A8; font-size: 14px; font-weight: bold; }
.gh-root-layer { color: #8B2941; font-size: 11px; margin: 4px 0; }
.gh-root-desc { color: #9C8F80; font-size: 11px; line-height: 1.5; }

/* ===== 玩法要点 ===== */
.gh-feat-list { display: flex; flex-direction: column; gap: 8px; }
.gh-feat-row { display: flex; align-items: flex-start; gap: 8px; }
.gh-feat-icon { flex: none; color: #C9B27A; font-size: 14px; width: 18px; }
.gh-feat-row span:last-child { color: #B0A48E; font-size: 13px; line-height: 1.6; }

/* ===== 异兽预览 ===== */
.gh-beast-grid { display: flex; flex-direction: column; gap: 8px; }
.gh-beast-cell { background: #211A12; border: 1px solid #2E2618; border-left: 3px solid #8B2941; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.gh-beast-cell-on { border-left-color: #C9B27A; background: #26200F; }
.gh-beast-cell:hover { background: #26200F; }
.gh-beast-name { color: #E8D9A8; font-size: 15px; font-weight: bold; display: inline; }
.gh-beast-model-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid #C9B27A; border-radius: 6px; color: #C9B27A; font-size: 11px; font-weight: normal; }
.gh-beast-chapter { color: #8B2941; font-size: 12px; display: inline; margin-left: 8px; }
.gh-beast-text { color: #9C8F80; font-size: 12px; margin-top: 6px; line-height: 1.7; }

.gh-beast-viewer { background: #1A140C; border: 1px solid #2E2618; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.gh-beast-viewer-name { color: #E8D9A8; font-size: 16px; font-weight: bold; }
.gh-beast-tag { margin-left: 10px; color: #C9B27A; font-size: 12px; font-weight: normal; border: 1px solid #C9B27A; border-radius: 6px; padding: 1px 8px; }
.gh-beast-viewer-canvas { width: 100%; height: 240px; margin-top: 10px; border-radius: 8px; display: block; background: #0d1626; }
.gh-beast-viewer-text { color: #9C8F80; font-size: 13px; line-height: 1.8; margin-top: 6px; }
.gh-beast-viewer-detail { margin-top: 10px; color: #C9B27A; font-size: 14px; text-align: center; border: 1px solid rgba(201,178,122,0.5); border-radius: 20px; padding: 8px 0; letter-spacing: 2px; cursor: pointer; }
.gh-beast-viewer-detail:hover { background: rgba(201,178,122,0.08); }

.gh-footer { text-align: center; color: #5A4630; font-size: 12px; padding: 12px 0 24px; letter-spacing: 2px; }

/* ===== v9.6: 小爱向导点击提示 ===== */
.gh-guide-card { cursor: pointer; }
.gh-guide-card:hover { border-color: #C9B27A66; }
.gh-guide-tap-hint {
  margin-left: 10px; font-size: 11px; font-weight: normal; color: #C9B27A;
  border: 1rpx solid rgba(201,178,122,0.4); border-radius: 14px; padding: 1px 10px;
  letter-spacing: 1px;
}

/* ===== v9.6: 先睹为快真实 AI 写真 ===== */
.gh-beast-viewer-stage { position: relative; margin-top: 10px; cursor: pointer; }
.gh-beast-viewer-img {
  width: 100%; height: 260px; display: block; border-radius: 8px;
  background: #0d0a07; border: 1px solid #3A3024; object-fit: cover;
}
.gh-beast-viewer-empty {
  width: 100%; height: 260px; display: flex; align-items: center; justify-content: center;
  color: #5A4630; font-size: 14px; border-radius: 8px;
  background: #0d0a07; border: 1px solid #3A3024;
}
.gh-beast-viewer-tap {
  position: absolute; right: 10px; bottom: 10px;
  color: #F0E6C8; font-size: 12px; letter-spacing: 2px;
  background: rgba(20,16,12,0.78); border: 1px solid rgba(201,178,122,0.55);
  border-radius: 16px; padding: 4px 12px; pointer-events: none;
}
.gh-beast-cell { display: flex; align-items: center; gap: 12px; }
.gh-beast-thumb {
  width: 66px; height: 66px; flex-shrink: 0; border-radius: 8px;
  background: #14100C; border: 1px solid #3A3024; object-fit: cover;
}
.gh-beast-cell-body { flex: 1; min-width: 0; }
.gh-beast-name { display: block; }

/* ===== v9.6: 山海小说 · 天帝纪总览 ===== */
.gh-novel-lead {
  color: #B0A48E; font-size: 13px; line-height: 1.8; margin-bottom: 12px;
  border-left: 3px solid #8B2941; padding-left: 10px;
}
.gh-arc-list { display: flex; flex-direction: column; gap: 8px; }
.gh-arc-item {
  background: #211A12; border: 1px solid #2E2618; border-radius: 8px;
  padding: 10px 12px; border-top: 2px solid #6B5A2E; cursor: pointer;
}
.gh-arc-item:hover { background: #26200F; }
.gh-arc-head { display: flex; align-items: baseline; justify-content: space-between; }
.gh-arc-title { color: #E8D9A8; font-size: 14px; font-weight: bold; letter-spacing: 1px; }
.gh-arc-chapter { color: #8B2941; font-size: 12px; }
.gh-arc-motto { color: #9C8F80; font-size: 13px; line-height: 1.8; margin-top: 6px; }
.gh-arc-hook { color: #6B5A2E; font-size: 12px; margin-top: 4px; line-height: 1.6; }

/* ===== v9.6: 白话故事 / 小爱指引 弹层 ===== */
.gh-story-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(8,6,4,0.82); display: flex; align-items: center; justify-content: center;
}
.gh-story-box {
  width: min(560px, 92vw); max-height: 84vh; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #241C12, #171208);
  border: 1px solid #6B5A2E; border-radius: 14px; padding: 18px 16px 14px;
  box-shadow: 0 0 30px rgba(201,178,122,0.18);
}
.gh-story-close {
  position: absolute; right: 8px; top: 6px; z-index: 9; width: 30px; height: 30px;
  line-height: 28px; text-align: center; font-size: 15px; color: #B0A48E;
  background: rgba(20,16,12,0.55); border: 1px solid rgba(201,178,122,0.45);
  border-radius: 50%; cursor: pointer; padding: 0;
}
.gh-story-close:hover { color: #E8D9A8; }
.gh-story-scroll { flex: 1; min-height: 120px; max-height: 72vh; overflow-y: auto; }
.gh-story-head { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #2E2618; }
.gh-story-img {
  width: 96px; height: 120px; flex-shrink: 0; border-radius: 8px;
  background: #0d0a07; border: 1px solid #3A3024; object-fit: cover;
}
.gh-story-head-info { flex: 1; min-width: 0; }
.gh-story-name { color: #E8D9A8; font-size: 22px; font-weight: bold; letter-spacing: 3px; }
.gh-story-chapter { color: #8B2941; font-size: 13px; margin-top: 4px; }
.gh-story-arc {
  margin-top: 8px; color: #C9B27A; font-size: 12px; display: inline-block;
  border: 1px solid rgba(201,178,122,0.4); border-radius: 6px; padding: 2px 8px;
}
.gh-story-sec { margin-top: 12px; }
.gh-story-sec-t {
  color: #C9B27A; font-size: 13px; font-weight: bold; letter-spacing: 2px;
  padding-left: 8px; border-left: 3px solid #C9B27A; margin-bottom: 6px;
}
.gh-story-sec-d { color: #B0A48E; font-size: 14px; line-height: 1.9; }
.gh-story-novel { color: #D8C9A8; }
.gh-story-muted { color: #6B5A2E; }
.gh-story-foot { display: flex; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #2E2618; }
.gh-story-btn {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 20px; font-size: 14px;
  letter-spacing: 2px; cursor: pointer; background: none;
}
.gh-story-btn.main {
  background: linear-gradient(135deg, #8B2941, #5A1A2C); border: 1px solid #C46A4A;
  color: #F0E6C8; font-weight: bold;
}
.gh-story-btn.ghost { border: 1px solid rgba(201,178,122,0.55); color: #C9B27A; }
.gh-guide-pop-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #2E2618; }
.gh-guide-pop-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: #0d1626; border: 2px solid rgba(201,178,122,0.6);
  box-shadow: 0 0 14px rgba(201,178,122,0.25); object-fit: cover;
}
.gh-guide-pop-name { color: #E8D9A8; font-size: 17px; font-weight: bold; letter-spacing: 2px; }

/* ===== v9.7: 小说统计行 / 卷进度条 / 我的续笔 · 玩家共创区 ===== */
.gh-novel-stats {
  display: flex; align-items: center; gap: 6px; margin-bottom: 16px;
  color: #9C8F80; font-size: 13px;
}
.gh-novel-stats .gh-ns-num { color: #C9B27A; font-size: 18px; font-weight: bold; }
.gh-novel-stats .gh-ns-dot { color: #5A4630; }
.gh-arc-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gh-arc-prog-bar {
  flex: 1; height: 6px; background: #2A2216; border-radius: 3px; overflow: hidden;
  border: 1px solid #3A3024;
}
.gh-arc-prog-fill { height: 100%; background: linear-gradient(90deg, #6B5A2E, #C9B27A); }
.gh-arc-prog-txt { color: #6B5A2E; font-size: 11px; flex: none; }
.gh-cowrite-head { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #3A3024; }
.gh-cowrite-title { color: #E8D9A8; font-size: 15px; font-weight: bold; letter-spacing: 1px; }
.gh-cowrite-sub { color: #9C8F80; font-size: 12px; line-height: 1.7; margin-top: 6px; }
.gh-mywrite-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gh-mywrite-item {
  background: #211A12; border: 1px solid #2E2618; border-left: 3px solid #C9B27A;
  border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .18s;
}
.gh-mywrite-item:hover { border-left-color: #E8D9A8; }
.gh-mywrite-custom { border-left-color: #8B2941; }
.gh-mywrite-name { color: #E8D9A8; font-size: 14px; font-weight: bold; }
.gh-mywrite-tag {
  margin-left: 8px; font-size: 11px; font-weight: normal; color: #C46A4A;
  border: 1px solid rgba(196,106,74,.55); border-radius: 6px; padding: 1px 8px;
}
.gh-mywrite-text {
  color: #9C8F80; font-size: 12px; line-height: 1.7; margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gh-cowrite-empty { color: #6B5A2E; font-size: 12px; margin-top: 14px; }
.gh-cowrite-actions { display: flex; gap: 12px; margin-top: 16px; }
.gh-cowrite-actions .gh-story-btn { flex: 1; }

/* ===== v9.7: 卷目录弹层 ===== */
.gh-catalog-head { padding-bottom: 14px; border-bottom: 1px solid #2E2618; }
.gh-catalog-title { color: #E8D9A8; font-size: 19px; font-weight: bold; letter-spacing: 1px; }
.gh-catalog-chapter { color: #8B2941; font-size: 13px; margin-top: 4px; }
.gh-catalog-motto { color: #9C8F80; font-size: 13px; line-height: 1.7; margin-top: 8px; }
.gh-catalog-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid #221B12; cursor: pointer;
}
.gh-catalog-row:hover .gh-catalog-name { color: #E8D9A8; }
.gh-catalog-row-read .gh-catalog-name { color: #C9B27A; }
.gh-catalog-idx {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid #5A4630; color: #9C8F80; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.gh-catalog-name { color: #E8D9A8; font-size: 15px; font-weight: bold; flex: 1; min-width: 0; }
.gh-catalog-badges { display: flex; gap: 6px; flex: none; }
.gh-badge { font-size: 11px; border-radius: 6px; padding: 1px 8px; border: 1px solid; white-space: nowrap; }
.gh-badge-got { color: #C46A4A; border-color: rgba(196,106,74,.55); }
.gh-badge-wrote { color: #C9B27A; border-color: rgba(201,178,122,.55); }
.gh-badge-read { color: #6B5A2E; border-color: rgba(107,90,46,.45); }

/* ===== v9.7: 故事弹层增强 ===== */
.gh-story-foot-wrap { flex-wrap: wrap; }
.gh-story-foot-wrap .gh-story-btn { min-width: 40%; }
.gh-story-arc-got { color: #C46A4A !important; border-color: rgba(196,106,74,.55) !important; margin-left: 8px; }
.gh-story-img-none {
  display: flex; align-items: center; justify-content: center;
  color: #C9B27A; font-size: 26px; font-weight: bold; letter-spacing: 6px;
  background: radial-gradient(ellipse at 50% 30%, #2A1F14, #0d0a07);
}
.gh-story-write-sec { background: rgba(201,178,122,.06); border-radius: 8px; padding: 12px; }
.gh-story-write-edit { margin-top: 8px; color: #C9B27A; font-size: 13px; text-align: right; cursor: pointer; }

/* ===== v9.7: 续写编辑器 / 自创异兽表单 ===== */
.gh-write-editor {
  margin-top: 14px; background: #1A140C; border: 1px dashed #6B5A2E;
  border-radius: 10px; padding: 16px;
}
.gh-write-editor-t { color: #C9B27A; font-size: 14px; font-weight: bold; }
.gh-write-editor-area {
  width: 100%; box-sizing: border-box; min-height: 120px; margin-top: 10px;
  background: #0d0a07; border: 1px solid #3A3024; border-radius: 8px;
  color: #D8C9A8; font-size: 14px; line-height: 1.8; padding: 12px;
  font-family: inherit; resize: vertical;
}
.gh-write-editor-input {
  width: 100%; box-sizing: border-box; margin-top: 10px;
  background: #0d0a07; border: 1px solid #3A3024; border-radius: 8px;
  color: #E8D9A8; font-size: 16px; padding: 12px; font-family: inherit;
}
.gh-write-editor-tip { color: #6B5A2E; font-size: 11px; text-align: right; margin-top: 6px; }
.gh-write-editor-btns { display: flex; gap: 12px; margin-top: 12px; }
.gh-arch-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gh-arch-cell {
  padding: 7px 20px; border-radius: 20px; font-size: 13px; cursor: pointer;
  color: #9C8F80; border: 1px solid #2E2618; background: #211A12; font-family: inherit;
}
.gh-arch-cell-on { color: #F0E6C8; border-color: #C9B27A; background: rgba(201,178,122,.14); font-weight: bold; }

/* ===== v9.7: 轻提示 ===== */
.gh-toast {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%) translateY(14px);
  background: rgba(36,28,18,.95); border: 1px solid #6B5A2E; color: #E8D9A8;
  font-size: 13px; letter-spacing: 1px; border-radius: 22px; padding: 9px 22px;
  opacity: 0; transition: all .3s; z-index: 10001; pointer-events: none;
}
.gh-toast-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 状态条九项详解（2026-09-11 新增） ===== */
.gh-stat-lead { color: #8A8070; font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.gh-stat-group {
  color: #C9B27A; font-size: 12px; font-weight: bold; letter-spacing: 1px;
  margin: 16px 0 9px; padding-bottom: 6px; border-bottom: 1px solid #2B2318;
}
.gh-stat-list { display: flex; flex-direction: column; gap: 11px; }
.gh-stat-row { display: flex; align-items: flex-start; gap: 12px; padding-left: 10px; border-left: 2px solid #3A3026; }
.gh-stat-name { flex: none; width: 46px; color: #E8DCC0; font-size: 13px; font-weight: bold; line-height: 1.6; }
.gh-stat-body { flex: 1 1 auto; min-width: 0; }
.gh-stat-what { color: #B0A48E; font-size: 13px; line-height: 1.6; }
.gh-stat-use { color: #8A8070; font-size: 12px; line-height: 1.7; margin-top: 2px; }
.gh-stat-tip {
  color: #B0A48E; font-size: 12px; line-height: 1.9; margin-top: 16px;
  padding: 11px 13px; background: #1E1810; border-radius: 6px; border-left: 3px solid #8B2941;
}
.gh-stat-tip b { color: #E8DCC0; font-weight: bold; }
.gh-stat-gates { display: flex; flex-direction: column; gap: 7px; }
.gh-stat-gate {
  color: #8A8070; font-size: 12px; line-height: 1.65;
  padding-left: 10px; border-left: 2px solid #3A3026;
}
.gh-stat-gate b { color: #C9B27A; font-weight: bold; margin-right: 8px; }

/* ==== 异兽真名注音（ruby 头顶拼音，2026-09-13）==== */
ruby { ruby-position: over; }
ruby > rt { display: block; font-size: .58em; line-height: 1.05; color: rgba(201,178,122,.95); letter-spacing: .3px; text-align: center; font-style: normal; }
.codex-card-name rt, .dt-codex-name rt, .gh-beast-name rt, .gm-board-name rt, .gm-friend-row-name rt, .duel-pick-nm rt, .duel-pick rt, .gh-story-name rt { font-size: .55em; }
#dtName rt { font-size: .42em; letter-spacing: 1px; }
