:root {
    --theme-primary: var(--acg-primary);
    --theme-primary-rgb: 122, 140, 255;
    --theme-primary-dark: #6476e7;
    --theme-price: var(--acg-danger);
    --theme-button: var(--acg-primary);
    --theme-button-dark: #6476e7;
    --theme-accent: var(--acg-secondary);
    --theme-accent-dark: #9d70e8;
}

html,
body.ycy-body {
    min-height: 100%;
}

body.ycy-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #212529;
    background-color: transparent;
    background-image: none;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: normal;
}

body.ycy-body > #pjax-container {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
}

body.ycy-body .ycy-runtime-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

body.ycy-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background: var(--ycy-page-gradient, linear-gradient(135deg, #f6f7ff 0%, #fff7fb 45%, #eef7ff 100%));
    pointer-events: none;
}

body.ycy-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, var(--ycy-background-overlay, .71)));
    pointer-events: none;
}

.navbar-acg .ycy-user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.navbar-acg .search-input .input-group-text {
    background-color: rgba(255, 255, 255, .92);
}

.navbar-acg .ycy-user-meta {
    min-width: 0;
}

.navbar-acg #username {
    font-size: 14px;
    line-height: 1.2;
}

.navbar-acg #user-balance {
    font-size: 12px;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .navbar-acg .user-login-box .btn {
        width: 34px;
        padding-right: 0;
        padding-left: 0;
        overflow: hidden;
        font-size: 0;
    }

    .navbar-acg .user-login-box .nav-icon {
        margin-right: 0;
        font-size: .875rem;
    }
}

body.ycy-body .panel {
    background: rgba(255, 255, 255, var(--ycy-panel-alpha, .5));
    backdrop-filter: saturate(160%) blur(var(--ycy-glass-blur, 14px));
}

.navbar-acg,
.ycy-help-item,
body.ycy-body .dropdown-menu {
    backdrop-filter: saturate(160%) blur(var(--ycy-glass-blur, 14px));
}

.ycy-mobile-menu-replacement {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 1px solid rgba(var(--ycy-primary-rgb), .2);
    border-radius: 50%;
    color: var(--ycy-primary);
    background: rgba(255, 255, 255, .72);
}

.ycy-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;
}

.ycy-category-level {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 2px 0 .25rem;
    list-style: none;
}

.ycy-category-level + .ycy-category-level {
    margin-top: .5rem;
}

.ycy-category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem;
    margin: 0 0 .45rem;
    color: var(--acg-text-muted);
    font-size: calc(.78rem + 2px);
    line-height: 1.4;
}

.ycy-category-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ycy-category-breadcrumb a:hover {
    color: var(--acg-primary);
}

.ycy-category-breadcrumb i {
    color: var(--acg-text-muted);
    font-size: 1rem;
}

.ycy-category-breadcrumb span {
    color: var(--acg-primary);
    font-weight: 700;
}

.ycy-shop.is-category-loading .panel-body {
    opacity: .58;
    pointer-events: none;
    transition: opacity .18s ease;
}

.ycy-category-item {
    min-width: 0;
}

.chip.ycy-category-item.is-current-path,
.chip.ycy-category-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.chip.ycy-category-item {
    line-height: 18px;
}

.ycy-home-search {
    max-width: 680px;
    margin: 0 auto 1rem;
}

.ycy-home-search .btn-primary,
.order-query-form .btn-primary,
.ycy-help-grid + .d-flex .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
}

.ycy-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
    padding: 4rem 1rem;
    color: var(--acg-text-muted);
    text-align: center;
}

.ycy-empty i {
    color: var(--acg-primary);
    font-size: 2.5rem;
}

.ycy-product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ycy-product-column,
.ycy-product-column:hover {
    color: #333;
}

.ycy-hot-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .48rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--ycy-accent), #ff9a74);
    box-shadow: 0 5px 14px rgba(255, 107, 136, .22);
    font-size: 12px;
    font-weight: 700;
}

.ycy-category-count {
    min-width: 20px;
    margin-left: .15rem;
    padding: 0 .32rem;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, .64);
    font-size: 11px;
    text-align: center;
}

.ycy-category-item.is-active .ycy-category-count,
.ycy-category-item.is-current-path .ycy-category-count {
    background: rgba(255, 255, 255, .22);
}


.ycy-product-price em {
    margin-left: .25rem;
    color: #ef7d93;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
}

@media (min-width: 992px) {
    html[data-ycy-card-columns="3"] .ycy-product-column {
        width: 33.33333333%;
    }
}

@media (max-width: 767.98px) {
    .ycy-product-meta {
        font-size: 12px;
        line-height: 1.4;
    }

    .ycy-product-grid[data-ycy-mobile-card-columns="2"] > .ycy-product-column {
        width: 50%;
    }

    .ycy-product-grid[data-ycy-mobile-card-columns="2"] .goods-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 2.7em;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ycy-product-grid[data-ycy-mobile-card-columns="2"] .ycy-product-price {
        font-size: clamp(15px, 4.5vw, 18px);
    }

    .ycy-product-grid[data-ycy-mobile-card-columns="2"] .ycy-product-price em {
        font-size: 12px;
    }

    .ycy-product-grid[data-ycy-mobile-card-columns="2"] .ycy-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: .125rem;
    }
}

.ycy-pagination {
    margin-top: 1rem;
}

.ycy-pagination .pagination {
    justify-content: center;
    gap: .35rem;
}

.ycy-pagination .page-link {
    border: 0;
    border-radius: 10px;
    color: var(--acg-text-muted);
    background: rgba(255, 255, 255, .72);
}

.ycy-pagination .active .page-link,
.ycy-pagination .active > span {
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.ycy-query-input {
    width: 300px;
    max-width: 100%;
}

.ycy-help-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(229, 231, 235, .8);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
}

.ycy-help-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    color: var(--acg-primary);
    background: rgba(122, 140, 255, .12);
}

.ycy-help-item p {
    margin: .35rem 0 0;
    color: var(--acg-text-muted);
}

.ycy-help-section-title {
    margin: 0 0 .85rem;
    font-size: 1rem;
    font-weight: 700;
}

.ycy-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.ycy-help-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ycy-help-shortcuts .ycy-support-card {
    flex-direction: column;
    justify-content: center;
    min-height: 104px;
    gap: .5rem;
    padding: 1rem .75rem;
    text-align: center;
}

.ycy-support-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(229, 231, 235, .78);
    border-radius: 14px;
    color: inherit;
    background: rgba(255, 255, 255, .52);
    text-decoration: none;
}

.ycy-support-card i {
    color: var(--ycy-primary);
    font-size: 1.25rem;
}

.ycy-support-card span {
    color: var(--acg-text-muted);
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .ycy-help-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ycy-after-sale-notice {
    padding: 1rem;
    border-left: 3px solid var(--ycy-primary);
    border-radius: 0 12px 12px 0;
    background: rgba(var(--ycy-primary-rgb), .06);
    line-height: 1.8;
}

.ycy-faq-list {
    display: grid;
    gap: .6rem;
}

.ycy-faq-item {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, .78);
    border-radius: 12px;
    background: rgba(255, 255, 255, .5);
}

.ycy-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .85rem 1rem;
    border: 0;
    color: inherit;
    background: transparent;
    font-weight: 700;
    text-align: left;
}

.ycy-faq-answer {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--acg-text-muted);
    line-height: 1.75;
}

.ycy-float-help {
    position: fixed;
    z-index: 998;
    top: var(--ycy-float-help-top, 50%);
    right: 15px;
    transform: translateY(-50%);
}

.ycy-float-help__button {
    display: block;
    width: 55px;
    line-height: 0;
    transition: transform .3s ease;
}

.ycy-float-help__button img {
    display: block;
    width: 100%;
    height: auto;
}

.ycy-float-help__button:hover,
.ycy-float-help__button:focus-visible {
    transform: scale(1.1);
    outline: 0;
}

@media (min-width: 769px) {
    .ycy-float-help {
        right: max(15px, calc((100vw - 1140px) / 2 - 150px));
    }

    .ycy-float-help__button {
        width: 50px;
    }
}

@media (min-width: 1400px) {
    .ycy-float-help { right: max(15px, calc((100vw - 1140px) / 2 - 150px)); }
}

@media (max-width: 768px) {
    .ycy-float-help { right: 12px; }
}

.ycy-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
    padding: 8px 12px;
    color: #858585;
    font-size: 12px;
    text-align: center;
}

.ycy-footer a {
    color: var(--acg-primary);
}

body.ycy-body .main-footer {
    width: 100%;
    margin-top: auto;
    padding: 8px 12px;
    border: 0;
    color: #858585;
    background: transparent;
    font-size: 12px;
    text-align: center;
}

body.ycy-body .main-footer .container,
body.ycy-body .main-footer .footer-content,
body.ycy-body .main-footer .footer-info,
body.ycy-body .main-footer .copyright {
    width: 100%;
}

body.ycy-body .main-footer .footer-content,
body.ycy-body .main-footer .copyright {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ycy-body .main-footer .copyright {
    flex-wrap: wrap;
    gap: 4px;
}

body.ycy-body .main-footer a {
    color: inherit;
}

.ycy-goods-id {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ycy-copy-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--acg-primary);
    background: rgba(122, 140, 255, .12);
}

.ycy-copy-id:hover,
.ycy-copy-id:focus-visible {
    color: #fff;
    background: var(--acg-primary);
    outline: 0;
}

.ycy-toast {
    position: fixed;
    z-index: 1000001;
    top: 76px;
    left: 50%;
    max-width: calc(100% - 32px);
    padding: .65rem 1rem;
    transform: translateX(-50%);
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 19, 25, .9);
    box-shadow: 0 10px 30px rgba(17, 19, 25, .18);
}

body.ycy-body .order-query-container,
body.ycy-body .order-result-container,
body.ycy-body .confirm-container,
body.ycy-body .cart-container,
body.ycy-body .content-container {
    width: min(1320px, calc(100% - 24px));
    margin-right: auto;
    margin-left: auto;
}

body.ycy-body .order-card,
body.ycy-body .order-item,
body.ycy-body .confirm-card,
body.ycy-body .cart-card {
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, var(--ycy-panel-alpha, .5));
    box-shadow: 0 10px 30px rgba(82, 63, 105, .05);
    backdrop-filter: saturate(180%) blur(var(--ycy-glass-blur, 14px));
}

@media (max-width: 575.98px) {
    .ycy-home-search {
        margin-bottom: .75rem;
    }

    .ycy-query-input {
        width: 100%;
    }

    .ycy-mobile-menu-replacement {
        display: inline-flex;
    }







    .ycy-support-grid {
        grid-template-columns: 1fr;
    }

    .ycy-help-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ycy-float-help {
        right: 14px;
        top: var(--ycy-float-help-top, 50%);
        bottom: auto;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}
