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

: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: none !important;
}

/* 导航：渐变条 + 细边框 */
.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;
    transform: translateY(0);
    transition: transform .22s cubic-bezier(0.4,0,0.2,1), box-shadow .22s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.acg-thumb {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}
.acg-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: none;
}

/* 内容容器弹性布局，底部元素对齐 */
.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;
    }
}

/* 响应式卡片封面高度调整 - 使用 aspect-ratio 自动计算，无需手动设置高度 */

/* 移动端 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(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .13);
    }
}

/* 系统减少动态时，弱化动效 */
@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: contain;
    display: block;
}

.acg-cover {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
}

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

main.container.py-4{padding-top:80px!important;}
/* ╔══════════════════════════════════════════════════════════════════╗
   ║  ACG 动画系统 v13.0  —  Silky Edition                          ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── 真实弹簧缓动 ── */
:root {
  --sp-g: linear(0,.046 2.5%,.151 5%,.28 7.5%,.411 10%,.533 12.5%,.638 15%,.727 17.5%,.798 20%,.854 22.5%,.897 25%,.929 27.5%,.953 30%,.97 32.5%,.982 35%,.99 37.5%,.995 40%,1.0002 45%,1 57.5% 100%);
  --sp-b: linear(0,.097 2.5%,.313 5%,.561 7.5%,.784 10%,.951 12.5%,1.058 15%,1.11 17.5%,1.12 20%,1.105 22.5%,1.078 25%,1.048 27.5%,1.022 30%,1.003 32.5%,.992 35%,.986 37.5%,.991 45%,.998 50%,1 65% 100%);
  --sp-e: linear(0,.143 2.5%,.457 5%,.795 7.5%,1.058 10%,1.206 12.5%,1.243 15%,1.202 17.5%,1.123 20%,1.042 22.5%,.981 25%,.948 27.5%,.941 30%,.953 32.5%,.972 35%,.992 37.5%,1.006 40%,1.013 42.5%,1.006 50%,.998 55%,1 77.5% 100%);
  --sp-s: linear(0,.132 3.3%,.397 6.7%,.664 10%,.869 13.3%,.997 16.7%,1.058 20%,1.074 23.3%,1.064 26.7%,1.044 30%,1.025 33.3%,1.01 36.7%,1.0002 40%,.995 46.7%,1.0 63.3%,1 76.7% 100%);
  --dg:.52s; --db:.62s; --de:.62s; --ds:.42s;
}

/* ── GPU 合成层 ── */
.acg-card,.chip,.sku,.optional-card,.btn-primary,
.pay-list .pay,.acg-thumb,.navbar-acg,.panel,.layui-layer {
  backface-visibility:hidden; transform:translateZ(0);
}
#pjax-container { contain:layout style; will-change:opacity; }
html,body { scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }


/* ══════════════════════════════════════════════════
   导航栏
   ══════════════════════════════════════════════════ */
@keyframes acg-nav-drop {
  0%   { opacity:0; transform:translateY(-110%); }
  100% { opacity:1; transform:translateY(0); }
}
.navbar-acg {
  animation: acg-nav-drop var(--db) var(--sp-b) both;
  transition: background .3s ease, box-shadow .3s ease, padding .35s var(--sp-g);
}
.navbar-acg.navbar-shrunk {
  padding-top:4px!important; padding-bottom:4px!important;
  background:rgba(255,255,255,.95)!important;
  box-shadow:0 4px 24px rgba(0,0,0,.1)!important;
}

@keyframes acg-brand-in {
  0%   { opacity:0; transform:translateX(-28px) scale(.84); }
  100% { opacity:1; transform:translateX(0) scale(1); }
}
.navbar-brand { animation:acg-brand-in var(--db) var(--sp-b) .06s both; }

/* logo 持续摇摆 */
@keyframes acg-logo-rock {
  0%   { transform:rotate(-6deg) scale(1); }
  20%  { transform:rotate(4deg) scale(1.1); }
  50%  { transform:rotate(-4deg) scale(1.05); }
  75%  { transform:rotate(6deg) scale(1.1); }
  100% { transform:rotate(-6deg) scale(1); }
}
.brand-logo { animation:acg-logo-rock 3.4s ease-in-out infinite!important; transform-origin:center; display:inline-block; }

/* 店名发光呼吸 */
@keyframes acg-name-glow {
  0%,100% { opacity:.5; filter:brightness(1); }
  50%     { opacity:.95; filter:brightness(1.3) drop-shadow(0 0 8px rgba(19,150,85,.5)); }
}
.navbar-brand span { animation:acg-name-glow 3s ease-in-out infinite; }

/* 导航链接依次弹入 */
@keyframes acg-link-drop {
  0%   { opacity:0; transform:translateY(-16px); }
  100% { opacity:1; transform:translateY(0); }
}
.nav-item:nth-child(1) .nav-link { animation:acg-link-drop var(--ds) var(--sp-s) .15s both; }
.nav-item:nth-child(2) .nav-link { animation:acg-link-drop var(--ds) var(--sp-s) .21s both; }
.nav-item:nth-child(3) .nav-link { animation:acg-link-drop var(--ds) var(--sp-s) .27s both; }

/* 图标持续浮动 */
@keyframes acg-icon-bob {
  0%,100% { transform:translateY(0) rotate(0deg); }
  35%     { transform:translateY(-5px) rotate(-5deg); }
  70%     { transform:translateY(-2px) rotate(4deg); }
}
.navbar-acg .nav-icon { display:inline-block; animation:acg-icon-bob 3s ease-in-out infinite; }
.nav-item:nth-child(1) .nav-icon { animation-delay:0s; }
.nav-item:nth-child(2) .nav-icon { animation-delay:.65s; }
.nav-item:nth-child(3) .nav-icon { animation-delay:1.3s; }

/* 搜索框 & 用户区弹入 */
@keyframes acg-from-right {
  0%   { opacity:0; transform:translateX(24px); }
  100% { opacity:1; transform:translateX(0); }
}
.search-input   { animation:acg-from-right var(--ds) var(--sp-s) .24s both; }
.user-info-box,
.user-login-box { animation:acg-brand-in var(--db) var(--sp-b) .18s both; }

/* nav-link hover 下划线从中心扩展 */
@media (hover:hover) and (pointer:fine) {
  .navbar-acg .nav-link { position:relative; }
  .navbar-acg .nav-link::after {
    content:''; position:absolute; bottom:-2px; left:50%;
    width:0; height:2px; background:var(--acg-primary); border-radius:999px;
    transition: width var(--ds) var(--sp-s), left var(--ds) var(--sp-s);
  }
  .navbar-acg .nav-link:hover::after,
  .navbar-acg .nav-link.active::after { width:80%; left:10%; }
}

/* 搜索框 focus 光环 */
.search-input .form-control { transition:box-shadow .28s ease; }
.search-input .form-control:focus { box-shadow:0 0 0 4px rgba(122,140,255,.22)!important; }


/* ══════════════════════════════════════════════════
   卡片 & 缩略图
   ══════════════════════════════════════════════════ */

/* 缩略图：模糊 → 清晰（带轻微缩放）*/
@keyframes acg-img-reveal {
  0%   { opacity:0; filter:blur(10px) saturate(.4); transform:scale(1.04); }
  50%  { filter:blur(2px) saturate(.9); }
  100% { opacity:1; filter:blur(0) saturate(1); transform:scale(1); }
}
.acg-thumb img { animation:acg-img-reveal .7s var(--sp-g) both; }

/* 卡片 hover box-shadow：JS 控制 transform，CSS 只管阴影 */
.panel { transition:box-shadow .4s ease; }
.panel:hover { box-shadow:0 20px 52px rgba(82,63,105,.15),0 4px 18px rgba(82,63,105,.07)!important; }


/* ══════════════════════════════════════════════════
   badge 光泽划过
   ══════════════════════════════════════════════════ */
@keyframes acg-shine {
  0%   { background-position:-200% center; }
  100% { background-position: 200% center; }
}
.badge-soft { position:relative; overflow:hidden; }
.badge-soft::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%);
  background-size:200% 100%; opacity:0; transition:opacity .2s;
}
@media (hover:hover) and (pointer:fine) {
  .badge-soft:hover::after { opacity:1; animation:acg-shine .5s ease forwards; }
}


/* ══════════════════════════════════════════════════
   SKU / chip 选中弹光圈
   ══════════════════════════════════════════════════ */
@keyframes acg-sku-flash {
  0%   { box-shadow:0 0 0 0 var(--acg-primary); }
  50%  { box-shadow:0 0 0 7px rgba(122,140,255,0); }
  100% { box-shadow:0 0 0 0 rgba(122,140,255,0); }
}
.sku.is-primary, .chip.is-primary {
  animation:acg-sku-flash .55s var(--sp-e) both;
}


/* ══════════════════════════════════════════════════
   scroll reveal
   ══════════════════════════════════════════════════ */
.acg-reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity .6s var(--sp-g), transform .6s var(--sp-g);
}
.acg-reveal.acg-visible { opacity:1; transform:translateY(0); }


/* ══════════════════════════════════════════════════
   骨架屏 shimmer
   ══════════════════════════════════════════════════ */
@keyframes acg-skeleton-wave {
  0%   { background-position:-200% 0; }
  100% { background-position: 200% 0; }
}
.acg-skeleton {
  background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.06) 75%);
  background-size:200% 100%;
  animation:acg-skeleton-wave 1.4s ease-in-out infinite;
  border-radius:8px;
}
.skeleton-card { background:rgba(255,255,255,.5); border-radius:14px; overflow:hidden; box-shadow:rgba(100,100,111,.1) 0 4px 16px 0; }
.skeleton-thumb { height:160px; }
.skeleton-body  { padding:12px; }
.skeleton-line  { height:12px; margin-bottom:8px; border-radius:6px; }
.skeleton-line.w80 { width:80%; }
.skeleton-line.w60 { width:60%; }
.skeleton-price { height:24px; width:50%; border-radius:6px; margin-top:8px; }


/* ══════════════════════════════════════════════════
   波纹点击
   ══════════════════════════════════════════════════ */
.acg-ripple-host { position:relative; overflow:hidden; }
@keyframes acg-ripple { 0%{transform:scale(0);opacity:.5;} 100%{transform:scale(4);opacity:0;} }
.acg-ripple {
  position:absolute; border-radius:50%; background:rgba(255,255,255,.4);
  pointer-events:none; transform:scale(0);
  animation:acg-ripple .65s var(--sp-g) forwards;
}


/* ══════════════════════════════════════════════════
   hover CSS（JS lerp 控制 transform 的不加 transition:transform）
   ══════════════════════════════════════════════════ */
@media (hover:hover) and (pointer:fine) {
  .chip:active, .sku:active, .optional-card:active { opacity:.78; }

  /* 按钮：JS 不控制，CSS 全权负责 */
  .btn-primary {
    transition: transform var(--de) var(--sp-e), box-shadow .25s ease, filter .2s ease !important;
  }
  .btn-primary:hover  { transform:translateY(-3px) scale(1.06)!important; box-shadow:0 8px 24px rgba(122,140,255,.35)!important; }
  .btn-primary:active { transform:scale(.88)!important; transition-duration:.06s!important; }

  /* 支付方式 active */
  .pay-list .pay:active { opacity:.78; }

  /* 加减数量按钮 */
  .input-group.qty-group > button {
    transition: transform var(--de) var(--sp-e), filter .15s ease;
  }
  .input-group.qty-group > button:hover  { transform:scale(1.16)!important; filter:brightness(1.12); }
  .input-group.qty-group > button:active { transform:scale(.8)!important; transition-duration:.06s!important; }

  /* shared-button */
  .shared-button {
    transition: transform var(--de) var(--sp-e), box-shadow .25s ease;
  }
  .shared-button:hover {
    transform:translateY(-4px) scale(1.16) rotate(-6deg)!important;
    box-shadow:0 10px 26px rgba(0,0,0,.15);
  }
  .shared-button:active { transform:scale(.84)!important; transition-duration:.06s!important; }
}


/* ══════════════════════════════════════════════════
   下拉 / toast / 弹窗
   ══════════════════════════════════════════════════ */
@keyframes acg-dropdown {
  0%   { opacity:0; transform:scaleY(.88) translateY(-8px); }
  100% { opacity:1; transform:scaleY(1) translateY(0); }
}
.dropdown-menu.show { animation:acg-dropdown var(--ds) var(--sp-s) both; transform-origin:top center; }

@keyframes acg-toast {
  0%   { opacity:0; transform:translateX(72px) scale(.9); }
  100% { opacity:1; transform:translateX(0) scale(1); }
}
.toast-top-right .toast { animation:acg-toast var(--ds) var(--sp-s) both; }

@keyframes acg-modal {
  0%   { opacity:0; transform:scale(.93) translateY(14px); }
  100% { opacity:1; transform:scale(1) translateY(0); }
}
.layui-layer { animation:acg-modal var(--db) var(--sp-b) both!important; }


/* ══════════════════════════════════════════════════
   全局点缀
   ══════════════════════════════════════════════════ */

/* 价格呼吸发光 */
@keyframes acg-price-glow {
  0%,100% { filter:brightness(1); }
  50%     { filter:brightness(1.18) drop-shadow(0 0 7px var(--acg-danger)); }
}
.price { animation:acg-price-glow 4s ease-in-out infinite; }

/* accent-bar 流光 */
@keyframes acg-bar-flow { 0%{background-position:0% 50%;} 100%{background-position:200% 50%;} }
.accent-bar {
  background:linear-gradient(90deg,var(--acg-primary),var(--acg-secondary),var(--acg-danger),var(--acg-secondary),var(--acg-primary));
  background-size:200%; animation:acg-bar-flow 3.5s linear infinite;
}

/* 售罄呼吸 */
@keyframes acg-pulse { 0%,100%{opacity:1;} 50%{opacity:.6;} }
.soldout-ribbon { animation:acg-pulse 2.4s ease-in-out infinite; }

/* spinner */
@keyframes acg-spin { to { transform:rotate(360deg); } }
.icon-spin { animation:acg-spin .72s linear infinite!important; }

/* 按钮波纹遮罩 */
.btn-primary { position:relative; overflow:hidden; }
.btn-primary::after {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,.22); opacity:0;
  transition:opacity .15s ease; border-radius:inherit; pointer-events:none;
}
.btn-primary:active::after { opacity:1; }

/* input/select focus 光环 */
.form-control, .form-select {
  transition: box-shadow .22s ease, border-color .22s ease;
}
.form-control:focus, .form-select:focus {
  box-shadow:0 0 0 3px rgba(122,140,255,.2)!important;
}

/* pay 磁感脉冲 */
@keyframes acg-pay-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(122,140,255,.35); }
  50%     { box-shadow:0 0 0 8px rgba(122,140,255,0); }
}
.pay-list .pay { border-radius:8px; transition:box-shadow .2s ease; }
@media (hover:hover) and (pointer:fine) {
  .pay-list .pay:hover { animation:acg-pay-pulse 1.4s ease infinite; }
}

/* panel-header icon：transform 由 JS lerp 全权控制，CSS 不设 animation */
.panel-header .icon { display:inline-flex; }

/* ══════════════════════════════════════════════════
   ★ NEW：panel 毛玻璃层微光扫过（每8秒一次）
   ══════════════════════════════════════════════════ */
@keyframes acg-panel-sheen {
  0%,85%,100% { opacity:0; transform:translateX(-100%) skewX(-12deg); }
  88%         { opacity:.18; }
  95%         { opacity:0; transform:translateX(200%) skewX(-12deg); }
}
.panel {
  position:relative; overflow:hidden;
}
.panel::after {
  content:''; position:absolute; top:0; left:0;
  width:60%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  pointer-events:none; z-index:0;
  animation:acg-panel-sheen 8s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════
   ★ NEW：acg-card 悬停时内发光边框渐显
   ══════════════════════════════════════════════════ */
.acg-card {
  position:relative;
  transition: box-shadow .35s ease;
}
@media (hover:hover) and (pointer:fine) {
  .acg-card:hover {
    box-shadow: inset 0 0 0 1px rgba(122,140,255,.25),
                0 20px 48px rgba(0,0,0,.14),
                0 6px 18px rgba(0,0,0,.07) !important;
  }
}

/* ══════════════════════════════════════════════════
   ★ NEW：goods-title 悬停时颜色渐变
   ══════════════════════════════════════════════════ */
.goods-title {
  transition: color .25s ease;
}
@media (hover:hover) and (pointer:fine) {
  .acg-card:hover .goods-title {
    color: var(--acg-primary) !important;
  }
}

/* ══════════════════════════════════════════════════
   ★ NEW：stat-bottom 数字在卡片 hover 时微位移
   ══════════════════════════════════════════════════ */
.stat-bottom {
  transition: transform .3s var(--sp-g), opacity .3s ease;
}
@media (hover:hover) and (pointer:fine) {
  .acg-card:hover .stat-bottom {
    transform: translateY(-2px);
  }
}

/* ══════════════════════════════════════════════════
   ★ NEW：tags 行 hover 时标签轻微弹起
   ══════════════════════════════════════════════════ */
.tags .badge-soft {
  transition: transform .25s var(--sp-e);
}
@media (hover:hover) and (pointer:fine) {
  .acg-card:hover .tags .badge-soft:nth-child(1) { transform:translateY(-1px); }
  .acg-card:hover .tags .badge-soft:nth-child(2) { transform:translateY(-2px); transition-delay:.04s; }
  .acg-card:hover .tags .badge-soft:nth-child(3) { transform:translateY(-1px); transition-delay:.08s; }
}

/* ══════════════════════════════════════════════════
   ★ NEW：acg-thumb 悬停时内部图片放大（纯CSS 兜底）
   ══════════════════════════════════════════════════ */
.acg-thumb { overflow:hidden; }
.acg-thumb { transition:transform .4s var(--sp-b); }

/* ══════════════════════════════════════════════════
   ★ NEW：optional-card 按钮脉冲提示
   ══════════════════════════════════════════════════ */
@keyframes acg-opt-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(122,140,255,.3); }
  50%     { box-shadow:0 0 0 6px rgba(122,140,255,0); }
}
.optional-card {
  animation:acg-opt-pulse 2.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════
   ★ NEW：付款面板展开时弹入
   ══════════════════════════════════════════════════ */
@keyframes acg-cashpay-in {
  0%   { opacity:0; transform:translateY(12px) scale(.98); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}
.cash-pay { animation:acg-cashpay-in .42s var(--sp-b) both; }

/* ══════════════════════════════════════════════════
   ★ NEW：价格 tag 弹入（首次）
   ══════════════════════════════════════════════════ */
/* acg-price-in removed - conflicts with price display */

/* ══════════════════════════════════════════════════
   ★ NEW：卡片 soldout 蒙层闪动
   ══════════════════════════════════════════════════ */
@keyframes acg-soldout-breathe {
  0%,100% { opacity:1; }
  50%     { opacity:.7; }
}
.soldout-ribbon { animation:acg-soldout-breathe 2.2s ease-in-out infinite; }

/* ══════════════════════════════════════════════════
   ★ NEW：layui-layer 弹窗关闭按钮 hover 旋转
   ══════════════════════════════════════════════════ */
.layui-layer-close {
  transition: transform .25s var(--sp-e), color .2s ease;
}
.layui-layer-close:hover { transform:rotate(90deg) scale(1.1)!important; }

/* ══════════════════════════════════════════════════
   滚动条 & 选中
   ══════════════════════════════════════════════════ */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--acg-primary); border-radius:999px; }
::selection { background:var(--acg-primary); color:#fff; }

/* 移动端降级 */
@media (max-width:767.98px) {
  .panel,.acg-card,.navbar-acg,.dropdown-menu {
    backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
  }
  .panel      { background:rgba(255,255,255,.96)!important; }
  .navbar-acg { background:rgba(255,255,255,.98)!important; }
  #acg-body::before,body::before { background-attachment:scroll!important; }
  .panel::after { display:none; } /* 移动端关闭panel光扫 */
}

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

/* 加载条改为白色 */
.net-loading { background:#fff !important; }
.net-loading .bar { background:#fff !important; }
.net-loading .peg { box-shadow:0 0 10px #fff,0 0 5px #fff !important; }
.net-loading .spinner-icon { border-top-color:#fff !important; border-left-color:#fff !important; }
