/* ============================================================
   DefaultPaymentTemplate · 「深空科技」v7  ——  彻底重构版
   ------------------------------------------------------------
   说明：
   本版推翻浅色蓝白框架，整体重建为深空暗色科技体系：
   · 页面骨架：全宽细服务条 → 居中大标题 hero（右上操作悬浮）
     → 深玻璃货架（横滑分类 + 商品）→ 右侧发光收银台
   · 色彩：深空底(#05070f→#0b1326) + 电光青蓝渐变(主) +
     紫(点缀) + 金(会员/徽标) + 绿/橙/红(语义)，层次分明
   · 表面：暗玻璃 + 发丝亮边 + 彩色微光；文字用冷白灰阶
   ------------------------------------------------------------
   约束：不改任何功能 / JS / 路径 / id / 类；纯结构 CSS 重构。
   回滚：删除本文件并移除两个 header 中的 <link>。
   ============================================================ */

/* ============ 0. 设计令牌（暗色体系） ============ */
:root {
    color-scheme: dark;

    /* 电光主色：青 → 蓝 渐变 */
    --ux-cyan: #2ed3ff;
    --ux-blue: #4f7bff;
    --ux-grad: linear-gradient(135deg, #2ed3ff 0%, #4f7bff 55%, #6b8bff 100%);
    --ux-grad-2: linear-gradient(135deg, #38e0ff, #4f7bff 55%, #8b5cf6 120%);

    /* 点缀/语义 */
    --ux-violet: #8b5cf6;
    --ux-gold: #f2b64e;
    --ux-ok: #2fce6a;
    --ux-warn: #ff9f43;
    --ux-danger: #ff5c7a;

    /* 中性（深色） */
    --ux-ink: #f4f8ff;
    --ux-text: #c7d2ea;
    --ux-muted: #8b98b8;
    --ux-faint: #5e6c8e;
    --ux-line: rgba(150, 180, 255, .13);
    --ux-hairline: rgba(150, 180, 255, .08);

    /* 表面 */
    --ux-glass-strong: rgba(18, 26, 48, .88);
    --ux-glass: rgba(15, 22, 42, .7);
    --ux-glass-soft: rgba(13, 19, 37, .5);
    --ux-surface: #0e1528;
    --ux-input: rgba(9, 14, 28, .9);

    /* 圆角 */
    --ux-r-xs: 8px;
    --ux-r-sm: 11px;
    --ux-r: 16px;
    --ux-r-lg: 24px;

    /* 阴影 */
    --ux-shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --ux-shadow-sm: 0 2px 10px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .25);
    --ux-shadow: 0 24px 60px rgba(0, 0, 0, .42), 0 4px 14px rgba(0, 0, 0, .3);
    --ux-shadow-lg: 0 40px 100px rgba(0, 0, 0, .6), 0 12px 30px rgba(0, 0, 0, .4);
    --ux-glow-blue: 0 6px 22px rgba(64, 140, 255, .28);
    --ux-glow-cyan: 0 6px 24px rgba(46, 211, 255, .22);

    --ux-maxw: 1340px;

    /* 同步模板变量，切断粉调残留 */
    --purchase-accent: #4f7bff;
    --purchase-accent-dark: #3b5cf0;
    --purchase-accent-soft: rgba(79, 123, 255, .16);
    --purchase-ink: var(--ux-ink);
    --purchase-muted: var(--ux-muted);
    --purchase-line: var(--ux-line);
    --purchase-surface: #0e1528;
    --purchase-canvas: #070b17;
    --purchase-success: var(--ux-ok);
    --purchase-radius: 20px;
    --purchase-shadow: var(--ux-shadow);
}

/* ============ 1. 画布：深空 + 光斑 + 星点 ============ */
html { background-color: #05070f !important; }
body.xsh-body {
    color: var(--ux-text);
    background-color: #0a101f !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .01em;
}
body.xsh-body:not([style*="background:url"]) {
    background-color: #0a101f !important;
    background-image:
        radial-gradient(1200px 700px at 82% -16%, rgba(45, 120, 255, .20), transparent 60%),
        radial-gradient(1000px 620px at 0% -6%, rgba(46, 211, 255, .10), transparent 58%),
        radial-gradient(900px 760px at 104% 58%, rgba(139, 92, 246, .10), transparent 62%),
        radial-gradient(1000px 800px at -8% 104%, rgba(46, 120, 255, .08), transparent 64%),
        linear-gradient(180deg, #070c1a 0%, #0a1122 46%, #080d1d 100%) !important;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    body.mobile-purchase-body:not([style*="background:url"]) {
        background-color: #080e1d !important;
        background-image:
            linear-gradient(180deg, #0a1122 0%, #090f1f 60%, #070c19 100%),
            radial-gradient(520px 420px at 96% -4%, rgba(45, 120, 255, .14), transparent 60%),
            radial-gradient(480px 420px at -4% 30%, rgba(46, 211, 255, .08), transparent 60%) !important;
        background-attachment: fixed !important;
    }
}

/* 星点（低透明度，避免花） */
body.xsh-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    opacity: .55;
    background-image:
        radial-gradient(circle, rgba(205, 228, 255, .5) 0, rgba(205, 228, 255, .5) .8px, transparent 1.7px),
        radial-gradient(circle, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .2) .55px, transparent 1.3px);
    background-size: 132px 132px, 76px 76px;
    background-position: 0 0, 41px 27px;
}
@media (max-width: 768px) {
    body.mobile-purchase-body::after { opacity: .35; }
}

/* 自定义背景图(type1)：深色罩统一画面，保持可读 */
body.xsh-body[style*="background:url"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 8, 18, .88), rgba(7, 11, 24, .72) 55%, rgba(5, 8, 16, .9));
}
body.xsh-body:has(video.background-video) { background-color: #05070f !important; }
body.xsh-body:has(video.background-video) video.background-video { opacity: .28; filter: saturate(1.2); }

::selection { background: rgba(79, 123, 255, .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 180, 255, .16); border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(150, 180, 255, .3); }
::placeholder { color: #4f5d7e; opacity: 1; }

button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid rgba(46, 211, 255, .5);
    outline-offset: 2px;
}

/* ============ 2. 顶部细字服务条 ============ */
.purchase-utility {
    display: flex;
    justify-content: center;
    width: 100%;
    background: rgba(8, 12, 24, .55);
    border-bottom: 1px solid var(--ux-hairline);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.purchase-utility .sinfo {
    width: min(var(--ux-maxw), calc(100% - 48px));
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.purchase-utility .sinfo ul.link {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    margin: 0;
}
.purchase-utility .sinfo li {
    border-radius: 999px !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.purchase-utility .sinfo a {
    display: inline-block;
    padding: 5px 13px !important;
    color: var(--ux-muted) !important;
    font-size: 12.5px !important;
    font-weight: 500;
    border-radius: 999px;
    transition: color .15s ease, background-color .15s ease;
}
.purchase-utility .sinfo a:hover {
    color: var(--ux-cyan) !important;
    background: rgba(46, 211, 255, .08);
}

/* ============ 3. 页眉 hero：居中大标题叙事 ============ */
.purchase-header-shell {
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.banner {
    position: relative;
    width: min(var(--ux-maxw), calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 62px 0 46px !important;
    text-align: center;
}
.banner > .clear { display: none !important; }
.banner::after { content: none !important; }

/* 右上操作组：绝对悬浮于 hero 右上角 */
.banner > div[style*="float: right"] {
    position: absolute !important;
    top: 18px;
    right: 0;
    float: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
}
.banner > div[style*="float: right"] > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
/* 窄屏时操作组不再悬浮（放回正常流），避免遮挡标题 */
@media (max-width: 700px) {
    .banner { padding-top: 10px; }
    .banner > div[style*="float: right"] { position: static !important; justify-content: center; margin: 0 0 10px !important; }
}

/* 品牌标题 */
.banner .seller_content {
    display: block;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}
.banner .seller_name {
    display: block;
    width: 100%;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: clamp(34px, 4.6vw, 56px) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.12 !important;
    text-shadow: 0 0 34px rgba(79, 140, 255, .35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 副文案（欢迎语）居中 */
.banner .gd {
    margin: 18px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ux-muted) !important;
    line-height: 1.75 !important;
    text-align: center;
    max-width: 720px;
}
.banner .gd .spp {
    display: block !important;
    width: 100%;
    min-width: 0 !important;
    padding: 0 !important;
    animation: none !important;
    color: inherit;
    font-size: 15.5px;
    font-weight: 400;
    white-space: normal;
    overflow: visible;
}

/* 协议 / 公告：暗色轻钮 */
.banner #protocol, .banner #notice {
    height: 36px;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ux-line) !important;
    background: rgba(22, 32, 60, .72) !important;
    color: var(--ux-text) !important;
    line-height: 34px !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
    transition: all .15s ease;
}
.banner #protocol:hover {
    background: rgba(46, 211, 255, .1) !important;
    color: var(--ux-cyan) !important;
    border-color: rgba(46, 211, 255, .4);
}
.banner #notice:hover {
    background: rgba(255, 92, 122, .08) !important;
    color: var(--ux-danger) !important;
    border-color: rgba(255, 92, 122, .35);
}

/* 账号区按钮 */
.banner-account { display: inline-flex; align-items: center; gap: 9px; }
.banner-account__login, .banner-account__orders {
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(79, 123, 255, .5) !important;
    background: rgba(18, 30, 60, .6) !important;
    color: #9fc1ff !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 36px !important;
    box-shadow: none !important;
    transition: all .15s ease;
}
.banner-account__login:hover, .banner-account__orders:hover {
    background: rgba(79, 123, 255, .15) !important;
    color: #fff !important;
    border-color: #6b8dff !important;
}
.banner-account__register, .banner-account__login.backstage {
    height: 38px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background-image: var(--ux-grad) !important;
    background-color: #4f7bff !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 38px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--ux-glow-blue) !important;
    transition: filter .15s ease, box-shadow .15s ease;
}
.banner-account__register:hover, .banner-account__login.backstage:hover {
    filter: brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 26px rgba(64, 150, 255, .4) !important;
}

/* 已登录：余额 / 会员 / 头像 */
.banner-balance {
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ux-hairline);
}
.banner-balance--system { color: #a8c8ff !important; background: rgba(79, 123, 255, .13) !important; border-color: rgba(79,123,255,.28); }
.banner-balance--store { color: #7ef0b0 !important; background: rgba(47, 206, 106, .1) !important; border-color: rgba(47,206,106,.26); }
.banner-balance strong { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.banner-vip {
    height: 26px !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
    color: #241503 !important;
    background: linear-gradient(135deg, #ffd98a, #f2b64e 55%, #e0a03a) !important;
    font-size: 11.5px !important;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(242, 182, 78, .3);
}
.banner-avatar {
    width: 40px; height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(120, 170, 255, .55) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.4), 0 0 18px rgba(79,123,255,.18) !important;
    overflow: hidden;
    cursor: pointer;
}
.banner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.banner-avatar:hover { box-shadow: 0 0 0 2px rgba(46,211,255,.5) !important; }

/* ============ 4. 主体网格 ============ */
.purchase-page-shell {
    display: grid;
    width: min(var(--ux-maxw), calc(100% - 40px)) !important;
    margin: 0 auto 60px !important;
    gap: 22px !important;
    align-items: start !important;
}
@media (min-width: 1181px) {
    .purchase-page-shell { grid-template-columns: minmax(0, 1fr) 372px !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
    .purchase-page-shell { grid-template-columns: 1fr !important; width: min(920px, calc(100% - 40px)) !important; }
}

/* ============ 5. 货架大卡（暗玻璃） ============ */
.catalog-layout {
    display: block !important;
    border: 1px solid rgba(150, 180, 255, .13) !important;
    border-radius: 26px !important;
    background: linear-gradient(175deg, rgba(22, 32, 60, .78) 0%, rgba(14, 21, 42, .72) 60%, rgba(16, 24, 46, .78) 100%) !important;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .45),
        0 4px 16px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    overflow: hidden;
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
}

/* 分类行：chips 轻标签 */
.category-panel {
    position: static !important;
    margin: 0 !important;
    padding: 22px 30px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ux-hairline) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.category-panel__head { display: none !important; }
.cat { padding: 0 !important; }
.cat ul {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat ul::-webkit-scrollbar { display: none; }
.cat ul li {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, .045) !important;
    color: var(--ux-muted) !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .16s ease;
}
.cat ul li:hover {
    background: rgba(46, 211, 255, .09) !important;
    color: var(--ux-cyan) !important;
    border-color: rgba(46, 211, 255, .22);
}
.cat ul li.select {
    background: rgba(79, 123, 255, .16) !important;
    border-color: rgba(79, 123, 255, .5) !important;
    color: #cfe0ff !important;
    box-shadow: 0 0 14px rgba(79, 123, 255, .18), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* 商品面板 */
.products-panel {
    padding: 26px 30px 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.products-toolbar {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin: 0 0 26px !important;
    padding: 0 !important;
    border: 0 !important;
}
.products-toolbar > div:first-child { min-width: 0; }
.products-toolbar__eyebrow {
    margin: 0 0 5px !important;
    color: var(--ux-faint) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.products-toolbar h2 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    line-height: 1.3 !important;
}
.products-toolbar h2 small { color: var(--ux-muted) !important; font-size: 12px !important; font-weight: 500; margin-left: 8px; }
.products-toolbar h2 strong { color: #9fc1ff !important; }

/* 搜索：暗色圆角条 */
.products-search {
    display: flex !important;
    align-items: center;
    height: 42px;
    width: min(330px, 36vw) !important;
    min-width: 230px;
    border-radius: 999px !important;
    border: 1px solid var(--ux-line) !important;
    background: rgba(7, 12, 25, .75) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.4) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.products-search:focus-within {
    border-color: rgba(79, 123, 255, .6) !important;
    box-shadow: 0 0 0 3px rgba(79, 123, 255, .16) !important;
}
.products-search input {
    flex: 1;
    min-width: 0;
    height: 40px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 13px;
    color: #e6edfb;
}
.products-search button {
    height: 32px !important;
    margin: 4px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 0;
    background-image: var(--ux-grad) !important;
    background-color: #4f7bff !important;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 8px rgba(64,140,255,.25) !important;
}
.products-search button:hover { filter: brightness(1.12); }

/* ============ 6. 商品货架（暗玻璃卡） ============ */
.goods #LAY_demo1 {
    display: grid;
    gap: 15px !important;
}
@media (min-width: 1181px) {
    .goods #LAY_demo1 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
    .goods #LAY_demo1 { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)) !important; }
}

.goods #LAY_demo1 > li {
    padding: 0 !important;
    border: 1px solid rgba(160, 190, 255, .12) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(26, 38, 70, .9), rgba(16, 24, 46, .88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 1px 2px rgba(0,0,0,.4),
        0 10px 22px rgba(0,0,0,.28) !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.goods #LAY_demo1 > li:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 175, 255, .35) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 16px 34px rgba(0,0,0,.4),
        0 0 24px rgba(64, 140, 255, .12) !important;
}
.goods #LAY_demo1 > li.select {
    border: 1.5px solid rgba(46, 211, 255, .7) !important;
    background: linear-gradient(180deg, rgba(22, 52, 86, .94), rgba(14, 30, 58, .92)) !important;
    box-shadow:
        0 0 0 3px rgba(46, 211, 255, .12),
        0 12px 30px rgba(0,0,0,.4),
        0 0 26px rgba(46, 211, 255, .14) !important;
}

.goods-thumb { background: linear-gradient(180deg, rgba(30, 44, 80, .9), rgba(20, 30, 58, .9)) !important; }
.goods-thumb img { transition: transform .35s ease; }
.goods #LAY_demo1 > li:hover .goods-thumb img { transform: scale(1.05); }
.goods-thumb__fallback { color: rgba(150, 175, 220, .35) !important; font-weight: 600; font-size: 11px !important; letter-spacing: .12em; }

.goods-zoom {
    width: 28px !important;
    height: 28px !important;
    right: 9px !important;
    bottom: 9px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(8, 12, 24, .55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none !important;
}
.goods-zoom:hover { background: rgba(46, 211, 255, .85) !important; }
.goods-zoom svg { width: 14px !important; height: 14px !important; }

.goods #LAY_demo1 > li .goods-info { padding: 13px 14px 15px !important; }
.goods-name {
    margin: 0 0 6px !important;
    color: #eef4ff !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.5 !important;
}
.goods-bottom { align-items: baseline !important; gap: 7px; }
.goods-price {
    margin: 0 !important;
    color: #9fe4ff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.2 !important;
    text-shadow: 0 0 16px rgba(46, 211, 255, .25);
}
.goods-price span { color: var(--ux-faint) !important; font-size: 11px !important; font-weight: 600; margin-right: 1px; }
.goods #LAY_demo1 > li.select .goods-price { color: #7ff3ff !important; }
.goods-meta { margin-top: 6px !important; }
.goods-badge {
    padding: 1px 6px !important;
    border-radius: 5px !important;
    color: #bcd6ff !important;
    background: rgba(79, 123, 255, .2) !important;
    font-size: 10px !important;
    font-weight: 700;
    border: 1px solid rgba(79,123,255,.3);
}
.goods .stock { color: var(--ux-faint) !important; font-size: 11px !important; }
.goods .stock.is-empty { color: var(--ux-danger) !important; }

.goods-load-actions { padding-top: 26px !important; }
.goods-load-actions button {
    border: 1px solid var(--ux-line) !important;
    border-radius: 999px !important;
    background: rgba(20, 30, 58, .7) !important;
    color: var(--ux-text) !important;
    padding: 0 28px !important;
    box-shadow: none !important;
}
.goods-load-actions button:hover { border-color: rgba(79,123,255,.5); color: #cfdfff !important; background: rgba(79,123,255,.12) !important; }
.goods-load-actions p { color: var(--ux-muted) !important; }

/* ============ 7. 商品说明 / 自选 ============ */
.goods-inline-detail { gap: 16px !important; }
.desc, .pick_box {
    border-radius: 20px !important;
    border: 1px solid var(--ux-hairline) !important;
    background: rgba(13, 20, 40, .8) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 16px rgba(0,0,0,.25) !important;
}
.desc h3 { color: #fff; font-size: 15px !important; font-weight: 700; }
.goodsContent { color: var(--ux-text) !important; font-size: 14px !important; line-height: 1.85 !important; }
.goodsContent img { border-radius: 10px; }
.jsTitle { color: #fff; font-weight: 700; }
.pick-search-row { display: flex; gap: 8px; }
.pick-search-row input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ux-line) !important;
    background: rgba(8, 13, 26, .85) !important;
    color: #e6edfb;
}
.pick-search-row button {
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 0;
    background-image: var(--ux-grad) !important;
    background-color: #4f7bff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 8px rgba(64,140,255,.2) !important;
}
.pick-pagination { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pick-pagination button {
    border: 1px solid var(--ux-line) !important;
    border-radius: 999px !important;
    background: rgba(20,30,58,.7) !important;
    color: var(--ux-text) !important;
    font-size: 12.5px !important;
}
.pick-pagination button:hover { border-color: rgba(79,123,255,.5); color: #cfdfff !important; }
.pick-desc { color: var(--ux-muted) !important; font-size: 12px !important; }
.pick-desc span { color: #9fe4ff !important; font-weight: 700; }
#account_list li, .jsTab li {
    border-radius: 12px !important;
    border: 1px solid var(--ux-hairline) !important;
    background: rgba(20, 30, 58, .6);
    color: var(--ux-text);
}

/* ============ 8. 收银台（结算 = 视觉焦点） ============ */
.checkout-panel {
    position: sticky !important;
    top: 22px !important;
    padding: 26px 26px 24px !important;
    border: 1px solid rgba(150, 185, 255, .18) !important;
    border-radius: 26px !important;
    background: linear-gradient(172deg, rgba(24, 36, 68, .9) 0%, rgba(15, 23, 46, .85) 60%, rgba(18, 27, 52, .9) 100%) !important;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .55),
        0 8px 24px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(255,255,255,.02),
        0 0 40px rgba(79, 123, 255, .08),
        inset 0 1px 0 rgba(255,255,255,.07) !important;
    backdrop-filter: blur(30px) saturate(170%);
    -webkit-backdrop-filter: blur(30px) saturate(170%);
}
.checkout-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--ux-line) !important;
}
.checkout-panel__head > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
}
.checkout-panel__head > span::before {
    content: "";
    width: 6px; height: 18px;
    border-radius: 4px;
    background: var(--ux-grad);
    box-shadow: 0 0 10px rgba(79, 140, 255, .55);
}
.checkout-panel__head small {
    margin-left: auto !important;
    color: var(--ux-muted) !important;
    font-size: 11.5px !important;
    font-weight: 500;
}

.checkout-panel .layui-field-title { margin: 22px 0 10px !important; }
.checkout-panel .layui-field-title legend {
    color: var(--ux-muted) !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .04em;
}
.checkout-panel .layui-form-label { color: var(--ux-muted) !important; font-size: 12.5px !important; }
.checkout-panel .layui-input {
    min-height: 40px;
    border-radius: var(--ux-r-sm) !important;
    border: 1px solid var(--ux-line) !important;
    background: var(--ux-input) !important;
    color: #e6edfb;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35) !important;
}
.checkout-panel .layui-input:focus {
    border-color: rgba(79, 123, 255, .55) !important;
    box-shadow: 0 0 0 3px rgba(79, 123, 255, .15) !important;
}

/* 数量 stepper */
.jsq { height: auto !important; }
.jsq > div { display: flex; align-items: center; margin-left: 0 !important; }
.jsq > div > span:first-child { margin-right: 14px !important; color: var(--ux-muted) !important; font-size: 13px !important; }
.jsq #jian, .jsq #jia {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 9px !important;
    border: 1px solid var(--ux-line) !important;
    background: rgba(10, 16, 32, .85) !important;
    color: var(--ux-text) !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: all .15s ease;
}
.jsq #jian:hover, .jsq #jia:hover { color: var(--ux-cyan) !important; border-color: rgba(46,211,255,.4); background: rgba(46,211,255,.08) !important; }
.jsq .buyNum {
    width: 56px !important;
    height: 30px !important;
    margin: 0 7px;
    border: 1px solid var(--ux-line) !important;
    border-radius: 9px !important;
    background: rgba(7, 12, 25, .9) !important;
    text-align: center;
    color: #fff !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.stock_str { color: var(--ux-muted) !important; font-size: 12px !important; }
#kucun { color: var(--ux-cyan) !important; font-weight: 700; }
.goodsInfo { color: #cfe0ff !important; font-weight: 600; }
.proName p { color: var(--ux-muted) !important; font-size: 12px !important; }

/* 复选框 / 开关 */
.checkout-panel .layui-form-checkbox[lay-skin="primary"] span { color: var(--ux-text) !important; }
.checkout-panel .layui-form-checkbox[lay-skin="primary"] i { border-color: rgba(150, 180, 255, .3) !important; border-radius: 5px !important; background: rgba(8,13,26,.6); }
.checkout-panel .layui-form-checkbox[lay-skin="primary"]:hover i { border-color: var(--ux-blue) !important; }
.checkout-panel .layui-form-checkbox[lay-skin="primary"].layui-form-checked i { background: var(--ux-blue) !important; border-color: var(--ux-blue) !important; }
.layui-form-switch { border-radius: 999px !important; border-color: rgba(150, 180, 255, .25) !important; background: rgba(8,13,26,.6); }
.layui-form-onswitch { background: var(--ux-blue) !important; border-color: var(--ux-blue) !important; }

/* 优惠徽章 */
#discount_tips, #reach_tips { border-radius: 6px !important; padding: 2px 9px !important; font-size: 11px !important; }
#discount_tips { background: rgba(79, 123, 255, .16) !important; color: #a9c8ff !important; border: 1px solid rgba(79,123,255,.3); }
#reach_tips { background: rgba(255, 159, 67, .13) !important; color: #ffc27d !important; border: 1px solid rgba(255,159,67,.3); }

/* 支付方式 */
.payment-placeholder {
    color: var(--ux-muted) !important;
    font-size: 12.5px !important;
    background: rgba(255, 255, 255, .03);
    border: 1px dashed var(--ux-hairline);
    border-radius: 13px;
    padding: 16px;
    text-align: center;
}
.payType { display: flex !important; flex-direction: column; gap: 10px !important; }
.payType li {
    min-height: 58px !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    border: 1px solid var(--ux-line) !important;
    background: linear-gradient(180deg, rgba(30, 44, 80, .75), rgba(18, 27, 52, .75)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
    transition: all .16s ease;
}
.payType li:hover { border-color: rgba(150, 180, 255, .28); }
.payType li.paySelect {
    border-color: rgba(46, 211, 255, .6) !important;
    background: linear-gradient(180deg, rgba(24, 60, 96, .8), rgba(16, 38, 68, .8)) !important;
    box-shadow:
        0 0 0 3px rgba(46, 211, 255, .1),
        0 0 22px rgba(46, 211, 255, .12),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.payType li img { height: 28px !important; border-radius: 6px; }

.yue { color: var(--ux-muted) !important; font-size: 12.5px !important; }
.yue .dkPrice { color: #ff9fb5 !important; font-weight: 800 !important; }

/* 支付按钮：电光渐变主按钮 */
#toPay {
    min-height: 56px !important;
    border-radius: 15px !important;
    border: 0 !important;
    background-image: linear-gradient(135deg, #38e0ff 0%, #4f7bff 55%, #6b8bff 100%) !important;
    background-color: #4f7bff !important;
    color: #fff !important;
    font-size: 15.5px !important;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -2px 6px rgba(0, 40, 120, .25),
        0 12px 30px rgba(64, 140, 255, .38),
        0 4px 10px rgba(0, 0, 0, .25) !important;
    transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
#toPay:hover {
    filter: brightness(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -2px 6px rgba(0, 40, 120, .25),
        0 16px 38px rgba(64, 170, 255, .45),
        0 5px 12px rgba(0, 0, 0, .28) !important;
}
#toPay:active { transform: scale(.98); }
#toPay #ppp, #toPay #price, #toPay span { color: #fff !important; text-shadow: 0 1px 2px rgba(0,30,90,.25); }
#toPay #price { font-size: 19px !important; font-weight: 800 !important; font-variant-numeric: tabular-nums; }
#toPay #fee_str { color: rgba(255,255,255,.8) !important; font-weight: 500 !important; text-shadow: none; }

/* ============ 9. 弹层 / 浮层（暗色） ============ */
.layui-layer {
    border-radius: 22px !important;
    border: 1px solid rgba(150, 180, 255, .16) !important;
    background: rgba(17, 25, 48, .97) !important;
    box-shadow: var(--ux-shadow-lg) !important;
    color: var(--ux-text);
}
.layui-layer-title {
    color: #fff !important;
    background: transparent !important;
    border-bottom-color: var(--ux-line) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.layui-layer-content { color: var(--ux-text) !important; }
.layui-layer-btn { border-top-color: var(--ux-line) !important; background: transparent !important; }
.layui-layer-btn a { border-color: var(--ux-line) !important; color: var(--ux-text) !important; background: rgba(30,42,74,.7) !important; border-radius: 999px !important; }
.layui-layer-btn .layui-layer-btn0 {
    border: 0 !important;
    background-image: var(--ux-grad) !important;
    background-color: #4f7bff !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(64,140,255,.3) !important;
}
.layui-layer-btn .layui-layer-btn0:hover { filter: brightness(1.1); }
.layui-layer-setwin .layui-layer-close2 {
    border: 1px solid var(--ux-line) !important;
    background: rgba(12, 18, 36, .9) !important;
    color: var(--ux-muted) !important;
}
.purchase-protocol-layer .layui-layer-content { color: var(--ux-text) !important; }
.purchase-payment-loading { border: 0 !important; border-radius: 20px !important; background: rgba(15, 22, 44, .95) !important; box-shadow: var(--ux-shadow) !important; }
.purchase-payment-loading .layui-layer-content { border-color: rgba(79, 123, 255, .4) !important; border-top-color: var(--ux-cyan) !important; }
.purchase-benefit-popover { border: 1px solid rgba(150,180,255,.2) !important; border-radius: 12px !important; background: rgba(10, 16, 32, .96) !important; color: var(--ux-text); }
.goods-original-layer { border-radius: 18px !important; }
.goods-original-layer .layui-layer-content { background: rgba(5, 8, 16, .96) !important; }
.music-player {
    border: 1px solid rgba(150, 180, 255, .15) !important;
    background: rgba(14, 21, 42, .9) !important;
    box-shadow: var(--ux-shadow) !important;
    color: var(--ux-text);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* 通用暗色修正（输入/链接/下拉等原模板残留浅色） */
.layui-input, .layui-textarea {
    color: #e6edfb !important;
    background-color: var(--ux-input) !important;
    border-color: var(--ux-line) !important;
}
a { color: #8fb4ff; }
.layui-form-radio > i, .layui-form-radioed > i { color: var(--ux-blue) !important; }
.layui-form-checked[lay-skin="primary"] i { background: var(--ux-blue) !important; }

/* ============ 10. 移动端（同语言暗色） ============ */
@media (max-width: 768px) {
    /* 移动页眉 */
    .mobile-store-header {
        position: relative;
        margin: 0 !important;
        padding: 22px 18px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--ux-hairline) !important;
        border-radius: 0 0 26px 26px !important;
        background: linear-gradient(180deg, rgba(16, 25, 48, .92), rgba(12, 19, 38, .78)) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.05) !important;
        backdrop-filter: blur(26px) saturate(170%);
        -webkit-backdrop-filter: blur(26px) saturate(170%);
    }
    .mobile-store-heading { display: flex; align-items: center; gap: 12px; }
    .mobile-store-title { flex: 1; min-width: 0; text-align: center; }
    .mobile-store-title h1 {
        margin: 0 !important;
        color: #fff !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        letter-spacing: -.01em;
        line-height: 1.3 !important;
        text-shadow: 0 0 22px rgba(79,140,255,.3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-buyer-avatar {
        flex: 0 0 auto;
        order: 3;
        width: 42px; height: 42px;
        border-radius: 50% !important;
        border: 2px solid rgba(120, 170, 255, .5) !important;
        box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.4), 0 0 16px rgba(79,123,255,.2) !important;
        overflow: hidden;
        padding: 0 !important;
    }
    .mobile-buyer-avatar img { width: 100%; height: 100%; object-fit: cover; }

    /* 欢迎语 */
    .mobile-welcome {
        margin: 8px 0 0 !important;
        height: auto !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--ux-muted) !important;
        font-size: 13px !important;
        line-height: 1.65 !important;
        text-align: center;
        display: block;
    }
    .mobile-welcome span {
        display: block !important;
        width: 100%;
        min-width: 0 !important;
        padding: 0 !important;
        animation: none !important;
        text-align: center;
        white-space: normal;
        overflow: visible;
    }
    .mobile-welcome.is-overflowing span { padding: 0 !important; animation: none !important; }

    /* 操作：一行轻按钮 */
    .mobile-store-actions {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        margin-top: 16px !important;
    }
    .mobile-store-actions button {
        min-height: 0 !important;
        height: 36px;
        padding: 0 16px !important;
        border-radius: 999px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(24, 36, 70, .7) !important;
        color: var(--ux-text) !important;
        font-size: 12.5px !important;
        font-weight: 600;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.25) !important;
    }
    .mobile-store-actions #protocol { border-color: rgba(79,123,255,.4) !important; color: #a9c8ff !important; }
    .mobile-store-actions #notice { color: var(--ux-muted) !important; }
    .mobile-store-actions .toLogin { border-color: rgba(79,123,255,.45) !important; color: #b9d2ff !important; }
    .mobile-store-actions .toRegister {
        border: 0 !important;
        background-image: var(--ux-grad) !important;
        background-color: #4f7bff !important;
        color: #fff !important;
        font-weight: 700;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(64,140,255,.32) !important;
    }
    .mobile-store-actions .mobile-buyer-center {
        border-color: rgba(47,206,106,.35) !important;
        color: #7ef0b0 !important;
        background: rgba(47,206,106,.08) !important;
    }

    /* 余额 / 会员 */
    .mobile-account-summary {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        margin-top: 14px !important;
    }
    .mobile-account-summary > span,
    .mobile-account-summary > span:nth-child(2) {
        height: 32px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        border: 1px solid var(--ux-hairline) !important;
        background: rgba(24, 36, 70, .6) !important;
        color: var(--ux-muted) !important;
        font-size: 12px !important;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        box-shadow: none !important;
    }
    .mobile-account-summary strong { color: #fff !important; font-weight: 700; font-variant-numeric: tabular-nums; }
    .mobile-account-summary > span:nth-child(2) strong { color: #7ef0b0 !important; }
    .mobile-account-summary .vipInfo {
        height: 32px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        border: 0 !important;
        background: linear-gradient(135deg, #ffd98a, #f2b64e) !important;
        color: #241503 !important;
        font-weight: 800 !important;
        font-size: 12px;
        box-shadow: 0 3px 10px rgba(242, 182, 78, .28) !important;
    }

    /* 更多服务 */
    .mobile-more-services { margin-top: 14px !important; }
    .mobile-more-services summary {
        min-height: 38px;
        padding: 0 15px !important;
        border-radius: 999px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(24, 36, 70, .55) !important;
        color: var(--ux-muted) !important;
        font-size: 12.5px !important;
        font-weight: 600;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-more-services summary::-webkit-details-marker { display: none; }
    .mobile-more-services[open] summary { margin-bottom: 8px; }
    .mobile-more-services nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 2px; }
    .mobile-more-services a, .mobile-more-services nav button {
        min-height: 32px;
        padding: 0 14px;
        border-radius: 999px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(24, 36, 70, .55) !important;
        color: var(--ux-muted) !important;
        font-size: 12px !important;
        font-weight: 500;
    }

    /* 移动货架 */
    .purchase-catalog--mobile { padding: 14px 14px 96px !important; }
    .purchase-catalog--mobile .products-panel { padding: 0 !important; }
    .purchase-catalog--mobile .products-toolbar {
        margin: 0 0 14px !important;
        padding: 15px 16px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(150,180,255,.12) !important;
        background: rgba(17, 25, 48, .72) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 16px rgba(0,0,0,.25) !important;
        display: flex;
        align-items: center;
    }
    .purchase-catalog--mobile .products-toolbar__eyebrow { display: none; }
    .purchase-catalog--mobile .products-toolbar h2 {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #fff !important;
        white-space: nowrap;
    }
    .purchase-catalog--mobile .products-toolbar h2 small { font-size: 11.5px; }
    .purchase-catalog--mobile .products-search {
        height: 36px;
        min-width: 0;
        width: min(220px, 55vw) !important;
        margin-left: auto;
    }
    .purchase-catalog--mobile .products-search input { height: 34px !important; padding: 0 13px !important; font-size: 12.5px !important; }
    .purchase-catalog--mobile .products-search button { height: 28px !important; font-size: 12px !important; padding: 0 13px !important; }

    /* 分类横滑 */
    .purchase-catalog--mobile .category-tabs,
    .category-tabs { margin: 0 0 12px !important; padding: 0 !important; }
    .purchase-catalog--mobile .category-tabs ul,
    .category-tabs ul {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 2px 2px 6px;
        -webkit-overflow-scrolling: touch;
    }
    .purchase-catalog--mobile .category-tabs ul::-webkit-scrollbar,
    .category-tabs ul::-webkit-scrollbar { display: none; }
    .purchase-catalog--mobile .category-tabs ul li,
    .category-tabs ul li {
        width: auto !important;
        min-width: max-content;
        padding: 8px 16px !important;
        border-radius: 999px !important;
        border: 1px solid transparent !important;
        background: rgba(255, 255, 255, .045) !important;
        color: var(--ux-muted) !important;
        font-size: 13px !important;
        font-weight: 600;
        box-shadow: none !important;
    }
    .purchase-catalog--mobile .category-tabs ul li.select,
    .category-tabs ul li.select {
        border-color: rgba(79, 123, 255, .5) !important;
        background: rgba(79, 123, 255, .16) !important;
        color: #cfe0ff !important;
        box-shadow: 0 0 12px rgba(79,123,255,.16) !important;
    }

    /* 移动商品卡：两列暗玻璃 */
    .purchase-catalog--mobile .goods #LAY_demo1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .purchase-catalog--mobile .goods #LAY_demo1 > li {
        border-radius: 16px !important;
        border: 1px solid rgba(160, 190, 255, .12) !important;
        background: linear-gradient(180deg, rgba(26, 38, 70, .9), rgba(16, 24, 46, .9)) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.24) !important;
    }
    .purchase-catalog--mobile .goods #LAY_demo1 > li.select {
        border-color: rgba(46, 211, 255, .65) !important;
        box-shadow: 0 0 0 3px rgba(46,211,255,.1), 0 0 22px rgba(46,211,255,.12) !important;
        background: linear-gradient(180deg, rgba(22, 52, 86, .95), rgba(14, 30, 58, .94)) !important;
    }
    .purchase-catalog--mobile .goods-thumb { background: linear-gradient(180deg, rgba(30,44,80,.9), rgba(20,30,58,.9)) !important; }
    .purchase-catalog--mobile .goods-zoom { display: none !important; }
    .purchase-catalog--mobile .goods-name { font-size: 13px !important; font-weight: 600 !important; color: #eef4ff !important; }
    .purchase-catalog--mobile .goods-price { font-size: 15.5px !important; color: #9fe4ff !important; }
    .purchase-catalog--mobile .desc, .purchase-catalog--mobile .pick_box {
        border-radius: 18px !important;
        background: rgba(13, 20, 40, .85) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 16px rgba(0,0,0,.25) !important;
    }

    /* 底部结算条 */
    .mobile-order-summary {
        margin: 0 !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
        border-radius: 24px 24px 0 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(150, 180, 255, .16) !important;
        background: linear-gradient(180deg, rgba(16, 24, 47, .94), rgba(12, 19, 38, .94)) !important;
        box-shadow: 0 -10px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05) !important;
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
    }
    .mobile-summary-copy { gap: 4px; }
    .mobile-summary-copy > span { color: var(--ux-muted) !important; font-size: 10.5px !important; }
    .mobile-summary-copy strong { color: #dbe6ff !important; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
    .mobile-summary-copy b { color: #9fe4ff !important; font-weight: 800 !important; font-size: 17px; text-shadow: 0 0 14px rgba(46,211,255,.3); }
    .mobile-summary-quantity button, .mobile-summary-quantity-value {
        border: 1px solid var(--ux-line) !important;
        background: rgba(9, 14, 28, .9) !important;
        color: var(--ux-text) !important;
    }
    .mobile-checkout-trigger {
        min-height: 48px;
        border-radius: 999px !important;
        border: 0 !important;
        background-image: linear-gradient(135deg, #38e0ff 0%, #4f7bff 55%, #6b8bff 100%) !important;
        background-color: #4f7bff !important;
        color: #fff !important;
        font-weight: 800 !important;
        font-size: 14px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 8px 22px rgba(64,140,255,.35) !important;
    }

    /* 结算抽屉 */
    .checkout-panel--mobile {
        position: fixed !important;
        inset: auto 0 0 !important;
        border-radius: 26px 26px 0 0 !important;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-top: 1px solid rgba(150, 180, 255, .18) !important;
        background: linear-gradient(180deg, rgba(20, 30, 58, .99), rgba(14, 22, 44, .99)) !important;
        box-shadow: 0 -20px 60px rgba(0,0,0,.55) !important;
        backdrop-filter: blur(34px) saturate(180%);
        -webkit-backdrop-filter: blur(34px) saturate(180%);
    }
    body.mobile-checkout-open::after { background: rgba(3, 5, 12, .55) !important; }
    .checkout-panel--mobile .checkout-panel__head {
        margin-bottom: 16px !important;
        padding-bottom: 14px !important;
        background: transparent !important;
    }
    .checkout-panel--mobile .checkout-panel__head small { margin-left: 0; }
    .checkout-panel--mobile .checkout-panel__head > span { font-size: 16px !important; }
    #closeMobileCheckout {
        margin-left: auto;
        border-radius: 999px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(24, 36, 70, .7) !important;
        color: var(--ux-muted) !important;
    }
    .mobile-checkout-selection {
        border-radius: 18px !important;
        border: 1px solid var(--ux-hairline) !important;
        background: rgba(10, 16, 32, .75) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }
    .mobile-checkout-selection .goodsName { color: #eef4ff !important; font-weight: 700; }
    .mobile-quantity-row button, .mobile-quantity-row .buyNum {
        border-radius: 10px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(8, 13, 26, .9) !important;
        color: var(--ux-text) !important;
    }
}

/* ============ 11. 大屏微调 ============ */
@media (min-width: 1601px) {
    :root { --ux-maxw: 1480px; }
}

/* ============ 12. 减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .goods #LAY_demo1 > li:hover { transform: none; }
}

/* ============================================================
   v7.1 修复：订单确认白底残留 + 移动端搜索溢出
   ============================================================ */

/* --- 1. payInfo-inner：数量/支付按钮区白底强制转暗玻璃 --- */
.checkout-panel .payInfo-inner {
    background: rgba(9, 15, 30, .6) !important;
    border: 1px solid var(--ux-hairline) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
}

/* --- 2. 提示文字（内联 #515151 深灰，暗底看不清）--- */
.checkout-panel tip,
.checkout-panel .sms_tip { color: #a9b8d8 !important; }
.checkout-panel tip .smsPrice { color: #ff9fb5 !important; }

/* --- 3. 表单标签/分组标题提亮 --- */
.checkout-panel .layui-field-title legend { color: #9fb0d0 !important; }
.checkout-panel .layui-form-label { color: #aab9d9 !important; }
.checkout-panel .layui-elem-field,
.checkout-panel fieldset { background: transparent !important; }
.checkout-panel .layui-form-item { background: transparent !important; }
.checkout-panel .yue { color: #a9b8d8 !important; }
.yue .dkPrice { color: #ff9fb5 !important; }

/* --- 4. 移动端搜索框：解除 230px 最小宽，防溢出偏移 --- */
@media (max-width: 768px) {
    .purchase-catalog--mobile .products-toolbar {
        flex-wrap: wrap;
        gap: 10px 12px;
    }
    .purchase-catalog--mobile .products-toolbar h2 {
        flex: 0 1 auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .purchase-catalog--mobile .products-search {
        min-width: 0 !important;
        width: min(190px, 52vw) !important;
        margin-left: auto;
    }
}

/* ============================================================
   v7.2 对比度修复：暗色底上的文字清晰化
   ============================================================ */

/* --- 1. 全局文字层级提亮（vs 深底） --- */
:root {
    --ux-text: #d5deef;
    --ux-muted: #a9b7d4;
    --ux-faint: #8392b3;
    --purchase-muted: #a9b7d4;
    --purchase-ink: #f4f8ff;
}

/* --- 2. 商品卡：名称纯白粗体、占位文字提亮 --- */
.goods-name { color: #ffffff !important; font-weight: 700 !important; }
.goods-thumb__fallback { color: rgba(206, 226, 255, .78) !important; }
.goods .stock { color: #93a2c4 !important; }

/* --- 3. eyebrow / 加载文案 / 状态 --- */
.products-toolbar__eyebrow { color: #91a2c6 !important; }
.goods-load-actions p { color: #93a2c4 !important; }
.goods-load-actions button { color: #d7e1f5 !important; }
#goodsLoadStatus { color: #93a2c4 !important; }

/* --- 4. 顶部服务条 / 欢迎语 --- */
.purchase-utility .sinfo a { color: #a9b7d4 !important; }
.banner .gd, .banner .gd .spp { color: #aebcd8 !important; }
.mobile-welcome, .mobile-welcome span { color: #aebcd8 !important; }

/* --- 5. 收银台内文字 --- */
.checkout-panel .layui-form-label { color: #b3c0dd !important; }
.checkout-panel .layui-field-title legend { color: #a9b7d4 !important; }
.checkout-panel .proName p { color: #a9b7d4 !important; }
.payType li { color: #d5deef; }
.payment-placeholder { color: #a9b7d4 !important; }

/* --- 6. 弹层正文：基色提亮 + 覆盖内联深灰/暗红 --- */
.layui-layer-content { color: #cdd8ee !important; }
/* 覆盖协议内容里的内联深灰(如 color:#333/#555/#666/#515151)为浅色 */
.layui-layer-content [style*="color: #3"],
.layui-layer-content [style*="color:#3"],
.layui-layer-content [style*="color: #4"],
.layui-layer-content [style*="color:#4"],
.layui-layer-content [style*="color: #5"],
.layui-layer-content [style*="color:#5"],
.layui-layer-content [style*="color: #6"],
.layui-layer-content [style*="color:#6"],
.layui-layer-content [style*="color: rgb(51"],
.layui-layer-content [style*="color:rgb(51"],
.layui-layer-content [style*="color: rgb(85"],
.layui-layer-content [style*="color:rgb(85"],
.layui-layer-content [style*="color: rgb(102"],
.layui-layer-content [style*="color: rgb(128"],
.layui-layer-content [style*="color:rgb(128"] { color: #ccd7ee !important; }
/* 覆盖内联暗红为高亮粉红，深底醒目 */
.layui-layer-content [style*="color: red"],
.layui-layer-content [style*="color:red"],
.layui-layer-content [style*="color: #f00"],
.layui-layer-content [style*="color:#f00"],
.layui-layer-content [style*="color: rgb(255"],
.layui-layer-content [style*="color: rgb(255, 0"],
.layui-layer-content [style*="color:rgb(255,0"] { color: #ff8fa6 !important; }

/* --- 7. 弹层按钮文字提亮 --- */
.layui-layer-btn a { color: #e6edfb !important; }
.layui-layer-btn .layui-layer-btn0 { color: #ffffff !important; }

/* --- 8. 商品选中卡标题亮度 --- */
.goods #LAY_demo1 > li.select .goods-name { color: #ffffff !important; }

/* ============================================================
   v7.3 移动端：结算区顶部工具栏居中排版
   ============================================================ */
@media (max-width: 768px) {
    .purchase-catalog--mobile .products-toolbar {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        text-align: center;
    }
    .purchase-catalog--mobile .products-toolbar > div:first-child {
        width: 100%;
        text-align: center;
    }
    .purchase-catalog--mobile .products-toolbar h2 {
        text-align: center !important;
        margin: 0 auto !important;
    }
    .purchase-catalog--mobile .products-toolbar h2 small { margin-left: 4px; }
    .purchase-catalog--mobile .products-search {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ============================================================
   v7.4 移动端搜索框：输入占满 + 按钮贴右，标题居中
   ============================================================ */
@media (max-width: 768px) {
    .purchase-catalog--mobile .products-toolbar h2 {
        display: flex;
        align-items: baseline;
        justify-content: center;
    }
    .purchase-catalog--mobile .products-toolbar h2 small {
        float: none !important;
        margin-left: 8px !important;
        white-space: nowrap;
    }

    /* 搜索：两列网格，输入框撑满、按钮固定右端，去掉外层圆角条 */
    .purchase-catalog--mobile .products-search {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        height: auto !important;
    }
    .purchase-catalog--mobile .products-search input {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        border-radius: 999px !important;
        border: 1px solid var(--ux-line) !important;
        background: rgba(8, 13, 26, .85) !important;
        color: #e6edfb !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        box-shadow: inset 0 1px 3px rgba(0,0,0,.35) !important;
    }
    .purchase-catalog--mobile .products-search button {
        position: static !important;
        flex: 0 0 auto !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        border-radius: 999px !important;
        border: 0 !important;
        background-image: var(--ux-grad) !important;
        background-color: #4f7bff !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 10px rgba(64,140,255,.28) !important;
    }
}
