@charset "utf-8";

:root {
    --color-heading: #1d2129;
    --color-text: #4e5969;
    --color-background: #f6f6f6;
    --page-width: 1100px;
}

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

.page-container {
    width: calc(100% - 48px);
    max-width: var(--page-width);
    margin-inline: auto;
}

/* 公共 Banner：页面可通过自定义属性调整留白、背景和标题大小。 */
.page-banner {
    position: relative;
    padding: var(--banner-padding, 60px 0 70px);
    text-align: center;
}

.page-banner__title {
    color: var(--color-heading);
    font-size: var(--banner-title-size, 32px);
    font-weight: 700;
    line-height: 38px;
}

@media (max-width: 767px) {
    .page-container {
        width: calc(100% - 32px);
    }

    .page-banner {
        --banner-padding: 40px 0;
        --banner-title-size: 26px;
    }
}

.question-page {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "HarmonyOS Sans SC", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.question-page main {
    position: relative;
    isolation: isolate;
    padding-bottom: 216px;
}

.question-page .page-banner::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 500px;
    background: linear-gradient(247.134deg, #c2d9fa 17.922%, #d8d5fb 79.31%, #c7d7fc 120.41%);
    -webkit-mask: url("../images/question/banner-mask.svg") center top / 100% 500px no-repeat;
    mask: url("../images/question/banner-mask.svg") center top / 100% 500px no-repeat;
    pointer-events: none;
    content: "";
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-card {
    min-width: 0;
    padding: 24px 40px 30px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 10px rgb(51 86 140 / 4%);
}

.faq-card__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    background: url("../images/question/divider.svg") left bottom / 1020px 1px repeat-x;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.faq-card__number {
    flex-shrink: 0;
    min-width: 24px;
    height: 22px;
    padding-inline: 4px;
    border-radius: 8px 0 8px 0;
    background: linear-gradient(#d7cdfb, #b9defc);
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.faq-card__answer {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    overflow-wrap: anywhere;
}

/* 设计稿第七条答案后保留一行留白。 */
.faq-card--migration {
    padding-bottom: 54px;
}

@media (max-width: 767px) {
    .question-page main {
        padding-bottom: 64px;
    }

    .faq-card {
        padding: 20px;
    }

    .faq-card__title {
        font-size: 16px;
        line-height: 24px;
    }

    .faq-card__number {
        margin-top: 1px;
    }

    .faq-card--migration {
        padding-bottom: 44px;
    }
}
