/* qa 畫面樣板 style.css */
.faq-page {
    padding: 64px 0 80px;
    background: #fffbf5;
}
.faq-category {
    margin-bottom: 48px;
}
.faq-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f59e0b;
    padding: 14px 22px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.faq-cat-header i {
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.faq-cat-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
}
.faq-page .faq-item {
    background: #fff;
    border: 1px solid #e8dfc8;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-page .faq-q {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    transition: color .2s;
}
.faq-page .faq-q .faq-arrow {
    font-size: 16px;
    color: #f59e0b;
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-page .faq-q.open .faq-arrow {
    transform: rotate(180deg);
}

/* 用 grid 的 1fr <-> 0fr 做高度動畫，不需要 JS 量 scrollHeight，
   內容多長都能順暢展開收合 */
.faq-page .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1);
}
.faq-page .faq-a.open {
    grid-template-rows: 1fr;
}
.faq-page .faq-a-inner {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.85;
    overflow: hidden;
    /* 收合時 padding 一起收，避免最後一刻內容跳動 */
    padding: 0 20px;
    transition: padding-bottom .32s cubic-bezier(.4, 0, .2, 1);
}
.faq-page .faq-a.open .faq-a-inner {
    padding-bottom: 16px;
}
/* 使用者偏好減少動態時關閉動畫 */
@media (prefers-reduced-motion: reduce) {
    .faq-page .faq-a,
    .faq-page .faq-a-inner,
    .faq-page .faq-q .faq-arrow {
        transition: none;
    }
}