﻿        /* #region 此模块的版面、色彩与响应式显示样式
 * <summary>此模块的版面、色彩与响应式显示样式。</summary>
 */
#customerView {
    --faq-primary: #0e5ebd;
    --faq-tint: #d1e3f3;
    --faq-ink: #163554;
    --faq-muted: #637b94;
    /* max-width: 1040px; */
    margin: 0 auto;
    padding: 8px 0 30px;
    color: var(--faq-ink);
}

#customerView [hidden] {
    display: none !important;
}

#customerView .faq-heading {
    padding: 22px 0 25px;
    text-align: center;
}

#customerView .faq-eyebrow {
    margin: 0 0 9px;
    color: var(--faq-primary);
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 750;
}

#customerView h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

#customerView .faq-intro {
    margin: 0;
    color: var(--faq-muted);
    line-height: 1.7;
}

#customerView .faq-search {
    margin: 0;
    /* padding: 21px 24px 17px; */
    /* border: 1px solid #bbd5ee; */
    border-radius: 14px;
    /* background: linear-gradient(120deg, #eef5fc, var(--faq-tint)); */
    margin-bottom: 13px;
}

#customerView .faq-search label {
    display: block;
    margin: 0 0 10px;
    color: var(--faq-ink);
    font-size: 14px;
    font-weight: 700;
}

#customerView .faq-search-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 0 8px 0 14px;
    border: 1px solid #b6cfe8;
    border-radius: 9px;
    background: #fff;
}

#customerView .faq-search-control:focus-within {
    border-color: var(--faq-primary);
    box-shadow: 0 0 0 3px #0e5ebd1a;
}

#customerView .faq-search-symbol {
    color: var(--faq-primary);
    font-family: Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
}

#customerView #faqSearchInput {
    min-width: 0;
    flex: 1;
    width: 100%;
    height: 47px;
    padding: 0 12px;
    outline: 0;
    border: 0;
    background: transparent;
    color: var(--faq-ink);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

#customerView #faqSearchInput::-webkit-search-cancel-button {
    display: none;
}

#customerView #faqSearchInput::placeholder {
    color: #8397ac;
}

#customerView .faq-clear {
    flex-shrink: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    padding: 7px 11px;
    background: #eef5fc;
    color: var(--faq-primary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#customerView .faq-clear:hover {
    background: var(--faq-tint);
}

#customerView .faq-search-help {
    margin: 10px 0 0;
    color: #56738f;
    font-size: 12px;
    line-height: 1.7;
}

#customerView .faq-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 25px 0 12px;
    font-size: 13px;
    color: var(--faq-muted);
}

#customerView .faq-results-bar p {
    margin: 0;
}

#customerView .faq-open-help {
    font-size: 12px;
}

#customerView .faq-categories {
    display: grid;
    gap: 13px;
}

#customerView .faq-category {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cfdfed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 7px #133c6304;
}

#customerView .faq-category-heading {
    margin: 0;
}

#customerView .faq-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 19px;
    border: 0;
    background: #f0f6fc;
    color: var(--faq-ink);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

#customerView .faq-category-toggle:hover {
    background: #e6f0fa;
}

#customerView .faq-category-toggle[aria-expanded='true'] {
    background: var(--faq-tint);
    color: #0b4c96;
}

#customerView .faq-toggle-symbol {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #b8cfe7;
    border-radius: 6px;
    background: #fff;
    color: var(--faq-primary);
    font-family: Consolas, monospace;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

#customerView .faq-category-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

#customerView .faq-category-count {
    flex-shrink: 0;
    padding: 3px 8px;
    border: 1px solid #bed3e7;
    border-radius: 20px;
    background: #ffffffc9;
    color: #43617f;
    font-size: 12px;
    font-weight: 500;
}

#customerView .m-category-remark {
    flex-shrink: 0;
    border-radius: 20px;
    color: #6c8195;
    font-size: 12px;
    font-weight: 500;
}

#customerView .faq-question-list {
    padding: 0 18px;
}

#customerView .faq-question + .faq-question {
    border-top: 1px solid #e2ebf3;
}

#customerView .faq-question-heading {
    margin: 0;
}

#customerView .faq-question-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 1px;
    border: 0;
    background: transparent;
    color: var(--faq-ink);
    text-align: left;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    cursor: pointer;
}

#customerView .faq-question-toggle:hover {
    color: var(--faq-primary);
}

#customerView .faq-question-toggle[aria-expanded='true'] {
    color: var(--faq-primary);
}

#customerView .faq-question-symbol {
    flex: 0 0 25px;
    padding-top: 1px;
    font:
        700 15px/1.65 Consolas,
        monospace;
    color: var(--faq-primary);
}

#customerView .faq-question-text {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

#customerView .faq-question-title {
    display: block;
    margin-top: 8px;
}

#customerView .faq-snippet {
    display: block;
    margin-top: 4px;
    color: var(--faq-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

#customerView .faq-answer {
    display: flow-root;
    padding: 0 1px 23px 36px;
    color: #2c455e;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.85;
}

#customerView .faq-answer > :first-child {
    margin-top: 0;
}

#customerView .faq-answer > :last-child {
    margin-bottom: 0;
}

#customerView .faq-answer-summary {
    margin: 0 0 16px;
    padding: 12px 15px;
    border-left: 3px solid var(--faq-primary);
    border-radius: 0 6px 6px 0;
    background: #f0f6fc;
    color: #315573;
    white-space: pre-wrap;
}

#customerView .faq-answer img,
#customerView .faq-answer video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#customerView .faq-answer video {
    background: #102942;
}

#customerView .faq-answer figure {
    max-width: 100%;
}

#customerView .faq-answer a {
    color: var(--faq-primary);
    text-decoration: underline;
}

#customerView .faq-answer blockquote {
    margin: 16px 0;
    padding: 7px 18px;
    border-left: 3px solid var(--faq-primary);
    background: #f0f6fc;
    color: #456583;
}

#customerView .faq-answer pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    border-radius: 6px;
    background: #f0f5fa;
}

#customerView .faq-answer table {
    max-width: 100%;
    border-collapse: collapse;
}

#customerView .faq-answer td,
#customerView .faq-answer th {
    padding: 7px 10px;
    border: 1px solid #caddec;
}

#customerView .faq-empty-category {
    margin: 0;
    padding: 21px 2px;
    color: var(--faq-muted);
    font-size: 13px;
}

#customerView .faq-empty {
    padding: 48px 24px;
    border: 1px dashed #bed3e8;
    border-radius: 12px;
    background: #f7fafd;
    text-align: center;
}

#customerView .faq-empty-symbol {
    color: #7695b5;
    font:
        700 26px/1.4 Consolas,
        monospace;
}

#customerView .faq-empty h2 {
    margin: 13px 0 7px;
    font-size: 18px;
}

#customerView .faq-empty p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 14px;
    line-height: 1.8;
}

#customerView button:focus-visible {
    position: relative;
    outline: 3px solid #4795e1;
    outline-offset: -3px;
}

@media (max-width: 600px) {
    #customerView .faq-heading {
        padding-top: 13px;
    }

    #customerView .faq-search {
        padding: 17px 14px 14px;
    }

    #customerView .faq-open-help {
        display: none;
    }

    #customerView .faq-category-toggle {
        padding: 14px 12px;
        gap: 9px;
    }

    #customerView .faq-question-list {
        padding: 0 12px;
    }

    #customerView .faq-question-toggle {
        gap: 6px;
    }

    #customerView .faq-answer {
        padding-left: 0;
    }

    #customerView .faq-answer img[style*='float'],
    #customerView .faq-answer video[style*='float'] {
        max-width: 70%;
    }
}

#customerView .faq-toggle-symbol {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    flex-basis: 34px;
    width: 34px;
    font-size: 15px;
}

#customerView .faq-toggle-symbol,
#customerView .faq-question-symbol {
    font-family: system-ui, sans-serif;
    font-size: 22px;
    font-weight: 500;
}

/* Keep question titles and answer text on the category-name alignment guide. */
#customerView {
    --category-inset: 19px;
    --category-icon: 34px;
    --category-gap: 12px;
    --question-icon: 25px;
    --question-gap: 11px;
}

#customerView .faq-category-toggle {
    padding-left: var(--category-inset);
    gap: var(--category-gap);
}

#customerView .faq-toggle-symbol {
    flex-basis: var(--category-icon);
    width: var(--category-icon);
}

#customerView .faq-question-list {
    padding-left: calc(
        var(--category-inset) + var(--category-icon) + var(--category-gap) - var(--question-icon) -
            var(--question-gap)
    );
    padding-right: 19px;
}

#customerView .faq-question-toggle {
    padding-left: 0;
    padding-right: 0;
    gap: var(--question-gap);
}

#customerView .faq-question-symbol {
    flex-basis: var(--question-icon);
    width: var(--question-icon);
}

#customerView .faq-answer {
    padding-left: calc(var(--question-icon) + var(--question-gap));
    padding-right: 0;
}

@media (max-width: 600px) {
    #customerView {
        --category-inset: 12px;
        --category-gap: 9px;
        --question-gap: 6px;
    }

    #customerView .faq-question-list {
        padding-right: 12px;
    }
}

/* Align the SECOND-LEVEL EXPAND SYMBOL, rather than the question title, with the category name. */
#customerView .faq-question-list {
    padding-left: calc(var(--category-inset) + var(--category-icon) + var(--category-gap));
}

#customerView .faq-question-symbol {
    text-align: center;
}

#customerView .faq-attachments {
    margin: 0 0 16px;
    padding: 12px 15px;
    border-left: 3px solid var(--faq-primary);
    border-radius: 0 6px 6px 0;
    background: #f0f6fc;
    color: #315573;
}

#customerView .faq-attachments-title {
    display: block;
    margin-bottom: 8px;
    color: #315573;
    font-size: 14px;
}

#customerView .faq-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#customerView .faq-attachments-list a {
    color: #0e5ebd;
    text-decoration: underline;
    overflow-wrap: anywhere;
}
        /* #endregion */

/* FAQ公共页保留共用渐层，仅取消默认、悬停与按下的立体阴影。 */
#customerView {
    --site-button-shadow: none;
    --site-button-hover-shadow: none;
    --site-button-pressed-shadow: none;
}

/* 问题区块以细淡边线区分，保留渐层且不产生凸起效果。 */
#customerView .faq-question-toggle {
    border: 1px solid #e2e8ef;
    border-radius: 6px;
}
#customerView .faq-question + .faq-question {
    border-top: 0;
    margin-top: 4px;
}

/* 问题列表首尾与分类外框保持一致留白。 */
#customerView .faq-question-list {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* 展开正文与附件、摘要之间沿用4px白色间距。 */
#customerView .faq-answer {
    padding-top: 4px;
}
#customerView .faq-attachments,
#customerView .faq-answer-summary {
    margin-bottom: 4px;
}
#customerView .faq-attachments + *,
#customerView .faq-answer-summary + * {
    margin-top: 0;
}

/* 二级展开符号距问题框左侧的留白与一级分类接近。 */
#customerView .faq-question-toggle {
    padding-left: 16px;
}
#customerView .faq-answer {
    padding-left: calc(16px + var(--question-icon) + var(--question-gap));
}
