/* FAQ 页面样式，沿用官网主色与卡片风格 */
.faq-page .hero-background {
    height: 320px;
}

.faq-header {
    padding-top: 56px;
    padding-bottom: 24px;
    position: relative;
    z-index: 1;
}

.faq-header h1 {
    font-size: 42px;
    line-height: 52px;
}

.faq-intro {
    color: var(--medium-text);
    max-width: 720px;
    margin-top: 8px;
    font-size: 16px;
    line-height: 26px;
}

.faq-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.faq-search {
    position: relative;
    max-width: 560px;
}

.faq-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 14px 20px 14px 48px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    color: var(--black-text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23646c7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") 16px 50% no-repeat;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 79, 135, 0.12);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-cat {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--black-text);
    border-radius: 100px;
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.faq-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translate(1px, -1px);
}

.faq-cat.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-group-title {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0 4px;
}

.faq-item {
    border: 1px solid var(--line);
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.faq-item.is-open {
    border-color: rgba(255, 79, 135, 0.35);
    box-shadow: 0 8px 24px rgba(39, 42, 48, 0.06);
}

.faq-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--black-text);
}

.faq-item-header:hover {
    color: var(--primary);
}

.faq-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.faq-item.is-open .faq-item-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item-body {
    display: none;
    padding: 0 28px 28px;
    color: var(--medium-text);
    font-size: 15px;
    line-height: 26px;
}

.faq-item.is-open .faq-item-body {
    display: block;
}

.faq-item-body a {
    color: var(--primary);
    font-size: inherit;
    font-weight: 600;
}

.faq-item-body a:hover {
    text-decoration: underline;
}

.faq-item-body ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.faq-item-body li + li {
    margin-top: 6px;
}

.faq-empty {
    text-align: center;
    color: var(--medium-text);
    padding: 48px 16px;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.faq-help {
    width: 100%;
    max-width: 860px;
    margin: 64px auto 0;
    background-image: url("../images/qrcode_background.png");
    background-position: 0 0;
    background-size: cover;
    border-radius: 30px;
    padding: 48px 32px;
    text-align: center;
    color: var(--white);
}

.faq-help h2 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 28px;
}

.faq-help p {
    margin: 0 auto 24px;
    max-width: 560px;
    line-height: 26px;
}

.faq-help-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.faq-help-links a {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 100px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color .2s, color .2s, transform .2s;
}

.faq-help-links a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translate(2px, -2px);
}

.nav-link.w--current {
    color: var(--primary);
}

@media screen and (max-width: 767px) {
    .faq-header h1 {
        font-size: 32px;
        line-height: 42px;
    }

    .faq-list {
        gap: 28px;
    }

    .faq-group {
        gap: 14px;
    }

    .faq-item-header {
        padding: 20px 20px;
        font-size: 15px;
    }

    .faq-item-body {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .faq-help {
        padding: 36px 20px;
        border-radius: 20px;
    }

    .faq-help h2 {
        font-size: 22px;
    }
}
