/* ============================================================
   千寻蓝主题 · 商城前台
   参照千寻寄售「图文模板」的版式参数重构
   主色 #185CFF / 强调 #285FF6 / 价格 #FF4D4F
   ============================================================ */

:root {
    --qx-primary: #185CFF;
    --qx-primary-2: #285FF6;
    --qx-primary-hover: #4080FF;
    --qx-primary-soft: #F0F4FF;
    --qx-primary-line: #D6E2FF;
    --qx-ink: #333333;
    --qx-text: #444444;
    --qx-muted: #888888;
    --qx-line: #F0F0F0;
    --qx-line-strong: #DCDFE6;
    --qx-bg: #EEF3FB;
    --qx-card: #FFFFFF;
    --qx-price: #FF4D4F;
    --qx-success: #52C41A;
    --qx-radius: 8px;
    --qx-shadow: 0 6px 16px -8px rgba(0, 0, 0, .08), 0 9px 28px rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03);
    --qx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.qx-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--qx-font);
    color: var(--qx-text);
    background-color: var(--qx-bg);
    background-image:
        radial-gradient(1100px 560px at 6% -8%, rgba(126, 169, 255, .55) 0%, rgba(126, 169, 255, 0) 62%),
        radial-gradient(900px 520px at 96% 2%, rgba(186, 209, 255, .62) 0%, rgba(186, 209, 255, 0) 58%),
        linear-gradient(180deg, #EDF3FF 0%, #F7F9FC 46%, #EEF3FB 100%);
    background-attachment: fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
}

body.qx-body.qx-lock {
    overflow: hidden;
}

a {
    color: var(--qx-primary);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ---------- 顶部：固定毛玻璃 ---------- */
.qx-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 120;
    background: rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.qx-header__inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.qx-shop {
    display: flex;
    align-items: center;
    min-width: 0;
}

.qx-shop__avatar {
    flex: none;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    background: #fff;
}

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

.qx-shop__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qx-shop__name {
    margin: 0 0 5px;
    color: var(--qx-ink);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qx-shop__status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.qx-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, #7748F8, #285FF6);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

.qx-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    background: #fff;
    color: #1890FF;
    font-size: 12px;
    line-height: 1.3;
    transition: border-color .2s, opacity .2s;
}

.qx-contact:hover {
    border-color: #1890FF;
    color: #1890FF;
}

.qx-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.qx-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    margin-left: 12px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: all .2s ease-in-out;
}

.qx-hbtn i {
    margin-right: 6px;
    font-size: 15px;
}

.qx-hbtn--solid {
    background: var(--qx-primary);
    border: 1px solid var(--qx-primary);
    color: #fff;
}

.qx-hbtn--solid:hover {
    background: var(--qx-primary-hover);
    border-color: var(--qx-primary-hover);
    color: #fff;
}

.qx-hbtn--outline {
    background: transparent;
    border: 1px solid var(--qx-primary);
    color: var(--qx-primary);
}

.qx-hbtn--outline:hover {
    color: var(--qx-primary-hover);
    border-color: var(--qx-primary-hover);
    background: rgba(24, 92, 255, .08);
}

/* 用户下拉 */
.qx-drop {
    position: relative;
    margin-left: 12px;
}

.qx-user__btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 6px;
    border: 1px solid rgba(24, 92, 255, .18);
    border-radius: 22px;
    background: #F0F4FF;
    color: #2A62FF;
    cursor: pointer;
}

.qx-user__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.qx-user__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    max-width: 110px;
}

.qx-user__name {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2A62FF;
    font-size: 12px;
    font-weight: 600;
}

.qx-user__balance {
    color: #64748B;
    font-size: 11px;
}

.qx-user__balance b {
    color: #2A62FF;
}

.qx-drop__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 176px;
    padding: 6px;
    border: 1px solid var(--qx-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(30, 64, 175, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 140;
}

.qx-drop.is-open .qx-drop__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qx-drop__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--qx-text);
    font-size: 13px;
    white-space: nowrap;
}

.qx-drop__item:hover {
    color: var(--qx-primary);
    background: var(--qx-primary-soft);
}

.qx-drop__item.is-danger:hover {
    color: #F5222D;
    background: #FFF1F0;
}

.qx-drop__sep {
    height: 1px;
    margin: 5px 4px;
    background: var(--qx-line);
}

.qx-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 6px;
    border: 1px solid rgba(24, 92, 255, .2);
    border-radius: 10px;
    background: #fff;
    color: var(--qx-primary);
    font-size: 16px;
    cursor: pointer;
}

/* 手机端右上角三个按钮 */
.qx-mobile-actions {
    display: none;
    align-items: center;
    gap: 5px;
}

.qx-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--qx-primary);
    border-radius: 15px;
    background: transparent;
    color: var(--qx-primary);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.qx-mobile-btn:hover {
    color: var(--qx-primary-hover);
    border-color: var(--qx-primary-hover);
}

.qx-mobile-btn--primary {
    background: var(--qx-primary);
    border-color: var(--qx-primary);
    color: #fff;
}

.qx-mobile-btn--primary:hover {
    background: var(--qx-primary-hover);
    border-color: var(--qx-primary-hover);
    color: #fff;
}

/* 移动端抽屉 */
.qx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 300px);
    padding: 20px 18px;
    background: #fff;
    box-shadow: -16px 0 40px rgba(15, 23, 42, .14);
    transform: translateX(100%);
    transition: transform .24s ease;
    z-index: 200;
    overflow-y: auto;
}

.qx-drawer.is-open {
    transform: translateX(0);
}

.qx-drawer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--qx-line);
    color: var(--qx-ink);
    font-size: 16px;
    font-weight: 700;
}

.qx-drawer__brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.qx-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--qx-text);
    font-size: 14px;
}

.qx-drawer__link:hover,
.qx-drawer__link.active {
    color: var(--qx-primary);
    background: var(--qx-primary-soft);
}

.qx-drawer__link.is-danger {
    color: #F5222D;
}

.qx-drawer__sep {
    height: 1px;
    margin: 10px 4px;
    background: var(--qx-line);
}

.qx-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s, visibility .24s;
    z-index: 190;
}

.qx-mask.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---------- 页面骨架 ---------- */
.qx-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 125px 20px 40px;
}

.qx-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--qx-shadow);
}

.qx-section {
    margin-bottom: 40px;
}

.qx-section:last-child {
    margin-bottom: 0;
}

.qx-goods-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--qx-line);
}

.qx-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.qx-section__head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: var(--qx-ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.qx-section__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--qx-primary);
}

.qx-section__hint {
    color: var(--qx-muted);
    font-size: 13px;
}

/* ---------- 分类列表 ---------- */
.qx-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.qx-cat-item {
    position: relative;
    overflow: hidden;
    width: calc(20% - 13px);
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    color: #272e40;
    text-decoration: none;
    transition: all .4s;
}

.qx-cat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(63, 120, 255, .1), transparent);
    transition: left .5s;
}

.qx-cat-item:hover::before {
    left: 100%;
}

.qx-cat-item:hover {
    border-color: #3f78ff;
    background: rgba(63, 120, 255, .08);
    color: #3f78ff;
    box-shadow: 0 4px 12px rgba(63, 120, 255, .2);
    cursor: pointer;
}

.qx-cat-item.is-primary {
    border-color: #3f78ff;
    background: rgba(63, 120, 255, .12);
    color: #3f78ff;
}

.qx-cat-item.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.qx-cat-item__name {
    margin: 8px 0;
    color: var(--qx-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.qx-cat-item.is-primary .qx-cat-item__name {
    color: var(--qx-primary);
}

.qx-cat-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.qx-cat-item__tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 100px;
    background: #f4f6fa;
    color: #8A8F99;
    font-size: 12px;
    line-height: 18px;
}

.qx-cat-item:hover .qx-cat-item__tag,
.qx-cat-item.is-primary .qx-cat-item__tag {
    background: #fff;
    color: var(--qx-primary);
}

/* ---------- 商品列表 ---------- */
.item-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.item-card-cell {
    display: block;
    min-width: 0;
    color: inherit;
}

.item-card-cell:hover {
    color: inherit;
}

.acg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--qx-line);
    border-radius: 8px;
    background: var(--qx-card);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.item-card-cell:hover .acg-card {
    transform: translateY(-2px);
    border-color: #D6E2FF;
    box-shadow: 0 12px 28px rgba(24, 92, 255, .12);
}

.acg-thumb {
    width: 100%;
    height: 180px;
    background-color: #F2F5FA;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--qx-line);
}

.acg-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}

.acg-body .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 21px;
    margin-bottom: 6px;
}

.goods-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 8px;
    color: var(--qx-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 6px;
}

.price {
    color: var(--qx-price);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.price .unit {
    margin-right: 2px;
    font-size: .8em;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    color: var(--qx-muted);
    font-size: 12px;
}

.acg-card.soldout {
    filter: grayscale(1);
    opacity: .7;
}

.soldout-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .68);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.item-card-cell {
    position: relative;
}

.item-message {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: var(--qx-muted);
    font-size: 14px;
    text-align: center;
}

/* 徽章 */
.badge-soft,
.acg-tag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.badge-soft-success {
    color: #389E0D;
    background: #F6FFED;
}

.badge-soft-primary {
    color: var(--qx-primary);
    background: var(--qx-primary-soft);
}

.badge-soft-info {
    color: #0958D9;
    background: #E6F4FF;
}

.badge-soft-danger,
.badge-soft-muted {
    color: #CF1322;
    background: #FFF1F0;
}

.badge-soft-warning {
    color: #D46B08;
    background: #FFF7E6;
}

.acg-tag--red {
    color: #CF1322;
    background: #FFF1F0;
}

.acg-tag--blue {
    color: #0958D9;
    background: #E6F4FF;
}

.acg-tag--green {
    color: #389E0D;
    background: #F6FFED;
}

.acg-tag--orange {
    color: #D46B08;
    background: #FFF7E6;
}

.acg-tag--purple {
    color: #531DAB;
    background: #F9F0FF;
}

/* ---------- 商品详情 ---------- */
.qx-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--qx-muted);
    font-size: 13px;
}

.qx-crumb a {
    color: var(--qx-muted);
}

.qx-crumb a:hover {
    color: var(--qx-primary);
}

.qx-crumb span {
    color: #C8D0DE;
}

.qx-item-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.qx-item-media {
    position: sticky;
    top: 105px;
    overflow: hidden;
    border: 1px solid var(--qx-line);
    border-radius: 8px;
    background: #F2F5FA;
}

.qx-item-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #F2F5FA;
}

.qx-item-info {
    min-width: 0;
}

.qx-item-info h1 {
    margin: 0 0 14px;
    color: var(--qx-ink);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.qx-item-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
}

.qx-item-badges .shared-button {
    cursor: pointer;
}

.qx-price-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #F7F9FF;
}

.abacus .price {
    color: var(--qx-primary-2);
    font-size: 28px;
    font-weight: 600;
}

.abacus .price .unit {
    font-size: 14px;
}

.qx-price-tip {
    color: var(--qx-muted);
    font-size: 12px;
    text-align: right;
    line-height: 1.6;
}

.qx-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qx-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--qx-ink);
    font-size: 14px;
    font-weight: 600;
}

.qx-form .form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--qx-ink);
    font-size: 14px;
    font-family: var(--qx-font);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.qx-form textarea.form-control {
    height: auto;
    min-height: 90px;
    padding: 10px 12px;
    resize: vertical;
}

.qx-form .form-control:focus {
    border-color: var(--qx-primary-2);
    box-shadow: 0 0 0 3px rgba(40, 95, 246, .1);
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sku {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--qx-text);
    font-size: 13px;
    transition: all .2s;
}

.sku:hover {
    border-color: var(--qx-primary-2);
    color: var(--qx-primary-2);
}

.sku.is-primary {
    border-color: var(--qx-primary-2);
    background: #ECF5FF;
    color: var(--qx-primary-2);
    box-shadow: inset 0 0 0 1px var(--qx-primary-2);
}

.badge-money {
    color: var(--qx-price);
    font-size: 11px;
    font-weight: 600;
}

.qty-group {
    display: flex;
    align-items: stretch;
    width: 150px;
    overflow: hidden;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
}

.qty-group button {
    width: 42px;
    border: 0;
    background: #F8FAFC;
    color: var(--qx-ink);
    font-size: 17px;
    cursor: pointer;
}

.qty-group button:hover {
    color: var(--qx-primary-2);
    background: #ECF5FF;
}

.qty-group input {
    width: 66px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--qx-line-strong);
    border-right: 1px solid var(--qx-line-strong);
    text-align: center;
    color: var(--qx-ink);
    font-size: 14px;
    font-family: var(--qx-font);
    outline: none;
    -moz-appearance: textfield;
}

.qty-group input::-webkit-outer-spin-button,
.qty-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-group .captcha-input {
    width: 150px;
}

.captcha-img {
    width: 108px;
    height: 40px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #fff;
}

.optional-card {
    min-height: 40px;
    padding: 0 12px;
    border: 1px dashed var(--qx-primary-2);
    border-radius: 8px;
    background: #F0F4FF;
    color: var(--qx-primary-2);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.optional-card:hover {
    border-color: var(--qx-primary);
}

.cash-pay {
    padding-top: 16px;
    border-top: 1px dashed var(--qx-line);
}

.cash-pay.qx-flash {
    animation: qxPayFlash 1.2s ease;
}

@keyframes qxPayFlash {
    0%, 100% {
        box-shadow: none;
    }
    35% {
        border-radius: 8px;
        box-shadow: 0 0 0 4px rgba(40, 95, 246, .14);
    }
}

.cash-pay .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--qx-ink);
    font-size: 16px;
    font-weight: 500;
}

.pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-list .pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 137px;
    height: 54px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--qx-ink);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.pay-list .pay:hover {
    border-color: var(--qx-primary-2);
    color: var(--qx-primary-2);
}

.pay-list .pay img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.qx-detail {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--qx-shadow);
}

.qx-detail__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--qx-line);
    color: var(--qx-ink);
    font-size: 17px;
    font-weight: 600;
}

.qx-detail__title i {
    color: var(--qx-primary);
}

.qx-rich {
    color: #606266;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.qx-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.qx-rich table {
    width: 100%;
    border-collapse: collapse;
}

.qx-rich td,
.qx-rich th {
    padding: 8px;
    border: 1px solid #E0E0E0;
    text-align: center;
}

.qx-rich pre {
    overflow: auto;
    padding: 12px;
    border-radius: 4px;
    background: #F8F8F8;
}

/* 移动端购买栏 */
.qx-buybar {
    display: none;
}

/* 客服悬浮 */
.qx-kefu {
    position: fixed;
    right: 10px;
    bottom: 150px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4B7BFF, #285FF6);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(40, 95, 246, .38);
    transition: transform .2s;
}

.qx-kefu:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- 订单查询 ---------- */
.qx-query-card {
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--qx-shadow);
}

.qx-query-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-left: 12px;
    position: relative;
    color: var(--qx-ink);
    font-size: 20px;
    font-weight: 600;
}

.qx-query-card__head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--qx-primary);
}

.qx-query-card__head i {
    color: var(--qx-primary);
}

.order-query-form .qx-query-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-query-form input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--qx-ink);
    font-size: 14px;
    outline: none;
}

.order-query-form input:focus {
    border-color: var(--qx-primary-2);
    box-shadow: 0 0 0 3px rgba(40, 95, 246, .1);
}

.order-results,
.no-results,
.loading-state {
    margin-top: 18px;
}

.order-item {
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--qx-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--qx-line);
}

.order-left {
    min-width: 0;
}

.order-status {
    margin-bottom: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    color: #D46B08;
    background: #FFF7E6;
}

.status-paid,
.status-shipped {
    color: #389E0D;
    background: #F6FFED;
}

.status-waiting-shipment {
    color: #0958D9;
    background: #E6F4FF;
}

.order-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--qx-muted);
    font-size: 12px;
}

.order-no-text {
    color: var(--qx-ink);
    font-weight: 600;
}

.order-right {
    flex: none;
    text-align: right;
}

.order-amount {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.amount-label {
    color: var(--qx-muted);
    font-size: 12px;
}

.amount-value {
    color: var(--qx-primary-2);
    font-size: 22px;
    font-weight: 600;
}

.goods-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.goods-thumb {
    flex: none;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 8px;
    background: #F2F5FA;
}

.goods-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-details {
    min-width: 0;
}

.goods-name {
    margin: 0 0 8px;
    color: var(--qx-ink);
    font-size: 14px;
    font-weight: 600;
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.a-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.a-badge-success {
    color: #389E0D;
    background: #F6FFED;
}

.a-badge-primary {
    color: var(--qx-primary);
    background: var(--qx-primary-soft);
}

.a-badge-warning {
    color: #D46B08;
    background: #FFF7E6;
}

.card-section {
    padding: 14px;
    border: 1px solid var(--qx-line);
    border-radius: 8px;
    background: #FAFBFC;
}

.card-header {
    margin-bottom: 10px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--qx-ink);
    font-weight: 600;
}

.shipment-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.shipment-waiting {
    color: #D46B08;
    background: #FFF7E6;
}

.shipment-paid {
    color: #389E0D;
    background: #F6FFED;
}

.card-display {
    padding: 12px 14px;
    border: 1px solid var(--qx-line);
    border-radius: 6px;
    background: #fff;
    color: var(--qx-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.password-form .input-group {
    display: flex;
    gap: 8px;
}

.password-form input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 6px;
    outline: none;
}

.card-loading {
    padding: 10px 0;
    color: var(--qx-muted);
    font-size: 13px;
}

.qx-empty {
    padding: 46px 20px;
    border-radius: 8px;
    background: #fff;
    color: var(--qx-muted);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.qx-empty i {
    display: block;
    margin-bottom: 10px;
    color: #94A3B8;
    font-size: 34px;
}

.qx-empty h3 {
    margin: 0 0 6px;
    color: var(--qx-ink);
    font-size: 16px;
}

.qx-empty p {
    margin: 0;
    font-size: 13px;
}

/* ---------- 页脚 ---------- */
.qx-footer {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.qx-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 20px 24px;
}

.qx-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.qx-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--qx-ink);
    font-size: 15px;
    font-weight: 600;
}

.qx-footer__brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.qx-footer__desc {
    margin: 8px 0 0;
    color: var(--qx-muted);
    font-size: 12px;
    line-height: 1.7;
}

.qx-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.qx-footer__links a {
    color: var(--qx-muted);
    font-size: 13px;
}

.qx-footer__links a:hover {
    color: var(--qx-primary);
}

.qx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 16px;
    color: #8794A6;
    font-size: 12px;
}

.qx-footer__bottom a {
    color: #8794A6;
}

.qx-footer__bottom a:hover {
    color: var(--qx-primary);
}

/* ---------- 公告弹窗 ---------- */
.qx-ann {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.qx-ann.is-open {
    display: flex;
}

.qx-ann__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.qx-ann__dialog {
    position: relative;
    display: none;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(30, 64, 175, .3);
    animation: qxAnnIn .24s ease;
}

.qx-ann__dialog.is-active {
    display: flex;
    flex-direction: column;
}

@keyframes qxAnnIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qx-ann__head {
    position: relative;
    padding: 26px 54px 20px 24px;
    color: #1E293B;
    background: linear-gradient(180deg, #F0F4FF, #FFFFFF);
    border-bottom: 1px solid #EEF2F9;
}

.qx-ann__badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #E6F4FF;
    color: #0958D9;
    font-size: 11px;
    font-weight: 600;
}

.qx-ann__head h3 {
    margin: 0;
    color: #2A62FF;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .5px;
}

.qx-ann__close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94A3B8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.qx-ann__close:hover {
    color: #475569;
    background: #F1F5F9;
}

.qx-ann__hero {
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #185CFF 0%, #3F78FF 58%, #6C9BFF 100%);
}

.qx-ann__hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.qx-ann__hero::before {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.qx-ann__hero-title {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
}

.qx-ann__hero-sub {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.qx-ann__hero .qx-ann__close {
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, .9);
}

.qx-ann__hero .qx-ann__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.qx-ann__body {
    padding: 20px 24px;
    color: var(--qx-text);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
    overflow-y: auto;
    max-height: 60vh;
}

.qx-ann__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--qx-line);
}

.qx-ann__hint {
    margin-right: auto;
    color: #94A3B8;
    font-size: 12px;
}

.qx-step {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.qx-step__label {
    flex: none;
    width: 100px;
    margin-right: 10px;
    padding: 8px 15px;
    border-radius: 4px;
    background: linear-gradient(135deg, #4B7BFF, #2A62FF);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.qx-step__text {
    color: #333;
    font-size: 14px;
}

.qx-ann__notice {
    margin-top: 18px;
    padding: 14px;
    border-radius: 6px;
    background: #F0F0F0;
    color: #555;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
}

/* 公告一：平台通知（Ant Modal 结构） */
.qx-ann__dialog--agreement {
    width: min(500px, 100%);
}

.qx-ann__dialog--agreement .qx-ann__head {
    padding: 16px 24px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.qx-ann__title {
    color: rgba(0, 0, 0, .88);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.qx-ann__agreement {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

.qx-ann__agreement p {
    margin: 0 0 1em;
}

.qx-ann__dialog--agreement .qx-ann__foot {
    padding: 16px 24px;
    border-top: 0;
}

.qx-ann__btn {
    display: block;
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: var(--qx-primary);
    color: #fff;
    font-family: var(--qx-font);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.qx-ann__btn:hover {
    background: #3F78FF;
}

/* 公告二：7x24h 自动发货（Ant Modal 结构） */
.qx-ann__dialog--announce {
    width: min(350px, 90%);
    border-radius: 10px;
}

.announcement-top {
    position: relative;
    padding: 30px 20px;
    background: url("announce-top.png") center / cover no-repeat;
    color: #fff;
    text-align: center;
}

.announcement-title {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.announcement-subtitle {
    font-size: 16px;
    line-height: 1.5;
}

.announcement-top .qx-ann__close {
    top: 10px;
    right: 10px;
    color: #fff;
}

.announcement-top .qx-ann__close:hover {
    color: #eee;
    background: transparent;
}

.announcement-bottom {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-label {
    flex: none;
    width: 100px;
    margin-right: 10px;
    padding: 8px 15px;
    border-radius: 4px;
    background: url("announce-step.png") center / contain no-repeat;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.step-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.announcement-notice {
    margin-top: 14px;
    color: #616775;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
}

/* ---------- 维护页 ---------- */
.qx-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #EDF3FF, #F7F9FC 60%);
}

.qx-closed__card {
    width: min(520px, 100%);
    padding: 40px 34px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--qx-shadow);
    text-align: center;
}

.qx-closed__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--qx-primary);
    background: var(--qx-primary-soft);
    font-size: 30px;
}

.qx-closed__card h1 {
    margin: 0 0 10px;
    color: var(--qx-ink);
    font-size: 22px;
    font-weight: 600;
}

.qx-closed__card p {
    margin: 0;
    color: var(--qx-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- 通用按钮 ---------- */
.qx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--qx-font);
    cursor: pointer;
    transition: all .2s;
}

.qx-btn--primary {
    background: var(--qx-primary-2);
    border-color: var(--qx-primary-2);
    color: #fff;
}

.qx-btn--primary:hover {
    background: #4080FF;
    border-color: #4080FF;
}

.qx-btn--ghost {
    background: #F0F4FF;
    border-color: var(--qx-primary-line);
    color: var(--qx-primary);
}

.qx-btn--ghost:hover {
    background: #E6EEFF;
}

.wholesale-table {
    width: 100%;
    margin-top: 8px;
    border-collapse: collapse;
    font-size: 12px;
}

.wholesale-table th,
.wholesale-table td {
    padding: 7px 9px;
    border: 1px solid #E0E0E0;
    text-align: center;
    color: var(--qx-text);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qx-cat-item {
        width: calc(25% - 12px);
    }
}

@media (max-width: 980px) {
    .qx-header {
        height: 80px;
    }

    .qx-shop__avatar {
        width: 50px;
        height: 50px;
    }

    .qx-shop__name {
        font-size: 18px;
    }

    .qx-header__actions .qx-hbtn,
    .qx-header__actions .qx-drop {
        display: none;
    }

    .qx-mobile-actions {
        display: flex;
    }

    .qx-burger {
        display: none;
    }

    .qx-main {
        padding-top: 110px;
    }

    .qx-content {
        padding: 22px;
    }

    .qx-item-grid {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .qx-main {
        padding: 95px 12px 24px;
    }

    .qx-content {
        padding: 16px;
    }

    .qx-cat-item {
        width: calc(50% - 8px);
    }

    .item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .acg-thumb {
        height: 140px;
    }

    .acg-body {
        padding: 10px 11px 12px;
    }

    .goods-title {
        min-height: 40px;
        font-size: 14px;
    }

    .price {
        font-size: 17px;
    }

    .qx-section {
        margin-bottom: 26px;
    }

    .qx-section__head {
        margin-bottom: 16px;
    }

    .qx-section__head h2 {
        font-size: 18px;
    }

    .qx-section__hint {
        display: none;
    }

    .qx-item-grid {
        grid-template-columns: 1fr;
    }

    .qx-item-media {
        position: static;
    }

    .qx-item-cover {
        aspect-ratio: 16 / 10;
    }

    .qx-item-info h1 {
        font-size: 19px;
    }

    .abacus .price {
        font-size: 24px;
    }

    .qx-price-tip {
        display: none;
    }

    .qx-detail {
        padding: 16px;
    }

    .qx-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 130;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--qx-line);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    }

    .qx-buybar__price {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .qx-buybar__price span {
        color: var(--qx-muted);
        font-size: 11px;
    }

    .qx-buybar__price b {
        overflow: hidden;
        color: var(--qx-price);
        font-size: 21px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .qx-buybar .qx-btn {
        flex: 1;
        height: 44px;
        margin-left: auto;
    }

    .qx-query-card {
        padding: 16px;
    }

    .order-query-form .qx-query-row {
        flex-direction: column;
        align-items: stretch;
    }

    .order-query-form .qx-btn {
        width: 100%;
        height: 42px;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
    }

    .order-right {
        text-align: left;
    }

    .qx-footer__inner {
        padding: 22px 16px 20px;
    }

    .qx-footer__top {
        flex-direction: column;
        gap: 16px;
    }

    .qx-ann {
        padding: 12px;
    }

    .qx-ann__dialog {
        max-height: calc(100vh - 24px);
    }

    .qx-ann__hero {
        padding: 22px 15px;
    }

    .qx-ann__hero-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .qx-ann__hero-sub {
        font-size: 13px;
    }

    .qx-ann__body {
        padding: 15px;
    }

    .qx-step__label {
        width: 80px;
        padding: 6px 10px;
        font-size: 12px;
        margin-right: 8px;
    }

    .qx-step__text {
        font-size: 13px;
    }

    .qx-ann__notice {
        padding: 12px;
        margin-top: 15px;
        font-size: 12px;
    }

    .announcement-top {
        padding: 20px 15px;
    }

    .announcement-title {
        margin-bottom: 8px;
        font-size: 22px;
    }

    .announcement-subtitle {
        font-size: 14px;
    }

    .announcement-bottom {
        padding: 15px;
    }

    .step-item {
        margin-bottom: 12px;
    }

    .step-label {
        width: 80px;
        padding: 6px 10px;
        margin-right: 8px;
        font-size: 12px;
    }

    .step-text {
        font-size: 13px;
    }

    .qx-kefu {
        right: 10px;
        bottom: 86px;
        width: 48px;
        height: 48px;
        font-size: 19px;
    }
}

@media (max-width: 460px) {
    .qx-header__inner {
        padding: 0 12px;
    }

    .qx-shop__avatar {
        width: 44px;
        height: 44px;
        margin-right: 10px;
    }

    .qx-shop__name {
        max-width: 92px;
        font-size: 16px;
    }

    .qx-verified {
        display: none;
    }

    .qx-mobile-btn {
        height: 28px;
        padding: 0 7px;
        font-size: 11px;
    }

    .acg-thumb {
        height: 128px;
    }

    .badge-soft,
    .acg-tag {
        height: 18px;
        font-size: 10px;
        padding: 0 5px;
    }
}

@media (max-width: 360px) {
    .item-list {
        grid-template-columns: 1fr;
    }

    .qx-cat-item {
        width: 100%;
    }
}

/* ---------- 商品弹窗 ---------- */
.qx-modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qx-modal.is-open {
    display: flex;
}

/* PC 端：当前页内嵌商品详情，不弹窗、不跳页 */
.qx-modal--inline.is-open {
    display: block;
}

.qx-modal--inline {
    position: static;
    margin-top: 20px;
    padding: 0;
    background: transparent;
    scroll-margin-top: 100px;
}

.qx-modal--inline .qx-modal__mask {
    display: none;
}

.qx-modal--inline .qx-modal__dialog {
    width: 100%;
    height: auto;
    max-height: none;
    border: 1px solid #EFF1F5;
    border-radius: 8px;
    box-shadow: none;
    animation: none;
}

.qx-modal--inline .qx-modal__scroll {
    max-height: none;
    overflow: visible;
}

.qx-modal--inline .qx-modal__back {
    display: none;
}

.qx-modal--inline .qx-modal__close {
    display: none;
}

.qx-modal--inline .qx-modal__head {
    height: 48px;
    padding: 0 24px;
    border-bottom: 1px solid #F0F0F0;
    border-radius: 8px 8px 0 0;
}

.qx-modal--inline .qx-modal__title {
    color: #1F2329;
    font-size: 16px;
    font-weight: 600;
}

.qx-modal--inline .qx-modal__grid--pay {
    display: block;
    padding: 24px;
}

#qmBody .qm-form .qm-field input.form-control,
.qx-item-info input[name="contact"],
.qx-item-info input[name="password"] {
    height: 32px;
    border: none;
    border-radius: 1px;
    background-color: #F4F6FA !important;
}

#qmBody .qm-form .qm-field input.form-control:focus,
.qx-item-info input[name="contact"]:focus,
.qx-item-info input[name="password"]:focus {
    border: none;
    box-shadow: none;
    background-color: #EEF2F8 !important;
}

.qx-modal--inline .qx-modal__grid--pay .qm-pay-section {
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
}

/* PC 内嵌详情：底部结算栏铺满整屏、跟随滚动 */
.qx-modal--inline .qx-modal__footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: 100%;
    padding: 0;
    border-top: 1px solid #EFF1F5;
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .06);
}

.qx-modal--inline .qx-modal__footer .qm-checkout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 20px;
}

body.qx-inline-open {
    padding-bottom: 112px;
}

.qx-modal__back {
    display: none;
    align-items: center;
    height: 30px;
    padding: 0 8px 0 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #595959;
    font-size: 14px;
    cursor: pointer;
}

.qx-modal__back:hover {
    color: var(--qx-primary);
    background: #F5F7FF;
}

.qx-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.qx-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(900px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(30, 64, 175, .3);
    animation: qxAnnIn .22s ease;
}

.qx-modal__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--qx-line);
    background: #fff;
}

.qx-modal__title {
    color: var(--qx-ink);
    font-size: 16px;
    font-weight: 600;
}

.qx-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8C8C8C;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.qx-modal__close:hover {
    color: #333;
    background: #F5F5F5;
}

.qx-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.qx-modal__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
    padding: 16px 20px;
    border-top: 1px solid var(--qx-line);
    background: #fff;
}

.qx-modal.is-loading .qx-modal__footer {
    display: none;
}

.qx-modal__footer .qm-total {
    flex: none;
    white-space: nowrap;
}

.qx-modal__footer .qm-pay-list {
    flex: 1;
    min-width: 0;
}

.qx-modal__footer .qm-buy {
    flex: none;
}

.qm-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    width: 100%;
}

.qm-checkout__goods {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.qm-checkout__cover {
    flex: none;
    width: 142px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #F2F5FA;
}

.qm-checkout__meta {
    min-width: 0;
}

.qm-checkout__name {
    display: -webkit-box;
    width: 360px;
    max-width: 100%;
    margin: 0 0 10px;
    color: var(--qx-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qm-checkout__qty {
    width: 150px;
}

.qm-checkout__price {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.qm-checkout__total {
    flex: none;
    white-space: nowrap;
}

.qm-checkout__price b {
    color: var(--qx-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.qm-checkout > .qm-buy {
    justify-self: end;
    width: 224px;
    height: 46px;
    border-radius: 16px;
}

.qm-summary-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.qm-summary-qty > span {
    color: #9198AA;
    font-size: 12px;
}

.qm-summary-qty__group {
    width: 108px;
}

.qm-summary-qty__group button {
    width: 28px;
    font-size: 14px;
}

.qm-summary-qty__group input {
    width: 52px;
    height: 24px;
    font-size: 12px;
}

.qm-pay-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--qx-line);
}

.qm-pay-section h3 {
    margin: 0 0 12px;
    color: var(--qx-ink);
    font-size: 14px;
    font-weight: 600;
}

.qx-modal__grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 28px 20px;
}

.qx-modal__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--qx-line);
    border-radius: 8px;
    background: #F2F5FA;
}

.qx-modal__info {
    min-width: 0;
}

.qx-modal__info h2 {
    margin: 0 0 12px;
    padding-right: 30px;
    color: var(--qx-ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.qx-modal__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.qm-share {
    cursor: pointer;
}

.qx-modal__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #F7F9FF;
}

.qx-modal__price {
    color: var(--qx-primary-2);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
}

.qx-modal__price .unit {
    margin-right: 2px;
    font-size: 14px;
}

.qx-modal__tip {
    color: var(--qx-muted);
    font-size: 12px;
    text-align: right;
}

.qx-modal__summary {
    display: none;
}

.qm-field__tip {
    margin-left: 6px;
    color: #FF5154;
    font-size: 10px;
    font-weight: 400;
}

.qm-field__req {
    margin-right: 3px;
    color: #FF5154;
}

.qm-field__hint {
    margin-top: 5px;
    color: #9198AA;
    font-size: 12px;
    line-height: 1.4;
}

.qm-field {
    margin-bottom: 14px;
}

.qm-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--qx-ink);
    font-size: 13px;
    font-weight: 600;
}

.qm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--qx-text);
    font-size: 13px;
    transition: all .2s;
}

.qm-chip:hover {
    border-color: var(--qx-primary-2);
    color: var(--qx-primary-2);
}

.qm-chip.is-primary {
    border-color: var(--qx-primary-2);
    background: #ECF5FF;
    color: var(--qx-primary-2);
    box-shadow: inset 0 0 0 1px var(--qx-primary-2);
}

.qm-chip span {
    color: var(--qx-price);
    font-size: 11px;
    font-weight: 600;
}

.qm-optional {
    min-height: 38px;
    padding: 0 12px;
    border: 1px dashed var(--qx-primary-2);
    border-radius: 8px;
    background: #F0F4FF;
    color: var(--qx-primary-2);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.qm-optional-premium {
    color: var(--qx-price);
    font-weight: 600;
}

.qm-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.qm-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--qx-text);
    font-size: 13px;
    cursor: pointer;
}

.qm-option input {
    accent-color: var(--qx-primary-2);
}

.qm-qty {
    width: 150px;
}

.qm-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-captcha-row .form-control {
    width: 150px;
}

.qm-captcha {
    width: 108px;
    height: 40px;
    border: 1px solid var(--qx-line-strong);
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #fff;
}

.qm-pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qm-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 132px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #DFE2E9;
    border-radius: 12px;
    background: #fff;
    color: #616775;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.qm-pay:hover {
    border-color: #3F78FF;
    color: #185CFF;
}

.qm-pay.is-active {
    border-color: #3F78FF;
    background: rgba(63, 120, 255, .1);
    color: #185CFF;
}

.qm-pay img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.qm-pay-loading {
    color: var(--qx-muted);
    font-size: 13px;
}

.qm-total {
    color: var(--qx-text);
    font-size: 14px;
}

.qm-total b {
    margin-left: 6px;
    color: var(--qx-price);
    font-size: 24px;
    font-weight: 600;
}

.qm-buy {
    min-width: 140px;
    height: 40px;
}

.qx-modal__desc {
    margin-top: 4px;
    padding: 20px 28px 28px;
    border-top: 1px solid var(--qx-line);
}

.qx-modal__desc h3 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 12px;
    color: var(--qx-ink);
    font-size: 17px;
    font-weight: 600;
}

.qx-modal__desc h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--qx-primary);
}

.qx-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 280px;
    padding: 60px 20px;
    color: var(--qx-muted);
    font-size: 14px;
}

.qx-desc-card {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #EFF1F5;
    border-radius: 8px;
    background: #fff;
}

.qx-desc-card__head {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border-bottom: 1px solid #F0F0F0;
}

.qx-desc-card__title {
    color: #1F2329;
    font-size: 16px;
    font-weight: 600;
}

.qx-desc-card__body {
    padding: 24px;
    color: #616775;
    font-size: 14px;
    line-height: 1.8;
}

.qx-modal__loading i {
    color: var(--qx-primary);
    font-size: 28px;
}

/* 较窄的桌面窗口：收缩底部结算栏，避免价格被挤到最右侧 */
@media (min-width: 761px) and (max-width: 1100px) {
    .qm-checkout {
        gap: 16px;
    }

    .qm-checkout__goods {
        gap: 12px;
    }

    .qm-checkout__cover {
        width: 100px;
        height: 64px;
    }

    .qm-checkout__name {
        width: 240px;
    }

    .qm-checkout > .qm-buy {
        width: 168px;
    }
}

@media (max-width: 760px) {
    .qx-modal {
        align-items: flex-end;
        padding: 0;
    }

    .qx-modal__dialog {
        width: 100%;
        height: 85vh;
        height: 85dvh;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        animation: qxSheetUp .24s ease;
    }

    .qx-modal__head {
        height: 48px;
        padding: 0 16px;
    }

    .qx-modal__scroll {
        max-height: none;
    }

    .qx-modal__footer {
        display: block;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }

    .qm-checkout--mobile {
        display: block;
    }

    .qm-checkout--mobile .qm-checkout__total {
        text-align: center;
    }

    .qm-checkout--mobile .qm-checkout__total b {
        font-size: 24px;
    }

    .qm-checkout--mobile .qm-pay-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .qm-checkout--mobile .qm-pay {
        width: calc(25% - 6px);
        min-width: 0;
        height: 34px;
        padding: 0 4px;
        border-radius: 8px;
        font-size: 10px;
        gap: 3px;
    }

    .qm-checkout--mobile .qm-pay img {
        width: 16px;
        height: 16px;
    }

    .qm-checkout--mobile .qm-buy {
        width: 100%;
        height: 48px;
        margin-top: 8px;
        border-radius: 8px;
    }

    .qm-checkout__total b {
        font-size: 18px;
    }

    .qx-modal__footer .qm-pay img {
        width: 16px;
        height: 16px;
    }

    .qx-modal__footer .qm-pay span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qx-modal__footer .qm-buy {
        width: 100%;
        height: 48px;
        margin-top: 8px;
    }

    .qx-modal__grid {
        display: block;
        padding: 12px 16px;
    }

    .qx-modal__media {
        display: none;
    }

    .qx-modal__info > h2,
    .qx-modal__badges,
    .qx-modal__price-row {
        display: none;
    }

    .qx-modal__summary {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--qx-line);
    }

    .qx-modal__summary img {
        flex: none;
        width: 84px;
        height: 50px;
        border-radius: 4px;
        object-fit: cover;
        background: #F5F5F5;
    }

    .qx-modal__summary-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .qm-summary-title {
        margin: 0;
        color: #333;
        font-size: 12px;
        line-height: 1.5;
        word-break: break-word;
    }

    .qm-summary-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .qm-summary-tags .badge-soft {
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .qm-summary-price {
        color: var(--qx-price);
        font-size: 15px;
        font-weight: 600;
    }

    .qx-modal__desc {
        padding: 0 16px 16px;
        border-top: 0;
    }

    .qx-modal__desc h3 {
        margin-bottom: 8px;
        padding-left: 0;
        font-size: 12px;
    }

    .qx-modal__desc h3::before {
        display: none;
    }

    .qx-modal__desc .qx-rich {
        color: #616775;
        font-size: 10px;
    }

    .qm-field > label {
        font-size: 12px;
    }

    .qm-chip {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 12px;
    }
}

@keyframes qxSheetUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* layer 弹层 */
.layui-layer {
    border-radius: 8px !important;
    overflow: hidden;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--qx-primary-2) !important;
    background: var(--qx-primary-2) !important;
}

/* ---------- 选择商品卡片（无图） ---------- */
.qx-goods-section .item-card-cell {
    display: block;
    height: 100%;
}

.qx-goods-section .acg-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #f7f9fc;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

.qx-goods-section .item-card-cell:hover .acg-card {
    border-color: #3F78FF;
    box-shadow: none;
    transform: none;
}

.qx-goods-section .item-card-cell.is-selected .acg-card {
    border-color: #3F78FF;
    box-shadow: 0 0 0 1px #3f78ff;
}

.qx-goods-section .acg-thumb {
    display: none;
}

.qx-goods-section .acg-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.qx-goods-section .acg-body .tags {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin: 8px 0 0;
}

.qx-goods-section .goods-title {
    order: 1;
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 8px;
    color: var(--qx-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qx-goods-section .stat-row {
    order: 2;
    margin: 0;
}

.qx-goods-section .price {
    color: #272e40;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.qx-goods-section .price .unit {
    font-size: 16px;
}

.qx-goods-section .stat-bottom {
    display: none;
}

.qx-goods-section .soldout-ribbon {
    display: none;
}

.qx-goods-section .badge-soft,
.qx-goods-section .acg-tag {
    height: auto;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.qx-goods-section .badge-soft-success {
    color: #008236;
    background: rgba(0, 130, 54, .1);
}

.qx-goods-section .badge-soft-success::before {
    content: "⚡";
    margin-right: 3px;
    font-size: 11px;
}

.qx-goods-section .badge-soft-primary {
    color: #185CFF;
    background: rgba(24, 92, 255, .1);
}

.qx-goods-section .qx-goods-stock {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    line-height: 18px;
}

.qx-goods-section .qx-goods-stock--success {
    color: #4CAF50;
    background: rgba(76, 175, 80, .1);
}

.qx-goods-section .qx-goods-stock--warning {
    color: #FFC107;
    background: rgba(255, 193, 7, .1);
}

.qx-goods-section .qx-goods-stock--danger {
    color: #FF9800;
    background: rgba(255, 152, 0, .1);
}

.qx-goods-section .qx-goods-stock--soldout {
    color: #999;
    background: #f0f0f0;
}
