/* ============================================================
   FAQ 页面
   Source: main.css lines 4620-4684
   ============================================================ */

/* ============================================================
   FAQ PAGE — 对应 Figma 设计稿  v3.3.56
   ============================================================ */

/* Hero */
.faq-hero { position: relative; padding: 0; } /* display/height/grid controlled by .inner-page-hero */
.faq-hero__bg { position: absolute; inset: 0; z-index: 0; }
.faq-hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.faq-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(13,27,42,.80) 0%, rgba(13,27,42,.55) 100%); } /* design: dark blue-grey overlay */
.faq-hero__inner { position: relative; z-index: 2; } /* padding/width/grid-row controlled by .inner-page-hero__inner */
.faq-hero__eyebrow { color: var(--color-accent); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: none; margin-bottom: 12px; } /* design: mixed-case */
.faq-hero__title { font-size: clamp(2.5rem, 3.5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 12px; }
.faq-hero__desc { color: rgba(255,255,255,.55); font-size: 1rem; max-width: 520px; }

/* FAQ Body */
.faq-body { background: #f9f9f9; }
.faq-body__inner { max-width: 860px; margin: 0 auto; }

/* Search */
.faq-search { position: relative; margin-bottom: 32px; }
.faq-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.faq-search__input { width: 100%; padding: 14px 16px 14px 46px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; background: #fff; color: var(--color-primary); outline: none; transition: border-color .2s, box-shadow .2s; }
.faq-search__input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(76,175,80,.12); }
.faq-search__input::placeholder { color: #aaa; }

/* Tabs */
.faq-tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 32px; border-bottom: 2px solid #e8e8e8; padding-bottom: 0; }
.faq-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 16px; font-size: .9rem; font-weight: 500; color: #666; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; border-radius: 4px 4px 0 0; }
.faq-tab:hover { color: var(--color-accent); }
.faq-tab--active { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 700; background: rgba(76,175,80,.06); }

/* Panels */
.faq-panel { display: none; }
.faq-panel--active { display: block; }
.faq-panel__title { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e8e8e8; }

/* FAQ accordion items */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.faq-item__q { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 500; color: var(--color-primary); font-size: .95rem; line-height: 1.4; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__num { font-size: .8rem; font-weight: 700; color: var(--color-accent); background: rgba(76,175,80,.1); padding: 2px 8px; border-radius: 4px; flex-shrink: 0; white-space: nowrap; }
.faq-item__q > span:nth-child(2) { flex: 1; }
.faq-item__chevron { flex-shrink: 0; transition: transform .2s; color: #999; }
details[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { padding: 0 20px 16px 20px; }
.faq-item__a p { font-size: .9rem; color: #555; line-height: 1.7; margin: 0 0 8px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a ul { padding-left: 1.4em; margin: 8px 0; }
.faq-item__a li { font-size: .88rem; color: #555; line-height: 1.8; }
.faq-item__a a { color: var(--color-accent); text-decoration: underline; }

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-tabs { gap: 2px; }
    .faq-tab { font-size: .8rem; padding: 8px 10px; }
    /* hero height/padding controlled by .inner-page-hero mobile rules in base.min.css */
    .faq-item__q { font-size: .88rem; }
    .faq-hero__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}



/* ============================================================
   FAQ Page v2 Mobile
   Source: main.css lines 8254-8462
   ============================================================ */

/* ============================================================
   FAQ Page v2 - UIPro mobile design (375px)
   Frame ID: 1432:7012
   ============================================================ */

/* ─── Hero (compact, 208px design height) ────────────────────── */
.faq-v2-hero {
    /* bg-image to be added later; display/height controlled by .inner-page-hero (grid) */
    position: relative;
    overflow: hidden;
}
.faq-v2-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6,32,59,.6) 0%, rgba(6,32,59,.88) 100%);
    z-index: 0;
}
.faq-v2-hero__inner {
    /* padding/width/grid-row controlled by .inner-page-hero__inner */
    position: relative;
    z-index: 1;
}
.faq-v2-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.faq-v2-hero__eyebrow-line { display: inline-block; width: 24px; height: 1px; background: var(--color-accent); }
.faq-v2-hero__title {
    font-size: clamp(22px,5vw,36px);
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
    margin: 0 0 8px;
}
.faq-v2-hero__subtitle { font-size: 14px; color: rgba(255,255,255,.6); margin: 0; line-height: 1.55; }

/* ─── Body wrapper ───────────────────────────────────────────── */
.faq-v2-body {
    padding: 16px 240px 40px;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* ─── Search bar ─────────────────────────────────────────────── */
.faq-v2-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.faq-v2-search img { width: 20px; height: 20px; flex-shrink: 0; opacity: .5; }
.faq-v2-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-sans);
}
.faq-v2-search__input::placeholder { color: var(--color-muted); }

/* ─── Category tab strip ─────────────────────────────────────── */
.faq-v2-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 16px;
}
.faq-v2-tabs::-webkit-scrollbar { display: none; }
.faq-v2-tab {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
}
.faq-v2-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.faq-v2-tab--active { background: #06203b; color: #fff; border-color: #06203b; }

/* ─── FAQ panel (section container) ─────────────────────────── */
.faq-v2-panel { display: none; }
.faq-v2-panel--active { display: block; }
.faq-v2-panel__container {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-v2-panel__heading {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0;
    padding: 4px 0;
}

/* ─── Individual FAQ item (accordion row) ────────────────────── */
.faq-v2-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.faq-v2-item__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    -webkit-appearance: none;
}
.faq-v2-item__summary::-webkit-details-marker { display: none; }
.faq-v2-item__num {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    flex-shrink: 0;
    min-width: 28px;
}
.faq-v2-item__question {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}
.faq-v2-item__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform .2s;
    opacity: .6;
}
.faq-v2-item[open] .faq-v2-item__chevron { transform: rotate(180deg); opacity: 1; }
.faq-v2-item[open] .faq-v2-item__summary { border-bottom: 1px solid var(--color-border); }
.faq-v2-item__answer {
    padding: 14px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-muted);
}
.faq-v2-item__answer p { margin: 0 0 10px; }
.faq-v2-item__answer p:last-child { margin-bottom: 0; }
.faq-v2-item__answer ul { margin: 8px 0 10px 18px; display: flex; flex-direction: column; gap: 4px; }
.faq-v2-item__answer li { line-height: 1.6; }
.faq-v2-item__answer strong, .faq-v2-item__answer b { color: var(--color-text); }
.faq-v2-item__answer a { color: var(--color-accent); }

/* ─── Search: show all panels when searching ─────────────────── */
.faq-v2-body--searching .faq-v2-panel { display: block; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    /* faq-v2-hero height/padding controlled by .inner-page-hero */
    .faq-v2-body { padding: 24px 240px 56px; }
}
@media (min-width: 1100px) {
    .faq-v2-body {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 32px;
        align-items: start;
    }
    .faq-v2-search { grid-column: 1 / -1; }
    .faq-v2-tabs {
        flex-direction: column;
        overflow-x: visible;
        margin-bottom: 0;
        gap: 6px;
    }
    .faq-v2-tab { text-align: left; }
    .faq-v2-panel--active,
    .faq-v2-body--searching .faq-v2-panel { display: block; }
}


