/* QRCam 原生页面样式。 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body.qc-page {
    min-width: 280px;
    margin: 0;
    padding: 0;
    color: #172a3a;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: visible;
    -webkit-text-size-adjust: 100%;
}

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

.qc-page [hidden], .qc-page .hidden {
    display: none !important;
}

.qc-page a {
    color: #1d4ed8;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.qc-page button, .qc-page input, .qc-page textarea, .qc-page select {
    font: inherit;
}

.qc-page button, .qc-page a, .qc-page summary {
    touch-action: manipulation;
}

.qc-page a:focus-visible, .qc-page button:focus-visible, .qc-page input:focus-visible,
.qc-page textarea:focus-visible, .qc-page select:focus-visible, .qc-page summary:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 4px;
}

.qc-page img, .qc-page video, .qc-page canvas {
    max-width: 100%;
}

.qc-page .site-container, .qc-container {
    width: calc(100% - 48px);
    max-width: 1160px;
    margin-right: auto;
    margin-left: auto;
}

.qc-page .site-header {
    position: relative;
    z-index: 30;
    padding: 14px 0;
    color: #506777;
    background: #ffffff;
    border-bottom: 1px solid #e1eaed;
}

.qc-page .site-header .site-container {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.qc-page .site-brand, .qc-page .site-footer-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    color: #172a3a;
    text-decoration: none;
}

.qc-page .site-brand-mark, .qc-page .site-footer-brand-mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 12px;
    font-size: 23px;
}

.qc-page .site-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.qc-page .site-brand-name {
    color: #172a3a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.qc-page .site-brand-note {
    color: #637986;
    font-size: 11px;
    line-height: 1.5;
}

.qc-page .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.qc-page .site-nav-link, .qc-page .site-mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    color: #4b6272;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.qc-page .site-nav-link:hover, .qc-page .site-nav-link.active,
.qc-page .site-mobile-link:hover, .qc-page .site-mobile-link.active {
    color: #1d4ed8;
    background: #eff6ff;
}

.qc-page .site-language-btn, .qc-page .site-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: #405968;
    background: #ffffff;
    border: 1px solid #d6e2e6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 19px;
    text-decoration: none;
}

.qc-page .site-language-btn:hover, .qc-page .site-mobile-btn:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.qc-page .site-nav .site-language-btn {
    width: auto;
    gap: 8px;
    margin-left: 10px;
    padding: 0 12px;
    font-size: 16px;
}

.qc-page .site-nav .site-language-btn span {
    font-size: 13px;
}

.qc-page .site-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.qc-page .site-mobile-menu {
    padding-top: 12px;
    background: #ffffff;
}

.qc-page .site-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #e1eaed;
}

.qc-page .lang-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qc-page .lang-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 37, 49, 0.55);
}

.qc-page .lang-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    color: #172a3a;
    background: #ffffff;
    border: 1px solid #d6e2e6;
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(17, 37, 49, 0.2);
}

.qc-page .lang-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 24px;
    border-bottom: 1px solid #e1eaed;
}

.qc-page .lang-modal-title {
    margin: 0;
    color: #172a3a;
    font-size: 20px;
    line-height: 1.4;
}

.qc-page .lang-modal-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: #506777;
    background: #f5f8fa;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.qc-page .lang-modal-close:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.qc-page .lang-modal-body {
    max-height: 65vh;
    padding: 24px;
    overflow-y: auto;
}

.qc-page .lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qc-page .lang-grid .lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px;
    color: #405968;
    background: #f7f9fa;
    border: 1px solid #d6e2e6;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}

.qc-page .lang-grid .lang-item:hover, .qc-page .lang-grid .lang-item.active {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

.qc-scanner-section {
    padding: 56px 0 42px;
    background: linear-gradient(180deg, #eff6ff 0, #f5f9fb 100%);
    border-bottom: 1px solid #e1eaed;
}

.qc-hero {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.qc-eyebrow {
    margin: 0 0 13px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.qc-eyebrow i {
    margin-right: 4px;
}

.qc-hero h1 {
    margin: 0;
    color: #172a3a;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.qc-hero-description {
    max-width: 670px;
    margin: 12px auto 0;
    color: #506777;
    font-size: 15px;
    line-height: 1.7;
}

.qc-scanner-section #appBox, .qc-scanner-section .qc-tool {
    min-width: 0;
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.qc-tool-loading {
    min-height: 300px;
    padding: 70px 24px;
    color: #506777;
    background: #ffffff;
    border: 1px solid #d6e2e6;
    border-radius: 20px;
    text-align: center;
}

.qc-tool-loading > i {
    color: #2563eb;
    font-size: 36px;
}

.qc-tool-loading p {
    margin: 14px 0 0;
}

.qc-tool-loading .qc-tool-loading-note {
    max-width: 490px;
    margin: 10px auto 0;
    color: #637986;
    font-size: 14px;
}

.qc-no-script {
    max-width: 960px;
    margin: 16px auto;
    padding: 16px 20px;
    color: #7b4c22;
    background: #fff6e8;
    border: 1px solid #ecd7b3;
    border-radius: 10px;
}

.qc-scanner-note {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    color: #637986;
    font-size: 13px;
    text-align: center;
}

.qc-scanner-note i {
    flex-shrink: 0;
    color: #2563eb;
}

.qc-section {
    padding: 84px 0;
    background: #ffffff;
}

.qc-section-tinted {
    background: #f5f9fa;
    border-top: 1px solid #e7eef1;
    border-bottom: 1px solid #e7eef1;
}

.qc-section-heading {
    margin-bottom: 30px;
}

.qc-section-heading h2 {
    margin: 0;
    color: #172a3a;
    font-size: clamp(27px, 3.2vw, 36px);
    font-weight: 750;
    letter-spacing: -0.8px;
    line-height: 1.3;
}

.qc-section-heading > p:not(.qc-eyebrow) {
    max-width: 660px;
    margin: 17px 0 0;
    color: #586e7b;
    font-size: 16px;
    line-height: 1.8;
}

.qc-section-heading-center {
    text-align: center;
}

.qc-section-heading-center > p:not(.qc-eyebrow) {
    margin-right: auto;
    margin-left: auto;
}

.qc-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.qc-feature-card {
    min-width: 0;
    padding: 26px 23px;
    background: #ffffff;
    border: 1px solid #e0e9ed;
    border-radius: 16px;
}

.qc-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 20px;
}

.qc-feature-card h3, .qc-step-list h3 {
    margin: 0 0 10px;
    color: #20394a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.qc-feature-card p, .qc-step-list p {
    margin: 0;
    color: #586e7b;
    font-size: 15px;
    line-height: 1.8;
}

.qc-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 76px;
}

.qc-split-layout > * {
    min-width: 0;
}

.qc-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 18px;
    font-weight: 700;
    text-decoration: none;
}

.qc-text-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.qc-step-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.qc-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid #dce7eb;
}

.qc-step-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.qc-step-number {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.qc-faq-list details {
    padding: 0 0 19px;
    margin: 0 0 19px;
    border-bottom: 1px solid #dce7eb;
}

.qc-faq-list details:last-child {
    margin-bottom: 0;
}

.qc-faq-list summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 34px 7px 0;
    color: #20394a;
    cursor: pointer;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
    list-style: none;
}

.qc-faq-list summary::-webkit-details-marker {
    display: none;
}

.qc-faq-list summary::after {
    position: absolute;
    top: 7px;
    right: 3px;
    color: #2563eb;
    content: "+";
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
}

.qc-faq-list details[open] summary::after {
    content: "−";
}

.qc-faq-list p {
    margin: 10px 0 0;
    color: #586e7b;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.qc-page .site-footer {
    padding: 54px 0 24px;
    color: #586e7b;
    background: #f5f9fa;
    border-top: 1px solid #e1eaed;
}

.qc-page .site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
    gap: 38px;
    padding-bottom: 42px;
}

.qc-page .site-footer-grid > * {
    min-width: 0;
}

.qc-page .site-footer-brand {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 800;
}

.qc-page .site-footer-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 21px;
}

.qc-page .site-footer-description {
    max-width: 350px;
    margin: 0;
    color: #586e7b;
    font-size: 14px;
    line-height: 1.8;
}

.qc-page .site-footer-title {
    margin: 10px 0 16px;
    color: #20394a;
    font-size: 14px;
    font-weight: 700;
}

.qc-page .site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.qc-page .site-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #586e7b;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.qc-page .site-footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.qc-page .site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-top: 22px;
    border-top: 1px solid #dce7eb;
    font-size: 13px;
}

.qc-page .site-footer-bottom p {
    margin: 0;
}

.qc-page .site-footer-bottom a {
    color: #405968;
    text-decoration: none;
}

.qc-page .site-footer-privacy {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #1d4ed8;
}

.qc-page.page-404 .rh-404-note i {
    color: #2563eb;
}

.qc-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1000px) {
    .qc-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qc-split-layout {
        gap: 42px;
    }

    .qc-page .site-nav-link {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 760px) {
    .qc-page .site-nav {
        display: none;
    }

    .qc-page .site-mobile-actions {
        display: flex;
    }

    .qc-page .site-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .qc-page .site-footer-main {
        grid-column: 1 / -1;
    }

    .qc-scanner-section {
        padding-top: 38px;
    }

    .qc-hero {
        margin-bottom: 24px;
    }

    .qc-hero h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .qc-hero-description {
        font-size: 15px;
    }

    .qc-section {
        padding: 60px 0;
    }

    .qc-split-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .qc-split-layout .qc-section-heading {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .qc-page .site-container, .qc-container {
        width: calc(100% - 32px);
    }

    .qc-page .site-header {
        padding: 11px 0;
    }

    .qc-page .site-brand-note {
        display: none;
    }

    .qc-page .site-brand {
        gap: 8px;
    }

    .qc-page .site-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .qc-page .site-brand-name {
        font-size: 21px;
    }

    .qc-page .site-mobile-actions {
        gap: 6px;
    }

    .qc-scanner-section {
        padding: 30px 0 28px;
    }

    .qc-hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .qc-hero-description {
        margin-top: 10px;
        font-size: 14px;
    }

    .qc-scanner-note {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .qc-scanner-note i {
        margin-top: 4px;
    }

    .qc-section {
        padding: 48px 0;
    }

    .qc-section-heading h2 {
        font-size: 28px;
    }

    .qc-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 28px;
    }

    .qc-feature-card {
        padding: 24px;
    }

    .qc-feature-icon {
        margin-bottom: 16px;
    }

    .qc-step-list li {
        gap: 14px;
    }

    .qc-page .site-footer {
        padding-top: 38px;
    }

    .qc-page .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 30px;
    }

    .qc-page .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .qc-page *, .qc-page *::before, .qc-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
