/* =========================================================
   大富电玩 · 机台详情页样式（games/*.html 共用）
   依赖 css/style.css 的变量与导航
   ========================================================= */
.game-detail { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }

/* 面包屑 */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.9; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.crumb span { margin: 0 6px; opacity: .5; }

/* 标题区 */
.detail-hero {
  width: 100%; max-height: 560px; object-fit: contain;
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  display: block; margin-bottom: 24px;
  background: #171009;
}
.detail-title {
  font-size: 36px; font-weight: 900; color: var(--gold);
  margin-bottom: 8px; letter-spacing: 1px; line-height: 1.3;
}
.detail-tag { color: var(--gold-soft); font-size: 14px; margin-bottom: 18px; line-height: 1.8; }

/* 参数卡片 */
.game-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.meta-chip {
  flex: 1; min-width: 120px; text-align: center;
  background: rgba(255,200,61,.06); border: 1px solid rgba(255,200,61,.2);
  border-radius: var(--radius); padding: 14px 10px;
}
.meta-chip b { display: block; font-size: 18px; color: var(--gold); margin-bottom: 2px; }
.meta-chip span { font-size: 13px; color: var(--muted); }

/* 正文块 */
.sec-h {
  font-size: 20px; color: var(--gold); font-weight: 800;
  margin: 34px 0 14px; padding-left: 12px; position: relative;
}
.sec-h::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(255,200,61,.5);
}
.detail-desc {
  color: var(--cream); line-height: 1.95; font-size: 16px;
  background: rgba(255,200,61,.06); border: 1px solid rgba(255,200,61,.18);
  border-radius: var(--radius); padding: 20px 22px;
}
.detail-desc p { margin-bottom: 16px; }
.detail-desc p:last-child { margin-bottom: 0; }
.detail-desc b { color: var(--gold); }

/* 玩法步骤 */
.how-list { list-style: none; counter-reset: how; }
.how-list li {
  counter-increment: how; position: relative;
  padding: 14px 18px 14px 54px; margin-bottom: 10px;
  background: rgba(255,200,61,.05); border: 1px solid rgba(255,200,61,.15);
  border-radius: 12px; line-height: 1.85; font-size: 15px; color: var(--cream);
}
.how-list li::before {
  content: counter(how);
  position: absolute; left: 16px; top: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #1c1308; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.how-list li b { color: var(--gold); }

/* 建议 */
.tips-list { list-style: none; }
.tips-list li {
  padding: 12px 16px 12px 34px; margin-bottom: 8px; position: relative;
  border-left: 2px solid rgba(255,200,61,.35); line-height: 1.85;
  font-size: 15px; color: var(--cream); background: rgba(255,255,255,.02);
  border-radius: 0 8px 8px 0;
}
.tips-list li::before {
  content: "·"; position: absolute; left: 14px; top: 12px;
  color: var(--gold); font-weight: 900; font-size: 20px; line-height: 1;
}

/* 声明 */
.notice {
  margin-top: 28px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,200,61,.22);
  color: var(--muted); font-size: 13px; line-height: 1.9;
}

/* CTA */
.detail-cta { text-align: center; margin: 34px 0 10px; }

/* 相关机台 */
.related { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,200,61,.15); }
.related h2 { font-size: 20px; color: var(--gold); margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-item {
  display: block; text-decoration: none; text-align: center;
  background: rgba(255,200,61,.05); border: 1px solid rgba(255,200,61,.18);
  border-radius: 12px; padding: 10px; transition: .2s;
}
.rel-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.rel-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; display: block; margin-bottom: 8px;
  background: linear-gradient(135deg, #3a2a12, #5a3f17);
}
.rel-item span { color: var(--cream); font-size: 13px; line-height: 1.4; display: block; }
.rel-item small {
  display: block; margin-top: 3px;
  font-size: 11.5px; color: var(--muted); letter-spacing: .3px;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); text-decoration: none; font-size: 14px;
}
.back-link:hover { opacity: .8; }

/* 说明书图集 */
.gallery { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,200,61,.15); }
.gal-sub { font-size: 13px; color: var(--muted); margin: -4px 0 18px; line-height: 1.7; }
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gal-item {
  display: block; text-decoration: none; border-radius: 12px; overflow: hidden;
  background: rgba(255,200,61,.05); border: 1px solid rgba(255,200,61,.18);
  transition: .22s; position: relative;
}
.gal-item:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.gal-box {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; background: #171009; overflow: hidden;
}
.gal-box { padding: 10px; }
.gal-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; border-radius: 4px; }
.gal-cap {
  display: block; padding: 10px 12px; font-size: 13px; line-height: 1.55;
  color: var(--cream); border-top: 1px solid rgba(255,200,61,.12);
}
.gal-item::after {
  content: "点击看大图"; position: absolute; top: 8px; right: 8px;
  font-size: 11px; color: var(--gold); background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,200,61,.35); border-radius: 20px;
  padding: 2px 8px; opacity: 0; transition: .2s;
}
.gal-item:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .game-detail { padding: 20px 16px 48px; }
  .detail-title { font-size: 27px; }
  .detail-desc { font-size: 15px; padding: 16px 18px; }
  .detail-hero { margin-bottom: 18px; max-height: 320px; }
  .sec-h { font-size: 18px; margin: 28px 0 12px; }
  .how-list li, .tips-list li { font-size: 14.5px; }
  .gal-grid { gap: 10px; }
  .gal-cap { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 560px) {
  .game-meta { gap: 8px; flex-wrap: nowrap; }
  .meta-chip { min-width: 0; flex: 1 1 0; padding: 10px 4px; }
  .meta-chip b { font-size: 15px; }
  .meta-chip span { font-size: 11px; }
  .detail-title { font-size: 23px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-box { aspect-ratio: 4 / 3; }
}

/* ===== 深度内容页新增：导语速览 / 常见问题 ===== */
.detail-lead {
  color: var(--cream);
  font-size: 16.5px;
  line-height: 1.9;
  margin: 18px 0 4px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 200, 61, .1);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-list { display: block; width: 100%; }
.faq-item {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  background: rgba(255, 200, 61, .05);
  border: 1px solid rgba(255, 200, 61, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.6;
  box-sizing: border-box;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.35;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a {
  padding: 0 18px 16px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .detail-lead { font-size: 15px; padding: 14px 16px; }
  .faq-q { font-size: 14.5px; padding: 13px 15px; }
  .faq-a { font-size: 14px; padding: 0 15px 14px; }
}

/* 图集：去掉 figure 默认外边距 */
figure.gal-item { margin: 0; }

/* 修复：图集宽图撑破 grid 列导致整页横向溢出 */
.gal-grid { min-width: 0; }
.gal-item { min-width: 0; max-width: 100%; }
.gal-box { min-width: 0; max-width: 100%; }
.gal-box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
body { overflow-x: hidden; }

/* 根治：grid 列最小宽度用 0，避免宽图撑破布局 */
.gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal-box { width: 100%; }
.gal-box img { width: 100%; height: auto; max-width: 100%; display: block; }
@media (max-width: 560px) {
  .gal-grid { grid-template-columns: minmax(0, 1fr); }
}
