@charset "utf-8";


*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;

}

:focus {
    outline: none;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: #1a1a1a !important;
}

body::-webkit-scrollbar-thumb {
    background: #2f2f2f !important;
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #2f2f2f !important;
}

body {
    scrollbar-width: thin;
    scrollbar-color: #2f2f2f #1a1a1a;
}

:root {
    --white: #1a1a1a;
    --black: #e0e0e0;
    --bg: #1c1c1c;
    --fg: #1a1a1a;
    --hg: #2d2d2d;
    --muted: #999;
    --primary: #4a9eff;
    --surface: #2d2d2d;
    --border: #444;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .08);


    --fs-hero: clamp(24px, 3vw + 12px, 40px);
    --fs-title: clamp(18px, 1.2vw + 10px, 24px);
    --fs-body: clamp(14px, .4vw + 12px, 16px);
    --container: 780px;
    --ant-font-family: -apple-system, BlinkMacSystemFont, 'Microsoft JhengHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
        'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
        'Noto Color Emoji';
    --ant-font-family-code: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --glass-blur: 5px;

    --glass-saturation: 1.12;

    --glass-brightness: 1;

    --glass-tint-light: rgba(255, 255, 255, 0.55);

    --glass-tint-dark: rgba(18, 18, 18, 0.45);

    --glass-border: rgba(255, 255, 255, 0.28);

    --glass-border-dark: rgba(255, 255, 255, 0.08);

    --glass-inner-shadow: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass-radius: 14px;
    --noise-opacity: 0.03;

    --scrollbar-track: #f5f5f5;
    --scrollbar-thumb: #64b5f6;
    --scrollbar-thumb-hover: #42a5f5;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ant-font-family);
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);

    color: #e0e0e0;
    font-size: var(--fs-body);

}

a {
    text-decoration: none;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}
ul {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start:0;
    unicode-bidi: isolate;
}
.global-container {
    max-width: 780px;
    height: calc(var(--vh) * 100);
    margin: 0 auto;

    background: #1c1c1c;

    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

}

header {
    background: var(--fg);
    max-width: var(--container);
    margin: 0 auto;
}

@font-face {
    font-family: "AVANTI";
    src: url("fonts/AVANTI.eot");

    src: url("fonts/AVANTI.eot?#iefix") format("embedded-opentype"),

        url("fonts/AVANTI.woff") format("woff"),

        url("fonts/AVANTI.ttf") format("truetype"),

        url("fonts/AVANTI.svg#AVANTI") format("svg");

    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "avenir";
    src: url("fonts/avenir.eot");

    src: url("fonts/avenir.eot?#iefix") format("embedded-opentype"),

        url("fonts/avenir.woff") format("woff"),

        url("fonts/avenir-next-bold.ttf") format("truetype"),

        url("fonts/avenir.svg#avenir") format("svg");

    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "FZYUEJFW";
    src: url("fonts/FZYUEJFW.eot");

    src: url("fonts/FZYUEJFW.eot?#iefix") format("embedded-opentype"),


        url("fonts/FZYUEJFW.woff") format("woff"),

        url("fonts/FZYUEJFW.ttf") format("truetype"),


        url("fonts/FZYUEJFW.svg#FZYUEJFW") format("svg");


}

@font-face {
    font-family: "FZCCH_GBK";
    src: url("fonts/FZCCH_GBK.eot");

    src: url("fonts/FZCCH_GBK.eot?#iefix") format("embedded-opentype"),


        url("fonts/FZCCH_GBK.woff") format("woff"),

        url("fonts/FZCCH_GBK.ttf") format("truetype"),


        url("fonts/FZCCH_GBK.svg#FZCCH_GBK") format("svg");

    font-style: normal;
    font-weight: normal;
}

.top-container {
    position: relative;
    height: 116px;
    background: url(../images/index-phb.webp) no-repeat left;
    background-size: cover;
}

.glass {
    border-radius: var(--glass-radius);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: background 200ms ease, border-color 200ms ease, transform 160ms ease;
}

.glass::before,
.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.glass::before {

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 var(--glass-inner-shadow);
    mix-blend-mode: overlay;
    opacity: 0.9;
}

.glass::after {

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0.7;
}

.carousel-container {

    width: 100%;
    max-width: var(--container);

}

.carousel-container.subpage {

    overflow: hidden;
    max-width: 100%;
}

.carousel-container.subpage .main-image {
    overflow: hidden;
    border-radius: 0;
    max-width: 100%;
    white-space: nowrap;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: var(--container);
    overflow: hidden;
    perspective: 1200px;
    touch-action: pan-y;
}

.carousel.float-active {
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.carousel-container.fullscreen-container {
    position: fixed;
    top: 50%;
    left: calc(50%);
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
    animation: fullscreenEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 0;
}

.float-active .carousel-track {
    height: 100%;
}

.carousel-container.fullscreen-exit {
    animation: fullscreenExit 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fullscreenEnter {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    60% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }

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

@keyframes fullscreenExit {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
}

.carousel.fullscreen-active {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 780px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.fullscreen-active .carousel-track {
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel.fullscreen-active .carousel-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel.fullscreen-active img,
.carousel.fullscreen-active video {
    max-width: 100%;

    object-fit: cover;
}

.carousel.fullscreen-active .carousel-slide img.landscape-img {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh;
    object-fit: contain;
}

.carousel.fullscreen-active .carousel-slide img.portrait-img {
    width: auto !important;
    height: 100% !important;
    max-height: 100vh;
    max-width: 100%;
    object-fit: contain;
}

.carousel.fullscreen-active .dots,
.carousel.fullscreen-active .dots-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

/* 隱藏影片原生控制（進度條 / 選單 / 手機 Chrome 中央暫停與 ±10 秒） */
video::-webkit-media-controls-timeline {
    display: none;
}

video::-moz-progress-bar {
    display: none;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none;
}

video::-webkit-media-controls-overflow-button {
    display: none;
}

video::-internal-media-controls-overflow-button {
    display: none;
}

video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.yhzq-containe .carousel {
    height: 520px;
}

.carousel-track {
    width: 100%;
    display: flex;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.yhzq-containe .carousel-track {
    height: auto;
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.slide-anim {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    z-index: 1;
}

.carousel-slide.slide-anim.active {
    z-index: 5;
}

.carousel-slide.fade-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.carousel-slide.fade-anim.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.carousel-slide video {
    width: 100%;
}

.carousel-slide.coverflow-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.carousel-slide.left {
    transform: translateX(-30%) scale(0.7) rotateY(30deg);
    opacity: 0.6;
    z-index: 5;
}

.carousel-slide.right {
    transform: translateX(30%) scale(0.7) rotateY(-30deg);
    opacity: 0.6;
    z-index: 5;
}

.carousel-slide.active.coverflow-anim {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
}

.carousel-slide .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    z-index: 10;
    transition: transform 0.3s ease;
    pointer-events: none;

}

.details-slide .caption {
    display: none;

}

.carousel-slide .caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-slide .caption p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.carousel-slide.fade-anim .caption {
    opacity: 0;
}

.carousel-slide.fade-anim.active .caption {
    opacity: 1;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);

    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    fill: #fff;
    color: #fff;
    font-size: 24px;

    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.dots {
    width: 30%;
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    z-index: 20;
}

.carousel-indicators {
    width: 100%;
    height: 75px;
    background-color: var(--hg);
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 16px;
    border-radius: 0;
}

.carousel-indicators .dots {
    justify-content: right;
    gap: 8px;
}

.dots span {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dots span.active {
    background: #f90;

}

.carousel-indicators .dots span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.carousel-indicators .dots span.active {
    background: #1a1a1a;
    color: var(--black);
    font-weight: bold;

}

.dots-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 14px;
    color: #fff;
}

@keyframes moveUpScale {
    0% {
        transform: translateY(10px) scale(0.5);

        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);

        opacity: 1;
    }
}

.slider-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    padding-bottom: 15px;
    background-color: #1a1a1a;
}

.slider-container.subcategory {
    display: none;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    margin-bottom: 15px;
}

.slide {
    flex: 0 0 auto;
    padding: 0;
    text-align: center;
    margin: 6px;
}

.indicators {
    display: flex;
    justify-content: center;

}

.indicators span {
    width: 24px;
    height: 24px;
    margin: 0 5px;

    background: #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-size: 14px;
    font-weight: bold;
    color: #999;
}

.indicators .active {
    background: #eee;
    color: #000;
}

/* 首頁優惠／推薦專區：切屏輪播（>320px 每屏 2 張，≤320px 每屏 1 張，見 yhzq.js） */
#promotion-slider.slider-container,
#recommendation-slider.slider-container {
    max-width: 100%;
    width: 100%;
    margin-top: 12px;
    background-color: transparent;
}

#promotion-slider .slider-wrapper,
#recommendation-slider .slider-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    background: transparent;
    margin-bottom: 12px;
}

#promotion-slider .slide,
#recommendation-slider .slide {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: none;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
}

#promotion-slider .slide.promotion-slide-placeholder,
#recommendation-slider .slide.promotion-slide-placeholder {
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 1px;
    border-radius: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

#promotion-slider .slide.promotion-slide-placeholder .promotion-empty-card {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

#promotion-slider .slide.promotion-slide-placeholder .promotion-empty-card:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

#promotion-slider .slide.promotion-slide-placeholder .promotion-empty-card .img-containe {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

#promotion-slider .slide.promotion-slide-placeholder .promotion-empty-card .details-containe {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

#promotion-slider .slide.promotion-slide-placeholder .promotion-empty-card__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    letter-spacing: 1px;
}

/* 輪播內單卡：填滿 slide，內部與定點卡片同結構 */
#promotion-slider .slide > .yhzq-list,
#recommendation-slider .slide > .yhzq-list {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
}

.slider-container .slide > .yhzq-list {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
}

#promotion-slider .promotion-slider__indicators {
    margin-top: 6px;
    padding-bottom: 4px;
}

.Site-Notice {
    width: 100%;
    height: 80px;
    background: #333;
    display: flex;
    position: relative;
}

.sn-img {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
    z-index: 2;
    background-color: #333;
}

.sn-img img {
    width: 24px;
}

.Site-Notice .left {
    width: 65%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-body);
    overflow: hidden;
}

.Site-Notice .right {
    height: 100%;
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: right;
    color: white;
    font-size: 18px;
}

.Site-Notice .right .loaction {
    padding-right: 16px;
    cursor: pointer;
}

.Site-Notice .right svg {
    width: 15px;
    height: 15px;
    fill: white;
}

.marquee-content {
    width: 100%;

    right: 0;
    top: 0;
    height: 100%;
    white-space: nowrap;
    z-index: 1;
    display: flex;
    animation: scroll 9s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }


    100% {
        transform: translateX(-100%);
    }


}

.marquee-item {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 60px;
    font-size: var(--fs-body);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;

}

.yhzq-containe {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.yhzq-top {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px;
    margin-top: 10px;
    background-color: #1a1a1a;
    height: 90px;
}

.yhzq-top h1 {
    font-family: "FZCCH_GBK";
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    color: #fff;


}

.yhzq-top i {
    font-size: 28px;
    font-weight: bolder;
    color: #999;
    padding-left: 18px;
    padding-right: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.yhzq-top i.rotate {
    transform: rotate(-180deg);
}

.yhzq-top .more {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    width: 90px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    padding-right: 0 10px;


    color: #fff;
    cursor: pointer;
}

.yhzq-top .more:hover {
    background-color: rgba(0, 0, 0, .5);
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.yhzq-top .more a {
    color: #fff;
    text-decoration: none;
}

.phb-containe .more {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 350px;
    right: 0;
    min-width: 90px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;


    color: #fff;
    cursor: pointer;
    padding-left: 10px;
    padding-right: 30px;
}

.phb-containe .more:hover {
    background-color: rgba(0, 0, 0, .5);
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.phb-containe .more a {
    color: #fff;
    text-decoration: none;
}

.yhzq-list-containe {
    display: flex;
    align-items: stretch;
    gap: 14px;
    background-color: var(--white);
    flex-wrap: wrap;
    padding: 16px;
}

.yhzq-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 calc(33.333% - 14px);
    min-width: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: #333;
}

.yhzq-containe.dingdian .yhzq-list {
    flex: 0 0 calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
}

.yhzq-list .nickname {
    font-size: 16px;
    color: #e0e0e0;
    font-weight: bold;
}

.phb-list .nickname {
    font-size: 18px;
    color: #e0e0e0;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
}

.phb-list .nickname .code {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: bold;
}

.yhzq-list .code,
.phb-list .code {
    color: #e0e0e0;
    font-weight: bold;
}

.product-info .code {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: bold;
}

.yhzq-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.yhzq-list .img-containe {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 圖片區「時間：…」活動／相對時間標籤（位置與配色；與 VIP／折扣等高見下方統一規則） */
.yhzq-activity-time-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    max-width: calc(100% - 24px);
    width: auto;
    min-width: 0;
    border-radius: 999px;
    background: rgba(126, 73, 176, 0.56);
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 封面圖置底，VIP/折扣等角標穩定疊在圖上（避免同層繪製順序把圖蓋在標籤上） */
.yhzq-list .img-containe>img,
.phb-list .img-containe>img {
    position: relative;
    z-index: 0;
}

.phb-list .img-containe>.top-bq {
    z-index: 2;
}

.product-card .product-image>img {
    position: relative;
    z-index: 0;
}

.promotion-grid .promotion-card .img-containe>img,
.promotion-grid .promotion-card__media>img {
    position: relative;
    z-index: 0;
}

.vip-badge,
.no-image-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    background: linear-gradient(135deg, #FFA000, #f90);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    z-index: 2;
}

/* 首頁／列表圖區：活動時間、折扣、VIP 角標統一等高（不含 promotion-card） */
.yhzq-list:not(.promotion-card) .img-containe .yhzq-activity-time-badge,
.yhzq-list:not(.promotion-card) .img-containe .product-badge,
.yhzq-list:not(.promotion-card) .img-containe .vip-badge,
.phb-list .img-containe .yhzq-activity-time-badge,
.phb-list .img-containe .product-badge,
.phb-list .img-containe .vip-badge {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    height: 36px;
    max-height: 36px;
    padding: 0 12px;
    line-height: 1;
    font-size: 12px;
    font-weight: 800;
}

.img-containe .vip-badge,
.img-containe .no-image-badge,
.yhzq-list .img-containe .vip-badge,
.yhzq-list .img-containe .no-image-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* background: rgba(42, 32, 8, 0.9); */
    border: 1px solid rgba(255, 215, 120, 0.45);
    box-shadow: none;
    overflow: visible;
}

.img-containe .vip-badge::before,
.img-containe .no-image-badge::before,
.img-containe .vip-badge::after,
.img-containe .no-image-badge::after,
.yhzq-list .img-containe .vip-badge::before,
.yhzq-list .img-containe .no-image-badge::before,
.yhzq-list .img-containe .vip-badge::after,
.yhzq-list .img-containe .no-image-badge::after {
    display: none;
}

.product-image .vip-badge,
.product-image .no-image-badge,
.product-card .product-image .vip-badge,
.product-card .product-image .no-image-badge {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    margin: 0;
    z-index: 12;
}

.img-containe > a.img-containe-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.img-containe img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center;

}

.img-containe > a.img-containe-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.yhzq-list .details-containe {
    width: 100%;
    /* 依內容高度；列表頁同排等高時見 .page-youhui-listing 覆寫 */
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
    font-size: 13px;
    color: #e0e0e0;
    position: relative;
}

.yhzq-list .details-containe>.pingfen {
    flex-shrink: 0;
}

.yhzq-list .details-containe > ul {
    flex: 0 1 auto;
    min-height: 0;
    align-content: flex-start;
    /* 僅加大「換行行距」，勿設 column-gap，以免 50% 雙欄換行順序被打亂 */
    row-gap: 6px;
}

/* 首頁／列表卡片：詳情區列表行高（與上列 gap 一併控制疏密） */
.yhzq-list .details-containe ul > li.information:not(.first):not(.yj):not(.xj) {
    height: 23px;
}

.yhzq-list .details-containe .information.first {
    padding-bottom: 5px;
}

.yhzq-list .details-containe .information.yj,
.yhzq-list .details-containe .information.xj {
    height: auto;
    min-height: 0;
}

.yhzq-list .details-containe .information.yj span,
.yhzq-list .details-containe .information.xj span {
    line-height: 1.35;
    height: auto;
    font-size: 13px;
    width: auto;
    max-width: 100%;
    margin-left: 0;
}

/* 列表／定點等網格：同排等高時詳情區填滿卡片剩餘高度；首頁輪播內無此前綴結構時維持 flex:0 依內容 */
.yhzq-list-containe .yhzq-list .details-containe,
.page-youhui-listing .yhzq-list .details-containe {
    flex: 1 1 auto;
    min-height: 0;
}

.yhzq-list .details-containe > .bottom-icons {
    flex-shrink: 0;
    /* 覆蓋全域 .bottom-icons 的 margin:10px 0 !important，否則 margin-top:auto 無效，統計列無法貼齊文字區底部 */
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 定點／外約／優惠專區／推薦專區／排行榜／優惠列表：統計列單行、圖標+數字完整顯示（全斷點共用，僅在下方 @media 調字級） */
.yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons,
#pickup-section .yhzq-list .details-containe > .bottom-icons,
#delivery-section .yhzq-list .details-containe > .bottom-icons,
#promotion-slider .yhzq-list .details-containe > .bottom-icons,
#recommendation-slider .yhzq-list .details-containe > .bottom-icons,
#ranking-section .phb-list .details-containe > .bottom-icons,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list .details-containe > .bottom-icons {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 18px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
#pickup-section .yhzq-list .details-containe > .bottom-icons span,
#delivery-section .yhzq-list .details-containe > .bottom-icons span,
#promotion-slider .yhzq-list .details-containe > .bottom-icons span,
#recommendation-slider .yhzq-list .details-containe > .bottom-icons span,
#ranking-section .phb-list .details-containe > .bottom-icons span,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list .details-containe > .bottom-icons span {
    /* display: inline-flex !important; */
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    background: none !important;
    color: #999 !important;
}

.yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span i,
#pickup-section .yhzq-list .details-containe > .bottom-icons span i,
#delivery-section .yhzq-list .details-containe > .bottom-icons span i,
#promotion-slider .yhzq-list .details-containe > .bottom-icons span i,
#recommendation-slider .yhzq-list .details-containe > .bottom-icons span i,
#ranking-section .phb-list .details-containe > .bottom-icons span i,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span i,
.page-youhui-listing .yhzq-containe.dingdian .yhzq-list .details-containe > .bottom-icons span i {
    flex-shrink: 0 !important;
    /* display: inline-block !important; */
    margin: 0 2px 0 0 !important;
    /* font-size: 1.4em !important; */
    line-height: 1 !important;
    width: auto !important;
}

.details-containe ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.details-containe .pingfen.phgList {
    top: 4px;
    right: 10px;
}

.details-containe ul .pingfen span {
    font-size: 22px;
}

.details-containe .information {
    width: 100%;
    display: flex;
    align-items: center;
    height: 24px;
    min-width: 0;
    text-align: left;
}

.details-containe .information.first {
    height: auto;
    padding-bottom: 6px;
    flex-direction: column;

}

.details-containe .information .nickname {
    display: block;
    width: 100%;
    white-space: normal;
    margin-top: 2px;
    text-align: left;
}

.details-containe .information .code {
    display: block;
    width: 100%;
    white-space: normal;
    margin-top: 2px;
    text-align: left;
}

.details-containe .information.short {
    width: 50% !important;
    flex: 0 0 50% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.information.short {
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 0 50%;
}

.information span {
    color: #999;
}

.details-containe .information:not(.first):not(.yj):not(.xj) span,
.information.short:not(.yj):not(.xj) span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
    vertical-align: middle;
}

.details-containe .information:not(.first):not(.yj):not(.xj) {
    overflow: hidden;
}

.details-containe .information:not(.first):not(.yj):not(.xj) span {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.information.short:not(.yj):not(.xj) span {
    max-width: calc(100% - 60px);
}

.information.yj span {
    display: block;
    line-height: 40px;
    font-size: 14px;
    text-decoration: line-through;
    font-weight: 800;

    color: #fff;
    width: 50%;
    height: 40px;
    font-family: 'avenir';
    margin-left: 5px;
    white-space: nowrap;
}

.information.xj span {
    display: block;
    line-height: 40px;
    font-size: 14px;
    font-weight: 800;

    color: #f90;
    width: 50%;
    height: 40px;
    font-family: 'avenir';
    margin-left: 5px;
    white-space: nowrap;
}

.yhzq-containe .indicator {
    position: relative;
    width: 100%;
    height: 75px;
    background-color: var(--hg);
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 16px;
    border-radius: 0;
}

.phb-containe {
    width: 100%;
    height: auto;
    min-height: 497px;
    overflow: hidden;
    background: #1a1a1a url(../images/index-phb.webp) top center no-repeat;
    background-size: 100%;
    position: relative;
    padding: 16px;
    padding-top: 400px;

}

.index-phb-div {
    width: 100%;
    height: auto;
    overflow: hidden;

    box-shadow: 0 0 16px #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 14px;


}

.phb-list {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    background: #222;
    padding: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
}

.phb-list .img-containe {
    width: 30%;
    height: 285px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    flex-shrink: 0;
}


.phb-list .details-containe {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    font-size: 14px;
    background-color: #1a1a1a;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phb-list .details-containe>ul {
    flex: 1 1 auto;
    min-height: 0;
}

.phb-list .details-containe>.bottom-icons {
    flex-shrink: 0;
    margin-top: auto;
}

.phb-list .details-containe li {
    border: 1px solid #333;
    height: 40px;
    padding: 12px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.details-containe.phbList .information.first {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end;
    gap: 0;
    height: auto;
    padding-bottom: 0;
}

.details-containe.phbList .information .nickname {
    display: block !important;
    width: fit-content !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    vertical-align: baseline;
    line-height: 1;
    white-space: normal;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
}

.details-containe.phbList .information .code {
    display: block !important;
    width: fit-content !important;
    vertical-align: baseline;
    line-height: 1;
    font-size: 12px;
    white-space: normal;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    margin-left: 6px !important;
}

.yhzq-list .jq span {
    color: #f90;
    font-weight: bold;
    font-size: 14px;
    font-family: 'avenir';
    white-space: nowrap;
}

.phb-list .jq span {
    color: #f90;
    font-weight: bold;
    font-size: 16px;
    font-family: 'avenir';
}

.information.yj.price-placeholder,
.information.xj.price-placeholder,
.information.jq.price-placeholder {
    visibility: hidden;
    height: 30px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.top-bq {
    width: 65px;
    display: flex;
    align-items: center;
    position: absolute;
    left: 5%;
    top: 0;
}

.shake {
    display: inline-block;
    animation: shake 1.0s infinite ease-in-out;

    transform-origin: center center;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(2deg);
    }

    40% {
        transform: rotate(-2deg);
    }

    60% {
        transform: rotate(1.5deg);
    }

    80% {
        transform: rotate(-1.5deg);
    }

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

.top-bq span {
    display: inline-block;
    color: #ffde00;
    font-size: var(--fs-hero);
    text-align: center;
    font-weight: bolder;
}

.detail-item {
    display: flex;
    align-items: center;
    color: #999;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    min-width: 0;
    overflow: hidden;
}

.detail-item i {
    margin-right: 5px;
    color: #3498db;
    font-size: 0.85rem;
}

.detail-item .detail-city {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: block;
}

.detail-item .detail-price {
    color: #f90;
    font-weight: 600;
    font-family: 'avenir';
}

.pingfen {
    position: absolute;
    right: 20px;
    top: 17px;
    font-size: 22px;
    font-weight: bolder;
    color: #fff;
    z-index: 20;
}

.pingfen span {
    font-family: "avenir";
    color: #f00;

}

.detail-item.sub-pingfen {
    position: absolute;
    right: 20px;
    top: 30px;
    font-size: 20px;
    font-weight: bolder;
    display: flex;
    align-items: center;
    color: #ccc;
    border-bottom: 0;
}

.detail-item.sub-pingfen .global-lable {
    font-size: 20px;
    white-space: nowrap;
}

.detail-item.sub-pingfen .rating-value {
    margin-left: 5px;
    margin-right: 0;
}

.detail-item.sub-pingfen .detail-rating {
    margin-left: 5px;
    margin-right: 0;
    font-size: 24px;
    font-family: 'avenir';
    color: #f00;
}

.detail-item.sub-pingfen .reviews {
    width: 100%;
    font-size: 12px;
    text-align: right;
    color: #ccc;
    font-weight: normal;
    margin-bottom: 10px;
}

.detail-item.sub-price .current-price {
    font-size: 20px;
    font-weight: bolder;
    color: #f90;
}

.detail-item.sub-price .original-price {
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
}

@keyframes numberChange {
    0% {
        transform: scale(1);
        color: inherit;
    }

    50% {
        transform: scale(1.3);
        color: #ffd700;
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

.bottom-icons {
    display: flex;
    width: 100%;
    height: 20px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    margin: 10px 0 !important;
    box-sizing: border-box;
}

.bottom-icons span {
    /* display: flex; */
    flex: 0 0 auto;
    height: 100%;
    align-items: center;
    padding: 0;
    color: #999;
    font-weight: 600;
    font-size: 15px;
    font-family: 'AVANTI';
}

.bottom-icons span i {
    margin-right: 3px;
    margin-bottom: 2.5px;
}

.bottom-icons span.i-sc {
    background: url(../images/i-sc.png) no-repeat left center;
    background-size: 22px 22px;
}

.bottom-icons span.i-zan {
    background: url(../images/i-zan.png) no-repeat left center;
    background-size: 22px 22px;
}

.bottom-icons span.i-pl {
    background: url(../images/i-pl.png) no-repeat left center;
    background-size: 22px 22px;
}

footer {
    max-width: var(--container);
    height: 120px;
    margin: 0 auto;
    background-color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;


}

footer div {
    flex: 1;
    height: 100%;
    font-size: 18px;
    color: #999;
    padding-bottom: 16px;
}

footer div a {
    color: #666;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
}

footer div .active a {
    color: #fff;
    font-weight: bold;
}

.foot-home {
    background: url(../images/i-home.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
}

.foot-home.active {
    background: url(../images/i-home-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-home.active a {
    color: #fff;
}

.foot-home a:hover {
    background: url(../images/i-home-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-phb {
    background: url(../images/i-phb.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
}

.foot-phb.active {
    background: url(../images/i-phb-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-phb.active a {
    color: #fff;
}

.foot-phb a:hover {
    background: url(../images/i-phb-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-kf {
    background: url(../images/i-kefu.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
}

.foot-kf.active {
    background: url(../images/i-kefu-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-kf.active a {
    color: #fff;
}

.foot-kf a:hover {
    background: url(../images/i-kefu-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-new {
    background: url(../images/i-new.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
}

.foot-new.active {
    background: url(../images/i-new-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-new.active a {
    color: #fff;
}

.foot-new a:hover {
    background: url(../images/i-new-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-uc {
    background: url(../images/i-uc.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
}

.foot-uc.active {
    background: url(../images/i-uc-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.foot-uc.active a {
    color: #fff;
}

.foot-uc a:hover {
    background: url(../images/i-uc-on.png) center no-repeat;
    background-size: 30px 30px;
    background-position-y: 10px;
    color: #fff;
    font-weight: bold;
}

.picker-container {
    width: 100%;
    max-width: 320px;

    background: #222;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s ease;
    height: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
}

.picker-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    height: auto;
}

.header {
    padding: 10px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    background: #1a1a1a;
    position: relative;
}

.picker-container .close-btn {
    width: 30%;
    height: 30%;
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'><path d='M825 770 563 509 825 248c15-15 15-39 0-54s-39-15-54 0L510 455 249 194c-15-15-39-15-54 0s-15 39 0 54l261 261-261 261c-15 15-15 39 0 54s39 15 54 0l261-261 261 261c15 15 39 15 54 0s15-39 0-54z' fill='%23999'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 15px;
    right: -50px;
    cursor: pointer;
}

.picker {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.picker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.2s ease-out;

}

.picker-list li {
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #56646a;
    font-size: 16px;
    user-select: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0 10px;
}

.picker-list li a {
    color: rgba(255, 255, 255, 0.2);
}

.picker-list li.selected {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    transform: scale(1.1);
    background: #2f2f2f;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

}

.picker-list li.selected a {
    color: #fff;
}

.highlight {
    position: absolute;
    width: 100%;
    top: 85px;
    left: 0;
    right: 0;
    height: 0;

    background-size: contain;

    pointer-events: none;
    border-radius: 0;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.picker-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #333;
    margin-top: 20px;
}

.confirm-btn {

    background-color: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
}

.confirm-btn:hover {
    background: #444;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(225, 135, 5, 0.3);
}

.selected-city {
    margin-top: 25px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.selected-city span {
    color: #007AFF;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 122, 255, 0.5);
}

.api-response {
    position: fixed;
    z-index: 99;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 50px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    display: none;
}

.api-response.success {
    background: rgba(85, 165, 5, 0.8);
    display: block;
}

.api-response.error {
    background: rgba(231, 76, 60, 0.2);
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #2c3e50, #1a1a2e); */
    /* background: rgba(44, 62, 80, 0.7); */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10000000;
    display: none;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ------- 18禁 ------- */
.container {
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
}

h1 {
    color: #db5f79;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.overlay-18 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

#agreementBox.agreement-box, .agreement-box {
    background: white;
    border-radius: 12px;
    width: 90%;
    height: 80%;
    --agreement-box-ratio: 5 / 7;
    --agreement-btn-ratio: 9 / 3;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s ease;
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 630px;
    display: none;
}

#agreementBox .warnning-logo, .warnning-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16%;
    height: 16%;
    margin: 0 auto;
}

#agreementBox .warnning-logo img, .warnning-logo img {
    width: 100%;
    height: auto;
    display: block;
}

#agreementBox.agreement-box.show, .agreement-box.show {
    transform: scale(1);
    display: flex;
    flex-direction: column;
}

#agreementBox .agreement-title, .agreement-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 6px;
}

#agreementBox .agreement-title img, .agreement-title img {
    width: 38px;
    margin-right: 16px;
}

#agreementBox .agreement-content, .agreement-content {
    color: #555;
    font-size: 16px;
    font-weight: 400;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: justify;
    border: 1px solid #eee;
    line-height: 40px;
    text-indent: 1.8rem;
}

#agreementBox .agreement-content p, .agreement-content p {
    margin-bottom: 10px;
    color: #555;
}

/* 18 禁彈窗：移動端高度與內容區流體適配 */
@media (max-width: 768px) {
    #agreementBox.agreement-box, .agreement-box {
        width: min(92vw, 520px);
        height: auto;
        aspect-ratio: var(--agreement-box-ratio);
        max-height: 90vh;
        padding: clamp(14px, 3.2vw, 22px);
        border-radius: 10px;
    }

    #agreementBox .warnning-logo, .warnning-logo {
        width: clamp(48px, 12vw, 72px);
        height: clamp(48px, 12vw, 72px);
    }

    #agreementBox .agreement-title, .agreement-title {
        margin: 8px 0 14px;
        font-size: clamp(1.15rem, 4.8vw, 1.55rem);
    }

    #agreementBox .agreement-title img, .agreement-title img {
        width: clamp(24px, 6.2vw, 34px);
        margin-right: clamp(8px, 2vw, 12px);
    }

    #agreementBox .agreement-content, .agreement-content {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        line-height: clamp(26px, 5.4vw, 34px);
        text-indent: 1.4rem;
        padding: clamp(10px, 2.5vw, 14px);
        margin-bottom: clamp(12px, 2.8vw, 18px);
    }

    #agreementBox .checkbox-container {
        margin-bottom: clamp(10px, 2.6vw, 16px);
        font-size: clamp(13px, 3.4vw, 15px);
    }

    #agreementBox .checkbox-container input {
        width: clamp(16px, 4.5vw, 18px);
        height: clamp(16px, 4.5vw, 18px);
    }

    #agreementBox .buttons {
        gap: clamp(8px, 2.4vw, 14px);
    }

    #agreementBox .btn {
        width: clamp(112px, 31vw, 156px);
        aspect-ratio: var(--agreement-btn-ratio);
        min-height: 0;
        height: auto;
        padding: 0;
        font-size: clamp(0.88rem, 3.2vw, 1rem);
        line-height: 1.15;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (max-width: 540px) {
    #agreementBox.agreement-box, .agreement-box {
        width: 94vw;
        aspect-ratio: var(--agreement-box-ratio);
        max-height: 92vh;
        padding: clamp(12px, 3vw, 18px);
    }

    #agreementBox .agreement-content, .agreement-content {
        max-height: none;
        line-height: 38px;
        text-indent: 1.2rem;
        font-size: 14px;
        padding: 30px;
    }
}

@media (max-width: 375px) {
    #agreementBox.agreement-box, .agreement-box {
        width: 95vw;
        aspect-ratio: var(--agreement-box-ratio);
        max-height: 94vh;
        padding: 12px;
    }

    #agreementBox .agreement-content, .agreement-content {
        max-height: none;
        line-height: 32px;
        text-indent: 1.2rem;
        font-size: 14px;
        padding: 30px;
    }

    #agreementBox .btn {
        width: clamp(100px, 34vw, 132px);
        font-size: 0.86rem;
    }
}

#agreementBox .checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 15px;
    font-weight: 400;
}

#agreementBox .checkbox-container label {
    cursor: pointer;
    color: #333;
    font-size: inherit;
    font-weight: 400;
}

#agreementBox .checkbox-container input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#agreementBox .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#agreementBox .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#agreementBox .btn-accept, .btn-accept {
    background: #2ecc71;
    color: white;
}

#agreementBox .btn-accept:hover, .btn-accept:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

#agreementBox .btn-reject, .btn-reject {
    background: #e74c3c;
    color: white;
}

#agreementBox .btn-reject:hover, .btn-reject:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* 18 禁彈窗按鈕：使用更高選擇器優先級，避免被全域 .btn 覆蓋 */
#agreementBox .buttons .btn, .agreement-box .buttons .btn {
    width: 118px;
    aspect-ratio: var(--agreement-btn-ratio, 10 / 3);
    min-height: 0;
    height: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #agreementBox .buttons, .agreement-box .buttons {
        gap: clamp(8px, 2.4vw, 14px);
    }

    #agreementBox .buttons .btn, .agreement-box .buttons .btn {
        width: clamp(84px, 24vw, 116px);
        font-size: clamp(0.76rem, 2.7vw, 0.86rem);
    }
}

@media (max-width: 540px) {
    #agreementBox .buttons .btn, .agreement-box .buttons .btn {
        width: clamp(78px, 26vw, 102px);
        font-size: clamp(0.80rem, 2.5vw, 0.85rem);
    }
}

@media (max-width: 375px) {
    #agreementBox .buttons .btn, .agreement-box .buttons .btn {
        width: clamp(72px, 24vw, 92px);
        font-size: clamp(0.68rem, 2.3vw, 0.76rem);
    }
}


.overlay-18 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

/* 全屏輪播遮罩上的關閉（carousel.js 動態插入 .overlay-18 > .close-carousel） */
.close-carousel {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    z-index: 1001;
    color: #fff;
    fill: currentColor;
    stroke: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-carousel svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    pointer-events: none;
}

.close-carousel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.close-carousel:active {
    transform: scale(0.94);
}






.avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid rgba(85, 200, 250, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.leaderboard-item:hover .avatar {
    transform: scale(1.1);
}

.avatar > a.img-containe-link {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar img,
.avatar > a.img-containe-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.points-table .stat {
    font-weight: 700;
    text-align: center;
    transition: transform 0.3s ease;
    font-family: 'AVANTI';
    font-size: 24px;
    color: #bbb;
}

.leaderboard-item:hover .stat {
    transform: translateY(-2px);
}

.progress-container {
    width: 80%;
    position: relative;
}

.progress-bar {
    height: 8px;

    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.page-btn:hover:not(.active):not([disabled]) {
    background-color: #2a3a4a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.points-table .bottom-icons {
    gap: 16px;
    padding-left: 0;
    margin-top: 0;
    font-size: 12px;
    font-family: 'AVANTI';
}

.points-table .bottom-icons span {
    padding-left: 15px;
    font-size: 12px;

}

.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-overlay.active {
    visibility: visible;
    opacity: 1;
}

#caipin-card-modal-overlay .global-modal {
    max-width: 420px;

}

.global-modal {
    width: 90%;
    max-width: 618px;
    padding: 25px;
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.global-overlay.active .global-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #444;
    margin-bottom: 25px;
    min-height: 48px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: 0;
}

.close-modal:hover {
    color: #ff4757;
    background-color: #2a2a2a;
}

.modal-body {
    margin-bottom: 25px;
    color: #999;
    line-height: 1.6;
    font-size: 16px;
}

#login-prompt-modal-overlay .global-modal {
    max-width: 420px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn.gray {
    background-color: #2a2a2a;
    color: #999;
}

.modal-btn.gray:hover {
    border-color: #333;
    box-shadow: 0 0 0 1px rgba(100, 100, 100, 0.3);
    background-color: #1a1a1a;
}

.modal-btn.blue {
    background-color: #3498db !important;
    color: white;
}

.modal-btn.green {
    background-color: #2ecc71;
    color: white;
}

.modal-btn.red {
    background-color: #ff4757;
    color: #fff;
}

.message-user-card {
    text-align: center;
}

.message-user-card-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #f0f0f0;
}

.message-user-card-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2a6b8b;
}

.message-user-card-role {
    color: #999;
    margin-bottom: 15px;
    font-size: 14px;
}

.message-user-card-info {
    text-align: left;
    margin-bottom: 15px;
    font-size: 13px;
}

.message-user-card-info span {
    color: #999;
    font-weight: 500;
    margin-left: auto;
}

.global-modal.top-list {
    height: 90vh;
    max-height: 743px;
    padding: 0;
    position: relative;
}

.global-modal.top-list .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.modal-header-img {
    position: relative;
    width: 100%;
    max-height: 370px;
    overflow: hidden;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.global-modal.top-list:hover .modal-header-img img {
    transform: scale(1.05);
}

.global-modal.top-list:hover .model-overlay {
    opacity: 1;
}

.global-modal.top-list .btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-modal.top-list .btn-primary {
    background: linear-gradient(45deg, #3498db, #5db0e8);
    color: #fff;
}

.global-modal.top-list .btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #3498db;
    color: #01243c;
}

.global-modal.top-list .btn-secondary i {
    color: #ff4902;
}

.global-modal.top-list .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.global-modal.top-list .bottom-icons {
    position: absolute;
    top: 10px;
    left: 140px;
    color: #fff;
    max-width: 40%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.model-stats .stat-value {
    display: flex;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff8c02;
    height: 30px;
    align-items: end;
    justify-content: center;
    min-width: 80px;
}

.model-stats .stat-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    min-width: 80px;
}

.category-dropdown.todaynew-city-dropdown .btn-text,
.category-dropdown.todaynew-city-dropdown span {
    color: #fff;
    font-size: 14px;
}

.customer-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.customer-service-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.customer-service-modal .modal-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -17px;
    right: 0;
    background: #1a1a1a;
    border-radius: 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 430px;
    height: 430px;
    margin: auto;
    border: 1px solid #3d3d3d;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.08);
}

.customer-service-modal.show .modal-overlay {
    opacity: 1;
}

.customer-service-modal.show .modal-content {
    transform: translateY(0);
}

.customer-service-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.customer-service-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ccc;
}

.customer-service-modal .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 200%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-service-modal .close-btn:hover {
    background-color: #2a2a2a;
}

.customer-service-modal .modal-body {
    text-align: center;
}

.customer-service-modal .qr-codes-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.customer-service-modal .qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customer-service-modal .qr-code {
    width: 150px;
    height: 150px;
    border: 0;
    border-radius: 10px;
    background: #2a2a2a;
    margin-bottom: 10px;
}

.customer-service-modal .qr-label {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.customer-service-modal .service-text {
    margin: 0;
    font-size: 16px;
    color: #999;
    line-height: 1.5;
}

.customer-service-modal .qr-code-item--link {
    text-decoration: none;
    color: inherit;
}

.customer-service-modal .qr-code--placeholder {
    object-fit: contain;
    padding: 24px;
    background: #fff;
}

.customer-service-modal .qr-code-item--telegram {
    max-width: min(190px, 44vw);
}

.customer-service-modal .qr-code--telegram-qr.is-telegram-qr-adapted {
    width: var(--telegram-qr-w, 150px);
    height: calc(var(--telegram-qr-w, 150px) * 1.1);
    object-fit: cover;
    object-position: center 43%;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    display: block;
}

.seller-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    font-weight: 600;
}

.seller-jifang-link,
.seller-daidiao-btn {
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

/* 詳情頁機房 / 代調按鈕：覆蓋共用 50px 圓角 */
.details-container .seller-jifang-link,
.details-container .seller-jifang-above-region .seller-jifang-link,
.product-specs .seller-jifang-above-region .seller-jifang-link,
.details-container .seller-daidiao-btn,
.details-container .seller-detail-cta > .seller-daidiao-btn {
    border-radius: 5px;
}

.seller-daidiao-btn {
    background: #111317;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 詳情頁代調：覆蓋共用橘色背景 */
.details-container .seller-daidiao-btn,
.details-container .seller-detail-cta > .seller-daidiao-btn {
    background: #111317;
    box-shadow: none;
}

.jifang-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.jifang-modal-mask.is-open {
    display: flex;
}

.jifang-detail-modal {
    background: #fff;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.jifang-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.jifang-modal-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.jifang-modal-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.jifang-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.jifang-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #444;
}

.jifang-modal-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

.jifang-modal-list span {
    color: #ff6b6b;
    font-weight: 600;
}

.jifang-modal-rules {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e6e6e6;
    font-size: 14px;
    color: #444;
}

.jifang-modal-rules span {
    color: #ff6b6b;
    font-weight: 600;
}

.jifang-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.jifang-modal-header,
.jifang-modal-rules {
    flex-shrink: 0;
}

.jifang-modal-caipins {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    flex: 1 1 auto;
    height: 158px;
    max-height: min(48vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.jifang-caipin-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fafafa;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.jifang-caipin-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.jifang-caipin-card span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #333;
}

.jifang-caipin-card:hover {
    transform: translateY(-2px);
}

.jifang-modal-empty {
    font-size: 14px;
    color: #888;
    padding: 12px 4px;
}

.product-card {
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.4s ease;

    position: relative;
    cursor: pointer;
    border: 1px solid #333;
}

.product-image {
    height: 418px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.product-info {
    padding: 0 20px;
    position: relative;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #7f8c8d;
    overflow: hidden;
}

.global-lable {
    color: #ccc;
    font-weight: 600;
    white-space: nowrap;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 20px;
    margin-top: 1rem;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.subpage.bottom-icons {
    position: absolute;
    bottom: 0;
    color: #fff;

    background: linear-gradient(to top, rgba(0, 0, 0, 1.0), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
}

.subpage.bottom-icons span {
    color: #fff;
    flex: 1;
    justify-content: center;
    font-weight: normal;
    padding-left: 0;
}

.bottom-icons span.favs-num {
    justify-content: flex-start;
}

.subpage.bottom-icons span i {
    margin-right: 3px;
}

.favs-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.favs-num {
    margin-left: 0;
}

#customer-service-modal .modal-header {
    border-bottom: 0;
}

#customer-service-modal .close-modal {
    top: 0;
}

#header.top-container {
    background: url(../images/index-header.jpg) no-repeat center;
    background-size: cover;
    color: white;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0;
    box-sizing: border-box;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/tinysquare.png);
    background-repeat: repeat;
    background-size: auto;
    opacity: 1.0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);

    animation: headerShine 3.5s infinite linear;
}

/* 頂部主容器：左 logo-img，右上搜索+會員 / 右下 logo-text */
#header.top-container {
    --m3-logo-size: clamp(70px, 6vw + 40px, 100px);
}

#header .logo-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 100%;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    z-index: 3;
    transition: opacity 0.3s ease;
    max-width: none;
    box-sizing: border-box;
}

.logo-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo-image {
    width: var(--m3-logo-size, clamp(70px, 6vw + 40px, 100px));
    height: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 75%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-main-right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    box-sizing: border-box;
}

.logo-main-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.logo-main-top .search-container {
    flex: 1 1 auto;
    min-width: 0;
}

.logo-main-top .search-icon-btn,
.logo-main-top .user-menu {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    z-index: 15;
    transform: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: stretch;
    color: white;
    text-align: left;
    min-width: 0;
    flex: 0 0 auto;
    max-width: 100%;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.logo-title {
    font-size: clamp(16px, 1.1vw + 12px, 18px);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: #fff;
    white-space: normal;
}

#header .user-menu {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    z-index: 15;
    flex: 0 0 auto;
}

.user-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.user-btn i {
    font-size: 2.0rem;
    font-weight: lighter;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* 搜尋圖示按鈕：隱藏，搜尋框常顯 */
#header .search-icon-btn,
#header .search-toggle-btn {
    display: none !important;
}

.search-icon-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

#header .search-container,
#header .search-container.active {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 10;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 560px;
    margin: 0;
    justify-content: flex-start;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 7px 8px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 50px;
    position: relative;
    box-sizing: border-box;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: white;
    padding: 8px 12px;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}

.search-input:-webkit-autofill::first-line {
    color: white !important;
    font-size: 1rem !important;
}

.image-search-btn {
    background: linear-gradient(135deg, #FFA000, #f90);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    margin-right: 8px;
}

.image-search-btn:hover {
    background: linear-gradient(135deg, #FFA000, #f90);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.image-search-btn:active {
    transform: scale(0.95);
}

.image-search-btn i {
    font-size: 0.9rem;
}

.search-btn {
    background: linear-gradient(135deg, #61d1fb, #01b8fc);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn i {
    font-size: 0.9rem;
}

.advanced-search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-left: 8px;
    flex-shrink: 0;

}

.advanced-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.advanced-search-btn:active {
    transform: scale(0.95);
}

.advanced-search-btn i {
    font-size: 1.6rem;
}

.product-detail .product-info {
    min-width: 0;
    background-color: #2f2f2f;

    width: 100%;
    box-sizing: border-box;

    contain: layout style;

    height: auto

}

.product-detail .carousel-track {
    height: 100%;
}

.product-badge {
    position: absolute;
    bottom: 45px;
    left: 6px;
    margin: 0;
    z-index: 12;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 8px 14px;
    border-radius: 50px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 45%, #047857 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    text-shadow: none;
    box-shadow: none;
}

.product-badge.phb {
    bottom: 10px;
    left: 6px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    padding: 0;
    margin: 0;
    text-align: left;
    margin: 10px 0;
}

@keyframes sale-pulse {

    0%,
    100% {
        transform: scale(1);

    }

    50% {
        transform: scale(1.05);

    }
}

.product-code {
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 1.0rem;

    width: 100%;
    flex-basis: 100%;
    text-align: left;
    white-space: nowrap;
}

.countdown-label {
    font-size: 1.0rem;
    color: #ff2442;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
}

.countdown-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    box-sizing: border-box;

    min-height: 50px;
    contain: layout;

    position: relative;
}

.time-unit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 2px;
    padding: 8px;
    flex: 0 0 auto;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
    gap: 4px;
    white-space: nowrap;
    box-sizing: border-box;

    overflow: hidden;
}

.time-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    font-family: avenir;
    line-height: 1;
    white-space: nowrap;
    min-width: 28px;
    width: 28px;
    max-width: 28px;
    height: 22px;
    max-height: 22px;
    min-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.time-label {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 2px;
    font-weight: 600;
    white-space: nowrap;

}

.time-separator {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff2442;
    font-family: avenir;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
}

.time-separator.hidden {
    visibility: hidden;
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 0;
}

.countdown-timer-overlay {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 6px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* width: fit-content; */
    width: 100%;
    box-sizing: border-box;
}

.countdown-display-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: space-between;
}

.countdown-timer-overlay .countdown-display-mini {
    flex-wrap: wrap;
}

.products-grid .product-title,
.sub-section .product-title {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.products-grid .product-title .nickname,
.sub-section .product-title .nickname {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.products-grid .product-title .code,
.sub-section .product-title .code {
    display: block;
    width: 100%;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 0;
}

.products-grid .product-card .countdown-timer-overlay,
.sub-section .product-card .countdown-timer-overlay {
    position: static !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    background: none !important;
    backdrop-filter: blur(10px);
    border-radius: 2px;
    padding: 6px 0;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 10px !important;
}

.products-grid .product-card .countdown-timer-overlay .countdown-label,
.sub-section .product-card .countdown-timer-overlay .countdown-label {
    font-size: 1.0rem;
    color: #ff2442;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
}

.products-grid .product-card .countdown-timer-overlay .countdown-display,
.sub-section .product-card .countdown-timer-overlay .countdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-height: auto;
}

.products-grid .product-card .countdown-timer-overlay .time-unit,
.sub-section .product-card .countdown-timer-overlay .time-unit {
    padding: 4px 6px;
    flex: 1;
    min-width: 0;
    max-width: none;
    gap: 2px;
    display: flex;
    justify-content: center;
}

.products-grid .product-card .countdown-timer-overlay .time-value,
.sub-section .product-card .countdown-timer-overlay .time-value {
    font-size: 1.1rem;
    min-width: 28px;
    width: 28px;
    max-width: 28px;
    height: 24px;
    max-height: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.products-grid .product-card .countdown-timer-overlay .time-label,
.sub-section .product-card .countdown-timer-overlay .time-label {
    font-size: 0.8rem;
    margin-top: 1px;
}

.products-grid .product-card .countdown-timer-overlay .time-separator,
.sub-section .product-card .countdown-timer-overlay .time-separator {
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.time-unit-mini {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 2px;
    padding: 4px 6px;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
}

.time-value-mini {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    font-weight: 800;
    color: white;
    font-family: avenir;
    line-height: 1;
    white-space: nowrap;
}

.time-label-mini {
    font-size: clamp(0.4rem, 1.2vw, 0.65rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    white-space: nowrap;
}

.time-separator-mini {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    font-weight: 800;
    color: white;
    font-family: avenir;
    white-space: nowrap;
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
}

.stat-item i {
    font-size: 1.4rem;
    color: #FFA000;
}

.stat-item:nth-child(2) i {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: avenir;
}

.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background: linear-gradient(90deg, #333, #222);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;

    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: linear-gradient(90deg, #444, #555);
    transform: translateY(-2px);

}

.wishlist-btn {
    width: 50px;
    height: auto;
    min-height: 50px;
    max-height: 50px;
    background: #2a2a2a;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: #eee;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1) !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wishlist-btn:hover {
    background: #333;
    color: white;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.wishlist-btn:active {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    color: #ffd700;
}

.wishlist-btn.favorited i {
    color: #ffd700;
}

.wishlist-btn.favorited {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.wishlist-btn:focus {
    outline: none;
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.wishlist-btn:focus-visible {
    outline: none;
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.wishlist-btn.loading {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.interaction-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.interaction-stats .stat-item:hover {
    transform: translateY(-1px);
}

.interaction-stats .stat-item i {
    font-size: 16px;
    color: #999;
}

.interaction-stats .stat-item.active i {
    color: #ff2442 !important;
}

.interaction-stats .stat-item span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.interaction-stats .stat-item:hover i,
.interaction-stats .stat-item:hover span {
    color: #ccc;
}

.interaction-stats .stat-item:last-child {
    gap: 0;
    padding: 6px;
}

.interaction-stats .stat-item:last-child i {
    font-size: 18px;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes unlikeAnimation {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.7);
    }

    50% {
        transform: scale(0.8);
    }

    75% {
        transform: scale(0.75);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-controls {
    display: flex;
    gap: 8px;
}

.right-controls {
    display: flex;
    gap: 8px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-success i {
    color: white !important;
    background: #27ae60 !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-error i {
    color: white !important;
    background: #e74c3c !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-warning {
    border-left-color: #f39c12;
}

.notification-warning i {
    color: white !important;
    background: #f39c12 !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification i {
    font-size: 0.8rem;

}

.notification span {
    font-weight: 500;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

footer {
    text-align: center;
    padding: 16px 0;
    color: #7f8c8d;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.prev-nav {
    left: 20px;
}

.next-nav {
    right: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.confirm-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    min-width: 320px;
    max-width: 90%;
    transition: transform 0.3s ease;
}

.confirm-toast.show {
    transform: translateX(-50%) translateY(0);
}

.confirm-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.confirm-toast-content i {
    font-size: 22px;
    color: #f59e0b;
    flex-shrink: 0;
}

.confirm-toast-message {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.confirm-toast-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px 20px;
    justify-content: flex-end;
}

.confirm-toast-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirm-toast-btn.cancel-confirm {
    background: #2d2d2d;
    color: #6b7280;
}

.confirm-toast-btn.cancel-confirm:hover {
    background: #2a2a2a;
    color: #374151;
}

.confirm-toast-btn.confirm-delete {
    background: #ef4444;
    color: white;
}

.confirm-toast-btn.confirm-delete:hover {
    background: #dc2626;
}

.confirm-toast-btn:active {
    transform: scale(0.95);
}

/* 代調確認彈框：文字/按鈕垂直分布，取消確定各半寬，右上角關閉 */
.confirm-toast.confirm-toast--daidiao {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.98);
    min-width: min(360px, 92vw);
    max-width: min(420px, 92vw);
}

.confirm-toast.confirm-toast--daidiao.show {
    transform: translate(-50%, -50%) scale(1);
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 16px 16px;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-message {
    display: block;
    text-align: center;
    padding: 8px 28px 0;
    font-size: 15px;
    line-height: 1.6;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    padding: 0;
    justify-content: stretch;
    box-sizing: border-box;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-btn {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
}


.form-group {
    flex: 1;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 9px 15px;
    padding-right: 35px;
    border: 1px solid #444;
    border-radius: 3px;
    font-size: 6px;
    transition: all 0.3s ease;
    background: #1a1a1a;
    font-size: 13px;
}

.form-control:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.area-selector.active .form-control {
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.hl-search-container .checkbox-container {
    display: block;
    margin-top: 15px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {

    background-color: #333;
    color: white;
    text-align: center;
}

.btn-primary:hover {
    background: #f90;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    text-align: center;
}

.btn-outline:hover {
    background: #2d2d2d;
}

.btn-link {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #f90;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

:root {
    --scrollbar-track: #f5f5f5;
    --scrollbar-thumb: #666;
    --scrollbar-thumb-hover: #42a5f5;
}

.criteria-toggle-btn:not(.active) {
    background: #2a2a2a;
    color: #999;
}

.criteria-toggle-btn:not(.active):hover {
    background: #2a2a2a;
    color: #ccc;
}

.criteria-value:not(.active) {
    background: #2a2a2a;
    color: #999;
    border: 1px solid #444;
}

.criteria-value:not(.active) .facet-count {
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #f90;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.criteria-value:not(.active):hover {
    background: rgba(255, 255, 255, .8);
    border-color: #f90;
    color: #000;
}

.product-image .no-images {
    width: 40%;
}

.product-actions .btn {
    font-size: 14px;
    padding: 9px 20px;
}

.caption h2 {
    display: block;
    font-size: 24px;
    padding: 0 !important;
    margin: 0 !important;
}

.code,
.product-title .code,
.details-containe .information .code,
.yhzq-list .code,
.phb-list .code {
    text-transform: none !important;
    font-variant-caps: normal !important;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.promotion-grid--standalone {
    margin-top: 18px;
}

.promotion-grid .promotion-card {
    flex: none !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch !important;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.promotion-grid .promotion-card .img-containe,
.promotion-grid .promotion-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.promotion-grid .promotion-card .img-containe img,
.promotion-grid .promotion-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.promotion-grid .vip-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7d774, #f3bf42);
    color: #3a2a00;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.promotion-grid .promotion-card .countdown-timer-overlay {
    left: 16px;
    right: 16px;
    bottom: 18px;
    width: auto;
    transform: none;
    z-index: 3;
}

.promotion-grid .promotion-card__details,
.promotion-grid .promotion-card .details-containe {
    width: 100% !important;
    float: none;
    padding: 22px 20px 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.promotion-grid .promotion-card .details-containe ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.promotion-grid .promotion-card .details-containe .information {
    height: auto;
    line-height: 1.45;
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

.promotion-grid .promotion-card .details-containe .information span {
    color: #0f172a;
    font-weight: 600;
}

.promotion-grid .promotion-card .details-containe .information.first .nickname {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.promotion-grid .promotion-card .details-containe .information.yj span {
    color: #ef4444;
    text-decoration: line-through;
    font-size: 24px;
    font-weight: 800;
}

.promotion-grid .promotion-card .details-containe .information.xj {
    color: #f97316;
    font-weight: 700;
}

.promotion-grid .promotion-card .details-containe .information.xj span {
    color: #16a34a;
    font-size: 24px;
    font-weight: 800;
}

.promotion-grid .promotion-card__stats {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.promotion-grid .promotion-card__stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.promotion-grid .promotion-card__stats i {
    font-size: 16px;
}

.promotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promotion-grid .promotion-card .details-containe .information.first .nickname {
    font-size: 24px;
}

.promotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promotion-grid .promotion-card .details-containe .information.first .nickname {
    font-size: 24px;
}
/* ========== moban-3 補齊：列表 / 搜尋 / 進階搜尋（非 index 共用） ========== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 780px;
    margin: 16px auto;
    padding: 12px 16px 20px;
    background: var(--surface);
    color: #e0e0e0;
    border: 1px solid var(--border);
    border-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.container.details-container {
    margin: 0 auto;
    padding: 12px;
}

.container.hl-search-container {
    margin: 0 auto;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    padding-bottom: 24px;
}

.hl-search-container #searchForm {
    padding: 16px 8px 24px;
}

.advanced-filter-container {
    margin-bottom: 8px;
    padding: 24px;
}

.breadcrumb {
    display: none;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--primary);
}

.sub-section {
    background: transparent;
    padding: 8px 0 16px;
    border-radius: 0;
    min-height: 0;
}

.global-container .sub-section {
    padding: 8px 12px 20px;
}

.sub-header {
    text-align: center;
    margin: 1.25rem 0;
}

.sub-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.sub-header-title h1,
.sub-header h1 {
    margin: 0;
    flex: 1 1 auto;
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    color: #e8e8e8;
    font-weight: 700;
}

.sub-header span,
#total-count {
    color: #f90;
}

.products-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 16px;
    margin-bottom: 1.5rem;
}

.sort-container {
    width: 100%;
    margin-top: 12px;
}

.sort-buttons {
    width: 100%;
    display: flex;
    background: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.sort-btn {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #b0b0b0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.sort-btn:hover {
    background: rgba(74, 158, 255, 0.12);
    color: #e0e0e0;
}

.sort-btn.active {
    background: #3a3a3a;
    color: #fff;
    font-weight: 600;
}

.sort-btn .arrow {
    transition: transform 0.3s ease;
}

.sort-btn.desc .arrow {
    transform: rotate(180deg);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.category-dropdown {
    position: relative;
    display: flex;
    flex: 1 1 120px;
    max-width: 120px;
}

.category-dropdown.todaynew-city-dropdown {
    width: auto;
    min-width: 120px;
    margin-left: 0;
    flex-shrink: 0;
}

.category-btn {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.25s ease;
    color: #fff;
    font-size: 13px;
}

.category-btn .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    min-width: 0;
}

.category-btn > i.las.la-angle-down {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.category-btn.active > i.las.la-angle-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d2d2d;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 1001;
    min-width: 160px;
    max-height: 200px;
    overflow: hidden;
    opacity: 0;
    margin-top: 6px;
    transition: all 0.25s ease;
    transform: translateY(-8px);
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
    /* 關閉時僅 opacity:0 仍在上層（z-index:1001）攔截點擊，會蓋住下方排序列；關閉時不接收指標 */
    pointer-events: none;
}

.dropdown-menu.show {
    max-height: min(220px, calc(100vh - 120px));
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    pointer-events: auto;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #3a3a3a;
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #fff;
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: #f90;
}

/* 標題列右側城市下拉：預設 left:0 會讓寬於按鈕的清單向右溢出視口，改為靠按鈕右緣對齊並限制最大寬高 */
.sub-header-title .category-dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

.sub-header-title .category-dropdown .dropdown-menu.show {
    max-width: min(360px, calc(100vw - 24px));
    max-height: min(45vh, 280px, calc(100dvh - 7rem - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.filter-section .categories {
    margin-bottom: 0;
}

/*
 * 全部菜品 .filter-section：禁止橫向捲動（overflow-x:auto/scroll 會與 fixed #footer 在 WebKit 上衝突）。
 * 亦勿對此層用 overflow-x:hidden（會把 overflow-y 算成 auto，下拉被裁且出現區塊內捲軸）。
 * 橫向不溢出只靠佈局：寬屏單行四鈕 flex 等分；≤767px 改 2×2，四鈕仍全在區塊內；下拉只在 .dropdown-menu 內縱向捲動。
 */
.page-youhui-listing.page-more-list .filter-section {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}

/* 寬屏：單行四鈕；等分 + min-width:0，長文案省略號 */
.page-youhui-listing.page-more-list .filter-section .categories {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(3px, 1vw, 8px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: visible;
}

.page-youhui-listing.page-more-list .filter-section .categories .category-dropdown {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

/* 蓋過 .category-dropdown.todaynew-city-dropdown 的 min-width:120px，否則四列 nowrap 必出橫條 */
.page-youhui-listing.page-more-list .filter-section .categories .category-dropdown.todaynew-city-dropdown {
    min-width: 0;
}

.page-youhui-listing.page-more-list .filter-section .categories .category-btn {
    width: 100%;
    min-width: 0;
    padding: clamp(6px, 1.2vw, 9px) clamp(3px, 0.9vw, 8px);
    font-size: clamp(12px, 2.65vw, 14px);
    gap: clamp(2px, 0.55vw, 6px);
    box-sizing: border-box;
}

.page-youhui-listing.page-more-list .filter-section .categories .category-btn .btn-text {
    min-width: 0;
    flex: 1 1 auto;
    letter-spacing: normal;
}

.page-youhui-listing.page-more-list .filter-section .categories .category-btn i {
    font-size: clamp(11px, 2.35vw, 13px);
    flex: 0 0 auto;
    flex-shrink: 0;
    line-height: 1;
    width: 1em;
    text-align: center;
}

/* 全部菜品篩選區下拉：扣固定底欄，僅在選單盒內縱向捲動，祖先保持 overflow-x:visible */
.page-youhui-listing.page-more-list .filter-section .categories .category-dropdown .dropdown-menu.show {
    max-width: min(360px, calc(100vw - 24px));
    max-height: min(45vh, 280px, calc(100dvh - 7rem - 100px - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 2×2 時右列按鈕的下拉靠右對齊，避免寬清單向左超出視口 */
.page-youhui-listing.page-more-list .filter-section .categories .category-dropdown:nth-child(2n) .dropdown-menu {
    left: auto;
    right: 0;
}

/* 全部菜品頁：任意視口寬度禁止橫向捲動（篩選 nowrap / 子元素 100vw 等） */
body.page-more-list {
    overflow-x: hidden;
    max-width: 100%;
}

body.page-more-list .global-container {
    max-width: 100%;
    box-sizing: border-box;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
    /* background: #252525; */
    padding: 16px 12px;
    /* border: 1px solid var(--border); */
    border-radius: 12px;
    margin-top: 8px;
    padding-bottom: 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #1a1a1a;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.page-btn.active {
    background: linear-gradient(90deg, #fbbd39, #ff8a00);
    color: #fff;
    border-color: #faae52;
    font-weight: 700;
}

a.page-btn:hover:not(.active):not(.disabled),
button.page-btn:hover:not(.active):not([disabled]) {
    background: #333;
    color: #fff;
}

.page-btn.disabled,
.page-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    padding: 0 4px;
    color: #888;
}

.products-empty,
.general-empty {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 24px 12px;
    color: #aaa;
    border-bottom: 1px solid var(--border);
    grid-column: 1 / -1;
}

.products-empty span,
.general-empty span {
    color: #666;
    margin-right: 8px;
}

.hl-search-container .sub-section.page-youhui-listing.qianse-search-results-cards {
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    border-radius: 0;
}

.qianse-search-results-cards .yhzq-list-containe > .loading-message,
.qianse-search-results-cards .yhzq-list-containe > .no-results {
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
}

.qianse-search-results-cards .yhzq-list-containe > .no-results {
    text-align: center;
    padding: 24px 12px;
    color: #aaa;
}

.filter-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #444;
}

.filter-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.filter-sidebar-close:hover {
    background: rgba(74, 158, 255, 0.18);
}

.filter-sidebar-close:active {
    transform: scale(0.96);
}

.filter-sidebar-close svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: #e4e4e4;
    pointer-events: none;
}

.filter-sidebar-close:hover svg {
    fill: #fff;
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 16px 18px;
    background: #252525;
    border: 1px solid var(--border);
    border-radius: 0;
    border-right-width:0;
    border-left-width:0;
}

.results-count {
    font-size: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 0;
}

.results-count i {
    color: #6ec902;
    margin-right: 8px;
}

.results-count strong {
    color: #f90;
    font-weight: 700;
    padding: 0 4px;
}

.sort-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 200px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.filter-toggle:hover {
    background: #3d8eef;
    transform: translateY(-1px);
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 92vw);
    height: 100%;
    background: #2d2d2d;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 16px 18px;
    border-left: 1px solid var(--border);
}

.filter-sidebar.open {
    right: 0;
}

.filter-sidebar .sidebar-title {
    color: #eee;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.filter-sidebar .sidebar-title i {
    color: #fff;
}

.filter-sidebar .criteria-item {
    border-color: #444;
    background: #262626;
}

.filter-sidebar .criteria-item.active {
    background: rgba(74, 158, 255, 0.12);
    border-color: #4a9eff;
}

.filter-sidebar .criteria-item strong {
    color: #e8e8e8;
}

.filter-sidebar .search-criteria {
    gap: 0.75rem;
}

.sidebar-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.hl-search-container .btn-secondary {
    background: transparent;
    border: 1px solid #888;
    color: #e0e0e0;
}

.hl-search-container .btn-secondary:hover {
    background: #3a3a3a;
}

.hl-search-container .loading-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    color: #aaa;
    background: #1f1f1f;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.hl-search-container .no-results {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #b8b8b8;
    grid-column: 1 / -1;
}

.hl-search-container .no-results h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: #ddd;
}

.hl-search-container .no-results p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.hl-search-container .no-results i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 12px;
}

.hl-search-container .overlay {
    z-index: 999;
}

#sortDropdown {
    overflow-y: hidden;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 16px;
}

.form-row label,
.hl-search-container .form-group>label:first-child {
    display: block;
    font-weight: 600;
    text-align: left;
    color: #ccc;
    margin-bottom: 8px;
}

.select-wrapper {
    position: relative;
    min-width: 120px;
    flex: 1 1 auto;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #888;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.select-wrapper.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: #1a1a1a;
    color: #e0e0e0;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select.active,
.select-wrapper.active .custom-select {
    border-color: #f90;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.custom-select-placeholder {
    color: #888;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2d2d2d;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 120;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.25s ease;
    transform: translateY(-8px);
}

.select-dropdown.show {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

.select-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
    color: #ccc;
    text-align: left;
}

.select-option:hover {
    background: #3a3a3a;
    color: #fff;
}

.select-option.selected {
    background: rgba(255, 153, 0, 0.25);
    color: #fff;
}

.select-option.error {
    color: #f87171;
    cursor: not-allowed;
    background: #2a2020;
}

.area-dropdown {
    background: #2d2d2d;
    border-color: var(--border);
}

.area-header {
    background: #333;
    color: #ddd;
    border-bottom-color: #444;
}

.area-option:hover {
    background: #3a3a3a;
}

.loading {
    color: #999;
}

.error-toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d2d;
    color: #ff6b6b;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    z-index: 10000;
    transition: top 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #ff6b6b;
}

.error-toast.show {
    top: 16px;
}

.message {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.message.error {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.message.info {
    background: rgba(74, 158, 255, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(74, 158, 255, 0.35);
}

.checkbox-section {
    margin-bottom: 18px;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
}

.checkbox-section-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #ddd;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-section-title i {
    margin-right: 6px;
    color: #4a9eff;
}

.custom-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-checkbox-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid var(--border);
    color: #ccc;
    user-select: none;
}

/* 進階搜尋多選：隱藏原生勾選框，無 hover，點擊後靠 .checked 激活 */
.custom-checkbox-item:hover {
    border-color: var(--border);
    background: #2a2a2a;
    color: #ccc;
}

.custom-checkbox-item.checked,
.custom-checkbox-item.checked:hover {
    background: rgba(255, 153, 0, 0.2);
    color: #fff;
    border-color: #f90;
}

.custom-checkbox-item input,
.custom-checkbox-item .hidden-input,
.hl-search-container .custom-checkbox-item input,
.hl-search-container .hidden-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.select-all-btn,
.invert-selection-btn {
    background: none;
    border: none;
    color: #f90;
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
}

.select-all-btn:hover,
.invert-selection-btn:hover {
    text-decoration: underline;
}




.page-youhui-listing .product-card .product-image .vip-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    margin: 0;
    width: auto;
    min-width: 76px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    animation: none;
    z-index: 11;
}

/* 優惠專區列表：卡片內文字過長單行省略（含搜尋結果等共用 .page-youhui-listing 的頁） */
.page-youhui-listing .product-card,
.page-youhui-listing .details-container-top,
.page-youhui-listing .product-info {
    min-width: 0;
    max-width: 100%;
}

.page-youhui-listing .product-details {
    min-width: 0;
    max-width: 100%;
}

.page-youhui-listing .product-title {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.page-youhui-listing .product-title .nickname {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

.page-youhui-listing .detail-item:not(.sub-pingfen) {
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

/* 模板使用 <lable class="global-lable">，需 flex-shrink:0 否則佔滿寬度導致數值無法省略 */
.page-youhui-listing .detail-item:not(.sub-pingfen) lable.global-lable {
    flex-shrink: 0;
}

.page-youhui-listing .detail-item:not(.sub-pingfen) span[class^="detail-"] {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.page-youhui-listing .detail-item .detail-city {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
}

/* 搜尋結果容器內網格卡片：再強化一層，避免與 hl-search 合併樣式搶寬度 */
.hl-search-container .page-youhui-listing .product-card {
    min-width: 0;
    max-width: 100%;
}

/*
 * 優惠專區／全部菜品列表：同排 flex 拉伸等高（詳情區見 .yhzq-list-containe / .page-youhui-listing 覆寫）。
 */
.page-youhui-listing .yhzq-list-containe {
    align-items: stretch;
}

.page-youhui-listing .yhzq-list {
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.page-youhui-listing .yhzq-list .img-containe {
    flex-shrink: 0;
}

/* ========== topList：佈局對齊 moban-2（僅 .toplist-page 內，配色沿用 moban-3 深色） ========== */

.toplist-page .toplist-header .sub-header-title {
    width: 100%;
    flex: 1 1 auto;
    justify-content: space-between;
    order: 1;
}

.toplist-page .toplist-header .sub-header-title h1 {
    flex: 0 1 auto;
    min-width: 0;
}

.toplist-page .toplist-header .todaynew-city-dropdown {
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
    max-width: min(160px, calc(100vw - 24px));
    position: relative;
}

.toplist-page .toplist-header .todaynew-city-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    min-width: min(200px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.toplist-page .toplist-header .todaynew-city-dropdown .category-btn {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 0;
    width: 100%;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f0f0f0;
    box-shadow: none;
}

.toplist-page .toplist-header .todaynew-city-dropdown .category-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
}

.toplist-page .toplist-header .todaynew-city-dropdown .category-btn i {
    color: rgba(255, 255, 255, 0.85);
}

.toplist-page .sub-container {
    width: 100%;
    margin-bottom: 24px;
    padding: 0 4px;
}

.toplist-page .tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
}

.toplist-page .tab-bg {
    display: none;
}

.toplist-page .tabs .tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.toplist-page .tabs .tab:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.08);
}

.toplist-page .tabs .tab.active {
    color: #1a1a1a;
    background: linear-gradient(90deg, #fbbd39, #ff8a00);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.toplist-page .points-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin-bottom: 24px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

.toplist-page .points-table thead th {
    padding: 14px 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    background: #2d2d2d;
    border-bottom: 1px solid var(--border);
    position: relative;
    vertical-align: middle;
    white-space: nowrap;
}

.toplist-page .points-table th.Order {
    width: 11%;
}

.toplist-page .points-table th.Goods {
    width: 36%;
}

.toplist-page .points-table th.Rating {
    width: 12%;
}

.toplist-page .points-table th.General {
    width: 22%;
}

.toplist-page .points-table th.Trending {
    width: 19%;
}

.toplist-page .points-table th:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    height: 56%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.toplist-page .points-table th:last-child::after {
    display: none;
}

.toplist-page .points-table tbody tr {
    transition: background 0.18s ease;
}

.toplist-page .points-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.toplist-page .points-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.toplist-page .points-table td {
    padding: 16px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: #e0e0e0;
}

.toplist-page .points-table tbody tr:last-child td {
    border-bottom: none;
}

.toplist-page tr.caipin-item {
    cursor: pointer;
}

.toplist-page .points-table .top-rank {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    color: #ccc;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.toplist-page .points-table tbody tr:nth-child(1) .top-rank.rank-top,
.toplist-page .points-table tbody tr:nth-child(1) .top-rank {
    color: #1a1a1a;
    background: linear-gradient(145deg, #e8c86a, #c9a227);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.toplist-page .points-table tbody tr:nth-child(2) .top-rank.rank-top,
.toplist-page .points-table tbody tr:nth-child(2) .top-rank {
    color: #1a1a1a;
    background: linear-gradient(145deg, #d4d4d4, #9ca3af);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toplist-page .points-table tbody tr:nth-child(3) .top-rank.rank-top,
.toplist-page .points-table tbody tr:nth-child(3) .top-rank {
    color: #f5f5f5;
    background: linear-gradient(145deg, #b45309, #92400e);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.toplist-page .points-table td[data-label="菜品"] {
    overflow: visible;
}

.toplist-page .points-table .player {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.toplist-page .points-table .avatar {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    margin-right: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 153, 0, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.toplist-page .points-table .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.toplist-page .points-table .player .phb-vip {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: #65bd07;
    border-radius: 30px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(3px, -10px);
}

.toplist-page .points-table .player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.toplist-page .points-table .player-info .name {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e8e8e8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.toplist-page .points-table .player-info .meta {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
    word-break: break-word;
    box-sizing: border-box;
}

.toplist-page .points-table td[data-label="評分"] .stat.phb-rating {
    font-family: "AVANTI", var(--ant-font-family);
    font-size: 1.35rem;
    font-weight: 800;
    color: #bbb;
    letter-spacing: -0.02em;
    text-align: center;
}

.toplist-page .points-table tbody tr:nth-child(1) td[data-label="評分"] .stat.phb-rating {
    display: inline-block;
    font-size: 1.45rem;
    background: linear-gradient(145deg, #e8c86a, #c9a227);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.toplist-page .points-table tbody tr:nth-child(2) td[data-label="評分"] .stat.phb-rating {
    display: inline-block;
    font-size: 1.45rem;
    background: linear-gradient(145deg, #d4d4d4, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.toplist-page .points-table tbody tr:nth-child(3) td[data-label="評分"] .stat.phb-rating {
    display: inline-block;
    font-size: 1.45rem;
    background: linear-gradient(145deg, #b45309, #92400e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.toplist-page .points-table td[data-label="趨勢"] .stat.trend-indicator,
.toplist-page .points-table .trend-indicator.stat {
    font-family: var(--ant-font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    text-align: center;
    white-space: nowrap;
}

.toplist-page .general-detail {
    text-align: center;
}

.toplist-page .points-table .general-detail .bottom-icons {
    display: flex;
    flex-direction: row;
    flex-wrap:  nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    font-size: 12px;
    font-family: "AVANTI", var(--ant-font-family);
}
.toplist-page .points-table .general-detail .bottom-icons span {
    padding-left: 0;
    /* display: inline-flex; */
    align-items: center;
    gap: 4px;
}

.toplist-page .points-table .trend-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.toplist-page .points-table .trend-indicator .trend-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.toplist-page .points-table .trend-indicator .trend-text span {
    font-weight: 700;
    color: inherit;
}

.toplist-page .points-table .trend-text.up span,
.toplist-page .points-table .trend-text.up {
    color: #22c55e;
}

.toplist-page .points-table .trend-text.down span,
.toplist-page .points-table .trend-text.down {
    color: #ef4444;
}

.toplist-page .points-table .trend-text.new span,
.toplist-page .points-table .trend-text.new {
    color: #d4d4d4;
}

.toplist-page .points-table .trend-text.flat span,
.toplist-page .points-table .trend-text.flat {
    color: #888;
}

.toplist-page .points-table .trend-indicator .trend-detail {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.3;
    max-width: 100%;
}

.toplist-page .general-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px;
    font-size: 1rem;
    color: var(--muted);
    border-bottom: none;
}

.toplist-page .tab-content {
    width: 100%;
}
/* =============================================================================
   todaynewList：標題列佈局對齊 moban-2（僅 #todaynew-list-section；配色沿用 moban-3）
   ============================================================================= */

   .todaynew-heading-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

#todaynew-list-section.todaynew-list-page .yhzq-card-template {
    display: none !important;
}

#todaynew-list-section.todaynew-list-page .yhzq-list-containe .products-empty {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    grid-column: auto;
    box-sizing: border-box;
}

#todaynew-list-section.todaynew-list-page .sub-header.newcaipin {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    text-align: left;
    margin-bottom: 0;
    padding: 2rem 12px 1rem;
}

#todaynew-list-section.todaynew-list-page .sub-header-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    order: 2;
}

#todaynew-list-section.todaynew-list-page .sub-header.newcaipin .range-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    order: 1;
}

#todaynew-list-section.todaynew-list-page .range-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #b0b0b0;
    text-decoration: none;
    background: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#todaynew-list-section.todaynew-list-page .range-tab:hover {
    color: #e0e0e0;
    border-color: rgba(74, 158, 255, 0.45);
    background: rgba(74, 158, 255, 0.12);
}

#todaynew-list-section.todaynew-list-page .range-tab.active {
    color: #fff;
    background: #3a3a3a;
    border-color: var(--border);
    font-weight: 600;
}

#todaynew-list-section.todaynew-list-page .range-tab span {
    font-size: 0.82em;
    font-weight: 700;
    color: inherit;
    opacity: 0.92;
}

#todaynew-list-section.todaynew-list-page .sort-container {
    margin: 16px 0 12px;
}
/* =============================================================================
   leda-details（moban-3）：對齊 qianse2025-m3.rtf／輪播與編號 CTA 規格
   ============================================================================= */

   .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.product-gallery {
    position: relative;
    min-width: 0;
    height: 540px;
    /* border-radius: 15px; */
    overflow: visible;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    padding: 10px;
    padding-bottom: 20px;
}

.product-gallery aside {
    display: block !important;
    max-width: 100%;
    background: transparent;
    padding: 0;
    overflow: visible;
    height: 100%;
}

.product-gallery .carousel-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery .carousel-container.subpage {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
}

.product-gallery .carousel-container.subpage>.thumbnails-container {
    flex-shrink: 0;
    width: 100%;
}

.product-gallery .main-image {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    perspective: 1200px;
}

.product-gallery .main-image .carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.product-gallery .main-image .details-slide,
.product-gallery .main-image .details-slide.slide-anim,
.product-gallery .main-image .carousel-slide,
.product-gallery .main-image .carousel-slide.slide-anim {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.product-gallery .main-image .details-slide>img,
.product-gallery .main-image .details-slide>video,
.product-gallery .main-image .carousel-slide>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 詳情主圖輪播：與 moban-2 結構對齊（不覆寫 product-gallery 陰影等 moban-3 配色） */
.main-image {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image .video-container {
    height: 100%;
}

.main-image.float-active {
    height: 100vh;
    object-fit: cover;
}

.main-image.float-active img {
    width: auto;
    height: 100%;
}

.main-image.float-active.fullscreen-active {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100vh;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: unset;
}

.main-image.float-active.fullscreen-active .carousel-track {
    height: auto;
    max-height: 100vh;
    min-height: 0;
    display: flex;
    align-items: center;
}

.main-image.float-active.fullscreen-active .details-slide {
    min-height: 0;
    height: auto;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex: 0 0 100%;
}

.main-image.float-active.fullscreen-active img,
.main-image.float-active.fullscreen-active video {
    max-width: 100%;
    object-fit: cover;
}

.main-image.float-active.fullscreen-active .details-slide img.landscape-img {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh;
    object-fit: contain;
}

.main-image.float-active.fullscreen-active .details-slide img.portrait-img {
    width: auto !important;
    height: 100% !important;
    max-height: 100vh;
    max-width: 100%;
    object-fit: contain;
}

.main-image.fullscreen-active .dots,
.main-image.fullscreen-active .dots-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
}

/* 詳情子頁左右箭頭（與 moban-2 一致，中性半透明，不改整站主色） */
.carousel-container.subpage .main-image>button.prev.glass,
.carousel-container.subpage .main-image>button.next.glass {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    fill: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.carousel-container.subpage .main-image>button.prev.glass {
    left: 15px;
}

.carousel-container.subpage .main-image>button.next.glass {
    right: 15px;
}

.carousel-container.subpage .main-image>button.prev.glass::before,
.carousel-container.subpage .main-image>button.next.glass::before,
.carousel-container.subpage .main-image>button.prev.glass::after,
.carousel-container.subpage .main-image>button.next.glass::after {
    display: none;
    content: none;
}

.carousel-container.subpage .main-image>button.prev.glass:hover,
.carousel-container.subpage .main-image>button.next.glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 縮圖列：與 moban-2 佈局一致；選中高亮用中性白邊（不引入 moban-2 粉紅主色） */
.thumbnails-container {
    display: flex;
    padding: 8px;
    gap: 10px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    position: relative;
    margin-bottom: 0;
    min-height: fit-content;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.thumbnails-container .thumbnail {
    flex-shrink: 0;
    width: 15%;
    aspect-ratio: 1;
    height: auto;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.thumbnails-container .thumbnail:hover {
    opacity: 0.85;
}

.thumbnails-container .thumbnail.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.85);
}

.thumbnails-container .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.details-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.details-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-slide.slide-anim {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    z-index: 1;
}

.details-slide.slide-anim.active {
    z-index: 5;
}

.details-slide.fade-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.details-slide.fade-anim.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.details-slide.coverflow-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.details-slide.left {
    transform: translateX(-30%) scale(0.7) rotateY(30deg);
    opacity: 0.6;
    z-index: 5;
}

.details-slide.right {
    transform: translateX(30%) scale(0.7) rotateY(-30deg);
    opacity: 0.6;
    z-index: 5;
}

.details-slide.active.coverflow-anim {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
}

.details-container .detail-identity-seller-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.details-container .detail-identity-seller-cluster>.detail-identity-block:not(.is-seller-session) {
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

.detail-identity-block {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 18px;
}

.detail-identity-block.is-seller-session {
    display: grid;
    grid-template-columns: 1fr;
}

.details-container .detail-identity-seller-cluster:has(.detail-identity-block.is-seller-session) {
    align-items: stretch;
    width: 100%;
}

.details-container .detail-identity-seller-cluster:has(.detail-identity-block.is-seller-session) .detail-identity-block.is-seller-session {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    grid-template-columns: 1fr;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.details-container .detail-identity-seller-cluster:has(.detail-identity-block.is-seller-session) .seller-tools {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}

/* 機房 + 代調鈕橫向鋪滿：兩顆均分；僅機房時單顆鋪滿 */
.details-container .detail-identity-seller-cluster:has(.detail-identity-block.is-seller-session) .seller-tools .seller-jifang-link,
.details-container .detail-identity-seller-cluster:has(.detail-identity-block.is-seller-session) .seller-tools .seller-daidiao-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.detail-code-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 132px);
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1b1f24 0%, #111317 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    white-space: nowrap;
    overflow: hidden;
    height: 45px;
    min-height: 45px;
}

.detail-code-note {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #8d98a3;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-code-value {
    font-family: avenir, system-ui, sans-serif;
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #f4bc03;
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-booking-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: auto;
    min-width: 108px;
    max-width: 48%;
    align-self: stretch;
}

.detail-booking-eyebrow {
    display: none;
}

.detail-booking-btn {
    display: flex;
    width: auto;
    min-width: 108px;
    min-height: 45px;
    height: 45px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 3px;
    background: linear-gradient(135deg, #1f252c 0%, #13171b 100%);
    border: 1px solid rgba(97, 209, 251, 0.22);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.detail-booking-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(97, 209, 251, 0.42);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4);
}

.detail-booking-btn.is-disabled {
    pointer-events: none;
    opacity: 0.58;
    box-shadow: none;
}

.detail-booking-btn-text {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    white-space: nowrap;
}

.detail-booking-btn-note {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #9bc4d1;
    white-space: nowrap;
    text-align: left;
    flex-shrink: 0;
}
/* =============================================================================
   leda-details：qianse2025-m3.rtf（解碼後自 .product-header 起之片段；選擇器已加 .container.details-container）
   ============================================================================= */
   .container.details-container .product-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
    margin-top: 10px;
}

.container.details-container .product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    padding: 0;
    margin: 0;
    text-align: left;
    margin: 10px 0;
}

/* \uc0\u29305 \u20729 \u27161 \u31844 \u23481 \u22120  */
.sale-tag-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 16px;
    /* background: linear-gradient(135deg, rgb(255, 125, 125) 0%, rgb(255, 36, 66) 100%); */
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 4px;
    animation: sale-pulse 2s ease-in-out infinite;
    margin-top: 0;
}

/* \uc0\u29305 \u20729 \u22294 \u31034  */
.sale-icon {
    width: 20px;
    height: 20px;
}

/* \uc0\u29305 \u20729 \u25991 \u23383  */
.sale-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

@keyframes sale-pulse {

    0%,
    100% {
        transform: scale(1);
        /* box-shadow: 0 2px 8px rgba(115, 190, 200, 0.3); */
    }

    50% {
        transform: scale(1.05);
        /* box-shadow: 0 2px 8px rgba(115, 190, 200, 0.3); */
    }
}

.container.details-container .product-code {
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 1.0rem;
    /* font-family: avenir; */
    width: 100%;
    flex-basis: 100%;
    text-align: left;
}

.container.details-container .product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.container.details-container .stars {
    color: #FFA000;
    margin-right: 10px;
    font-size: 1.2rem;
}

.container.details-container .reviews {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.container.details-container .product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.container.details-container .current-price {
    font-size: 2rem;
    font-weight: 800;
    color: #FFA000;
    font-family: avenir;
}

.container.details-container .original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: avenir;
}

.container.details-container .discount {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.container.details-container .product-detail .original-price {
    margin-left: 15px;
}

.container.details-container .product-detail .discount {
    margin-left: 15px;
}

/* \uc0\u20498 \u35336 \u26178 \u22120 \u27171 \u24335  */
.countdown-timer {
    margin-top: 15px;
    margin-bottom: 20px;
}

.container.details-container .countdown-timer.countdown-hidden {
    display: none;
}

.container.details-container .countdown-label {
    font-size: 1.0rem;
    color: #ff2442;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
}

.container.details-container .countdown-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    box-sizing: border-box;
    /* \uc0\u38450 \u27490 \u20296 \u23616 \u36339 \u21205  */
    min-height: 50px;
    contain: layout;
    /* \uc0\u38450 \u27490 \u21021 \u22987 \u21270 \u26178 \u30340 \u20296 \u23616 \u31227 \u21205  */
    position: relative;
}

.container.details-container .time-unit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 2px;
    padding: 8px;
    flex: 0 0 auto;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.3);
    gap: 4px;
    white-space: nowrap;
    box-sizing: border-box;
    /* \uc0\u38450 \u27490 \u20839 \u23481 \u35722 \u21270 \u23566 \u33268 \u30340 \u23532 \u24230 \u36339 \u21205  */
    overflow: hidden;
}

.container.details-container .time-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    font-family: avenir;
    line-height: 1;
    white-space: nowrap;
    min-width: 28px;
    width: 28px;
    max-width: 28px;
    height: 22px;
    max-height: 22px;
    min-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.container.details-container .time-label {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 2px;
    font-weight: 600;
    white-space: nowrap;
}

.container.details-container .time-separator {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff2442;
    font-family: avenir;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
}

.container.details-container .time-separator.hidden {
    visibility: hidden;
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 0;
}

/* \uc0\u20498 \u35336 \u26178 \u28014 \u21205 \u27171 \u24335 \u65288 \u29992 \u26044 \u20778 \u24800 \u23560 \u21312 \u29986 \u21697 \u21345 \u29255 \u65289  */


.container.details-container .countdown-display-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
}

/* \uc0\u30070 \u20498 \u35336 \u26178 \u27169 \u32068 \u36229 \u20986 \u23481 \u22120 \u26178 \u20801 \u35377 \u25240 \u34892  */
.countdown-timer-overlay .countdown-display-mini {
    flex-wrap: wrap;
}

/* youhuiList \uc0\u38913 \u38754  product-title \u27171 \u24335  - \u27161 \u38988 \u21644 \u32232 \u30908 \u20998 \u20841 \u34892 \u39023 \u31034  */
.products-grid .product-title,
.sub-section .product-title {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.container.details-container .products-grid .product-title .nickname,
.container.details-container .sub-section .product-title .nickname {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.container.details-container .products-grid .product-title .code,
.container.details-container .sub-section .product-title .code {
    display: block;
    width: 100%;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 0;
}

/* youhuiList \uc0\u38913 \u38754 \u20498 \u35336 \u26178 \u27169 \u32068 \u27171 \u24335  - \u31227 \u38500 \u28014 \u21205 \u65292 \u25554 \u20837 \u21040 \u20729 \u37666 \u24460 \u38754  */
.products-grid .product-card .countdown-timer-overlay,
.sub-section .product-card .countdown-timer-overlay {
    position: static !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    background: none !important;
    backdrop-filter: blur(10px);
    border-radius: 2px;
    padding: 6px 0;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 10px !important;
}

.container.details-container .products-grid .countdown-item-youhui,
.container.details-container .sub-section .countdown-item-youhui {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.container.details-container .products-grid .product-card .countdown-timer-overlay .countdown-label,
.container.details-container .sub-section .product-card .countdown-timer-overlay .countdown-label {
    font-size: 1.0rem;
    color: #ff2442;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
}

.container.details-container .products-grid .product-card .countdown-timer-overlay .countdown-display,
.container.details-container .sub-section .product-card .countdown-timer-overlay .countdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    min-height: auto;
}

/* youhuiList \uc0\u38913 \u38754 \u20498 \u35336 \u26178 \u26178 \u38291 \u21934 \u20301 \u27171 \u24335  - \u37610 \u28415 \u23481 \u22120 \u23532 \u24230  */
.products-grid .product-card .countdown-timer-overlay .time-unit,
.sub-section .product-card .countdown-timer-overlay .time-unit {
    padding: 4px 6px;
    flex: 1;
    min-width: 0;
    max-width: none;
    gap: 2px;
    display: flex;
    justify-content: center;
}

.container.details-container .products-grid .product-card .countdown-timer-overlay .time-value,
.container.details-container .sub-section .product-card .countdown-timer-overlay .time-value {
    font-size: 1.1rem;
    min-width: 28px;
    width: 28px;
    max-width: 28px;
    height: 24px;
    max-height: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.container.details-container .products-grid .product-card .countdown-timer-overlay .time-label,
.container.details-container .sub-section .product-card .countdown-timer-overlay .time-label {
    font-size: 0.8rem;
    margin-top: 1px;
}

.container.details-container .products-grid .product-card .countdown-timer-overlay .time-separator,
.container.details-container .sub-section .product-card .countdown-timer-overlay .time-separator {
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.container.details-container .time-unit-mini {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    border-radius: 2px;
    padding: 4px 6px;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
}

.container.details-container .time-value-mini {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    font-weight: 800;
    color: white;
    font-family: avenir;
    line-height: 1;
    white-space: nowrap;
}

.container.details-container .time-label-mini {
    font-size: clamp(0.4rem, 1.2vw, 0.65rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    white-space: nowrap;
}

.container.details-container .time-separator-mini {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    font-weight: 800;
    color: white;
    font-family: avenir;
    white-space: nowrap;
}

/* \uc0\u22294 \u29255 \u38928 \u35261 \u27169 \u24907 \u26694 \u27171 \u24335  */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.container.details-container .preview-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgb(97, 209, 251), rgb(1, 184, 252));
    color: white;
}

.preview-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-header h3 i {
    font-size: 24px;
}

.preview-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0;
    color: #999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 0;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.preview-close svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    margin: auto;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.preview-close:active {
    transform: rotate(90deg) scale(0.95);
}

.preview-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #1a1a1a;
}

.container.details-container .preview-image {
    max-width: 100%;
    max-height: 45vh;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid #f0f0f0;
    transition: all 0.3s ease;
}

.container.details-container .preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.container.details-container .preview-info {
    font-size: 15px;
    color: #999;
    margin: 0;
    text-align: center;
    word-break: break-all;
    background: #2a2a2a;
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.container.details-container .preview-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
}

.container.details-container .preview-search-btn,
.container.details-container .preview-cancel-btn {
    flex: 1;
    padding: 14px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container.details-container .preview-search-btn {
    background: linear-gradient(135deg, rgb(97, 209, 251), rgb(1, 184, 252));
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
    text-align: center;
}

.container.details-container .preview-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.container.details-container .preview-search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.container.details-container .preview-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.45);
}

.container.details-container .preview-search-btn:active {
    transform: translateY(-1px);
}

.container.details-container .preview-cancel-btn:hover {
    background: #2a2a2a;
    color: #ccc;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.container.details-container .preview-cancel-btn:active {
    transform: translateY(0);
}

.container.details-container .product-description {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.container.details-container .product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.container.details-container .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e0e0e0;
    /* font-weight: 600; */
    white-space: nowrap;
}

.container.details-container .feature-item span {
    color: #999;
}

.container.details-container .feature-item.full-width {
    grid-column: 1 / -1;
}

.container.details-container .feature-item i {
    color: #3498db;
    margin-right: 10px;
    font-size: 1rem;
}

.container.details-container .feature-item .price-highlight {
    color: #FFA000;
    font-weight: 700;
    padding-right: 4px;
}

.container.details-container .product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
}

.container.details-container .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
}

.container.details-container .stat-item i {
    font-size: 1.4rem;
    color: #FFA000;
}

.container.details-container .stat-item:nth-child(2) i {
    font-size: 1.5rem;
}

.container.details-container .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: avenir;
}

.container.details-container .product-options {
    margin-bottom: 25px;
}

.container.details-container .option-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.container.details-container .color-options,
.container.details-container .size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.container.details-container .color-option,
.container.details-container .size-option {
    padding: 8px 15px;
    border: 2px solid #eaf7ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.container.details-container .color-option:hover,
.container.details-container .size-option:hover {
    border-color: #3498db;
}

.container.details-container .color-option.active,
.container.details-container .size-option.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.container.details-container .quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.container.details-container .quantity-btn {
    width: 40px;
    height: 40px;
    background: #1a3a5a;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container.details-container .quantity-btn:hover {
    background: #3498db;
    color: white;
}

.container.details-container .quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    margin: 0 10px;
    border: 2px solid #eaf7ff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.container.details-container .add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background: linear-gradient(90deg, #333, #222);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    /* box-shadow: 0 6px 12px rgba(251, 189, 57, 0.4); */
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container.details-container .add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.container.details-container .add-to-cart:hover::before {
    left: 100%;
}

.container.details-container .add-to-cart:hover {
    background: linear-gradient(90deg, #444, #555);
    transform: translateY(-2px);
    /* box-shadow: 0 3px 6px rgba(255, 255, 255, 0.2); */
}

.container.details-container .wishlist-btn {
    width: 50px;
    height: auto;
    min-height: 50px;
    max-height: 50px;
    background: #2a2a2a;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: #eee;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1) !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container.details-container .wishlist-btn:hover {
    background: #333;
    color: white;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.container.details-container .wishlist-btn:active {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    color: #ffd700;
}

.container.details-container .wishlist-btn.favorited i {
    color: #ffd700;
}

.container.details-container .wishlist-btn.favorited {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.container.details-container .wishlist-btn:focus {
    outline: none;
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.container.details-container .wishlist-btn:focus-visible {
    outline: none;
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.container.details-container .wishlist-btn.loading {
    height: auto !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
}

.container.details-container .product-specs {
    margin-bottom: 40px;
}

.container.details-container .duration-price-item {
    display: flex;
    align-items: center;
    background: #444;
    border-radius: 2px;
    padding: 12px 8px;
    box-shadow: 0 6px 14px rgba(242, 113, 33, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f90;
    margin-top: 10px;
}

.container.details-container .duration-time {
    font-weight: 600;
    color: #eee;
}

.container.details-container .duration-label {
    display: inline-block;
    font-weight: 600;
    color: #999;
}

.container.details-container .duration-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-left: auto;
    font-weight: 700;
}

.container.details-container span.duration-current {
    font-size: 1.05rem;
    color: #f90;
    font-weight: 700;
}

.container.details-container .duration-original {
    font-size: 1.05rem;
    color: #ff2442;
    text-decoration: line-through;
}

.container.details-container .specs-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf7ff;
}

.container.details-container .specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.container.details-container .spec-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    background: #2f2f2f;
    border-radius: 0;
    font-size: 0.95rem;
    gap: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.container.details-container .spec-name {
    color: #fff;
    padding-right: 2px;
    width: 70px;
    text-align: justify;
    text-align-last: justify;
    text-justify: distribute-all-lines;
    align-items: center;
    height: 20px;
}

.container.details-container .spec-value {
    color: #7f8c8d;
    text-align: left;
    align-items: center;
    display: flex;
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 10px;
}

.container.details-container .spec-value a {
    color: #0497b7;
    padding-right: 10px;
}

.container.details-container .customer-reviews {
    margin-top: 50px;
    grid-column: 1 / -1;
    /* \uc0\u36328 \u36234 \u25152 \u26377 grid\u21015  */
}

.container.details-container .reviews-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.container.details-container .reviews-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #fff;
    padding-top: 0;
    /* border-bottom: 2px solid #eaf7ff; */
    text-align: left;
    padding-left: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.container.details-container .current-rating {
    font-size: 18px;
    font-weight: 600;
    margin-right: 15px;
}
.current-rating .rating-value{
    color: #f90;
    padding-right: 6px;
}
.rating-count{
    color: #f90;
}
.container.details-container .review-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    box-shadow: none;
    border-radius: 4px;
}

.container.details-container .review-item:last-child {
    border-bottom: 0;
}

.container.details-container .review-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 12px;
}

.container.details-container .review-avatar {
    flex-shrink: 0;
}

.container.details-container .review-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
    background-color: #333;
}

.container.details-container .review-main {
    width: 100%;
    padding: 0 12px;
    position: relative;
    /* \uc0\u35373 \u23450 \u28858 \u30456 \u23565 \u23450 \u20301 \u65292 \u20316 \u28858 zhiding\u30340 \u23450 \u20301 \u23481 \u22120  */
}

/* \uc0\u32622 \u38914 \u27161 \u31844  */
.zhiding {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.container.details-container .zhiding img {
    width: 40px;
    height: auto;
    display: block;
}

/* \uc0\u31934 \u33775 \u27161 \u31805 */
.jinghua {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.container.details-container .jinghua img {
    width: 40px;
    height: auto;
    display: block;
}

.container.details-container .review-header {
    margin-bottom: 8px;
}

.container.details-container .review-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.container.details-container .reviewer {
    font-weight: 600;
    font-size: 14px;
    color: #ccc;
    font-family: pingfang;
    cursor: pointer;
    transition: color 0.2s ease;
}

.container.details-container .reviewer:hover {
    color: #007aff;
}

.container.details-container .review-date {
    color: #b3b3b3;
    font-size: 11px;
}

.container.details-container .review-content {
    color: #e0e0e0;
    line-height: 1.5;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-word;
    font-family: pingfang;
    margin-top: 6px;
}

/* \uc0\u24050 \u21034 \u38500 \u35413 \u35542 \u20839 \u23481 \u27171 \u24335  */
.deleted-content {
    color: #f44444;
    font-style: italic;
    background: #3a2020;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    border-left: 3px solid #ec1b21;
    font-size: 13px;
}

.container.details-container .pending-content {
    color: #d9a441;
    font-style: italic;
    background: #3a3120;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    border-left: 3px solid #f3b300;
    font-size: 13px;
}

/* \uc0\u30070 \u35413 \u35542 \u34987 \u21034 \u38500 \u26178 \u65292 \u38577 \u34255 \u25805 \u20316 \u25353 \u37397  */
.review-content:has(.deleted-content)~.review-actions {
    display: none !important;
}

/* \uc0\u35413 \u35542 \u23186 \u39636 \u21015 \u34920  */
.comment-media-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4\uc0\u21015 \u32178 \u26684  */
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.container.details-container .comment-media-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* \uc0\u23532 \u39640 \u27604 1:1\u65292 \u20445 \u25345 \u27491 \u26041 \u24418  */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.container.details-container .comment-media-item:hover {
    transform: scale(1.05);
}

.container.details-container .comment-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* \uc0\u23532 \u39640 \u27604 1:1\u65292 \u20445 \u25345 \u27491 \u26041 \u24418  */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.container.details-container .comment-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container.details-container .comment-video-wrapper .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    pointer-events: none;
}

/* \uc0\u21934 \u24373 \u22294 \u29255 \u26178 \u20308 \u28415 \u23532 \u24230 \u65292 \u20294 \u20445 \u25345 \u23532 \u39640 \u19968 \u33268  */
.comment-media-list:has(.comment-media-item:only-child),
.comment-media-list:has(.comment-video-wrapper:only-child) {
    grid-template-columns: 1fr;
    max-width: 300px;
    /* \uc0\u38480 \u21046 \u26368 \u22823 \u23532 \u24230  */
}

/* \uc0\u20841 \u24373 \u22294 \u29255 \u26178 \u21508 \u20308 \u19968 \u21322  */
.comment-media-list:has(.comment-media-item:nth-child(2):last-child),
.comment-media-list:has(.comment-video-wrapper:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* \uc0\u19977 \u24373 \u22294 \u29255 \u26178 3\u21015  */
.comment-media-list:has(.comment-media-item:nth-child(3):last-child),
.comment-media-list:has(.comment-video-wrapper:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.container.details-container .review-actions {
    display: flex;
    flex-wrap: nowrap;
    /* \uc0\u19981 \u25240 \u34892  */
    gap: 18px;
    align-items: center;
    margin-top: 2px;
}

.container.details-container .action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #8a919f;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* \uc0\u19981 \u25910 \u32302 \u65292 \u20445 \u25345 \u25353 \u37397 \u23436 \u25972  */
    white-space: nowrap;
    /* \uc0\u25353 \u37397 \u25991 \u23383 \u19981 \u25563 \u34892  */
}

.container.details-container .action-btn.active i,
.container.details-container .action-btn.liked i {
    color: #ff2442 !important;
}

.container.details-container .action-btn i {
    font-size: 15px;
}

.container.details-container .action-btn span {
    font-size: 12px;
    font-family: AVANTI;
}

.container.details-container .like-btn.active {
    color: #ff2442;
}

.container.details-container .like-btn.active i {
    animation: likeAnimation 0.4s ease;
}

.container.details-container .like-btn.active i::before {
    content: '\\f004';
    font-weight: 900;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.container.details-container .review-list {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 12px;
    grid-column: 1 / -1;
    overflow: hidden;
    /* \uc0\u36328 \u36234 \u25152 \u26377 grid\u21015  */
}

/* \uc0\u24213 \u37096 \u35413 \u35542 \u36664 \u20837 \u26694  - \u23567 \u32005 \u26360 \u39080 \u26684  */
.comment-input-footer {
    margin-top: 12px;
    padding: 16px;
    /* padding-top: 26px; */
    background: #1a1a1a;
    /* border-radius: 0 0 12px 12px; */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container.details-container .comment-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container.details-container .comment-input-wrapper {
    flex: 1;
    position: relative;
}

.container.details-container .comment-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #2d2d2d;
    font-size: 14px;
    color: #ccc;
    outline: none;
    transition: all 0.3s ease;
}

.container.details-container .comment-input:focus {
    background: #1a1a1a;
    border-color: #d0d0d0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.container.details-container .comment-input::placeholder {
    color: #999;
}

.container.details-container .interaction-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.container.details-container .interaction-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.container.details-container .interaction-stats .stat-item:hover {
    transform: translateY(-1px);
}

.container.details-container .interaction-stats .stat-item i {
    font-size: 16px;
    color: #999;
}

.container.details-container .interaction-stats .stat-item.active i {
    color: #ff2442 !important;
}

.container.details-container .interaction-stats .stat-item span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.container.details-container .interaction-stats .stat-item:hover i,
.container.details-container .interaction-stats .stat-item:hover span {
    color: #ccc;
}

/* \uc0\u20998 \u20139 \u25353 \u37397 \u29305 \u27530 \u27171 \u24335  */
.interaction-stats .stat-item:last-child {
    gap: 0;
    padding: 6px;
}

.container.details-container .interaction-stats .stat-item:last-child i {
    font-size: 18px;
}

/* \uc0\u40670 \u36106 \u21205 \u30059  */
.liked {
    animation: likeAnimation 0.6s ease-out;
}

.container.details-container .unliked {
    animation: unlikeAnimation 0.6s ease-out !important;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes unlikeAnimation {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.7);
    }

    50% {
        transform: scale(0.8);
    }

    75% {
        transform: scale(0.75);
    }

    100% {
        transform: scale(1);
    }
}

/* \uc0\u26032 \u30340 \u22238 \u35206 \u36664 \u20837 \u27169 \u32068 \u27171 \u24335  - \u20841 \u34892 \u20296 \u23616  */
.reply-input-module {
    margin-top: 12px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #333;
}

/* \uc0\u22238 \u35206 \u30446 \u27161 \u36039 \u35338  */
.reply-target-info {
    display: none;
    padding: 8px 12px;
}

.container.details-container .reply-target-header {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
    text-align: left;
}

.container.details-container .reply-target-text {
    color: #999;
    margin-right: 4px;
}

.container.details-container .reply-target-user {
    color: #ff2442;
    font-weight: 500;
}

.container.details-container .reply-target-content {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* \uc0\u36664 \u20837 \u26694 \u34892  */
.input-row {
    margin-bottom: 12px;
}

.container.details-container .reply-text-input {
    width: 100%;
    padding: 12px 32px;
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    color: #eee;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: none;
    min-height: 65px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
    overflow-y: hidden;
    /* \uc0\u38577 \u34255 \u25458 \u36600  */
    resize: none;
    /* \uc0\u31105 \u27490 \u25302 \u25289  */
    height: auto;
}

.container.details-container .reply-text-input:focus {
    background: rgba(255, 255, 255, 0.05);
}

.container.details-container .reply-text-input::placeholder {
    color: #999;
}

/* \uc0\u25511 \u21046 \u34892  */
/* \uc0\u22294 \u29255 \u38928 \u35261 \u23481 \u22120  */
.image-preview-container {
    padding: 10px 0;
    margin-bottom: 10px;
}

.container.details-container .image-preview-wrapper {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.container.details-container .preview-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #eaf7ff;
    object-fit: cover;
}

.container.details-container .remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.container.details-container .remove-image-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.container.details-container .controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* \uc0\u24038 \u20596 \u25511 \u21046 \u25353 \u37397  */
.left-controls {
    display: flex;
    gap: 8px;
}

/* \uc0\u21491 \u20596 \u25511 \u21046 \u25353 \u37397  */
.right-controls {
    display: flex;
    gap: 8px;
}

/* \uc0\u36664 \u20837 \u25353 \u37397  */
.input-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
    font-size: 24px;
    border: 0;
    font-weight: lighter;
}

/* .input-btn:hover {    background: #2a2a2a;    border-color: #b0b0b0;    color: #ccc;}
.container.details-container .input-btn:active{    transform: scale(0.95);} */
/* \uc0\u20659 \u36865 \u21644 \u21462 \u28040 \u25353 \u37397  */
.review-main .action-btn {
    padding: 0;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: pingfang;
}

.container.details-container .controls-row .action-btn {
    padding: 8px 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    border-radius: 4px;
}

.container.details-container .send-btn {
    background: #ff2442;
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 36, 66, 0.2);
}

.container.details-container .send-btn:hover {
    background: #e61e3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 36, 66, 0.3);
}

.container.details-container .send-btn:active {
    transform: translateY(0);
}

.container.details-container .controls-row .action-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    border: 1px solid #555;
}

.container.details-container .cancel-btn:hover {
    background: #2a2a2a;
    color: #ccc;
    border-color: #b0b0b0;
}

.container.details-container .cancel-btn:active {
    transform: scale(0.98);
}

/* \uc0\u22238 \u35206 \u21015 \u34920 \u27171 \u24335  - \u23567 \u32005 \u26360 \u39080 \u26684  */
.reply-list {
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 4px;
    text-align: left;
    display: block;
}

.container.details-container .reply-list .reply-item {
    border-bottom: 1px dashed #ddd;
    padding: 10px;
}

.container.details-container .reply-list .reply-item:last-child {
    border-bottom: none;
}

/* \uc0\u31354 \u30340 \u22238 \u35206 \u21015 \u34920 \u38577 \u34255  */
.reply-list:empty {
    display: none;
}

/* \uc0\u22238 \u35206 \u25805 \u20316 \u25353 \u37397  */
.reply-actions {
    display: flex;
    flex-wrap: nowrap;
    /* \uc0\u19981 \u25240 \u34892  */
    gap: 12px;
    margin-top: 6px;
    padding-top: 4px;
    align-items: center;
}

.container.details-container .reply-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #8a919f;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 0;
    flex-shrink: 0;
    /* \uc0\u19981 \u25910 \u32302 \u65292 \u20445 \u25345 \u25353 \u37397 \u23436 \u25972  */
    white-space: nowrap;
    /* \uc0\u25353 \u37397 \u25991 \u23383 \u19981 \u25563 \u34892  */
}

.container.details-container .reply-action-btn.active i,
.container.details-container .reply-action-btn.liked i {
    color: #ff2442 !important;
}

.container.details-container .reply-action-btn i {
    font-size: 13px;
}

.container.details-container .reply-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

.container.details-container .reply-action-btn.like-btn.active {
    color: #ff2442;
}

.container.details-container .reply-action-btn.like-btn.active i {
    color: #ff2442;
}

.container.details-container .reply-item {
    font-size: 14px;
    line-height: 1.5;
    color: #999;
    margin-bottom: 6px;
    word-break: break-all;
    font-family: pingfang;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    /* \uc0\u30906 \u20445 \u21487 \u20197 \u21253 \u21547 \u23376 \u20803 \u32032  */
}

.container.details-container .reply-item:last-child {
    margin-bottom: 0;
}

/* reply-item\uc0\u20839 \u30340 \u30452 \u25509 \u25991 \u23383 \u21644 \u20803 \u32032 \u27171 \u24335  */
.reply-item>.reply-user,
.reply-item>.reply-text {
    display: inline-block;
}

.container.details-container .reply-item>.reply-time,
.container.details-container .reply-item>.reply-actions {
    display: block;
}

.container.details-container .reply-item>.reply-actions,
.container.details-container .reply-item-new>.reply-actions {
    display: flex;
    flex-wrap: nowrap;
    /* \uc0\u30906 \u20445 reply-item\u20839 \u30340 \u25353 \u37397 \u20063 \u19981 \u25240 \u34892  */
}

.container.details-container .reply-item-new {
    font-size: 14px;
    line-height: 1.5;
    color: #999;
    margin-bottom: 6px;
    margin-top: 8px;
    margin-left: 10px;
    /* \uc0\u31532 \u19968 \u23652 \u32302 \u25490 2\u20491 \u23383 \u20803  */
    padding: 8px 10px;
    padding-left: 12px;
    word-break: break-all;
    font-family: pingfang;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #e6f4fc;
    border-radius: 4px;
}

/* \uc0\u24034 \u29376 \u30340 reply-item-new\u65292 \u27599 \u23652 \u20877 \u22686 \u21152 \u32302 \u25490  */
.reply-item-new .reply-item-new {
    margin-left: 10px;
    /* \uc0\u30456 \u23565 \u26044 \u29238 \u32026 \u20877 \u32302 \u25490 2em */
    border-left-color: #ddeffa;
    /* \uc0\u26356 \u28145 \u30340 \u37002 \u26694 \u38991 \u33394  */
}

.container.details-container .reply-item-new .reply-item-new .reply-item-new {
    margin-left: 10px;
    /* \uc0\u31532 \u19977 \u23652  */
    border-left-color: #aae3fd;
    /* \uc0\u26356 \u28145 \u30340 \u37002 \u26694 \u38991 \u33394  */
}

.container.details-container .reply-item-new .reply-item-new .reply-item-new .reply-item-new {
    margin-left: 10px;
    /* \uc0\u31532 \u22235 \u23652 \u21450 \u20197 \u24460  */
    border-left-color: #83d5fb;
    /* \uc0\u26356 \u28145 \u30340 \u37002 \u26694 \u38991 \u33394  */
}

.container.details-container .reply-user {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.container.details-container .reply-to {
    color: #b3b3b3;
    margin: 0 2px;
    font-size: 12px;
}

.container.details-container .reply-time {
    color: #b3b3b3;
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.container.details-container .reply-target {
    color: #007aff;
    font-size: 14px;
}

.container.details-container .reply-text {
    color: #e0e0e0;
    font-size: 14px;
}

.container.details-container .reply-text.pending-content {
    color: #d9a441;
    background: #3a3120;
}

.container.details-container .show-more-replies {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 0;
    background: none;
    border: none;
    color: #043b88;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.container.details-container .show-more-replies:hover {
    opacity: 0.7;
}

/* \uc0\u22238 \u35206 \u36664 \u20837 \u26694 \u27171 \u24335  - \u23567 \u32005 \u26360 \u39080 \u26684  */
.reply-input-box {
    margin-top: 10px;
    padding: 0;
    background: transparent;
}

.container.details-container .reply-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
    background: #1a1a1a;
    box-sizing: border-box;
}

.container.details-container .reply-input:focus {
    background: #1a1a1a;
    border-color: #ff2442;
}

.container.details-container .reply-input::placeholder {
    color: #b3b3b3;
}

.container.details-container .reply-actions-box {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.container.details-container .reply-cancel-btn,
.container.details-container .reply-submit-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.2);
}

.container.details-container .reply-cancel-btn {
    background: #2a2a2a;
    color: #999;
}

.container.details-container .reply-cancel-btn:hover {
    background: #2a2a2a;
}

.container.details-container .reply-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
    transform: translateY(-1px);
}

.container.details-container .reply-submit-btn:active {
    transform: translateY(0);
}

.container.details-container .reply-submit-btn:disabled {
    background: #7a2030;
    cursor: not-allowed;
    box-shadow: none;
}

/* \uc0\u38647 \u36948 \u22294 \u27171 \u24335  */
.radar-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #2f2f2f;
    backdrop-filter: blur(10px);
    border-radius: 3px;
    /* box-shadow: 0 4px 20px rgba(126, 179, 255, 0.12),        0 2px 10px rgba(160, 201, 255, 0.08); */
    border: 1px solid rgba(180, 190, 210, 0.3);
    position: relative;
}

.container.details-container .radar-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(74, 85, 104, 0.1);
    position: relative;
    z-index: 1;
}

.container.details-container .radar-chart {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    background: #222;
    border-radius: 50%;
    padding: 20px;
    border-radius: 50%;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.container.details-container .radar-canvas {
    width: 100%;
    height: 100%;
    color: #fff;
}

.container.details-container .radar-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.container.details-container .radar-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 650px;
}

.container.details-container .radar-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #2f2f2f;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(126, 179, 255, 0.1);
    border: 1px solid rgba(180, 190, 210, 0.25);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(90, 106, 127, 0.1);
}

.container.details-container .radar-slider {
    width: 100%;
    margin: 5px 0;
    background: rgba(226, 232, 240, 0.6);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
}

.container.details-container .radar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f90, #f9be67);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(126, 179, 255, 0.4);
    border: 2px solid #e8f2ff;
}

.container.details-container .radar-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f90, #f9be67);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(126, 179, 255, 0.4);
    border: 2px solid #e8f2ff;
}

.container.details-container .radar-value {
    font-weight: 700;
    color: #f90;
    font-size: 1rem;
    font-family: avenir;
    /* text-shadow: 0 0 6px rgba(126, 179, 255, 0.4); */
}

.container.details-container .slider-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 5px 0;
    padding: 0 5px;
}

.container.details-container .tick {
    font-size: 0.65rem;
    color: #8b95b0;
    font-weight: 500;
    position: relative;
    text-shadow: 0 0 3px rgba(139, 149, 176, 0.3);
}

.container.details-container .tick::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
    background-color: #a0b5cf;
    box-shadow: 0 0 2px rgba(160, 181, 207, 0.3);
}

.container.details-container .radar-average {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(90, 106, 127, 0.1);
    position: relative;
    z-index: 1;
}

.container.details-container .radar-submit-container {
    text-align: center;
    margin-top: 20px;
}

.container.details-container .submit-rating-btn {
    /* background: linear-gradient(135deg, #f90, #f9be67); */
    background: linear-gradient(135deg, #f9be67, #f90);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 179, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.container.details-container .submit-rating-btn:hover {
    background: linear-gradient(135deg, rgb(255, 160, 0), rgb(255, 153, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 179, 255, 0.35);
}

.container.details-container .submit-rating-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(126, 179, 255, 0.25);
}

.container.details-container .submit-rating-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.container.details-container .submit-rating-btn i {
    font-size: 0.9rem;
}

.container.details-container .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.container.details-container .notification.show {
    transform: translateX(0);
    opacity: 1;
}

.container.details-container .notification-success {
    border-left-color: #27ae60;
}

.container.details-container .notification-success i {
    color: white !important;
    background: #27ae60 !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.details-container .notification-error {
    border-left-color: #e74c3c;
}

.container.details-container .notification-error i {
    color: white !important;
    background: #e74c3c !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.details-container .notification-warning {
    border-left-color: #f39c12;
}

.container.details-container .notification-warning i {
    color: white !important;
    background: #f39c12 !important;
    border-radius: 50%;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.details-container .notification i {
    font-size: 0.8rem;
}

.container.details-container .notification span {
    font-weight: 500;
    color: #2c3e50;
}

.container.details-container .review-form {
    background: #1a2a3a;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.container.details-container .form-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.container.details-container .form-group {
    margin-bottom: 20px;
}

.container.details-container .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.container.details-container .form-input,
.container.details-container .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eaf7ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 120px;
    resize: vertical;
}

.container.details-container .form-input:focus,
.container.details-container .form-textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.container.details-container .star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.container.details-container .star {
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.container.details-container .star.active {
    color: #FFA000;
}

.container.details-container .submit-review {
    background: linear-gradient(135deg, #3498db 0%, #1a5f8a 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.container.details-container .submit-review:hover {
    background: linear-gradient(135deg, #03b9fd 0%, #01a1dd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.container.details-container .review-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 12px;
    grid-column: 1 / -1;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* \uc0\u36328 \u36234 \u25152 \u26377 grid\u21015  */
}

.container.details-container .review-controls .sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.container.details-container .sort-options {
    display: flex;
}

.container.details-container .sort-options h2 {
    display: inline-flex;
    align-items: flex-end;
    font-size: 24px;
    padding: 0 15px;
    height: 44px;
    margin: 0;
}

.container.details-container .review-count {
    display: inline-flex;
    align-items: flex-end;
    color: #7f8c8d;
    font-size: 13px;
    padding: 0 15px;
    height: 38px;
}

.container.details-container .review-count span {
    color: #f90;
    font-family: 'avenir';
    padding: 0 6px;
}

.container.details-container #averageScore {
    color: #f90;
    font-family: 'avenir';
    padding: 0 6px;
}

.container.details-container .comment-filter-tabs {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.container.details-container .comment-filter-button {
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    border-radius: 3px;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.container.details-container .comment-filter-button.active {
    /* background: linear-gradient(135deg, rgb(97, 209, 251), rgb(1, 184, 252)); */
    background: rgba(255, 255, 255, 0.2);
    color: #f90;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 16px 0;
    color: #7f8c8d;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* .close-carousel:hover {    background: transparent;    border-radius: 50%;} */
.details-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* \uc0\u28014 \u21205 \u29376 \u24907 \u19979 \u22294 \u29255 \u23436 \u25972 \u39023 \u31034 \u65292 \u19981 \u35009 \u20999  */
.main-image.float-active img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: 100% !important;
    object-fit: contain !important;
}

.container.details-container .details-slide.slide-anim {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    z-index: 1;
    background: #000;
}

.container.details-container .details-slide.slide-anim.active img {
    display: block;
}

/* ==================== \uc0\u25302 \u25341 \u26178 \u31105 \u27490 \u38913 \u38754 \u28414 \u21205  ==================== */
body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ==================== \uc0\u22810 \u23186 \u39636 \u19978 \u20659 \u20803 \u20214 \u27171 \u24335  ==================== */
.media-uploader-container {
    width: 100%;
    margin: 15px 0;
}

.container.details-container .upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container.details-container .upload-area:hover {
    border-color: #57c8f2;
    background: #1a2a3a;
}

.container.details-container .upload-area.dragover {
    border-color: #57c8f2;
    background: #1a3a5a;
    transform: scale(1.02);
}

.container.details-container .upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.container.details-container .upload-text {
    font-size: 16px;
    color: #6b7280;
}

.container.details-container .upload-tip {
    font-size: 12px;
    color: #9ca3af;
}

.container.details-container .media-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.container.details-container .media-item {
    position: relative;
    width: calc(20% - 8px);
    cursor: move;
}

.container.details-container .media-item.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.container.details-container .media-item.placeholder {
    opacity: 0.3;
    background: #1a3a5a;
    border: 2px dashed #57c8f2;
}

.container.details-container .media-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 \uc0\u27604 \u20363 \u65292 \u20445 \u25345 \u27491 \u26041 \u24418  */
    height: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #2d2d2d;
    cursor: pointer;
}

.container.details-container .media-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container.details-container .video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container.details-container .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* \uc0\u21034 \u38500 \u25353 \u37397 \u30452 \u25509 \u23450 \u20301 \u22312 \u21491 \u19978 \u35282 \u65292 \u22987 \u32066 \u39023 \u31034  */
.media-action-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.container.details-container .media-action-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.container.details-container .media-action-btn.delete-btn {
    color: #ef4444;
}

.container.details-container .file-name {
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* \uc0\u38928 \u35261 \u23565 \u35441 \u26041 \u22602 \u27171 \u24335  */
.media-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.media-preview-modal .preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.preview-dialog {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #1a1a1a;
}

.preview-header h3 {
    margin: 0;
    font-size: 16px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.media-preview-modal .preview-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
}

.preview-close:hover {
    background: #2a2a2a;
    color: #374151;
}

/* \uc0\u23186 \u39636 \u38928 \u35261 \u27169 \u24907 \u26694 \u30340  preview-body */
.media-preview-modal .preview-body {
    padding: 16px 20px;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-preview-modal .preview-slide-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.media-preview-modal .preview-slide-wrapper {
    display: flex;
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-preview-modal .preview-slide-item {
    flex: none;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-preview-modal .preview-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-nav {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preview-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.preview-nav:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.8);
}

.preview-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.container.details-container .prev-nav {
    left: 20px;
}

.container.details-container .next-nav {
    right: 20px;
}

.preview-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== \uc0\u34920 \u24773 \u36984 \u25799 \u22120 \u27171 \u24335  ==================== */
.emoji-picker-popup {
    position: fixed;
    left: 50%;
    bottom: 145px;
    transform: translateX(-50%) translateY(100%);
    width: 360px;
    max-height: 60vh;
    background: #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 1;
    padding-bottom: 10px;
    border: 1px solid #333;
}

.emoji-picker-popup.show {
    transform: translateX(-50%) translateY(0);
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    background: #2f2f2f;
}

.emoji-picker-header span {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
}

/* 彈框掛在 body 上，須以 .emoji-picker-popup 為根（與 moban-2 一致，勿用 .details-container） */
.emoji-picker-popup .emoji-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #eee;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.emoji-picker-popup .emoji-close-btn:hover {
    background: #2a2a2a;
    color: #374151;
}

.emoji-picker-body {
    padding: 10px;
    max-height: 340px;
    overflow: hidden;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.emoji-picker-popup .emoji-item {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.emoji-picker-popup .emoji-item:hover {
    background: #2d2d2d;
    transform: scale(1.2);
}

.emoji-picker-popup .emoji-item:active {
    background: #2a2a2a;
    transform: scale(1.1);
}

.emoji-picker-popup .emoji-item.selected {
    background: #1a3a5a;
    border: 2px solid #57c8f2;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(87, 200, 242, 0.3);
}

/* \uc0\u25458 \u36600 \u27171 \u24335  */
.emoji-picker-body::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.emoji-picker-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.emoji-picker-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== Toast \uc0\u30906 \u35469 \u26694 \u27171 \u24335  ==================== */
.confirm-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    min-width: 320px;
    max-width: 90%;
    transition: transform 0.3s ease;
}

.confirm-toast.show {
    transform: translateX(-50%) translateY(0);
}

.confirm-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.confirm-toast-content i {
    font-size: 22px;
    color: #f59e0b;
    flex-shrink: 0;
}

.confirm-toast-message {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.confirm-toast-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px 20px;
    justify-content: flex-end;
}

.confirm-toast-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirm-toast-btn.cancel-confirm {
    background: #2d2d2d;
    color: #6b7280;
}

.confirm-toast-btn.cancel-confirm:hover {
    background: #2a2a2a;
    color: #374151;
}

.confirm-toast-btn.confirm-delete {
    background: #ef4444;
    color: white;
}

.confirm-toast-btn.confirm-delete:hover {
    background: #dc2626;
}

.confirm-toast-btn:active {
    transform: scale(0.95);
}

/* 代調確認彈框：文字/按鈕垂直分布，取消確定各半寬，右上角關閉 */
.confirm-toast.confirm-toast--daidiao {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.98);
    min-width: min(360px, 92vw);
    max-width: min(420px, 92vw);
}

.confirm-toast.confirm-toast--daidiao.show {
    transform: translate(-50%, -50%) scale(1);
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 16px 16px;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-message {
    display: block;
    text-align: center;
    padding: 8px 28px 0;
    font-size: 15px;
    line-height: 1.6;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    padding: 0;
    justify-content: stretch;
    box-sizing: border-box;
}

.confirm-toast.confirm-toast--daidiao .confirm-toast-btn {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
}

/* ========================================   hl-search.css \uc0\u27171 \u24335 \u65288 \u24050 \u21512 \u20341 \u65289    ======================================== */
/* .search-container {    background: #1a1a1a;    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);    width: 100%;    padding: 30px;    position: relative;} */
.search-top-title {
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    font-weight: 600;
    padding-left: 5%;
    text-shadow: 0 3px 7px rgba(0, 0, 0, 0.7);
}

.container.details-container .search-title {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.container.details-container .search-title i {
    margin-right: 10px;
}

.container.details-container .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

.container.details-container .form-group {
    flex: 1;
    font-size: 14px;
}

.container.details-container .area-option label {
    margin-bottom: 0;
}

.container.details-container .form-row label {
    display: block;
    font-weight: 700;
    text-align: left;
    color: #bbb;
    margin-bottom: 8px;
}

.container.details-container .form-control {
    width: 100%;
    padding: 9px 15px;
    padding-right: 35px;
    border: 1px solid #444;
    border-radius: 3px;
    font-size: 6px;
    transition: all 0.3s ease;
    background: #1a1a1a;
    font-size: 13px;
}

.container.details-container .form-control:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.container.details-container .select-wrapper {
    position: relative;
    min-width: 120px;
}

.container.details-container .select-wrapper:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #7f8c8d;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.container.details-container .select-wrapper.active:after {
    transform: translateY(-50%) rotate(180deg);
}

.container.details-container .custom-select {
    width: 100%;
    padding: 9px 15px;
    border: 1px solid #444;
    border-radius: 3px;
    font-size: 13px;
    background: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container.details-container .custom-select.active {
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.container.details-container .custom-select:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.container.details-container .custom-select-placeholder {
    color: #7f8c8d;
}

/* \uc0\u37559 \u21806 \u22478 \u24066 \u19979 \u25289 \u26694 \u39640 \u20142 \u25928 \u26524 */
.select-wrapper.active .custom-select {
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* \uc0\u37559 \u21806 \u22320 \u21312 \u19979 \u25289 \u26694 \u39640 \u20142 \u25928 \u26524 */
.area-selector.active .form-control {
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* \uc0\u19979 \u25289 \u31661 \u38957 \u38991 \u33394 \u35722 \u21270  */
.select-wrapper.active:after,
.area-selector.active:after {
    border-top-color: #f90;
}

/* \uc0\u36984 \u20013 \u23560 \u26696 \u30340 \u35222 \u35258 \u21453 \u24046 */
.select-option:hover {
    background: #1a2a3a;
    color: #e0e0e0;
}

.container.container.details-container .checkbox-container {
    display: block;
    margin-top: 15px;
}

.container.details-container .checkbox-section {
    margin-bottom: 20px;
    position: relative;
    font-size: 14px;
    padding: 12px 0;
}

.container.details-container .checkbox-section-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #bbb;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.container.details-container .checkbox-section-title i {
    margin-right: 8px;
    color: #3498db;
}

.container.details-container .custom-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.container.details-container .custom-checkbox-item,
.hl-search-container .custom-checkbox-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    padding: 6px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid #444;
    color: #ccc;
    user-select: none;
}

.container.details-container .custom-checkbox-item:hover,
.hl-search-container .custom-checkbox-item:hover {
    background: #2d2d2d;
    border-color: #444;
    color: #ccc;
}

.container.details-container .custom-checkbox-item.checked,
.container.details-container .custom-checkbox-item.checked:hover,
.hl-search-container .custom-checkbox-item.checked,
.hl-search-container .custom-checkbox-item.checked:hover {
    background: #f90;
    color: #fff;
    border-color: #f9c57a;
}

.container.details-container .custom-checkbox-item input,
.hl-search-container .custom-checkbox-item input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.container.details-container .full-width {
    width: 100%;
}

.container.details-container .btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.container.details-container .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container.details-container .btn-primary {
    /* background: linear-gradient(135deg, rgb(97, 209, 251), rgb(1, 184, 252)); */
    background-color: #333;
    color: white;
    text-align: center;
}

.container.details-container .btn-primary:hover {
    background: #f90;
    transform: translateY(-2px);
}

.container.details-container .btn-outline {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    text-align: center;
}

.container.details-container .btn-outline:hover {
    background: #2d2d2d;
}

.container.details-container .area-selector,
.hl-search-container .area-selector {
    position: relative;
}

.container.details-container .area-selector:hover,
.hl-search-container .area-selector:hover {
    border-color: #3498db;
}

.container.details-container .area-selector:after,
.hl-search-container .area-selector:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #7f8c8d;
    pointer-events: none;
    transition: transform 0.3s ease;
    z-index: 5;
}

.container.details-container .area-selector.active:after,
.hl-search-container .area-selector.active:after {
    transform: translateY(-50%) rotate(180deg);
}

.container.details-container .area-selector input,
.hl-search-container .area-selector input {
    cursor: pointer;
}

.area-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.container.details-container .area-dropdown.show,
.hl-search-container .area-dropdown.show {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
}

.container.details-container .area-header,
.hl-search-container .area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    background: #2d2d2d;
    font-weight: 500;
}

.container.details-container .area-header button,
.container.details-container .area-header .btn-link,
.hl-search-container .area-header button,
.hl-search-container .area-header .btn-link {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}

.container.details-container .area-options,
.hl-search-container .area-options {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 13px;
}

.container.details-container .area-option,
.hl-search-container .area-option {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.container.details-container .area-option:hover,
.hl-search-container .area-option:hover {
    background: #1a2a3a;
}

.container.details-container .area-option label,
.hl-search-container .area-option label {
    font-weight: normal;
}

.container.details-container .area-option input {
    margin-right: 10px;
    cursor: pointer;
}

.container.details-container .btn-link {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.container.details-container .btn-link:hover {
    color: #f90;
}

.container.details-container .loading {
    text-align: center;
    padding: 3rem;
    color: #999;
    grid-column: 1 / -1;
}

.container.details-container .loading i {
    color: #ffd700;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container.details-container .hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.container.details-container .message {
    padding: 15px;
    margin: 15x 0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.container.details-container .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.container.details-container .message.error {
    background: #3a1a1a;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.container.details-container .message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* \uc0\u19979 \u25289 \u36984 \u25799 \u21205 \u30059  */
.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.container.details-container .select-dropdown.show {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

.container.details-container .select-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #999;
    text-align: left;
}

.container.details-container .select-option:hover {
    background: #333;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

.container.details-container .select-option.selected {
    background: #f90;
    color: #000;
}

/* \uc0\u38914 \u37096 \u37679 \u35492 \u25552 \u31034  */
.error-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #f00;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: top 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f00;
}

.error-toast.show {
    top: 20px;
}

.error-toast i {
    font-size: 18px;
}

/* \uc0\u37679 \u35492 \u36984 \u38917 \u27171 \u24335  */
.select-option.error {
    color: #dc3545;
    cursor: not-allowed;
    background: #2d2d2d;
}

.container.details-container .select-option.error:hover {
    background: #2d2d2d;
}

/* \uc0\u20840 \u36984 \u25353 \u37397 \u27171 \u65533 ?*/
.select-all-btn {
    position: absolute;
    right: 40px;
    top: 0;
    background: none;
    border: none;
    color: #f90;
    cursor: pointer;
    font-size: 14px;
    padding: 0 5px;
}

.container.details-container .select-all-btn:hover {
    text-decoration: underline;
}

/* \uc0\u21453 \u36984 \u25353 \u37397 \u27171 \u24335 */
.invert-selection-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: #f90;
    cursor: pointer;
    font-size: 14px;
    padding: 0 5px;
}

.container.details-container .invert-selection-btn:hover {
    text-decoration: underline;
}

.container.details-container .area-options .custom-checkbox-item,
.hl-search-container .area-options .custom-checkbox-item {
    position: relative;
    padding: 8px 12px 8px 32px;
    /* \uc0\u24038 \u37002 \u30041 \u31354 \u38291 \u32102 checkbox */
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    transition: all 0.3s ease;
    border: 0;
    background: none;
    color: #999;
}

.container.details-container .area-options .custom-checkbox-item:hover,
.hl-search-container .area-options .custom-checkbox-item:hover {
    background: #1a2a3a;
    color: #e0e0e0;
}

.container.details-container .area-options .custom-checkbox-item.checked {
    background: none;
    border: 0;
    color: #e0e0e0;
}

.hl-search-container .area-options .custom-checkbox-item.checked {
    background: none;
    border: 0;
    color: #888;
}

.hl-search-container .area-selector .form-control {
    color: #888;
}

.container.details-container .area-options .hidden-input,
.hl-search-container .area-options .hidden-input {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

.container.details-container .area-options .custom-checkbox-label,
.hl-search-container .area-options .custom-checkbox-label {
    cursor: pointer;
    display: block;
}

/* \uc0\u33258 \u23450 \u32681 checkbox\u27171 \u24335  */
.area-options .custom-checkbox-item:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background-color: #1a1a1a;
}

.container.details-container .area-options .custom-checkbox-item.checked:before,
.hl-search-container .area-options .custom-checkbox-item.checked:before {
    background-color: #bd7916;
    border-color: #c2781b;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.container.details-container .area-options .custom-checkbox-item.checked:after,
.hl-search-container .area-options .custom-checkbox-item.checked:after {
    content: '';
    position: absolute;
    left: 13.5px;
    top: 46%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

:root {
    --scrollbar-track: #f5f5f5;
    --scrollbar-thumb: #666;
    --scrollbar-thumb-hover: #42a5f5;
}

.container.details-container .area-options::-webkit-scrollbar,
.hl-search-container .area-options::-webkit-scrollbar {
    width: 8px;
}

.container.details-container .area-options::-webkit-scrollbar-track,
.hl-search-container .area-options::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

.container.details-container .area-options::-webkit-scrollbar-thumb,
.hl-search-container .area-options::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.container.details-container .area-options::-webkit-scrollbar-thumb:hover,
.hl-search-container .area-options::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.container.details-container .select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.container.details-container .select-dropdown::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

.container.details-container .select-dropdown::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.container.details-container .select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.container.details-container #sortDropdown {
    overflow-y: hidden;
}

.container.details-container .results-header {
    text-align: center;
    color: rgb(86, 100, 106);
    font-size: 14px;
    /* border-bottom: 1px solid rgb(227, 227, 229); */
    background: rgb(253, 253, 255);
    padding-bottom: 30px;
    /* margin-bottom: 30px; */
}

.container.details-container .results-header h1 {
    font-size: 1.8rem;
    color: #e0e0e0;
}

.container.details-container .filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.container.details-container .filter-toggle:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.container.details-container .filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background: #1a1a1a;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.container.details-container .filter-sidebar.open {
    right: 0;
}

.container.details-container .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.container.details-container .sidebar-title {
    font-size: 16px;
    color: #ccc;
}

.container.details-container .close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.container.details-container .sidebar-title i {
    color: #eee;
    margin-right: 6px;
}

.container.details-container .sidebar-header svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.container.details-container .sidebar-header svg {
    fill: #666;
}

.container.details-container .search-criteria {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* criteria-item\uc0\u24213 \u37096 \u25805 \u20316 \u36039 \u35338 \u27171 \u24335  */
.operation-info {
    margin-top: 8px;
    padding: 6px 30px 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.operation-info.show {
    opacity: 1;
    transform: translateY(0);
}

.operation-info.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.operation-info.info {
    background: #2a2a2a;
    color: #888;
    border: 1px solid #444;
}

.operation-info-content {
    display: block;
}

.operation-info-close {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    padding: 2px;
    font-size: 10px;
}

.operation-info-close:hover {
    opacity: 1;
}

/* \uc0\u20596 \u37002 \u27396 \u24213 \u37096 \u25353 \u37397 \u27171 \u65533 ?*/
.sidebar-footer {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    /* border-top: 1px solid #e0e0e0; */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.back-to-search-btn {
    background: linear-gradient(135deg, #5ec7f8, #3498db);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: calc(50% - 16px);
}

.back-to-search-btn:hover {
    background: linear-gradient(135deg, #a4dffb, #5ec7f8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

#resetSearch.back-to-search-btn {
    background: linear-gradient(135deg, #b4df6f, #8bc82c);
}

#resetSearch.back-to-search-btn:hover {
    background: linear-gradient(135deg, #a5cc66, #b4df6f);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(80, 125, 10, 0.3);
}

/* \uc0\u20999 \u25563 \u25353 \u37397 \u27171 \u24335  */
.criteria-item {
    position: relative;
    padding: 15px;
    margin: 8px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
}

.criteria-item.active {
    background-color: #f0f9ff;
    border-color: #cfebfd;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.criteria-toggle-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #8bc82c;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    font-size: 10px;
}

.criteria-toggle-btn:hover {
    background: #2a2a2a;
    color: #999;
    transform: scale(1.1);
}

.criteria-toggle-btn:not(.active) {
    background: #2a2a2a;
    color: #999;
}

.criteria-toggle-btn:not(.active):hover {
    background: #2a2a2a;
    color: #ccc;
}

.criteria-toggle-btn i {
    font-size: 10px;
}

.criteria-values {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    position: relative;
    z-index: 5;
}

.criteria-value {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .8);
    color: #000;
    border: 2px solid #f90;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    position: relative;
}

.criteria-value .facet-count {
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #f90;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 4px;
}

.criteria-value:not(.active) {
    background: #2a2a2a;
    color: #999;
    border: 1px solid #444;
}

.criteria-value:hover {
    background: #e3f2fd;
    border-color: #f90;
    color: #000;
    transform: translateY(-1px);
}

.criteria-value:not(.active) .facet-count {
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #f90;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.criteria-value:not(.active):hover {
    background: rgba(255, 255, 255, .8);
    border-color: #f90;
    color: #000;
}

.criteria-item strong {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0;
    font-weight: 600;
    position: relative;
    z-index: 5;
    padding-right: 25px;
}

.criteria-item strong.active {
    color: #ccc;
    font-weight: 700;
}

.criteria-item.active strong {
    color: #ccc;
    font-weight: 700;
}

.plus-one {
    position: absolute;
    font-size: 14px;
    color: #ff5252;
    font-weight: bold;
    pointer-events: none;
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    z-index: 1000;
}

.container.details-container .plus-one.animate {
    transform: translateY(-30px) scale(1.3);
    opacity: 0;
}

.container.details-container .container.result-container {
    max-width: 780px;
    margin: 0 auto;
    border-radius: 0;
}

.container.details-container .select-wrapper {
    position: relative;
    min-width: 120px;
}

.container.details-container .results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.container.details-container .results-count {
    font-size: 15px;
    color: #ccc;
    display: flex;
    width: 50%;
    height: 100%;
    align-items: center;
}

.container.details-container .results-count i {
    color: #6ec902;
    margin-right: 6px;
}

.container.details-container .results-count strong {
    color: #f90;
    font-weight: 600;
    padding: 0 4px;
}

.container.details-container .sort-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 50%;
    justify-content: end;
}

.container.details-container .sort-filter button {
    border-radius: 5px;
    background: rgba(0, 0, 0, .5);
    color: white;
    border: none;
    cursor: pointer;
    border: 1px solid #333;
}

.container.details-container .sort-filter button:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px) 0.3s;
}

.container.details-container .product-image .no-images {
    width: 40%;
}

.container.details-container .no-results {
    text-align: center;
    padding: 3rem;
    color: #ddd;
    grid-column: 1 / -1;
}

.container.details-container .no-results h3 {
    font-size: 24px;
}

.container.details-container .no-results p {
    color: #ddd;
    font-size: 14px;
}

.container.details-container .no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.container.details-container .product-actions .btn {
    font-size: 14px;
    padding: 9px 20px;
}

.container.details-container .caption h2 {
    display: block;
    font-size: 24px;
    padding: 0 !important;
    margin: 0 !important;
}

.container.details-container .breadcrumb {
    display: none;
}
/* qianse code case preserve */
.code,
.product-title .code,
.details-containe .information .code,
.yhzq-list .code,
.phb-list .code {
    text-transform: none !important;
    font-variant-caps: normal !important;
}

/* promotion grid */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.container.details-container .promotion-grid--standalone {
    margin-top: 18px;
}

.container.details-container .promotion-grid .promotion-card {
    flex: none !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch !important;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.container.details-container .promotion-grid .promotion-card .img-containe,
.container.details-container .promotion-grid .promotion-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.container.details-container .promotion-grid .promotion-card .img-containe img,
.container.details-container .promotion-grid .promotion-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container.details-container .promotion-grid .promotion-card .product-badge {
    top: 18px;
    right: 18px;
    z-index: 3;
}

.container.details-container .promotion-grid .promotion-card__vip {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7d774, #f3bf42);
    color: #3a2a00;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.container.details-container .promotion-grid .promotion-card .countdown-timer-overlay {
    left: 16px;
    right: 16px;
    bottom: 18px;
    width: auto;
    transform: none;
    z-index: 3;
}

.container.details-container .promotion-grid .promotion-card__details,
.container.details-container .promotion-grid .promotion-card .details-containe {
    width: 100% !important;
    float: none;
    padding: 22px 20px 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.container.details-container .promotion-grid .promotion-card .details-containe ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information {
    height: auto;
    line-height: 1.45;
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information span {
    color: #0f172a;
    font-weight: 600;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information.first .nickname {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information.yj span {
    color: #ef4444;
    text-decoration: line-through;
    font-size: 24px;
    font-weight: 800;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information.xj {
    color: #f97316;
    font-weight: 700;
}

.container.details-container .promotion-grid .promotion-card .details-containe .information.xj span {
    color: #16a34a;
    font-size: 24px;
    font-weight: 800;
}

.container.details-container .promotion-grid .promotion-card__stats {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.container.details-container .promotion-grid .promotion-card__stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.container.details-container .promotion-grid .promotion-card__stats i {
    font-size: 16px;
}
@media (max-width: 767px) {
    .caption h2 {
        display: block;
        font-size: 16px;
        padding: 0 !important;
        margin: 0 !important;
    }
    .filter-sidebar .sidebar-title{
        font-size: 16px;
    }
    .container.hl-search-container{
        padding-bottom: 110px;
    }
    .details-containe .information:not(.first):not(.yj):not(.xj) {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .details-containe .information .code {
        display: block;
        width: 100%;
        white-space: normal;
        margin-top: 2px;
    }

    /* 定點／外約／優惠／今日新菜／搜尋／全部菜品：dingdian 卡片（同斷點內覆寫） */

    .phb-list {
        flex-direction: row;
        align-items: stretch;
    }

    .phb-list .img-containe {
        width: 40%;
        min-width: 150px;
        height: auto;
    }

    .phb-list .img-containe img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .phb-list .details-containe {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .phb-list .details-containe li {
        height: auto;
        min-height: 35px;
        padding: 10px 12px;
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .yhzq-containe.dingdian .yhzq-list-containe {
        padding: 0;
        gap: 14px;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list,
    #pickup-section .yhzq-list-containe > .yhzq-list,
    #delivery-section .yhzq-list-containe > .yhzq-list {
        flex: 0 0 calc((100% - 14px) / 2);
        width: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }

    #pickup-section .yhzq-list-containe,
    #delivery-section .yhzq-list-containe {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /*
     * 全部菜品：body 帶 .page-more-list（moreList.html body_attrs），固定底欄 + 留白；!important 壓過後文 #footer sticky。
     * 底欄用 left/right + width:auto，避免 width:100% 與捲軸疊出橫條（橫向 overflow 見頁面級 body.page-more-list）。
     */
    body.page-more-list {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    body.page-more-list #footer {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        z-index: 250 !important;
        box-shadow: rgba(0, 0, 0, 0.1) 0px -3px 3px;
        border-radius: 0;
        height: 100px;
        margin-bottom: 0;
    }
    .sort-container{
        margin-bottom: 10px;
    }
    .page-youhui-listing .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
        align-items: start;
    }

    .page-youhui-listing .products-empty {
        grid-column: 1 / -1;
    }

    /* 卡片整體變矮：縮圖區 + 去掉過大 min-height / actions 上邊距 */
    .page-youhui-listing .product-image {
        height: clamp(120px, 38vw, 168px);
    }

    .page-youhui-listing .product-image img {
        max-height: none;
    }

    .page-youhui-listing .product-info {
        position: relative;
        min-height: 0;
        padding: 30px 8px 8px;
    }

    .page-youhui-listing .product-title {
        font-size: 16px;
        font-weight: 700;
        margin: 6px 0 4px;
        line-height: 1.25;
        padding-right: 4.25rem;
    }

    .page-youhui-listing .product-title .nickname {
        font-size: 16px;
    }

    .page-youhui-listing .product-details {
        font-size: 12px;
        gap: 3px 6px;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    /* 地區、價錢各占一整行（寬度 100%），不與其它項並列於雙列網格 */
    .page-youhui-listing .product-details .detail-item:has(.detail-city),
    .page-youhui-listing .product-details .detail-item:has(.detail-price) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-youhui-listing .global-lable {
        font-size: 12px;
        font-weight: normal;
    }

    .page-youhui-listing .detail-item:not(.sub-pingfen) {
        min-width: 0;
        align-items: flex-start;
        gap: 2px;
        overflow: hidden;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: normal;
    }

    /* .page-youhui-listing .detail-item span[class^="detail-"],
    .page-youhui-listing .detail-item span.detail-rating {
        font-weight: normal;
        font-size: 18px; 
    } */

    /* 評分：浮在文字區（.product-info）右上角；標籤與數字垂直居中 */
    .page-youhui-listing .detail-item.sub-pingfen {
        position: absolute;
        top: 12px;
        right: 6px;
        margin: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        font-size: 12px;
        font-weight: normal;
        width: auto;
        max-width: calc(100% - 12px);
    }

    .page-youhui-listing .detail-item.sub-pingfen .global-lable {
        font-size: 12px;
        font-weight: normal;
        line-height: 1;
        display: inline-flex;
        align-items: center;
    }

    .page-youhui-listing .detail-item.sub-pingfen .detail-rating {
        font-weight: normal;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        font-size: 18px;
    }

    /* 價錢：整行、單行顯示；過長省略 */
    .page-youhui-listing .detail-item:has(.detail-price) {
        flex-wrap: nowrap;
        min-width: 0;
    }

    .page-youhui-listing .detail-item .detail-price {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        font-weight: normal;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-youhui-listing .product-actions {
        margin-top: 8px;
        padding-bottom: 8px;
    }

    .page-youhui-listing .product-info .countdown-timer-overlay {
        margin-top: 12px;
        margin-bottom: 6px;
    }

    .page-youhui-listing .countdown-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .page-youhui-listing .countdown-display {
        gap: 2px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .page-youhui-listing .time-unit {
        flex: 1 1 0;
        min-width: 0;
        min-height: 26px;
        padding: 2px 4px;
        gap: 2px;
    }

    .page-youhui-listing .time-value {
        font-size: 0.7rem;
    }

    .page-youhui-listing .time-label {
        font-size: 0.55rem;
        margin-top: 0;
    }

    .page-youhui-listing .time-separator {
        font-size: 0.65rem;
    }

    /* 圖片區底部統計：相對圖片容器水平居中（覆蓋 .subpage.bottom-icons span 的 flex:1 均分寬度） */
    .page-youhui-listing .product-image .subpage.bottom-icons {
        left: 0;
        right: 0;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding-left: 6px;
        padding-right: 6px;
        gap: clamp(6px, 2.5vw, 14px);
    }

    .page-youhui-listing .product-image .subpage.bottom-icons span {
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        font-size: 11px;
        line-height: 1.2;
        min-height: 0;
        font-weight: normal;
    }

    .page-youhui-listing .product-image .subpage.bottom-icons span i {
        width: 13px;
        min-width: 13px;
        height: 13px;
        min-height: 13px;
        font-size: 11px;
    }

    /* VIP、折扣：介於過小與過大之間，適配雙列窄圖 */
    .page-youhui-listing .product-card .product-image .product-badge {
        min-width: 68px;
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
        font-weight: 800;
        top: 6px;
        right: 6px;
    }

    .page-youhui-listing .product-card .product-image .vip-badge {
        left: 6px;
        right: auto;
        min-width: 68px;
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
        font-weight: 800;
        top: 6px;
        border-radius: 10px;
        box-shadow: none;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .categories {
        justify-content: flex-start;
    }

    .category-dropdown {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .category-dropdown.todaynew-city-dropdown {
        flex: 1 1 auto;
    }



    .results-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .results-count,
    .sort-filter {
        width: 100%;
        flex: none;
        justify-content: flex-start;
    }

    .sort-filter {
        justify-content: space-between;
    }

    .filter-sidebar {
        width: min(92vw, 400px);
    }

    .pagination .page-btn,
    .pagination a.page-btn,
    .pagination span.page-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hl-search-container .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }
    .toplist-page .points-table .general-detail .bottom-icons {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .toplist-page .points-table .general-detail .bottom-icons span {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .details-container .product-detail {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .details-container .product-gallery,
    .details-container .product-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 8px;
        padding-bottom: 20px;
    }

    .product-gallery {
        height: 60vh;
        min-height: 320px;
    }

    .product-gallery .main-image {
        min-height: 200px;
    }

    /* leda-details 評論：表情選擇器（與 moban-2 窄屏對齊） */
    .emoji-picker-popup {
        width: 80%;
        max-width: min(360px, 92vw);
        max-height: 70vh;
        bottom: 128px;
    }

    .emoji-picker-popup.show {
        transform: translateX(-50%) translateY(0);
    }

    .emoji-picker-body {
        grid-template-columns: repeat(8, 1fr);
        max-height: calc(70vh - 60px);
    }

    .detail-identity-block {
        gap: 10px;
        margin: 10px 0 14px;
    }

    /* 訪客：編號與約她同一行、左右两端对齐 */
    .detail-identity-block:not(.is-seller-session) {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
    }

    .detail-identity-block.is-seller-session {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-identity-block:not(.is-seller-session) .detail-code-card {
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100% - 120px);
        min-width: 0;
        height: 45px;
        min-height: 45px;
        box-sizing: border-box;
    }

    .detail-identity-block:not(.is-seller-session) .detail-booking-card {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        width: auto;
        max-width: 48%;
        min-width: 96px;
        height: 45px;
        min-height: 45px;
    }

    .detail-identity-block:not(.is-seller-session) .detail-booking-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 96px;
        min-height: 45px;
        height: 45px;
    }

    .detail-code-card {
        padding: 0 12px;
    }

    .detail-booking-btn {
        min-height: 45px;
        height: 45px;
        padding: 0 14px;
    }

    .detail-booking-btn-note {
        font-size: 11px;
        white-space: normal;
        text-align: right;
    }
    .toplist-page .points-table th.General,
    .toplist-page .points-table td[data-label="綜合"] {
        display: none !important;
    }

    .toplist-page .points-table td[data-label="菜品"] {
        overflow: visible;
    }

    .toplist-page .points-table .player {
        position: relative;
        gap: 4px;
        width: 100%;
        overflow: visible;
    }

    .toplist-page .points-table .player .phb-vip {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(3px, -10px);
    }

    .toplist-page .toplist-header .sub-header-title {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        justify-content: space-between;
        align-items: center;
        order: 1;
        gap: 8px;
        box-sizing: border-box;
        overflow: visible;
    }

    .toplist-page .toplist-header .sub-header-title h1 {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .toplist-page .toplist-header .todaynew-city-dropdown {
        margin-left: auto !important;
        margin-right: 0;
        flex: 0 1 auto;
        min-width: 80px;
        max-width: min(160px, calc(100vw - 24px));
    }

    .toplist-page .toplist-header .todaynew-city-dropdown .dropdown-menu {
        right: 0;
        left: auto;
        min-width: min(200px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
    }

    .product-gallery .main-image {
        height: calc(100% - 65px);
    }

   /* 與 PC 一致：城市選擇 + 區間（今日／本週等）同一行；區間過寬時僅區間列橫向捲動 */
   #todaynew-list-section.todaynew-list-page .sub-header.newcaipin {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 1rem 10px 0.75rem;
    min-width: 0;
}

#todaynew-list-section.todaynew-list-page .sub-header-title {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 44%;
    flex-wrap: nowrap;
    order: 2;
}

#todaynew-list-section.todaynew-list-page .todaynew-city-dropdown {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

#todaynew-list-section.todaynew-list-page .todaynew-city-dropdown .category-btn {
    max-width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
}

#todaynew-list-section.todaynew-list-page .todaynew-city-dropdown .btn-text {
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#todaynew-list-section.todaynew-list-page .sub-header.newcaipin .range-tabs {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    order: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

#todaynew-list-section.todaynew-list-page .sub-header.newcaipin .range-tabs::-webkit-scrollbar {
    display: none;
}

#todaynew-list-section.todaynew-list-page .range-tab {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

#todaynew-list-section.todaynew-list-page .range-tab span {
    white-space: nowrap;
}


    /* #header 頂部 */

    #header.top-container {
            height: 100px;
            --header-search-inset-left: 16px;
            --header-search-inset-right: 60px;
            --header-search-gap: 6px;
            --header-search-box-height: 46px;
            --header-advanced-btn-size: 44px;
        }

        #header.top-container {
            --m3-logo-size: clamp(48px, 12vw, 56px);
        }

        #header .logo-container {
            top: 0;
            bottom: 0;
            left: 12px;
            right: 12px;
            height: 100%;
            transform: none;
            gap: 10px;
            max-width: none;
        }

        #header .logo-image {
            width: var(--m3-logo-size);
            height: 100%;
        }

        #header .logo-main-right {
            padding-top: 20px;
            gap: 6px;
        }

        #header .logo-main-top {
            gap: clamp(6px, 1.5vw, 10px);
        }

        #header .logo-title {
            font-size: clamp(14px, 4.8vw, 18px);
        }

        #header .user-menu,
        #header .search-icon-btn {
            position: static;
            top: auto;
            right: auto;
            transform: none;
            flex: 0 0 auto;
        }

        #header .user-btn {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
        }

        #header .user-btn i {
            font-size: 1.65rem;
        }

        #header .search-icon-btn,
        #header .search-toggle-btn {
            display: none !important;
        }

        #header .search-container,
        #header .search-container.active {
            display: flex !important;
            align-items: center;
            gap: var(--header-search-gap);
            position: relative;
            left: auto;
            right: auto;
            top: auto;
            width: auto;
            max-width: none;
            flex: 1 1 auto;
            min-width: 0;
            margin: 0;
            justify-content: flex-start;
            transform: none;
            opacity: 1;
            pointer-events: auto;
            transition: none;
            z-index: 10;
        }

        #header .search-box {
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
            max-width: none;
            height: var(--header-search-box-height);
            padding: 6px 6px 6px 14px;
            box-sizing: border-box;
            overflow: hidden;
            margin-right: 0;
        }

        #header .search-input {
            flex: 1 1 0%;
            min-width: 0;
            width: auto;
            font-size: 0.9rem;
            padding: 6px 8px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #header .image-search-btn,
        #header .search-btn {
            flex: 0 0 auto;
            width: 32px;
            height: 32px;
            min-width: 32px;
            min-height: 32px;
            margin-right: 6px;
        }

        #header .search-btn {
            margin-right: 0;
        }

        #header .image-search-btn i,
        #header .search-btn i {
            font-size: 0.8rem;
        }

        #header .advanced-search-btn {
            position: static;
            flex: 0 0 var(--header-advanced-btn-size);
            width: var(--header-advanced-btn-size);
            height: var(--header-advanced-btn-size);
            min-width: var(--header-advanced-btn-size);
            min-height: var(--header-advanced-btn-size);
            margin-left: 0;
            right: auto;
        }

        #header .advanced-search-btn i {
            font-size: 1.35rem;
        }


    /* 圖區角標 dingdian */

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            --yhzq-card-badge-h: 24px;
            --yhzq-card-badge-fs: 9px;
            --yhzq-card-badge-px: 5px;
            box-sizing: border-box !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-height: var(--yhzq-card-badge-h) !important;
            height: var(--yhzq-card-badge-h) !important;
            max-height: var(--yhzq-card-badge-h) !important;
            padding: 0 var(--yhzq-card-badge-px) !important;
            border-radius: 999px !important;
            border-width: 0 !important;
            border-style: none !important;
            font-size: var(--yhzq-card-badge-fs) !important;
            font-weight: 800 !important;
            line-height: 1 !important;
            letter-spacing: 0.03em;
            white-space: nowrap;
            max-width: calc(100% - 12px);
            overflow: hidden;
            text-overflow: ellipsis;
            box-shadow: none !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge {
            top: 6px;
            left: 6px;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            top: 6px;
            right: 6px;
            left: auto;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge {
            bottom: calc(var(--yhzq-card-badge-h) + 4px);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe {
            height: clamp(150px, 40vw, 210px);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-timer-overlay,
        #pickup-section .yhzq-list .img-containe .countdown-timer-overlay,
        #delivery-section .yhzq-list .img-containe .countdown-timer-overlay,
        #promotion-slider .yhzq-list .img-containe .countdown-timer-overlay,
        #recommendation-slider .yhzq-list .img-containe .countdown-timer-overlay {
            bottom: 0;
            left: 0;
            right: 0;
            width: auto;
            max-width: none;
            padding: 4px 5px;
            box-shadow: none;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-display-mini,
        #pickup-section .yhzq-list .img-containe .countdown-display-mini,
        #delivery-section .yhzq-list .img-containe .countdown-display-mini,
        #promotion-slider .yhzq-list .img-containe .countdown-display-mini,
        #recommendation-slider .yhzq-list .img-containe .countdown-display-mini {
            gap: 2px;
            flex-wrap: nowrap;
            justify-content: space-between;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-unit-mini,
        #pickup-section .yhzq-list .img-containe .time-unit-mini,
        #delivery-section .yhzq-list .img-containe .time-unit-mini,
        #promotion-slider .yhzq-list .img-containe .time-unit-mini,
        #recommendation-slider .yhzq-list .img-containe .time-unit-mini {
            padding: 2px 4px;
            flex: 1 1 0;
            min-width: 0;
            gap: 1px;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-value-mini,
        #pickup-section .yhzq-list .img-containe .time-value-mini,
        #delivery-section .yhzq-list .img-containe .time-value-mini,
        #promotion-slider .yhzq-list .img-containe .time-value-mini,
        #recommendation-slider .yhzq-list .img-containe .time-value-mini {
            font-size: clamp(0.5rem, 2.6vw, 0.72rem);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-label-mini,
        #pickup-section .yhzq-list .img-containe .time-label-mini,
        #delivery-section .yhzq-list .img-containe .time-label-mini,
        #promotion-slider .yhzq-list .img-containe .time-label-mini,
        #recommendation-slider .yhzq-list .img-containe .time-label-mini {
            font-size: clamp(0.42rem, 2vw, 0.56rem);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-separator-mini,
        #pickup-section .yhzq-list .img-containe .time-separator-mini,
        #delivery-section .yhzq-list .img-containe .time-separator-mini,
        #promotion-slider .yhzq-list .img-containe .time-separator-mini,
        #recommendation-slider .yhzq-list .img-containe .time-separator-mini {
            font-size: clamp(0.45rem, 2.2vw, 0.65rem);
            flex: 0 0 auto;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe {
            overflow: visible;
            /* padding: 8px 5px; */
        }
}

@media (max-width: 640px) {
    .jifang-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .jifang-modal-logo img {
        width: 96px;
        height: 96px;
    }

    .promotion-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promotion-grid .promotion-card {
        border-radius: 20px;
    }

    .promotion-grid .vip-badge {
        top: 14px;
        left: 14px;
        padding: 8px 14px;
        font-size: 20px;
        border-radius: 10px;
        box-shadow: none;
    }

    .promotion-grid .promotion-card__vip {
        top: 14px;
        left: 14px;
        padding: 8px 14px;
        font-size: 20px;
    }

    .promotion-grid .promotion-card .countdown-timer-overlay {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    .promotion-grid .promotion-card__details,
    .promotion-grid .promotion-card .details-containe {
        padding: 18px 16px 16px;
        gap: 12px;
    }

    .promotion-grid .promotion-card .details-containe .information {
        font-size: 14px;
    }

    .promotion-grid .promotion-card .details-containe .information.first .nickname {
        font-size: 22px;
    }

    .promotion-grid .promotion-card .details-containe .information.xj span {
        font-size: 20px;
    }

    .promotion-grid .promotion-card .details-containe .information.yj span {
        font-size: 20px;
    }

    .promotion-grid .promotion-card__stats span {
        font-size: 13px;
        gap: 6px;
    }


    /* #header */

    #header.top-container {
            height: 96px;
            --header-search-inset-right: 58px;
            --header-search-box-height: 44px;
            --header-advanced-btn-size: 42px;
        }

        #header .logo-container {
            left: 12px;
            gap: 8px;
            max-width: calc(100% - 128px);
        }

        #header .logo-image {
            width: 52px;
            height: 52px;
        }

        #header .logo-title {
            font-size: 0.9rem;
        }

        #header .user-menu {
            right: 10px;
        }

        #header .user-btn {
            width: 42px;
            height: 42px;
        }

        #header .user-btn i {
            font-size: 1.55rem;
        }

        #header .search-icon-btn {
            right: 58px;
        }

        #header .search-toggle-btn {
            width: 42px;
            height: 42px;
        }

        #header .search-toggle-btn i {
            font-size: 1.35rem;
        }

        #header .advanced-search-btn i {
            font-size: 1.28rem;
        }
}

@media (max-width: 540px) {
    .points-table .bottom-icons,
    .subpage.bottom-icons {
        flex-wrap: wrap;
        gap: 4px;
    }
    .advanced-filter-container {
        padding-bottom: 110px;
    }
    .container.hl-search-container{
        margin: 0 auto;
        border-radius: 0;
        padding: 0;
        padding-bottom: 110px;
    }
    .filter-toggle{
        font-size: 13px;
    }
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
    #pickup-section .yhzq-list .details-containe > .bottom-icons span,
    #delivery-section .yhzq-list .details-containe > .bottom-icons span,
    #promotion-slider .yhzq-list .details-containe > .bottom-icons span,
    #recommendation-slider .yhzq-list .details-containe > .bottom-icons span,
    #ranking-section .phb-list .details-containe > .bottom-icons span {
        font-size: clamp(10px, 2.6vw, 11.5px) !important;
        padding: 0 1px !important;
    }

    .phb-containe .more {
        top: 42.5vw;
    }

    .points-table .bottom-icons span,
    .subpage.bottom-icons span {
        padding: 0;
        font-size: 13px;
        padding-right: 6px;
    }

    .countdown-timer-overlay {
        padding: 5px 8px;
        padding-left: 4px;
    }

    .countdown-display-mini {
        gap: 3px;
        flex-wrap: wrap;
    }

    .time-unit-mini {
        min-width: 0;
        white-space: nowrap;
        padding: 3px 5px;
    }

    .time-value-mini {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
        white-space: nowrap;
    }

    .time-label-mini {
        font-size: clamp(0.5rem, 2vw, 0.65rem);
        white-space: nowrap;
    }

    .time-separator-mini {
        font-size: clamp(0.45rem, 1.8vw, 0.7rem);
        white-space: nowrap;
    }

    .pingfen-header-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
    }



    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-slide .caption h3 {
        margin: 0;
    }

    .carousel-slide .caption p {
        margin: 0;
    }

    .yhzq-list .details-containe {
        padding: 12px;
    }

    .carousel-track.dragging {
        transition: none;
    }

    .Site-Notice {
        height: 50px;
    }

    .Site-Notice .left {
        width: 60%;
    }

    .Site-Notice .right {
        padding: 10px;
        font-size: 15px;
        justify-content: end;
        padding-right: 18px;
    }

    .Site-Notice .right .loaction {
        padding-right: 6px;
    }

    .Site-Notice .right svg {
        width: 14px;
        height: 14px;
    }

    .marquee-item {
        padding: 0 10px;
    }

    .yhzq-top h1 {
        font-size: 30px;
    }

    .yhzq-top .more {
        font-size: 14px;
    }

    .phb-list .details-containe li {
        height: auto;
        min-height: 30px;
        padding: 4px 5px;
        font-size: 12px;
    }

    .phb-containe {
        padding: 8px;
        padding-top: 50vw;
        background: #1a1a1a url(../images/index-phb.webp) top center no-repeat;
        background-size: 100%;
    }

    .index-phb-div {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 6px;
    }


    .phb-list .img-containe {
        width: 42%;
        min-width: 96px;
        max-width: 42%;
        height: auto;
        min-height: 200px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phb-list .img-containe img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .phb-list .details-containe {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        position: relative;
        font-size: 13px;
        height: auto;
    }



    .phb-list .jq span {
        font-size: 14px;
    }

    .details-containe.phbList li.short:nth-child(2) {
        width: 100%;
    }

    .details-containe.phbList li.short:nth-child(3) {
        width: 100%;
    }

    .subpage.bottom-icons {
        padding: 0 4px;
        gap: 0;
    }

    .dingdian .details-containe {
        padding: 10px;
        font-size: 12px;
    }

    .details-containe .information {
        height: 22px;
    }

    .details-containe .information.first {
        height: auto;
        padding-bottom: 6px;
        text-align: left;
    }

    .yhzq-list .details-containe > ul {
        row-gap: 5px;
    }

    .yhzq-list .details-containe ul > li.information:not(.first):not(.yj):not(.xj) {
        height: 21px;
    }

    .yhzq-list .details-containe .information.first {
        padding-bottom: 4px;
    }

    #footer {
        position: fixed;
        width: 100%;
        z-index: 100;
        box-shadow: rgba(0, 0, 0, 0.1) 0px -3px 3px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        border-radius: 0;
        height: 100px;
        margin-bottom: 0;
    }

    footer div {
        font-size: 13px;
        padding-bottom: 6px;
    }

    .foot-home {
        background-position-y: 10px
    }

    .foot-home.active {
        background-position-y: 10px
    }

    .foot-home a:hover {
        background-position-y: 10px
    }

    .foot-phb {
        background-position-y: 10px
    }

    .foot-phb.active {
        background-position-y: 10px
    }

    .foot-phb a:hover {
        background-position-y: 10px
    }

    .foot-kf {
        background-position-y: 10px
    }

    .foot-kf.active {
        background-position-y: 10px
    }

    .foot-kf a:hover {
        background-position-y: 10px
    }

    .foot-new {
        background-position-y: 10px
    }

    .foot-new.active {
        background-position-y: 10px
    }

    .foot-new a:hover {
        background-position-y: 10px
    }

    .foot-uc {
        background-position-y: 10px
    }

    .foot-uc.active {
        background-position-y: 10px
    }

    .foot-uc a:hover {
        background-position-y: 10px
    }

    .toplist-page .points-table .avatar {
        width: 45px;
        height: 45px;
        min-width: 45px;
        border-radius: 50%;
        border: 2px solid rgba(85, 200, 250, 0.1);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        margin-right: 0;
    }
    .toplist-page .points-table .top-rank{
        width:32px;
        height:32px;
    }
    .stat {
        font-family: "avenir";

    }

    .points-table .bottom-icons {
        flex-direction: column;
        gap: 4px;
    }

    .bottom-icons i {
        width: 100%;
        text-align: left;
    }

    .global-modal.top-list:hover .model-overlay {
        opacity: 1;
    }

    .model-info .stat {
        font-style: normal;
    }

    .category-dropdown.todaynew-city-dropdown .btn-text,
    .category-dropdown.todaynew-city-dropdown span {
        font-size: 13px;
    }

    .details-container-top {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
        position: relative;
    }

    .product-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        font-weight: normal;
    }

    .product-image {
        position: relative;
        width: 100%;

    }

    .product-info {
        margin-left: 0;
        width: 100%;
        flex: 1;
        overflow: hidden;
        padding: 10px 15px;
        padding-bottom: 0;
        color: #fff;
    }

    .detail-item.sub-price .current-price {
        font-size: 14px;
    }

    .global-lable {
        font-weight: normal;
    }

    .subpage.bottom-icons span {
        font-size: 13px;
        padding: 0;
    }

    .subpage.bottom-icons span i {
        text-align: center;
        margin-right: 2px;
        width: auto;
    }

    .product-badge {
        font-weight: normal;
        bottom: 35px;
        left: 5px;
        font-size: 12px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
    }

    .yhzq-activity-time-badge {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        min-width: 0;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        padding: 0 8px;
        font-size: 11px;
        font-weight: 800;
        border-width: 0;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
    }

    .vip-badge {
        font-weight: normal;
        font-size: 12px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
    }

    /* yhzq 圖區角標：覆蓋上文 32px 全域規則（定點／列表／首頁輪播） */
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
    #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #pickup-section .yhzq-list .img-containe .product-badge,
    #pickup-section .yhzq-list .img-containe .vip-badge,
    #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #delivery-section .yhzq-list .img-containe .product-badge,
    #delivery-section .yhzq-list .img-containe .vip-badge,
    #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
    #promotion-slider .yhzq-list .img-containe .product-badge,
    #promotion-slider .yhzq-list .img-containe .vip-badge,
    #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
    #recommendation-slider .yhzq-list .img-containe .product-badge,
    #recommendation-slider .yhzq-list .img-containe .vip-badge {
        --yhzq-card-badge-h: 20px;
        --yhzq-card-badge-fs: 8.5px;
        --yhzq-card-badge-px: 4px;
        min-height: var(--yhzq-card-badge-h) !important;
        height: var(--yhzq-card-badge-h) !important;
        max-height: var(--yhzq-card-badge-h) !important;
        padding: 0 var(--yhzq-card-badge-px) !important;
        font-size: var(--yhzq-card-badge-fs) !important;
        max-width: calc(100% - 8px);
    }

    .customer-service-modal .modal-content {
        top: auto;
        bottom: 0;
        left: 0;
        height: 350px;
    }

    .customer-service-modal .qr-codes-container {
        gap: 15px;
    }

    .customer-service-modal .qr-code {
        width: 120px;
        height: 120px;
    }

    .product-detail .product-info {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    .global-modal.top-list .action-buttons {
        flex-direction: row;
    }

    .container.details-container .product-title {
        font-size: 1.6rem;
        margin: 10px 0;
    }

    .product-title .nickname {
        display: block;
        width: 100%;
        font-size: 20px;
    }

    .product-title .code {
        display: block;
        margin-top: 0;
    }

    .detail-item.sub-pingfen {
        flex-wrap: wrap;
        justify-content: flex-end;
        top: 8px;
        right: 10px;
    }

    .product-code {
        font-size: 1.0rem;
        padding: 4px 8px;
    }

    .detail-item.sub-price {
        grid-column: 1 / -1;
        width: 100%;
    }

    .detail-item.sub-price .original-price {
        font-size: 13px;
        margin-left: 0;
    }

    .detail-item {
        margin-bottom: 0;
        font-weight: normal;
        font-size: 13px;
        height: 30px;
        font-size: 15px;
    }

    .product-actions {
        padding: 0;
        gap: 6px;
        margin-top: 0;
        margin-bottom: 16px;
    }

    .stat-item i {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .carousel-container.subpage {
        border-radius: 6px;
    }

    .carousel-slide.fade-anim {
        width: 100vw;
    }

    .carousel-slide video {
        width: 100vw;
    }

    .carousel-slide.coverflow-anim {
        width: 100vw;
    }

    .carousel-container {
        max-height: 100%;
    }

    .confirm-toast {
        min-width: 280px;
        top: 20px;
    }

    .confirm-toast-content {
        padding: 14px 16px;
    }

    .confirm-toast-message {
        font-size: 13px;
    }

    .confirm-toast-actions {
        padding: 0 16px 14px 16px;
    }

    .confirm-toast-btn {
        padding: 10px 18px;
        border-radius: 20px;
        font-size: 14px;
    }

    /* 代調確認彈框移動端保持垂直居中與半寬按鈕 */
    .confirm-toast.confirm-toast--daidiao {
        top: 50%;
        min-width: min(320px, 92vw);
        max-width: min(420px, 92vw);
    }

    .confirm-toast.confirm-toast--daidiao .confirm-toast-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 14px 14px;
    }

    .confirm-toast.confirm-toast--daidiao .confirm-toast-message {
        font-size: 14px;
        padding: 8px 28px 0;
    }

    .confirm-toast.confirm-toast--daidiao .confirm-toast-actions {
        padding: 0;
        gap: 10px;
    }

    .confirm-toast.confirm-toast--daidiao .confirm-toast-btn {
        flex: 1 1 50%;
        width: 50%;
        border-radius: 20px;
    }


    .global-container {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding-bottom: 110px;
    }

    .form-group {
        min-width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .pingfen {
        right: 10px;
        top: 10px;
        font-size: 22px;
    }
    .toplist-page .points-table .general-detail .bottom-icons {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .toplist-page .points-table .general-detail .bottom-icons i {
        width: auto;
        text-align: center;
    }

    .toplist-page .points-table thead th {
        font-size: 14px;
    }

    .toplist-page .points-table .player-info .name {
        font-size: 14px;
    }

    .toplist-page .points-table .player-info .meta {
        font-size: 12px;
    }

    .toplist-page .points-table .trend-indicator .trend-text {
        font-size: 12px;
    }

    .toplist-page .points-table td[data-label="評分"] .stat.phb-rating {
        font-size: 17px;
    }

    .toplist-page .points-table tbody tr:nth-child(1) td[data-label="評分"] .stat.phb-rating {
        display: inline-block;
        font-size: 20px;
        background: linear-gradient(145deg, #e8c86a, #c9a227);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .toplist-page .points-table tbody tr:nth-child(2) td[data-label="評分"] .stat.phb-rating {
        display: inline-block;
        font-size: 20px;
        background: linear-gradient(145deg, #d4d4d4, #9ca3af);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .toplist-page .points-table tbody tr:nth-child(3) td[data-label="評分"] .stat.phb-rating {
        display: inline-block;
        font-size: 20px;
        background: linear-gradient(145deg, #b45309, #92400e);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
    .range-tabs a {
        font-size: 1.4rem;
    }

    #caipin-card-modal-overlay {
        height: calc(100vh - 100px);
    }

    .product-rating-price {
        align-items: flex-start;
        gap: 8px;
    }

    .reviews-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 15px;
    }

    .container.details-container .sort-options h2{
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
        padding-left: 10px;
        font-size: 18px;
        margin: 0;
    }

    .pingfen-header-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
    }

    .product-rating {
        margin-bottom: 0;
    }

    .product-price {
        align-self: flex-end;
    }



    .nav .welcome {
        height: 40px;
        padding: 12px;
    }

    nav .nav-row.left {
        font-size: 18px;
        padding-left: 12px;
        justify-content: flex-start;
    }

    nav .nav-row.right {
        width: 73%;
    }

    .index-search-input {
        width: 60%;
    }

    .index-search {
        width: 75%;
    }

    .jj-search {
        width: 25%;
        display: flex;
        font-size: 14px;
        color: white;
        padding-left: 6px;
        padding-top: 10px;
        white-space: nowrap;
    }

    .homepage_logo {
        left: 3%;
        top: 90px;
        width: 14%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-slide .caption h3 {
        margin: 0;
    }

    .carousel-slide .caption p {
        margin: 0;
    }

    .yhzq-list .details-containe {
        padding: 12px;
    }
    .container.details-container{
        padding: 0;
        padding-bottom: 110px;
    }
    .container.details-container .product-specs{
        padding: 10px;
    }
    .container.details-container .customer-reviews{
        padding: 10px;
    }
    .container.details-container .review-item{
        margin-bottom: 0;
    }
    .container.details-container .feature-item{
        font-weight: normal;
        font-size: 13px;
    }
    .container.details-container .spec-item{
        font-weight: normal;
        font-size: 13px;
    }
    .container.details-container .radar-title{
        font-size: 18px ;
    }
    .container.details-container .radar-average{
        font-size: 1.0rem ;
    }


    /* #header */

    #header.top-container {
            height: 94px;
            --header-search-inset-left: 12px;
            --header-search-inset-right: 56px;
            --header-search-gap: 5px;
            --header-search-box-height: 42px;
            --header-advanced-btn-size: 40px;
        }

        #header .logo-container {
            left: 10px;
            max-width: calc(100% - 122px);
        }

        #header .logo-image {
            width: 50px;
            height: 50px;
        }

        #header .logo-title {
            font-size: 0.8rem;
        }

        #header .search-icon-btn {
            right: 56px;
        }

        #header .user-btn,
        #header .search-toggle-btn {
            width: 40px;
            height: 40px;
        }


    /* 圖區角標 */

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            --yhzq-card-badge-h: 22px;
            --yhzq-card-badge-fs: 9px;
            --yhzq-card-badge-px: 5px;
            min-height: var(--yhzq-card-badge-h) !important;
            height: var(--yhzq-card-badge-h) !important;
            max-height: var(--yhzq-card-badge-h) !important;
            padding: 0 var(--yhzq-card-badge-px) !important;
            font-size: var(--yhzq-card-badge-fs) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge {
            bottom: calc(var(--yhzq-card-badge-h, 22px) + 4px) !important;
        }
}

@media (max-width: 480px) {

    .prev,
    .next {
        width: 40px;
        height: 40px;
    }

    .prev svg,
    .next svg {
        width: 20px;
        height: 20px;
    }
    .container.details-container .countdown-display {
        justify-content: space-between;
    }


    /* #header */

    #header.top-container {
            height: 92px;
            --header-search-inset-right: 54px;
            --header-search-gap: 5px;
            --header-search-box-height: 42px;
            --header-advanced-btn-size: 40px;
        }

        #header .logo-container {
            left: 10px;
            gap: 8px;
            max-width: calc(100% - 118px);
        }

        #header .logo-image {
            width: 48px;
            height: 48px;
        }

        #header .logo-title {
            font-size: 0.95rem;
        }

        #header .user-menu {
            right: 8px;
        }

        #header .user-btn {
            width: 40px;
            height: 40px;
        }

        #header .user-btn i {
            font-size: 1.45rem;
        }

        #header .search-icon-btn {
            right: 54px;
        }

        #header .search-toggle-btn {
            width: 40px;
            height: 40px;
        }

        #header .search-toggle-btn i {
            font-size: 1.28rem;
        }

        #header .search-box {
            padding: 5px 5px 5px 12px;
            border-radius: 22px;
        }

        #header .search-input {
            font-size: 0.85rem;
            padding: 4px 6px;
        }

        #header .image-search-btn,
        #header .search-btn {
            width: 30px;
            height: 30px;
            min-width: 30px;
            min-height: 30px;
        }

        #header .advanced-search-btn i {
            font-size: 1.2rem;
        }
}

@media (max-width: 391px) {

    .yhzq-list .details-containe {
        font-size: 12px;
    }

    .information.yj span {
        font-size: 13px;
    }

    .stat {
        font-weight: normal;
        font-size: 20px;
    }

    .category-btn {
        padding: 5px 6px;
        font-size: 12px;
    }

    /* 全部菜品篩選（2×2）：極窄略縮列間距，仍不出現橫向捲動 */
    .page-youhui-listing.page-more-list .filter-section .categories {
        column-gap: 3px;
        row-gap: 6px;
    }

    .page-youhui-listing.page-more-list .filter-section .categories .category-btn {
        padding: 5px 2px;
        font-size: 12px;
        gap: 2px;
    }

    .page-youhui-listing.page-more-list .filter-section .categories .category-btn i {
        font-size: 11px;
    }

    .category-dropdown.todaynew-city-dropdown span {
        font-size: 13px;
    }

    .sort-btn {
        padding: 8px 0;
        font-size: 14px;
    }

    .details-container-top {
        height: auto;
        position: relative;
    }

    .interaction-stats .stat-item {
        padding: 0;
        gap: 4px;
    }

    .countdown-timer-overlay {
        bottom: 4px;
        left: 4px;
        right: 4px;
        width: auto;
        max-width: none;
        padding: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .countdown-display-mini {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2px;
        width: 100% !important;
        max-width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        box-sizing: border-box;
    }

    .time-unit-mini {
        padding: 8px;
        flex: 1;
        min-width: 0;
        max-width: none;
        display: flex;
        align-items: center;
        gap: 1px;
        white-space: nowrap;
    }

    .time-value-mini {
        font-size: clamp(0.6rem, 4.5vw, 1.2rem);
        min-width: 0;
        width: auto;
        max-width: 100%;
        height: auto;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-label-mini {
        font-size: clamp(0.45rem, 3.5vw, 0.9rem);
        margin-top: 1px;
        white-space: nowrap;
    }

    .time-separator-mini {
        font-size: clamp(0.6rem, 4vw, 1.2rem);
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .product-details {
        font-size: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .product-title {
        font-size: 1.3rem
    }

    .subpage.bottom-icons span {
        font-size: 14px;
    }

    .details-containe ul .pingfen {
        font-size: 14px;
        right: -5px;
    }

    .details-containe ul .pingfen span {
        font-size: 16px;
    }

    .pingfen {
        top: 36px;
        font-size: 22px;
    }

    /* 非首頁優惠／推薦輪播：窄屏單張全寬；#promotion-slider / #recommendation-slider 由 yhzq.js 控寬 */
    .slider-container:not(#promotion-slider):not(#recommendation-slider) .slide {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0 !important;
    }

    .slider-container:not(#promotion-slider):not(#recommendation-slider) .yhzq-list {
        width: 100%;
        max-width: 100%;
    }

    #promotion-slider .slide,
    #recommendation-slider .slide {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }


    /* #header */

    #header.top-container {
            height: 90px;
            --header-search-inset-right: 50px;
            --header-search-box-height: 40px;
            --header-advanced-btn-size: 38px;
        }

        #header .logo-container {
            left: 8px;
            gap: 6px;
            max-width: calc(100% - 112px);
        }

        #header .logo-image {
            width: 46px;
            height: 46px;
        }

        #header .logo-title {
            font-size: 0.92rem;
        }

        #header .user-menu {
            right: 6px;
        }

        #header .search-icon-btn {
            right: 50px;
        }

        #header .user-btn,
        #header .search-toggle-btn {
            width: 38px;
            height: 38px;
        }

        #header .user-btn i {
            font-size: 1.38rem;
        }

        #header .search-toggle-btn i {
            font-size: 1.22rem;
        }

        #header .search-box {
            padding: 4px 4px 4px 10px;
        }

        #header .search-input {
            font-size: 0.82rem;
        }

        #header .image-search-btn,
        #header .search-btn {
            width: 28px;
            height: 28px;
            min-width: 28px;
            min-height: 28px;
        }

        #header .advanced-search-btn i {
            font-size: 1.12rem;
        }


    /* 圖區角標 */

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe,
        #pickup-section .yhzq-list .img-containe,
        #delivery-section .yhzq-list .img-containe,
        #promotion-slider .yhzq-list .img-containe,
        #recommendation-slider .yhzq-list .img-containe {
            height: clamp(128px, 38vw, 168px);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge {
            bottom: calc(var(--yhzq-card-badge-h, 20px) + 4px) !important;
        }

        /* 倒計時：覆蓋本斷點全域 .countdown-timer-overlay padding:6px / .time-unit-mini padding:8px */
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-timer-overlay,
        #pickup-section .yhzq-list .img-containe .countdown-timer-overlay,
        #delivery-section .yhzq-list .img-containe .countdown-timer-overlay,
        #promotion-slider .yhzq-list .img-containe .countdown-timer-overlay,
        #recommendation-slider .yhzq-list .img-containe .countdown-timer-overlay {
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: auto !important;
            max-width: none !important;
            padding: 3px 4px !important;
            box-shadow: none !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-display-mini,
        #pickup-section .yhzq-list .img-containe .countdown-display-mini,
        #delivery-section .yhzq-list .img-containe .countdown-display-mini,
        #promotion-slider .yhzq-list .img-containe .countdown-display-mini,
        #recommendation-slider .yhzq-list .img-containe .countdown-display-mini {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 1px !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-unit-mini,
        #pickup-section .yhzq-list .img-containe .time-unit-mini,
        #delivery-section .yhzq-list .img-containe .time-unit-mini,
        #promotion-slider .yhzq-list .img-containe .time-unit-mini,
        #recommendation-slider .yhzq-list .img-containe .time-unit-mini {
            padding: 1px 3px !important;
            flex: 1 1 0 !important;
            min-width: 0 !important;
            max-width: none !important;
            gap: 0 !important;
            display: flex !important;
            align-items: center !important;
            white-space: nowrap !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-value-mini,
        #pickup-section .yhzq-list .img-containe .time-value-mini,
        #delivery-section .yhzq-list .img-containe .time-value-mini,
        #promotion-slider .yhzq-list .img-containe .time-value-mini,
        #recommendation-slider .yhzq-list .img-containe .time-value-mini {
            font-size: clamp(0.48rem, 3vw, 0.65rem) !important;
            line-height: 1.1 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-label-mini,
        #pickup-section .yhzq-list .img-containe .time-label-mini,
        #delivery-section .yhzq-list .img-containe .time-label-mini,
        #promotion-slider .yhzq-list .img-containe .time-label-mini,
        #recommendation-slider .yhzq-list .img-containe .time-label-mini {
            font-size: clamp(0.4rem, 2.2vw, 0.52rem) !important;
            margin-top: 0 !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-separator-mini,
        #pickup-section .yhzq-list .img-containe .time-separator-mini,
        #delivery-section .yhzq-list .img-containe .time-separator-mini,
        #promotion-slider .yhzq-list .img-containe .time-separator-mini,
        #recommendation-slider .yhzq-list .img-containe .time-separator-mini {
            font-size: clamp(0.42rem, 2vw, 0.58rem) !important;
            flex: 0 0 auto !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            --yhzq-card-badge-h: 20px;
            --yhzq-card-badge-fs: 8.5px;
            --yhzq-card-badge-px: 4px;
            min-height: var(--yhzq-card-badge-h) !important;
            height: var(--yhzq-card-badge-h) !important;
            max-height: var(--yhzq-card-badge-h) !important;
            padding: 0 var(--yhzq-card-badge-px) !important;
            font-size: var(--yhzq-card-badge-fs) !important;
            max-width: calc(100% - 8px);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge {
            top: 5px;
            left: 5px;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            top: 5px;
            right: 5px;
        }
/* 
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe {
            padding-left: 5px;
            padding-right: 5px;
        } */

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
        #pickup-section .yhzq-list .details-containe > .bottom-icons span,
        #delivery-section .yhzq-list .details-containe > .bottom-icons span {
            font-size: clamp(9.5px, 2.4vw, 10.5px) !important;
        }
}

@media (max-width: 376px) {
    .bottom-icons i {
        padding-right: 0;
    }

    .pingfen {
        right: 10px;
        top: 35px;
        font-size: 18px;
    }


    /* #header */

    #header.top-container {
            height: 88px;
            --header-search-inset-right: 48px;
            --header-search-gap: 4px;
            --header-search-box-height: 38px;
            --header-advanced-btn-size: 36px;
        }

        #header .logo-container {
            max-width: calc(100% - 108px);
        }

        #header .logo-title {
            font-size: 0.8rem;
        }

        #header .search-icon-btn {
            right: 48px;
        }

        #header .user-btn,
        #header .search-toggle-btn {
            width: 36px;
            height: 36px;
        }

        #header .search-box {
            padding: 3px 3px 3px 8px;
            border-radius: 20px;
            border-width: 1px;
        }

        #header .search-input {
            font-size: 0.8rem;
            padding: 2px 4px;
        }

        #header .image-search-btn,
        #header .search-btn {
            width: 24px;
            height: 24px;
            min-width: 24px;
            min-height: 24px;
            margin-right: 3px;
        }

        #header .image-search-btn i,
        #header .search-btn i {
            font-size: 0.65rem;
        }

        #header .advanced-search-btn i {
            font-size: 1.05rem;
        }


    /* 圖區角標 */

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe {
            height: clamp(120px, 36vw, 160px);
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
        #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .vip-badge,
        #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .vip-badge,
        #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .vip-badge,
        #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .vip-badge {
            --yhzq-card-badge-h: 18px;
            --yhzq-card-badge-fs: 8px;
            --yhzq-card-badge-px: 3px;
            min-height: var(--yhzq-card-badge-h) !important;
            height: var(--yhzq-card-badge-h) !important;
            max-height: var(--yhzq-card-badge-h) !important;
            padding: 0 var(--yhzq-card-badge-px) !important;
            font-size: var(--yhzq-card-badge-fs) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
        #pickup-section .yhzq-list .img-containe .product-badge,
        #delivery-section .yhzq-list .img-containe .product-badge,
        #promotion-slider .yhzq-list .img-containe .product-badge,
        #recommendation-slider .yhzq-list .img-containe .product-badge {
            bottom: calc(var(--yhzq-card-badge-h, 18px) + 3px) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-timer-overlay,
        #pickup-section .yhzq-list .img-containe .countdown-timer-overlay,
        #delivery-section .yhzq-list .img-containe .countdown-timer-overlay,
        #promotion-slider .yhzq-list .img-containe .countdown-timer-overlay,
        #recommendation-slider .yhzq-list .img-containe .countdown-timer-overlay {
            padding: 2px 3px !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-unit-mini,
        #pickup-section .yhzq-list .img-containe .time-unit-mini,
        #delivery-section .yhzq-list .img-containe .time-unit-mini,
        #promotion-slider .yhzq-list .img-containe .time-unit-mini,
        #recommendation-slider .yhzq-list .img-containe .time-unit-mini {
            padding: 1px 2px !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-value-mini,
        #pickup-section .yhzq-list .img-containe .time-value-mini,
        #delivery-section .yhzq-list .img-containe .time-value-mini,
        #promotion-slider .yhzq-list .img-containe .time-value-mini,
        #recommendation-slider .yhzq-list .img-containe .time-value-mini {
            font-size: clamp(0.46rem, 2.8vw, 0.62rem) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-label-mini,
        #pickup-section .yhzq-list .img-containe .time-label-mini,
        #delivery-section .yhzq-list .img-containe .time-label-mini,
        #promotion-slider .yhzq-list .img-containe .time-label-mini,
        #recommendation-slider .yhzq-list .img-containe .time-label-mini {
            font-size: clamp(0.38rem, 2vw, 0.5rem) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-separator-mini,
        #pickup-section .yhzq-list .img-containe .time-separator-mini,
        #delivery-section .yhzq-list .img-containe .time-separator-mini,
        #promotion-slider .yhzq-list .img-containe .time-separator-mini,
        #recommendation-slider .yhzq-list .img-containe .time-separator-mini {
            font-size: clamp(0.4rem, 2vw, 0.55rem) !important;
        }

        .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
        #pickup-section .yhzq-list .details-containe > .bottom-icons span,
        #delivery-section .yhzq-list .details-containe > .bottom-icons span {
            font-size: clamp(9px, 2.2vw, 10px) !important;
        }
}

@media (max-width: 340px) {
    .carousel-slide .caption {
        padding: 10px;
    }

    .caption h2 {
        font-size: 13px;
    }

    .carousel-slide .caption p {
        font-size: 11px;
    }

    .yhzq-top h1 {
        font-size: 20px;
    }

    .yhzq-top {
        height: 60px;
    }

    .yhzq-top .more {
        width: 70px;
        height: 32px;
        font-size: 12px;
    }

    .yhzq-list .jq span {
        font-size: 12px;
        font-weight: normal;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .details-containe > .bottom-icons span,
    #pickup-section .yhzq-list .details-containe > .bottom-icons span,
    #delivery-section .yhzq-list .details-containe > .bottom-icons span {
        font-size: clamp(10px, 2.8vw, 12px) !important;
    }

    .avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        min-width: 38px;
    }

    .stat {
        font-size: 18px;
    }

    .index-phb-div {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* .phb-list {
        flex: 0 0 calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
    } */

    .phb-list .img-containe {
        width: 34%;
        min-width: 88px;
        max-width: 44%;
        height: auto;
        min-height: 180px;
    }

    .phb-list .details-containe {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .phb-list .details-containe li {
        height: auto;
        min-height: 35px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .phb-list .jq span {
        font-size: 14px;
    }

    .phb-list .nickname {
        font-size: 14px;
    }

    .details-containe .pingfen.phgList {
        top: 6px;
        bottom: auto;
        left: auto;
        right: 16px;
        width: auto;
        background: none;
        padding-left: 0;
        font-size: 18px;
        text-align: right;
    }

    .product-image {
        height: 368px;
    }

    .detail-item.sub-pingfen .global-lable {
        font-size: 14px;
    }

    .detail-item.sub-pingfen .detail-rating {
        font-size: 20px;
    }

    .products-grid .product-card .countdown-timer-overlay .time-value,
    .sub-section .product-card .countdown-timer-overlay .time-value {
        font-size: 0.9rem;
        min-width: auto;
        width: auto;
        max-width: auto;
        white-space: nowrap;
        overflow: unset;
    }

    .products-grid .product-card .countdown-timer-overlay .countdown-display,
    .sub-section .product-card .countdown-timer-overlay .countdown-display {
        flex-wrap: wrap;
    }


    /* #header（≤340） */

    #header.top-container {
            height: 86px;
            --header-search-inset-left: 8px;
            --header-search-inset-right: 46px;
            --header-search-gap: 4px;
            --header-search-box-height: 38px;
            --header-advanced-btn-size: 36px;
        }

        #header .logo-container {
            left: 6px;
            max-width: calc(100% - 102px);
            gap: 5px;
        }

        #header .logo-image {
            width: 42px;
            height: 42px;
        }

        #header .logo-title {
            font-size: 0.82rem;
        }

        #header .user-menu {
            right: 4px;
        }

        #header .search-icon-btn {
            right: 46px;
        }

        #header .user-btn,
        #header .search-toggle-btn {
            width: 36px;
            height: 36px;
        }

        #header .user-btn i {
            font-size: 1.28rem;
        }

        #header .search-toggle-btn i {
            font-size: 1.1rem;
        }

        #header .search-input {
            font-size: 0.78rem;
        }
}

/* 首頁優惠／推薦／定點／外約：≤320px 單列，卡片內元素隨卡片寬度縮放 */
@media (max-width: 320px) {
    #promotion-slider .slide,
    #recommendation-slider .slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #pickup-section .yhzq-list-containe,
    #delivery-section .yhzq-list-containe,
    .yhzq-containe.dingdian .yhzq-list-containe {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
    }

    #pickup-section .yhzq-list-containe > .yhzq-list,
    #delivery-section .yhzq-list-containe > .yhzq-list,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #promotion-slider .yhzq-list,
    #recommendation-slider .yhzq-list,
    #pickup-section .yhzq-list,
    #delivery-section .yhzq-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #promotion-slider .yhzq-list .img-containe,
    #recommendation-slider .yhzq-list .img-containe,
    #pickup-section .yhzq-list .img-containe,
    #delivery-section .yhzq-list .img-containe,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe {
        width: 100%;
        height: clamp(180px, 52vw, 260px);
    }

    #promotion-slider .yhzq-list .img-containe img,
    #recommendation-slider .yhzq-list .img-containe img,
    #pickup-section .yhzq-list .img-containe img,
    #delivery-section .yhzq-list .img-containe img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #promotion-slider .yhzq-list .details-containe,
    #recommendation-slider .yhzq-list .details-containe,
    #pickup-section .yhzq-list .details-containe,
    #delivery-section .yhzq-list .details-containe {
        padding: 10px 12px;
        font-size: clamp(11px, 3.2vw, 13px);
        overflow: visible;
        box-sizing: border-box;
    }

    #promotion-slider .yhzq-list .details-containe > ul,
    #recommendation-slider .yhzq-list .details-containe > ul,
    #pickup-section .yhzq-list .details-containe > ul,
    #delivery-section .yhzq-list .details-containe > ul {
        row-gap: 5px;
    }

    #promotion-slider .yhzq-list .details-containe .information.first .nickname,
    #recommendation-slider .yhzq-list .details-containe .information.first .nickname,
    #pickup-section .yhzq-list .details-containe .information.first .nickname,
    #delivery-section .yhzq-list .details-containe .information.first .nickname {
        font-size: clamp(14px, 4.2vw, 17px);
    }

    #promotion-slider .yhzq-list .details-containe .information,
    #recommendation-slider .yhzq-list .details-containe .information,
    #pickup-section .yhzq-list .details-containe .information,
    #delivery-section .yhzq-list .details-containe .information {
        font-size: clamp(11px, 3.1vw, 13px);
        min-height: 0;
        height: auto;
    }

    #promotion-slider .yhzq-list .details-containe .information.yj span,
    #promotion-slider .yhzq-list .details-containe .information.xj span,
    #recommendation-slider .yhzq-list .details-containe .information.yj span,
    #recommendation-slider .yhzq-list .details-containe .information.xj span,
    #pickup-section .yhzq-list .details-containe .information.yj span,
    #pickup-section .yhzq-list .details-containe .information.xj span,
    #delivery-section .yhzq-list .details-containe .information.yj span,
    #delivery-section .yhzq-list .details-containe .information.xj span {
        font-size: clamp(11px, 3.1vw, 13px);
    }

    #promotion-slider .yhzq-list .details-containe > .bottom-icons span,
    #recommendation-slider .yhzq-list .details-containe > .bottom-icons span,
    #pickup-section .yhzq-list .details-containe > .bottom-icons span,
    #delivery-section .yhzq-list .details-containe > .bottom-icons span,
    #ranking-section .phb-list .details-containe > .bottom-icons span {
        font-size: clamp(11px, 3.2vw, 13px) !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
    #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #pickup-section .yhzq-list .img-containe .product-badge,
    #pickup-section .yhzq-list .img-containe .vip-badge,
    #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #delivery-section .yhzq-list .img-containe .product-badge,
    #delivery-section .yhzq-list .img-containe .vip-badge,
    #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
    #promotion-slider .yhzq-list .img-containe .product-badge,
    #promotion-slider .yhzq-list .img-containe .vip-badge,
    #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
    #recommendation-slider .yhzq-list .img-containe .product-badge,
    #recommendation-slider .yhzq-list .img-containe .vip-badge {
        --yhzq-card-badge-h: 24px;
        --yhzq-card-badge-fs: 10px;
        --yhzq-card-badge-px: 7px;
        min-height: var(--yhzq-card-badge-h) !important;
        height: var(--yhzq-card-badge-h) !important;
        max-height: var(--yhzq-card-badge-h) !important;
        padding: 0 var(--yhzq-card-badge-px) !important;
        font-size: var(--yhzq-card-badge-fs) !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .yhzq-activity-time-badge,
    #pickup-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #delivery-section .yhzq-list .img-containe .yhzq-activity-time-badge,
    #promotion-slider .yhzq-list .img-containe .yhzq-activity-time-badge,
    #recommendation-slider .yhzq-list .img-containe .yhzq-activity-time-badge {
        top: 8px;
        left: 8px;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .vip-badge,
    #pickup-section .yhzq-list .img-containe .vip-badge,
    #delivery-section .yhzq-list .img-containe .vip-badge,
    #promotion-slider .yhzq-list .img-containe .vip-badge,
    #recommendation-slider .yhzq-list .img-containe .vip-badge {
        top: 8px;
        right: 8px;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .product-badge,
    #pickup-section .yhzq-list .img-containe .product-badge,
    #delivery-section .yhzq-list .img-containe .product-badge,
    #promotion-slider .yhzq-list .img-containe .product-badge,
    #recommendation-slider .yhzq-list .img-containe .product-badge {
        bottom: calc(var(--yhzq-card-badge-h, 24px) + 4px) !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .countdown-timer-overlay,
    #pickup-section .yhzq-list .img-containe .countdown-timer-overlay,
    #delivery-section .yhzq-list .img-containe .countdown-timer-overlay,
    #promotion-slider .yhzq-list .img-containe .countdown-timer-overlay,
    #recommendation-slider .yhzq-list .img-containe .countdown-timer-overlay {
        padding: 4px 6px !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-unit-mini,
    #pickup-section .yhzq-list .img-containe .time-unit-mini,
    #delivery-section .yhzq-list .img-containe .time-unit-mini,
    #promotion-slider .yhzq-list .img-containe .time-unit-mini,
    #recommendation-slider .yhzq-list .img-containe .time-unit-mini {
        padding: 2px 4px !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-value-mini,
    #pickup-section .yhzq-list .img-containe .time-value-mini,
    #delivery-section .yhzq-list .img-containe .time-value-mini,
    #promotion-slider .yhzq-list .img-containe .time-value-mini,
    #recommendation-slider .yhzq-list .img-containe .time-value-mini {
        font-size: clamp(0.55rem, 3.2vw, 0.75rem) !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-label-mini,
    #pickup-section .yhzq-list .img-containe .time-label-mini,
    #delivery-section .yhzq-list .img-containe .time-label-mini,
    #promotion-slider .yhzq-list .img-containe .time-label-mini,
    #recommendation-slider .yhzq-list .img-containe .time-label-mini {
        font-size: clamp(0.45rem, 2.4vw, 0.58rem) !important;
    }

    .yhzq-containe.dingdian .yhzq-list-containe > .yhzq-list .img-containe .time-separator-mini,
    #pickup-section .yhzq-list .img-containe .time-separator-mini,
    #delivery-section .yhzq-list .img-containe .time-separator-mini,
    #promotion-slider .yhzq-list .img-containe .time-separator-mini,
    #recommendation-slider .yhzq-list .img-containe .time-separator-mini {
        font-size: clamp(0.5rem, 2.6vw, 0.68rem) !important;
    }
}


/* 屏蔽前台轮播 caption */
.caption {
    display: none !important;
}

/* 菜品详情页：视频缩略图播放标识 */
.thumbnails-container .thumbnail.is-video .video-play-icon,
.thumbnails-container .thumbnail .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.details-slide .video-play-overlay,
.main-image .video-play-overlay,
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: none;
}

.details-slide .video-play-overlay i,
.main-image .video-play-overlay i,
.video-play-overlay i {
    color: #fff;
    font-size: 36px;
    margin-left: 4px;
}

.details-slide .video-poster-wrapper,
.main-image .video-poster-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ===== 18禁彈窗最終鎖定（對齊 moban-2，防止後續全域樣式覆蓋） ===== */
#agreementBox.agreement-box {
    background: #fff;
    color: #333;
}
#agreementBox .agreement-title {
    color: #e74c3c;
    font-size: 1.8rem;
}
#agreementBox .agreement-content {
    color: #555;
    font-size: 16px;
    line-height: 40px;
    background: #f9f9f9;
    border: 1px solid #eee;
}
#agreementBox .checkbox-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 0;
    color: #333;
    font-size: 15px;
}
#agreementBox .checkbox-container input {
    display: inline-block !important;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    visibility: visible !important;
}
#agreementBox .checkbox-container label {
    color: #333;
    font-size: inherit;
    cursor: pointer;
}
#agreementBox .btn-accept {
    background: #2ecc71;
    color: #fff;
}
#agreementBox .btn-reject {
    background: #e74c3c;
    color: #fff;
}
#agreementBox .buttons .btn {
    width: 118px;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}
@media (max-width: 768px) {
    #agreementBox .agreement-title {
        font-size: clamp(1.15rem, 4.8vw, 1.55rem);
    }
    #agreementBox .agreement-content {
        line-height: clamp(26px, 5.4vw, 34px);
    }
    #agreementBox .checkbox-container {
        margin-bottom: clamp(10px, 2.6vw, 16px);
        font-size: clamp(13px, 3.4vw, 15px);
    }
    #agreementBox .buttons .btn {
        width: clamp(84px, 24vw, 116px);
        font-size: clamp(0.76rem, 2.7vw, 0.86rem);
    }
}
@media (max-width: 540px) {
    #agreementBox .agreement-content {
        line-height: 38px;
        font-size: 14px;
    }
    #agreementBox .buttons .btn {
        width: clamp(78px, 26vw, 102px);
        font-size: clamp(0.80rem, 2.5vw, 0.85rem);
    }
}
@media (max-width: 375px) {
    #agreementBox .agreement-content {
        line-height: 32px;
        font-size: 14px;
    }
    #agreementBox .buttons .btn {
        width: clamp(72px, 24vw, 92px);
        font-size: clamp(0.68rem, 2.3vw, 0.76rem);
    }
}

/* mobile width lock: 無全域 border-box 時防止 95vw+padding 溢出 */
#agreementBox.agreement-box {
    box-sizing: border-box !important;
    max-width: min(500px, 95vw);
}
@media (max-width: 768px) {
    #agreementBox.agreement-box {
        width: min(92vw, 520px) !important;
        max-width: 95vw !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 540px) {
    #agreementBox.agreement-box {
        width: 94vw !important;
        max-width: 95vw !important;
        padding: clamp(12px, 3vw, 18px) !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 375px) {
    #agreementBox.agreement-box {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== 18禁彈窗層級鎖定 ===== */
#agreementOverlay,
#agreementOverlay.overlay,
#agreementOverlay.overlay.show {
    z-index: 10000000 !important;
}
#agreementBox,
#agreementBox.agreement-box,
#agreementBox.agreement-box.show {
    z-index: 10000001 !important;
}

/* ===============================
   moban-3 頂部新布局最終覆蓋（對齊 moban-1）
   左 logo-img｜右上搜索+user｜右下 logo-text
   =============================== */
#header.top-container {
    --m3-logo-size: clamp(70px, 6vw + 40px, 100px);
}

#header .logo-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 12px !important;
    right: 12px !important;
    height: 100% !important;
    max-width: none !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
}

#header .logo-image {
    width: var(--m3-logo-size) !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto !important;
}

#header .logo-img {
    width: 75%;
    height: auto;
    object-fit: cover;
}

#header .logo-main-right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    box-sizing: border-box;
}

#header .logo-main-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

#header .logo-main-top .search-container,
#header .search-container,
#header .search-container.active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 560px;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

#header .search-box {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

#header .advanced-search-btn,
#header .user-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

#header .user-menu,
#header .search-icon-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
}

#header .search-icon-btn,
#header .search-toggle-btn {
    display: none !important;
}

#header .logo-text {
    justify-content: flex-end;
    text-align: left;
    padding-bottom: 20px;
    max-width: none;
    overflow: visible;
}

#header .logo-title {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 768px) {
    #header.top-container {
        --m3-logo-size: clamp(48px, 12vw, 56px);
    }
    #header .logo-main-right {
        padding-top: 20px;
        gap: 6px;
    }
    #header .logo-img {
        width: 100%;
    }
}

@media (max-width: 540px) {
    #header.top-container {
        --m3-logo-size: clamp(40px, 11vw, 52px);
    }
    #header .logo-main-top {
        gap: 6px;
    }
}

@media (max-width: 375px) {
    #header.top-container {
        --m3-logo-size: clamp(32px, 10vw, 40px);
    }
    #header .logo-container {
        left: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }
    #header .logo-main-top {
        gap: 4px;
    }
    #header .user-btn,
    #header .advanced-search-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}
