:root {
    --store-ink: #14243b;
    --store-muted: #728096;
    --store-line: #e7edf5;
    --store-primary: #2563eb;
    --store-primary-2: #0ea5e9;
    --store-accent: #f97316;
    --store-bg: #eef4fb;
    --store-card: #ffffff;
    --store-shadow: 0 10px 30px rgba(30, 64, 105, 0.09);
}

html {
    background: var(--store-bg);
}

html body {
    position: relative !important;
    min-height: 100vh;
    margin: 0 auto !important;
    max-width: 650px !important;
    color: var(--store-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.17), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(99, 102, 241, 0.11), transparent 28%),
        var(--store-bg) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

#body {
    min-height: 100vh;
    background: transparent;
}

#container.fui-content.navbar {
    background: transparent !important;
}

.default-items {
    box-sizing: border-box;
    padding: 0 12px;
}

.cxo-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 4px 8px;
    padding: 15px 16px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(135deg, #163a72 0%, #2563eb 56%, #0ea5e9 100%);
    box-shadow: 0 14px 32px rgba(30, 86, 175, 0.24);
}

.cxo-home-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.cxo-home-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 22px;
    font-weight: 800;
}

.cxo-home-title {
    min-width: 0;
}

.cxo-home-title h1 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cxo-home-title p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.cxo-home-member {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.13);
    font-size: 12px;
    text-decoration: none !important;
}

.fui-swipe {
    margin: 0 0 8px !important;
    border-radius: 20px !important;
    background: #dbeafe;
    box-shadow: var(--store-shadow);
}

.fui-swipe-wrapper,
.fui-swipe-item {
    border-radius: 20px !important;
}

.fui-swipe-wrapper .fui-swipe-item img {
    border-radius: 20px;
    object-fit: cover;
}

.fui-swipe-page {
    bottom: 8px !important;
}

.fui-swipe-bullet {
    width: 7px !important;
    height: 7px !important;
    margin: 0 3px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.fui-swipe-bullet.active {
    width: 18px !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.fui-notice {
    height: 44px !important;
    margin: 8px 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(222, 231, 242, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 6px 18px rgba(30, 64, 105, 0.06);
}

.fui-notice:before,
.fui-notice:after,
.fui-notice .image:before {
    display: none !important;
}

.fui-notice .image {
    height: 44px !important;
    display: flex !important;
    align-items: center;
    padding-right: 10px !important;
}

.fui-notice .image a {
    display: inline-flex !important;
    align-items: center;
}

.cxo-notice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
    white-space: nowrap;
}

.fui-notice .text {
    height: 44px !important;
    padding-left: 3px !important;
    color: #4a5a70;
    font-size: 12px !important;
    line-height: 44px !important;
}

.fui-notice .text ul li,
.fui-notice .text ul li a {
    line-height: 44px !important;
}

#goods_search {
    box-sizing: border-box;
    margin: 0 -12px !important;
    padding: 8px 12px 0 !important;
}

#goods_search .fui-searchbar.bar {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

#goods_search .fui-searchbar.bar:after {
    display: none !important;
}

#goods_search .searchbar.centerr {
    display: flex !important;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 5px 5px 5px 14px !important;
    border: 1px solid rgba(222, 231, 242, 0.9);
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(30, 64, 105, 0.08);
}

#goods_search .search-input {
    position: relative !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 11px !important;
    background: #f3f7fc !important;
}

#goods_search input.search {
    box-sizing: border-box;
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    color: var(--store-ink) !important;
    font-size: 14px !important;
}

#goods_search input.search::placeholder {
    color: #98a6b8;
}

#goods_search button.searchbar-cancel.searchbtn {
    position: static !important;
    flex: 0 0 64px;
    top: auto !important;
    right: auto !important;
    width: 64px !important;
    height: 36px !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
    line-height: 36px !important;
}

#goods_search .searchbar > input.searchbar-cancel.searchbtn {
    display: none !important;
}

#goods_search button.searchbar-cancel.searchbtn a {
    color: #fff !important;
}

/* 快捷入口：兼容现有 4 格和 2 格两套结构 */
#goods_search .fui-searchbar > div[style*="display:flex"] {
    gap: 8px;
    box-sizing: border-box;
    padding: 10px 0 4px !important;
    border-radius: 15px;
    background: transparent !important;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a {
    min-width: 0;
    height: 70px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(33, 72, 118, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a:nth-child(1) {
    background: linear-gradient(145deg, #fffaf0, #fff) !important;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a:nth-child(2) {
    background: linear-gradient(145deg, #f0f8ff, #fff) !important;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a:nth-child(3) {
    background: linear-gradient(145deg, #fff4f4, #fff) !important;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a:nth-child(4) {
    background: linear-gradient(145deg, #fff7ed, #fff) !important;
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a:hover,
#goods_search .fui-searchbar > div[style*="display:flex"] > a:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(33, 72, 118, 0.13);
}

#goods_search .fui-searchbar > div[style*="display:flex"] > a li {
    list-style: none;
}

#goods_search .fui-searchbar iframe {
    display: block;
    width: 100% !important;
    height: 176px !important;
    border: 0;
    margin-top: 8px;
    border-radius: 14px;
    background: #fff;
}

.device {
    margin: 10px 0 0;
    padding: 8px 4px 4px !important;
    border-radius: 18px;
    background: #fff !important;
    box-shadow: var(--store-shadow);
}

.content-slide {
    padding: 0 2px !important;
}

.content-slide > a {
    padding: 3px;
    border-radius: 14px;
    transition: transform 160ms ease;
}

.content-slide > a:active {
    transform: scale(0.96);
}

.content-slide > a .mbg {
    margin: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #f5f9ff, #fff) !important;
}

.ico img {
    width: 44px !important;
    height: 44px !important;
    margin: 9px auto 0 !important;
    border-radius: 13px !important;
    object-fit: cover;
}

.icon-title {
    margin: 5px 2px 6px !important;
    color: #34445a !important;
    font-size: 11px !important;
    font-weight: 600;
}

.swiper-pagination {
    position: static !important;
    margin-top: 4px;
}

.swiper-pagination-bullet {
    width: 5px !important;
    height: 5px !important;
    margin: 0 3px !important;
    background: #cdd8e6 !important;
}

.swiper-pagination-bullet-active {
    width: 15px !important;
    border-radius: 5px !important;
    background: var(--store-primary) !important;
}

.goods_sort {
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    margin: 10px auto 0 !important;
    padding: 7px !important;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 105, 0.07);
}

.goods_sort:after {
    display: none !important;
}

.goods_sort .item {
    flex: 1;
    display: block;
    border: 0 !important;
    border-radius: 9px;
    color: #6b7a90 !important;
    line-height: 30px;
}

.goods_sort .item.on,
.goods_sort .item:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.goods_sort .item .text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

#goods-list-container.fui-goods-group {
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    border-radius: 18px 18px 0 0;
    background: transparent !important;
}

#goods-list-container.block {
    display: block !important;
    box-sizing: border-box;
}

#goods-list-container.block #goods_list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#goods-list-container.block .fui-goods-item {
    float: none !important;
    width: auto !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(30, 64, 105, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#goods-list-container.block .fui-goods-item:hover,
#goods-list-container.block .fui-goods-item:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 105, 0.13);
}

#goods-list-container.block .fui-goods-item .image {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f2f6fb;
    overflow: hidden !important;
}

#goods-list-container.block .fui-goods-item .image img {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center center;
}

#goods-list-container.block .fui-goods-item .detail {
    height: auto !important;
    padding: 9px 9px 11px !important;
    background: #fff !important;
}

#goods-list-container .detail .name {
    height: 38px !important;
    color: #24344a !important;
    font-size: 12px !important;
    font-weight: 650;
    line-height: 19px !important;
}

#goods-list-container .detail .price .minprice {
    color: #e94848 !important;
    font-size: 15px !important;
    font-weight: 800;
}

#goods-list-container .detail .price .buy,
#goods-list-container .detail .price .cycelbuy {
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

#goods-list-container:not(.block) .fui-goods-item {
    margin: 8px !important;
    border: 0 !important;
    border-radius: 16px;
    background: #fff !important;
    box-shadow: var(--store-shadow);
    overflow: hidden;
}

#goods-list-container:not(.block) .fui-goods-item .image {
    border-radius: 13px !important;
    overflow: hidden;
}

#goods-list-container:not(.block) .fui-goods-item .detail {
    padding: 4px 2px 4px 12px !important;
    background: #fff !important;
}

.show_class {
    box-sizing: border-box;
    width: calc(100% - 24px) !important;
    margin: 8px auto !important;
    border-radius: 12px;
    background: #fff !important;
}

.footer {
    margin-top: 10px !important;
    padding: 14px 8px 20px;
    color: #8997a9 !important;
    font-size: 11px;
}

.footer a,
.footer p {
    color: #8997a9 !important;
}

.fui-navbar {
    border-top: 1px solid rgba(225, 233, 244, 0.9);
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -8px 24px rgba(32, 66, 106, 0.09);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.fui-navbar .nav-item {
    color: #7b899d !important;
}

.fui-navbar .nav-item.active,
.fui-navbar .nav-item:active {
    color: var(--store-primary) !important;
}

.fui-navbar .nav-item.active .icon,
.fui-navbar .nav-item:active .icon {
    transform: translateY(-1px);
}

.fui-navbar .nav-item .label {
    font-size: 10px !important;
}

@media (max-width: 480px) {
    .cxo-home-header {
        margin-top: 7px;
        padding: 13px 14px;
        border-radius: 17px;
    }

    .cxo-home-title h1 {
        font-size: 16px;
    }

    #goods-list-container.block #goods_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    #goods_search .fui-searchbar > div[style*="display:flex"] > a {
        height: 66px !important;
    }
}

@media (max-width: 360px) {
    .cxo-home-mark {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .cxo-home-title p,
    .cxo-home-member span {
        display: none;
    }

    .content-slide > a {
        width: 20% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #goods-list-container.block .fui-goods-item,
    #goods_search .fui-searchbar > div[style*="display:flex"] > a,
    .content-slide > a {
        transition: none !important;
    }
}
