/* ==========================================================
   Flyfy · 产品总览
   产品组合首屏、产品介绍、共同原则与试用入口
   ========================================================== */

.products-hero {
    position: relative;
    isolation: isolate;
    padding: 82px 0 66px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.products-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(96, 123, 190, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 123, 190, .055) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 54%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 54%, #000 100%);
}

.products-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(32px, 4vw, 58px);
}

.products-hero__copy {
    max-width: 600px;
}

.products-hero h1 {
    margin: 0;
    color: #10182e;
    font-size: clamp(2.8rem, 4.5vw, 4.65rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
}

.products-hero__copy > p {
    max-width: 570px;
    margin: 24px 0 0;
    color: #46536d;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
}

html[lang^="zh"] .products-hero h1 {
    font-size: clamp(2.5rem, 3.6vw, 3.95rem);
    line-height: 1.1;
}

html[lang^="ko"] .products-hero h1,
html[lang^="ja"] .products-hero h1 {
    font-size: clamp(2.35rem, 3.6vw, 3.9rem);
    line-height: 1.14;
}

.products-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.products-hero__actions .btn,
.products-product__button,
.products-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}

.products-hero__primary {
    color: #fff;
    border: 0;
    background: linear-gradient(100deg, #4282ef 0%, #5268ec 66%, #5a5be4 100%);
    box-shadow: 0 14px 28px rgba(65, 99, 207, .25);
}

.products-hero__primary:hover,
.products-hero__primary:active {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(52, 83, 190, .32);
}

.products-hero__primary .bi,
.products-product__button .bi,
.products-cta__button .bi {
    transition: transform .2s ease;
}

.products-hero__primary:hover .bi,
.products-product__button:hover .bi,
.products-cta__button:hover .bi {
    transform: translateX(4px);
}

.products-hero__secondary {
    color: #263a67;
    border: 1px solid #c9d7ee;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 24px rgba(55, 81, 140, .06);
}

.products-hero__secondary:hover,
.products-hero__secondary:active {
    color: #375fce;
    border-color: #aebfe4;
    background: #fff;
    transform: translateY(-2px);
}

.products-hero__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 430px;
}

.products-hero__shot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px;
    text-decoration: none;
    transition: transform .24s ease, filter .24s ease;
}

.products-hero__shot:hover {
    transform: translateY(-4px);
    filter: brightness(1.02);
}

.products-hero__shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(55, 75, 137, .14));
}

.products-hero__shot--stock {
    grid-row: 1 / 3;
}

.products-hero__shot--crm,
.products-hero__shot--attend {
    align-self: center;
}

.products-section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.products-section-heading h2 {
    margin: 0;
    color: #11192f;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: 0;
    text-wrap: balance;
}

.products-section-heading p {
    margin: 12px auto 0;
    color: #5a657d;
    font-size: 1rem;
    line-height: 1.72;
}

.products-suite {
    padding: 82px 0 50px;
    background: #f5f8ff;
}

.products-suite__list {
    border-top: 1px solid #dfe7f5;
}

.products-product {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(42px, 6vw, 88px);
    padding: 48px 0;
    border-bottom: 1px solid #dfe7f5;
    scroll-margin-top: 90px;
}

.products-product--reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.products-product--reverse .products-product__visual {
    grid-column: 2;
    grid-row: 1;
}

.products-product--reverse .products-product__copy {
    grid-column: 1;
    grid-row: 1;
}

.products-product__visual {
    min-width: 0;
    margin: 0;
    padding: clamp(14px, 2vw, 22px);
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, #eef4ff 0%, #e6eef9 100%);
}

.products-product__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.products-product__copy {
    max-width: 590px;
}

.products-product__index {
    display: block;
    margin-bottom: 10px;
    color: #5773d8;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
}

.products-product__copy h3 {
    margin: 0;
    color: #10182e;
    font-size: clamp(2rem, 2.8vw, 2.65rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0;
}

.products-product__copy > p {
    max-width: 520px;
    margin: 13px 0 0;
    color: #56627b;
    font-size: 1rem;
    line-height: 1.72;
}

.products-product__features {
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
}

.products-product__features li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #303c56;
    font-size: .96rem;
    line-height: 1.55;
}

.products-product__features i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    color: #fff;
    background: #5b74dc;
    font-size: .72rem;
}

.products-product__button {
    width: min(100%, 260px);
    color: #3f61ca;
    border: 1px solid #526fd1;
    background: #fff;
}

.products-product__button:hover,
.products-product__button:active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(100deg, #4d7ef2, #5862e5);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(64, 91, 190, .2);
}

.products-principles {
    padding: 76px 0 68px;
    background: #fff;
}

.products-principles__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
}

.products-principles__list li {
    min-width: 0;
    padding: 26px 24px 8px;
    border-top: 2px solid #dce5f6;
}

.products-principles__list img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.products-principles__list h3 {
    margin: 10px 0 0;
    color: #11192f;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.products-principles__list p {
    max-width: 340px;
    margin: 9px 0 0;
    color: #5b6680;
    font-size: .96rem;
    line-height: 1.68;
}

.products-cta-section {
    padding: 82px 0;
    background: #f5f8ff;
}

.products-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding: 46px clamp(28px, 5vw, 64px);
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(115deg, #457ded 0%, #5169e8 55%, #5b55d7 100%);
    box-shadow: 0 24px 50px rgba(60, 80, 174, .2);
}

.products-cta > div {
    max-width: 730px;
}

.products-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

.products-cta p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: .98rem;
    line-height: 1.68;
}

.products-cta__button {
    flex: 0 0 auto;
    color: #4562ce;
    border: 1px solid rgba(255, 255, 255, .7);
    background: #fff;
    box-shadow: 0 12px 26px rgba(28, 42, 120, .18);
}

.products-cta__button:hover,
.products-cta__button:active {
    color: #334ebd;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(28, 42, 120, .24);
}

@media (max-width: 991.98px) {
    .products-hero {
        padding: 64px 0 54px;
    }

    .products-hero__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .products-hero__copy {
        max-width: 720px;
    }

    .products-hero__gallery {
        width: min(100%, 760px);
        min-height: 0;
        margin-inline: auto;
        grid-template-rows: repeat(2, 200px);
    }

    .products-product,
    .products-product--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0;
    }

    .products-product--reverse .products-product__visual,
    .products-product--reverse .products-product__copy {
        grid-column: 1;
        grid-row: auto;
    }

    .products-product__visual {
        width: min(100%, 680px);
        justify-self: center;
    }

    .products-product__copy {
        max-width: 680px;
    }

    .products-principles__list {
        gap: 20px;
    }

    .products-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }
}

@media (max-width: 767.98px) {
    .products-hero {
        padding-top: 52px;
    }

    .products-hero__gallery {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        grid-template-rows: repeat(2, 100px);
        gap: 6px;
    }

    .products-hero__shot {
        padding: 0;
    }

    .products-hero__shot--stock {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .products-hero__shot--stock img {
        max-height: none;
    }

    .products-hero__shot--crm,
    .products-hero__shot--attend {
        max-height: 100px;
    }

    .products-hero__shot--crm img,
    .products-hero__shot--attend img {
        max-height: 100px;
    }

    .products-principles__list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .products-principles__list li {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 18px;
        padding-top: 20px;
    }

    .products-principles__list img {
        grid-row: 1 / 3;
        width: 82px;
        height: 82px;
    }

    .products-principles__list h3 {
        margin-top: 4px;
    }

    .products-principles__list p {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .products-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.35rem);
        line-height: 1.08;
    }

    html[lang^="ko"] .products-hero h1,
    html[lang^="ja"] .products-hero h1 {
        font-size: clamp(2.15rem, 9.5vw, 2.9rem);
        line-height: 1.15;
    }

    .products-hero__copy > p {
        margin-top: 18px;
        font-size: .98rem;
        line-height: 1.72;
    }

    .products-hero__actions {
        gap: 9px;
        margin-top: 24px;
    }

    .products-hero__actions .btn,
    .products-product__button,
    .products-cta__button {
        min-height: 48px;
        padding-inline: 22px;
        font-size: .92rem;
    }

    .products-section-heading {
        margin-bottom: 28px;
    }

    .products-section-heading h2 {
        font-size: 1.9rem;
    }

    .products-section-heading p {
        margin-top: 9px;
        font-size: .94rem;
    }

    .products-suite {
        padding-top: 56px;
    }

    .products-product {
        gap: 22px;
        padding: 32px 0;
    }

    .products-product__visual {
        padding: 8px;
    }

    .products-product__copy h3 {
        font-size: 1.95rem;
    }

    .products-product__copy > p {
        margin-top: 10px;
        font-size: .94rem;
    }

    .products-product__features {
        margin: 20px 0 24px;
    }

    .products-product__button {
        width: 100%;
    }

    .products-principles {
        padding: 56px 0 50px;
    }

    .products-principles__list li {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 14px;
    }

    .products-principles__list img {
        width: 68px;
        height: 68px;
    }

    .products-cta-section {
        padding-bottom: 58px;
    }

    .products-cta {
        gap: 22px;
        padding: 34px 24px 38px;
    }

    .products-cta h2 {
        font-size: 1.78rem;
    }

    .products-cta p {
        font-size: .94rem;
    }

    .products-cta__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-hero__actions .btn,
    .products-hero__shot,
    .products-product__button,
    .products-cta__button,
    .products-hero__primary .bi,
    .products-product__button .bi,
    .products-cta__button .bi {
        transition: none;
    }
}
