/* Match 9981store.com's homepage content width. */

/* Keep the storefront navigation anchored to the viewport while content scrolls. */
:root {
    --bp-fixed-nav-height: 100px;
}

body.bp-body {
    padding-top: var(--bp-fixed-nav-height);
}

.bp-nav {
    position: fixed !important;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100dvh;
    overflow-y: auto;
}

@media (max-width: 767px) {
    :root {
        --bp-fixed-nav-height: 88px;
    }
}

@media (min-width: 1200px) {
    #pjax-container > main.bp-main {
        width: 1140px !important;
        max-width: calc(100% - 40px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .bp-nav > .container,
    .bp-main > .container,
    .bp-main > .bp-item-page,
    .bp-footer {
        width: 100% !important;
        max-width: 1140px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bp-nav > .container,
    .bp-main > .container,
    .bp-main > .bp-item-page {
        max-width: 960px;
    }
}

/* Centered FAQ cards inspired by getpro.plus. */
.bp-faq-section {
    padding-top: 72px !important;
}

.bp-faq-heading,
.bp-faq-list {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.bp-faq-heading {
    margin-bottom: 44px !important;
    text-align: center;
}

.bp-faq-heading h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
}

.bp-faq-heading p {
    margin: 10px 0 0;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.7;
}

.bp-faq-list {
    border-top: 0 !important;
}

.bp-faq-item {
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid #edf0f4 !important;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bp-faq-item:hover,
.bp-faq-item[open] {
    border-color: #e1e6ec !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.bp-faq-item summary {
    min-height: 66px !important;
    padding: 18px 24px;
    border: 0;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 650 !important;
}

.bp-faq-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #98a2b3;
    transition: transform .25s ease;
}

.bp-faq-item[open] .bp-faq-chevron {
    transform: rotate(180deg);
}

.bp-faq-answer {
    max-width: none !important;
    padding: 0 24px 20px !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

@media (max-width: 767px) {
    .bp-faq-section {
        padding-top: 48px !important;
    }

    .bp-faq-heading {
        margin-bottom: 28px !important;
    }

    .bp-faq-heading h2 {
        font-size: 28px !important;
    }

    .bp-faq-item summary {
        min-height: 60px !important;
        padding: 16px 18px;
        font-size: 15px !important;
    }

    .bp-faq-answer {
        padding: 0 18px 18px !important;
    }
}

/* Storefront product thumbnails use a consistent square canvas. */
.bp-body .bp-item-list > a > .acg-card .acg-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Increase the banner's supporting copy while preserving its hierarchy. */
@media (min-width: 768px) {
    .bp-guide-title {
        font-size: 42px !important;
    }

    .bp-guide-subtitle {
        margin-top: 16px !important;
        margin-bottom: 24px !important;
        font-size: 18px !important;
    }

    .bp-guide-card {
        padding: 17px 19px !important;
    }

    .bp-guide-line {
        min-height: 42px !important;
        gap: 10px !important;
        font-size: 15.5px !important;
    }

    .bp-guide-label {
        height: 35px !important;
        padding: 0 11px !important;
        font-size: 14px !important;
    }

    .bp-guide-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .bp-guide-step {
        height: 35px !important;
        gap: 7px !important;
        font-size: 15px !important;
    }

    .bp-guide-step b {
        flex-basis: 22px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 13px !important;
    }

    .bp-guide-line em {
        height: 35px !important;
        font-size: 20px !important;
    }

    .bp-guide-wechat {
        height: 35px !important;
        font-size: 15px !important;
    }

    .bp-guide-line code {
        min-height: 29px !important;
        padding: 4px 9px !important;
        font-size: 15px !important;
    }
}

/* Slightly larger storefront header, following the 9981store proportions. */
@media (min-width: 768px) {
    .bp-nav .container {
        min-height: 84px !important;
    }

    .bp-brand {
        gap: 12px !important;
    }

    .bp-brand-mark {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        object-fit: cover;
        box-shadow: 0 4px 12px rgba(0, 113, 227, .16) !important;
    }

    .bp-brand strong {
        font-size: 20px !important;
        letter-spacing: -.5px !important;
    }

    .bp-brand small {
        margin-top: 5px !important;
        font-size: 9px !important;
        letter-spacing: .55px !important;
    }

    .bp-nav .navbar-nav {
        margin-left: 31px !important;
        gap: 5px !important;
    }

    .bp-nav .nav-link {
        padding: 9px 15px !important;
        font-size: 15px !important;
    }

    .bp-tutorial-cta {
        padding: 13px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .bp-brand-mark {
        width: 36px !important;
        height: 36px !important;
        object-fit: cover;
    }

    .bp-brand strong {
        font-size: 18px !important;
    }
}

/* Full-width site footer with a centered 1140px information grid. */
body.bp-body .bp-footer {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #e4e7ec;
    background: #fff;
    color: #667085;
}

.bp-footer__inner {
    width: calc(100% - 40px);
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 0 24px;
}

.bp-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: start;
    gap: 100px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.bp-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #111827;
    text-decoration: none;
}

.bp-footer__logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 113, 227, .15);
}

.bp-footer__logo span,
.bp-footer__logo strong,
.bp-footer__logo small {
    display: block;
}

.bp-footer__logo strong {
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.1;
}

.bp-footer__logo small {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
}

.bp-footer__brand > p {
    margin: 15px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

.bp-footer__brand .bp-footer__domain {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 14px;
}

.bp-footer__links h2,
.bp-footer__contact h2 {
    margin: 2px 0 15px;
    color: #111827;
    font-size: 17px;
    font-weight: 750;
}

.bp-footer__links a {
    display: block;
    width: max-content;
    margin-top: 11px;
    color: #667085;
    font-size: 13px;
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
}

.bp-footer__links a:hover {
    color: #087ee5;
    transform: translateX(2px);
}

.bp-footer__contact > p {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 9px;
    font-size: 14px;
}

.bp-footer__contact > p span {
    color: #98a2b3;
}

.bp-footer__contact > p strong {
    color: #344054;
    font-size: 15px;
    font-weight: 750;
}

.bp-footer__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f8fafc;
}

.bp-footer__trust span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-right: 1px solid #e4e7ec;
    color: #475467;
    font-size: 12px;
    font-weight: 650;
}

.bp-footer__trust span:last-child {
    border-right: 0;
}

.bp-footer__trust b {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #e8f7ef;
    color: #0a9b52;
    font-size: 11px;
}

.bp-footer__bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e4e7ec;
    text-align: center;
}

.bp-footer__bottom p {
    margin: 0;
    color: #111827;
    font-size: 12px;
}

.bp-footer__record {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bp-footer__record a {
    color: #111827;
    text-decoration: none;
}

.bp-footer__record a:hover {
    color: #0071e3;
    text-decoration: underline;
}

.bp-footer__record i {
    display: block;
    color: #cbd5e1;
    font-style: normal;
}

@media (max-width: 767px) {
    .bp-footer__inner {
        width: calc(100% - 32px);
        padding-top: 42px;
    }

    .bp-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .bp-footer__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 34px;
    }

    .bp-footer__trust span:nth-child(2) {
        border-right: 0;
    }

    .bp-footer__trust span:nth-child(-n+2) {
        border-bottom: 1px solid #e4e7ec;
    }

    .bp-footer__bottom {
        align-items: center;
        gap: 8px;
    }
}

/* Keep the refund and warranty section on the same visual axis as FAQ. */
.bp-main > .bp-policy-section {
    width: 100% !important;
    max-width: 900px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 64px 0 82px !important;
    text-align: center;
}

.bp-policy-section h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -.7px !important;
    line-height: 1.3;
}

.bp-policy-lede {
    margin: 10px 0 36px !important;
    color: #98a2b3 !important;
    font-size: 14px !important;
    line-height: 1.7;
}

.bp-policy-section h3 {
    margin: 0 0 18px !important;
    color: #344054 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center;
}

.bp-policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.bp-policy-grid article {
    min-height: 184px !important;
    padding: 24px !important;
    border: 2px solid #edf0f4 !important;
    border-radius: 16px !important;
    background: #fff !important;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bp-policy-grid article:hover {
    border-color: #e1e6ec !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    transform: translateY(-2px);
}

.bp-policy-status {
    margin-bottom: 13px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.bp-policy-grid h4 {
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.45;
}

.bp-policy-grid p {
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

@media (max-width: 767px) {
    .bp-main > .bp-policy-section {
        max-width: calc(100% - 24px) !important;
        padding: 48px 0 58px !important;
    }

    .bp-policy-section h2 {
        font-size: 27px !important;
    }

    .bp-policy-lede {
        margin-bottom: 28px !important;
    }

    .bp-policy-grid {
        grid-template-columns: 1fr !important;
    }

    .bp-policy-grid article {
        min-height: 0 !important;
        padding: 20px !important;
    }
}

/* Keep short pages, such as order lookup, anchored to the bottom footer. */
.bp-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#pjax-container {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

#pjax-container > .bp-main {
    flex: 1 0 auto;
}

/* Query pages have little content before a search; reserve the footer's height. */
.bp-query-page {
    min-height: calc(100vh - 345px);
}

@media (max-width: 767px) {
    .bp-query-page {
        min-height: calc(100vh - 470px);
    }
}

/* 手机首屏充值说明：原规则以 margin-right:100% 强制标签独占一行，
   在 flex 收缩时中文标签会被压到一个字宽，形成竖排文字。 */
@media (max-width: 767px) {
    .bp-store-guide {
        padding: 24px 18px;
    }

    .bp-guide-card {
        padding: 14px;
    }

    .bp-guide-line {
        align-items: center;
        gap: 8px;
        min-height: 0;
    }

    .bp-guide-label {
        flex: 0 0 auto;
        width: auto;
        margin-right: 0;
        white-space: nowrap;
    }

    .bp-guide-line:first-child .bp-guide-label,
    .bp-guide-line:nth-child(2) .bp-guide-label {
        flex-basis: 100%;
    }

    .bp-guide-line:first-child .bp-guide-step {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bp-guide-line:nth-child(2) {
        align-items: flex-start;
    }

    .bp-guide-line:nth-child(2) .bp-guide-wechat {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bp-guide-line:nth-child(2) code {
        flex: 0 0 auto;
    }

    .bp-guide-line:nth-child(2) > span:last-child {
        flex-basis: 100%;
        padding-left: 0;
    }
}

@media (max-width: 374px) {
    .bp-store-guide {
        padding-right: 14px;
        padding-left: 14px;
    }

    .bp-guide-card {
        padding: 12px;
    }

    .bp-guide-line {
        gap: 6px;
        font-size: 13px;
    }

    .bp-guide-step {
        gap: 4px;
    }
}
