.faq-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--app-bg, #f5f7f9);
}

.faq-page .faq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 8px 0;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid var(--app-line, #e5ebf5);
    box-shadow: 0 2px 12px rgba(33, 63, 124, 0.04);
}

.faq-page .faq-back,
.faq-page .faq-header-spacer {
    width: 48px;
    height: 48px;
}

.faq-page .faq-back {
    border: 0;
    background: transparent;
    color: var(--app-text, #24314f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.faq-page .faq-title {
    min-width: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--app-text, #24314f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.faq-page .faq-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: calc(60px + env(safe-area-inset-top, 0px)) 18px calc(32px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.faq-page .faq-content {
    color: var(--app-text, #24314f);
    font-size: 15px;
    line-height: 1.75;
    word-break: break-word;
    background: #ffffff;
    border: 1px solid var(--app-line, #e5ebf5);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: var(--app-shadow, 0 8px 28px rgba(33, 63, 124, 0.07));
}

.faq-page .faq-content p {
    margin: 0 0 14px;
}

.faq-page .faq-content strong,
.faq-page .faq-content b,
.faq-page .faq-content h1,
.faq-page .faq-content h2,
.faq-page .faq-content h3,
.faq-page .faq-content h4 {
    color: var(--app-text, #24314f);
    font-weight: 600;
}

.faq-page .faq-content ul,
.faq-page .faq-content ol {
    margin: 0 0 14px;
    padding-left: 1.2em;
}

.faq-page .faq-content li {
    margin-bottom: 8px;
}

.faq-page .faq-content a {
    color: var(--app-blue, #2f73f6);
}

.faq-page .faq-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.faq-page .faq-image {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.faq-page .faq-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--app-muted, #8a93a8);
    font-size: 14px;
}

html.device-pc .faq-page {
    background: #262b4b;
}

html.device-pc .faq-page .faq-header {
    background: #17182b;
}

html.device-pc .faq-page .faq-container {
    padding-top: 24px;
}

html.device-pc .faq-page .faq-content {
    background: #353963;
    border-radius: 12px;
    padding: 28px 24px;
    border: 0;
    box-shadow: none;
    color: #f5f5f7;
}
