:root {
    --qskd-ink: #111827;
    --qskd-text: #3f5169;
    --qskd-muted: #64748b;
    --qskd-blue: #3b82f6;
    --qskd-line: rgba(59, 130, 246, .22);
}

body {
    color: var(--qskd-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

#btt {
    display: none !important;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 9999;
    transform: translateY(-140%);
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .28);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid rgba(59, 130, 246, .42);
    outline-offset: 3px;
}

:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .5);
    outline-offset: 3px;
}

main > section:not(.hero),
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

img {
    max-width: 100%;
}

main h1,
main .hero h1 {
    font-size: clamp(34px, 3.2vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

main h2 {
    font-size: clamp(26px, 2.1vw, 36px) !important;
    line-height: 1.16 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

main h3 {
    font-size: clamp(19px, 1.2vw, 24px) !important;
    line-height: 1.24 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

main h4 {
    font-size: clamp(18px, 1.18vw, 22px) !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

main section:not(.hero) p,
main section:not(.hero) li {
    font-size: clamp(15px, .98vw, 18px);
    line-height: 1.75;
    color: var(--qskd-text);
    letter-spacing: 0;
}

.eyebrow,
.section-eyebrow {
    color: #5f9bff !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: .22em !important;
    text-transform: uppercase;
    font-weight: 700 !important;
}

.nav-link,
nav a {
    font-size: 18px;
    letter-spacing: 0;
}

.module-card h3,
.business-feature h4,
.scene-content h3,
.adv-card h3,
.why-card h3 {
    letter-spacing: 0 !important;
}

.module-card h3 {
    font-size: clamp(18px, 1.15vw, 22px) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

.module-card span {
    font-size: 18px !important;
}

.scene-content h3,
.adv-card h3,
.why-card h3,
.business-panel h3 {
    font-size: clamp(20px, 1.3vw, 25px) !important;
}

.scene::after {
    background: linear-gradient(180deg, rgba(7, 17, 31, .05) 0%, rgba(7, 17, 31, .42) 48%, rgba(7, 17, 31, .88) 100%) !important;
}

.scene .scene-content {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .38);
}

.scene .scene-content h3 {
    color: #fff !important;
}

.scene .scene-content p {
    color: rgba(255, 255, 255, .9) !important;
}

.scene .scene-content p:first-child {
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 600 !important;
}

.text-white {
    color: #fff !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, .7) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, .8) !important;
}

.text-white\/82 {
    color: rgba(255, 255, 255, .82) !important;
}

.hero h1,
.hero .text-white {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}

.body-indent {
    display: block;
    margin-top: 8px;
    padding-left: 2em;
}

@media (min-width: 1536px) {
    .max-w-7xl {
        max-width: min(90vw, 1680px) !important;
    }

    main .max-w-3xl {
        max-width: min(52vw, 980px) !important;
    }
}

@media (max-width: 1023px) {
    html,
    body {
        overflow-x: hidden;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    body.mobile-menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(8, 13, 24, .42);
        backdrop-filter: blur(4px);
    }

    nav,
    nav.n,
    #n {
        z-index: 60 !important;
        padding-top: env(safe-area-inset-top);
    }

    nav > div:first-child,
    #n > div:first-child {
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(148, 163, 184, .16);
    }

    .hero + section,
    main > section:not(.hero),
    body > section:not(:first-of-type) {
        scroll-margin-top: 80px;
    }

    nav img[alt="全时空地智能科技"] {
        max-width: calc(100vw - 104px);
        height: 32px;
        object-fit: contain;
    }

    #n > div:first-child > div > div:has(#mt) {
        margin-left: auto !important;
    }

    #mt {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        border-radius: 0;
        color: #0f172a !important;
        background: transparent;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    body.mobile-menu-open #mt {
        background: transparent;
        color: #0f172a !important;
    }

    #mm {
        position: fixed;
        top: calc(64px + env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        z-index: 70;
        max-height: calc(100svh - 88px - env(safe-area-inset-top));
        overflow-y: auto;
        border: 1px solid rgba(226, 232, 240, .95) !important;
        border-radius: 18px;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
        backdrop-filter: blur(22px);
        transform-origin: top center;
        animation: mobileMenuIn .18s ease-out both;
    }

    #mm > div {
        padding: 10px !important;
        display: grid;
        gap: 6px !important;
    }

    #mm a {
        min-height: 48px;
        display: flex !important;
        align-items: center;
        border-radius: 14px;
        padding: 0 14px !important;
        color: #1e293b !important;
        font-size: 16px !important;
        font-weight: 650;
        letter-spacing: 0;
    }

    #mm a:hover,
    #mm a:focus-visible,
    #mm a.is-active {
        color: #2563eb !important;
        background: rgba(219, 234, 254, .78);
        outline: none;
    }

    @keyframes mobileMenuIn {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    main .hero,
    section.hero {
        min-height: min(760px, 82svh) !important;
        background-position: center center !important;
    }

    main .hero > div,
    section.hero > div {
        padding-top: calc(7rem + env(safe-area-inset-top)) !important;
        padding-bottom: 4.25rem !important;
    }

    main h1,
    main .hero h1 {
        max-width: 11em;
        text-wrap: balance;
    }

    .hero a,
    main a.rounded-full,
    section a.rounded-full {
        min-height: 46px;
        align-items: center;
        justify-content: center;
    }

    main section:not(.hero) {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .visual-img,
    .contact-photo,
    .cert-img,
    .ground-main,
    .ground-wide {
        height: clamp(220px, 62vw, 340px) !important;
    }

    .case-video {
        height: min(58svh, 420px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .fade-up,
    .fade-section,
    .ai {
        opacity: 1 !important;
        transform: none !important;
    }
}

.hosted-video {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

.hosted-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #030712;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.bilibili-player {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #030712;
}

.hosted-video__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .75rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, .08), rgba(2, 6, 23, .38));
    cursor: pointer;
}

.hosted-video__play[hidden] {
    display: none;
}

.hosted-video__play-icon {
    position: relative;
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 12px 36px rgba(2, 6, 23, .32);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background-color .2s ease;
}

.hosted-video__play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    width: 0;
    height: 0;
    border-top: .72rem solid transparent;
    border-bottom: .72rem solid transparent;
    border-left: 1.05rem solid #fff;
    transform: translate(-42%, -50%);
}

.hosted-video__play-label {
    padding: .42rem .8rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
    background: rgba(15, 23, 42, .68);
    text-shadow: 0 1px 3px rgba(2, 6, 23, .48);
}

.hosted-video__play:hover .hosted-video__play-icon,
.hosted-video__play:focus-visible .hosted-video__play-icon {
    transform: scale(1.08);
    background: rgba(37, 99, 235, .88);
}

.hosted-video__play:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: -3px;
}

.hosted-video__play.is-loading {
    cursor: wait;
}

.hosted-video__play.is-loading .hosted-video__play-icon {
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: hosted-video-spin .8s linear infinite;
}

.hosted-video__play.is-loading .hosted-video__play-icon::after {
    display: none;
}

@keyframes hosted-video-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    main section:not(.hero) {
        padding-top: 3.25rem !important;
        padding-bottom: 3.25rem !important;
    }

    main .max-w-7xl,
    footer .max-w-7xl {
        padding-left: 1.125rem !important;
        padding-right: 1.125rem !important;
    }

    main h2 {
        font-size: clamp(24px, 7vw, 30px) !important;
    }

    main h3 {
        font-size: clamp(18px, 5.4vw, 22px) !important;
    }

    main section:not(.hero) p,
    main section:not(.hero) li {
        font-size: 15px;
        line-height: 1.68;
    }

    .eyebrow,
    .section-eyebrow {
        font-size: 12px !important;
        letter-spacing: .16em !important;
    }

    .hero .mt-10 {
        margin-top: 1.8rem !important;
    }

    .hero .gap-4 {
        gap: .75rem !important;
    }

    .hero a.rounded-full {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        font-size: 15px;
    }

    #prev,
    #next {
        display: none !important;
    }

    #carousel {
        height: 58svh !important;
    }

    #carousel .absolute.top-20.left-20 {
        top: 2.5rem !important;
        left: 1rem !important;
        right: 1rem !important;
        max-width: calc(100vw - 2rem);
    }

    #carousel h3 {
        font-size: 1.65rem !important;
        line-height: 1.14 !important;
    }

    #carousel p {
        font-size: .95rem !important;
    }

    #carousel .absolute.bottom-12.right-12,
    #p > .absolute.bottom-12.right-12 {
        left: 50% !important;
        right: auto !important;
        bottom: 1.25rem !important;
        transform: translateX(-50%);
    }

    .poster-card {
        max-height: 78svh;
    }

    .hosted-video__frame {
        border-radius: .75rem;
    }

    .hosted-video__play-icon {
        width: 3.75rem;
        height: 3.75rem;
    }
}
