/* ==========================================================
   Flyfy 首页 - 响应式
   只放断点内的覆盖规则，跟随 home.css 加载，避免主文件过长。
   ========================================================== */

@media (max-width: 1199.98px) {
    .home-core__row {
        gap: 42px;
    }

    .home-core__copy,
    .home-core__row--reverse .home-core__copy {
        padding-right: 0;
        padding-left: 0;
    }

    .home-industries__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hero {
        align-items: center;
        min-height: clamp(600px, 78svh, 720px);
        padding: 104px 0 54px;
    }

    .hero > .container {
        width: 100%;
        max-width: none;
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero__layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
        gap: clamp(20px, 3vw, 36px);
    }

    .hero-copy,
    html[lang^="en"] .hero-copy {
        width: 100%;
        max-width: 560px;
    }

    .hero__visual {
        justify-self: end;
        width: 100%;
        max-width: 500px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 5.2vw, 3.25rem);
        line-height: 1.08;
        letter-spacing: -.04em;
    }

    html[lang^="en"] .hero-title {
        font-size: clamp(2.2rem, 4.8vw, 3rem);
        line-height: 1.07;
    }

    .hero-desc {
        max-width: 540px;
        margin-top: 22px;
        font-size: clamp(.95rem, 1.55vw, 1.05rem);
        line-height: 1.72;
    }

    .hero-price {
        margin-top: 24px;
    }

    .hero-actions {
        margin-top: 26px;
    }

    .home-value {
        padding: 66px 0 60px;
    }

    .home-section-heading {
        margin-bottom: 34px;
    }

        .home-section-heading h2 {
            font-size: clamp(1.95rem, 4.7vw, 2.45rem);
        }

    .home-value__grid {
        gap: 20px;
    }

    .home-value__item {
        min-height: 236px;
        padding: 24px 24px 26px;
        border-radius: 18px;
    }

    .home-value__icon-frame {
        width: 84px;
        height: 84px;
        margin-bottom: 14px;
    }

    .home-value__item h3 {
        font-size: 1.05rem;
    }

    .home-value__item p {
        font-size: 1rem;
    }

    .home-core {
        padding: 60px 0 34px;
    }

    .home-core__row {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 28px;
        border-radius: 20px;
    }

    .home-core__row--reverse {
        grid-template-columns: 1fr;
    }

    .home-core__copy,
    .home-core__row--reverse .home-core__copy {
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
        max-width: 680px;
        padding: 0;
    }

    .home-core__visual {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        width: 100%;
        max-width: 760px;
    }

    .home-core__row--reverse .home-core__visual {
        grid-column: 1;
        grid-row: 2;
    }

    .home-demo {
        padding: 58px 0 65px;
    }

    .home-industries {
        padding: 58px 0 54px;
    }

    .home-industries__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-faq {
        padding-top: 58px;
    }
}

@media (max-width: 719.98px) {
    .hero {
        align-items: flex-start;
        min-height: 0;
        padding: 112px 0 50px;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-copy,
    html[lang^="en"] .hero-copy {
        width: 100%;
        max-width: 680px;
    }

    .hero__visual {
        justify-self: center;
        width: 100%;
        max-width: 680px;
    }

    .hero-title {
        font-size: clamp(2.65rem, 8.8vw, 3.5rem);
    }

    html[lang^="en"] .hero-title {
        font-size: clamp(2.2rem, 7.5vw, 3rem);
    }

    .hero-desc {
        max-width: 620px;
        margin-top: 24px;
        font-size: clamp(.98rem, 2.2vw, 1.1rem);
        line-height: 1.8;
    }

    .hero-actions {
        margin-top: 28px;
    }

    .home-industries__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-industries__stage {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 108px 0 42px;
    }

    .hero-title {
        font-size: clamp(2.65rem, 11.8vw, 3.3rem);
        line-height: 1.12;
        letter-spacing: .052em;
    }

    html[lang^="en"] .hero-title {
        font-size: clamp(2.15rem, 8.8vw, 2.6rem);
        line-height: 1.06;
    }

    html[lang^="ko"] .hero-title {
        font-size: clamp(2.05rem, 8.9vw, 2.45rem);
        line-height: 1.16;
        letter-spacing: .015em;
    }

    html[lang^="ko"] .hero-title-line {
        font-size: 1em;
    }

    html[lang^="ko"] .hero-title-accent {
        font-size: .92em;
    }

    html[lang^="ja"] .hero-title {
        font-size: clamp(1.95rem, 8.2vw, 2.3rem);
        line-height: 1.16;
        letter-spacing: .01em;
    }

    html[lang^="ja"] .hero-title-line {
        font-size: 1em;
    }

    html[lang^="ja"] .hero-title-accent {
        font-size: .92em;
    }

    .hero-desc {
        margin-top: 22px;
        font-size: .98rem;
        line-height: 1.8;
    }

    .hero-price {
        gap: 6px;
        margin-top: 22px;
    }

        .hero-price .amount {
            font-size: 2.35rem;
        }

        .hero-price .unit {
            font-size: .85rem;
        }

    .hero-price-note {
        margin-top: 7px;
        font-size: .83rem;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 22px;
    }

        .hero-actions .btn {
            min-height: 54px;
            padding: 0 22px;
            font-size: .94rem;
        }

    .home-value {
        padding: 54px 0 46px;
    }

    .home-section-heading {
        margin-bottom: 28px;
    }

        .home-section-heading h2 {
            font-size: 1.82rem;
            line-height: 1.2;
        }

        .home-section-heading p {
            margin-top: 10px;
            font-size: .93rem;
            line-height: 1.65;
        }

    .home-value__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-value__item {
        min-height: 0;
        padding: 22px 22px 24px;
        border-radius: 16px;
    }

    .home-value__icon-frame {
        width: 76px;
        height: 76px;
        margin-bottom: 12px;
    }

    .home-value__item h3 {
        margin-bottom: 7px;
        font-size: 1.38rem;
    }

    .home-value__item p {
        font-size: .96rem;
        line-height: 1.6;
    }

    .home-core {
        padding: 50px 0 22px;
    }

    .home-core__row {
        gap: 18px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .home-core__list {
        gap: 16px;
    }

    .home-core__copy h3 {
        font-size: 1.55rem;
    }

    .home-core__copy > p {
        margin-top: 11px;
        font-size: .95rem;
        line-height: 1.68;
    }

    .home-core__checks {
        margin-top: 17px;
    }

    .home-core__visual {
        padding: 0;
    }

    .home-core__checks li {
        font-size: .92rem;
        line-height: 1.58;
    }

    .home-demo {
        padding: 48px 0 54px;
    }

    .home-demo__frame {
        border-radius: 16px;
    }

    .home-industries {
        padding: 48px 0 42px;
    }

    .home-industries__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-industries__stage {
        --home-industries-gutter: 18px;
    }

    .home-faq {
        padding: 48px 0 20px;
    }

    .home-faq .stock-accordion .accordion-button {
        padding: 14px;
        font-size: .86rem;
    }

    .home-faq .stock-accordion .accordion-body {
        padding: 14px;
        font-size: .84rem;
    }

    .cta-band {
        padding: 44px 22px;
    }

    :is(body[data-page="home"], body[data-page="product"]) .cta-band {
        border-radius: 18px;
    }

    :is(body[data-page="home"], body[data-page="product"]) .cta-band h2 {
        font-size: clamp(1.55rem, 7.2vw, 1.9rem);
        line-height: 1.34;
        text-wrap: balance;
    }

    :is(body[data-page="home"], body[data-page="product"]) .cta-band::after {
        top: -150px;
        right: -180px;
        width: 310px;
        height: 310px;
    }

    :is(body[data-page="home"], body[data-page="product"]) .cta-band .btn-stock-light {
        padding-inline: 28px;
    }
}

@media (max-width: 991.98px) {
    .stock-home-hero {
        min-height: 580px;
    }

    .stock-home-hero__media img {
        object-position: 64% center;
    }

    .stock-home-hero__media::after {
        background: linear-gradient(90deg,
            rgba(244, 248, 255, .98) 0%,
            rgba(244, 248, 255, .9) 40%,
            rgba(244, 248, 255, .38) 72%,
            rgba(244, 248, 255, .06) 100%);
    }

    .stock-home-hero__copy {
        max-width: 570px;
    }

    .stock-home-principles,
    .stock-home-products,
    .stock-home-advantages {
        padding-top: 58px;
        padding-bottom: 46px;
    }

    .stock-home-principles__grid,
    .stock-home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-home-principles__grid > li:last-child,
    .stock-home-products__grid > li:last-child {
        grid-column: 1 / -1;
        width: min(100%, calc(50% - 10px));
        margin-inline: auto;
    }

    .stock-home-cta {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }

    .stock-home-cta__copy {
        padding: 38px 34px;
    }
}

@media (max-width: 767.98px) {
    .stock-home-hero {
        min-height: 620px;
        align-items: flex-start;
    }

    .stock-home-hero__media img {
        object-position: 68% center;
    }

    .stock-home-hero__media::after {
        background: linear-gradient(180deg,
            rgba(244, 248, 255, .98) 0%,
            rgba(244, 248, 255, .9) 52%,
            rgba(244, 248, 255, .42) 78%,
            rgba(244, 248, 255, .08) 100%);
    }

    .stock-home-hero__container {
        padding-top: 116px;
        padding-bottom: 46px;
    }

    .stock-home-hero__copy {
        max-width: 100%;
    }

    .stock-home-hero__copy > p {
        max-width: 540px;
        margin-top: 20px;
    }

    .stock-home-principles__grid,
    .stock-home-products__grid,
    .stock-home-advantages__grid {
        grid-template-columns: 1fr;
    }

    .stock-home-principles__grid > li:last-child,
    .stock-home-products__grid > li:last-child {
        grid-column: auto;
        width: auto;
    }

    .stock-home-principle {
        min-height: 0;
    }

    .stock-home-advantage {
        grid-template-columns: minmax(0, 1fr) 120px;
        min-height: 168px;
    }

    .stock-home-advantage img {
        width: 120px;
        height: 120px;
    }

    .stock-home-cta {
        grid-template-columns: 1fr;
    }

    .stock-home-cta__media {
        height: 240px;
    }

    .stock-home-cta__media::after {
        background: linear-gradient(180deg,
            rgba(231, 240, 255, 0) 0%,
            rgba(231, 240, 255, 0) 72%,
            #e7f0ff 100%);
    }

    .stock-home-cta__copy {
        align-items: center;
        padding: 36px 24px 40px;
        text-align: center;
    }

    .stock-home-cta__copy p {
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .stock-home-hero {
        min-height: 610px;
    }

    .stock-home-hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.55rem);
        line-height: 1.08;
    }

    html[lang^="ko"] .stock-home-hero h1,
    html[lang^="ja"] .stock-home-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.14;
    }

    .stock-home-hero__copy > p {
        font-size: .98rem;
        line-height: 1.72;
    }

    .stock-home-hero__actions {
        gap: 10px;
        margin-top: 24px;
    }

    .stock-home-hero__actions .btn {
        min-height: 48px;
        padding-inline: 22px;
        font-size: .92rem;
    }

    .stock-home-section-heading {
        margin-bottom: 28px;
    }

    .stock-home-section-heading h2 {
        font-size: 1.9rem;
    }

    .stock-home-section-heading p {
        margin-top: 9px;
        font-size: .94rem;
    }

    .stock-home-principle {
        padding: 24px 22px 26px;
    }

    .stock-home-principle img {
        width: 92px;
        height: 92px;
    }

    .stock-home-product__body {
        padding: 22px 18px 24px;
    }

    .stock-home-advantage {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 12px;
        padding: 22px 18px 22px 22px;
    }

    .stock-home-advantage img {
        width: 96px;
        height: 96px;
    }

    .stock-home-advantage__copy h3 {
        font-size: 1.28rem;
    }

    .stock-home-advantage__copy p {
        margin-top: 8px;
        font-size: .92rem;
        line-height: 1.62;
    }

    .stock-home-cta-section {
        padding-bottom: 58px;
    }

    .stock-home-cta__media {
        height: 190px;
    }

    .stock-home-cta__copy h2 {
        font-size: 1.85rem;
    }

    .stock-home-cta__copy p {
        font-size: .94rem;
    }
}

@media (max-width: 420px) {
    .stock-home-hero {
        min-height: 650px;
    }

    .stock-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .stock-home-hero__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stock-home-hero__actions .btn,
    .stock-home-product__cta,
    .stock-home-cta__button,
    .stock-home-hero__primary .bi,
    .stock-home-cta__button .bi {
        transition: none;
    }
}
