/* ============================================================
   眸耕知识库智能客服 · 积分商城
   绿色主色 + 麦穗金强调色，卡片式商品陈列
   作者：阳润科技
   ============================================================ */

.mall-body {
    background:
        radial-gradient(760px 420px at 92% -6%, #e6efe4 0%, rgba(230, 239, 228, 0) 68%),
        linear-gradient(180deg, #f7faf5 0%, #f2f6f0 38%, #eff5ed 100%);
}

.mall-body .site-nav a.is-active {
    background: var(--green-soft);
    color: var(--green-deep);
    font-weight: 600;
}

.mall-main {
    padding: 26px 0 44px;
}

/* ---------- 首屏 ---------- */
.mall-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 34px;
    align-items: stretch;
    padding: 40px 42px 36px;
    border-radius: 28px;
    background:
        radial-gradient(600px 260px at 86% 12%, rgba(216, 163, 60, .18) 0%, rgba(216, 163, 60, 0) 68%),
        linear-gradient(135deg, #123a28 0%, #1b4a32 56%, #20553a 100%);
    color: #f4f8f2;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(18, 58, 40, .18);
}

.mall-hero::before,
.mall-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.mall-hero::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -150px;
    border: 1px solid rgba(244, 233, 205, .18);
}

.mall-hero::after {
    width: 180px;
    height: 180px;
    right: 52px;
    bottom: -110px;
    background: rgba(216, 163, 60, .1);
}

.mall-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mall-hero .eyebrow {
    margin: 0 0 14px;
    color: #e7c982;
    letter-spacing: .16em;
}

.mall-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 700;
}

.mall-hero-desc {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(244, 248, 242, .84);
    font-size: 15px;
    line-height: 1.85;
}

.mall-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.mall-hero-note {
    margin: 20px 0 0;
    padding-left: 12px;
    border-left: 2px solid rgba(231, 201, 130, .55);
    color: rgba(244, 248, 242, .62);
    font-size: 12px;
    line-height: 1.7;
}

/* 积分钱包 */
.mall-wallet {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 26px 24px 22px;
    border: 1px solid rgba(244, 233, 205, .26);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 252, 244, .14) 0%, rgba(255, 252, 244, .07) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fdfaf2;
}

.wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e7c982;
    font-size: 12px;
    letter-spacing: .08em;
}

.wallet-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e7c982;
    box-shadow: 0 0 0 4px rgba(231, 201, 130, .14);
}

.wallet-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0 2px;
    line-height: 1;
}

.wallet-value strong {
    font-size: clamp(34px, 4vw, 46px);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.wallet-value span {
    color: rgba(253, 250, 242, .62);
    font-size: 12px;
}

.wallet-note {
    margin: 8px 0 18px;
    color: rgba(253, 250, 242, .58);
    font-size: 12px;
    line-height: 1.65;
}

.wallet-detail {
    display: inline-block;
    margin-top: 12px;
    color: #e7c982;
    font-size: 12px;
    border-bottom: 1px solid rgba(231, 201, 130, .4);
}

/* 按钮 */
.mall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.mall-btn:hover { transform: translateY(-1px); }

.mall-btn-main {
    background: #e7c982;
    color: #173c29;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.mall-btn-main:hover { background: #f0d799; }

.mall-btn-soft {
    border-color: rgba(244, 248, 242, .26);
    background: rgba(255, 255, 255, .1);
    color: #f4f8f2;
}

.mall-btn-soft:hover { background: rgba(255, 255, 255, .18); }

.mall-btn-ghost {
    width: 100%;
    border-color: rgba(244, 233, 205, .35);
    background: rgba(255, 255, 255, .08);
    color: #fdfaf2;
}

.mall-btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* 概览条 */
.mall-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.mall-overview article {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 18px 24px;
}

.mall-overview article + article { border-left: 1px solid #e7eee7; }

.mall-overview span {
    color: var(--muted);
    font-size: 12px;
}

.mall-overview strong {
    color: var(--green-deep);
    font-size: 26px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mall-overview em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

/* ---------- 区块 ---------- */
.mall-section {
    margin-top: 40px;
}

.mall-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2eae1;
}

.mall-section-head .eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    letter-spacing: .14em;
}

.mall-section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.mall-section-head p:not(.eyebrow) {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.mall-sort {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e2eae1;
    border-radius: 10px;
    background: #f8fbf7;
}

.mall-sort-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.mall-sort-btn:hover { color: var(--green-deep); background: #eef5ec; }

.mall-sort-btn.is-active {
    background: var(--green);
    color: #fff;
}

/* 栏目筛选 */
.mall-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mall-filter-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #e2eae1;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.mall-filter-btn:hover {
    border-color: #bfd6c2;
    color: var(--green-deep);
}

.mall-filter-btn span {
    margin-left: 6px;
    color: #91a396;
    font-size: 11px;
}

.mall-filter-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.mall-filter-btn.is-active span { color: rgba(255, 255, 255, .72); }

.mall-filter-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.mall-filter-empty {
    margin-top: 20px;
    padding: 34px 24px;
    border: 1px dashed #d4e3d6;
    border-radius: 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.mall-filter-empty[hidden],
.mall-filter-note[hidden],
.mall-card[hidden] { display: none !important; }

/* 商品卡 */
.mall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mall-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: 1px solid #dfe9de;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(26, 58, 39, .04);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mall-card:hover {
    transform: translateY(-3px);
    border-color: #bcd4bf;
    box-shadow: 0 16px 32px rgba(26, 58, 39, .08);
}

.mall-card-top {
    position: relative;
    display: block;
}

.mall-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

a.mall-thumb {
    text-decoration: none;
    overflow: hidden;
}

a.mall-thumb:hover img { transform: scale(1.03); }

.mall-thumb--image {
    background: #edf3ec;
    box-shadow: none;
    overflow: hidden;
}

.mall-thumb--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.mall-tone-0 { background: linear-gradient(145deg, #1f5f40, #123a28); }
.mall-tone-1 { background: linear-gradient(145deg, #b9862e, #8b6120); }
.mall-tone-2 { background: linear-gradient(145deg, #3d6f58, #1e4a35); }
.mall-tone-3 { background: linear-gradient(145deg, #8c6f45, #5e4728); }

.mall-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(20, 42, 29, .10);
    color: #516358;
    font-size: 11px;
    white-space: nowrap;
}

.mall-stock.is-out {
    background: #f4ecea;
    color: #9a4b40;
}

.mall-card-body {
    flex: 1;
    padding: 16px 20px 18px;
}

.mall-card-cat {
    display: inline-block;
    margin-bottom: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef5ec;
    color: var(--green-deep);
    font-size: 10px;
    letter-spacing: .06em;
}

.mall-card-code {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 3px 9px;
    border: 1px solid #d8c68d;
    border-radius: 6px;
    background: #fff9e6;
    color: #7a5b15;
    font-size: 10px;
    font-weight: 600;
}

.mall-card-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.45;
}

.mall-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.mall-card-body h3 a:hover { color: var(--green-deep); text-decoration: underline; }

.mall-card-body p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.mall-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 20px;
    padding: 14px 0 18px;
    border-top: 1px dashed #e3ebe2;
}

.mall-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    color: var(--green-deep);
}

.mall-price strong {
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

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

.mall-exchange {
    min-width: 92px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfe0d2;
    border-radius: 9px;
    background: #f4f9f3;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 600;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.mall-exchange:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.mall-exchange:disabled {
    cursor: not-allowed;
    border-color: #e3e9e2;
    background: #f3f6f2;
    color: #9aa79f;
}

.mall-exchange.is-short {
    border-color: #ecd7b0;
    background: #fbf5e6;
    color: #8a621f;
}

/* 空状态与记录 */
.mall-empty {
    margin-top: 20px;
    padding: 46px 24px;
    border: 1px dashed #cfdfd1;
    border-radius: 16px;
    background: #f7fbf6;
    text-align: center;
}

.mall-empty strong {
    display: block;
    color: var(--green-deep);
    font-size: 18px;
}

.mall-empty p {
    margin: 10px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.mall-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green);
    font-size: 12px;
    white-space: nowrap;
}

.mall-inline-link:hover { color: var(--green-deep); }

.mall-order-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.mall-order {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 90px 100px 150px;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid #e0e9df;
    border-radius: 12px;
    background: #fff;
}

.mall-order-main {
    min-width: 0;
}

.mall-order-main strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-order-main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.mall-order-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.mall-order-code code {
    padding: 3px 7px;
    border: 1px dashed #d8c68d;
    border-radius: 6px;
    background: #fff9e6;
    color: #6d5010;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.mall-order-code span {
    display: inline;
    margin: 0;
    color: #8a7c57;
    font-size: 10px;
}

.mall-code-copy {
    padding: 3px 8px;
    border: 1px solid #cfe2d1;
    border-radius: 6px;
    background: #f3faf3;
    color: var(--green-deep);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.mall-code-copy:hover {
    background: #eaf4ec;
}

.mall-order-points {
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.mall-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f7f2;
    color: #5f7264;
    font-size: 11px;
    white-space: nowrap;
}

.mall-order-status.is-done {
    background: #eaf4ec;
    color: #236140;
}

.mall-order-time {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.mall-records-empty,
.mall-records-guest {
    margin: 18px 0 0;
    padding: 24px;
    border: 1px dashed #d4e3d6;
    border-radius: 14px;
    background: #f8fbf7;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.mall-records-guest .mall-btn {
    margin-top: 12px;
    border-color: var(--line);
    background: #fff;
    color: var(--green-deep);
}

/* 积分来源 */
.mall-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mall-how-grid article {
    position: relative;
    padding: 22px 22px 20px;
    border: 1px solid #e0e9df;
    border-radius: 14px;
    background: #fbfdf9;
}

.how-num {
    display: block;
    margin-bottom: 12px;
    color: #b9c9b8;
    font-size: 11px;
    letter-spacing: .12em;
}

.mall-how-grid h3 {
    margin: 0;
    color: var(--green-deep);
    font-size: 17px;
}

.mall-how-grid p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

/* ---------- 商品详情 ---------- */
.mall-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.mall-crumbs a { color: var(--muted); text-decoration: none; }
.mall-crumbs a:hover { color: var(--green-deep); }
.mall-crumbs span[aria-hidden] { color: #b3c1b5; }

.mall-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
    gap: 30px;
    padding: 24px;
    border: 1px solid #dfe9de;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(26, 58, 39, .06);
}

.mall-detail-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    border-radius: 18px;
    background: #edf3ec;
    overflow: hidden;
}

.mall-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-detail-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: clamp(56px, 9vw, 96px);
    font-weight: 700;
    letter-spacing: .06em;
}

.mall-detail-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 6px 2px;
}

.mall-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.mall-detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
}

.mall-detail-tags .is-cat { background: #eef5ec; color: var(--green-deep); }
.mall-detail-tags .is-code { border: 1px solid #d8c68d; background: #fff9e6; color: #7a5b15; }

.mall-detail-info h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.28;
    letter-spacing: -.01em;
}

.mall-detail-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.mall-detail-buybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px dashed #dfe9de;
    border-bottom: 1px dashed #dfe9de;
}

.mall-detail-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    color: var(--green-deep);
}

.mall-detail-price strong {
    font-size: 34px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mall-detail-price span { color: var(--muted); font-size: 12px; }

.mall-detail-stock {
    color: var(--muted);
    font-size: 12px;
}

.mall-detail-stock.is-out { color: #9a4b40; }

.mall-detail-buy {
    min-height: 46px;
    margin-left: auto;
    padding: 0 22px;
    font-size: 14px;
}

.mall-detail-buy:disabled {
    cursor: not-allowed;
    border-color: #e3e9e2;
    background: #f3f6f2;
    color: #9aa79f;
    box-shadow: none;
    transform: none;
}

.mall-detail-desc {
    margin-top: 22px;
}

.mall-detail-desc h2 {
    margin: 0 0 10px;
    color: var(--green-deep);
    font-size: 15px;
    letter-spacing: .04em;
}

.mall-detail-desc p {
    margin: 0;
    color: #43584a;
    font-size: 13px;
    line-height: 1.95;
    white-space: pre-line;
    word-break: break-word;
}

.mall-detail-wallet {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.mall-detail-wallet strong { color: var(--green-deep); }
.mall-detail-wallet span { margin-left: 8px; }

.mall-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.mall-related {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfe9de;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.mall-related:hover {
    border-color: #bcd4bf;
    box-shadow: 0 10px 24px rgba(26, 58, 39, .07);
}

.mall-related-thumb {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #edf3ec;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.mall-related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mall-related-thumb.mall-tone-0 { background: linear-gradient(145deg, #1f5f40, #123a28); }
.mall-related-thumb.mall-tone-1 { background: linear-gradient(145deg, #b9862e, #8b6120); }
.mall-related-thumb.mall-tone-2 { background: linear-gradient(145deg, #3d6f58, #1e4a35); }
.mall-related-thumb.mall-tone-3 { background: linear-gradient(145deg, #8c6f45, #5e4728); }

.mall-related-body { min-width: 0; }

.mall-related-body strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mall-related-body span {
    display: block;
    margin-top: 5px;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 600;
}

/* toast */
.mall-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 120;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(18, 58, 40, .94);
    color: #f7fbf5;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}

.mall-toast.is-error {
    background: rgba(139, 44, 36, .96);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1050px) {
    .mall-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr);
        gap: 24px;
        padding: 34px 32px 30px;
    }

    .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .mall-hero { grid-template-columns: minmax(0, 1fr); }
    .mall-wallet { max-width: 420px; }
    .mall-main { padding-top: 20px; }
    .mall-detail { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
    .mall-detail-media { min-height: 220px; }
    .mall-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .mall-hero {
        padding: 28px 22px 24px;
        border-radius: 20px;
    }

    .mall-hero h1 { font-size: 38px; }
    .mall-hero-desc { font-size: 14px; }

    .mall-overview article {
        flex-wrap: wrap;
        gap: 3px 6px;
        padding: 14px 16px;
    }

    .mall-overview span { width: 100%; }
    .mall-overview strong { font-size: 22px; }

    .mall-section { margin-top: 30px; }
    .mall-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .mall-section-head h2 { font-size: 22px; }
    .mall-sort { flex-wrap: wrap; }

    .mall-grid,
    .mall-how-grid { grid-template-columns: minmax(0, 1fr); }

    .mall-related-grid { grid-template-columns: minmax(0, 1fr); }

    .mall-detail-buy { width: 100%; margin-left: 0; }

    .mall-order {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .mall-order-points { grid-column: 2; grid-row: 1; }
    .mall-order-status { justify-self: start; }
    .mall-order-time { grid-column: 2; text-align: right; }
}

@media (max-width: 460px) {
    .mall-hero { padding: 24px 18px 20px; }
    .mall-hero h1 { font-size: 33px; }
    .mall-hero-actions .mall-btn { flex: 1 1 auto; }
    .mall-wallet { padding: 20px 18px 18px; }
    .mall-overview { grid-template-columns: minmax(0, 1fr); }
    .mall-overview article + article { border-left: 0; border-top: 1px solid #e7eee7; }
    .mall-card-body { padding: 14px 16px 16px; }
    .mall-card-foot { margin: 0 16px; align-items: flex-end; }
    .mall-exchange { min-width: 84px; }
    .mall-order { padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .mall-btn,
    .mall-card,
    .mall-exchange { transition: none; }
}

/* 优惠券：商城“我的优惠券”列表、详情页选券、兑换记录券号。 */
.mall-coupon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mall-coupon-list[hidden] { display: none; }

.mall-coupon-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid #d8e6d9;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fbf7 0%, #fff 100%);
}

.mall-coupon-card.is-disabled {
    background: #f7f8f7;
    border-color: #e3e7e3;
    color: #6d7d70;
}

.mall-coupon-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.mall-coupon-main strong {
    color: #1f5f40;
    font-size: 22px;
    line-height: 1.2;
}

.mall-coupon-card.is-disabled .mall-coupon-main strong { color: #77857a; }

.mall-coupon-main span {
    color: #5f7264;
    font-size: 13px;
}

.mall-coupon-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mall-coupon-code code {
    padding: 3px 8px;
    border: 1px dashed #c8dcc9;
    border-radius: 6px;
    background: #fff;
    color: #285a39;
    font-size: 12px;
    letter-spacing: .4px;
}

.mall-coupon-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #77857a;
    font-size: 12px;
}

.mall-coupon-status {
    padding: 2px 8px;
    border-radius: 99px;
    background: #edf0ee;
    color: #6e7d71;
    white-space: nowrap;
}

.mall-coupon-status.is-ok {
    background: #e8f5eb;
    color: #24703d;
}

.mall-coupon-picker {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #dce8dd;
    border-radius: 12px;
    background: #f8fbf8;
}

.mall-coupon-picker[hidden] { display: none; }

.mall-coupon-picker label {
    color: #2c4a34;
    font-size: 13px;
    font-weight: 700;
}

.mall-coupon-picker select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cfe0d1;
    border-radius: 8px;
    background: #fff;
    color: #23422c;
    font-size: 13px;
}

.mall-coupon-picker p,
.mall-coupon-picker a {
    margin: 0;
    color: #617568;
    font-size: 12px;
    line-height: 1.6;
}

.mall-coupon-picker a { color: #1f5f40; font-weight: 700; }

.mall-order-points em { font-style: normal; }

@media (max-width: 640px) {
    .mall-coupon-list { grid-template-columns: minmax(0, 1fr); }
}

