/* ============================================================
   前台商城 · Yunshu 风干净首页（日夜自适应 + 响应式）
   布局栅格沿用 bootstrap；分类/商品 JS 类名保持兼容。
   ============================================================ */

/* ---------- 商城强调色（首页 Hero / CTA；暗色同步） ---------- */
body.uc-body {
    --shop-accent: #3b5bfd;
    --shop-accent-rgb: 59, 91, 253;
    --shop-accent-2: #7c5cff;
    --shop-surface: #ffffff;
    --shop-bg: #f5f6fa;
    --shop-bg-hero: radial-gradient(1200px 520px at 50% -10%, rgba(59, 91, 253, .12), transparent 60%),
                    radial-gradient(900px 420px at 100% 0%, rgba(124, 92, 255, .08), transparent 55%),
                    linear-gradient(180deg, #fbfcff 0%, #f5f6fa 42%, #f3f4f8 100%);
    --shop-card-border: rgba(15, 23, 42, .08);
    --shop-card-shadow: 0 8px 28px rgba(15, 23, 42, .06);
    --shop-ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] body.uc-body {
    --shop-accent: #6b8aff;
    --shop-accent-rgb: 107, 138, 255;
    --shop-accent-2: #a78bfa;
    --shop-surface: #171a22;
    --shop-bg: #0e1016;
    --shop-bg-hero: radial-gradient(1000px 480px at 50% -10%, rgba(107, 138, 255, .18), transparent 58%),
                    radial-gradient(800px 400px at 100% 0%, rgba(167, 139, 250, .1), transparent 55%),
                    linear-gradient(180deg, #12151c 0%, #0e1016 50%, #0c0e14 100%);
    --shop-card-border: rgba(255, 255, 255, .08);
    --shop-card-shadow: 0 10px 32px rgba(0, 0, 0, .35);
}

/* 告诉浏览器本页已自带日/夜主题，减少 vivo 等「强制深色」乱改字色 */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

/* ---------- 基底 / 背景 ---------- */
body.uc-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--uc-ink);
    background-color: var(--shop-bg);
    background-image: var(--shop-bg-hero);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

/* 弱化后台背景图：有 --shop-bg-photo 时极淡叠一层，不抢 Hero */
body.uc-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

body.uc-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--shop-bg-photo, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
}

body.uc-body[style*="--shop-bg-photo"]::after {
    opacity: .035;
    filter: saturate(.55) blur(1px);
}

:root[data-theme="dark"] body.uc-body[style*="--shop-bg-photo"]::after {
    opacity: .06;
}

/* 只给「内容容器」定位以压在遮罩之上；绝不用 `body.uc-body > *`——
   那会把 position:fixed 的抽屉/遮罩/全局加载层一起改成 relative，令其错位/失效。 */
.uc-topbar,
#pjax-container,
body.uc-body > footer {
    position: relative;
}

.container {
    max-width: 1180px;
}

main.container {
    padding-top: 22px;
    padding-bottom: 48px;
}

a {
    text-decoration: none;
}

/* ---------- 顶栏（干净白底，贴近云舒） ---------- */
.uc-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    /* 左右含安全区，避免刘海/圆角机右侧图标被裁切 */
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--shop-surface) 86%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--shop-ease), background .2s;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.uc-topbar.is-scrolled {
    border-bottom-color: var(--shop-card-border);
}

.uc-topbar__inner {
    max-width: 1180px;
    margin: 0 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.shop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 6px 0 10px;
    border-radius: 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--uc-ink);
    font-weight: 700;
    font-size: 16px;
    padding-right: 4px;
}

.shop-brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.shop-brand__name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--uc-ink-med);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background .16s, color .16s;
}

.shop-nav__item i,
.shop-nav__item .nav-icon {
    font-size: 15px;
}

.shop-nav__item:hover {
    color: var(--uc-ink);
    background: rgba(var(--md-primary-rgb), .08);
}

.shop-nav__item.active {
    color: #fff;
    background: var(--shop-accent);
    box-shadow: 0 4px 14px rgba(var(--shop-accent-rgb), .28);
}

/* 搜索：独立一项，靠右贴工具区；宽约 7–10 字 */
.shop-search {
    --search-w: 148px;
    --search-w-open: 176px;
    position: relative;
    flex: 0 0 auto;
    width: var(--search-w);
    height: 40px;
    min-width: 0;
    display: block;
    margin-left: auto;
    padding: 0 4px 0 0;
    box-sizing: border-box;
    z-index: 6;
}

.shop-search__box {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: var(--search-w);
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--uc-field-bg);
    border: 1px solid var(--glass-border-soft);
    color: var(--uc-ink-med);
    box-sizing: border-box;
    transition:
        width .36s var(--shop-ease, cubic-bezier(.22, 1, .36, 1)),
        border-color .18s,
        box-shadow .18s,
        background .18s;
    will-change: width;
}

.shop-search.is-open .shop-search__box,
.shop-search__box:focus-within {
    width: var(--search-w-open);
    border-color: var(--uc-focus);
    box-shadow: 0 0 0 3px rgba(var(--uc-focus-rgb), .18);
    z-index: 40;
}

.shop-search__box i {
    font-size: 15px;
    flex: 0 0 auto;
}

.shop-search__box input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--uc-ink);
    font-size: 14px;
    /* 避免部分 WebView 对 type=search 自带清除钮挤占提示字 */
    -webkit-appearance: none;
    appearance: none;
}

.shop-search__box input::-webkit-search-decoration,
.shop-search__box input::-webkit-search-cancel-button,
.shop-search__box input::-webkit-search-results-button,
.shop-search__box input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.shop-search__box input::placeholder {
    color: var(--uc-ink-dis);
    opacity: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .shop-search {
        --search-w: 140px;
        --search-w-open: 164px;
    }
}

@media (max-width: 767.98px) {
    .shop-search {
        /* 手机约 5–7 字；独立贴右 */
        --search-w: 120px;
        --search-w-open: 120px;
        margin-left: auto;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 120px;
    }

    .shop-search__box {
        right: 0;
        padding: 0 10px;
        gap: 5px;
        transition: border-color .18s, box-shadow .18s, background .18s;
        overflow: hidden;
    }

    .shop-search.is-open .shop-search__box,
    .shop-search__box:focus-within {
        width: var(--search-w);
    }

    .shop-search__box input {
        font-size: 13px;
    }

    .shop-search__box input::placeholder {
        font-size: 12.5px;
        letter-spacing: 0;
    }

    .shop-nav {
        gap: 6px;
        padding: 0 2px 0 6px;
    }

    .shop-nav__right {
        gap: 2px;
        padding-right: 2px;
    }

    .shop-icon-btn {
        width: 36px;
        height: 36px;
    }

    .shop-icon-btn .material-icons-outlined {
        font-size: 20px;
    }

    .shop-burger {
        width: 38px;
        height: 38px;
    }

    .shop-burger .material-icons-outlined {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .shop-search__box {
        padding: 0 8px;
        gap: 4px;
    }

    .shop-search__box i {
        font-size: 13px;
    }

    .shop-search__box input::placeholder {
        font-size: 12px;
    }
}

html.shop-tight .shop-search__box {
    padding: 0 8px;
    gap: 4px;
    overflow: hidden;
}

html.shop-tight .shop-search__box input::placeholder {
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .shop-search__box {
        transition: border-color .16s, box-shadow .16s;
    }
}

.shop-nav__right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: 0;
}

/* 圆形工具按钮（主题 / 语言 / 铃铛） */
.shop-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--uc-ink-med);
    background: transparent;
    transition: background .16s, color .16s;
}

.shop-icon-btn:hover {
    color: var(--uc-ink);
    background: rgba(var(--md-primary-rgb), .1);
}

.shop-icon-btn .material-icons-outlined {
    font-size: 21px;
}

.shop-icon-btn i {
    font-size: 17px;
}

/* 语言下拉 */
.shop-lang {
    position: relative;
}

.shop-lang__menu,
.shop-user__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 176px;
    padding: 8px;
    border-radius: 16px;
    /* 菜单要不透明，否则背后的面板/背景会透出来把选项冲淡（iOS 菜单是磨砂但可读的实底） */
    background: rgba(252, 252, 253, 0.97);
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 320;
}

:root[data-theme="dark"] .shop-lang__menu,
:root[data-theme="dark"] .shop-user__menu {
    background: rgba(32, 36, 45, 0.97);
}

.shop-lang.is-open .shop-lang__menu,
.shop-user.is-open .shop-user__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--uc-ink);
    font-size: 13.5px;
    cursor: pointer;
}

.shop-menu__item i,
.shop-menu__item .material-icons-outlined {
    font-size: 18px;
    color: var(--uc-ink-dis);
}

.shop-menu__item:hover {
    background: rgba(var(--md-primary-rgb), .1);
}

.shop-menu__item.is-danger {
    color: #e05656;
}

.shop-menu__item.is-danger i {
    color: #e05656;
}

.shop-menu__sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--glass-border-soft);
}

/* 用户胶囊 */
.shop-user {
    position: relative;
}

.shop-user__btn {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(var(--md-primary-rgb), .06);
    color: var(--uc-ink);
    transition: background .16s;
}

.shop-user__btn:hover {
    background: rgba(var(--md-primary-rgb), .12);
}

.shop-user__meta {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    line-height: 1.2;
}

.shop-user__name {
    font-size: 13px;
    font-weight: 600;
}

.shop-user__balance {
    font-size: 13px;
    color: var(--uc-ink-dis);
}

.shop-user__balance b {
    color: #1fa971;
    font-weight: 600;
}

.shop-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .16s;
}

.shop-btn--ghost {
    color: var(--uc-ink-med);
    border-color: var(--glass-border);
    background: transparent;
}

.shop-btn--ghost:hover {
    color: var(--uc-ink);
    border-color: var(--uc-focus);
}

.shop-btn--primary {
    color: #fff;
    background: var(--shop-accent);
    box-shadow: 0 6px 18px rgba(var(--shop-accent-rgb), .3);
}

.shop-btn--primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* 汉堡 + 抽屉（窄屏 / 溢出时收起） */
.shop-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(var(--md-primary-rgb), .1);
    color: var(--uc-primary-deep);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.shop-burger .material-icons-outlined {
    font-size: 24px;
}

.shop-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 82%;
    max-width: 320px;
    padding: 18px 14px;
    overflow-y: auto;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    border-right: 1px solid var(--glass-border);
    transform: translateX(-104%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    display: none;
}

.shop-drawer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--uc-ink);
    padding: 6px 8px 16px;
}

.shop-drawer__brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.shop-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--uc-ink);
    font-size: 14.5px;
    font-weight: 500;
}

.shop-drawer__link i {
    font-size: 18px;
    color: var(--uc-ink-dis);
    width: 20px;
    text-align: center;
}

.shop-drawer__link.active {
    background: rgba(var(--md-primary-rgb), .14);
    color: var(--uc-primary-deep);
}

.shop-drawer__shade {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(20, 22, 30, .32);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s;
    display: none;
}

body.shop-drawer-open .shop-drawer {
    transform: translateX(0);
}

body.shop-drawer-open .shop-drawer__shade {
    opacity: 1;
    visibility: visible;
}

/* 收起模式：窄屏或内容放不下时，导航/注册收进抽屉；搜索保留（短态，点开再展开） */
html.shop-compact .shop-nav__list,
html.shop-compact .shop-auth {
    display: none !important;
}

html.shop-compact .shop-burger {
    display: inline-flex;
}

html.shop-compact .shop-drawer,
html.shop-compact .shop-drawer__shade {
    display: block;
}

/* 窄屏：搜索单独 margin-left:auto 贴右，右侧图标紧跟其后 */
html.shop-compact .shop-nav__right {
    margin-left: 0;
}

html.shop-compact .shop-search {
    margin-left: auto;
}

/* 仍放不下时：优先压搜索，店名尽量保留（过长省略） */
html.shop-tight .shop-brand__name {
    max-width: min(88px, 26vw);
}

html.shop-tight .shop-search {
    --search-w: 72px;
    --search-w-open: 72px;
    max-width: 80px;
    padding-left: 0;
    padding-right: 0;
}

html.shop-tight .shop-search__box {
    padding: 0 8px;
    gap: 4px;
}

html.shop-tight .shop-nav {
    gap: 4px;
    padding: 0 0 0 4px;
}

html.shop-tight .shop-nav__right {
    gap: 2px;
}

@media (max-width: 768px) {
    .shop-user__btn { padding: 0 10px; height: 38px; }
    .shop-user__name { font-size: 12px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .shop-user__balance { font-size: 12px; }
    .uc-topbar {
        padding: 10px max(12px, env(safe-area-inset-right, 0px)) 2px max(12px, env(safe-area-inset-left, 0px));
    }

    /* 不依赖 JS 量宽：手机端直接收导航，避免 vivo 等机型右侧被裁 */
    .shop-nav__list,
    .shop-auth {
        display: none !important;
    }

    .shop-burger {
        display: inline-flex;
    }

    .shop-drawer,
    .shop-drawer__shade {
        display: block;
    }

    .shop-nav__right {
        margin-left: 0;
        flex-shrink: 0;
        padding-right: 2px;
        gap: 2px;
    }

    /* 保留店名，过长省略；不够宽时再由 shop-tight 收窄 */
    .shop-brand__name {
        display: block;
        max-width: min(118px, 32vw);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-search {
        --search-w: 108px;
        --search-w-open: 108px;
        margin-left: auto;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 108px;
    }
}

@media (max-width: 420px) {
    .shop-brand__name {
        max-width: min(96px, 28vw);
    }

    .shop-search {
        --search-w: 96px;
        --search-w-open: 96px;
        max-width: 100px;
    }

    .shop-icon-btn {
        width: 34px;
        height: 34px;
    }

    .shop-burger {
        width: 36px;
        height: 36px;
    }
}

/* ---------- 面板（详情 / 查单等仍用；首页已改为 shop-section） ---------- */
.panel {
    position: relative;
    border-radius: 20px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
    overflow: hidden;
}

.panel + .panel {
    margin-top: 18px;
}

/* 订单查询页：结果/无结果/加载面板包在这些容器里，不是「订单查询」面板的相邻兄弟，
   吃不到上面的 `.panel + .panel` 间距，会和上面面板贴在一起。给容器补同样的顶距。 */
.order-results,
.no-results,
.loading-state {
    margin-top: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
}

.panel-header .icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--md-primary-rgb), .1);
    color: var(--uc-primary-deep);
    font-size: 15px;
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--uc-ink);
}

.panel-body {
    padding: 16px 20px 20px;
    color: var(--uc-ink-med);
    line-height: 1.8;
    font-size: 14px;
}

.panel-body img {
    max-width: 100%;
    border-radius: 12px;
}

/* ---------- 分类 Chip ---------- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-ink-med);
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    cursor: pointer;
    transition: transform .22s var(--shop-ease), box-shadow .22s var(--shop-ease), color .18s, border-color .18s, background .18s;
    white-space: nowrap;
}

.chip:hover {
    color: var(--uc-ink);
    border-color: rgba(var(--shop-accent-rgb), .35);
    transform: translateY(-1px);
}

.chip.is-primary {
    color: #fff;
    background: var(--shop-accent);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(var(--shop-accent-rgb), .28);
}

.chip .chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    flex: 0 0 auto;
}

/* ---------- 商品网格：银行卡式会员卡（对齐图一） ---------- */
.item-list {
    display: grid;
    /* 窄屏也保持两列，避免整行放大成一张巨卡 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
}

.item-list > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 640px) {
    .item-list {
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

.item-list .item-message {
    grid-column: 1 / -1;
    color: var(--uc-ink-dis);
    font-size: 14px;
    padding: 18px 4px;
}

.item-card-cell {
    display: block;
    color: inherit;
    text-decoration: none;
}

.item-card-cell:has(.is-soldout) {
    cursor: not-allowed;
}

.item-card-cell.is-entering .shop-pcard {
    animation: shop-card-in .45s var(--shop-ease) both;
    animation-delay: var(--reveal-delay, 0ms);
}

/* 银行卡面 */
.shop-pcard {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.68 / 1;
    border-radius: 18px;
    padding: 16px 18px;
    box-sizing: border-box;
    overflow: hidden;
    color: #eef7f2;
    box-shadow:
        0 14px 32px rgba(15, 23, 42, .18),
        0 1px 0 rgba(255, 255, 255, .08) inset;
    transition: transform .28s var(--shop-ease), box-shadow .28s var(--shop-ease);
    will-change: transform;
    isolation: isolate;
}

.item-card-cell:hover .shop-pcard:not(.is-soldout) {
    transform: translateY(-5px);
    box-shadow:
        0 22px 44px rgba(15, 23, 42, .26),
        0 1px 0 rgba(255, 255, 255, .12) inset;
}

.shop-pcard--gpt {
    background: linear-gradient(145deg, #1f4a3a 0%, #16362b 55%, #0f2a22 100%);
    color: #eef7f2;
}

.shop-pcard--claude {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 55%, #17120f 100%);
    color: #f4f1ec;
}

.shop-pcard--gemini {
    background: linear-gradient(145deg, #1c2a4a 0%, #121a33 60%, #1a1640 100%);
    color: #eef2ff;
}

.shop-pcard--grok {
    background: linear-gradient(145deg, #f3f3f1 0%, #e7e7e4 55%, #f7f7f5 100%);
    color: #121212;
}

.shop-pcard--night {
    background: linear-gradient(145deg, #23262b 0%, #15171b 55%, #0f1114 100%);
    color: #f1f3f5;
}

.shop-pcard--ember {
    background: linear-gradient(145deg, #3a2218 0%, #241610 55%, #1a100c 100%);
    color: #f7efe8;
}

.shop-pcard__brand {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 2;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .01em;
}

.shop-pcard__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, .22);
    border: 1px solid rgba(74, 222, 128, .35);
    opacity: 1;
}

.shop-pcard--grok .shop-pcard__tag {
    color: #166534;
    background: rgba(34, 197, 94, .18);
    border-color: rgba(22, 163, 74, .28);
}

.shop-pcard__chip {
    position: absolute;
    left: 18px;
    top: 42%;
    z-index: 2;
    width: 30px;
    height: 23px;
    border-radius: 5px;
    background:
        linear-gradient(135deg, #f2d48a 0%, #c9a24a 40%, #f7e2a8 55%, #a67c2d 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.shop-pcard__chip::after {
    content: "";
    position: absolute;
    inset: 4px 3px;
    background:
        linear-gradient(#0000 45%, rgba(0, 0, 0, .22) 46% 54%, #0000 55%),
        linear-gradient(90deg, #0000 45%, rgba(0, 0, 0, .22) 46% 54%, #0000 55%);
    opacity: .55;
}

.shop-pcard__logo {
    position: absolute;
    right: 8px;
    top: 46%;
    z-index: 1;
    width: 96px;
    height: 96px;
    transform: translateY(-48%);
    border-radius: 16px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .55;
    filter: saturate(.9) contrast(1.05);
    mask-image: radial-gradient(circle at center, #000 42%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at center, #000 42%, transparent 78%);
    pointer-events: none;
}

.shop-pcard__logo:not([style*="background-image"]) {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 55%),
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    opacity: .35;
}

.shop-pcard__plan {
    position: absolute;
    left: 18px;
    bottom: 42px;
    z-index: 2;
    max-width: 62%;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-pcard--claude .shop-pcard__plan {
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-weight: 600;
}

.shop-pcard__meta {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    max-width: 58%;
    font-size: 11px;
    opacity: .62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-pcard__price {
    position: absolute;
    right: 18px;
    bottom: 34px;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.shop-pcard__price .unit {
    font-size: 11px;
    margin-right: 1px;
    opacity: .8;
}

.shop-pcard__sn {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 2;
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .45;
    font-variant-numeric: tabular-nums;
}

.shop-pcard__sheen {
    position: absolute;
    left: var(--shine-x, 38%);
    top: var(--shine-y, 28%);
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, .78) 0%,
        rgba(255, 255, 255, .32) 28%,
        rgba(255, 255, 255, .1) 52%,
        transparent 70%
    );
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .2s ease;
    will-change: left, top;
}

.shop-pcard--grok .shop-pcard__sheen {
    mix-blend-mode: multiply;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, .18) 0%,
        rgba(0, 0, 0, .08) 40%,
        transparent 70%
    );
}

.shop-pcard.is-hot .shop-pcard__sheen,
.item-card-cell:hover .shop-pcard:not(.is-soldout) .shop-pcard__sheen {
    opacity: 1;
}

.shop-pcard.is-soldout {
    opacity: 1;
    filter: grayscale(.9) brightness(.62) contrast(.92);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, .16),
        0 1px 0 rgba(255, 255, 255, .04) inset;
}

.shop-pcard.is-soldout::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: rgba(6, 8, 12, .38);
    pointer-events: none;
}

.shop-pcard.is-soldout .shop-pcard__tag {
    visibility: hidden;
}

.shop-pcard.is-soldout .shop-pcard__price,
.shop-pcard.is-soldout .shop-pcard__plan,
.shop-pcard.is-soldout .shop-pcard__meta,
.shop-pcard.is-soldout .shop-pcard__brand {
    opacity: .72;
}

.shop-pcard__soldout {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 72px;
    max-width: calc(100% - 20px);
    padding: 9px 14px 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f04348 0%, #d92b32 100%);
    color: #fff;
    line-height: 1.15;
    box-shadow:
        0 10px 28px rgba(217, 43, 50, .55),
        0 0 0 1px rgba(255, 255, 255, .18) inset;
    pointer-events: none;
    text-align: center;
}

.shop-pcard__soldout-title {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    text-indent: .18em;
    line-height: 1;
}

.shop-pcard__soldout-tip {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.25;
    white-space: nowrap;
    opacity: .96;
}

@media (max-width: 639.98px) {
    .shop-pcard {
        border-radius: 14px;
        padding: 10px 11px;
        /* 两列窄卡略增高，给 chip / 标题 / 底栏分层留空 */
        aspect-ratio: 1.5 / 1;
    }

    .shop-pcard__brand {
        top: 10px;
        left: 11px;
        right: 72px;
        font-size: 11.5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-pcard__tag {
        top: 8px;
        right: 8px;
        font-size: 9px;
        padding: 2px 6px;
        max-width: 46%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* chip 固定在品牌下方，避免与大标题叠在 42% 中线 */
    .shop-pcard__chip {
        left: 11px;
        top: 32px;
        width: 18px;
        height: 14px;
        border-radius: 3px;
    }

    .shop-pcard__logo {
        right: 4px;
        top: 48%;
        width: 40px;
        height: 40px;
        opacity: .28;
        border-radius: 10px;
    }

    .shop-pcard__plan {
        left: 11px;
        right: 52px;
        bottom: 26px;
        max-width: none;
        /* 按卡宽缩放，避免两列时字过大盖住 chip */
        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.1;
    }

    .shop-pcard__meta {
        left: 11px;
        right: 52px;
        bottom: 9px;
        max-width: none;
        font-size: 9.5px;
    }

    .shop-pcard__price {
        right: 10px;
        bottom: 24px;
        font-size: 12.5px;
    }

    .shop-pcard__sn {
        right: 10px;
        bottom: 8px;
        font-size: 8.5px;
    }

    .shop-pcard__soldout {
        min-width: 58px;
        max-width: calc(100% - 14px);
        gap: 3px;
        padding: 7px 10px 6px;
        border-radius: 14px;
    }

    .shop-pcard__soldout-title {
        font-size: 11px;
        letter-spacing: .12em;
        text-indent: .12em;
    }

    .shop-pcard__soldout-tip {
        font-size: 9.5px;
        letter-spacing: 0;
        white-space: normal;
    }
}

/* 极窄屏再压一档，杜绝 chip / 标题重叠 */
@media (max-width: 380px) {
    .shop-pcard {
        aspect-ratio: 1.42 / 1;
        padding: 9px 10px;
    }

    .shop-pcard__chip {
        top: 30px;
        width: 16px;
        height: 12px;
    }

    .shop-pcard__plan {
        bottom: 24px;
        font-size: 12.5px;
        right: 48px;
    }

    .shop-pcard__price {
        font-size: 12px;
        bottom: 22px;
    }

    .shop-pcard__logo {
        width: 34px;
        height: 34px;
        opacity: .22;
    }
}

/* 详情页等仍可能用到的旧卡样式 */
.acg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
    overflow: hidden;
}

.price {
    color: #f0435f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.price .unit {
    font-size: 12px;
    margin-right: 1px;
}

:root[data-theme="dark"] .price {
    color: #ff8095;
}

.meta {
    font-size: 11px;
    color: var(--uc-ink-dis);
}

.shared-button {
    cursor: pointer;
    transition: filter .15s;
}

.shared-button:hover {
    filter: brightness(1.1);
}

.soldout-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    background: #e5484d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 34px;
    box-shadow: 0 4px 12px rgba(229, 72, 77, .4);
}

/* 徽章（商品详情页等） */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
}

.badge-soft-primary {
    color: var(--shop-accent);
    background: rgba(var(--shop-accent-rgb), .14);
}

.badge-soft-success {
    color: #1fa971;
    background: rgba(31, 169, 113, .14);
}

.badge-soft-danger {
    color: #e5484d;
    background: rgba(229, 72, 77, .14);
}

.badge-soft-muted {
    color: var(--uc-ink-dis);
    background: rgba(125, 125, 135, .16);
}

.badge-soft-warning {
    color: #d98a00;
    background: rgba(217, 138, 0, .16);
}

.badge-soft-info {
    color: #4c96e0;
    background: rgba(76, 150, 224, .16);
}

.acg-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.acg-tag--red { color: #e5484d; background: rgba(229, 72, 77, .14); }
.acg-tag--blue { color: #4c7ef0; background: rgba(76, 126, 240, .14); }
.acg-tag--green { color: #1fa971; background: rgba(31, 169, 113, .14); }
.acg-tag--orange { color: #d98a00; background: rgba(217, 138, 0, .16); }
.acg-tag--purple { color: #8b5cf6; background: rgba(139, 92, 246, .16); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ---------- 商品详情页（旧 cover / 兼容） ---------- */
.acg-cover {
    border-radius: 18px;
    overflow: hidden;
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border-soft);
}

.item-cover {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.item-detail .panel-body :is(h1, h2, h3, h4, h5, h6),
.shop-item__detail-body :is(h1, h2, h3, h4, h5, h6) {
    color: var(--uc-ink);
}

h4 {
    color: var(--uc-ink);
    font-weight: 700;
}

.abacus .price {
    font-size: 26px;
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sku {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--uc-ink-med);
    background: var(--uc-field-bg);
    border: 1px solid var(--glass-border-soft);
    cursor: pointer;
    transition: all .16s;
}

.sku:hover {
    border-color: var(--uc-focus);
    color: var(--uc-ink);
}

.sku.is-primary {
    color: var(--md-on-primary);
    background: var(--md-primary);
    border-color: transparent;
}

.badge-money {
    font-size: 12px;
    opacity: .85;
}

.optional-card {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px dashed var(--glass-border);
    background: var(--uc-field-bg);
    color: var(--uc-ink-med);
    cursor: pointer;
    font-size: 13.5px;
}

.optional-card:hover {
    border-color: var(--uc-focus);
    color: var(--uc-ink);
}

/* 数量 */
.qty-group {
    display: inline-flex;
    align-items: stretch;
    width: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--uc-field-bg);
}

.qty-group .change-num-sub,
.qty-group .change-num-add {
    width: 38px;
    border: 0;
    background: transparent;
    color: var(--uc-ink-med);
    font-size: 16px;
    cursor: pointer;
}

.qty-group .change-num-sub:hover,
.qty-group .change-num-add:hover {
    background: rgba(var(--md-primary-rgb), .1);
    color: var(--uc-ink);
}

.qty-group .form-control {
    width: 66px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    /* 只用左右自定义 +/-，隐藏浏览器原生数字框上下箭头 */
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-group .form-control::-webkit-outer-spin-button,
.qty-group .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 付款方式 */
.cash-pay {
    border-radius: 14px;
    background: var(--uc-field-bg);
    border: 1px solid var(--glass-border-soft);
}

.pay-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 8px;
}

.pay-list > * {
    cursor: pointer;
}

/* ---------- 表单 / 输入（玻璃化，覆盖 bootstrap 默认） ---------- */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--uc-ink-med);
    font-size: 13px;
    font-weight: 500;
}

/* 变量都来自 _glass.css。秋叶原 / 西雅图 / 旧版纽约也加载这份文件却没有 _glass.css：
   不给回退值的话，变量失效 + !important 会把它们的输入框边框和底色整个吃掉 */
.form-control {
    height: 40px;
    border-radius: 11px;
    background: var(--uc-field-bg, transparent) !important;
    border: 1px solid var(--glass-border, rgba(128, 128, 128, .42)) !important;
    color: var(--uc-ink, inherit) !important;
    box-shadow: none !important;
    transition: border-color .16s, box-shadow .16s;
}

textarea.form-control {
    height: auto;
}

.form-control::placeholder {
    color: var(--uc-ink-dis, rgba(128, 128, 128, .9)) !important;
}

.form-control:focus {
    border-color: var(--uc-focus, currentColor) !important;
    box-shadow: 0 0 0 3px rgba(var(--uc-focus-rgb, 128, 128, 128), .18) !important;
}

.captcha-img {
    border-radius: 10px;
    cursor: pointer;
    height: 40px;
}

/* 图形验证码：输入框 + 验证码图合成一个玻璃控件——验证码做成嵌在框内右侧的白色小卡片
   （验证码笔画是深色，需要常亮底色，暗色模式也读得清），不再是两个分离的圆角盒子。
   作用域限定在 .captcha-group，不影响查单页等其它 input-group。 */
.captcha-group {
    display: flex;
    align-items: center;
    height: 40px;
    padding-right: 5px;
    border-radius: 11px;
    border: 1px solid var(--glass-border, rgba(128, 128, 128, .42));
    background: var(--uc-field-bg, transparent);
    overflow: hidden;
    transition: border-color .16s, box-shadow .16s;
}

.captcha-group:focus-within {
    border-color: var(--uc-focus, currentColor);
    box-shadow: 0 0 0 3px rgba(var(--uc-focus-rgb, 128, 128, 128), .18);
}

/* 输入框交出自己的边框/圆角/底色，由外层容器统一呈现 */
.captcha-group .captcha-input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.captcha-group .input-group-append {
    display: flex;
    align-items: center;
    margin: 0;
}

/* 验证码图：框内白底小卡片，去掉 Bootstrap input-group-text 的灰底/边框/内距 */
.captcha-group .captcha-img {
    display: block;
    height: 30px;
    width: auto;
    padding: 0 5px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(10, 8, 30, .14), inset 0 0 0 1px rgba(10, 8, 30, .06);
    cursor: pointer;
}

/* ============================================================
   订单查询页 · 居中极简搜索（Query.html）
   ============================================================ */
.shop-query {
    --query-ink: #1a1d26;
    --query-muted: #8b93a7;
    --query-line: rgba(15, 23, 42, .18);
    --query-fill: rgba(255, 255, 255, .88);
    --query-btn: #3b5bfd;
    --query-btn-rgb: 59, 91, 253;
    --query-control-h: clamp(46px, 6.2vw, 54px);
    --query-gap: clamp(10px, 1.6vw, 14px);
    --query-form-w: min(100%, 560px);

    position: relative;
    z-index: 1;
    width: min(100% - 32px, 720px);
    margin: 0 auto;
    padding: 48px 0 72px;
    min-height: calc(100vh - 148px);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

:root[data-theme="dark"] .shop-query {
    --query-ink: #f3f5fb;
    --query-muted: #9aa3b8;
    --query-line: rgba(255, 255, 255, .22);
    --query-fill: rgba(23, 26, 34, .78);
    --query-btn: #6b8aff;
    --query-btn-rgb: 107, 138, 255;
}

/* 柔和斜向光带 / 波纹氛围 */
.shop-query__aura {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shop-query__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: .55;
    will-change: transform;
}

.shop-query__blob--a {
    width: 58vw;
    height: 42vw;
    left: -18%;
    bottom: -8%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .95), rgba(226, 232, 255, .35) 55%, transparent 72%);
    transform: rotate(-18deg);
    animation: shop-query-drift 18s ease-in-out infinite alternate;
}

.shop-query__blob--b {
    width: 48vw;
    height: 36vw;
    right: -12%;
    top: 12%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .7), rgba(210, 220, 255, .28) 60%, transparent 75%);
    transform: rotate(12deg);
    animation: shop-query-drift 22s ease-in-out infinite alternate-reverse;
}

.shop-query__blob--c {
    width: 36vw;
    height: 28vw;
    left: 28%;
    top: 38%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 91, 253, .08), transparent 70%);
    filter: blur(60px);
    opacity: .7;
    animation: shop-query-drift 26s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .shop-query__blob--a,
:root[data-theme="dark"] .shop-query__blob--b {
    opacity: .22;
    background: radial-gradient(circle at 40% 40%, rgba(107, 138, 255, .18), transparent 70%);
}

:root[data-theme="dark"] .shop-query__blob--c {
    opacity: .28;
}

@keyframes shop-query-drift {
    from { transform: translate3d(0, 0, 0) rotate(var(--rot, -12deg)); }
    to { transform: translate3d(2.5%, -2%, 0) rotate(calc(var(--rot, -12deg) + 6deg)); }
}

.shop-query__hero {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0 48px;
    min-height: min(58vh, 480px);
    transition: min-height .4s var(--shop-ease), padding .4s var(--shop-ease);
}

.shop-query--queried .shop-query__hero {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: 0;
    padding: 12px 0 28px;
}

.shop-query--queried .shop-query__aura {
    opacity: .45;
}

.shop-query__title {
    margin: 0 0 12px;
    font-size: clamp(2.15rem, 5.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
    color: var(--query-ink);
    text-wrap: balance;
}

.shop-query__desc {
    margin: 0 0 40px;
    max-width: 26em;
    font-size: 14.5px;
    font-weight: 450;
    line-height: 1.6;
    color: var(--query-muted);
}

.shop-query__form {
    width: var(--query-form-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--query-gap);
}

/* 两个输入同一排，等宽同高 */
.shop-query__row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--query-gap);
    width: 100%;
}

.shop-query__input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: var(--query-control-h);
    padding: 0 clamp(14px, 2.2vw, 20px);
    border: 1.5px solid var(--query-line);
    border-radius: 999px;
    background: var(--query-fill);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--query-ink);
    font-size: clamp(13px, 2.4vw, 15px);
    line-height: 1.2;
    outline: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .55) inset,
        0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .2s var(--shop-ease), box-shadow .2s var(--shop-ease), background .2s;
}

.shop-query__input--pass {
    font-size: clamp(12px, 2.1vw, 14px);
}

.shop-query__input::placeholder {
    color: #b0b7c8;
    opacity: 1;
}

:root[data-theme="dark"] .shop-query__input::placeholder {
    color: #7d869c;
}

:root[data-theme="dark"] .shop-query__input {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .04) inset,
        0 8px 24px rgba(0, 0, 0, .22);
}

.shop-query__input:hover {
    border-color: rgba(15, 23, 42, .32);
}

:root[data-theme="dark"] .shop-query__input:hover {
    border-color: rgba(255, 255, 255, .36);
}

.shop-query__input:focus {
    border-color: rgba(var(--query-btn-rgb), .55);
    background: color-mix(in srgb, var(--shop-surface) 92%, white);
    box-shadow:
        0 0 0 4px rgba(var(--query-btn-rgb), .12),
        0 1px 2px rgba(15, 23, 42, .04);
}

:root[data-theme="dark"] .shop-query__input:focus {
    background: color-mix(in srgb, var(--shop-surface) 88%, black);
}

/* 查询按钮：整行在下方，高度与输入框同比例 */
.shop-query__btn,
.btn-search-query {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--query-control-h);
    margin: 0;
    padding: 0 28px;
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #5b78ff 0%, var(--query-btn) 100%);
    font-size: clamp(14px, 2.5vw, 15.5px);
    font-weight: 650;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(var(--query-btn-rgb), .42),
        0 2px 0 rgba(255, 255, 255, .22) inset;
    transition: filter .16s, transform .18s var(--shop-ease), box-shadow .18s;
}

.shop-query__btn:hover,
.btn-search-query:hover {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(var(--query-btn-rgb), .48),
        0 2px 0 rgba(255, 255, 255, .25) inset;
}

.shop-query__btn:active,
.btn-search-query:active {
    transform: translateY(0);
    filter: brightness(.97);
    box-shadow:
        0 6px 16px rgba(var(--query-btn-rgb), .34),
        0 1px 0 rgba(255, 255, 255, .18) inset;
}

.shop-query__body {
    position: relative;
    z-index: 1;
    width: 100%;
}

.shop-query__section-head {
    margin: 4px 0 16px;
    text-align: left;
}

.shop-query__section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--query-ink);
}

.shop-query__empty,
.shop-query__loading {
    text-align: center;
    padding: 40px 18px 32px;
    border-radius: 22px;
    background: var(--query-fill);
    border: 1px solid var(--query-line);
    box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.shop-query__empty i,
.shop-query__loading i {
    font-size: 2.2rem;
    color: var(--query-muted);
    opacity: .75;
}

.shop-query__loading i {
    color: var(--query-btn);
    opacity: 1;
}

.shop-query__empty h6 {
    margin: 14px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--query-ink);
}

.shop-query__empty p,
.shop-query__loading p,
.no-results h6,
.no-results p,
.loading-state p {
    margin: 0;
    color: var(--query-muted) !important;
    font-size: 13.5px;
}

.shop-query__loading p {
    margin-top: 12px;
}

/* 查询页文字 */
.text-muted {
    color: var(--uc-ink-dis) !important;
}

@media (prefers-reduced-motion: reduce) {
    .shop-query__blob {
        animation: none !important;
    }
}

@media (max-width: 767.98px) {
    .shop-query {
        --query-form-w: min(100%, 520px);
        --query-control-h: 48px;
        width: min(100% - 28px, 720px);
        padding: 32px 0 56px;
    }

    .shop-query__hero {
        min-height: min(52vh, 420px);
        padding: 24px 0 36px;
    }

    .shop-query__desc {
        margin-bottom: 32px;
    }
}

@media (max-width: 575.98px) {
    .shop-query {
        --query-form-w: 100%;
        --query-control-h: 46px;
        --query-gap: 10px;
        width: min(100% - 24px, 720px);
        padding: 24px 0 48px;
        min-height: calc(100vh - 132px);
    }

    .shop-query__hero {
        min-height: min(48vh, 380px);
        padding: 16px 0 28px;
    }

    .shop-query__title {
        font-size: clamp(1.9rem, 9vw, 2.35rem);
    }

    .shop-query__desc {
        margin-bottom: 26px;
        font-size: 13.5px;
    }

    /* 窄屏仍保持一排，略缩左右内边距；过窄再叠成上下 */
    .shop-query__row {
        grid-template-columns: 1fr 1fr;
    }

    .shop-query__input {
        padding: 0 12px;
    }
}

@media (max-width: 379.98px) {
    .shop-query__row {
        grid-template-columns: 1fr;
    }
}

/* ---------- 页脚 ---------- */
footer {
    text-align: center;
    padding: 26px 16px 34px;
    color: var(--uc-ink-dis);
    font-size: 12.5px;
}

footer a {
    color: var(--uc-ink-med);
}

/* ---------- 加载遮罩（沿用） ---------- */
.net-loading {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
}

/* ============================================================
   补齐：JS 动态渲染的组件（付款方式 / 订单查询结果 / 卡密展示）
   —— 这些类由 item.js、query.js 注入，重写样式时要一并玻璃化
   ============================================================ */

/* ---------- 付款方式（item 页 .pay-list .pay） ---------- */
.pay-list .pay {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 11px;
    border-radius: 12px;
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border-soft);
    color: var(--uc-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .16s;
}

.pay-list .pay img {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.pay-list .pay span {
    color: var(--uc-ink);
}

.pay-list .pay:hover {
    border-color: var(--uc-focus);
    background: rgba(var(--uc-focus-rgb), .08);
    transform: translateY(-1px);
    box-shadow: var(--glass-shadow);
}

.pay-list .pay.selected {
    border-color: transparent;
    background: var(--md-primary);
}

.pay-list .pay.selected span {
    color: var(--md-on-primary);
}

/* ---------- 订单查询结果（query.js .order-item） ---------- */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-item {
    border-radius: 16px;
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border-soft);
    padding: 18px 20px;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.order-item:hover {
    box-shadow: var(--glass-shadow-lg);
    border-color: var(--glass-border);
}

.order-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.order-left {
    flex: 1 1 auto;
    min-width: 0;
}

.order-right {
    flex: 0 0 auto;
    text-align: right;
}

.order-status {
    margin-bottom: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-pending,
.status-waiting-shipment {
    color: #d98a00;
    background: rgba(217, 138, 0, .15);
}

.status-paid,
.status-completed,
.status-shipped {
    color: #1fa971;
    background: rgba(31, 169, 113, .15);
}

.status-cancelled {
    color: #e5484d;
    background: rgba(229, 72, 77, .15);
}

.order-basic {
    font-size: 13px;
    color: var(--uc-ink-med);
    line-height: 2;
}

.order-no {
    font-weight: 600;
    color: var(--uc-ink);
}

.payment-dst .payment-method {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    vertical-align: middle;
}

.payment-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
}

.order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.amount-label {
    font-size: 12px;
    color: var(--uc-ink-dis);
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #f0435f;
    line-height: 1.1;
}

:root[data-theme="dark"] .amount-value {
    color: #ff8095;
}

.goods-section {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border-soft);
}

.goods-thumb {
    flex: 0 0 auto;
}

.goods-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(var(--md-primary-rgb), .06);
}

.goods-details {
    flex: 1 1 auto;
    min-width: 0;
}

.goods-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-ink);
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.goods-sku {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
}

/* ---------- 卡密 / 发货区块（已付款订单） ---------- */
.card-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border-soft);
}

.card-title.shipment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.shipment-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-ink);
}

.shipment-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.shipment-waiting,
.shipment-pending {
    color: #d98a00;
    background: rgba(217, 138, 0, .16);
}

.shipment-paid,
.shipment-shipped {
    color: #1fa971;
    background: rgba(31, 169, 113, .15);
}

.card-content-no-password {
    margin-top: 6px;
}

.card-display {
    white-space: pre-line;
    word-break: break-all;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--uc-field-bg);
    border: 1px solid var(--glass-border-soft);
    color: var(--uc-ink);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- File-card download rows (acgDelivery, ready.js): query page + purchase dialog ---------- */
body.uc-body {
    --acg-delivery-accent: var(--md-primary);
    --acg-delivery-accent-soft: rgba(var(--md-primary-rgb), .07);
    --acg-delivery-on-accent: var(--md-on-primary);
    --acg-delivery-surface: var(--uc-field-bg);
    --acg-delivery-border: var(--glass-border-soft);
    --acg-delivery-radius: 12px;
    --acg-delivery-success: #1fa971;
}

:root[data-theme="dark"] body.uc-body {
    --acg-delivery-success: #4fd39b;
}

body.uc-body .acg-delivery__file {
    margin: 0;
    line-height: 1.5;
    box-shadow: var(--glass-hi);
}

body.uc-body .acg-delivery__icon {
    box-shadow: inset 0 0 0 1px rgba(var(--md-primary-rgb), .06);
}

body.uc-body .acg-delivery__name {
    color: var(--uc-ink);
}

body.uc-body .acg-delivery__sub,
body.uc-body .acg-delivery__url {
    color: var(--uc-ink-med);
    opacity: 1;
}

body.uc-body .acg-delivery__url {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.uc-body .card-section .acg-delivery__download,
body.uc-body .card-section .acg-delivery__copy {
    min-height: 36px;
    border-radius: 11px;
}

body.uc-body .card-section .acg-delivery__download {
    box-shadow: 0 4px 14px rgba(var(--md-primary-rgb), .22);
}

@media (pointer: coarse) {
    body.uc-body .card-section .acg-delivery__download,
    body.uc-body .card-section .acg-delivery__copy {
        min-height: 40px;
    }
}

body.uc-body .acg-delivery__copy {
    color: var(--uc-ink);
    border-color: rgba(var(--md-primary-rgb), .16);
    background: var(--glass-bg-soft);
}

body.uc-body .acg-delivery__copy:hover {
    background: rgba(var(--md-primary-rgb), .07);
}

body.uc-body .acg-delivery__copy.is-done {
    color: var(--acg-delivery-success);
    border-color: currentColor;
}

body.uc-body .acg-delivery__download:focus-visible,
body.uc-body .acg-delivery__copy:focus-visible {
    outline-color: var(--uc-focus);
}

@media (max-width: 520px) {
    body.uc-body .acg-delivery__file {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        column-gap: 12px;
        row-gap: 10px;
    }

    body.uc-body .acg-delivery__icon {
        width: 40px;
        height: 40px;
    }

    body.uc-body .acg-delivery__actions {
        grid-column: 2;
    }
}

/* Purchase dialog (treasure.show): glass card that stays readable in dark mode */
body.uc-body .layui-layer-page:has(.acg-secret) {
    color: var(--uc-ink);
    background: var(--glass-bg-strong) !important;
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow-lg), var(--glass-hi);
    overflow: hidden;
}

:root[data-theme="dark"] body.uc-body .layui-layer-page:has(.acg-secret) {
    background: rgba(28, 32, 41, .9) !important;
}

body.uc-body .layui-layer-page:has(.acg-secret) .layui-layer-title {
    color: var(--uc-ink);
    font-weight: 600;
    box-shadow: none;
    border-bottom: 1px solid var(--glass-border-soft) !important;
}

body.uc-body .layui-layer-page:has(.acg-secret) .layui-layer-title i {
    color: var(--uc-ink-med);
}

:root[data-theme="dark"] body.uc-body .layui-layer-page:has(.acg-secret) .layui-layer-close {
    filter: invert(1);
}

.password-form .input-group,
.card-password-section .input-group {
    display: flex;
    gap: 8px;
}

.card-loading .loading-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 2px;
    color: var(--uc-ink-med);
    font-size: 13px;
}

/* ---------- 通用主按钮（查看卡密 / 复制 等） ---------- */
.btn-primary,
.view-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: var(--md-on-primary);
    background: var(--md-primary);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--md-primary-rgb), .28);
    white-space: nowrap;
}

.btn-primary:hover,
.view-card-btn:hover {
    filter: brightness(1.06);
    color: var(--md-on-primary);
}

/* ---------- 批发优惠阶梯 ---------- */
.shop-wholesale {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(var(--shop-accent-rgb), .18);
    background:
        linear-gradient(145deg, rgba(var(--shop-accent-rgb), .1) 0%, rgba(var(--shop-accent-rgb), .03) 48%, transparent 100%),
        color-mix(in srgb, var(--shop-surface) 92%, rgba(125, 125, 135, .08));
}

.shop-wholesale__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-wholesale__head strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--uc-ink);
    letter-spacing: -.01em;
}

.shop-wholesale__head span {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--uc-ink-med);
}

.shop-wholesale__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.shop-wholesale__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--shop-surface) 88%, transparent);
    border: 1px solid var(--shop-card-border);
    transition: border-color .18s, background .18s, transform .18s;
}

.shop-wholesale__row:hover {
    border-color: rgba(var(--shop-accent-rgb), .28);
    background: rgba(var(--shop-accent-rgb), .06);
}

.shop-wholesale__qty {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 15px;
    font-weight: 750;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.shop-wholesale__qty em {
    font-style: normal;
    font-size: 12px;
    font-weight: 650;
    color: var(--shop-accent);
    margin-right: 1px;
}

.shop-wholesale__qty small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uc-ink-dis);
    margin-left: 2px;
}

.shop-wholesale__arrow {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--shop-accent-rgb), .45));
    position: relative;
}

.shop-wholesale__arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(var(--shop-accent-rgb), .55);
    border-top: 1.5px solid rgba(var(--shop-accent-rgb), .55);
    transform: translateY(-50%) rotate(45deg);
}

.shop-wholesale__price {
    justify-self: end;
    font-size: 16px;
    font-weight: 750;
    color: #f0435f;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1;
}

.shop-wholesale__price small {
    font-size: 11px;
    font-weight: 650;
    margin-right: 1px;
    opacity: .85;
}

:root[data-theme="dark"] .shop-wholesale__price {
    color: #ff8095;
}

/* 兼容旧 class（若缓存未刷新） */
.wholesale-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: 12px;
    overflow: hidden;
}

/* ---------- 杂项 ---------- */
.acg-tag--cyan { color: #0891b2; background: rgba(8, 145, 178, .14); }
.acg-tag--gray { color: var(--uc-ink-dis); background: rgba(125, 125, 135, .16); }
.acg-tag--pink { color: #ec4899; background: rgba(236, 72, 153, .14); }

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--uc-ink);
}

.muted {
    color: var(--uc-ink-dis);
}

/* ---------- 全局加载转圈（Loading 组件 .chahuo-ring）玻璃化 ---------- */
/* 仅覆写 CSS 变量 + 给卡片加磨砂，不动核心 loading.js 结构；日夜自适应 */
:root[data-theme] {
    --chahuo-ring-card: var(--glass-bg-strong);
    --chahuo-ring-color: var(--uc-focus);
    --chahuo-ring-rgb: var(--uc-focus-rgb);
    --chahuo-ring-track: rgba(125, 125, 135, .22);
    --chahuo-ring-overlay: rgba(255, 255, 255, .16);
}

:root[data-theme="dark"] {
    --chahuo-ring-overlay: rgba(8, 10, 16, .34);
}

.chahuo-ring-overlay .chahuo-ring {
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-lg) !important;
}

/* 无商品的分类：置灰 + 不可点击 */
.chip.is-disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--uc-ink-dis);
    background: rgba(125, 125, 135, .1);
    border-color: transparent;
    filter: grayscale(1);
}


/* ---------- 商品详情右栏精修（小而精致，不放大） ---------- */
.item-buy > h4 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0 0 9px;
}

.item-buy .abacus {
    margin: 0 !important;
    min-height: 0;
}

.item-buy .abacus .price {
    font-size: 22px;
    font-weight: 700;
}

.item-buy .abacus .price .unit {
    font-size: 13px;
    font-weight: 700;
    margin-right: 1px;
}

/* 价格与分隔线之间不要太空 */
.buy-divider {
    height: 1px;
    background: var(--glass-border-soft);
    margin: 10px 0 14px;
}

.item-buy form.vstack {
    gap: 12px;
}

.item-buy .form-label {
    font-size: 12.5px;
    margin-bottom: 6px;
}

.cash-pay {
    padding: 11px 13px;
}

.cash-pay > label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uc-ink);
}

.cash-pay > label i {
    color: var(--uc-ink-med);
    font-size: 14px;
}

/* ============================================================
   商品详情页 · Yunshu（shop-item）
   ============================================================ */
.shop-item {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 56px;
    position: relative;
    z-index: 1;
}

.shop-item__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
}

.shop-item__bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.shop-item__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 10px 0 6px;
    border-radius: 999px;
    color: var(--uc-ink-med);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .18s, color .18s;
}

.shop-item__back .material-icons-outlined {
    font-size: 20px;
}

.shop-item__back:hover {
    color: var(--uc-ink);
    background: rgba(125, 125, 135, .1);
}

.shop-item__bar-sep {
    width: 1px;
    height: 18px;
    background: var(--shop-card-border);
    flex: 0 0 auto;
}

.shop-item__bar-title {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    color: var(--uc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.shop-item__bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.shop-item__bar-price .price {
    font-size: 18px;
    font-weight: 750;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.shop-item__bar-price .price .unit {
    font-size: 12px;
    margin-right: 1px;
    opacity: .75;
}

.shop-item__bar-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 650;
    color: #fff;
    text-decoration: none;
    background: var(--shop-accent);
    box-shadow: 0 6px 16px rgba(var(--shop-accent-rgb), .28);
    transition: transform .2s var(--shop-ease), filter .2s;
}

.shop-item__bar-buy:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.shop-item__main {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

.shop-item__visual {
    /* 手机约 66vw≈260，桌面随视口长到 420，不写死断点 */
    --item-card-w: clamp(240px, 66vw, 420px);
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    padding: clamp(12px, 1.6vw, 18px);
    border-radius: 18px;
    background: color-mix(in srgb, var(--shop-surface) 92%, #e8ecf4 8%);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
    overflow: visible;
}

/* 桌面：左侧卡随滚动贴住，到「商品详情」区块前停止；上滑再回到顶部 */
@media (min-width: 992px) {
    .shop-item__visual {
        position: sticky;
        /* 顶栏 sticky ~68px，再留一点间距 */
        top: 84px;
        z-index: 5;
        align-self: start;
    }
}

:root[data-theme="dark"] .shop-item__visual {
    background: color-mix(in srgb, var(--shop-surface) 94%, #000 6%);
}

/* 卡宽跟 --item-card-w；内部字号/图标用 cqi 跟着卡宽缩放 */
.shop-item__stage {
    container-type: inline-size;
    container-name: item-card;
    width: var(--item-card-w);
    max-width: 100%;
    margin: 0 auto 14px;
    perspective: 1100px;
    perspective-origin: 50% 45%;
    padding: 6px 4px 8px;
    box-sizing: border-box;
}

.shop-item__pcard {
    width: 100%;
    border-radius: clamp(12px, 4.2cqi, 18px);
    padding: clamp(12px, 4.2cqi, 18px) clamp(12px, 4.8cqi, 20px);
    transform-origin: 50% 60%;
    transform-style: preserve-3d;
    /* 默认向右倾斜，移入后回正 */
    transform: rotateX(6deg) rotateY(12deg) rotateZ(2deg) translate3d(0, 2px, 0);
    transition:
        transform .48s var(--shop-ease),
        box-shadow .48s var(--shop-ease);
    will-change: transform;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, .2),
        0 1px 0 rgba(255, 255, 255, .08) inset;
}

.shop-item__pcard .shop-pcard__brand {
    top: clamp(10px, 3.6cqi, 16px);
    left: clamp(12px, 4.2cqi, 18px);
    font-size: clamp(12px, 3.8cqi, 15px);
}

.shop-item__pcard .shop-pcard__tag {
    top: clamp(10px, 3.6cqi, 16px);
    right: clamp(12px, 4.2cqi, 18px);
    font-size: clamp(10px, 3.2cqi, 12px);
}

.shop-item__pcard .shop-pcard__chip {
    left: clamp(12px, 4.2cqi, 18px);
    top: 44%;
    width: clamp(22px, 7.2cqi, 30px);
    height: clamp(17px, 5.5cqi, 23px);
}

.shop-item__pcard .shop-pcard__plan {
    left: clamp(12px, 4.2cqi, 18px);
    bottom: clamp(32px, 10cqi, 42px);
    font-size: clamp(18px, 7.2cqi, 28px);
}

.shop-item__pcard .shop-pcard__meta {
    left: clamp(12px, 4.2cqi, 18px);
    bottom: clamp(12px, 3.8cqi, 16px);
    font-size: clamp(10px, 3.2cqi, 12px);
    max-width: 60%;
}

/* 详情卡封面：随卡宽比例缩放 */
.shop-item__pcard .shop-pcard__logo {
    opacity: .62;
    width: clamp(56px, 24cqi, 96px);
    height: clamp(56px, 24cqi, 96px);
    right: clamp(6px, 2.4cqi, 12px);
}

.shop-item__pcard .shop-pcard__price {
    display: none;
}

.shop-item__pcard .shop-pcard__sn {
    right: clamp(12px, 4.2cqi, 18px);
    bottom: clamp(12px, 3.8cqi, 16px);
    font-size: clamp(9px, 2.8cqi, 11px);
}

.shop-item__pcard.is-hot,
.shop-item__stage:hover .shop-item__pcard,
.shop-item__stage:focus-within .shop-item__pcard {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, .26),
        0 1px 0 rgba(255, 255, 255, .12) inset;
}

.shop-item__pcard.is-hot .shop-pcard__sheen,
.shop-item__stage:hover .shop-item__pcard .shop-pcard__sheen,
.shop-item__stage:focus-within .shop-item__pcard .shop-pcard__sheen {
    opacity: 1;
}

.shop-item__pcard.shop-pcard--grok.is-hot .shop-pcard__sheen,
.shop-item__stage:hover .shop-item__pcard.shop-pcard--grok .shop-pcard__sheen {
    opacity: .72;
}

/* 统计条：与卡同宽，随比例伸缩 */
.shop-item__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: var(--item-card-w);
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(8px, 2.4vw, 12px) 4px;
    border-radius: 14px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}

.shop-item__stat {
    position: relative;
    text-align: center;
    min-width: 0;
    padding: 2px 8px;
}

.shop-item__stat + .shop-item__stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: var(--shop-card-border);
}

.shop-item__stat-label {
    display: block;
    font-size: 12px;
    color: var(--uc-ink-dis);
    margin-bottom: 4px;
}

.shop-item__stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--uc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item__stat-value--stock.is-ok,
.shop-item__stat-value--stock:not(.is-soldout) {
    color: #16a34a;
}

:root[data-theme="dark"] .shop-item__stat-value--stock.is-ok,
:root[data-theme="dark"] .shop-item__stat-value--stock:not(.is-soldout) {
    color: #4ade80;
}

.shop-item__stat-value--stock.is-soldout,
.shop-item__stat-value.badge-soft-danger {
    color: #ef4444 !important;
}

.shop-item__buy {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
    scroll-margin-top: 88px;
}

.shop-item__title {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--uc-ink);
}

.shop-item__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-item__share {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--uc-ink-med);
    font-size: 12.5px;
    cursor: pointer;
    transition: color .16s, background .16s;
}

.shop-item__share .material-icons-outlined {
    font-size: 16px;
}

.shop-item__share:hover {
    color: var(--shop-accent);
    background: rgba(var(--shop-accent-rgb), .08);
}

.shop-item__price-row {
    margin: 0 0 14px !important;
}

.shop-item__price-row .price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
}

.shop-item__price-row .price .unit {
    font-size: 15px;
    font-weight: 700;
    margin-right: 2px;
    opacity: .8;
}

.shop-item__tips {
    margin: 0 0 18px;
    padding: 0 0 0 18px;
    color: var(--uc-ink-med);
    font-size: 13px;
    line-height: 1.7;
}

.shop-item__tips li + li {
    margin-top: 2px;
}

.shop-item__form {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--shop-card-border);
    background: color-mix(in srgb, var(--shop-surface) 88%, rgba(125, 125, 135, .08));
}

/* 详情页控件下拉（替代原生 select） */
.shop-wselect {
    position: relative;
    width: 100%;
}

.shop-wselect__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--shop-card-border);
    background: var(--uc-field-bg, var(--shop-surface));
    color: var(--uc-ink);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition:
        border-color .18s var(--shop-ease),
        box-shadow .18s var(--shop-ease),
        background .18s;
}

.shop-wselect__btn:hover {
    border-color: rgba(var(--shop-accent-rgb), .4);
}

.shop-wselect.is-open .shop-wselect__btn,
.shop-wselect__btn:focus-visible {
    border-color: rgba(var(--shop-accent-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--shop-accent-rgb), .18);
}

.shop-wselect__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-wselect__caret {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--uc-ink-med);
    transition: transform .22s var(--shop-ease);
}

.shop-wselect.is-open .shop-wselect__caret {
    transform: rotate(180deg);
    color: var(--shop-accent);
}

.shop-wselect__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    max-height: min(320px, 52vh);
    margin: 0;
    padding: 6px;
    list-style: none;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid var(--shop-card-border);
    background: color-mix(in srgb, var(--shop-surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, .2),
        0 1px 0 rgba(255, 255, 255, .05) inset;
    animation: shop-wselect-in .22s var(--shop-ease) both;
    -webkit-overflow-scrolling: touch;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 125, 145, .45) transparent;
}

:root[data-theme="dark"] .shop-wselect__menu {
    background: color-mix(in srgb, var(--shop-surface) 92%, #000 8%);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .45),
        0 1px 0 rgba(255, 255, 255, .06) inset;
    scrollbar-color: rgba(160, 168, 190, .38) transparent;
}

/* WebKit 细滚动条：暗色轨道，无系统白底箭头 */
.shop-wselect__menu::-webkit-scrollbar {
    width: 8px;
}

.shop-wselect__menu::-webkit-scrollbar-track {
    margin: 8px 0;
    background: transparent;
    border-radius: 999px;
}

.shop-wselect__menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: rgba(125, 125, 145, .42);
}

.shop-wselect__menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(125, 125, 145, .62);
}

:root[data-theme="dark"] .shop-wselect__menu::-webkit-scrollbar-thumb {
    background-color: rgba(170, 178, 200, .35);
}

:root[data-theme="dark"] .shop-wselect__menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(190, 198, 220, .52);
}

.shop-wselect__menu::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.shop-wselect__menu::-webkit-scrollbar-corner {
    background: transparent;
}

.shop-wselect__option {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--uc-ink-med);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: background .14s, color .14s;
}

.shop-wselect__option:hover {
    color: var(--uc-ink);
    background: rgba(var(--shop-accent-rgb), .1);
}

.shop-wselect__option.is-active {
    color: #fff;
    background: var(--shop-accent);
    font-weight: 650;
    box-shadow: 0 4px 12px rgba(var(--shop-accent-rgb), .28);
}

.shop-wselect__option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

@keyframes shop-wselect-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-wselect__menu {
        animation: none;
    }

    .shop-wselect__caret {
        transition: none;
    }
}

/* 未登录下单提示：走主题色，不用 Bootstrap 黄底 */
.shop-item__login-gate {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--shop-accent-rgb), .22);
    background: rgba(var(--shop-accent-rgb), .08);
}

.shop-item__login-gate-text {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--uc-ink-med);
}

.shop-item__login-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-item__login-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none;
    transition: transform .18s var(--shop-ease), filter .18s, background .18s, border-color .18s, color .18s;
}

.shop-item__login-gate-btn--primary {
    color: #fff;
    background: var(--shop-accent);
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(var(--shop-accent-rgb), .28);
}

.shop-item__login-gate-btn--primary:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.shop-item__login-gate-btn--ghost {
    color: var(--shop-accent);
    background: transparent;
    border: 1px solid rgba(var(--shop-accent-rgb), .4);
}

.shop-item__login-gate-btn--ghost:hover {
    color: var(--uc-ink);
    background: rgba(var(--shop-accent-rgb), .12);
    border-color: rgba(var(--shop-accent-rgb), .55);
}

.shop-item__detail {
    padding: 28px 22px 24px;
    border-radius: 22px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
}

.shop-item__detail-head {
    text-align: center;
    margin-bottom: 20px;
}

.shop-item__detail-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--uc-ink);
}

.shop-item__detail-desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--uc-ink-dis);
}

.shop-item__detail-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 8px 0;
    color: var(--uc-ink-med);
    font-size: 14.5px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    text-align: center;
}

.shop-item__detail-body :is(p, div, section, article, ul, ol, h1, h2, h3, h4, h5, h6, table) {
    margin-left: auto;
    margin-right: auto;
}

.shop-item__detail-body :is(ul, ol) {
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.shop-item__detail-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.shop-item__detail-body a {
    color: var(--shop-accent);
}

.shop-item__detail-body table {
    text-align: left;
}

/* ----- 详情页响应式 ----- */
@media (max-width: 991.98px) {
    .shop-item {
        width: min(100% - 28px, 1100px);
        padding-bottom: 48px;
    }

    .shop-item__main {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-item__bar-title {
        max-width: 42vw;
    }
}

@media (max-width: 767.98px) {
    .shop-item {
        width: min(100% - 20px, 1100px);
        padding: 8px 0 88px;
    }

    .shop-item__bar {
        /* 顶栏 sticky ~68px，详情条贴在其下，避免被盖住 */
        position: sticky;
        top: 68px;
        z-index: 30;
        min-height: 52px;
        padding: 8px 10px 8px 8px;
        margin-bottom: 14px;
        border-radius: 14px;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: color-mix(in srgb, var(--shop-surface) 88%, transparent);
    }

    .shop-item__back-text {
        display: none;
    }

    .shop-item__back {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .shop-item__bar-sep {
        display: none;
    }

    .shop-item__bar-title {
        font-size: 13.5px;
        max-width: none;
    }

    .shop-item__bar-price {
        display: none;
    }

    .shop-item__bar-buy {
        min-width: 76px;
        height: 34px;
        font-size: 13px;
    }

    .shop-item__visual {
        border-radius: 16px;
    }

    .shop-item__stage {
        margin-bottom: 10px;
        padding: 4px 2px 6px;
        /* 触控端减弱倾斜，避免裁切与误触 */
        perspective: 900px;
    }

    .shop-item__pcard {
        transform: rotateX(4deg) rotateY(8deg) rotateZ(1.5deg) translate3d(0, 1px, 0);
    }

    .shop-item__stats {
        border-radius: 12px;
    }

    .shop-item__stat {
        padding: 2px 4px;
    }

    .shop-item__stat-label {
        font-size: 11px;
    }

    .shop-item__stat-value {
        font-size: 13px;
    }

    .shop-item__buy {
        padding: 18px 16px 16px;
        border-radius: 18px;
        scroll-margin-top: 72px;
    }

    .shop-item__title {
        font-size: 1.2rem;
    }

    .shop-item__share span:not(.material-icons-outlined) {
        display: none;
    }

    .shop-item__share {
        margin-left: 0;
        width: 28px;
        padding: 0;
        justify-content: center;
    }

    .shop-item__price-row .price {
        font-size: 24px;
    }

    .shop-item__tips {
        font-size: 12.5px;
        margin-bottom: 14px;
        padding-left: 16px;
    }

    .shop-item__form {
        padding: 14px;
        border-radius: 14px;
    }

    .shop-item__form .captcha-group {
        width: 100% !important;
        max-width: 280px;
    }

    .shop-item__detail {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .shop-item__detail-body {
        font-size: 14px;
    }

    .shop-item .pay-list {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    }
}

@media (max-width: 420px) {
    .shop-item__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-item__meta-row .badge-soft {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-item__bar-buy {
        transition: none;
    }

    .shop-item__bar-buy:hover {
        transform: none;
    }

    .shop-item__pcard,
    .shop-item__pcard.is-hot,
    .shop-item__stage:hover .shop-item__pcard,
    .shop-item__stage:focus-within .shop-item__pcard {
        transition: none !important;
        transform: none !important;
    }

    .shop-item__pcard .shop-pcard__sheen {
        opacity: 0 !important;
    }
}

/* ---------- 自选卡密弹窗（自助选号）精修 ---------- */
/* 1) 标题小一点 */
.layui-layer-title {
    font-size: 15px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.layui-layer-title i,
.layui-layer-title .fa-duotone {
    font-size: 15px !important;
}

/* 2) 搜索浮动标签要盖住输入框描边（前台未加载 _glass.js 的 fieldset notch，
   _glass.css 把标签背景设成透明会让描边穿过标签，这里补回实底背景形成缺口） */
:root[data-theme] .table-search .mui-sf__label {
    background: #fff !important;
    padding: 0 6px !important;
}

/* ============================================================
   首页 Yunshu 布局：Hero / 公告条 / 选购区 / 弹层 / 动效 / 响应式
   ============================================================ */

.shop-home {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 56px;
}

/* ----- Hero ----- */
.shop-hero {
    padding: 36px 0 28px;
}

.shop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px 36px;
    align-items: center;
}

.shop-hero__inner {
    max-width: 640px;
    min-width: 0;
}

.shop-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 14px 0 8px;
    border-radius: 999px;
    border: 1px solid var(--shop-card-border);
    background: color-mix(in srgb, var(--shop-surface) 88%, transparent);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    margin-bottom: 22px;
}

.shop-hero__badge-logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    object-fit: cover;
}

.shop-hero__badge-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--uc-ink);
}

.shop-hero__badge-sep {
    width: 1px;
    height: 14px;
    background: var(--shop-card-border);
}

.shop-hero__badge-tag {
    font-size: 12.5px;
    color: var(--uc-ink-dis);
    font-weight: 500;
}

.shop-hero__title {
    display: flex;
    flex-direction: column;
    align-items: center; /* 「即买即发」相对店名水平居中 */
    width: max-content;
    max-width: 100%;
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--uc-ink);
}

/* 标题字：左上→右下光束扫过，只作用在字形上（亮/暗主题都可用） */
.shop-hero__title-main,
.shop-hero__title-grad {
    display: block;
    position: relative;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;
    animation: shop-title-beam 2.6s linear infinite;
    forced-color-adjust: none;
    -webkit-font-smoothing: antialiased;
}

.shop-hero__title-main {
    /* 底层字色 + 斜向高光带，光束占满整段文字区域；从左往右扫 */
    background-image:
        linear-gradient(
            125deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, .12) 44%,
            rgba(255, 255, 255, .96) 50%,
            rgba(180, 210, 255, .92) 52%,
            rgba(255, 255, 255, .12) 56%,
            transparent 62%,
            transparent 100%
        ),
        linear-gradient(180deg, var(--uc-ink) 0%, var(--uc-ink) 100%);
    background-size: 220% 220%, 100% 100%;
    background-position: 100% 0%, 0 0;
}

.shop-hero__title-grad {
    background-image:
        linear-gradient(
            125deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, .16) 44%,
            rgba(255, 255, 255, .98) 50%,
            rgba(200, 230, 255, .95) 52%,
            rgba(255, 255, 255, .16) 56%,
            transparent 62%,
            transparent 100%
        ),
        linear-gradient(105deg, var(--shop-accent) 0%, var(--shop-accent-2, var(--shop-accent)) 55%, #4cc9f0 120%);
    background-size: 220% 220%, 100% 100%;
    background-position: 100% 0%, 0 0;
}

@keyframes shop-title-beam {
    /* 从字外一侧扫进，整段掠过后再出画，中间无停顿，循环时像重新飞过 */
    0% {
        background-position: 130% -15%, 0 0;
    }
    100% {
        background-position: -30% 115%, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-hero__title-main,
    .shop-hero__title-grad {
        animation: none;
        background-position: 40% 40%, 0 0;
    }
}

.shop-hero__desc {
    margin: 0 0 26px;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--uc-ink-med);
}

.shop-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-bottom: 28px;
}

.shop-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(135deg, var(--shop-accent), color-mix(in srgb, var(--shop-accent) 70%, var(--shop-accent-2)));
    box-shadow: 0 10px 28px rgba(var(--shop-accent-rgb), .35);
    transition: transform .28s var(--shop-ease), box-shadow .28s var(--shop-ease), filter .2s;
}

.shop-hero__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(var(--shop-accent-rgb), .42);
    filter: brightness(1.03);
}

.shop-hero__cta i {
    font-size: 14px;
    transition: transform .28s var(--shop-ease);
}

.shop-hero__cta:hover i {
    transform: translateX(3px);
}

.shop-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--shop-accent);
    transition: gap .22s var(--shop-ease), opacity .2s;
}

.shop-hero__link:hover {
    gap: 9px;
    opacity: .9;
    color: var(--shop-accent);
}

.shop-hero__feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 560px;
}

.shop-feat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 14px 14px 13px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--shop-surface) 94%, transparent);
    border: 1px solid rgba(15, 23, 42, .1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

:root[data-theme="dark"] .shop-feat {
    border-color: rgba(255, 255, 255, .12);
}

.shop-feat__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--shop-accent-rgb), .1);
    color: var(--shop-accent);
    font-size: 15px;
    flex: 0 0 auto;
}

.shop-feat__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    line-height: 1.3;
}

.shop-feat__text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--uc-ink);
}

.shop-feat__text em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--uc-ink-dis);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----- Hero 右侧会员卡叠层 ----- */
.shop-hero__stage {
    position: relative;
    justify-self: end;
    align-self: end;
    width: 100%;
    max-width: 520px;
    min-height: 400px;
    margin: 48px 0 8px 24px;
    perspective: 1200px;
}

.shop-card-stack {
    position: relative;
    display: block;
    width: 100%;
    height: 400px;
    color: inherit;
    outline: none;
    transform-style: preserve-3d;
    --fan: 0;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transition: transform .45s var(--shop-ease);
}

.shop-card-stack:focus-visible {
    outline: 2px solid rgba(var(--shop-accent-rgb), .45);
    outline-offset: 6px;
    border-radius: 18px;
}

.shop-mcard {
    /* 扇形：默认张得更开，悬停再略扩一点 */
    --rot: calc(-42deg + var(--i) * 26deg);           /* -42 / -16 / 10 / 36 */
    --fan-r: calc((var(--i) - 1.5) * 5deg * var(--fan));
    --ox: calc((var(--i) - 1.5) * 18px);
    --oy: calc(var(--i) * 10px);
    --fan-x: calc((var(--i) - 1.5) * 6px * var(--fan));
    --fan-y: calc(var(--i) * 3px * var(--fan));
    position: absolute;
    left: 10%;
    top: 0;
    width: min(286px, 78%);
    aspect-ratio: 1.68 / 1;
    border-radius: 18px;
    padding: 16px 18px;
    box-sizing: border-box;
    overflow: hidden;
    transform:
        translate3d(calc(var(--ox) + var(--fan-x)), calc(var(--oy) + var(--fan-y)), calc(var(--i) * 16px))
        rotate(calc(var(--rot) + var(--fan-r)))
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y));
    /* 枢轴再往下一点，扇面更舒展 */
    transform-origin: 50% 140%;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, .18),
        0 2px 0 rgba(255, 255, 255, .08) inset;
    transition:
        transform .55s var(--shop-ease),
        box-shadow .45s var(--shop-ease);
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.shop-card-stack.is-hot .shop-mcard,
.shop-card-stack:hover .shop-mcard {
    box-shadow:
        0 26px 52px rgba(15, 23, 42, .24),
        0 2px 0 rgba(255, 255, 255, .12) inset;
}

.shop-mcard--claude {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 55%, #17120f 100%);
    color: #f4f1ec;
    z-index: 1;
}

.shop-mcard--gemini {
    background: linear-gradient(145deg, #1c2a4a 0%, #121a33 60%, #1a1640 100%);
    color: #eef2ff;
    z-index: 2;
}

.shop-mcard--grok {
    background: linear-gradient(145deg, #f3f3f1 0%, #e7e7e4 55%, #f7f7f5 100%);
    color: #121212;
    z-index: 3;
}

.shop-mcard--gpt {
    background: linear-gradient(145deg, #1f4a3a 0%, #16362b 55%, #0f2a22 100%);
    color: #eef7f2;
    z-index: 4;
}

.shop-mcard__brand {
    position: absolute;
    top: 16px;
    left: 18px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .01em;
}

.shop-mcard__tag {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 11px;
    font-weight: 600;
    opacity: .55;
}

.shop-mcard__chip {
    position: absolute;
    left: 18px;
    top: 46%;
    width: 28px;
    height: 22px;
    border-radius: 5px;
    background:
        linear-gradient(135deg, #f2d48a 0%, #c9a24a 40%, #f7e2a8 55%, #a67c2d 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.shop-mcard__chip::after {
    content: "";
    position: absolute;
    inset: 4px 3px;
    background:
        linear-gradient(#0000 45%, rgba(0, 0, 0, .22) 46% 54%, #0000 55%),
        linear-gradient(90deg, #0000 45%, rgba(0, 0, 0, .22) 46% 54%, #0000 55%);
    opacity: .55;
}

.shop-mcard__plan {
    position: absolute;
    left: 18px;
    bottom: 34px;
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1;
}

.shop-mcard--claude .shop-mcard__plan {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
}

.shop-mcard__meta {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-size: 11px;
    opacity: .62;
}

.shop-mcard__sn {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .45;
    font-variant-numeric: tabular-nums;
}

.shop-mcard__logo {
    position: absolute;
    right: 10px;
    top: 42%;
    width: 78px;
    height: 78px;
    transform: translateY(-40%);
    opacity: .92;
    pointer-events: none;
}

.shop-mcard__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 卡面光斑：实体圆跟着 --shine-x/y 走（left/top + 居中），不被挡在卡后 */
.shop-mcard__sheen {
    position: absolute;
    left: var(--shine-x, 42%);
    top: var(--shine-y, 30%);
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, .78) 0%,
        rgba(255, 255, 255, .38) 28%,
        rgba(255, 255, 255, .1) 52%,
        transparent 70%
    );
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .2s ease;
    will-change: left, top;
}

.shop-mcard--grok .shop-mcard__sheen {
    mix-blend-mode: multiply;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, .95) 0%,
        rgba(255, 255, 255, .45) 30%,
        rgba(255, 255, 255, .12) 55%,
        transparent 72%
    );
}

.shop-card-stack.is-hot .shop-mcard__sheen,
.shop-card-stack:hover .shop-mcard__sheen {
    opacity: 1;
}

.shop-card-stack.is-hot .shop-mcard--grok .shop-mcard__sheen,
.shop-card-stack:hover .shop-mcard--grok .shop-mcard__sheen {
    opacity: .72;
}

/* ----- 公告条 ----- */
.shop-notice-strip {
    margin: 0 0 22px;
}

@media (max-width: 991.98px) {
    .shop-notice-strip {
        margin: 6px 0 18px;
    }
}

.shop-notice-strip[hidden] {
    display: none !important;
}

.shop-notice-strip__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(var(--shop-accent-rgb), .06);
    border: 1px solid rgba(var(--shop-accent-rgb), .14);
}

.shop-notice-strip__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-surface);
    color: var(--shop-accent);
    flex: 0 0 auto;
}

.shop-notice-strip__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13.5px;
    color: var(--uc-ink-med);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-notice-strip__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.shop-notice-strip__btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 0;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: var(--shop-accent);
    transition: transform .2s var(--shop-ease), filter .2s;
}

.shop-notice-strip__btn:hover {
    filter: brightness(1.05);
}

.shop-notice-strip__btn--ghost {
    color: var(--uc-ink-med);
    background: transparent;
    border: 1px solid var(--shop-card-border);
}

/* ----- 选购区 ----- */
.shop-section {
    padding: 8px 0 0;
    scroll-margin-top: 88px;
}

.shop-section__head {
    margin-bottom: 18px;
}

.shop-section__title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--uc-ink);
}

.shop-section__desc {
    margin: 0;
    font-size: 14.5px;
    color: var(--uc-ink-med);
}

.shop-section__desc-em {
    margin-left: .35em;
    font-weight: 800;
    color: var(--uc-ink);
}

.shop-section__body {
    padding: 18px;
    border-radius: 22px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: var(--shop-card-shadow);
}

.shop-section .chip-list {
    margin-bottom: 0;
}

/* 分类 + 右侧筛选（只看有货 / 排序） */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.shop-toolbar .chip-list {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.shop-filter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.shop-filter__stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: var(--uc-ink-med);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.shop-filter__stock-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.shop-filter__switch {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: rgba(125, 125, 135, .28);
    border: 1px solid var(--shop-card-border);
    transition: background .2s var(--shop-ease), border-color .2s;
    flex: 0 0 auto;
}

.shop-filter__switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
    transition: transform .22s var(--shop-ease);
}

.shop-filter__stock-input:checked + .shop-filter__switch {
    background: var(--shop-accent);
    border-color: transparent;
}

.shop-filter__stock-input:checked + .shop-filter__switch::after {
    transform: translateX(18px);
}

.shop-filter__stock-input:focus-visible + .shop-filter__switch {
    box-shadow: 0 0 0 3px rgba(var(--shop-accent-rgb), .28);
}

.shop-sort {
    position: relative;
    flex: 0 0 auto;
}

.shop-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 132px;
    height: 36px;
    padding: 0 10px 0 14px;
    border-radius: 999px;
    border: 1px solid var(--shop-card-border);
    background: color-mix(in srgb, var(--shop-surface) 82%, rgba(125, 125, 135, .1));
    color: var(--uc-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition:
        border-color .18s var(--shop-ease),
        box-shadow .18s var(--shop-ease),
        background .18s,
        transform .18s var(--shop-ease);
}

.shop-sort__btn:hover {
    border-color: rgba(var(--shop-accent-rgb), .4);
    transform: translateY(-1px);
}

.shop-sort.is-open .shop-sort__btn,
.shop-sort__btn:focus-visible {
    border-color: rgba(var(--shop-accent-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--shop-accent-rgb), .18);
}

.shop-sort__label {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
}

.shop-sort__caret {
    font-size: 18px;
    color: var(--uc-ink-med);
    transition: transform .22s var(--shop-ease);
}

.shop-sort.is-open .shop-sort__caret {
    transform: rotate(180deg);
    color: var(--shop-accent);
}

.shop-sort__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 100%;
    width: max-content;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid var(--shop-card-border);
    background: color-mix(in srgb, var(--shop-surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, .18),
        0 2px 0 rgba(255, 255, 255, .04) inset;
    animation: shop-sort-in .22s var(--shop-ease) both;
}

:root[data-theme="dark"] .shop-sort__menu {
    background: color-mix(in srgb, var(--shop-surface) 92%, #000 8%);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .42),
        0 1px 0 rgba(255, 255, 255, .06) inset;
}

.shop-sort__option {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--uc-ink-med);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.shop-sort__option:hover {
    color: var(--uc-ink);
    background: rgba(var(--shop-accent-rgb), .1);
}

.shop-sort__option.is-active {
    color: #fff;
    background: var(--shop-accent);
    font-weight: 650;
    box-shadow: 0 4px 12px rgba(var(--shop-accent-rgb), .28);
}

@keyframes shop-sort-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-sort__menu {
        animation: none;
    }

    .shop-sort__btn,
    .shop-sort__caret {
        transition: none;
    }
}

@media (max-width: 767.98px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

    .shop-filter {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .shop-sort__btn {
        min-width: 148px;
    }
}

/* ----- 公告弹层 ----- */
.shop-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(10vh, 72px) 20px 20px;
}

.shop-notice-modal[hidden] {
    display: none !important;
}

.shop-notice-modal__shade {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: shop-fade-in .28s var(--shop-ease) both;
}

.shop-notice-modal__card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-card-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    animation: shop-modal-in .38s var(--shop-ease) both;
    overflow: hidden;
}

.shop-notice-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 10px;
}

.shop-notice-modal__head h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    color: var(--uc-ink);
}

.shop-notice-modal__x {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(125, 125, 135, .12);
    color: var(--uc-ink-med);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-notice-modal__x .material-icons-outlined {
    font-size: 20px;
}

.shop-notice-modal__body {
    padding: 4px 18px 14px;
    overflow: auto;
    color: var(--uc-ink-med);
    font-size: 14px;
    line-height: 1.75;
    -webkit-overflow-scrolling: touch;
}

.shop-notice-modal__body img {
    max-width: 100%;
    border-radius: 10px;
}

.shop-notice-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--shop-card-border);
}

.shop-notice-modal__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--uc-ink-med);
    cursor: pointer;
    user-select: none;
}

.shop-notice-modal__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--shop-accent);
}

.shop-notice-modal__ok {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    color: #fff;
    background: var(--shop-accent);
    box-shadow: 0 6px 16px rgba(var(--shop-accent-rgb), .28);
    cursor: pointer;
    transition: transform .22s var(--shop-ease), filter .2s;
}

.shop-notice-modal__ok:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

/* ----- 入场动效 ----- */
.shop-reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: shop-reveal-up .6s var(--shop-ease) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes shop-reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shop-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shop-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shop-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-reveal,
    .item-card-cell.is-entering .shop-pcard,
    .shop-notice-modal__shade,
    .shop-notice-modal__card,
    .shop-card-stack.is-hot .shop-mcard__sheen,
    .shop-card-stack:hover .shop-mcard__sheen {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .shop-pcard,
    .chip,
    .shop-hero__cta,
    .shop-hero__link,
    .shop-mcard,
    .shop-card-stack {
        transition: none !important;
    }

    .shop-card-stack {
        --fan: 0 !important;
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
    }

}

/* ----- 响应式 ----- */
@media (max-width: 991.98px) {
    .shop-hero {
        padding: 28px 0 8px;
    }

    .shop-hero__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-hero__inner {
        max-width: none;
    }

    .shop-hero__stage {
        justify-self: center;
        align-self: center;
        max-width: 440px;
        min-height: 280px;
        /* 扇面视觉重心偏左，多推一点到正中偏右 */
        margin: 18px auto 12px;
        transform: translateX(36px);
    }

    .shop-card-stack {
        height: 280px;
    }

    .shop-mcard {
        --rot: calc(-34deg + var(--i) * 22deg);
        --ox: calc((var(--i) - 1.5) * 14px);
        --oy: calc(var(--i) * 8px);
        width: min(250px, 72%);
        left: 18%;
        transform-origin: 50% 118%;
    }
}

@media (max-width: 420px) {
    .shop-feat__text em {
        display: none;
    }

    .shop-feat {
        padding: 12px 6px;
    }
}

@media (max-width: 767.98px) {
    .shop-home {
        width: min(100% - 24px, 1180px);
        padding-bottom: 40px;
    }

    .uc-topbar {
        padding: 8px max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
    }

    .shop-hero {
        padding: 18px 0 4px;
        text-align: center;
    }

    .shop-hero__title,
    .shop-hero__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .shop-hero__desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 14.5px;
    }

    .shop-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .shop-hero__cta {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .shop-hero__link {
        justify-content: center;
    }

    .shop-hero__feats {
        max-width: none;
        gap: 8px;
        margin-left: auto;
        margin-right: auto;
    }

    .shop-feat {
        align-items: center;
        text-align: center;
        padding: 12px 8px 11px;
        gap: 8px;
        border-radius: 14px;
    }

    .shop-feat__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 14px;
    }

    .shop-feat__text strong {
        font-size: 12.5px;
    }

    .shop-feat__text em {
        font-size: 10.5px;
        line-height: 1.35;
    }

    .shop-hero__stage {
        max-width: 320px;
        min-height: 210px;
        margin: 16px auto 14px;
        transform: translateX(40px);
    }

    .shop-card-stack {
        height: 210px;
    }

    .shop-mcard {
        --rot: calc(-28deg + var(--i) * 18deg);
        --ox: calc((var(--i) - 1.5) * 10px);
        --oy: calc(var(--i) * 6px);
        left: 16%;
        width: min(210px, 72%);
        border-radius: 14px;
        padding: 12px 14px;
        transform-origin: 50% 112%;
    }

    .shop-mcard__plan {
        font-size: 20px;
        bottom: 28px;
    }

    .shop-mcard__logo {
        width: 56px;
        height: 56px;
        right: 8px;
    }

    .shop-notice-strip__inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .shop-notice-strip__text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-basis: calc(100% - 44px);
    }

    .shop-notice-strip__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .shop-section__head {
        text-align: center;
    }

    .shop-section__body {
        padding: 14px;
        border-radius: 18px;
    }

    .shop-notice-modal {
        padding: max(8vh, 48px) 12px 12px;
        align-items: flex-start;
    }

    .shop-notice-modal__card {
        width: 100%;
        max-height: 78vh;
        border-radius: 18px;
    }

    .shop-notice-modal__foot {
        flex-wrap: wrap;
    }

    .shop-notice-modal__ok {
        margin-left: auto;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
