/* ===== 欧博（ABG）游戏规则页主题 — 深黑金，与全站搭配 ===== */
html { -webkit-text-size-adjust: 100%; }
body {
  background: #000 !important;
  background-image: radial-gradient(ellipse 62% 30% at 50% 0%, rgba(211,184,137,.10), transparent) !important;
  color: #e8dcc2 !important;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}
.gamerule-wrapper { padding: 0 0 40px; }

/* ---- 顶部导航 ---- */
.ob-top {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,8,4,.97);
  border-bottom: 1px solid rgba(211,184,137,.45);
  padding: 10px 14px 8px;
}
.ob-top-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ob-brand img { height: 30px; }
.ob-brand span { color: #D3B889; font-size: 15px; letter-spacing: 2px; font-weight: 700; white-space: nowrap; }
.ob-top-btns { margin-left: auto; display: flex; gap: 8px; }
.ob-btn {
  display: inline-block; padding: 7px 18px; border-radius: 20px;
  background: linear-gradient(180deg,#e2c28a,#d0aa5f); color: #000;
  font-size: 13.5px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  letter-spacing: 1px; white-space: nowrap;
}
.ob-btn.ghost { background: transparent; color: #D3B889; border: 1px solid rgba(211,184,137,.55); }
.ob-btn:hover { filter: brightness(1.08); }

/* ---- 游戏导航（单行横向滑动，不折行） ---- */
.ob-games {
  max-width: 1160px; margin: 12px auto 0; display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(211,184,137,.4) transparent;
}
.ob-games::-webkit-scrollbar { height: 5px; }
.ob-games::-webkit-scrollbar-thumb { background: rgba(211,184,137,.4); border-radius: 3px; }
.ob-game {
  display: inline-block; padding: 6px 15px; border-radius: 18px;
  border: 1px solid rgba(211,184,137,.5); color: #D3B889; background: rgba(38,29,16,.5);
  font-size: 13px; text-decoration: none; white-space: nowrap;
}
.ob-game:hover { background: rgba(211,184,137,.15); }
.ob-game.active { background: linear-gradient(180deg,#e2c28a,#d0aa5f); color: #000; font-weight: 700; }

/* ---- 关键词自然融入段 ---- */
.ob-lead, .ob-tail {
  max-width: 1100px; margin: 18px auto 0; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(38,29,16,.92), rgba(16,12,7,.95));
  border: 1px solid rgba(211,184,137,.4); border-radius: 10px;
  color: #e8dcc2; font-size: 14px; line-height: 1.9;
}
.ob-lead { margin-top: 0; }
.ob-tail { margin-top: 22px; }

/* ---- 内容区 ---- */
.gamerule-content { max-width: 1100px; margin: 26px auto 0; padding: 0 16px; }
.gamerule-content .container { width: auto; max-width: none; }
.gamerule-content .container.debug { background: transparent; }
.gamerule-content section { background: transparent; }
.gamerule-content h1, .gamerule-content h2 { color: #D3B889 !important; }
.gamerule-content h2 strong, .gamerule-content h2 span { color: #D3B889 !important; }
.gamerule-content h3, .gamerule-content h4 { color: #D3B889; }
.gamerule-content p { color: #e8dcc2; font-size: 14.5px; line-height: 1.9; }
.gamerule-content li { color: #e8dcc2; font-size: 14.5px; line-height: 1.9; }
.gamerule-content hr { border-color: rgba(211,184,137,.35); }
.gamerule-content table {
  background: rgba(38,29,16,.55) !important; border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto;
}
.gamerule-content th { background: #1a1408; color: #D3B889; font-weight: 700; }
.gamerule-content td, .gamerule-content th {
  border: 1px solid rgba(211,184,137,.3) !important; padding: 8px 12px; color: #e8dcc2;
}
.gamerule-content td { background: transparent !important; }
.gamerule-content .atlas { max-width: 100%; }
.gamerule-content .col-lg-4, .gamerule-content .col-lg-6, .gamerule-content .col-lg-12 { padding-left: 10px; padding-right: 10px; }
.gamerule-content .row { margin-left: -10px; margin-right: -10px; }

/* ---- 底部 ---- */
.ob-foot {
  max-width: 1100px; margin: 34px auto 0; padding: 18px 16px 0;
  border-top: 1px solid rgba(211,184,137,.3); text-align: center;
}
.ob-foot .line1 { color: #D3B889; font-size: 14px; letter-spacing: 1.5px; }
.ob-foot .line2 { color: #a8966d; font-size: 12.5px; margin-top: 8px; line-height: 1.8; }
.ob-foot a { color: #D3B889; text-decoration: none; }
.ob-foot a:hover { text-decoration: underline; }

/* ---- 手机适配 ---- */
@media (max-width: 768px) {
  .ob-top-inner { gap: 6px; }
  .ob-brand span { font-size: 13px; }
  .ob-btn { padding: 6px 14px; font-size: 12.5px; }
  .ob-games { gap: 6px; }
  .ob-game { padding: 5px 12px; font-size: 12px; }
  .gamerule-content p, .gamerule-content li { font-size: 13.5px; }
  .gamerule-content td, .gamerule-content th { padding: 6px 8px; font-size: 13px; }
}

.ob-foot-btns { margin-top: 14px; }
.ob-foot-btns .ob-btn { font-size: 12.5px; padding: 6px 16px; }
