/* 注册 Objectivity 自定义字体 */
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-ThinSlanted.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-LightSlanted.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-RegularSlanted.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-MediumSlanted.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-BoldSlanted.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-ExtraBoldSlanted.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-BlackSlanted.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-Super.otf') format('opentype');
    font-weight: 950;
    font-style: normal;
}
@font-face {
    font-family: 'Objectivity';
    src: url('../fonts/Objectivity-SuperSlanted.otf') format('opentype');
    font-weight: 950;
    font-style: italic;
}

/* 全局应用自定义字体 */
html, body, h1, h2, h3, h4, h5, h6, p, a, span, li, input, button, textarea {
    font-family: 'Objectivity', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Wintemp Hotspot Widget Styles - Carousel Version */

/* Splide Adjustments */
.wintemp-hotspot-carousel.splide {
    width: 100%;
    position: relative;
    padding-top: 60px; /* Space for header */
    padding-bottom: 190px;
}

.wintemp-hotspot-carousel .header-title-wrapper {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.wintemp-hotspot-carousel .header-title {
    font-size: 48px;
    line-height: 64px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.wintemp-hotspot-carousel .header-description {
    font-size: 16px;
    color: #8C8C8C;
    margin: 0;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wintemp-hotspot-carousel .splide__controls {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 10;
}

.wintemp-hotspot-carousel .splide__custom-pagination {
    font-size: 16px;
    color: #DADADA;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.wintemp-hotspot-carousel .splide__arrow {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    position: static;
    transform: none;
    width: auto;
    height: auto;
}

.wintemp-hotspot-carousel .splide__arrow svg {
    width: 10px;
    height: 16px;
    display: block;
    transform: scaleX(1);
}

.wintemp-hotspot-carousel .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wintemp-hotspot-carousel .splide__arrow--next:hover,
.wintemp-hotspot-carousel .splide__arrow--prev:hover,
.wintemp-hotspot-carousel .splide__arrow--prev:focus,
.wintemp-hotspot-carousel .splide__arrow--next:focus {
    /* No extra transform needed */
    background-color: transparent;
}

/* Hide mobile elements by default on PC */
.wintemp-hotspot-mobile-list,
.mobile-decorative-text {
    display: none;
}

/* Main Container */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Image Placeholder & Background */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* Background Icon Behind Product */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-icon-wrapper {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    line-height: 1;
    width: 90%;
    height: 150px;
    color: rgba(255, 255, 255, 0.05); /* Very subtle by default */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .bg-icon-wrapper {
    animation: wintemp-fadeIn 1.5s ease-out 0.2s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-icon-wrapper i,
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-icon-wrapper svg {
    width: 100%;
    height: auto;
    fill: currentColor;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .image-placeholder img {
    width: 27vw;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    position: relative;
    top: 20px;
    z-index: 5;
    transform-origin: center center;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .image-placeholder img {
    animation: wintemp-rotateYScaleIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-decoration {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    background: #D0D0D0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-circle-small {
    width: 425px;
    height: 425px;
    z-index: 3;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .bg-circle-small {
    animation: wintemp-fadeInCircleSmall 1.2s ease-out 0.2s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-circle-large {
    width: 624px;
    height: 624px;
    z-index: 2;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .bg-circle-large {
    animation: wintemp-fadeInCircleLarge 1.5s ease-out forwards;
}

/* Hotspot Base */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot {
    position: absolute;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* The Dot */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .dot-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transform: translate(-50%, -50%);
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .dot-center {
    width: 14px;
    height: 14px;
    background-color: #ff6600;
    border-radius: 50%;
    opacity: 0;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .dot-center {
    animation: wintemp-popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .dot-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 102, 0, 0.22);
    border-radius: 50%;
    opacity: 0;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .dot-ring {
    animation: wintemp-fadeIn 0.5s ease-out 1.2s forwards;
}

/* SVG Polyline */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .polyline-svg {
    position: absolute;
    overflow: visible;
    pointer-events: none;
    z-index: 15;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.right .polyline-svg {
    top: -50px;
    left: 0px;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.left .polyline-svg {
    top: -50px;
    right: 0px;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .polyline-path {
    fill: none;
    stroke: rgba(255,255,255,0.6);
    stroke-width: 1;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .polyline-path {
    animation: wintemp-drawLine 1s ease-out 1.7s forwards;
}

/* Content Container */
.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .content-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    opacity: 0;
    z-index: 25;
    width: 25vw;
    gap: 24px;
    pointer-events: auto;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .content-wrapper {
    animation: wintemp-fadeIn 0.5s ease-out 2.7s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.right .content-wrapper {
    top: -130px;
    left: 60px;
    text-align: left;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.left .content-wrapper {
    top: -130px;
    right: 60px;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    font-size: 24px;
    color: #ff6600;
    margin-right: 0;
    transform: scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .icon {
    animation: wintemp-iconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.7s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.left .icon {
    margin-right: 0;
    margin-left: 0;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .text-content {
    opacity: 0;
    transform: translateX(-15px);
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .text-content {
    animation: wintemp-textSlideRight 0.5s ease-out 2.9s forwards;
    width: max-content;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .hotspot.left .text-content {
    transform: translateX(15px);
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container.is-visible .hotspot.left .text-content {
    animation: wintemp-textSlideLeft 0.5s ease-out 2.9s forwards;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .text-content h4 {
    margin: 0 0 3px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.elementor-widget-wintemp_hotspot .wintemp-hotspot-container .text-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

/* Animations */
@keyframes wintemp-rotateYScaleIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes wintemp-fadeInCircleSmall {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
}

@keyframes wintemp-fadeInCircleLarge {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes wintemp-popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wintemp-drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes wintemp-fadeIn {
    to { opacity: 1; }
}

@keyframes wintemp-iconPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes wintemp-textSlideRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wintemp-textSlideLeft {
    to { opacity: 1; transform: translateX(0); }
}

#offcanvas .ct-panel-content-inner>*:last-child {
    width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .wintemp-hotspot-carousel.splide {
        padding-top: 93px;
        padding-bottom: 85px;
    }

    .wintemp-hotspot-carousel .header-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .wintemp-hotspot-carousel .header-description {
        font-size: 12px;
    }

    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container {
        height: auto !important;
        min-height: auto !important;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .image-placeholder {
        position: relative;
        height: auto;
        min-height: 95vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 20px;
    }

    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .image-placeholder img {
        width: 65vw;
        height: auto;
        max-height: 330px;
        top: 0;
        z-index: 5;
        object-fit: contain;
    }

    /* Use PC Background SVG for Mobile Decoration */
    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-icon-wrapper {
        display: flex !important;
        position: absolute;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%) !important;
        width: 100% !important; /* Make it large */
        height: auto !important;
        z-index: 4;
        color: #ff6600 !important; /* Design color */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-bottom: -10px;
    }

    .splide__slide.is-active .bg-icon-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
        animation: wintemp-mobileSvgFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards !important;
    }

    .splide__slide:not(.is-active) .bg-icon-wrapper {
        opacity: 0 !important;
        visibility: hidden !important;
        animation: none !important;
    }

    @keyframes wintemp-mobileSvgFadeIn {
        from { opacity: 0; transform: translate(-50%, 20px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-circle-small {
        width: 56vw;
        height: 56vw;
        top: 45%;
    }
    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .bg-circle-large {
        width: 83vw;
        height: 83vw;
        top: 45%;
    }

    /* Hide PC hotspot elements */
    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .dot-wrapper,
    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .polyline-svg,
    .elementor-widget-wintemp_hotspot .wintemp-hotspot-container .content-wrapper {
        display: none !important;
    }

    /* Mobile Hotspots List */
    .wintemp-hotspot-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px 30px;
        text-align: left;
        width: 100%;
        visibility: hidden;
        opacity: 0;
    }

    .splide__slide.is-active .wintemp-hotspot-mobile-list {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.5s ease-out 0.8s;
        padding: 0 10px;
    }

    .mobile-hotspot-item {
        display: flex;
        align-items: start;
        gap: 12px;
        opacity: 0;
        transform: translateY(15px);
    }

    .splide__slide.is-active .mobile-hotspot-item {
        animation: wintemp-mobileItemFadeIn 0.5s ease-out forwards;
    }

    .splide__slide.is-active .mobile-hotspot-item:nth-child(1) { animation-delay: 0.2s; }
    .splide__slide.is-active .mobile-hotspot-item:nth-child(2) { animation-delay: 0.3s; }
    .splide__slide.is-active .mobile-hotspot-item:nth-child(3) { animation-delay: 0.4s; }
    .splide__slide.is-active .mobile-hotspot-item:nth-child(4) { animation-delay: 0.5s; }

    @keyframes wintemp-mobileItemFadeIn {
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-hotspot-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ff6600;
    }

    .mobile-hotspot-icon i,
    .mobile-hotspot-icon svg {
        width: 36px;
        height: 36px;
        font-size: 36px;
    }

    .mobile-hotspot-text h4 {
        margin: 0 0 2px 0;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }

    .mobile-hotspot-text p {
        margin: 0;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.5);
        line-height: 1.3;
    }

    .wintemp-hotspot-carousel .splide__controls {
        position: relative;
        bottom: 0;
        margin-top: 30px;
        justify-content: center;
        gap: 15px;
    }

    .wintemp-hotspot-carousel .splide__custom-pagination {
        font-size: 18px;
        color: #fff;
        font-weight: 400;
    }

    .wintemp-hotspot-carousel .splide__arrow svg {
        width: 9px;
        height: 18px;
        fill: #fff;
    }

    .wintemp-post-category-link {
        font-size: 13px;
        line-height: 1;
    }
}
