

/* =========================================================
   GLOBAL
========================================================= */

#ya-hero,
#ya-hero *,
#ya-assistant,
#ya-assistant * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


/* =========================================================
   HERO
========================================================= */

#ya-hero {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    line-height: 0;

    background: #fff;
}


#ya-hero-picture {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}


#ya-hero-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    object-fit: contain;

    object-position: center;
}


#ya-hero-stage {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}


/* =========================================================
   WHOLE BANNER CLICK
========================================================= */

#ya-hero-inquiry {
    position: absolute;

    inset: 0;

    display: block;

    z-index: 2;

    cursor: pointer;

    background: transparent;

    pointer-events: auto;
}


/* =========================================================
   EXPLORE PRODUCTS CLICK AREA - PC
========================================================= */

#ya-hero-products {
    position: absolute;

    /*
       EXPLORE PRODUCTS HOTSPOT - DESKTOP
       This layer is deliberately above the full-banner inquiry link.
       If the artwork changes later, only these four percentages need tuning.
    */
    left: 4.0%;
    top: 68.0%;

    width: 22%;
    height: 15%;

    z-index: 10;

    display: block;

    background: transparent;

    border-radius: 100px;

    cursor: pointer;

    pointer-events: auto;
}


/* =========================================================
   MOBILE HERO
========================================================= */

@media screen and (max-width: 768px) {

    #ya-hero {
        width: 100%;

        height: auto;

        overflow: visible;

        /* UEESHOP mobile header overlaps the beginning of this custom block.
           Push the whole hero content below that overlap without cropping the image. */
        padding-top: 72px;
        background: #fff;
    }


    #ya-hero-picture {
        width: 100%;

        height: auto;
    }


    #ya-hero-image {
        width: 100%;

        height: auto;

        object-fit: contain;

        object-position: center;
    }


    /*
       MOBILE EXPLORE PRODUCTS

       手机版1080×1200
    */

    #ya-hero-products {
        /*
           New mobile artwork: 900 × 1000.
           EXPLORE PRODUCTS is near the bottom-left of the image.
           Keep this hotspot tight so the rest of the banner still opens inquiry.
        */
        left: 4.5%;

        top: 83.5%;

        width: 34%;

        height: 7%;

        z-index: 30;
    }

}


/* =========================================================
   ASSISTANT
========================================================= */

#ya-assistant {
    position: fixed;

    right: 24px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 999999;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: normal;
}


/* =========================================================
   ROBOT
========================================================= */

#ya-robot {
    position: relative;

    display: block;

    width: 105px;

    margin-left: auto;

    cursor: grab;

    user-select: none;

    -webkit-user-select: none;

    touch-action: none;

    transform-origin: center bottom;

    animation:
        ya-float
        2.6s
        ease-in-out
        infinite !important;

    will-change: transform;
}


#ya-robot:active {
    cursor: grabbing;
}

@media (hover:hover) {
    #ya-robot:hover {
        animation-play-state: paused !important;
        transform: translateY(-5px) scale(1.06);
    }
}


#ya-robot img {
    display: block;

    width: 105px;
    height: auto;

    margin: 0;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;

    filter:
        drop-shadow(
            0 8px 10px
            rgba(75,45,35,.18)
        );
}


/* =========================================================
   ROBOT FLOAT
========================================================= */

@keyframes ya-float {

    0%,
    100% {
        transform: translate3d(0,0,0) rotate(0deg);
    }

    25% {
        transform: translate3d(-2px,-6px,0) rotate(-1.5deg);
    }

    50% {
        transform: translate3d(0,-13px,0) rotate(0deg);
    }

    75% {
        transform: translate3d(2px,-6px,0) rotate(1.5deg);
    }

}


#ya-robot.dragging {
    animation: none !important;
}


/* =========================================================
   ROBOT JUMP
========================================================= */

#ya-robot.ya-jump {

    animation:
        ya-jump
        .8s
        cubic-bezier(.28,.84,.42,1);
}


@keyframes ya-jump {

    0% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(-25px);
    }

    55% {
        transform: translateY(-28px);
    }

    75% {
        transform: translateY(0);
    }

    88% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================================
   NEED HELP
========================================================= */

#ya-help {
    display: block;

    margin: 2px auto 0;

    padding: 7px 14px;

    border:
        1px solid
        rgba(180,120,100,.15);

    border-radius: 50px;

    background:
        rgba(255,255,255,.97);

    color: #8b5a46;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 18px
        rgba(70,40,30,.14);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


#ya-help:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 22px
        rgba(70,40,30,.18);
}


/* =========================================================
   SPEECH BUBBLE
========================================================= */

#ya-greeting {

    position: absolute;

    right: 90px;
    top: 0;

    width: 245px;

    padding: 15px 17px;

    background:
        rgba(255,255,255,.98);

    border:
        1px solid
        rgba(190,130,110,.20);

    border-radius:
        20px 20px 5px 20px;

    box-shadow:
        0 12px 35px
        rgba(65,35,28,.16);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(10px)
        scale(.94);

    transform-origin: right center;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    cursor: pointer;

    touch-action: auto;
}


#ya-greeting.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(0)
        scale(1);
}


/* Bubble arrow */

#ya-greeting:after {

    content: "";

    position: absolute;

    right: -8px;
    top: 31px;

    width: 16px;
    height: 16px;

    background: #fff;

    transform: rotate(45deg);

    border-top:
        1px solid
        rgba(190,130,110,.15);

    border-right:
        1px solid
        rgba(190,130,110,.15);
}


.ya-greeting-title {

    position: relative;

    z-index: 2;

    margin-bottom: 5px;

    color: #8c5944;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.3;
}


.ya-greeting-text {

    position: relative;

    z-index: 2;

    color: #65554e;

    font-size: 12px;

    line-height: 1.45;
}


.ya-greeting-action {

    position: relative;

    z-index: 2;

    display: inline-block;

    margin-top: 7px;

    color: #b57459;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   MENU
========================================================= */

#ya-menu {

    position: absolute;

    right: 0;
    top: 125px;

    width: 320px;

    overflow: hidden;

    background: #fff;

    border:
        1px solid
        rgba(185,125,105,.17);

    border-radius: 21px;

    box-shadow:
        0 18px 50px
        rgba(60,32,25,.21);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(12px)
        scale(.94);

    transform-origin: top right;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    touch-action: auto;
}


#ya-menu .ya-online-chat {
    width: 100%;
    margin: 0;
    border: 0;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}


#ya-menu.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   MENU HEADER
========================================================= */

.ya-menu-head {

    position: relative;

    padding:
        20px 20px 17px;

    background:
        linear-gradient(
            135deg,
            #fff9f6,
            #f8e9e4
        );
}


.ya-brand {

    margin-bottom: 7px;

    color: #ad755d;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


.ya-menu-title {

    margin-bottom: 5px;

    color: #432f28;

    font-size: 18px;
    font-weight: 800;
}


.ya-menu-sub {

    color: #79645b;

    font-size: 12px;

    line-height: 1.4;
}


#ya-close {

    position: absolute;

    right: 11px;
    top: 11px;

    width: 31px;
    height: 31px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255,255,255,.85);

    color: #77635b;

    font-size: 19px;

    cursor: pointer;
}


/* =========================================================
   OPTIONS
========================================================= */

.ya-options {

    padding: 10px;
}


.ya-option {

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 61px;

    padding: 8px 10px;

    border-radius: 14px;

    color: #332722;

    text-decoration: none !important;

    transition:
        background .18s ease,
        transform .18s ease;
}


.ya-option:hover {

    background: #fff6f2;

    transform: translateX(3px);
}


.ya-option-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background: #faece7;

    font-size: 20px;
}


.ya-option-text {

    flex: 1;

    min-width: 0;
}


.ya-option-text strong {

    display: block;

    margin-bottom: 3px;

    color: #3d2c26;

    font-size: 14px;
}


.ya-option-text small {

    display: block;

    color: #89736a;

    font-size: 11px;

    line-height: 1.3;
}


.ya-arrow {

    color: #ba8168;

    font-size: 24px;
}


.ya-menu-footer {

    padding:
        11px 15px 13px;

    border-top:
        1px solid
        #f1e7e3;

    color: #9a8176;

    text-align: center;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .6px;
}


/* =========================================================
   MOBILE ROBOT
========================================================= */

@media screen and (max-width: 768px) {

    #ya-assistant {

        right: 8px;

        top: 55%;

        transform:
            translateY(-50%);
    }


    #ya-robot {

        width: 72px;
    }


    #ya-robot img {

        width: 72px;
    }


    #ya-help {

        padding:
            5px 9px;

        font-size:
            8px;
    }


    #ya-greeting {

        right: 62px;
        top: 0;

        width: 185px;

        max-width:
            calc(100vw - 100px);

        padding:
            11px 12px;

        border-radius:
            15px 15px 4px 15px;
    }


    #ya-greeting:after {

        top: 25px;

        right: -6px;

        width: 13px;
        height: 13px;
    }


    .ya-greeting-title {

        margin-bottom: 3px;

        font-size: 13px;
    }


    .ya-greeting-text {

        font-size: 10px;

        line-height: 1.35;
    }


    .ya-greeting-action {

        margin-top: 5px;

        font-size: 9px;
    }


    /* 手机菜单固定中央 */

    #ya-menu {

        position: fixed;

        left: 50%;
        right: auto;

        top: 50%;

        width: 290px;

        max-width:
            calc(100vw - 24px);

        max-height:
            calc(100vh - 40px);

        overflow-y: auto;

        transform:
            translate(-50%,-50%)
            scale(.94);
    }


    #ya-menu.show {

        transform:
            translate(-50%,-50%)
            scale(1);
    }

}


/* User explicitly wants the assistant to remain visibly animated.
   Do not disable the robot animation here. */

