/* ============================================================
   page-bangzhu-zhongxin.css — 帮助中心
   ============================================================ */

/* ── 英雄区 ── */
.hc-hero {
    background:
        linear-gradient(160deg,
            rgba(232, 244, 255, 0.94) 0%,
            rgba(215, 234, 255, 0.90) 45%,
            rgba(228, 243, 255, 0.93) 100%);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    padding: clamp(64px, 9vw, 108px) 0 0;
    overflow: hidden;
    position: relative;
    /* Blend into page body below */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* 背景装饰网格 */
.hc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(26, 111, 255, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* 右上角辉光装饰 */
.hc-hero::after {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.hc-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-bottom: 0;
}

.hc-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(26, 111, 255, 0.08);
    border: 1px solid rgba(26, 111, 255, 0.20);
    color: #1a6fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hc-hero__title {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 860;
    color: #0f1d38;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hc-hero__sub {
    margin: 0 0 8px;
    font-size: 16px;
    color: rgba(15, 36, 80, 0.52);
    font-weight: 500;
}

/* ── 快捷入口卡片 ── */
.hc-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding: 20px 0 0;
}

.hc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px 16px;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(100, 160, 240, 0.20);
    border-bottom: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1a3060;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.hc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(26, 111, 255, 0.4));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.hc-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(26, 111, 255, 0.10);
    transform: translateY(-3px);
}

.hc-card:hover::after { transform: scaleX(1); }

.hc-card__icon {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hc-card__icon--blue   { background: rgba(26,  111, 255, 0.10); color: #1a6fff; }
.hc-card__icon--teal   { background: rgba(13,  148, 136, 0.10); color: #0d9488; }
.hc-card__icon--indigo { background: rgba(99,  102, 241, 0.10); color: #6366f1; }
.hc-card__icon--amber  { background: rgba(217, 119,   6, 0.10); color: #d97706; }

.hc-card__label {
    font-size: 14px;
    font-weight: 750;
    flex: 1;
}

.hc-card__arrow {
    font-size: 13px;
    color: rgba(26, 55, 100, 0.32);
    align-self: flex-end;
}

/* ── FAQ 主体容器 ── */
.hc-body {
    padding-top: 40px;
    padding-bottom: 100px;
}

/* ── 分类导航 ── */
.hc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.hc-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(59,130,246,0.22);
    background: rgba(255,255,255,0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(15,27,50,0.72);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.hc-nav__item:hover {
    background: rgba(59,130,246,0.10);
    border-color: rgba(59,130,246,0.40);
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* ── FAQ 分类区块 ── */
.hc-section {
    margin-bottom: 52px;
    scroll-margin-top: 96px;
}

.hc-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hc-section__icon {
    width: 40px; height: 40px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hc-section__icon--blue   { background: rgba(219,234,254,0.90); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.20); }
.hc-section__icon--teal   { background: rgba(204,251,241,0.90); color: #0f766e; border: 1px solid rgba(20,184,166,0.22); }
.hc-section__icon--amber  { background: rgba(254,243,199,0.90); color: #b45309; border: 1px solid rgba(234,179,8,0.25);  }
.hc-section__icon--indigo { background: rgba(224,231,255,0.90); color: #4338ca; border: 1px solid rgba(99,102,241,0.22); }

.hc-section__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0d2240;
    letter-spacing: -0.015em;
}

.hc-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 8px;
    background: rgba(59,130,246,0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

/* ── FAQ Accordion 网格 ── */
.hc-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 10px;
    align-items: start;
}

/* ── FAQ Item（details/summary） ── */
.hc-faq {
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.80);
    box-shadow: 0 4px 18px rgba(15,27,50,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.hc-faq:hover {
    box-shadow: 0 8px 28px rgba(15,27,50,0.10), inset 0 1px 0 rgba(255,255,255,1);
}

.hc-faq.is-open {
    border-color: rgba(59,130,246,0.28);
    box-shadow: 0 8px 28px rgba(30,80,160,0.10), inset 0 1px 0 rgba(255,255,255,1);
}

.hc-faq__q {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
    /* Separator line fades in when open */
    border-bottom: 1px solid transparent;
    transition: border-color 0.28s ease;
}

.hc-faq.is-open .hc-faq__q {
    border-bottom-color: rgba(59,130,246,0.12);
}

.hc-faq__q::-webkit-details-marker { display: none; }

.hc-faq__num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 9px;
    background: rgba(59,130,246,0.10);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.28s ease, color 0.28s ease;
}

.hc-faq.is-open .hc-faq__num {
    background: #1d4ed8;
    color: #fff;
}

.hc-faq__q > span:not(.hc-faq__num) {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #0d2240;
    line-height: 1.4;
}

.hc-faq__chevron {
    flex-shrink: 0;
    color: rgba(15,27,50,0.35);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s ease;
}

.hc-faq.is-open .hc-faq__chevron {
    transform: rotate(180deg);
    color: #1d4ed8;
}

/* Override native <details> hide — animation is driven entirely by JS + transition */
.hc-faq > .hc-faq__a {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 18px 0 58px;
    font-size: 14.5px;
    line-height: 1.72;
    color: rgba(15,27,50,0.68);
    transition:
        max-height     0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding-top    0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding-bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity        0.28s ease;
}

.hc-faq.is-open > .hc-faq__a {
    opacity: 1;
    /* max-height / padding set by JS to exact scrollHeight */
}

.hc-faq__a strong { color: #0d2240; font-weight: 720; }
.hc-faq__a a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hc-faq__a a:hover { color: #1e40af; }

/* ── 底部联系 CTA ── */
.hc-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(219,234,254,0.70), rgba(255,255,255,0.60));
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(59,130,246,0.22);
    box-shadow: 0 8px 32px rgba(30,80,160,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    margin-top: 12px;
    flex-wrap: wrap;
}

.hc-cta__icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 16px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.20);
    display: flex; align-items: center; justify-content: center;
    color: #1d4ed8;
}

.hc-cta__body { flex: 1; min-width: 160px; }

.hc-cta__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #0d2240;
}

.hc-cta__sub {
    margin: 0;
    font-size: 14px;
    color: rgba(15,27,50,0.60);
    line-height: 1.5;
}

.hc-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 12px;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(29,78,216,0.30);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hc-cta__btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(29,78,216,0.35);
}

/* ── 响应式 ── */
@media (max-width: 860px) {
    .hc-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .hc-card {
        border-radius: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }
}

@media (max-width: 640px) {
    .hc-hero { padding-top: 80px; }
    .hc-hero__title { font-size: 28px; }
    .hc-hero__sub { font-size: 14px; }
    .hc-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hc-card { padding: 14px 12px 12px; }
    .hc-faq-grid { grid-template-columns: 1fr; }
    .hc-nav { gap: 6px; }
    .hc-nav__item { font-size: 12px; padding: 7px 12px; }
    .hc-faq__a { padding-left: 18px; }
    .hc-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hc-cta__btn { width: 100%; justify-content: center; }
    .hc-body { padding-top: 28px; padding-bottom: 72px; }
}
