/* =============================================================
   GAME圈 — 說明中心 / 常見問題 / 更新日誌（/help、/changelog）
   亮 / 暗色一律使用 app.css 的 CSS 變數
   ============================================================= */

.tile-brand { background: var(--gq-grad); }
.icon-tile-xl { width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; }
@media (min-width: 768px) { .icon-tile-xl { width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; } }

/* ---------- 麵包屑 ---------- */
.help-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--gq-muted); margin-bottom: .9rem; min-width: 0; }
.help-crumb a { color: var(--gq-muted); font-weight: 600; }
.help-crumb a:hover { color: var(--gq-primary); }
.help-crumb .bi-chevron-right { font-size: .62rem; opacity: .55; }
.help-crumb [aria-current] { color: var(--gq-text-2); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 首頁 Hero ---------- */
.help-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 2rem 1.1rem 3.4rem; border-radius: 28px;
  background: var(--gq-surface); border: 1px solid var(--gq-border);
}
.help-hero::before, .help-hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.help-hero::before { width: 320px; height: 320px; left: -110px; top: -140px; background: rgba(124, 108, 255, .22); }
.help-hero::after { width: 300px; height: 300px; right: -100px; bottom: -170px; background: rgba(255, 122, 176, .2); }
.help-hero > * { position: relative; z-index: 1; }
.help-hero h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; margin: .85rem 0 .5rem; line-height: 1.2; }
.help-hero-sub { color: var(--gq-text-2); max-width: 560px; margin: 0 auto; line-height: 1.7; font-size: .98rem; }
.help-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--gq-primary-soft); color: var(--gq-primary); font-size: .8rem; font-weight: 800; }
.help-hero-deco span { position: absolute; font-size: 1.6rem; opacity: .9; animation: helpFloat 5s ease-in-out infinite; }
.help-hero-deco span:nth-child(1) { left: 7%; top: 30%; }
.help-hero-deco span:nth-child(2) { right: 8%; top: 18%; animation-delay: -1.6s; }
.help-hero-deco span:nth-child(3) { right: 18%; bottom: 22%; font-size: 1.2rem; animation-delay: -3.2s; }
@media (max-width: 575.98px) { .help-hero-deco span:nth-child(1), .help-hero-deco span:nth-child(3) { display: none; } .help-hero-deco span:nth-child(2) { right: 5%; top: 10%; font-size: 1.3rem; } }
@keyframes helpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 搜尋 ---------- */
.help-searchbar { position: relative; z-index: 20; max-width: 720px; margin: -1.85rem auto 0; }
@media (max-width: 991.98px) {
  .help-searchbar { position: sticky; top: var(--help-sticky-top, 61px); padding: .45rem 0; margin-top: -2.3rem; }
  .help-searchbar::before {
    content: ''; position: absolute; left: -.75rem; right: -.75rem; top: 0; bottom: 0; z-index: -1;
    background: var(--gq-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--gq-border); opacity: 0; transition: opacity .15s ease;
  }
  .help-searchbar.is-stuck::before { opacity: 1; }
  .help-searchbar.is-stuck .help-search input { box-shadow: none; }
}
.help-search { position: relative; display: flex; align-items: center; margin: 0; }
.help-search input {
  width: 100%; min-width: 0; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--gq-border-strong); border-radius: 999px;
  background: var(--gq-surface); color: var(--gq-text);
  padding: .8rem 2.8rem .8rem 2.85rem; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help-search input::placeholder { color: var(--gq-muted); }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.help-search input:focus { outline: 0; border-color: var(--gq-primary); box-shadow: 0 0 0 4px rgba(var(--gq-primary-rgb), .16); }
.help-search-hero input { padding-top: .95rem; padding-bottom: .95rem; font-size: 1.02rem; box-shadow: var(--gq-shadow-lg); }
.help-search-hero input:focus { box-shadow: 0 0 0 4px rgba(var(--gq-primary-rgb), .16), var(--gq-shadow-lg); }
.help-search-icon { position: absolute; left: 1.1rem; color: var(--gq-muted); pointer-events: none; }
.help-search-compact input { padding: .6rem 1rem .6rem 2.5rem; font-size: .9rem; background: var(--gq-surface); }
.help-search-compact .help-search-icon { left: .95rem; font-size: .9rem; }
.help-search-clear { position: absolute; right: .55rem; width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: transparent; color: var(--gq-muted); display: grid; place-items: center; }
.help-search-clear:hover { color: var(--gq-text); background: var(--gq-surface-3); }
.help-hot { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; max-width: 720px; margin: .8rem auto 0; padding: 0 .1rem .15rem; }
.help-hot::-webkit-scrollbar { display: none; }
.help-hot .chip { flex: none; background: var(--gq-surface); border: 1px solid var(--gq-border); color: var(--gq-text-2); }
.help-hot .chip:hover { color: var(--gq-primary); border-color: rgba(var(--gq-primary-rgb), .35); }
.help-hot-label { flex: none; font-size: .75rem; font-weight: 700; color: var(--gq-muted); }
@media (min-width: 768px) { .help-hot { flex-wrap: wrap; justify-content: center; } }

/* ---------- 共用列表列 ---------- */
.help-list { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.help-list > li { margin: 0; }
.help-list > li + li, .help-list > .help-row + .help-row { border-top: 1px solid var(--gq-border); }
.help-row { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; color: var(--gq-text); transition: background-color .12s ease; }
.help-row:hover { background: var(--gq-surface-2); color: var(--gq-text); }
.help-row:hover .help-row-go { color: var(--gq-primary); transform: translateX(2px); }
.help-row-title { display: block; font-weight: 700; line-height: 1.45; }
.help-row-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; color: var(--gq-muted); line-height: 1.55; margin-top: .1rem; }
.help-row-cat { flex: none; font-size: .72rem; font-weight: 700; color: var(--gq-muted); background: var(--gq-surface-3); padding: .18rem .55rem; border-radius: 999px; }
.help-row-go { flex: none; color: var(--gq-muted); transition: transform .15s ease, color .15s ease; }
.help-row-num { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gq-primary-soft); color: var(--gq-primary); font-weight: 800; font-size: .9rem; }
.help-row mark, .help-row-title mark { background: rgba(255, 176, 32, .32); color: inherit; padding: 0 .08em; border-radius: 4px; }

/* ---------- 搜尋結果 ---------- */
.help-results { max-width: 820px; margin: 1.5rem auto 0; }
.help-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.help-results-count { font-size: .82rem; color: var(--gq-muted); font-weight: 600; flex: none; }
.help-empty { text-align: center; padding: 2.25rem 1.25rem; }
.help-empty-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; }
.help-empty h3 { font-size: 1.05rem; font-weight: 800; }
.help-empty p { color: var(--gq-muted); font-size: .9rem; max-width: 420px; margin: 0 auto 1rem; }

/* ---------- 分類卡片 ---------- */
.help-section { margin-top: 2rem; }
.help-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
@media (min-width: 768px) { .help-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .help-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.help-cat-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 1rem; border-radius: 20px; background: var(--gq-surface); border: 1px solid var(--gq-border);
  box-shadow: var(--gq-shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.help-cat-card:hover { transform: translateY(-2px); box-shadow: var(--gq-shadow-lg); border-color: rgba(var(--gq-primary-rgb), .25); }
.help-cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.help-cat-num { font-size: .72rem; font-weight: 700; color: var(--gq-muted); background: var(--gq-surface-3); padding: .15rem .5rem; border-radius: 999px; }
.help-cat-title { font-size: 1rem; font-weight: 800; margin: .75rem 0 .25rem; letter-spacing: -.01em; }
.help-cat-title a { color: var(--gq-text); }
.help-cat-desc { font-size: .8rem; color: var(--gq-muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-cat-links { display: none; list-style: none; padding: .7rem 0 0; margin: .7rem 0 0; border-top: 1px dashed var(--gq-border-strong); }
.help-cat-links li + li { margin-top: .3rem; }
.help-cat-links a { position: relative; z-index: 2; display: block; padding-left: .85rem; font-size: .84rem; font-weight: 600; color: var(--gq-text-2); line-height: 1.45; }
.help-cat-links a::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gq-primary); opacity: .5; }
.help-cat-links a:hover { color: var(--gq-primary); }
@media (min-width: 768px) {
  .help-cat-card { padding: 1.15rem; }
  .help-cat-desc { -webkit-line-clamp: 3; font-size: .84rem; }
  .help-cat-links { display: block; }
}
/* 3 欄時，最後一張（常見問題）橫跨整列，變成橫幅 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .help-cat-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; background: var(--gq-grad-soft), var(--gq-surface); }
  .help-cat-card:last-child:nth-child(3n + 1) .help-cat-top { order: 0; }
  .help-cat-card:last-child:nth-child(3n + 1) .help-cat-title { margin: 0 0 .15rem; }
}

/* ---------- 熱門教學 ---------- */
.help-popular { list-style: none; padding: .35rem; margin: 0; }
.help-popular li a { display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; border-radius: 14px; color: var(--gq-text); }
.help-popular li a:hover { background: var(--gq-surface-2); }
.help-popular li a:hover .help-row-go { color: var(--gq-primary); transform: translateX(2px); }
.help-popular-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: .85rem; background: var(--gq-surface-3); color: var(--gq-text-2); }
.help-popular li:nth-child(-n + 3) .help-popular-num { background: var(--gq-grad); color: #fff; }

/* ---------- FAQ accordion ---------- */
.help-faq-list { overflow: hidden; }
.help-faq + .help-faq { border-top: 1px solid var(--gq-border); }
.help-faq { scroll-margin-top: 90px; }
.help-faq > summary {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .95rem 1.1rem; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; color: var(--gq-text);
  transition: background-color .12s ease;
}
.help-faq > summary::-webkit-details-marker { display: none; }
.help-faq > summary:hover { background: var(--gq-surface-2); }
.help-faq > summary:focus-visible { outline: 2px solid var(--gq-primary); outline-offset: -2px; border-radius: 12px; }
.help-faq > summary .bi { flex: none; color: var(--gq-muted); transition: transform .2s ease; }
.help-faq[open] > summary .bi { transform: rotate(180deg); color: var(--gq-primary); }
.help-faq[open] > summary { color: var(--gq-primary); }
.help-faq-a { padding: 0 1.1rem 1rem; font-size: .95rem; }
.help-faq-a > :last-child { margin-bottom: 0; }
.help-faq.is-flash > summary { animation: helpFlash 1.8s ease; }
@keyframes helpFlash { 0%, 30% { background: rgba(var(--gq-primary-rgb), .16); } 100% { background: transparent; } }
.help-faq-link { display: inline-flex; align-items: center; gap: .2rem; margin-top: .5rem; padding: 0; border: 0; background: none; color: var(--gq-muted); font-size: .8rem; font-weight: 600; }
.help-faq-link:hover { color: var(--gq-primary); }
.help-faq-tools { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.help-faq-tools [data-help-expand] { flex: none; white-space: nowrap; } /* app.css 沒有 .flex-none（只在 member.css） */
.help-faq-groups { display: flex; flex: 1; min-width: 0; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.help-faq-groups::-webkit-scrollbar { display: none; }
.help-faq-groups .chip { flex: none; }
.help-faq-group { margin-bottom: 1.5rem; scroll-margin-top: 84px; }
.help-faq-group-title { font-size: 1.02rem; font-weight: 800; margin: 0 0 .6rem; }

/* ---------- 更新日誌卡片（首頁） ---------- */
.help-log-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.25rem; color: var(--gq-text); background: var(--gq-grad-soft), var(--gq-surface); transition: transform .15s ease, box-shadow .15s ease; }
.help-log-card:hover { color: var(--gq-text); transform: translateY(-2px); box-shadow: var(--gq-shadow-lg); }
.help-log-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--gq-muted); font-weight: 600; }
.help-log-label { font-size: .78rem; font-weight: 800; color: var(--gq-primary); margin-top: .35rem; }
.help-log-title { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.help-log-sum { font-size: .88rem; color: var(--gq-text-2); line-height: 1.65; margin-bottom: .5rem; }
.help-version { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--gq-grad); padding: .16rem .6rem; border-radius: 999px; letter-spacing: .02em; }

/* ---------- 聯絡我們 CTA ---------- */
.help-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.25rem; border-radius: 22px; border: 1px solid var(--gq-border);
  background: linear-gradient(135deg, rgba(124, 108, 255, .1), rgba(255, 122, 176, .1)), var(--gq-surface);
}
.help-contact-emoji { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: var(--gq-surface); box-shadow: var(--gq-shadow); }
.help-contact-title { font-size: 1.1rem; font-weight: 900; margin: 0 0 .2rem; }
.help-contact p { color: var(--gq-text-2); font-size: .9rem; line-height: 1.6; }
.help-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; }
.help-contact-actions .btn { display: inline-flex; align-items: center; gap: .35rem; }
.help-contact-mail { font-size: .8rem; font-weight: 600; color: var(--gq-muted); margin-left: .25rem; }
.help-contact-mail:hover { color: var(--gq-primary); }
@media (min-width: 992px) {
  .help-contact.help-contact-wide { flex-wrap: nowrap; padding: 1.4rem 1.6rem; }
  .help-contact.help-contact-wide .help-contact-actions { width: auto; flex: none; }
}
.help-contact-stack { align-items: flex-start; }

/* ---------- 側欄 ---------- */
.help-aside { display: grid; gap: .8rem; }
.help-aside-label { font-size: .75rem; font-weight: 800; color: var(--gq-muted); letter-spacing: .04em; margin: .25rem 0 -.3rem .2rem; }
.help-cat-nav { display: grid; gap: .15rem; }
.help-cat-nav a { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 12px; color: var(--gq-text-2); font-weight: 600; font-size: .9rem; min-width: 0; }
.help-cat-nav a:hover { background: var(--gq-surface-3); color: var(--gq-text); }
.help-cat-nav a.active { background: var(--gq-surface); color: var(--gq-text); box-shadow: var(--gq-shadow); border: 1px solid var(--gq-border); }
.help-cat-count { flex: none; font-size: .7rem; font-weight: 700; color: var(--gq-muted); background: var(--gq-surface-3); border-radius: 999px; padding: .05rem .45rem; }
.help-aside-cat { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--gq-text); margin-top: .25rem; }
.help-aside-cat:hover { color: var(--gq-primary); }
.help-toc { display: grid; border-left: 2px solid var(--gq-border); margin-left: .65rem; }
.help-toc a { display: block; padding: .38rem .8rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.45; color: var(--gq-text-2); }
.help-toc a:hover { color: var(--gq-primary); }
.help-toc a.active { color: var(--gq-primary); border-left-color: var(--gq-primary); font-weight: 700; }
.help-aside-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--gq-muted); margin-top: .25rem; }
.help-aside-back:hover { color: var(--gq-primary); }

/* 手機：可收合目錄 */
.help-mtoc { background: var(--gq-surface); border: 1px solid var(--gq-border); border-radius: 16px; margin-bottom: .85rem; }
.help-mtoc > summary { display: flex; align-items: center; gap: .6rem; padding: .7rem .95rem; font-weight: 700; font-size: .92rem; list-style: none; cursor: pointer; }
.help-mtoc > summary::-webkit-details-marker { display: none; }
.help-mtoc > summary .bi-chevron-down { color: var(--gq-muted); transition: transform .2s ease; }
.help-mtoc[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.help-mtoc .help-toc { margin: 0 1rem .5rem 1.35rem; }
.help-mtoc .help-aside-back { margin: .35rem 0 .5rem .8rem; }

/* ---------- 分類頁 Header ---------- */
.help-cat-hero { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; margin-bottom: 1rem; border-radius: 24px; background: var(--gq-grad-soft), var(--gq-surface); border: 1px solid var(--gq-border); }
.help-cat-hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 .25rem; }
.help-cat-hero p { color: var(--gq-text-2); margin: 0 0 .45rem; line-height: 1.65; font-size: .93rem; }
@media (min-width: 768px) { .help-cat-hero { padding: 1.5rem 1.75rem; gap: 1.25rem; } }
.help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-size: .8rem; color: var(--gq-muted); font-weight: 600; }
.help-meta .bi { margin-right: .2rem; }
.help-cat-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.75rem 1rem; padding: 0 .75rem .15rem; }
.help-cat-chips::-webkit-scrollbar { display: none; }
.help-cat-chips .chip { flex: none; }

/* ---------- 文章 ---------- */
.help-article { padding: 1.35rem 1.1rem 1.2rem; }
@media (min-width: 768px) { .help-article { padding: 2rem 2.25rem 1.75rem; } }
.help-article-cat { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--gq-primary); background: var(--gq-primary-soft); padding: .25rem .7rem; border-radius: 999px; }
.help-article-cat:hover { background: var(--gq-primary); color: #fff; }
.help-article-head h1 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.25; margin: .7rem 0 .55rem; }
.help-lead { font-size: 1.02rem; color: var(--gq-text-2); line-height: 1.75; margin-bottom: .65rem; }
.help-onpage { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .75rem .85rem; margin: 1.1rem 0 .25rem; border-radius: 16px; background: var(--gq-surface-2); border: 1px solid var(--gq-border); }
.help-onpage-label { font-size: .75rem; font-weight: 800; color: var(--gq-muted); margin-right: .15rem; }
.help-onpage a { font-size: .8rem; font-weight: 600; color: var(--gq-text-2); background: var(--gq-surface); border: 1px solid var(--gq-border); padding: .2rem .6rem; border-radius: 999px; }
.help-onpage a:hover { color: var(--gq-primary); border-color: rgba(var(--gq-primary-rgb), .35); }

/* 內文排版 */
.help-body { font-size: 1rem; line-height: 1.85; color: var(--gq-text-2); overflow-wrap: anywhere; }
.help-body h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; color: var(--gq-text); margin: 2rem 0 .8rem; scroll-margin-top: 84px; line-height: 1.4; }
.help-body h2::before { content: ''; flex: none; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gq-grad); }
.help-article > .help-body > :first-child { margin-top: 1.25rem; }
.help-body p, .help-body ul, .help-body ol { margin-bottom: .95rem; }
.help-body ul, .help-body ol { padding-left: 1.3rem; }
.help-body li { margin: .25rem 0; }
.help-body li::marker { color: var(--gq-primary); }
.help-body strong { color: var(--gq-text); }
.help-body a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--gq-primary-rgb), .35); text-underline-offset: 3px; }
.help-body a:hover { text-decoration-color: var(--gq-primary); }
.help-body code { background: var(--gq-surface-3); color: var(--gq-text); padding: .1rem .38rem; border-radius: 6px; font-size: .86em; overflow-wrap: anywhere; }
.help-body kbd { display: inline-block; min-width: 1.6em; text-align: center; background: var(--gq-surface); color: var(--gq-text); border: 1px solid var(--gq-border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 .38rem; font-size: .78em; font-family: inherit; font-weight: 700; line-height: 1.6; box-shadow: none; }
.help-body hr { border-color: var(--gq-border-strong); opacity: 1; }

/* 步驟 */
.help-body .help-steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .6rem; }
.help-steps > li { counter-increment: step; position: relative; margin: 0; padding: .85rem 1rem .85rem 3.3rem; border-radius: 16px; background: var(--gq-surface-2); border: 1px solid var(--gq-border); line-height: 1.7; }
.help-steps > li::before {
  content: counter(step); position: absolute; left: .85rem; top: .85rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gq-grad); color: #fff; font-weight: 800; font-size: .85rem; line-height: 1;
  box-shadow: 0 3px 10px rgba(var(--gq-primary-rgb), .3);
}
.help-steps > li:not(:last-child)::after { content: ''; position: absolute; left: calc(.85rem + .875rem - 1px); top: 2.85rem; bottom: -.7rem; width: 2px; background: rgba(var(--gq-primary-rgb), .18); z-index: 0; }
.help-steps > li > strong:first-child { display: block; color: var(--gq-text); font-size: 1rem; margin-bottom: .1rem; }

/* 提示 / 注意 */
.help-tip, .help-note { position: relative; margin: 1.1rem 0; padding: .9rem 1rem .9rem 2.9rem; border-radius: 16px; font-size: .94rem; line-height: 1.7; }
.help-tip::before, .help-note::before { position: absolute; left: .95rem; top: .88rem; font-size: 1.05rem; line-height: 1.5; }
.help-tip { background: rgba(34, 199, 169, .11); border: 1px solid rgba(34, 199, 169, .22); }
.help-tip::before { content: '💡'; }
.help-note { background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .26); }
.help-note::before { content: '⚠️'; }
.help-tip > strong:first-child, .help-note > strong:first-child { display: block; color: var(--gq-text); margin-bottom: .1rem; }

/* 操作路徑 */
.help-path { background: var(--gq-primary-soft); color: var(--gq-primary); font-weight: 700; font-size: .9em; padding: .12rem .5rem; border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* 表格 */
.help-body .table-responsive { margin: .5rem 0 1.15rem; border: 1px solid var(--gq-border); border-radius: 14px; }
.help-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; margin: 0; }
.help-table th { background: var(--gq-surface-2); color: var(--gq-text); font-weight: 800; font-size: .8rem; text-align: left; padding: .65rem .8rem; white-space: nowrap; }
.help-table td { padding: .65rem .8rem; border-top: 1px solid var(--gq-border); vertical-align: top; color: var(--gq-text-2); }
.help-table td .bi { color: var(--gq-primary); font-size: 1.1rem; }
.help-table .type-badge { margin: 0; }
.help-md-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--gq-text); }
.help-md-table td:nth-child(2) { min-width: 9.5rem; }
.help-md-table ul, .help-md-table ol { padding-left: 1.1rem; margin: 0; }
.help-md-h2 { font-size: 1.15rem; font-weight: 800; color: var(--gq-text); }
.help-md-h3 { font-size: 1.02rem; font-weight: 800; color: var(--gq-text); }
.help-md-h4 { font-size: .95rem; font-weight: 800; color: var(--gq-text); }
.help-md-quote { margin: 0; padding: .1rem 0 .1rem .7rem; border-left: 3px solid var(--gq-primary); color: var(--gq-muted); }
.help-md-pre { margin: 0; padding: .45rem .65rem; border-radius: 10px; background: var(--gq-surface-3); font-size: .82rem; }
.help-md-pre code { background: none; padding: 0; }
.help-md-mention { color: var(--gq-primary); font-weight: 700; }
.help-kbd-hint { margin-top: .3rem; font-size: .75rem; color: var(--gq-muted); }
.help-formula { margin: .5rem 0 1rem; padding: 1rem; border-radius: 16px; text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--gq-text); background: var(--gq-grad-soft); }

/* 動態區塊 */
.help-chip-grid, .help-ach-grid, .help-reason-grid { display: grid; gap: .6rem; margin: .5rem 0 1.15rem; }
.help-chip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.help-ach-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-bottom: 0; }
.help-reason-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.help-chip-card, .help-ach, .help-reason { padding: .75rem .85rem; border-radius: 16px; background: var(--gq-surface-2); border: 1px solid var(--gq-border); line-height: 1.5; }
.help-chip-card { display: flex; align-items: flex-start; gap: .7rem; }
.help-chip-emoji { font-size: 1.4rem; line-height: 1.2; }
.help-ach { display: flex; align-items: center; gap: .75rem; }
.help-ach-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--gq-surface); box-shadow: var(--gq-shadow); }
.help-ach-name { display: block; font-weight: 800; color: var(--gq-text); }
.help-ach-desc { display: block; font-size: .84rem; color: var(--gq-muted); }
.help-ach-badge { font-size: .65rem; font-weight: 800; color: #fff; background: var(--gq-grad); border-radius: 999px; padding: .05rem .42rem; vertical-align: 2px; }
.help-reason { display: grid; gap: .15rem; font-size: .88rem; }
.help-reason strong { color: var(--gq-text); }
.help-reason.is-high { border-color: rgba(255, 77, 94, .35); }
.help-reason-flag { font-size: .65rem; font-weight: 800; color: #e0303f; background: rgba(255, 77, 94, .14); border-radius: 999px; padding: .05rem .42rem; vertical-align: 2px; }
[data-bs-theme="dark"] .help-reason-flag { color: #ff8a95; }
.help-points { font-weight: 800; color: #0f9b82; background: rgba(34, 199, 169, .14); padding: .1rem .55rem; border-radius: 999px; white-space: nowrap; }
[data-bs-theme="dark"] .help-points { color: #4fe0c4; }
.help-level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .5rem; margin: .5rem 0 1.15rem; }
.help-level { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .7rem .8rem; border-radius: 14px; background: var(--gq-surface-2); border: 1px solid var(--gq-border); }
.help-level .lv-badge { font-size: .78rem; }
.help-level-need { font-size: .84rem; font-weight: 700; color: var(--gq-text); }

/* 文末 FAQ */
.help-article-faq { margin-top: 2rem; }
.help-article-faq h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; margin: 0 0 .8rem; scroll-margin-top: 84px; }
.help-article-faq h2::before { content: ''; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gq-grad); }
.help-article-faq .help-faq { border: 1px solid var(--gq-border); border-radius: 14px; background: var(--gq-surface-2); margin-bottom: .5rem; overflow: hidden; }
.help-article-faq .help-faq + .help-faq { border-top: 1px solid var(--gq-border); }
.help-article-faq .help-faq > summary:hover { background: var(--gq-surface-3); }

/* 回饋 */
.help-feedback { margin-top: 2rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--gq-surface-2); border: 1px dashed var(--gq-border-strong); }
.help-feedback-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.help-feedback [data-help-vote][aria-pressed="true"] { background: var(--gq-primary); color: #fff; }
.help-feedback-thanks, .help-feedback-more { margin: .65rem 0 0; font-size: .9rem; color: var(--gq-text-2); }

/* 上一篇 / 下一篇 */
.help-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.help-pager-link { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; color: var(--gq-text); transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.help-pager-link:hover { color: var(--gq-text); border-color: rgba(var(--gq-primary-rgb), .4); transform: translateY(-1px); }
.help-pager-link.is-next { grid-column: 2; text-align: right; align-items: flex-end; }
.help-pager-dir { font-size: .75rem; font-weight: 700; color: var(--gq-muted); }
.help-pager-title { font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 相關文章 */
.help-related { margin-top: 1.75rem; }
.help-related-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: .85rem; }
@media (min-width: 768px) { .help-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.help-related-card { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; color: var(--gq-text); transition: border-color .15s ease, transform .15s ease; }
.help-related-card:hover { color: var(--gq-text); border-color: rgba(var(--gq-primary-rgb), .4); transform: translateY(-1px); }
.help-related-card .icon-tile { margin-top: .1rem; }

/* ---------- 更新日誌 ---------- */
.help-log-hero { margin-bottom: 1.5rem; }
.help-timeline { position: relative; padding-left: 1.5rem; }
.help-timeline::before { content: ''; position: absolute; left: .4rem; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: var(--gq-border-strong); }
.help-timeline-item { position: relative; margin-bottom: 1.25rem; scroll-margin-top: 84px; }
.help-timeline-dot { position: absolute; left: calc(-1.5rem + .4rem - 7px + 1px); top: 1.55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gq-surface); border: 3px solid var(--gq-primary); }
.help-timeline-dot.is-latest { background: var(--gq-primary); box-shadow: 0 0 0 5px rgba(var(--gq-primary-rgb), .18); }
.help-log-entry { padding: 1.3rem 1.15rem; }
@media (min-width: 768px) { .help-log-entry { padding: 1.6rem 1.8rem; } }
.help-log-entry-head h2 { font-size: clamp(1.25rem, 4.5vw, 1.5rem); font-weight: 900; letter-spacing: -.01em; margin: .4rem 0 .45rem; }
.help-latest { font-size: .7rem; font-weight: 800; color: #fff; background: var(--gq-accent); padding: .14rem .55rem; border-radius: 999px; }
.help-log-date { font-size: .82rem; font-weight: 600; color: var(--gq-muted); }
.help-log-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 800; margin: 1.4rem 0 .6rem; }
.help-log-n { font-size: .72rem; font-weight: 700; color: var(--gq-muted); background: var(--gq-surface-3); border-radius: 999px; padding: .05rem .45rem; }
.help-log-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.help-log-group li { position: relative; padding-left: 1.05rem; line-height: 1.7; color: var(--gq-text-2); font-size: .95rem; }
.help-log-group li::before { content: ''; position: absolute; left: .15rem; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gq-primary); opacity: .55; }
.help-log-more { display: inline-flex; vertical-align: -3px; font-size: 1.15rem; line-height: 1; color: var(--gq-primary); }
.help-upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.help-upcoming li { display: flex; align-items: flex-start; gap: .7rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .help-hero-deco span { animation: none; }
  .help-cat-card, .help-log-card, .help-pager-link, .help-related-card, .help-row-go { transition: none; }
}

/* 手機：Markdown 速查表改成卡片，不用左右滑動 */
@media (max-width: 575.98px) {
  .help-body .table-responsive:has(.help-md-table) { border: 0; border-radius: 0; overflow: visible; }
  .help-md-table thead { display: none; }
  .help-md-table, .help-md-table tbody { display: block; }
  .help-md-table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: .75rem .85rem; margin-bottom: .55rem; border: 1px solid var(--gq-border); border-radius: 14px; background: var(--gq-surface-2); }
  .help-md-table td { display: block; border: 0; padding: 0; min-width: 0 !important; }
  .help-md-table td:first-child { font-size: .95rem; }
  .help-md-table td:nth-child(2)::before, .help-md-table td:nth-child(3)::before { display: block; font-size: .7rem; font-weight: 800; color: var(--gq-muted); margin-bottom: .15rem; }
  .help-md-table td:nth-child(2)::before { content: '輸入'; }
  .help-md-table td:nth-child(3)::before { content: '顯示'; }
  .help-md-table td:nth-child(3) { padding-top: .4rem; border-top: 1px dashed var(--gq-border-strong); }
}
