/* 常見問題頁：沿用數位觀點與分類頁的主視覺，本檔只處理問答版面。 */

/* 左側說明欄與右側問答清單 */
.qa_layout { display: grid; grid-template-columns: minmax(170px, .26fr) minmax(0, .74fr); gap: clamp(30px, 5vw, 95px); padding: 0 var(--insights_gutter) 110px; }
@media (max-width: 1000px) {
    .qa_layout { grid-template-columns: minmax(150px, .3fr) minmax(0, .7fr); gap: 32px; }
}
@media (max-width: 640px) {
    .qa_layout { display: flex; flex-direction: column-reverse; gap: 50px; padding-bottom: 60px; }
}

/* 左側說明欄：桌機黏在畫面上，手機移到問答之後 */
.qa_aside { min-width: 0; padding-top: 25px; }
.qa_aside_sticky { position: sticky; top: 110px; }
.qa_aside .insights_eyebrow { font-size: 9px; color: var(--insights_accent); }
.qa_aside_text { margin: 0; font-size: 13px; line-height: 2; letter-spacing: .05em; color: var(--insights_muted); }
.qa_aside_cta { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; font-size: 13px; letter-spacing: .08em; }
.qa_aside_cta i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--insights_line); border-radius: 50%; font: normal 18px/1 'Arial', sans-serif; transition: color .3s, background .3s, border-color .3s; }
.qa_aside_cta:hover i, .qa_aside_cta:focus-visible i { background: var(--insights_ink); border-color: var(--insights_ink); color: #fafaf8; }
@media (max-width: 640px) {
    .qa_aside { padding: 28px 0 0; border-top: 1px solid var(--insights_line); }
    .qa_aside_sticky { position: static; }
    .qa_aside_text br { display: none; }
}

/* 問答清單 */
.qa_collection { min-width: 0; }
.qa_list { border-top: 1px solid var(--insights_line); }
.qa_item { border-bottom: 1px solid var(--insights_line); }

/* 問題列：序號、問題文字、展開圖示 */
.qa_question { display: grid; grid-template-columns: 46px minmax(0, 1fr) 36px; align-items: start; gap: 18px; padding: 30px 0; cursor: pointer; list-style: none; transition: color .25s; }
.qa_question::-webkit-details-marker { display: none; }
.qa_question:hover { color: var(--insights_accent); }
.qa_question:focus-visible { outline: 2px solid var(--insights_accent); outline-offset: 4px; }
.qa_number { padding-top: 6px; font: 400 11px/1.6 'Manrope', sans-serif; letter-spacing: .12em; color: var(--insights_accent); }
.qa_question_text { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.65; letter-spacing: .05em; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .qa_question { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 10px; padding: 22px 0; }
    .qa_question_text { font-size: 16px; }
}

/* 展開圖示：圓框內的十字，展開後轉成減號 */
.qa_toggle { position: relative; width: 36px; height: 36px; border: 1px solid var(--insights_line); border-radius: 50%; transition: background .3s, border-color .3s; }
.qa_toggle::before, .qa_toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.22,.68,.2,1); }
.qa_toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa_item[open] .qa_toggle { background: var(--insights_ink); border-color: var(--insights_ink); color: #fafaf8; }
.qa_item[open] .qa_toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (max-width: 640px) {
    .qa_toggle { width: 30px; height: 30px; }
    .qa_toggle::before, .qa_toggle::after { width: 10px; }
}

/* 答案：與問題文字對齊，展開時淡入 */
.qa_answer { max-width: 760px; padding: 0 54px 34px 64px; font-size: 14px; line-height: 2.05; letter-spacing: .04em; color: var(--insights_muted); overflow-wrap: anywhere; }
.qa_item[open] .qa_answer { animation: qa_answer_in .45s cubic-bezier(.22,.68,.2,1); }
@media (max-width: 640px) {
    .qa_answer { padding: 0 0 26px 40px; font-size: 14px; }
}
@keyframes qa_answer_in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .qa_item[open] .qa_answer { animation: none; }
}
