/* 首页：取消导航与首屏之间的主题默认留白 */
body.home #app-header:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .page-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .page-container > .aq-home-hero-component:first-child {
    margin-top: 0 !important;
}

body.home {
    overflow-x: hidden;
    overflow-x: clip;
}

.aq-home-hero-component {
    --aq-home-primary: #1468d4;
    --aq-home-primary-hover: #0e55b7;
    --aq-home-cta: #ff7a1a;
    --aq-home-cta-hover: #e95f00;
    --aq-home-deep: #082b5a;
    --aq-home-inner: 1180px;
    position: relative;
    z-index: 1;
}

.aq-home-hero-component *,
.aq-home-hero-component *::before,
.aq-home-hero-component *::after {
    box-sizing: border-box;
}

.aq-home-inner {
    width: min(var(--aq-home-inner), calc(100% - 32px));
    margin-inline: auto;
}

/* 全幅大图首屏 */
.aq-home-hero {
    position: relative;
    width: 100vw;
    min-height: 660px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(110deg, #062957 0%, #0a4a98 55%, #1468d4 100%);
}

.aq-home-hero__media {
    position: absolute;
    inset: 0;
    z-index: -4;
    display: block;
}

.aq-home-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 68% center;
}

.aq-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(3, 28, 63, .98) 0%,
            rgba(4, 35, 78, .97) 29%,
            rgba(6, 49, 103, .90) 45%,
            rgba(7, 61, 125, .67) 59%,
            rgba(9, 73, 146, .30) 76%,
            rgba(9, 73, 146, .12) 100%
        ),
        linear-gradient(180deg, rgba(4, 30, 67, .16), rgba(4, 30, 67, .34));
}

.aq-home-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.72) 46%, transparent 78%);
    mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.72) 46%, transparent 78%);
}

.aq-home-hero__inner {
    min-height: 660px;
    display: flex;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 126px;
}

.aq-home-hero__content {
    width: min(610px, 54%);
    position: relative;
    z-index: 2;
}

.aq-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    letter-spacing: .02em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.aq-home-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.4vw, 64px);
    line-height: 1.14;
    letter-spacing: -.035em;
    text-shadow: 0 3px 20px rgba(0, 19, 48, .25);
}

.aq-home-hero__title span {
    display: block;
    white-space: nowrap;
}

.aq-home-hero__description {
    max-width: 610px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.85;
    text-shadow: 0 2px 12px rgba(0, 20, 48, .24);
}

.aq-home-hero__actions,
.aq-home-hero__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 550px;
}

.aq-home-hero__actions {
    margin-top: 28px;
}

.aq-home-hero__contact {
    position: relative;
    margin-top: 14px;
}

.aq-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.aq-home-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.aq-home-button--cta {
    background: var(--aq-home-cta);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 122, 26, .24);
}

.aq-home-button--cta:hover {
    background: var(--aq-home-cta-hover);
    color: #fff;
}

.aq-home-button--light {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .97);
    color: var(--aq-home-deep);
}

.aq-home-button--light:hover {
    border-color: #fff;
    background: #fff;
    color: var(--aq-home-primary-hover);
}

.aq-home-hero__contact-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 82px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    color: #1e293b;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 25, 62, .18);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aq-home-hero__contact-card:hover {
    transform: translateY(-2px);
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 25, 62, .24);
}

.aq-home-hero__contact-card--phone:hover {
    border-color: rgba(255, 122, 26, .62);
}

.aq-home-hero__contact-card--wechat:hover {
    border-color: rgba(7, 193, 96, .62);
}

.aq-home-hero__contact-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff7f0;
}

.aq-home-hero__contact-card--wechat .aq-home-hero__contact-icon {
    background: #effbf4;
}

.aq-home-hero__contact-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.aq-home-hero__contact-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.aq-home-hero__contact-label {
    color: #64748b;
    font-size: 13px;
}

.aq-home-hero__contact-copy strong {
    margin-top: 2px;
    color: #16243a;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.aq-home-hero__contact-card--phone .aq-home-hero__contact-copy strong {
    color: #f97316;
}

.aq-home-hero__contact-card--wechat .aq-home-hero__contact-copy strong {
    color: #07a94f;
}

.aq-home-hero__contact-copy small {
    margin-top: 2px;
    color: #7c8798;
    font-size: 12px;
}

.aq-home-hero__copy-status {
    position: absolute;
    left: 0;
    bottom: -24px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

/* 三大入口悬浮衔接 */
.aq-home-core {
    position: relative;
    z-index: 4;
    width: min(var(--aq-home-inner), calc(100% - 32px));
    margin: -58px auto 0;
    padding-bottom: 42px;
}

.aq-home-core__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.aq-home-core__card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
    min-height: 216px;
    padding: 24px;
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: 14px;
    background: var(--bg-card, #fff);
    box-shadow: 0 16px 42px rgba(15, 45, 85, .12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aq-home-core__card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 104, 212, .28);
    box-shadow: 0 20px 48px rgba(15, 45, 85, .16);
}

.aq-home-core__icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border: 1px solid rgba(20, 104, 212, .10);
    border-radius: 20px;
    background: #edf5ff;
}

.aq-home-core__icon img {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
}

.aq-home-core__card--safety .aq-home-core__icon {
    background: #edf5ff;
    border-color: rgba(20, 104, 212, .12);
}

.aq-home-core__card--training .aq-home-core__icon {
    background: #ebf8ff;
    border-color: rgba(8, 121, 201, .12);
}

.aq-home-core__card--red .aq-home-core__icon {
    background: #fff1eb;
    border-color: rgba(232, 90, 34, .12);
}

.aq-home-core__body h3 {
    margin: 0;
    color: var(--text-primary, #1e293b);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.aq-home-core__body p {
    margin: 10px 0 16px;
    color: var(--text-secondary, #475569);
    font-size: 14px;
    line-height: 1.75;
}

.aq-home-core__body a {
    color: var(--aq-home-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aq-home-core__body a:hover {
    color: var(--aq-home-primary-hover);
    text-decoration: none;
}

.aq-home-core__body a span {
    display: inline-block;
    margin-left: 3px;
    transition: transform .2s ease;
}

.aq-home-core__body a:hover span {
    transform: translateX(3px);
}

@media (max-width: 1100px) {
    .aq-home-hero__content {
        width: min(610px, 59%);
    }

    .aq-home-hero__title {
        font-size: clamp(40px, 4.2vw, 56px);
    }
}

@media (max-width: 900px) {
    .aq-home-hero,
    .aq-home-hero__inner {
        min-height: 620px;
    }

    .aq-home-hero__content {
        width: min(600px, 68%);
    }

    .aq-home-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 28, 63, .98) 0%,
                rgba(4, 35, 78, .96) 43%,
                rgba(7, 61, 125, .72) 72%,
                rgba(9, 73, 146, .28) 100%
            ),
            linear-gradient(180deg, rgba(4, 30, 67, .18), rgba(4, 30, 67, .38));
    }

    .aq-home-core__grid {
        grid-template-columns: 1fr;
    }

    .aq-home-core__card {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .aq-home-inner,
    .aq-home-core {
        width: min(100% - 24px, var(--aq-home-inner));
    }

    .aq-home-hero,
    .aq-home-hero__inner {
        min-height: auto;
    }

    .aq-home-hero__media img {
        object-position: 70% center;
        filter: saturate(.96) contrast(1.03);
    }

    .aq-home-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3, 27, 61, .72) 0%,
                rgba(3, 27, 61, .78) 42%,
                rgba(3, 27, 61, .90) 100%
            ),
            linear-gradient(
                90deg,
                rgba(3, 27, 61, .74) 0%,
                rgba(3, 27, 61, .48) 58%,
                rgba(3, 27, 61, .24) 100%
            );
    }

    .aq-home-hero__pattern {
        opacity: .25;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .aq-home-hero__inner {
        display: block;
        padding-top: 36px;
        padding-bottom: 88px;
    }

    .aq-home-hero__content {
        width: 100%;
        max-width: none;
    }

    .aq-home-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .aq-home-hero__title {
        font-size: clamp(31px, 9.7vw, 42px);
        line-height: 1.2;
    }

    .aq-home-hero__title span {
        white-space: normal;
    }

    .aq-home-hero__description {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.75;
    }

    .aq-home-hero__title,
    .aq-home-hero__description {
        text-shadow: 0 2px 12px rgba(0, 18, 46, .5);
    }

    .aq-home-hero__actions,
    .aq-home-hero__contact {
        grid-template-columns: 1fr;
        max-width: none;
        gap: 10px;
    }

    .aq-home-hero__actions {
        margin-top: 20px;
    }

    .aq-home-hero__contact {
        margin-top: 10px;
    }

    .aq-home-button {
        width: 100%;
    }

    .aq-home-hero__contact-card {
        min-height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .aq-home-hero__copy-status {
        position: static;
        grid-column: 1 / -1;
    }

    .aq-home-core {
        margin-top: -42px;
        padding-bottom: 28px;
    }

    .aq-home-core__card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 20px;
        border-radius: 12px;
    }

    .aq-home-core__icon {
        width: 64px;
        height: 64px;
        border-radius: 15px;
    }

    .aq-home-core__icon img {
        width: 58px;
        height: 58px;
    }

    .aq-home-core__body h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aq-home-button,
    .aq-home-hero__contact-card,
    .aq-home-core__card,
    .aq-home-core__body a span {
        transition: none;
    }
}
