/* ==========================================================================
   Category FAQ  ·  分类页「常见问题」模块
   --------------------------------------------------------------------------
   站点：zencart22.com（Zen Cart 2.x / 模板 ts_modern）
   位置：分类页产品列表下方（页面内容区末尾）
   数据：wooxit_seo_page_content.faq_json 且 page_type=category（与 head 的 FAQPage 同源）
   作用域：全部 .pf- 前缀

   版式：杂志式左右分栏
   ┌──────────────────────────────────────────────────────────┐
   │ ───── 整幅细线 ─────                                       │
   │ CARE & DETAILS            │  ─────────────────────────    │
   │ Frequently asked questions│  What metals…              −  │
   │ (Playfair 40)             │  answer…                      │
   │ 一句说明                   │  ─────────────────────────    │
   │ STILL UNSURE?             │  How do I find…            +  │
   │ Talk to us →              │  ─────────────────────────    │
   └──────────────────────────────────────────────────────────┘
   左栏 380 + 间距 90 + 右栏自适应；<1200 收窄，<992 堆叠。

   零 JS：用原生 <details>，答案始终在 DOM 里（SEO 可抓），点击只是展开。

   关于 !important：
   本站有一条 div, p, span, li { color: … !important } 的全局规则，
   会覆盖组件内部文字颜色，所以关键颜色/字号全部用 .pf 前缀抬特异性 + !important。
   ========================================================================== */

.pf {
    display: block;
    position: relative;
    width: 100%;
    margin: 64px 0 80px;
    padding: 52px 0 0;
    border-top: 1px solid rgba(33, 37, 41, .14);
    box-sizing: border-box;
    font-family: Montserrat, "Montserrat Fallback", -apple-system, "Segoe UI", Arial, sans-serif;
    text-align: left;
}

.pf *,
.pf *::before,
.pf *::after { box-sizing: border-box; }

.pf-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    column-gap: 90px;
    align-items: start;
}

/* ---- 左栏：刊头 ---- */
.pf .pf-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.pf .pf-side .pf-eyebrow {
    display: block;
    margin: 0 0 18px;
    font-family: Montserrat, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .28em !important;
    text-transform: uppercase;
    color: #9a7b2e !important;
}

.pf .pf-side h2.pf-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    max-width: 340px;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: .005em !important;
    text-transform: none !important;
    color: #212529 !important;
}

.pf .pf-side .pf-deck {
    margin: 20px 0 0 !important;
    max-width: 300px;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #6b6b6b !important;
}

/* 联系入口：细金线上方，克制的一行 */
.pf .pf-side .pf-help {
    margin: 34px 0 0 !important;
    padding: 20px 0 0;
    border-top: 1px solid rgba(33, 37, 41, .14);
    width: 100%;
    max-width: 300px;
}

.pf .pf-side .pf-help-label {
    display: block;
    margin: 0 0 8px;
    font-family: Montserrat, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: .24em !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    color: #8a8378 !important;
}

.pf .pf-side .pf-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Montserrat, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: .01em !important;
    color: #9a7b2e !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

.pf .pf-side .pf-help-link:hover { color: #7c6122 !important; }

.pf .pf-side .pf-help-link:focus-visible {
    outline: 2px solid #9a7b2e;
    outline-offset: 3px;
}

.pf .pf-side .pf-arrow {
    display: inline-block;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: transform .2s ease;
}

.pf .pf-side .pf-help-link:hover .pf-arrow { transform: translateX(3px); }

/* ---- 右栏：问答 ---- */
.pf .pf-list {
    min-width: 0;
}

.pf .pf-item {
    display: block;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(33, 37, 41, .14);
}

.pf .pf-item:first-of-type { border-top: 0; }

.pf .pf-item:last-of-type {
    border-bottom: 1px solid rgba(33, 37, 41, .14);
}

.pf .pf-item > summary.pf-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin: 0;
    padding: 28px 0;
    cursor: pointer;
    list-style: none;
}

.pf .pf-item > summary.pf-q::-webkit-details-marker { display: none; }

.pf .pf-item > summary.pf-q .pf-q-text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    letter-spacing: .005em !important;
    color: #212529 !important;
    transition: color .2s ease;
}

.pf .pf-item > summary.pf-q:hover .pf-q-text { color: #9a7b2e !important; }

.pf .pf-item > summary.pf-q:focus-visible {
    outline: 2px solid #9a7b2e;
    outline-offset: 2px;
}

/* ---- 加减号 ---- */
.pf .pf-ico {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.pf .pf-ico::before,
.pf .pf-ico::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #9a7b2e;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
}

.pf .pf-ico::before { width: 18px; height: 1px; }
.pf .pf-ico::after  { width: 1px; height: 18px; }

.pf .pf-item[open] .pf-ico::after { opacity: 0; }

/* ---- 答案 ---- */
.pf .pf-item .pf-a {
    max-width: 700px;
    margin: 0;
    padding: 0 0 30px;
    font-family: Montserrat, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: #6b6b6b !important;
}

.pf .pf-item .pf-a p { margin: 0 0 12px; }
.pf .pf-item .pf-a p:last-child { margin-bottom: 0; }

.pf .pf-item[open] .pf-a {
    animation: pf-fade 200ms ease-out both;
}

@keyframes pf-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   深色主题（本站默认深色）
   ========================================================================== */
html[data-theme="dark"] .pf,
html[data-bs-theme="dark"] .pf,
body.dark-mode .pf,
body.theme-dark .pf,
.theme-dark .pf {
    border-top-color: rgba(248, 249, 250, .13);
    background: radial-gradient(720px 240px at 4% 0%, rgba(212, 175, 55, .05), rgba(212, 175, 55, 0) 68%);
}

html[data-theme="dark"] .pf .pf-side .pf-eyebrow,
html[data-bs-theme="dark"] .pf .pf-side .pf-eyebrow,
body.dark-mode .pf .pf-side .pf-eyebrow,
body.theme-dark .pf .pf-side .pf-eyebrow,
.theme-dark .pf .pf-side .pf-eyebrow { color: #d4af37 !important; }

html[data-theme="dark"] .pf .pf-side h2.pf-title,
html[data-bs-theme="dark"] .pf .pf-side h2.pf-title,
body.dark-mode .pf .pf-side h2.pf-title,
body.theme-dark .pf .pf-side h2.pf-title,
.theme-dark .pf .pf-side h2.pf-title { color: #f8f9fa !important; }

html[data-theme="dark"] .pf .pf-side .pf-deck,
html[data-bs-theme="dark"] .pf .pf-side .pf-deck,
body.dark-mode .pf .pf-side .pf-deck,
body.theme-dark .pf .pf-side .pf-deck,
.theme-dark .pf .pf-side .pf-deck { color: #b9b0a4 !important; }

html[data-theme="dark"] .pf .pf-side .pf-help,
html[data-bs-theme="dark"] .pf .pf-side .pf-help,
body.dark-mode .pf .pf-side .pf-help,
body.theme-dark .pf .pf-side .pf-help,
.theme-dark .pf .pf-side .pf-help { border-top-color: rgba(248, 249, 250, .13); }

html[data-theme="dark"] .pf .pf-side .pf-help-label,
html[data-bs-theme="dark"] .pf .pf-side .pf-help-label,
body.dark-mode .pf .pf-side .pf-help-label,
body.theme-dark .pf .pf-side .pf-help-label,
.theme-dark .pf .pf-side .pf-help-label { color: #8d8478 !important; }

html[data-theme="dark"] .pf .pf-side .pf-help-link,
html[data-bs-theme="dark"] .pf .pf-side .pf-help-link,
body.dark-mode .pf .pf-side .pf-help-link,
body.theme-dark .pf .pf-side .pf-help-link,
.theme-dark .pf .pf-side .pf-help-link { color: #d4af37 !important; }

html[data-theme="dark"] .pf .pf-side .pf-help-link:hover,
html[data-bs-theme="dark"] .pf .pf-side .pf-help-link:hover,
body.dark-mode .pf .pf-side .pf-help-link:hover,
body.theme-dark .pf .pf-side .pf-help-link:hover,
.theme-dark .pf .pf-side .pf-help-link:hover { color: #e8c96a !important; }

html[data-theme="dark"] .pf .pf-item,
html[data-bs-theme="dark"] .pf .pf-item,
body.dark-mode .pf .pf-item,
body.theme-dark .pf .pf-item,
.theme-dark .pf .pf-item { border-top-color: rgba(248, 249, 250, .13); }

html[data-theme="dark"] .pf .pf-item:last-of-type,
html[data-bs-theme="dark"] .pf .pf-item:last-of-type,
body.dark-mode .pf .pf-item:last-of-type,
body.theme-dark .pf .pf-item:last-of-type,
.theme-dark .pf .pf-item:last-of-type { border-bottom-color: rgba(248, 249, 250, .13); }

html[data-theme="dark"] .pf .pf-item > summary.pf-q .pf-q-text,
html[data-bs-theme="dark"] .pf .pf-item > summary.pf-q .pf-q-text,
body.dark-mode .pf .pf-item > summary.pf-q .pf-q-text,
body.theme-dark .pf .pf-item > summary.pf-q .pf-q-text,
.theme-dark .pf .pf-item > summary.pf-q .pf-q-text { color: #f8f9fa !important; }

html[data-theme="dark"] .pf .pf-item > summary.pf-q:hover .pf-q-text,
html[data-bs-theme="dark"] .pf .pf-item > summary.pf-q:hover .pf-q-text,
body.dark-mode .pf .pf-item > summary.pf-q:hover .pf-q-text,
body.theme-dark .pf .pf-item > summary.pf-q:hover .pf-q-text,
.theme-dark .pf .pf-item > summary.pf-q:hover .pf-q-text { color: #e0c083 !important; }

html[data-theme="dark"] .pf .pf-item .pf-a,
html[data-bs-theme="dark"] .pf .pf-item .pf-a,
body.dark-mode .pf .pf-item .pf-a,
body.theme-dark .pf .pf-item .pf-a,
.theme-dark .pf .pf-item .pf-a { color: #b9b0a4 !important; }

html[data-theme="dark"] .pf .pf-ico::before,
html[data-theme="dark"] .pf .pf-ico::after,
html[data-bs-theme="dark"] .pf .pf-ico::before,
html[data-bs-theme="dark"] .pf .pf-ico::after,
body.dark-mode .pf .pf-ico::before,
body.dark-mode .pf .pf-ico::after,
body.theme-dark .pf .pf-ico::before,
body.theme-dark .pf .pf-ico::after,
.theme-dark .pf .pf-ico::before,
.theme-dark .pf .pf-ico::after { background: #d4af37; }

html[data-theme="dark"] .pf .pf-item > summary.pf-q:focus-visible,
html[data-bs-theme="dark"] .pf .pf-item > summary.pf-q:focus-visible,
body.dark-mode .pf .pf-item > summary.pf-q:focus-visible,
body.theme-dark .pf .pf-item > summary.pf-q:focus-visible,
.theme-dark .pf .pf-item > summary.pf-q:focus-visible { outline-color: #d4af37; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1199px) {
    .pf-grid { grid-template-columns: 300px minmax(0, 1fr); column-gap: 56px; }
    .pf .pf-side h2.pf-title { font-size: 34px !important; }
    .pf .pf-item > summary.pf-q .pf-q-text { font-size: 18px !important; }
}

@media (max-width: 991px) {
    .pf {
        margin: 44px 0 56px;
        padding-top: 36px;
    }

    .pf-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 34px;
    }

    .pf .pf-side .pf-eyebrow { margin-bottom: 14px; }

    .pf .pf-side h2.pf-title {
        font-size: 30px !important;
        line-height: 1.24 !important;
        max-width: none;
    }

    .pf .pf-side .pf-deck {
        margin-top: 14px !important;
        max-width: none;
        font-size: 13.5px !important;
    }

    .pf .pf-side .pf-help {
        margin-top: 22px !important;
        padding-top: 16px;
        max-width: none;
    }

    .pf .pf-item > summary.pf-q {
        gap: 16px;
        padding: 22px 0;
    }

    .pf .pf-item > summary.pf-q .pf-q-text {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .pf .pf-ico { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; }
    .pf .pf-ico::before { width: 16px; }
    .pf .pf-ico::after  { height: 16px; }

    .pf .pf-item .pf-a {
        padding-bottom: 24px;
        font-size: 13.5px !important;
        line-height: 1.8 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf .pf-item > summary.pf-q .pf-q-text,
    .pf .pf-ico::before,
    .pf .pf-ico::after,
    .pf .pf-side .pf-help-link,
    .pf .pf-side .pf-arrow { transition: none !important; }
    .pf .pf-item[open] .pf-a { animation: none !important; }
}
