/* ==========================================================================
   Ice Card FAQ 手风琴（v7.8.1 批次⑤ D1）
   手机 390px 优先；桌面居中单栏（max 820）。圆形 +/−，缓慢展开，可多条同时展开。
   ========================================================================== */

.icecard-faq {
    --icf-blue: #0284c7;
    --icf-blue-light: #0ea5e9;
    --icf-ink: #0f172a;
    --icf-muted: #64748b;
    --icf-line: #e2e8f0;
    color: var(--icf-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    max-width: 720px;
    margin: 36px auto 0;
    padding: 0 16px 8px;
}
.icecard-faq *,
.icecard-faq *::before,
.icecard-faq *::after { box-sizing: border-box; }

.icf-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--icf-ink);
}
.icf-subtitle {
    margin: 0 0 14px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--icf-muted);
}

.icf-list {
    border-top: 1px solid var(--icf-line);
}
.icf-item { border-bottom: 1px solid var(--icf-line); }

.icf-q-wrap { margin: 0; }
.icf-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 14px 8px;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--icf-ink);
    text-align: left;
    /* v7.8.2：去掉手机 WebView 默认黄色点按高亮/双击缩放延迟/文字选中菜单，点击更跟手 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color .15s ease;
}
/* 点按反馈：极浅品牌蓝底，替代默认黄块 */
.icf-q:active { background: rgba(14, 165, 233, .07); }
.icf-item.is-open .icf-q { background: transparent; }
/* 键盘可达性：鼠标/触摸不显示焦点框，仅键盘 Tab 聚焦时显示品牌蓝框 */
.icf-q:focus { outline: none; }
.icf-q:focus-visible {
    outline: 2px solid var(--icf-blue-light);
    outline-offset: 2px;
}
.icf-q-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* 圆形 +/− 图标：默认加号，展开时竖杠旋转 90° 变 × 视觉的减号 */
.icf-icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}
.icf-icon::before,
.icf-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--icf-blue);
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, background .2s ease;
}
.icf-icon::before { width: 10px; height: 1.8px; }
.icf-icon::after  { width: 1.8px; height: 10px; }
.icf-item.is-open .icf-icon {
    border-color: var(--icf-blue-light);
    background: #f0f9ff;
}
.icf-item.is-open .icf-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.icf-a {
    max-height: 0;
    overflow: hidden;
    /* v7.8.2：ease-out 曲线，点按即快速展开、收尾自然，消除"拖拽不跟手"感 */
    transition: max-height .26s cubic-bezier(.22, 1, .36, 1);
}
.icf-a-inner {
    padding: 0 8px 15px;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
}
.icf-a-inner p { margin: 0 0 8px; }
.icf-a-inner p:last-child { margin-bottom: 0; }
.icf-a-inner a { color: var(--icf-blue); text-decoration: underline; }

/* ---------- 桌面：居中宽栏、字号放大 ---------- */
@media (min-width: 922px) {
    .icecard-faq {
        max-width: 820px;
        margin-top: 56px;
        padding: 0 20px 12px;
    }
    .icf-title { font-size: 26px; margin-bottom: 10px; }
    .icf-subtitle { font-size: 14px; margin-bottom: 20px; }
    .icf-q { padding: 18px 10px; }
    .icf-q-text { font-size: 16px; }
    .icf-icon { flex-basis: 28px; width: 28px; height: 28px; }
    .icf-a-inner { font-size: 14.5px; padding: 0 10px 20px; }
}
