/* 二次元风格（无毛玻璃、无动画、注重可读与性能） */

:root {
    --acg-bg-overlay: rgba(10, 12, 28, 0.45);
    --acg-primary: #7a8cff;
    --acg-secondary: #b88cff;
    --acg-danger: #ff6b88;
    --acg-text-strong: #111319;
    --acg-text-muted: #6b7280;
    --acg-card-bg: rgba(255, 255, 255);
    --acg-border: #e5e7eb;
}

html {
    font-size: 13px;
}

a {
    text-decoration: none;
}

/* 背景直接铺图 + 颜色叠加（不使用 fixed，避免闪烁） */
body {
    background-image: linear-gradient(180deg, var(--acg-bg-overlay), rgba(10, 12, 28, 0.6)), url('/assets/admin/images/login/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* 导航：渐变条 + 细边框 */
.navbar-acg {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
    z-index: 999999;
}

.navbar-acg .navbar-brand {
    font-size: 1.45rem;
}

.navbar-acg .nav-link {
    color: #898989;
    font-size: 1.2rem;
}

.navbar-acg .nav-link.active {
    color: #479afb;
}

.navbar-acg .nav-link.active {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .user-info-box {
        position: absolute;
        right: 64px;
        top: 8px;
    }
    .user-login-box {
        position: absolute;
        right: 68px;
        top: 14px;
    }
}


/* Hero 文案块（纯色卡片） */
.hero-acg {
    background: var(--acg-card-bg);
    border: 1px solid var(--acg-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hero-title {
    font-weight: 800;
    letter-spacing: .3px;
}

.hero-sub {
    color: var(--acg-text-muted);
}

.accent-bar {
    height: 4px;
    width: 64px;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    border-radius: 4px;
}

/* 分类 Chip */
.chip-list {
    display: flex;
    gap: .5rem;
    overflow-x: visible;
    overflow-y: visible;
    padding: 2px 0 .25rem;
    flex-wrap: wrap;
}

.chip-list::-webkit-scrollbar {
    height: 6px;
}

.chip-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 999px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgb(255 248 248 / 23%);
    color: #707070;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    transform-origin: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-size: 1.231rem;
}

.chip.is-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    border-color: transparent;
}

/* 商品卡片（简洁，无动态特效） */
.acg-card {
    background: var(--acg-card-bg);
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.acg-thumb {
    height: 160px;
    position: relative;
    transition: transform .25s ease;
}

/* 内容容器弹性布局，底部元素对齐 */
.acg-card > .p-3 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* 价格行靠近底部，库存/已售置底对齐 */
.acg-card > .p-3 .stat-row {
    margin-top: auto;
}

.goods-title {
    font-weight: 700;
    color: #1f1f1f;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em; /* 2 行占位，保证一行与两行卡片对齐 */
}

.price {
    color: var(--acg-danger);
    font-weight: 800;
    font-size: 20px;
}

.price .unit {
    font-weight: 600;
    font-size: 16px;
    color: #ef7d93;
}

.meta {
    color: var(--acg-text-muted);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--acg-text-muted);
}

.badge-soft {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: 12px;
}

.badge-soft-primary {
    background: rgba(122, 140, 255, .12);
    color: #5b6ce6;
    border: 1px solid rgba(122, 140, 255, .25);
}

.badge-soft-success {
    background: rgba(80, 200, 120, .12);
    color: #3aa76d;
    border: 1px solid rgba(80, 200, 120, .25);
}

.badge-soft-danger {
    background: rgba(255, 0, 0, 0.12);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

.badge-soft-muted {
    background: rgba(31, 41, 55, 0.12);
    color: rgba(31, 41, 55);
    border: 1px solid rgba(31, 41, 55, 0.25);
}

.badge-soft-warning {
    background: rgba(254, 243, 199, 0.12);
    color: #fef3c7;
    border: 1px solid rgba(254, 243, 199, 0.25);
}


.badge-soft-info {
    background: rgba(186, 149, 251, 0.12);
    color: #ba95fb;
    border: 1px solid rgba(186, 149, 251, 0.25);
}

.shared-button {
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.shared-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.tags {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.acg-card.soldout {
    filter: grayscale(1) contrast(.92) brightness(.98);
}

.acg-card.soldout:hover {
    transform: none;
    box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0;
}

.soldout-ribbon {
    position: absolute;
    top: 12px;
    left: -36px;
    transform: rotate(-45deg);
    background: linear-gradient(90deg, #ff8080, #ff6b88);
    color: #fff;
    padding: 4px 46px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(255, 107, 136, .35);
}

/* 分类图标（演示使用统一图片） */
.chip .chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* 布局微调 */
.section-title {
    color: #111827;
    font-weight: 700;
}

.notice {
    color: #374151;
}

@media (min-width: 992px) {
    .hero-acg {
        padding: 32px;
    }
}

/* 响应式卡片封面高度调整 */
@media (max-width: 575.98px) {
    .acg-thumb {
        height: 120px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .acg-thumb {
        height: 140px;
    }
}

/* 移动端 chip 紧凑化，保持单行显示 */
@media (max-width: 575.98px) {
    .chip {
        padding: .35rem .6rem;
        font-size: 13px;
    }

    .chip .chip-icon {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }

    /* 隐藏移动端横向滚动条但可滑动 */
    .chip-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .chip-list::-webkit-scrollbar {
        display: none;
    }
}

/* 仅在支持 hover 的设备启用动效，避免手机耗电与误触 */
@media (hover: hover) and (pointer: fine) {
    .chip:hover {
        transform: scale(1.02);
    }

    .sku:hover {
        transform: scale(1.02);
    }

    .acg-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    }

    .acg-card:hover .acg-thumb {
        transform: scale(1.03);
    }
}

/* 系统减少动态时，弱化动效 */
@media (prefers-reduced-motion: reduce) {
    .chip, .acg-card, .acg-thumb, .sku {
        transition-duration: .001ms !important;
    }
}

/* 顶部图标与输入组微调 */
.navbar-acg .nav-link .nav-icon {
    margin-right: .35rem;
    font-size: 1.15rem;
}

.navbar-acg .btn .nav-icon {
    margin-right: .35rem;
}

.brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.brand-shop-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    margin-left: 14px;
    padding: 5px 9px;
    border-radius: 10px;
    background: rgba(22, 155, 112, .12);
    border: 1px solid rgba(22, 155, 112, .22);
    color: #12875f;
    font-size: 18px;
    line-height: 1;
}

.brand-shop-action .brand-shop-text {
    color: #12875f !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.search-input {
    max-width: 360px;
}

.search-input .input-group-text {
    border: 1px solid #90909075;
    background: transparent;
    border-right: 0;
    padding: 0 0 0 10px;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
}

.search-input .form-control {
    border: 1px solid #90909075;
    border-left: 0;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;

}

.search-input .form-control:focus {
    border: var(--bs-border-width) solid #90909075 !important;
    border-left: none !important;
    box-shadow: none;
}

/* 通用 panel 样式（公告/购买区） */
.panel {
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.05);
}

.panel + .panel {
    margin-top: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 16px;

}

.panel-header .icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.panel-title {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
}

.panel-body {
    color: #1f2937;
    padding: 0 16px 16px 16px;
}

.muted {
    color: var(--acg-text-muted);
}

.item-message {
    text-align: center;
    margin-top: 12px;
    color: grey;
    font-size: 14px;
}


/* SKU LIST */
.sku-list {
    display: flex;
    gap: .5rem;
    overflow-x: visible;
    overflow-y: visible;
    flex-wrap: wrap;
    margin-top: 2px;
}

.sku-list::-webkit-scrollbar {
    height: 6px;
}

.sku-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 16px;
}

.sku {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: .2rem .6rem;
    border-radius: 16px;
    background: rgba(255, 248, 248, 0.63);
    color: #929292;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    transform-origin: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-size: 14px;
}

/* 价格加价徽标（悬浮在 SKU 右上角） */
.sku .badge-money,
.sku .badge-moeny {
    position: absolute;
    top: -15px;
    right: -12px;
    z-index: 1;
    padding: 1px 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(90deg, #ffb84d, #ff6b88);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(255, 107, 136, .35);
    pointer-events: none; /* 不干扰点击 SKU */
}

/* 在选中/主色 SKU 上同样清晰可见 */
.sku.is-primary .badge-money,
.sku.is-primary .badge-moeny,
.pay-list .pay.is-primary .badge-money,
.pay-list .pay.active .badge-money,
.pay-list .pay.selected .badge-money {
    border-color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) and (pointer: fine) {
    .sku:hover .badge-money,
    .sku:hover .badge-moeny,
    .optional-card:hover {
        transform: translateY(-1px) scale(1.05);
        transition: transform .12s ease;
    }
}

@media (max-width: 575.98px) {
    .sku .badge-money,
    .sku .badge-moeny {
        transform: scale(.94);
        transform-origin: top right;
    }
}

.sku.is-primary {
    color: #fff;
    background: linear-gradient(90deg, #ffb1b1, #ab57ff);
    border-color: transparent;
}

.vstack label {
    color: grey;
    font-size: 14px;
}

.vstack .form-control {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.49);
    border: var(--bs-border-width) solid #ababab47;
}

.captcha-input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: none;
}

.captcha-img {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: none;
    background: rgba(255, 255, 255, 0.49);
    padding: 0;
    height: 100%;
    cursor: pointer;
    margin-left: 2px;
}

/* 首页陈列样式：只调整前台展示，不影响接口和购买流程 */
body {
    background: #f5f6f8 !important;
    background-image: none !important;
}

.navbar-acg {
    background: #f5f6f8;
    border-bottom: 0;
    box-shadow: none;
    padding: 12px 0 6px;
}

.navbar-acg .container {
    gap: 10px;
}

.navbar-acg .navbar-brand {
    font-size: 20px;
    line-height: 1.2;
    color: #1d1d1f;
}

.navbar-acg .navbar-brand .brand-logo {
    display: none;
}

.navbar-acg .navbar-brand span {
    color: #1396558a !important;
    font-weight: 900;
}

.navbar-acg .nav-link {
    color: #178f68;
    font-size: 14px;
    font-weight: 700;
    background: #e9f7ef;
    border-radius: 999px;
    padding: 7px 12px;
}

.navbar-acg .nav-link.active {
    color: #178f68;
}

.navbar-acg .navbar-toggler,
.navbar-acg .search-input,
.navbar-acg .user-login-box,
.navbar-acg .user-info-box {
    display: none !important;
}

.shop-home {
    max-width: 760px;
    padding-top: 18px;
    padding-bottom: 32px;
}

.notice-card {
    margin-bottom: 18px;
    border: 1px solid #eceff3;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(25, 28, 35, .05);
}

.notice-body {
    padding: 18px;
    color: #374151;
    font-size: 18px;
    line-height: 1.75;
    word-break: break-word;
}

.notice-body p {
    margin: 0 0 8px;
}

.notice-body p:last-child {
    margin-bottom: 0;
}

.shop-section,
.shop-section-body {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.category-wrap {
    margin-bottom: 24px;
}

.chip-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 0;
}

.chip {
    min-height: 70px;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ece7df;
    color: #5b3516;
    box-shadow: 0 8px 20px rgba(28, 30, 35, .08);
    font-size: 15px;
    font-weight: 900;
    white-space: normal;
    text-align: center;
}

.chip.is-primary {
    background: #169b70;
    color: #fff;
    border-color: #169b70;
    box-shadow: 0 10px 22px rgba(22, 155, 112, .24);
}

.chip .chip-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    margin-right: 0;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, .05);
}

.chip.is-primary .chip-icon {
    border-color: rgba(255, 255, 255, .4);
}

.shop-product-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.product-link {
    display: block;
    color: inherit;
}

.product-link:hover {
    color: inherit;
}

.product-card {
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 28, 35, .06);
    padding: 16px;
    overflow: hidden;
}

.product-main {
    display: flex;
    gap: 14px;
    min-width: 0;
    min-height: 88px;
}

.product-thumb {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 8px;
}

.product-info {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 88px;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
}

.goods-title {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    color: #27272a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    -webkit-line-clamp: 2;
    padding-bottom: 0;
}

.category-badge {
    flex: 0 0 auto;
    max-width: 112px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff6e7;
    border: 1px solid #f2d49c;
    color: #9a5b12;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.price {
    margin-top: 4px;
    color: #ef3b37;
    font-size: 23px;
    line-height: 1.1;
}

.price .unit {
    color: #ef3b37;
    font-size: 19px;
    font-weight: 900;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8df;
    border: 1px solid #efd79d;
    color: #8a6118;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.buy-button {
    margin-top: 18px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: #169b70;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}

.product-card.soldout {
    filter: grayscale(.85);
}

.product-card.soldout .buy-button {
    background: #9ca3af;
}

.soldout-ribbon,
.tags,
.stat-row,
.stat-bottom {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 10px 28px rgba(25, 28, 35, .09);
    }

    .product-card:hover .product-thumb {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 13px;
    }

    .shop-home {
        padding: 14px 14px 28px;
    }

    .notice-card {
        margin-bottom: 18px;
    }

    .notice-body {
        padding: 16px;
        font-size: 16px;
    }

    .chip-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .chip {
        min-height: 56px;
        padding: 9px 8px;
        border-radius: 14px;
        font-size: 13px;
    }

    .chip .chip-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .shop-product-list {
        gap: 24px;
    }

    .product-card {
        padding: 14px;
        border-radius: 8px;
    }

    .product-main {
        gap: 12px;
    }

    .product-thumb {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }

    .goods-title {
        font-size: 17px;
    }

    .category-badge {
        max-width: 90px;
        font-size: 11px;
        padding: 5px 8px;
    }

    .price {
        font-size: 22px;
    }

    .buy-button {
        height: 48px;
        font-size: 17px;
    }
}

/* 容器（外层白底圆角、淡粉描边与光晕） */
.input-group.qty-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 8px;
    border-radius: 0.375rem;
    width: 140px; /* 可按需要调整 */
    background: linear-gradient(180deg, #ffffff, #fff4f8);
    border: 2px solid #ffd6e5;
    box-shadow: 0 14px 24px rgba(255, 105, 135, .18),
    0 0 0 6px rgba(255, 214, 229, .35) inset;
}

/* 左右按钮（粉色圆角方块） */
.input-group.qty-group > button {
    width: 32px;
    height: 24px;
    border: 0;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #ff74a9, #ff5c8e);
    box-shadow: 0 8px 18px rgba(255, 92, 142, .35);
    transition: transform .12s ease, filter .12s ease;
}

.input-group.qty-group > button:hover {
    filter: brightness(1.06);
}

.input-group.qty-group > button:active {
    transform: scale(.98);
}

/* 中间数字输入（透明背景、无边框、大号数字） */
.input-group.qty-group > input[type="number"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    text-align: center;
    color: #ff5c8e;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

/* 去掉数字输入的上下小箭头 */
.input-group.qty-group > input[type="number"]::-webkit-outer-spin-button,
.input-group.qty-group > input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group.qty-group > input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 结账分区（高阶分隔卡片） */
.cash-pay {
    position: relative;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff70;
    border: none;
    box-shadow: 0 10px 28px rgba(149, 157, 165, 0.25),
    0 0 0 6px rgba(122, 140, 255, .06) inset;
}

.cash-pay .form-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin: 4px 0 8px 4px;
    font-weight: 800;
    font-size: 1rem;
    color: #9d93f7;
}

.cash-pay .form-label i {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    box-shadow: 0 6px 14px rgba(122, 140, 255, .35);
}

.cash-pay .pay-list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed #eceff3;
}

/* 强化在结账区域内的支付按钮视觉分组 */
.cash-pay .pay-list .pay {
    background: rgba(255, 248, 248, 0.3);
    border: none;
    cursor: pointer;
}

.cash-pay .pay-list .pay.is-primary,
.cash-pay .pay-list .pay.active,
.cash-pay .pay-list .pay.selected {
    box-shadow: 0 10px 22px rgba(122, 140, 255, .28);
}

@media (max-width: 575.98px) {
    .cash-pay {
        padding: 10px;
        border-radius: 14px;
    }

    .cash-pay .form-label {
        margin-bottom: 6px;
    }
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: .4rem .75rem;
    border-radius: 12px;
    background: rgba(255, 248, 248, 0.15);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    text-decoration: none;
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .12s ease;
}

.pay-list .pay img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.pay-list .pay span {
    font-size: 14px;
    font-weight: 700;
    color: #a3a3a3;
}

/* 选中态，可通过添加 .active / .selected / .is-primary 类控制 */
.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected {
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(122, 140, 255, .25);
}

.pay-list .pay.is-primary span,
.pay-list .pay.active span,
.pay-list .pay.selected span {
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .pay-list .pay:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
        filter: brightness(1.02);
    }
}

/* 商品详情块微调（置于左侧商品图下） */
.item-detail {
    margin-top: 12px;
}

.item-detail .panel-header .icon {
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    color: #fff;
}

.item-detail .panel-body img {
    max-width: 100%;
}

.item-detail .panel-body p {
    margin-bottom: 0;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .item-detail {
        margin-top: 10px;
    }
}

/* 移动端：标题不强制占两行 */
@media (max-width: 575.98px) {
    .goods-title {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        min-height: 1.35em;
    }

    .chip-list {
        flex-wrap: wrap;
    }
}


.wholesale-table {
    width: 140px;
    background: transparent;
}

.wholesale-table > * > * > * {
    background: transparent !important;
}

.wholesale-table thead th {
    color: #ff70a6 !important;
    font-size: 14px;
}

.wholesale-table tbody td {
    color: #ff70a6 !important;
    font-size: 14px;
}

/* 用户头像样式 */
#user-avatar {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

#user-avatar:hover {
    border-color: #139655;
}

/* 用户信息按钮样式 */
#userDropdown {
    padding: 4px 8px;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

#userDropdown:hover {
    background-color: rgba(19, 150, 85, 0.1);
    border-radius: 8px;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 4px 0;
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.7);
}

.dropdown-item {
    padding: 6px 16px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.3;
}

.dropdown-item:hover {
    background-color: rgba(19, 150, 85, 0.1);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* 用户名和余额样式 */
#username {
    color: #212529;
    font-weight: 600;
}

#user-balance {
    color: #6c757d;
    font-weight: 500;
}

.optional-card {
    display: flex;
    align-items: center;
    position: relative;
    padding: .2rem .6rem;
    border-radius: 16px;
    background: rgba(255, 248, 248, 0.63);
    color: #929292;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    transform-origin: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-size: 14px;
}

.optional-card.is-primary {
    color: #fff;
    background: linear-gradient(90deg, #ffb1b1, #ab57ff);
    border-color: transparent;
}

.bootstrap-table.bootstrap5 .table-switch-state button.active, .table-switch-state button:focus {
    background-color: #ffa3ad82 !important;
}

.bootstrap-table.bootstrap5 .table-switch-state button:hover {
    background-color: rgba(255, 163, 173, 0.29) !important;
}

.table {
    --bs-table-bg: rgba(255, 255, 255, 0) !important;
    --bs-table-border-color: transparent;
}

.btn-group-sm > .btn, .btn-sm {
    font-size: 1rem;
}

/* 订单查询页面样式 */
.order-query-form {

}

.order-results, .no-results, .loading-state {
    margin-top: 12px;
}

.order-query-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.order-query-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-query-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 4px rgba(122, 140, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-query-form .btn-primary {
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.order-query-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.order-query-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 140, 255, 0.35);
}

.order-query-form .btn-primary:hover::before {
    left: 100%;
}

.order-query-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(122, 140, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .order-query-form .btn-primary {
        width: 120px;
    }
}

/* 订单项样式 - 重新设计 */
.order-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.order-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.order-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
}

.status-badge.status-paid {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.status-badge.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.status-badge.status-shipped {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.status-badge.status-waiting-shipment {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.shipment-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 发货状态徽章样式 */
.shipment-status {

}

.shipment-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shipment-badge.shipment-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.shipment-badge.shipment-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.shipment-badge.shipment-shipped {
    background: rgba(139, 92, 246, 0.2);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.shipment-badge.shipment-waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.order-basic {
    flex: 1;
}

.order-no {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.order-time,
.payment-time,
.payment-dst {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.order-time:last-child,
.payment-time:last-child,
.payment-dst:last-child {
    margin-bottom: 0;
}

.order-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.amount-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--acg-danger);
    line-height: 1;
}

/* 商品信息 */
.goods-section {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.goods-thumb {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.goods-image {
    width: 72px;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.goods-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.goods-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.goods-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.goods-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--acg-danger);
}

.payment-dst {
    display: flex;
    align-items: center;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    /*background: #bdbdbd3b;*/

    /*box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;*/
    /*padding: 3px 6px;*/
    cursor: pointer;
    box-shadow: inset rgb(255 197 249 / 24%) -20px 0px 2px 2px;
    border-radius: 4px;

}

.payment-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.payment-name {
    font-size: 1rem;
    color: #21c44d;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .order-meta {
        margin-left: 0;
    }

    .order-content {
        flex-direction: column;
        gap: 16px;
    }

    .goods-info {
        flex-direction: column;
        gap: 12px;
    }

    .goods-thumb {
        align-self: center;
    }

    .payment-info {
        text-align: center;
        min-width: auto;
    }
}

/* 加载状态样式 */
.loading-state .icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 无结果状态样式 */
.no-results .fa-search {
    opacity: 0.6;
}

/* 验证码输入组样式调整 */
.order-query-form .captcha-input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: none;
}

.order-query-form .captcha-img {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 0;
    height: 100%;
    cursor: pointer;
    margin-left: 2px;
    border-radius: 0 8px 8px 0;
}

/* 虚拟卡密样式 - 重新设计 */
.card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    margin: 0;
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.password-input-group {
    margin-bottom: 16px;
}

.password-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-password-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    padding: 10px 12px;
    height: 42px;
    transition: all 0.2s ease;
}

.card-password-input:focus {
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 3px rgba(122, 140, 255, 0.1);
}

.view-card-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    color: white;
    border: 2px solid var(--acg-primary);
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    height: 42px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view-card-btn:hover {
    background: linear-gradient(135deg, var(--acg-secondary), var(--acg-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.3);
}

.card-content,
.card-content-no-password {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--acg-primary);
    box-shadow: 0 2px 8px rgba(122, 140, 255, 0.1);
}

.card-info {
    flex: 1;
}

.card-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 14px;
}

.card-value {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-all;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
}

.card-value:hover {
    background: #e9ecef;
    border-color: var(--acg-primary);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.copy-card-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.2s ease;
}

.copy-card-btn:hover {
    background: var(--acg-primary);
    color: white;
    border-color: var(--acg-primary);
}

.card-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.card-loading .icon-spin {
    color: var(--acg-primary);
    font-size: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .view-card-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

.card-display {
    white-space: pre-line;
}

/* 新的卡密显示样式 */
.card-display-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.card-text {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2937;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    word-break: break-all;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-text:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.copy-all-btn {
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.25);
}

.copy-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(122, 140, 255, 0.35);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .order-item {
        padding: 20px;
    }

    .goods-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .goods-meta {
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        gap: 16px;
    }

    .order-right {
        align-self: flex-start;
    }

    .card-display-content {
        padding: 16px;
    }

    .card-text {
        font-size: 13px;
        padding: 12px;
    }
}

/* 加载更多状态样式 */
.load-more-loading,
.load-more-end {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 16px;
}

.load-more-loading .icon-spin {
    color: var(--acg-primary);
    font-size: 1.2rem;
}

.load-more-loading span {
    color: #374151;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.load-more-end {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.load-more-end span {
    color: #6b7280;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.load-more-end .fa-check-circle {
    color: #10b981;
}

/* 滚动条样式优化 */
.order-list::-webkit-scrollbar {
    width: 6px;
}

.order-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.item-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acg-cover {
    position: relative;
    overflow: hidden;
}

.flex-fill {
    flex: 1 1 auto;
}

.br-12 {
    border-radius: 12px;
}

footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    color: #858585;
}

/* 首页最终覆盖，防止旧移动端规则影响新陈列 */
.shop-home .chip-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-home .goods-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 0;
}

.shop-home .product-thumb {
    height: 88px;
}

@media (max-width: 575.98px) {
    .shop-home .chip-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-home .goods-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 0;
    }
}

/* 顶部导航最终布局：保留原接口入口，只美化前台展示 */
.navbar-acg {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
    border-bottom: 1px solid #e0f0e9;
    box-shadow: 0 10px 28px rgba(18, 109, 79, .08);
}

.navbar-acg .container {
    max-width: 760px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-acg .navbar-brand {
    flex: 0 0 auto;
    padding: 0;
    margin-right: 16px;
}

.navbar-acg .navbar-brand span {
    font-size: 20px;
    letter-spacing: 0;
}

.navbar-acg .navbar-brand .brand-shop-action {
    font-size: 18px;
}

.navbar-acg .navbar-brand .brand-shop-action .brand-shop-text {
    font-size: 14px;
    letter-spacing: 0;
}

.navbar-acg .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-acg .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 14px 0 0 !important;
}

.navbar-acg .navbar-nav .nav-item:first-child {
    display: none;
}

.navbar-acg .nav-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #126d4f;
    background: #e7f8f0;
    border: 1px solid #bfe9d5;
    box-shadow: 0 8px 18px rgba(22, 155, 112, .12);
    font-size: 14px;
    font-weight: 900;
    padding: 8px 13px;
}

.navbar-acg .nav-link.active {
    color: #fff;
    background: #169b70;
    border-color: #169b70;
}

.navbar-acg .search-input {
    display: flex !important;
    width: 220px;
    max-width: 220px;
    flex: 0 1 220px;
    margin-left: auto;
}

.navbar-acg .search-input .input-group {
    height: 38px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe7e2;
    box-shadow: 0 8px 18px rgba(24, 38, 31, .06);
    overflow: hidden;
}

.navbar-acg .search-input .input-group-text,
.navbar-acg .search-input .form-control {
    border: 0 !important;
    background: transparent;
    height: 38px;
}

.navbar-acg .search-input .input-group-text {
    padding: 0 8px 0 12px;
    color: #169b70;
}

.navbar-acg .search-input .form-control {
    padding: 0 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    box-shadow: none !important;
}

.navbar-acg .user-login-box {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: 10px !important;
    position: static !important;
}

.navbar-acg .user-info-box {
    display: block !important;
    flex: 0 0 auto;
    margin-left: 10px !important;
    position: static !important;
}

.navbar-acg .user-login-box .btn,
.navbar-acg .user-info-box .btn {
    min-height: 38px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 13px;
}

.navbar-acg .user-login-box .btn-outline-secondary {
    color: #169b70;
    border-color: #bfe9d5;
    background: #fff;
}

.navbar-acg .user-login-box .btn-primary {
    color: #fff;
    border-color: #169b70;
    background: #169b70;
    box-shadow: 0 8px 18px rgba(22, 155, 112, .18);
}

.navbar-acg + #pjax-container {
    background: linear-gradient(180deg, rgba(22, 155, 112, .08) 0%, rgba(245, 246, 248, 0) 120px);
}

.shop-home {
    padding-top: 22px;
}

.empty-products {
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eceff3;
    box-shadow: 0 8px 24px rgba(25, 28, 35, .05);
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

@media (min-width: 992px) {
    .navbar-acg .container {
        max-width: 1180px;
    }

    .navbar-acg .navbar-brand {
        margin-right: 24px;
    }

    .navbar-acg .navbar-collapse {
        margin-left: 12px;
    }
}

@media (max-width: 760px) {
    .navbar-acg .container {
        padding-left: 14px;
        padding-right: 14px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .navbar-acg .navbar-brand {
        margin-right: auto;
    }

    .navbar-acg .navbar-collapse {
        order: 3;
        flex: 1 0 100%;
        gap: 10px;
    }

    .navbar-acg .navbar-nav {
        margin-right: 0 !important;
    }

    .navbar-acg .search-input {
        width: auto;
        max-width: none;
        flex: 1 1 auto;
        margin-left: 0;
    }

    .navbar-acg .user-login-box {
        margin-left: 0 !important;
        gap: 6px;
    }

    .navbar-acg .user-login-box .btn,
    .navbar-acg .user-info-box .btn,
    .navbar-acg .nav-link {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .navbar-acg .navbar-brand span {
        font-size: 18px;
    }

    .navbar-acg .navbar-collapse {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .navbar-acg .navbar-nav {
        flex: 0 0 auto;
    }

    .navbar-acg .search-input {
        min-width: 0;
    }

    .navbar-acg .user-login-box .btn {
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* 本轮微调：顶部更舒展、图标兜底、空分类留白 */
.navbar-acg {
    padding-top: 15px;
    padding-bottom: 10px;
}

.navbar-acg .container {
    max-width: 820px;
}

.navbar-acg .navbar-brand span {
    font-size: 22px;
}

.navbar-acg .nav-link {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 15px;
}

.navbar-acg .search-input {
    width: 190px;
    max-width: 190px;
    flex-basis: 190px;
}

.navbar-acg .search-input .input-group,
.navbar-acg .search-input .input-group-text,
.navbar-acg .search-input .form-control {
    height: 44px;
}

.navbar-acg .search-input .form-control {
    font-size: 14px;
}

.navbar-acg .user-login-box .btn,
.navbar-acg .user-info-box .btn {
    min-height: 44px;
}

.navbar-acg .user-login-box a[href="/user/authentication/login"] {
    min-width: 86px;
    padding-left: 20px;
    padding-right: 20px;
}

.chip .chip-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f7f5;
    color: #169b70;
    font-size: 0;
    font-weight: 900;
    line-height: 40px;
    text-align: center;
}

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

.chip-label {
    display: block;
    min-width: 0;
    color: inherit;
    line-height: 1.35;
    word-break: break-word;
}

.chip .chip-icon.is-fallback::after,
.chip .chip-icon:empty::after {
    content: attr(data-label);
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap;
}

.shop-product-list.is-empty {
    min-height: 360px;
    padding-bottom: 120px;
}

@media (min-width: 992px) {
    .shop-home {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: start;
        column-gap: 22px;
        row-gap: 18px;
        max-width: 1180px;
    }

    .notice-card {
        grid-column: 2;
        margin-bottom: 0;
    }

    .shop-section {
        grid-column: 1 / -1;
    }

    .shop-section-body {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: start;
        gap: 22px;
    }

    .category-wrap {
        position: sticky;
        top: 88px;
        margin-bottom: 0;
        padding: 8px;
        border-radius: 12px;
        border: 1px solid rgba(22, 155, 112, .18);
        background: linear-gradient(180deg, #f7fff9 0%, #fffdf5 100%);
        box-shadow: 0 10px 24px rgba(25, 28, 35, .07);
    }

    .chip-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .chip {
        min-height: 38px;
        justify-content: flex-start;
        gap: 7px;
        padding: 6px 8px;
        border-radius: 9px;
        background: #fff;
        border-color: rgba(22, 155, 112, .18);
        color: #111827 !important;
        font-size: 13px;
        text-align: left;
        box-shadow: 0 4px 12px rgba(25, 28, 35, .055);
    }

    .chip.is-primary {
        background: #169b70;
        border-color: #169b70;
        color: #fff !important;
    }

    .chip-label {
        color: #1f2937;
    }

    .chip.is-primary .chip-label {
        color: #fff;
    }

    .chip .chip-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        border-radius: 7px;
        line-height: 24px;
        background: #e9f7ef;
        border: 1px solid rgba(22, 155, 112, .14);
    }

    .chip.is-primary .chip-icon {
        background: rgba(255, 255, 255, .18);
        border-color: rgba(255, 255, 255, .3);
    }

    .chip .chip-icon.is-fallback::after,
    .chip .chip-icon:empty::after {
        content: "";
    }

    .chip .chip-icon.is-fallback,
    .chip .chip-icon:empty {
        display: none;
    }

    .shop-product-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .product-card {
        height: 100%;
        padding: 14px;
    }

    .product-info {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .product-title-row {
        position: relative;
        min-height: 48px;
        padding-right: 88px;
    }

    .product-main {
        gap: 12px;
        min-height: 92px;
    }

    .product-thumb {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .goods-title {
        font-size: 17px;
        line-height: 1.28;
    }

    .category-badge,
    .stock-pill {
        font-size: 11px;
    }

    .category-badge {
        position: absolute;
        top: 0;
        right: 0;
        max-width: 80px;
        padding: 4px 8px;
    }

    .product-info-price {
        font-size: 22px;
    }

    .product-info-price .unit {
        font-size: 16px;
    }

    .buy-button {
        height: 42px;
        margin-top: 14px;
        border-radius: 10px;
        font-size: 16px;
    }

    .product-meta-row {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        margin-top: auto;
        padding-top: 10px;
    }

    .stock-pill {
        flex: 0 0 auto;
        margin: 0;
        margin-left: auto;
        padding: 3px 7px;
        line-height: 1.15;
    }
}

@media (max-width: 575.98px) {
    .navbar-acg .container {
        max-width: none;
    }

    .navbar-acg .navbar-brand span {
        font-size: 19px;
    }

    .navbar-acg .nav-link {
        min-height: 40px;
        padding: 8px 15px;
        font-size: 13px;
    }

    .navbar-acg .search-input,
    .navbar-acg .search-input .input-group {
        min-width: 0;
    }

    .navbar-acg .search-input .input-group,
    .navbar-acg .search-input .input-group-text,
    .navbar-acg .search-input .form-control,
    .navbar-acg .user-login-box .btn,
    .navbar-acg .user-info-box .btn {
        min-height: 40px;
        height: 40px;
    }

    .navbar-acg .user-login-box a[href="/user/authentication/login"] {
        min-width: 74px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .chip .chip-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        line-height: 34px;
    }

    .shop-product-list.is-empty {
        min-height: 52vh;
        padding-bottom: 160px;
    }
}

/* 顶部中间区：订单查询和搜索各占一半 */
.navbar-acg .navbar-collapse {
    display: grid !important;
    grid-template-columns: minmax(112px, 1fr) minmax(150px, 1fr);
    gap: 10px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

.navbar-acg .navbar-nav {
    width: 100%;
    margin: 0 !important;
}

.navbar-acg .navbar-nav .nav-item:not(:first-child) {
    width: 100%;
}

.navbar-acg .navbar-nav .nav-link {
    width: 100%;
}

.navbar-acg .search-input {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    margin-left: 0;
}

.product-meta-row .price {
    margin-top: 0;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    flex: 0 1 auto;
    min-width: 0;
}

.product-meta-row .stock-pill {
    margin-top: 0;
    margin-left: auto;
    white-space: nowrap;
    transform: none;
    flex: 0 0 auto;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
}

.product-card .product-meta-row {
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: nowrap;
    align-items: center;
}

.product-thumb {
    position: relative;
    overflow: hidden;
}

.product-thumb-price {
    position: absolute;
    right: 6px;
    bottom: 6px;
    margin: 0;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 14px rgba(25, 28, 35, .14);
    font-size: 19px;
    line-height: 1;
}

.product-thumb-price .unit {
    font-size: 15px;
}

.product-side-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 18px;
    max-width: 112px;
}

.product-side-meta .stock-pill {
    max-width: 92px;
    padding: 5px 8px;
    margin-top: 0;
    margin-left: 0;
    white-space: nowrap;
}

.product-info-price {
    margin-top: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}

.product-bottom-row {
    display: none;
}

.product-bottom-price {
    justify-self: end;
    margin: 0;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 14px rgba(25, 28, 35, .14);
    font-size: 19px;
    line-height: 1;
}

.product-bottom-price .unit {
    font-size: 15px;
}

.product-bottom-stock {
    justify-self: end;
    max-width: 92px;
    padding: 5px 8px;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .navbar-acg .navbar-collapse {
        max-width: none;
        width: 100%;
        grid-template-columns: minmax(112px, 1fr) minmax(140px, 1fr);
        margin: 0;
    }
}

@media (max-width: 420px) {
    .navbar-acg .navbar-collapse {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .category-badge {
        max-width: 86px;
    }
}

/* 商品详情页表单视觉优化 */
main.container.py-4 > .panel:first-of-type .panel-body {
    padding-top: 16px;
}

main.container.py-4 > .panel:first-of-type h4 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

main.container.py-4 > .panel:first-of-type .badge-soft {
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 900;
}

.vstack label {
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.vstack .form-control {
    min-height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe7ee;
    box-shadow: 0 8px 20px rgba(25, 28, 35, .05);
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
}

.vstack .form-control::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.vstack .form-control:focus {
    border-color: #169b70;
    box-shadow: 0 0 0 4px rgba(22, 155, 112, .12);
}

.input-group.qty-group {
    width: 168px;
    min-height: 48px;
    gap: 12px;
    padding: 7px 9px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe7ee;
    box-shadow: 0 8px 20px rgba(25, 28, 35, .06);
}

.input-group.qty-group > button {
    width: 36px;
    height: 32px;
    border-radius: 10px;
    background: #169b70;
    box-shadow: 0 8px 18px rgba(22, 155, 112, .18);
    font-size: 17px;
    font-weight: 900;
}

.input-group.qty-group > input[type="number"] {
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.cash-pay {
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6edf2;
    box-shadow: 0 10px 24px rgba(25, 28, 35, .06);
    padding: 14px !important;
}

.cash-pay .form-label {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    gap: 8px;
    margin: 0 0 12px;
}

.cash-pay .form-label i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 15px;
    background: #169b70;
    box-shadow: 0 8px 18px rgba(22, 155, 112, .18);
}

.cash-pay .pay-list {
    gap: 10px;
    padding-top: 12px;
}

.pay-list .pay {
    min-height: 44px;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6edf2;
    box-shadow: 0 8px 20px rgba(25, 28, 35, .06);
}

.pay-list .pay img {
    width: 24px;
    height: 24px;
}

.pay-list .pay span {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected {
    background: #169b70;
    box-shadow: 0 10px 22px rgba(22, 155, 112, .2);
}

.item-detail .panel-header {
    align-items: center;
    padding: 17px 18px;
}

.item-detail .panel-title {
    color: #111827;
    font-size: 19px;
    font-weight: 900;
}

@media (max-width: 575.98px) {
    main.container.py-4 > .panel:first-of-type h4 {
        font-size: 22px;
    }

    .vstack label {
        font-size: 15px;
    }

    .vstack .form-control {
        min-height: 46px;
    }

    .cash-pay .form-label,
    .item-detail .panel-title {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
    .shop-home {
        max-width: 1480px;
    }

    .shop-home .shop-section-body {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 16px;
    }

    .shop-home .category-wrap {
        position: sticky;
        top: 88px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .shop-home .category-heading {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 14px 0;
        padding: 9px 18px;
        border-radius: 999px;
        border: 1px solid rgba(22, 155, 112, .22);
        background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
        box-shadow: 0 12px 24px rgba(25, 28, 35, .08);
        color: #169b70;
        font-size: 21px;
        font-weight: 900;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    .shop-home .category-wrap .chip-list {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 12px;
    }

    .shop-home .category-wrap .chip {
        display: flex;
        width: 100%;
        min-height: 58px;
        padding: 14px 16px;
        border-radius: 14px;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        white-space: normal;
        background: #fff;
        border: 1px solid rgba(22, 155, 112, .16);
        box-shadow: 0 10px 24px rgba(25, 28, 35, .08);
    }

    .shop-home .category-wrap .chip.is-primary {
        background: #169b70;
        border-color: #169b70;
        color: #fff !important;
        box-shadow: 0 12px 24px rgba(22, 155, 112, .22);
    }

    .shop-home .category-wrap .chip-label {
        flex: 1 1 auto;
        color: #111827;
        font-size: 15px;
        font-weight: 900;
    }

    .shop-home .category-wrap .chip.is-primary .chip-label {
        color: #fff !important;
    }

    .shop-home .category-wrap .chip .chip-icon {
        display: inline-flex !important;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 8px;
        overflow: hidden;
        background: #e9f7ef;
        border: 1px solid rgba(22, 155, 112, .14);
    }

    .shop-home .category-wrap .chip.is-primary .chip-icon {
        background: rgba(255, 255, 255, .18);
        border-color: rgba(255, 255, 255, .3);
    }

    .shop-home .shop-product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .shop-home .product-card {
        padding: 20px 22px;
        border-radius: 12px;
    }

    .shop-home .product-main {
        gap: 16px;
        min-height: 116px;
    }

    .shop-home .product-thumb {
        width: 104px;
        height: 104px;
        flex: 0 0 104px;
        border-radius: 10px;
    }

    .shop-home .product-title-row {
        min-height: 74px;
        padding-right: 0;
        align-items: flex-start;
    }

    .shop-home .goods-title {
        font-size: 18px;
        line-height: 1.38;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        min-height: calc(1.38em * 3);
        padding-right: 72px;
    }

    .shop-home .category-badge {
        top: 2px;
        right: 0;
        max-width: 64px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .shop-home .product-card .product-meta-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: auto;
        padding-top: 10px;
    }

    .shop-home .product-card .product-info-price {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 21px;
    }

    .shop-home .product-card .stock-pill {
        flex: 0 0 auto;
        margin: 0 !important;
        margin-left: auto !important;
        padding: 1px 6px;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        border-radius: 999px;
        transform: scale(.92);
        transform-origin: right center;
    }
}

/* 20260603: 顶部移动端单行、分类标题视觉与桌面分类对齐 */
.shop-home .category-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 17px;
    border-radius: 14px;
    border: 1px solid rgba(22, 155, 112, .2);
    background: linear-gradient(135deg, #ffffff 0%, #e9f8ef 58%, #fff8e7 100%);
    box-shadow: 0 10px 22px rgba(22, 155, 112, .14);
    color: #0f7d5a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 2px;
}

@media (min-width: 992px) {
    .shop-home .category-wrap {
        padding-top: 0;
    }

    .shop-home .category-heading {
        position: absolute;
        top: -56px;
        left: 0;
        margin: 0;
    }

    .shop-home .category-wrap .chip-list {
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar-acg {
        padding: 10px 0 8px;
    }

    .navbar-acg .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
        min-width: 0;
    }

    .navbar-acg .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .navbar-acg .navbar-brand > span:not(.brand-shop-action) {
        display: inline-block;
        max-width: clamp(86px, 30vw, 132px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px !important;
        line-height: 1;
    }

    .brand-shop-action {
        flex: 0 0 auto;
        min-height: 28px;
        margin-left: 6px;
        padding: 4px 7px;
        gap: 4px;
        border-radius: 9px;
        font-size: 14px;
    }

    .brand-shop-action .brand-shop-text {
        font-size: 12px;
    }

    .navbar-acg .navbar-collapse,
    .navbar-acg .navbar-toggler {
        display: none !important;
    }

    .navbar-acg .user-login-box {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
        margin-left: 0 !important;
        position: static !important;
        white-space: nowrap;
    }

    .navbar-acg .user-login-box .btn {
        min-height: 30px;
        height: 30px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
    }

    .navbar-acg .user-login-box .nav-icon {
        margin-right: 3px;
        font-size: 12px;
    }

    .navbar-acg .user-login-box a[href="/user/authentication/login"] {
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .shop-home .category-wrap {
        margin-bottom: 18px;
    }

    .shop-home .category-heading {
        margin: 0 0 12px;
        padding: 8px 16px;
        border-radius: 13px;
        font-size: 19px;
        box-shadow: 0 9px 18px rgba(22, 155, 112, .16);
    }
}

@media (max-width: 380px) {
    .navbar-acg .navbar-brand > span:not(.brand-shop-action) {
        max-width: 92px;
        font-size: 16px !important;
    }

    .navbar-acg .user-login-box .btn {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 11px;
    }
}

/* 20260603: 商品标题行数与安卓换行一致性 */
.shop-home .product-title-row {
    display: block;
    min-height: 0;
    padding-right: 0 !important;
}

.shop-home .goods-title {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
}

.shop-home .category-badge {
    position: static;
    display: inline-flex;
    max-width: 100%;
    margin-top: 7px;
    vertical-align: top;
}

@media (min-width: 992px) {
    .shop-home .product-title-row {
        min-height: 0;
    }

    .shop-home .goods-title {
        -webkit-line-clamp: 4;
        line-clamp: 4;
        min-height: 0;
        padding-right: 0;
    }

    .shop-home .category-badge {
        max-width: 100%;
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .shop-home .product-title-row {
        min-height: 0;
    }

    .shop-home .goods-title {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        min-height: 0;
        padding-right: 0;
        line-height: 1.34;
    }

    .shop-home .category-badge {
        max-width: 100%;
        margin-top: 6px;
    }
}

/* 20260603: 商品元信息一排显示为 分类 / 库存 / 价格 */
.shop-home .product-card .product-meta-row {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.shop-home .product-card .product-meta-row .category-badge {
    order: 1;
    flex: 0 1 auto;
    max-width: 42%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-home .product-card .product-meta-row .stock-pill {
    order: 2;
    flex: 0 0 auto;
    margin: 0 !important;
    transform: none;
    white-space: nowrap;
}

.shop-home .product-card .product-meta-row .product-info-price {
    order: 3;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .shop-home .product-card .product-meta-row {
        gap: 6px;
        padding-top: 8px;
    }

    .shop-home .product-card .product-meta-row .category-badge {
        max-width: 38%;
        padding: 4px 7px;
        font-size: 10px;
    }

    .shop-home .product-card .product-meta-row .stock-pill {
        padding: 4px 7px;
        font-size: 10px;
    }

    .shop-home .product-card .product-meta-row .product-info-price {
        font-size: 20px;
    }

    .shop-home .product-card .product-meta-row .product-info-price .unit {
        font-size: 15px;
    }
}

/* 20260603: 放大小分类和库存标签，其他布局不变 */
.shop-home .product-card .product-meta-row .category-badge,
.shop-home .product-card .product-meta-row .stock-pill {
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.15;
}

@media (max-width: 575.98px) {
    .shop-home .product-card .product-meta-row .category-badge,
    .shop-home .product-card .product-meta-row .stock-pill {
        padding: 5px 8px;
        font-size: 11px;
    }
}
