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

:root {
    --acg-bg-overlay: rgba(10, 12, 28, 0.45);
    --acg-primary: #7c75d8;
    --acg-secondary: #9b94e8;
    --acg-danger: #ff6b88;
    --acg-text-strong: #1f2430;
    --acg-text-muted: #8b90a0;
    --acg-card-bg: #ffffff;
    --acg-border: #eceef5;
    --shop-bg: #f6f7fb;
    --shop-sidebar-active: #eceafb;
    --shop-ok: #2aa7a1;
    --shop-ok-bg: #e8f7f6;
    --shop-low: #d97706;
    --shop-low-bg: #fff4e5;
    --shop-sold: #9ca3af;
    --shop-sold-bg: #f1f2f4;
}

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 .navbar-nav {
    gap: 1.75rem;
}

.navbar-acg .navbar-nav .nav-item {
    margin: 0;
}

.navbar-acg .nav-link.active {
    color: var(--acg-primary);
}

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

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

/* 容器（外层白底圆角、淡粉描边与光晕） */
.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;
}

/* ========== 首页商城布局（参考软紫风格） ========== */
body:has(.shop-home) {
    background: var(--shop-bg) !important;
    background-image: none !important;
}

.shop-home.container {
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .shop-home.container {
        width: 100%;
        max-width: 100%;
    }
}

.btn-shop-login {
    background: var(--acg-primary);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: .35rem 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(124, 117, 216, .28);
}

.btn-shop-login:hover {
    background: #6b64c9;
    color: #fff !important;
}

.shop-home .notice-panel {
    background: #fff;
    border: 1px solid var(--acg-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 18px;
}

.shop-home .notice-panel .panel-header {
    box-shadow: none;
    border-bottom: 1px solid var(--acg-border);
    margin-bottom: 0;
    padding: 14px 18px;
}

.shop-home .notice-panel .panel-header .icon {
    color: var(--acg-primary);
}

.shop-home .notice-panel .panel-body {
    padding: 14px 18px 18px;
    color: #4b5563;
    line-height: 1.7;
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.shop-sidebar {
    background: #fff;
    border: 1px solid var(--acg-border);
    border-radius: 18px;
    padding: 16px 12px;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .04);
    position: sticky;
    top: 80px;
}

.shop-sidebar-head,
.shop-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 6px;
}

.shop-bar {
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--acg-primary);
    flex-shrink: 0;
}

.shop-sidebar-title,
.shop-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--acg-text-strong);
}

.shop-section-title .cate-count {
    color: var(--acg-text-muted);
    font-weight: 600;
    margin-left: 4px;
}

.shop-cate-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #5b6170;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
    font-size: 14px;
    font-weight: 500;
}

.shop-cate-item:hover {
    background: #f3f4f8;
    color: var(--acg-text-strong);
}

.shop-cate-item.is-primary {
    background: var(--shop-sidebar-active);
    color: var(--acg-primary);
    font-weight: 700;
}

.shop-cate-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    flex-shrink: 0;
    background-color: #f0f1f6;
}

.shop-cate-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--acg-primary);
    font-size: 12px;
}

.shop-main {
    min-width: 0;
}

.shop-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.shop-search-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0a6b5;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.shop-search-icon i {
    display: block;
    line-height: 1;
}

.shop-search .item-search-input {
    height: 48px;
    width: 100%;
    padding-left: 44px;
    border-radius: 16px;
    border: 1px solid var(--acg-border);
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 36, 48, .03);
    font-size: 14px;
}

.shop-search .item-search-input:focus {
    border-color: rgba(124, 117, 216, .45);
    box-shadow: 0 0 0 4px rgba(124, 117, 216, .12);
}

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

.product-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--acg-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(31, 36, 48, .03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-row-cover {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #f3f4f8;
    flex-shrink: 0;
}

.product-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

.product-row-top {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.product-row-cate {
    font-size: 12px;
    color: var(--acg-text-muted);
    font-weight: 500;
}

.product-row-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--acg-text-strong);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.stock-tag-ok {
    background: var(--shop-ok-bg);
    color: var(--shop-ok);
}

.stock-tag-low {
    background: var(--shop-low-bg);
    color: var(--shop-low);
}

.stock-tag-soldout {
    background: var(--shop-sold-bg);
    color: var(--shop-sold);
}

.meta-dot {
    font-size: 12px;
    color: var(--acg-text-muted);
}

.meta-recommend {
    color: var(--acg-primary);
    font-weight: 600;
}

.product-row-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.product-row-price {
    font-weight: 800;
    color: var(--acg-text-strong);
    white-space: nowrap;
}

.product-row-price .price-num {
    font-size: 18px;
}

.product-row-price .price-unit {
    font-size: 12px;
    color: var(--acg-text-muted);
    font-weight: 600;
}

.product-row-buy {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--acg-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(124, 117, 216, .3);
}

.product-row-buy.disabled {
    background: #c5c8d2;
    box-shadow: none;
}

.product-row-arrow {
    color: #c0c4d0;
    font-size: 14px;
}

.product-row.is-soldout {
    opacity: .72;
    filter: grayscale(.35);
}

.product-row.is-soldout .product-row-title {
    color: #6b7280;
}

@media (hover: hover) and (pointer: fine) {
    .product-row:not(.is-soldout):hover {
        transform: translateY(-2px);
        border-color: rgba(124, 117, 216, .28);
        box-shadow: 0 12px 28px rgba(124, 117, 216, .12);
    }
}

@media (max-width: 991.98px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        padding: 14px;
    }

    .shop-cate-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .shop-cate-list::-webkit-scrollbar {
        display: none;
    }

    .shop-cate-item {
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 999px;
        padding: 8px 14px;
        background: #f3f4f8;
    }

    .shop-cate-item.is-primary {
        background: var(--shop-sidebar-active);
    }
}

@media (max-width: 575.98px) {
    .product-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }

    .product-row-cover {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .product-row-action {
        width: 100%;
        justify-content: space-between;
        padding-left: 64px;
        margin-left: 0;
    }

    .product-row-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-row-price .price-num {
        font-size: 16px;
    }
}

/* ========== 商品详情页（参考蓝白风格） ========== */
:root {
    --item-primary: #2b70e4;
    --item-primary-soft: #eef4ff;
    --item-pay-active: #5a5ae6;
    --item-pay-active-bg: #f2f2ff;
    --item-border: #e5e9f2;
    --item-price: #ff6a3d;
    --item-price-bg: #fff5f2;
}

body:has(.item-page) {
    background: #f5f7fb !important;
    background-image: none !important;
}

.item-page.container {
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .item-page.container {
        width: 100%;
        max-width: 100%;
    }
}

.item-card {
    background: #fff;
    border: 1px solid var(--item-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .04);
}

.item-gallery {
    width: 100%;
}

.item-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--item-border);
    background: #f8f9fc;
    display: block;
}

.item-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2430;
    line-height: 1.4;
    margin: 0 0 8px;
}

.item-sold-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.item-sold {
    color: #9aa1b2;
    font-size: 13px;
}

.item-share {
    margin-left: auto;
    color: #9aa1b2;
    cursor: pointer;
    transition: color .15s ease;
}

.item-share:hover {
    color: var(--item-primary);
}

.item-price-bar {
    background: var(--item-price-bg);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.item-price-bar .price {
    color: var(--item-price);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.item-price-bar .price .unit {
    color: var(--item-price);
    font-size: 18px;
    font-weight: 700;
    margin-right: 2px;
}

.item-trust {
    display: flex;
    gap: 8px;
    background: var(--item-primary-soft);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.item-trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.item-trust-item > i {
    color: var(--item-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.item-trust-item strong {
    display: block;
    font-size: 13px;
    color: #1f2430;
    font-weight: 700;
    line-height: 1.2;
}

.item-trust-item span {
    display: block;
    font-size: 11px;
    color: #8b93a7;
    line-height: 1.2;
    margin-top: 2px;
}

.item-buy-form .form-label {
    color: #5b6170;
    font-size: 13px;
    font-weight: 600;
}

.item-buy-form .item-field,
.item-buy-form .form-control:not(.qty-group > input) {
    border: 1px solid var(--item-border);
    border-radius: 10px;
    background: #fff;
    min-height: 42px;
    box-shadow: none;
}

.item-buy-form .item-field:focus,
.item-buy-form .form-control:not(.qty-group > input):focus {
    border-color: rgba(43, 112, 228, .45);
    box-shadow: 0 0 0 3px rgba(43, 112, 228, .12);
}

.item-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.item-page .qty-group {
    background: #fff;
    border: 1px solid var(--item-border);
    box-shadow: none;
    width: 140px;
}

.item-page .qty-group > button {
    background: var(--item-primary);
    box-shadow: none;
}

.item-page .qty-group > input[type="number"] {
    color: var(--item-primary);
}

.item-page .item-stock {
    background: #e8f8ef;
    color: #16a34a;
    border: none;
    border-radius: 999px;
    padding: .3rem .75rem;
    font-weight: 700;
}

.item-page .item-stock.badge-soft-danger {
    background: #feeeee;
    color: #ef4444;
}

.item-pay-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 4px;
}

.item-pay-title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2430;
    margin-bottom: 10px;
}

.item-page .pay-method-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0 !important;
    border-top: none !important;
    margin-bottom: 14px;
}

.item-page .pay-method-list .pay-method {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 148px;
    max-width: 180px;
    height: 52px;
    padding: 8px 28px 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e4e5f0;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease, background-color .15s ease;
}

.item-page .pay-method-list .pay-method .pay-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.item-page .pay-method-list .pay-method .pay-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.item-page .pay-method-list .pay-method .pay-name {
    font-size: 13px;
    font-weight: 700;
    color: #2a2f3a;
    line-height: 1.2;
}

.item-page .pay-method-list .pay-method .pay-fee {
    font-size: 11px;
    color: #9499a8;
    line-height: 1.2;
}

.item-page .pay-method-list .pay-method .pay-check {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 0 8px;
    background: #5a5ae6;
    color: #fff;
    font-size: 9px;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .15s ease, transform .15s ease;
}

.item-page .pay-method-list .pay-method.is-primary {
    background: #f2f2ff;
    border-color: #5a5ae6;
}

.item-page .pay-method-list .pay-method.is-primary .pay-check {
    opacity: 1;
    transform: scale(1);
}

.item-page .pay-method-list .pay-method.is-primary .pay-fee {
    color: #7a7fa0;
}

.btn-item-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #2b70e4;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(43, 112, 228, .28);
}

.btn-item-buy:hover,
.btn-item-buy:focus,
.btn-item-buy:active,
.btn-item-buy:focus-visible {
    background: #2b70e4 !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(43, 112, 228, .28) !important;
    filter: none;
    outline: none;
}

.item-detail-wrap {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--item-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .04);
}

.item-detail-tab {
    display: inline-flex;
    align-items: center;
    margin: 14px 0 0 16px;
    padding: 8px 18px;
    border-radius: 10px 10px 0 0;
    background: var(--item-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.item-detail-body {
    border-top: 2px solid var(--item-primary);
    padding: 20px 22px 24px;
    color: #374151;
    line-height: 1.8;
    font-size: 14px;
}

.item-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.item-detail-body a {
    color: var(--item-primary);
}

.item-page .sku.is-primary {
    background: linear-gradient(90deg, #5b8def, #2b70e4);
}

.item-page .optional-card.is-primary {
    background: linear-gradient(90deg, #5b8def, #2b70e4);
}

@media (hover: hover) and (pointer: fine) {
    .item-page .pay-method-list .pay-method:hover {
        border-color: rgba(90, 90, 230, .55);
        background: #f8f8ff;
    }
}

@media (max-width: 991.98px) {
    .item-card {
        padding: 16px;
    }

    .item-title {
        font-size: 18px;
    }

    .item-trust {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .item-page .pay-method-list {
        flex-direction: column;
    }

    .item-page .pay-method-list .pay-method {
        max-width: none;
        width: 100%;
    }

    .item-price-bar .price {
        font-size: 24px;
    }

    .btn-item-buy {
        width: 100%;
    }

    .item-detail-body {
        padding: 16px;
    }
}

/* ========== 博客列表 / 文章详情 ========== */
body:has(.blog-home),
body:has(.blog-detail) {
    background: var(--shop-bg) !important;
    background-image: none !important;
}

.blog-home.container,
.blog-detail.container {
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .blog-home.container,
    .blog-detail.container {
        width: 100%;
        max-width: 100%;
    }
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-empty {
    background: #fff;
    border: 1px dashed var(--acg-border);
    border-radius: 16px;
    padding: 48px 20px;
    text-align: center;
    color: #9aa3b2;
}

.blog-post-card {
    display: flex;
    gap: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 18px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.blog-post-card:hover {
    border-color: #d9def0;
    box-shadow: 0 12px 28px rgba(31, 36, 48, .08);
    transform: translateY(-1px);
}

.blog-post-cover {
    flex: 0 0 168px;
    width: 168px;
    height: 126px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f5fb;
    position: relative;
}

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

.blog-post-cover-fallback {
    width: 100%;
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.blog-post-cover-fallback strong {
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-cover-fallback span {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
}

.blog-post-cover.tone-1 {
    background: linear-gradient(145deg, #5b8def 0%, #7c75d8 100%);
}

.blog-post-cover.tone-2 {
    background: linear-gradient(145deg, #ff7aa2 0%, #ffb347 100%);
}

.blog-post-cover.tone-3 {
    background: linear-gradient(145deg, #36cfc9 0%, #3b82f6 100%);
}

.blog-post-cover.tone-4 {
    background: linear-gradient(145deg, #8b5cf6 0%, #ec4899 100%);
}

.blog-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 2px 4px 2px 0;
}

.blog-post-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #3b6fd8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #1f2430;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-summary {
    margin: 0;
    flex: 1;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #9aa3b2;
    font-size: 13px;
}

.blog-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-date i {
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .blog-post-card {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .blog-post-cover {
        width: 100%;
        flex-basis: auto;
        height: 160px;
    }

    .blog-post-title {
        font-size: 18px;
        -webkit-line-clamp: 2;
    }

    .blog-post-body {
        padding: 0 2px 2px;
    }
}

.blog-article {
    background: #fff;
    border: 1px solid var(--acg-border);
    border-radius: 18px;
    padding: 28px 32px 36px;
    box-shadow: 0 8px 24px rgba(31, 36, 48, .04);
}

.blog-article-nav {
    margin-bottom: 18px;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none !important;
    font-size: 14px;
}

.blog-back:hover {
    color: var(--acg-primary);
}

.blog-article-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: #1f2430;
    line-height: 1.35;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1f6;
    font-size: 13px;
    color: #8b93a7;
}

.blog-article-cate {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(124, 117, 216, .12);
    color: var(--acg-primary);
    text-decoration: none !important;
    font-weight: 600;
}

.blog-article-body {
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-article-body p {
    margin-bottom: 1em;
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3 {
    margin: 1.2em 0 .6em;
    color: #1f2430;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .blog-article {
        padding: 20px 16px 28px;
    }

    .blog-article-title {
        font-size: 22px;
    }
}
