/* 問題導向教學頁（2026-10-28）：help.html、how.html 共用；配 wrongbook.css 的 .wb-card／.wb-btn／.wb-note */
.hw-tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.hw-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.hw-tabs button .wbi { width: 20px; height: 20px; }
.hw-tabs button.on { color: var(--cow-wine); border-bottom-color: var(--cow-wine); }
.hw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hw-list[hidden] { display: none; }
.hq { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; min-height: 44px; }
.hq:hover { border-color: var(--cow-wine); }
.hq b { font-size: 1.02rem; line-height: 1.4; }
.hq-f { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--cow-wine); }
.hq-f .wbi { width: 14px; height: 14px; }
.hq small { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.hq-go { margin-top: auto; align-self: flex-start; font-size: .85rem; font-weight: 700; color: #fff; background: var(--cow-wine); border-radius: 999px; padding: 6px 14px; }
.hw-head { margin: 4px 0 12px; }
.hw-head h1 { margin: 6px 0 4px; font-size: 1.6rem; color: var(--cow-wine); }
.hw-one { margin: 0 0 8px; color: var(--ink-soft); font-size: 1rem; }
.hw-back { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--cow-wine); text-decoration: none; min-height: 32px; }
.hw-backic { transform: rotate(180deg); width: 14px; height: 14px; }
.hw-video { margin: 0 0 16px; }
.hw-video video { width: 100%; max-width: 300px; display: block; margin: 0 auto 4px; border-radius: 18px; background: #000; aspect-ratio: 390 / 844; }
.hw-video .wb-note { text-align: center; }
.hw-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hw-steps li { display: flex; gap: 12px; align-items: flex-start; }
.hw-n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--cow-wine); color: #fff; font-weight: 800; display: grid; place-items: center; }
.hw-st { flex: 1; min-width: 0; }
.hw-st p { margin: 6px 0 8px; font-size: 1.02rem; line-height: 1.6; }
.hw-shot { margin: 0; }
.hw-shot img { display: block; width: 100%; max-width: 300px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(60, 22, 29, .35); }
.hw-shot figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.hw-noshot { max-width: 300px; aspect-ratio: 390 / 844; max-height: 260px; border-radius: 16px; border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; background: #fff; }
.hw-try { margin: 18px 0; }
.hw-trybtn { display: flex; justify-content: center; gap: 8px; font-size: 1.05rem; padding: 14px 18px; border-radius: 14px; text-decoration: none; }
.hw-stuck ul { margin: 6px 0 0; padding-left: 1.3em; line-height: 1.7; }
.hw-rel h3, .hw-stuck h3 { margin: 0 0 8px; color: var(--cow-wine); }
.hw-rel { margin-top: 18px; }
.hw-rel .hw-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 720px) {
  .hw-steps li { align-items: center; }
  .hw-shot img, .hw-noshot { max-width: 260px; }
}
/* 拍照 8 個要領（原 photo-guide.html 併入 how.html?f=add-photo） */
.pg-sec { margin: 22px 0 10px; }
.pg-sec h2 { color: var(--cow-wine); font-size: 1.3rem; margin: 0 0 6px; }
.pg-rule { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 12px 0; box-shadow: var(--shadow); }
@media (max-width: 640px) { .pg-rule { grid-template-columns: 1fr; } }
.pg-rule h3 { margin: 0 0 6px; color: var(--cow-wine); font-size: 1.06rem; }
.pg-rule p { margin: 4px 0; font-size: .94rem; line-height: 1.75; }
.pg-rule .ok { color: var(--green); font-weight: 700; } .pg-rule .no { color: var(--red); font-weight: 700; }
.pg-pics { display: flex; gap: 8px; justify-content: center; }
.pg-pics figure { margin: 0; text-align: center; font-size: .8rem; color: var(--ink-soft); }
.pg-pics svg { width: 96px; height: 120px; display: block; }
.pg-sum { background: var(--cow-pink-soft); border: 2px solid var(--cow-pink-line); border-radius: 16px; padding: 12px 18px; margin: 10px 0; }
.pg-sum ol { margin: 6px 0; padding-left: 1.4em; line-height: 1.85; }
.hw-allh { margin: 28px 0 4px; font-size: 1.2rem; color: var(--cow-wine, #5c222b); display: flex; align-items: center; gap: 6px; scroll-margin-top: 70px; }   /* 乙 15：help.html 下半「所有功能教學」 */
