/* ============================================================
   Aurora（极光）主题适配层：把 acg-faka 原生 DOM 映射成参考站视觉
   参考站：Dujiao(dj-) + Liuguang(lg-) 双体系，样式主体在 aurora-lg.css
   ============================================================ */

/* ---------- 搜索框：确保原生输入框不吃额外边框/内距 ---------- */
.lg-search .item-search-input,
.lg-msearch .item-search-input {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    font-family: inherit;
    box-sizing: border-box;
}
.lg-search .item-search-input::-webkit-search-cancel-button,
.lg-msearch .item-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* ---------- 商品网格 ---------- */
.lg-grid.item-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
.lg-grid.item-list > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
}
@media (max-width: 1200px) {
    .lg-grid.item-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .lg-grid.item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}

.item-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--lg-mute);
    font-size: 13.5px;
    padding: 28px 0;
}

/* ---------- 商品卡：acg-card → lg-card ---------- */
.item-card-cell {
    display: block;
    height: auto;
    color: inherit !important;
    text-decoration: none !important;
}
/* 卡片整体 */
.item-card-cell .acg-card {
    position: relative;
    display: block;
    height: auto;
    padding: 10px 10px 11px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: 0 6px 18px rgba(100, 115, 210, .1);
    color: var(--lg-ink);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform .2s, box-shadow .2s;
}
.item-card-cell:hover .acg-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(90, 100, 210, .2);
}
.item-card-cell .acg-card.soldout { opacity: .92; }

/* 商品图：宽度百分比撑高，不依赖 aspect-ratio */
.item-card-cell .acg-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding-top: 79.5%;
    border-radius: 13px;
    background-color: #dfe4ff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 文字区：块级流式布局，tags → 标题 → 库存/已售，底部给价格行留位 */
.item-card-cell .acg-card > .acg-body {
    display: block;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 3px 44px;
}

/* 标签行 */
.item-card-cell .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 5px;
}
.item-card-cell .tags .badge-soft,
.item-card-cell .tags .acg-tag {
    padding: 1px 7px;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}
.item-card-cell .tags .badge-soft-primary { color: #4c7ef0; background: rgba(76, 126, 240, .12); }
.item-card-cell .tags .badge-soft-success { color: #1a9e6c; background: rgba(31, 169, 113, .12); }

/* 标题（最多两行） */
.item-card-cell .goods-title {
    margin: 0 0 5px;
    width: 100%;
    max-width: 100%;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--lg-ink);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
    box-sizing: border-box;
}

/* 库存/已售 */
.item-card-cell .stat-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--lg-mute);
}
.item-card-cell .stat-bottom span {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    color: var(--lg-mute) !important;
    font-weight: 400;
    line-height: 1.4;
    font-size: 11.5px;
}
.item-card-cell .stat-bottom span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 9px;
    margin-right: 10px;
    vertical-align: middle;
    background: rgba(160, 168, 210, .45);
}

/* 价格行 + 右下「购买」胶囊：钉在卡片底部（压掉 Vialy 的 top:50% 居中规则） */
.item-card-cell .stat-row {
    position: absolute;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    left: 10px;
    right: 10px;
    bottom: 11px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.item-card-cell .stat-row .price {
    flex: none;
    color: var(--lg-red);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.2px;
}
.item-card-cell .stat-row .price .unit {
    font-size: 11.5px;
    font-weight: 700;
    margin-right: 1px;
}
.item-card-cell .stat-row::after {
    content: "购买";
    margin-left: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 27px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--lg-grad2);
    box-shadow: 0 6px 14px rgba(80, 90, 240, .26);
}

/* 售罄条 */
.item-card-cell .soldout-ribbon {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(40, 46, 78, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.item-card-cell .acg-card.soldout .stat-row::after {
    content: "缺货";
    background: #c9ccdf;
    box-shadow: none;
}

/* 分类选中态（index.js 打的是 is-primary） */
.lg-cat.is-primary,
.lg-tile.is-primary {
    background: var(--lg-grad2) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(80, 90, 240, .28);
}
.lg-cat.is-primary .lg-cat-name,
.lg-cat.is-primary em { color: #fff !important; }
.lg-cat.is-primary .lg-cat-ic {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .5);
}
.lg-tile.is-primary {
    height: auto;
    min-height: 53px;
}
.lg-tile.is-primary b { color: #fff !important; }

/* 分类图标缺失时的兜底方块 */
.lg-cat-ic.is-empty::after,
.lg-tile-ic.is-empty::after {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #a8b2f8, #5a5cf3);
    opacity: .8;
}

/* ---------- 弹层打开时锁滚动 ---------- */
.lg-sheet-open { overflow: hidden; }

/* ---------- 手机端：商品卡改为参考站的横排列表形态 ---------- */
@media (max-width: 768px) {
    .lg-grid.item-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .lg-grid.item-list > .item-card-cell .acg-card {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 92px;
        padding: 9px 10px 9px 9px;
        border-radius: 16px;
    }
    .lg-grid.item-list > .item-card-cell .acg-thumb {
        width: 72px;
        height: 72px;
        padding-top: 0;
        flex: none;
        border-radius: 10px;
    }
    .lg-grid.item-list > .item-card-cell .acg-card > .acg-body {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 76px 0 0;
        gap: 3px 7px;
    }
    .lg-grid.item-list > .item-card-cell .tags { display: none; }
    .lg-grid.item-list > .item-card-cell .goods-title {
        order: 1;
        flex: 0 0 100%;
        margin: 0;
        font-size: 14px;
        line-height: 1.34;
        min-height: 0;
        -webkit-line-clamp: 2;
    }
    .lg-grid.item-list > .item-card-cell .stat-row {
        order: 2;
        position: static;
        flex: none;
        margin: 0 !important;
        padding: 0;
        gap: 5px;
    }
    .lg-grid.item-list > .item-card-cell .stat-row .price { font-size: 17px; }
    .lg-grid.item-list > .item-card-cell .stat-row .price .unit { font-size: 11px; }
    .lg-grid.item-list > .item-card-cell .stat-row::after { display: none; }
    .lg-grid.item-list > .item-card-cell .stat-bottom {
        order: 3;
        flex: none;
        font-size: 11px;
        gap: 0;
        color: var(--lg-mute);
    }
    .lg-grid.item-list > .item-card-cell .stat-bottom span:first-child { display: none; }
    .lg-grid.item-list > .item-card-cell .stat-bottom span + span::before { display: none; }
    /* 右侧「购买 / 缺货」按钮 */
    .lg-grid.item-list > .item-card-cell .acg-card::after {
        content: "购买";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 28px;
        padding: 0 11px;
        border-radius: 14px;
        font-size: 11.5px;
        font-weight: 700;
        color: #fff;
        background: var(--lg-grad2);
        box-shadow: 0 6px 14px rgba(80, 90, 240, .24);
    }
    .lg-grid.item-list > .item-card-cell .acg-card.soldout::after {
        content: "缺货";
        background: #c9ccdf;
        box-shadow: none;
    }
    .lg-grid.item-list > .item-card-cell .soldout-ribbon {
        right: 8px;
        top: 8px;
        font-size: 10px;
    }
    /* 手机分类卡：图标在上、名称在下 */
    .lg-mcats .lg-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: auto;
        min-height: 66px;
        padding: 10px 6px;
        border-radius: 14px;
    }
    .lg-mcats .lg-tile-ic {
        width: 30px;
        height: 30px;
        flex: none;
    }
    .lg-mcats .lg-tile b { font-size: 12.5px; line-height: 1.2; text-align: center; }
}

/* ================= 商品购买页（1:1 参考站 lg-* 购买页） ================= */
.lg-crumb {
    max-width: var(--lg-wrap);
    margin: 0 auto;
    padding: 22px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    position: relative;
    z-index: 2;
}
.lg-crumb a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.lg-crumb a:hover { color: #fff; }
.lg-crumb em { font-style: normal; color: rgba(255, 255, 255, .55); }
.lg-crumb-cur { color: #fff; font-weight: 600; }

.lg-buy-wrap {
    max-width: var(--lg-wrap);
    margin: 0 auto;
    padding: 14px 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}
.lg-buy-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.lg-glass {
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    border-radius: 20px;
    box-shadow: var(--lg-shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.lg-buy-card { padding: 20px; }
.lg-buy-hero { display: flex; gap: 22px; align-items: flex-start; }
.lg-buy-cover {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #a9a2f7, #6f74f6 60%, #5a4cf3);
}
.lg-buy-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-buy-info { flex: 1 1 auto; min-width: 0; }

.lg-buy-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.32;
    font-weight: 800;
    color: var(--lg-ink);
    letter-spacing: .2px;
}
.lg-buy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lg-buy-tags .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #1a9e6c;
    background: rgba(31, 169, 113, .12);
    border: 0;
}
.lg-buy-tags .badge-soft .material-icons { font-size: 14px; }

.lg-buy-pricebox {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(240, 47, 71, .06);
}
.lg-buy-pricebox-label { font-size: 13px; color: var(--lg-mute); }
.lg-buy-price .price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 30px;
    font-weight: 800;
    color: var(--lg-red);
    line-height: 1;
}
.lg-buy-price .price i { font-size: 18px; }

.lg-buy-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px 0 2px;
    margin-bottom: 16px;
    border-top: 1px dashed var(--lg-line);
    border-bottom: 1px dashed var(--lg-line);
}
.lg-buy-stat {
    text-align: center;
    padding: 12px 0 11px;
    position: relative;
}
.lg-buy-stat + .lg-buy-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: var(--lg-line);
}
.lg-buy-stat b {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--lg-ink);
    line-height: 1.2;
}
.lg-buy-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--lg-mute);
}
.lg-buy-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12.5px;
    color: #4b8f7a;
}
.lg-buy-feats span { position: relative; padding-left: 15px; }
.lg-buy-feats span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: rgba(31, 169, 113, .55);
}

/* 说明卡 */
.lg-buy-desc { padding: 0; overflow: hidden; }
.lg-buy-tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 20px;
    border-bottom: 1px solid var(--lg-line);
}
.lg-buy-tab {
    position: relative;
    border: 0;
    background: none;
    padding: 15px 0 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lg-sub);
    cursor: pointer;
}
.lg-buy-tab.is-on { color: var(--lg-ink); }
.lg-buy-tab.is-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--lg-grad2);
}
.lg-buy-tabpane { display: none; padding: 18px 20px 22px; min-height: 120px; font-size: 14px; line-height: 1.85; color: var(--lg-sub); }
.lg-buy-tabpane.is-on { display: block; }
.lg-buy-tabpane p { margin: 0 0 6px; }

/* 右侧购买信息卡 */
.lg-buy-side { position: sticky; top: 88px; }
.lg-buy-form { padding: 18px 18px 16px; }
.lg-buy-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lg-buy-form-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--lg-ink);
}
.lg-buy-stocktag {
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 22px;
    color: #1a9e6c;
    background: rgba(31, 169, 113, .14);
}
.lg-buy-fields { display: flex; flex-direction: column; gap: 14px; }
.lg-buy-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lg-buy-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-ink2);
}
.lg-buy-field-head .lg-buy-label { margin-bottom: 0; }
.lg-buy-hint { font-size: 11.5px; color: var(--lg-mute); }

.lg-buy-field .form-control {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--lg-line);
    background: #fff;
    font-size: 13.5px;
    color: var(--lg-ink);
    box-sizing: border-box;
}
.lg-buy-field .form-control::placeholder { color: #b9bdcc; }
.lg-buy-field .form-control:focus {
    outline: 0;
    border-color: rgba(104, 115, 246, .6);
    box-shadow: 0 0 0 3px rgba(104, 115, 246, .13);
}

.lg-buy-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 34px;
    border: 1px solid var(--lg-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.lg-buy-qty button {
    width: 34px;
    height: 100%;
    border: 0;
    background: none;
    color: var(--lg-sub);
    font-size: 16px;
    cursor: pointer;
}
.lg-buy-qty button:hover { color: var(--lg-grad2); }
.lg-buy-qty input {
    width: 46px;
    height: 100%;
    border: 0;
    border-left: 1px solid var(--lg-line);
    border-right: 1px solid var(--lg-line);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--lg-ink);
    background: #fff;
    -moz-appearance: textfield;
}
.lg-buy-qty input::-webkit-outer-spin-button,
.lg-buy-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lg-buy-minimum { margin-left: 8px; font-size: 11.5px; color: var(--lg-mute); }

/* 支付方式行 */
.lg-buy-field .pay-list { display: flex; flex-direction: column; gap: 8px; }
.lg-buy-field .pay-list .pay {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 11px;
    border: 1px solid var(--lg-line);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s;
}
.lg-buy-field .pay-list .pay:hover {
    border-color: rgba(104, 115, 246, .55);
    box-shadow: 0 6px 16px rgba(104, 115, 246, .12);
}
.lg-buy-field .pay-list .pay img { width: 22px; height: 22px; border-radius: 6px; }
.lg-buy-field .pay-list .pay span { font-size: 13px; font-weight: 700; color: var(--lg-ink); }
.lg-buy-field .pay-list .pay em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--lg-mute);
    margin-left: 4px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.lg-buy-field .pay-list .pay.is-on::after,
.lg-buy-field .pay-list .pay::after {
    content: "";
    margin-left: auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid #cdd2e6;
    background: #fff;
}
.lg-buy-field .pay-list .pay:first-child::after {
    border-color: #6873f6;
    background: #6873f6;
    box-shadow: inset 0 0 0 3px #fff;
}
.lg-buy-field .pay-list .pay-channel { flex-wrap: wrap; }

/* 合计 + 立即购买 */
.lg-buy-buybar { display: flex; flex-direction: column; }
.lg-buy-login-tip {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #5a4cf3;
    background: rgba(104, 115, 246, .08);
}
.lg-buy-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--lg-line);
}
.lg-buy-total > span { font-size: 12.5px; color: var(--lg-mute); }
.lg-buy-total i { font-style: normal; }
.lg-buy-total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--lg-red);
    letter-spacing: -.3px;
}
.lg-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--lg-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(90, 76, 243, .28);
    transition: transform .15s, box-shadow .15s;
}
.lg-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(90, 76, 243, .34); }
.lg-buy-btn:active { transform: translateY(0); }
.lg-buy-note {
    margin-top: 10px;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--lg-mute);
}

/* 手机端：单列 + 底部固定购买条 */
@media (max-width: 768px) {
    .lg-crumb {
        padding: 12px 14px 0;
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
    }
    .lg-crumb-cur { display: none; }
    .lg-buy-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 12px 130px;
    }
    .lg-buy-main { gap: 12px; }
    .lg-buy-card { padding: 14px; border-radius: 18px; }
    .lg-buy-hero { gap: 12px; }
    .lg-buy-cover { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 12px; }
    .lg-buy-title { font-size: 16.5px; margin-bottom: 7px; }
    .lg-buy-tags { margin-bottom: 10px; gap: 5px; }
    .lg-buy-tags .badge-soft { height: 21px; font-size: 11px; padding: 0 7px; }
    .lg-buy-pricebox { padding: 10px 12px; margin-bottom: 10px; }
    .lg-buy-price .price { font-size: 25px; }
    .lg-buy-stats { margin-bottom: 10px; }
    .lg-buy-stat { padding: 9px 0 8px; }
    .lg-buy-stat b { font-size: 15px; }
    .lg-buy-stat span { font-size: 11px; }
    .lg-buy-feats { gap: 5px 12px; font-size: 11.5px; }
    .lg-buy-feats span:nth-child(3) { display: none; }
    .lg-buy-desc { border-radius: 18px; }
    .lg-buy-tabs { gap: 20px; padding: 0 14px; }
    .lg-buy-tab { padding: 12px 0 10px; font-size: 13.5px; }
    .lg-buy-tabpane { padding: 14px; min-height: 90px; font-size: 13px; }
    .lg-buy-side { position: static; }
    .lg-buy-form { padding: 14px; border-radius: 18px; }
    .lg-buy-form-head h2 { font-size: 15px; }
    /* 底部固定购买条：合计 + 立即购买 */
    .lg-buy-buybar {
        position: fixed;
        z-index: 900;
        left: 0;
        right: 0;
        bottom: 70px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: linear-gradient(180deg, rgba(255,255,255,.95), #fff);
        border-top: 1px solid var(--lg-line);
        box-shadow: 0 -8px 24px rgba(100, 115, 210, .12);
    }
    .lg-buy-total {
        flex: 1 1 auto;
        margin: 0;
        padding: 0;
        border: 0;
        justify-content: flex-start;
        gap: 8px;
    }
    .lg-buy-total > span {
        display: block;
        font-size: 11px;
        color: var(--lg-mute);
        line-height: 1.2;
    }
    .lg-buy-total { flex-direction: column; align-items: flex-start; gap: 1px; }
    .lg-buy-total-price { font-size: 19px; line-height: 1.1; }
    .lg-buy-btn {
        flex: 0 0 132px;
        width: 132px;
        height: 42px;
        font-size: 14px;
    }
    .lg-buy-note { display: none; }
}

/* ---------- 会员侧页面（Vialy 骨架）玻璃化 ---------- */
.lg-body .vy-panel,
.lg-body .vy-mc-card {
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
}
.lg-body .vy-layout {
    max-width: var(--lg-wrap);
    margin: 0 auto;
    padding: 8px 20px 40px;
    box-sizing: border-box;
}

/* ================= 会员中心（Aurora 外壳） ================= */
.lg-mc-page {
    position: relative;
    z-index: 2;
    padding: 20px 0 40px;
}
.lg-sec-mc .vy-mc-layout { align-items: start; }

/* 侧栏 */
.lg-sec-mc .vy-side {
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    border-radius: 18px;
    box-shadow: var(--lg-shadow);
    padding: 14px;
    position: sticky;
    top: 88px;
}
.lg-sec-mc .vy-side__user { padding: 2px 2px 12px; }
.lg-sec-mc .vy-side__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--lg-grad);
    box-shadow: 0 8px 18px rgba(90, 76, 243, .26);
}
.lg-sec-mc .vy-side__avatar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lg-sec-mc .vy-side__name { font-size: 14.5px; font-weight: 800; color: var(--lg-ink); }
.lg-sec-mc .vy-side__mail { font-size: 11.5px; color: var(--lg-mute); }

.lg-sec-mc .vy-side__wallet {
    background: var(--lg-grad);
    border-radius: 14px;
    padding: 12px;
    color: #fff;
    box-shadow: 0 12px 26px rgba(90, 76, 243, .24);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}
.lg-sec-mc .vy-side__wallet-item { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-sec-mc .vy-side__wallet-label { font-size: 11px; color: rgba(255, 255, 255, .82); opacity: 1; }
.lg-sec-mc .vy-side__wallet-value { font-size: 16px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.lg-sec-mc .vy-side__wallet-btn {
    margin-left: auto;
    align-self: center;
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.lg-sec-mc .vy-side__nav { margin-top: 14px; gap: 3px; }
.lg-sec-mc .vy-side__group {
    margin: 10px 0 4px;
    padding: 0 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lg-mute);
    letter-spacing: .4px;
}
.lg-sec-mc .vy-side__nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--lg-sub);
    text-decoration: none;
    transition: background .16s, color .16s;
}
.lg-sec-mc .vy-side__nav a:hover { background: rgba(104, 115, 246, .08); color: #5a4cf3; }
.lg-sec-mc .vy-side__nav a.is-on {
    background: rgba(104, 115, 246, .13);
    color: #4a3ee8;
    font-weight: 700;
}
.lg-sec-mc .vy-side__ico {
    font-style: normal;
    font-size: 15px;
    width: 20px;
    text-align: center;
    opacity: .9;
}
.lg-sec-mc .vy-side__logout {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-top: 12px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #8a8fa3;
    text-decoration: none;
}
.lg-sec-mc .vy-side__logout:hover { background: rgba(240, 47, 71, .08); color: var(--lg-red); }

/* 内容卡 */
.lg-sec-mc .vy-mc-card,
.lg-sec-mc .vy-panel {
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
}
.lg-sec-mc .vy-mc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.lg-sec-mc .vy-mc-stat {
    border-radius: 16px;
    padding: 14px 16px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
}
.lg-sec-mc .vy-mc-stat__n { font-size: 20px; font-weight: 800; color: var(--lg-ink); }
.lg-sec-mc .vy-mc-stat__l { margin-top: 2px; font-size: 11.5px; color: var(--lg-mute); }
.lg-sec-mc .vy-mc-quick,
.lg-sec-mc .vy-mc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lg-sec-mc .vy-mc-quick a,
.lg-sec-mc .vy-mc-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 13px;
    background: rgba(104, 115, 246, .05);
    border: 1px solid rgba(104, 115, 246, .1);
    text-decoration: none;
    transition: background .16s, border-color .16s, transform .16s;
}
.lg-sec-mc .vy-mc-quick a:hover,
.lg-sec-mc .vy-mc-grid a:hover {
    background: rgba(104, 115, 246, .1);
    border-color: rgba(104, 115, 246, .28);
    transform: translateY(-1px);
}
.lg-sec-mc .vy-mc-quick a i,
.lg-sec-mc .vy-mc-grid a i { font-style: normal; font-size: 19px; }
.lg-sec-mc .vy-mc-quick a span,
.lg-sec-mc .vy-mc-grid a span { font-size: 12.5px; color: var(--lg-ink2); }

/* 简版页脚 */
.lg-foot--slim { padding: 18px 0 92px; margin-top: 18px; }
@media (max-width: 768px) {
    .lg-mc-page { padding: 12px 0 90px; }
    .lg-sec-mc .vy-side {
        position: static;
        padding: 10px;
        border-radius: 16px;
    }
    .lg-sec-mc .vy-side__nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        margin-top: 10px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }
    .lg-sec-mc .vy-side__nav::-webkit-scrollbar { display: none; }
    .lg-sec-mc .vy-side__group { display: none; }
    .lg-sec-mc .vy-side__nav a {
        flex: 0 0 auto;
        height: 32px;
        padding: 0 12px;
        border-radius: 16px;
        background: rgba(104, 115, 246, .07);
        font-size: 12.5px;
    }
    .lg-sec-mc .vy-side__nav a .vy-side__ico { display: none; }
    .lg-sec-mc .vy-side__logout { display: none; }
    .lg-sec-mc .vy-mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lg-sec-mc .vy-mc-stat { padding: 11px 12px; border-radius: 14px; }
    .lg-sec-mc .vy-mc-stat__n { font-size: 17px; }
    .lg-sec-mc .vy-mc-quick,
    .lg-sec-mc .vy-mc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .lg-sec-mc .vy-mc-quick a,
    .lg-sec-mc .vy-mc-grid a { padding: 11px 4px; border-radius: 12px; }
    .lg-sec-mc .vy-mc-quick a span,
    .lg-sec-mc .vy-mc-grid a span { font-size: 11.5px; }
    .lg-foot--slim { padding: 14px 0 90px; }
}

/* ================= 订单查询页 ================= */
.lg-query-page {
    position: relative;
    z-index: 2;
    padding: 24px 0 50px;
}
.lg-query-hero { text-align: center; color: #fff; padding: 6px 0 18px; }
.lg-query-hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .4px; }
.lg-query-hero p { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }

.lg-query-card { padding: 0; }
.lg-query-card .vy-panel__body { padding: 18px; }
.lg-query-card .order-query-form .vy-qline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.lg-query-card .order-query-form .form-control {
    flex: 1 1 auto;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--lg-line);
    background: #fff;
    font-size: 14px;
    padding: 0 14px;
    box-sizing: border-box;
}
.lg-query-card .order-query-form .form-control:focus {
    outline: 0;
    border-color: rgba(104, 115, 246, .6);
    box-shadow: 0 0 0 3px rgba(104, 115, 246, .13);
}
.lg-query-card .btn-search-query {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--lg-grad2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(90, 76, 243, .24);
    white-space: nowrap;
}
.lg-query-page .order-results,
.lg-query-page .no-results,
.lg-query-page .loading-state { margin-top: 16px; }
.lg-query-page .order-results .vy-panel,
.lg-query-page .no-results .vy-panel,
.lg-query-page .loading-state .vy-panel {
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    border-radius: 18px;
    box-shadow: var(--lg-shadow);
}
.lg-query-page .vy-empty { text-align: center; padding: 34px 18px; }

@media (max-width: 768px) {
    .lg-query-page { padding: 16px 0 90px; }
    .lg-query-hero { padding: 2px 0 14px; }
    .lg-query-hero h1 { font-size: 20px; }
    .lg-query-hero p { font-size: 12px; margin-top: 6px; }
    .lg-query-card { border-radius: 16px; }
    .lg-query-card .vy-panel__body { padding: 14px; }
    .lg-query-card .order-query-form .vy-qline { flex-wrap: nowrap; gap: 8px; }
    .lg-query-card .order-query-form .form-control { height: 42px; font-size: 13px; padding: 0 11px; min-width: 0; }
    .lg-query-card .btn-search-query { height: 42px; padding: 0 16px; font-size: 13px; }
}

/* 手机端：内容与底部导航留白 */
@media (max-width: 768px) {
    .lg-shop { padding-bottom: 86px; }
    .lg-grid.item-list { margin-bottom: 0; }
    .lg-mcats .lg-tile { min-height: 64px; }
}

/* ================= 顶栏搜索框：图标垂直居中 + 与右侧按钮留间距 ================= */
.lg-body .lg-top .lg-search {
    width: 300px;
    flex: 0 1 300px;
    margin-left: auto;
    margin-right: 12px;
    position: relative;
}
.lg-body .lg-top .lg-search input,
.lg-body .lg-top .lg-search .item-search-input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 16px 0 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .38) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .12)) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    text-align: left;
    box-sizing: border-box;
    outline: none;
}
.lg-body .lg-top .lg-search input::placeholder { color: rgba(255, 255, 255, .72); }
.lg-body .lg-top .lg-search input:focus {
    background: #fff !important;
    color: var(--lg-ink);
    border-color: #fff !important;
}
.lg-body .lg-top .lg-search input:focus::placeholder { color: #aab0c4; }
.lg-body .lg-top .lg-search .lg-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    display: block;
    color: #fff;
    stroke-width: 2.2;
    opacity: .95;
    z-index: 3;
    pointer-events: none;
}
.lg-body .lg-top .lg-search:focus-within .lg-search-icon { color: #8a8fa3; }

/* ================= 首页公告侧栏：标题不再与正文重叠 ================= */
.lg-body .lg-side { overflow: hidden; }
.lg-body .lg-side-head {
    flex: 0 0 auto;
    min-height: 22px;
    margin-bottom: 6px;
}
.lg-body .lg-side-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 58px;
    overflow-y: auto;
    overflow-x: hidden;
}
.lg-body .lg-side-list li {
    height: 26px !important;
    line-height: 26px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2px;
}
.lg-body .lg-side-list li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lg-body .lg-side-list li i { flex: 0 0 auto; }
.lg-body .lg-side-query { flex: 0 0 auto; }

@media (max-width: 768px) {
    .lg-body .lg-top .lg-search { display: none; }
}

/* 搜索图标必须压在输入框之上 */
.lg-body .lg-search .lg-search-icon { z-index: 3; }
.lg-body .lg-msearch .dj-icon { position: relative; z-index: 3; }

/* ================= 会员中心内页：表单与工单创建 ================= */
.lg-body .vy-mc-pagehead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}
.lg-body .vy-mc-pagehead h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}
.lg-body .vy-mc-pagehead p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
}

/* 表单通用件 */
.lg-body .vy-input {
    display: block;
    width: 100%;
    height: 44px;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    background: #fff;
    color: var(--lg-ink);
    font-size: 14px;
    font-family: inherit;
    line-height: 44px;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.lg-body .vy-input::placeholder { color: #a9afc3; }
.lg-body .vy-input:focus {
    border-color: rgba(104, 115, 246, .6);
    box-shadow: 0 0 0 3px rgba(104, 115, 246, .13);
}
.lg-body textarea.vy-input {
    height: auto;
    min-height: 150px;
    max-width: 100%;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
}
.lg-body select.vy-input { padding-right: 10px; }
.lg-body .vy-btn,
.lg-body .vy-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--lg-grad2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(90, 76, 243, .22);
    box-sizing: border-box;
}
.lg-body .vy-btn:hover,
.lg-body .vy-submit:hover { filter: brightness(1.05); }

/* 工单创建页 */
.lg-body .vy-tc { display: flex; flex-direction: column; gap: 14px; }
.lg-body .vy-tc .vy-mc-card + .vy-mc-card { margin-top: 0; }

.lg-body .vy-tc__types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.lg-body .vy-tc__type {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--lg-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
    transition: all .18s;
}
.lg-body .vy-tc__type:hover { border-color: rgba(104, 115, 246, .45); }
.lg-body .vy-tc__type.is-on {
    border-color: #5145e6;
    background: rgba(104, 115, 246, .1);
    box-shadow: 0 0 0 3px rgba(104, 115, 246, .1);
}
.lg-body .vy-tc__ico { font-size: 16px; line-height: 1; }
.lg-body .vy-tc__tname { font-size: 14px; font-weight: 700; color: var(--lg-ink); }
.lg-body .vy-tc__tdesc {
    flex: 1 1 100%;
    font-size: 12px;
    color: var(--lg-mute);
    line-height: 1.5;
}

.lg-body .vy-tc__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 18px;
}
.lg-body .vy-tc__field:last-child { margin-bottom: 0; }
.lg-body .vy-tc__field > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-sub);
    line-height: 1.4;
}
.lg-body .vy-tc__count {
    font-size: 12px;
    color: var(--lg-mute);
    text-align: right;
    line-height: 1.4;
}
.lg-body .vy-tc__help {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--lg-mute);
    line-height: 1.6;
}

.lg-body .vy-tc__prios { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-body .vy-tc__prio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--lg-line);
    border-radius: 18px;
    background: #fff;
    color: var(--lg-sub);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
}
.lg-body .vy-tc__prio.is-on {
    border-color: transparent;
    background: var(--lg-grad2);
    color: #fff;
    box-shadow: 0 8px 18px rgba(90, 76, 243, .22);
}
.lg-body .vy-tc__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9bed4;
}
.lg-body .vy-tc__dot--low { background: #7dc4a4; }
.lg-body .vy-tc__dot--mid { background: #f2b23c; }
.lg-body .vy-tc__dot--high { background: #f05252; }
.lg-body .vy-tc__prio.is-on .vy-tc__dot { background: rgba(255, 255, 255, .9); }

.lg-body .vy-tc__atts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lg-body .vy-tc__att {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--lg-line);
    background: #fff;
}
.lg-body .vy-tc__att img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lg-body .vy-tc__att-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(240, 47, 71, .92);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}
.lg-body .vy-tc__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-body .vy-tc__upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px dashed rgba(104, 115, 246, .55);
    border-radius: 10px;
    background: rgba(104, 115, 246, .07);
    color: #5145e6;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.lg-body .vy-tc__upload:hover { background: rgba(104, 115, 246, .14); }
.lg-body .vy-tc__uptip { font-size: 12px; color: var(--lg-mute); }
.lg-body .vy-tc__submit-row { display: flex; justify-content: flex-end; margin-top: 2px; }
.lg-body .vy-tc__submit { height: 46px; padding: 0 34px; font-size: 15px; }

@media (max-width: 768px) {
    .lg-body .vy-mc-pagehead { margin-bottom: 10px; }
    .lg-body .vy-mc-pagehead h1 { font-size: 17px; color: var(--lg-ink); }
    .lg-body .vy-mc-pagehead p { font-size: 12px; color: var(--lg-mute); }
    .lg-body .vy-tc { gap: 12px; }
    .lg-body .vy-tc__types { grid-template-columns: 1fr; gap: 10px; }
    .lg-body .vy-tc__type { padding: 12px 14px; }
    .lg-body .vy-tc__field { margin-bottom: 15px; }
    .lg-body .vy-input { height: 42px; font-size: 13px; line-height: 42px; }
    .lg-body textarea.vy-input { min-height: 130px; line-height: 1.65; }
    .lg-body .vy-tc__prio { height: 34px; padding: 0 14px; font-size: 12.5px; }
    .lg-body .vy-tc__submit-row { justify-content: stretch; }
    .lg-body .vy-tc__submit { width: 100%; height: 44px; font-size: 14px; }
    .lg-body .vy-tc__att { width: 64px; height: 64px; }
}

/* ================= 会员中心内页：工单详情 ================= */
.lg-body .vy-tk { display: block; }
.lg-body .vy-tk__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
    color: var(--lg-sub);
    font-size: 13.5px;
}
.lg-body .vy-tk__spin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(104, 115, 246, .28);
    border-top-color: #5145e6;
    animation: vyTkSpin .8s linear infinite;
}
@keyframes vyTkSpin { to { transform: rotate(360deg); } }

.lg-body .vy-tk__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 46px 20px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
    text-align: center;
}
.lg-body .vy-tk__empty-ico { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.lg-body .vy-tk__empty strong { font-size: 15px; color: var(--lg-ink); }
.lg-body .vy-tk__empty p { margin: 0; font-size: 13px; color: var(--lg-mute); }

/* 头部信息 */
.lg-body .vy-tk__head {
    position: relative;
    padding: 18px 20px 16px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
    margin-bottom: 14px;
}
.lg-body .vy-tk__no {
    font-size: 12px;
    color: var(--lg-mute);
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.lg-body .vy-tk__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--lg-ink);
    line-height: 1.45;
    word-break: break-word;
}
.lg-body .vy-tk__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lg-body .vy-tk__pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 11px;
    border-radius: 12px;
    background: rgba(104, 115, 246, .1);
    color: #5145e6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.lg-body .vy-tk__pill.is-type0 { background: rgba(104, 115, 246, .12); color: #5145e6; }
.lg-body .vy-tk__pill.is-type1 { background: rgba(64, 158, 255, .14); color: #2277cc; }
.lg-body .vy-tk__pill.is-prio0 { background: rgba(125, 196, 164, .18); color: #2f8f66; }
.lg-body .vy-tk__pill.is-prio1 { background: rgba(242, 178, 60, .18); color: #a86a00; }
.lg-body .vy-tk__pill.is-prio2 { background: rgba(240, 82, 82, .16); color: #c72626; }
.lg-body .vy-tk__pill.is-wait { background: rgba(242, 178, 60, .18); color: #a86a00; }
.lg-body .vy-tk__pill.is-reply { background: rgba(104, 115, 246, .16); color: #4538d6; }
.lg-body .vy-tk__pill.is-done { background: rgba(125, 196, 164, .2); color: #2f8f66; }
.lg-body .vy-tk__pill.is-closed { background: rgba(138, 143, 163, .16); color: #6b7185; }
.lg-body .vy-tk__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--lg-mute);
}
.lg-body .vy-tk__meta span { position: relative; }
.lg-body .vy-tk__meta span + span::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 10px;
    margin-top: -5px;
    background: var(--lg-line);
}

/* 消息列表 */
.lg-body .vy-tk__msgs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
    margin-bottom: 14px;
}
.lg-body .vy-tk__nomsg {
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: var(--lg-mute);
}
.lg-body .vy-tk__msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 84%;
}
.lg-body .vy-tk__msg.is-me { flex-direction: row-reverse; margin-left: auto; }
.lg-body .vy-tk__msg-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(104, 115, 246, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}
.lg-body .vy-tk__msg.is-admin .vy-tk__msg-avatar { background: rgba(64, 158, 255, .16); }
.lg-body .vy-tk__msg-main { min-width: 0; }
.lg-body .vy-tk__msg.is-me .vy-tk__msg-main { text-align: right; }
.lg-body .vy-tk__msg-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--lg-mute);
}
.lg-body .vy-tk__msg.is-me .vy-tk__msg-meta { flex-direction: row-reverse; }
.lg-body .vy-tk__msg-meta strong { font-size: 12.5px; color: var(--lg-sub); font-weight: 700; }
.lg-body .vy-tk__msg-meta em {
    font-style: normal;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(104, 115, 246, .12);
    color: #5145e6;
}
.lg-body .vy-tk__msg-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 11px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--lg-line);
    color: var(--lg-ink);
    font-size: 13.5px;
    line-height: 1.7;
    text-align: left;
    word-break: break-word;
    box-shadow: 0 3px 10px rgba(100, 115, 210, .07);
}
.lg-body .vy-tk__msg.is-me .vy-tk__msg-bubble {
    background: var(--lg-grad2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(90, 76, 243, .2);
}
.lg-body .vy-tk__md img { max-width: 100%; border-radius: 8px; display: block; margin: 6px 0; }
.lg-body .vy-tk__md a { color: #5145e6; word-break: break-all; }
.lg-body .vy-tk__msg.is-me .vy-tk__md a { color: #fff; text-decoration: underline; }

/* 系统消息 */
.lg-body .vy-tk__sys {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 12.5px;
    color: var(--lg-mute);
}
.lg-body .vy-tk__sys-line {
    flex: 0 0 auto;
    width: 3px;
    border-radius: 3px;
    align-self: stretch;
    background: rgba(104, 115, 246, .35);
}
.lg-body .vy-tk__sys-body strong { color: var(--lg-sub); font-size: 12.5px; }
.lg-body .vy-tk__sys-body time { display: block; margin-top: 2px; color: var(--lg-mute); font-size: 11.5px; }

/* 回复区 */
.lg-body .vy-tk__reply {
    padding: 16px 18px 16px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
}
.lg-body .vy-tk__reply-head {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lg-ink);
    margin-bottom: 10px;
}
.lg-body .vy-reply-text {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 118px;
    padding: 12px 14px;
    border: 1px solid var(--lg-line);
    border-radius: 12px;
    background: #fff;
    color: var(--lg-ink);
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.7;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}
.lg-body .vy-reply-text:focus {
    border-color: rgba(104, 115, 246, .6);
    box-shadow: 0 0 0 3px rgba(104, 115, 246, .13);
}
.lg-body .vy-tk__atts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lg-body .vy-tk__att {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--lg-line);
    background: #fff;
}
.lg-body .vy-tk__att img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lg-body .vy-tk__att-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(240, 47, 71, .92);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}
.lg-body .vy-tk__reply-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.lg-body .vy-reply-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 15px;
    border: 1px dashed rgba(104, 115, 246, .55);
    border-radius: 10px;
    background: rgba(104, 115, 246, .07);
    color: #5145e6;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.lg-body .vy-reply-upload:hover { background: rgba(104, 115, 246, .14); }
.lg-body .vy-tk__uptip { font-size: 12px; color: var(--lg-mute); }
.lg-body .vy-tk__reply-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.lg-body .vy-tk__reply-foot > span { font-size: 12px; color: var(--lg-mute); }
.lg-body .vy-reply-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--lg-grad2);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(90, 76, 243, .22);
}
.lg-body .vy-reply-send:hover { filter: brightness(1.05); }
.lg-body .vy-reply-send:disabled { opacity: .6; cursor: default; box-shadow: none; }

/* 已关闭 */
.lg-body .vy-tk__closed {
    display: block;
    padding: 22px;
    border-radius: 18px;
    background: var(--lg-glass);
    border: 1px solid var(--lg-glass-line);
    box-shadow: var(--lg-shadow);
    text-align: center;
}
.lg-body .vy-tk__closed strong { display: block; font-size: 14px; color: var(--lg-ink); margin-bottom: 4px; }
.lg-body .vy-tk__closed p { margin: 0 0 12px; font-size: 12.5px; color: var(--lg-mute); }
.lg-body .vy-tk__closed a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(104, 115, 246, .12);
    color: #5145e6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .lg-body .vy-tk__head { padding: 14px 15px 13px; border-radius: 16px; margin-bottom: 12px; }
    .lg-body .vy-tk__title { font-size: 16px; }
    .lg-body .vy-tk__msgs { padding: 13px 13px 15px; border-radius: 16px; max-height: none; margin-bottom: 12px; gap: 12px; }
    .lg-body .vy-tk__msg { max-width: 92%; }
    .lg-body .vy-tk__msg-avatar { width: 30px; height: 30px; font-size: 14px; }
    .lg-body .vy-tk__msg-bubble { font-size: 13px; padding: 10px 12px; }
    .lg-body .vy-tk__reply { padding: 13px 14px; border-radius: 16px; }
    .lg-body .vy-reply-text { min-height: 100px; }
    .lg-body .vy-tk__reply-foot { gap: 10px; }
    .lg-body .vy-reply-send { width: 100%; height: 42px; }
    .lg-body .vy-tk__reply-foot > span { order: 2; }
}

/* 工单列表页「创建工单」按钮配色修正 */
.lg-body .uc-ticket-primary,
.lg-body .uc-ticket-page .uc-ticket-primary {
    background: var(--lg-grad2) !important;
    color: #fff !important;
    border: 0;
    box-shadow: 0 12px 26px rgba(90, 76, 243, .24);
}
.lg-body .uc-ticket-primary strong,
.lg-body .uc-ticket-primary small,
.lg-body .uc-ticket-primary .material-icons-outlined { color: #fff !important; }
.lg-body .uc-ticket-primary small { opacity: .82; }
.lg-body .uc-ticket-primary:hover { filter: brightness(1.05); }

/* 手机公告条：公告文本为富文本时会撑破 34px 胶囊，改成单行省略 */
@media (max-width: 768px) {
    .lg-body .lg-mnotice {
        height: auto;
        min-height: 34px;
        padding: 5px 10px 5px 12px;
        overflow: hidden;
        box-sizing: border-box;
        gap: 6px;
        align-items: center;
    }
    .lg-body .lg-mnotice > b,
    .lg-body .lg-mnotice > i,
    .lg-body .lg-mnotice > svg {
        flex: 0 0 auto;
    }
    .lg-body .lg-mnotice > svg:last-of-type { margin-left: auto; }
    .lg-body .lg-mnotice .lg-mq {
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
        overflow: hidden;
    }
    .lg-body .lg-mnotice .lg-mq-track {
        height: auto;
        min-width: 0;
    }
    .lg-body .lg-mnotice .lg-mq-item {
        display: block;
        height: auto;
        font-size: 12.5px;
        line-height: 1.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lg-body .lg-mnotice .lg-mq-item p,
    .lg-body .lg-mnotice .lg-mq-item span,
    .lg-body .lg-mnotice .lg-mq-item strong {
        display: inline;
        margin: 0;
        padding: 0;
    }
    .lg-body .lg-mnotice .lg-mq-item br { display: none; }
}

/* 公告弹层：面板高度封顶后正文必须能滚动（此前 body 未设为弹性子项，长公告会被裁掉） */
.lg-body .lg-sheet-panel {
    overflow: hidden;
}
.lg-body .lg-sheet-head { flex: 0 0 auto; }
.lg-body .lg-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
@media (max-width: 768px) {
    /* 面板整体上移，避开底部 tabbar（58px + 间距），底部圆角与正文都不被遮挡 */
    .lg-body .lg-sheet {
        align-items: flex-start;
        padding: 68px 0 0;
        box-sizing: border-box;
    }
    .lg-body .lg-sheet-panel {
        max-height: calc(100vh - 148px);
        margin: 0 auto;
    }
    .lg-body .lg-sheet-body { padding-bottom: 26px; }
}

/* 购买页：去掉底部固定购买条，改到支付方式下方内嵌 */
.lg-body .lg-buy-buybar { display: none !important; }
.lg-body .lg-buy-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed var(--lg-line);
}
.lg-body .lg-buy-inline__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--lg-mute);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}
.lg-body .lg-buy-inline__total b {
    font-size: 19px;
    font-weight: 800;
    color: var(--lg-red);
    line-height: 1.2;
}
.lg-body .lg-buy-inline__btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    padding: 0 28px;
}
@media (max-width: 768px) {
    .lg-body .lg-buy-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .lg-body .lg-buy-inline__total { justify-content: center; }
    .lg-body .lg-buy-inline__btn { width: 100%; height: 44px; min-width: 0; }
}

/* ================= 登录 / 注册弹窗（极光） ================= */
.lg-auth{position:fixed;inset:0;z-index:1200;display:none}
.lg-auth.is-show{display:block}
.lg-auth__mask{position:absolute;inset:0;background:rgba(18,20,45,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.lg-auth__box{position:relative;width:min(400px,92vw);margin:7vh auto 0;padding:22px 24px 24px;border-radius:18px;background:#fff;box-shadow:0 26px 60px rgba(30,35,90,.3);max-height:88vh;overflow-y:auto;box-sizing:border-box;color:#14172a;font-family:inherit}
.lg-auth__x{position:absolute;top:10px;right:12px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:none;color:#8a8fa3;cursor:pointer;transition:.14s}
.lg-auth__x:hover{background:#f2f3f9;color:#4a4f63}
.lg-auth__head{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding-right:28px}
.lg-auth__logo{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#9d8bff,#5a4dee);box-shadow:0 6px 16px rgba(90,77,238,.28)}
.lg-auth__titles{min-width:0}
.lg-auth__titles b{display:block;font-size:15px;font-weight:800;color:#14172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-auth__titles small{display:block;font-size:11.5px;color:#8a8fa3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-auth__tabs{display:flex;gap:6px;margin-bottom:15px}
.lg-auth__tabs button{flex:1;height:38px;border-radius:11px;border:1px solid rgba(215,219,238,.9);background:#f7f8fc;color:#4a4f63;font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:.14s}
.lg-auth__tabs button.is-on{border-color:transparent;color:#fff;background:linear-gradient(135deg,#9d8bff,#5a4dee);box-shadow:0 8px 18px rgba(90,77,238,.26)}
.lg-auth-form{display:flex;flex-direction:column;gap:11px}
.lg-auth-f{display:flex;flex-direction:column;gap:5px}
.lg-auth-f>label{font-size:12px;font-weight:700;color:#4a4f63}
.lg-auth input[type=text],.lg-auth input[type=password],.lg-auth input[type=email]{width:100%;height:40px;padding:0 13px;border-radius:11px;border:1px solid rgba(215,219,238,.95);background:#f7f8fc;font-size:13.5px;color:#14172a;outline:none;font-family:inherit;box-sizing:border-box;transition:.14s}
.lg-auth input:focus{border-color:rgba(104,92,245,.6);background:#fff;box-shadow:0 0 0 3px rgba(104,92,245,.1)}
.lg-auth input::placeholder{color:#a8aec4}
.lg-auth-cap{display:flex;gap:8px;align-items:center}
.lg-auth-cap input{flex:1;min-width:0}
.lg-auth .image-code{width:98px;height:40px;flex:0 0 98px;border-radius:10px;object-fit:cover;cursor:pointer;background:#eceef6}
.lg-auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:1px 0;font-size:12.5px}
.lg-auth-check{display:inline-flex;align-items:center;gap:6px;color:#4a4f63;cursor:pointer;white-space:nowrap}
.lg-auth-check input{width:15px;height:15px;margin:0;accent-color:#5a4dee;cursor:pointer}
.lg-auth-check i{font-style:normal}
.lg-auth-link{color:#5a4dee;text-decoration:none;font-weight:600;white-space:nowrap}
.lg-auth-link:hover{text-decoration:underline}
.lg-auth-submit{width:100%;height:44px;margin-top:5px;border:0;border-radius:12px;color:#fff;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;background:linear-gradient(135deg,#9d8bff,#5a4dee);box-shadow:0 10px 22px rgba(90,77,238,.3);transition:.14s}
.lg-auth-submit:hover{filter:brightness(1.06)}
.lg-auth-submit:disabled{opacity:.7;cursor:default}
body.lg-auth-open{overflow:hidden}

@media (max-width:768px){
    .lg-auth__box{width:calc(100vw - 28px);margin:6vh auto 0;padding:20px 18px 22px;border-radius:16px;max-height:86vh}
    .lg-auth__head{margin-bottom:14px}
    .lg-auth__tabs{margin-bottom:13px}
    .lg-auth__tabs button{height:40px;font-size:14px}
    .lg-auth input[type=text],.lg-auth input[type=password],.lg-auth input[type=email]{height:44px;font-size:14px}
    .lg-auth .image-code{width:100px;height:44px;flex:0 0 100px}
    .lg-auth-submit{height:46px;font-size:15px}
}
