/* ============================================================
 * Holy Bible Knowledge Portal — 移动端样式
 *
 * 测试视口 375 / 390px。单栏、无横向溢出、点击区域充足、表格可横向滚动。
 * 在 bible.css 之后加载，仅覆盖布局相关规则。
 * ============================================================ */

:root { --hb-gap: 20px; }

body.hb { font-size: 16px; line-height: 1.65; }

.hb-wrap { width: calc(100% - 32px); }

/* 列表页：单栏、卡片铺满、元数据自然换行 */
.hb-layout { gap: 24px; }
.hb-page-title { font-size: 1.9rem; }
.hb-entry { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
.hb-list-compact .hb-entry { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
.hb-entry-cover { min-height: 84px; }
.hb-list-compact .hb-entry-cover { min-height: 76px; }
.hb-entry-title { font-size: 18px; }
.hb-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
.hb-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header：Logo + 搜索 + 折叠菜单 */
.hb-header { position: static; }
.hb-header-inner { display: flex; flex-wrap: nowrap; min-height: 58px; gap: 10px; }
.hb-logo-text { font-size: 15px; }
.hb-menu-toggle { display: block; order: 1; }
.hb-logo { order: 2; }
.hb-header-tools { order: 3; margin-left: auto; }
.hb-search { display: none; }
.hb-lang { font-size: 12px; }
.hb-lang-toggle { padding: 5px 8px; }
.hb-lang-menu { min-width: 152px; }

.hb-nav {
  display: none;
  order: 4;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  border-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
}
.hb-nav.is-open { display: flex; }
.hb-nav a { padding: 12px 4px; border-bottom: 1px solid var(--hb-line); font-size: 15px; }
.hb-nav a:last-child { border-bottom: 0; }
.hb-nav-more { width: 100%; }
.hb-nav-more > summary { padding: 12px 4px; border-bottom: 1px solid var(--hb-line); font-size: 15px; }
.hb-nav-more > summary::after { margin-left: 4px; }
.hb-nav-more-menu { position: static; min-width: 0; margin: 0; padding: 6px 0 8px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.hb .hb-nav-more-menu a { padding: 10px 4px; border-bottom: 1px solid var(--hb-line); }

.hb-hero { padding: 44px 0 36px; }
.hb-hero h1 { font-size: 2rem; }
.hb-hero p.lead { font-size: 17px; }
.hb-hero-search { flex-direction: column; }
.hb-hero-search input { width: 100%; }
.hb-hero-search .hb-btn { width: 100%; }
.hb-hero-popular { line-height: 2; }

.hb-intro { padding-top: 32px; }
.hb-intro h1 { font-size: 1.85rem; }
.hb-intro p { font-size: 16px; }

.hb-grid-3, .hb-grid-2, .hb-grid-4 { grid-template-columns: 1fr; }
.hb-feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
.hb-feature h2 { font-size: 22px; }

.hb-layout { grid-template-columns: 1fr; gap: 24px; }
.hb-side { position: static; grid-template-columns: 1fr; }

.hb-article { padding: 22px 18px; border-radius: 10px; }
.hb-article h1 { font-size: 1.7rem; }
.hb-meta { gap: 10px 16px; }
.hb-summary { padding: 14px 16px; font-size: 16px; }
.hb-prose { font-size: 17px; line-height: 1.75; }
.hb-prose h2 { font-size: 21px; margin-top: 32px; }
.hb-prose table { display: block; overflow-x: auto; white-space: nowrap; }
.hb-facts { grid-template-columns: 1fr; gap: 10px; }
.hb-postnav { grid-template-columns: 1fr; }
.hb-related-links { grid-template-columns: 1fr; }
.hb-toc { padding: 16px; }

.hb-list-item { padding: 18px; }
.hb-list-item h2 { font-size: 18px; }
.hb-directory { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hb-tile { padding: 14px; font-size: 14px; }

.hb-cta { flex-direction: column; align-items: flex-start; padding: 24px; margin: 32px 0; }
.hb-cta h2 { font-size: 20px; }

.hb-footer { padding: 32px 0 24px; margin-top: 40px; }
.hb-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
.hb-footer-bottom { flex-direction: column; gap: 6px; }

.hb-pagination .page-link { padding: 8px 10px; }
.hb-to-top { right: 14px; bottom: 14px; }

/* 移动端折叠目录：摘要后折叠面板由模板的 <details> 提供 */
.hb-toc-mobile { margin-bottom: 20px; }
.hb-toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--hb-navy); padding: 10px 0; }
