/* ============================================================
   NovaMall Mobile · App 级体验
   ============================================================ */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #8b5cf6;
    --danger: #ef4444;
    --success: #22c55e;
    --warn: #f59e0b;
    --bg: #f5f6fa;
    --card: #fff;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --border: #f1f2f5;
    --header-h: 52px;
    --tabbar-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body.m-body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }

/* ============ 顶部导航（毛玻璃） ============ */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-h) + var(--safe-top));
    padding-top: var(--safe-top);
    z-index: 900;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 10px;
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.m-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.m-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.m-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-logo img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.m-logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.m-logo-text {
    font-size: 15px; font-weight: 800; color: var(--text);
    max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.m-back {
    width: 36px; height: 36px; border-radius: 12px;
    background: #f3f4f6; color: var(--text);
    display: flex; align-items: center; justify-content: center;
}
.m-back:active { background: #e5e7eb; }

.m-page-title {
    font-size: 16px; font-weight: 700; color: var(--text);
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.m-header-btn {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); position: relative;
    transition: background .15s;
}
.m-header-btn:active { background: rgba(0,0,0,.05); }
.m-btn-icon { font-size: 18px; }

.m-badge {
    position: absolute; top: 3px; right: 3px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fff;
}

.m-avatar {
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #fff !important; font-weight: 800; font-size: 14px;
    margin-left: 4px;
}

.m-login-btn {
    width: auto !important;
    padding: 0 14px !important;
    height: 32px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border-radius: 999px !important;
}

/* ============ 底部 Tab ============ */
.m-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-top: 1px solid rgba(0,0,0,.05);
    display: flex;
    z-index: 900;
}

.m-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    color: var(--text-3);
    transition: color .15s;
    padding: 4px 0;
}
.m-tab.active { color: var(--primary); }
.m-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.m-tab:active { opacity: .7; }
.m-tab svg { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.m-tab.active svg { transform: translateY(-1px) scale(1.05); }
.m-tab span { font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }

.m-tab-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    margin-left: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

/* ============ 悬浮按钮 ============ */
.m-float-ai {
    position: fixed !important;
    right: 14px !important;
    bottom: 70px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #06b6d4, #10b981) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(16,185,129,.4) !important;
    z-index: 998 !important;
    gap: 1px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.m-float-ai:active { transform: scale(.94); }
.m-float-icon { font-size: 20px; line-height: 1; }
.m-float-label { font-size: 9px; font-weight: 700; }

/* ============ Toast ============ */
.m-toast {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) scale(.9);
    background: rgba(0,0,0,.82);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    max-width: 280px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 9999;
    backdrop-filter: blur(10px);
}
.m-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============ 主内容区 ============ */
.m-main { min-height: calc(100vh - var(--header-h) - var(--tabbar-h)); }

/* ============ 通用组件 ============ */
.m-section {
    padding: 16px 14px;
}
.m-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.m-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -.2px;
}
.m-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
.m-section-more {
    font-size: 12.5px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 卡片 */
.m-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
}

/* 按钮 */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .1s, opacity .1s;
    border: 0;
    font-family: inherit;
    gap: 6px;
}
.m-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(99,102,241,.35);
}
.m-btn-primary:active { transform: scale(.97); }

/* ============================================================
   移动端首页专用
   ============================================================ */

/* 搜索框 */
.m-search-bar {
    padding: 10px 14px;
    background: #fff;
    position: sticky;
    top: calc(var(--header-h) + var(--safe-top));
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.m-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f6fa;
    border-radius: 12px;
    color: var(--text-3);
    font-size: 13.5px;
}
.m-search-inner svg { flex-shrink: 0; }

/* 公告 */
.m-announce {
    margin: 12px 14px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.08));
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero */
.m-hero {
    margin: 12px 14px 0;
    padding: 28px 22px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 30% 0%, #1e1b4b 0%, #0f172a 60%, #0a0e1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.m-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(99,102,241,.4), transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(6,182,212,.3), transparent 45%);
    pointer-events: none;
}
.m-hero > * { position: relative; z-index: 1; }
.m-hero-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.4);
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: #a5b4fc;
    font-weight: 600;
    margin-bottom: 14px;
}
.m-hero h1 {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.5px;
    background: linear-gradient(120deg, #fff 30%, #c7d2fe 60%, #67e8f9 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.m-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin-bottom: 20px;
}
.m-hero-stats {
    display: flex;
    gap: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(148,163,184,.15);
}
.m-hero-stats > div { flex: 1; }
.m-hero-stats b {
    display: block;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -.5px;
}
.m-hero-stats span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

/* 分类快捷入口 */
.m-quick-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px 14px 8px;
}
.m-quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
}
.m-quick-cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.m-quick-cat:nth-child(2) .m-quick-cat-icon { background: linear-gradient(135deg,#fff7ed,#ffedd5); }
.m-quick-cat:nth-child(3) .m-quick-cat-icon { background: linear-gradient(135deg,#ecfdf5,#d1fae5); }
.m-quick-cat:nth-child(4) .m-quick-cat-icon { background: linear-gradient(135deg,#fef2f2,#fee2e2); }
.m-quick-cat:nth-child(5) .m-quick-cat-icon { background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.m-quick-cat:nth-child(6) .m-quick-cat-icon { background: linear-gradient(135deg,#fdf4ff,#fae8ff); }
.m-quick-cat:nth-child(7) .m-quick-cat-icon { background: linear-gradient(135deg,#fefce8,#fef9c3); }
.m-quick-cat:nth-child(8) .m-quick-cat-icon { background: linear-gradient(135deg,#f0fdfa,#ccfbf1); }
.m-quick-cat:nth-child(9) .m-quick-cat-icon { background: linear-gradient(135deg,#f5f3ff,#ede9fe); }
.m-quick-cat:nth-child(10) .m-quick-cat-icon { background: linear-gradient(135deg,#fef2f2,#fee2e2); }
.m-quick-cat-text {
    font-size: 11px;
    color: var(--text-2);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 横向滑动条 */
.m-hscroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 14px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.m-hscroll::-webkit-scrollbar { display: none; }
.m-hscroll > * { flex-shrink: 0; scroll-snap-align: start; }

/* 限时特惠卡 */
.m-flash-card {
    width: 140px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}
.m-flash-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-flash-img img { width: 100%; height: 100%; object-fit: cover; }
.m-flash-info { padding: 8px 10px 10px; }
.m-flash-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.m-flash-price { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.m-flash-price b { color: var(--danger); font-size: 15px; font-weight: 800; }
.m-flash-price s { color: var(--text-3); font-size: 11px; }

/* 商品瀑布流 */
.m-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 14px 16px;
}
.m-product {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .1s;
}
.m-product:active { transform: scale(.98); }
.m-product-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-product-img img { width: 100%; height: 100%; object-fit: cover; }
.m-product-info { padding: 10px 10px 12px; }
.m-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.m-product-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.m-product-price { color: var(--danger); font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.m-product-sales { color: var(--text-3); font-size: 11px; }

/* 店铺卡（横滑） */
.m-store-card {
    width: 130px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
}
.m-store-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    overflow: hidden;
}
.m-store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-store-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-store-count {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 3px;
}

/* 品牌卡 */
.m-brand-card {
    width: 90px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.m-brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 评价卡 */
.m-review-card {
    width: 280px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
}
.m-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; overflow: hidden;
}
.m-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-review-name { font-weight: 700; color: var(--text); font-size: 13px; }
.m-review-country { font-size: 11px; color: var(--text-3); }
.m-review-stars { color: #fbbf24; font-size: 12px; }
.m-review-content {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 快捷服务条 */
.m-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    margin: 0 14px 16px;
}
.m-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
}
.m-service-icon { font-size: 22px; }
.m-service-text { font-size: 11px; color: var(--text-2); font-weight: 600; text-align: center; }

/* ============ 通用页面（非首页） ============ */
.m-container { padding: 14px; }
.m-page-head {
    padding: 16px 14px 10px;
}
.m-page-head h1 { font-size: 20px; font-weight: 800; color: var(--text); }

/* 商品列表页 */
.m-catalog-filter {
    position: sticky;
    top: calc(var(--header-h) + var(--safe-top));
    background: #fff;
    z-index: 50;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.m-catalog-filter::-webkit-scrollbar { display: none; }
.m-cfilter { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: #f5f6fa; color: var(--text-2); font-size: 13px; font-weight: 600; }
.m-cfilter.active { background: var(--primary); color: #fff; }

/* 商品详情 */
.m-detail-gallery {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.m-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.m-detail-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; background: #fff; }
.m-detail-thumbs::-webkit-scrollbar { display: none; }
.m-detail-thumb {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
    border: 2px solid transparent;
    background: #f5f6fa;
}
.m-detail-thumb.active { border-color: var(--primary); }
.m-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.m-detail-info { padding: 14px; background: #fff; }
.m-detail-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.m-detail-price { font-size: 24px; font-weight: 900; color: var(--danger); letter-spacing: -.5px; }
.m-detail-meta { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.m-detail-meta b { color: var(--text); }

/* 底部固定购买栏 */
.m-detail-bottom {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom));
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.m-detail-bottom .m-btn { flex: 1; height: 44px; padding: 0; }
.m-detail-bottom .m-btn-cart {
    flex: 1;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239,68,68,.35);
}

/* 购物车 */
.m-cart-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.m-cart-item { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 12px; }
.m-cart-img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #f5f6fa; flex-shrink: 0; }
.m-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.m-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-cart-name { font-size: 13px; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-cart-sku { font-size: 11px; color: var(--text-3); }
.m-cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.m-cart-price { color: var(--danger); font-weight: 800; font-size: 15px; }

/* 我的 */
.m-account-hero {
    padding: 20px 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 0 0 24px 24px;
    margin-bottom: 14px;
}
.m-account-hero .m-avatar-lg {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    overflow: hidden;
}
.m-account-hero .m-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.m-account-name { font-size: 18px; font-weight: 800; margin-top: 10px; }
.m-account-email { font-size: 12px; opacity: .8; margin-top: 2px; }

.m-account-menu {
    background: #fff;
    border-radius: 16px;
    margin: 0 14px;
    overflow: hidden;
}
.m-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}
.m-account-item:last-child { border-bottom: 0; }
.m-account-item:active { background: #f9fafb; }
.m-account-item-icon {
    width: 32px; height: 32px; border-radius: 10px;
    background: #eef2ff; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.m-account-item-text { flex: 1; font-weight: 600; }
.m-account-item-arrow { color: var(--text-3); font-size: 16px; }

/* 登录页 */
.m-auth-wrap {
    min-height: calc(100vh - var(--header-h) - var(--tabbar-h));
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    padding: 40px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
}
.m-auth-logo { text-align: center; margin-bottom: 32px; }
.m-auth-logo-mark {
    width: 72px; height: 72px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 32px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 12px 40px rgba(99,102,241,.4);
}
.m-auth-title { font-size: 22px; font-weight: 800; }
.m-auth-sub { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 6px; }

.m-auth-form {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
}
.m-auth-field {
    display: block;
    margin-bottom: 12px;
}
.m-auth-field label {
    display: block;
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    margin-bottom: 6px;
    font-weight: 600;
}
.m-auth-field input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all .15s;
    font-family: inherit;
}
.m-auth-field input:focus {
    border-color: #a5b4fc;
    background: rgba(255,255,255,.12);
}
.m-auth-field input::placeholder { color: rgba(255,255,255,.35); }

.m-auth-btn {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-top: 6px;
    box-shadow: 0 10px 30px rgba(99,102,241,.4);
    transition: transform .1s;
    border: 0;
    font-family: inherit;
}
.m-auth-btn:active { transform: scale(.98); }

.m-auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}
.m-auth-switch a { color: #a5b4fc; font-weight: 700; }

/* 通用空状态 */
.m-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.m-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: .5; }
.m-empty-text { font-size: 14px; }

/* 加载骨架 */
.m-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: mShimmer 1.4s infinite;
    border-radius: 12px;
}
@keyframes mShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============ 语言按钮 ============ */
.m-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 3px;
    padding: 0 10px !important;
    width: auto !important;
    background: #f3f4f6 !important;
    height: 32px !important;
    border-radius: 999px !important;
    margin-right: 4px;
}
.m-lang-icon { font-size: 13px; line-height: 1; }
.m-lang-code {
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .3px;
}

/* ============ 语言选择弹层 ============ */
.m-lang-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.mls-mask {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s;
}
.m-lang-sheet.show .mls-mask { opacity: 1; }

.mls-panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    padding-bottom: var(--safe-bottom);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.m-lang-sheet.show .mls-panel { transform: translateY(0); }

.mls-head {
    padding: 18px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.mls-head::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}
.mls-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}
.mls-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-2);
    border: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mls-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
}
.mls-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
}
.mls-item:active { background: #f9fafb; }
.mls-item.active { background: #eef2ff; }
.mls-item.active .mls-name { color: var(--primary); font-weight: 800; }

.mls-flag {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.mls-info { flex: 1; min-width: 0; }
.mls-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.mls-extra {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}
.mls-check {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============ 语言按钮 v2（加强背景色） ============ */
.m-lang-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px !important;
    width: auto !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .3px;
    border: 0 !important;
    margin-left: 4px;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
    transition: transform .15s, box-shadow .15s;
}
.m-lang-btn:active {
    transform: scale(.95);
    box-shadow: 0 2px 6px rgba(99,102,241,.25);
}
.m-lang-btn svg { display: none; }

/* ============ 商家入驻悬浮按钮 ============ */
.m-float-join {
    position: fixed !important;
    right: 14px !important;
    bottom: 132px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(139,92,246,.4) !important;
    z-index: 999 !important;
    gap: 1px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.m-float-join:active { transform: scale(.94); }
.m-float-join .m-float-icon { font-size: 20px; line-height: 1; }
.m-float-join .m-float-label { font-size: 9px; font-weight: 700; }

.m-float-hot {
    position: absolute;
    top: -4px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(239,68,68,.5);
    animation: mHotPulse 1.6s ease-in-out infinite;
}
@keyframes mHotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ============ 弹窗通用增强 ============ */
.m-login-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
}
.m-login-sheet .mls-panel {
    background: #fff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    padding-bottom: var(--safe-bottom);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.m-login-sheet.show .mls-panel { transform: translateY(0); }
.m-login-sheet.show .mls-mask { opacity: 1; }

.m-login-sheet .mls-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
}

/* 表单 */
.m-form-group {
    margin-bottom: 16px;
}
.m-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
.m-form-group input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all .15s;
    font-family: inherit;
    -webkit-appearance: none;
}
.m-form-group input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}

.m-btn-block {
    width: 100% !important;
    height: 50px !important;
    justify-content: center !important;
    font-size: 15px !important;
    border-radius: 14px !important;
}

.m-login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}
.m-login-footer a {
    color: #6366f1;
    font-weight: 700;
}

.m-login-tip {
    margin-top: 18px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 10px;
    font-size: 12px;
    color: #0369a1;
    text-align: center;
}

/* ============ 悬浮按钮强制定位 ============ */
.m-float-join,
.m-float-ai {
    position: fixed !important;
    right: 14px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    border: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    color: #fff !important;
    z-index: 999 !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform .15s !important;
}
.m-float-join:active,
.m-float-ai:active {
    transform: scale(.94) !important;
}
.m-float-join {
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 76px) !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    box-shadow: 0 8px 24px rgba(139,92,246,.45) !important;
}
.m-float-ai {
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px) !important;
    background: linear-gradient(135deg, #06b6d4, #10b981) !important;
    box-shadow: 0 8px 24px rgba(16,185,129,.45) !important;
}
.m-float-join .m-float-icon,
.m-float-ai .m-float-icon { font-size: 20px; line-height: 1; }
.m-float-join .m-float-label,
.m-float-ai .m-float-label { font-size: 9px; font-weight: 700; }

.m-float-hot {
    position: absolute;
    top: -4px;
    right: -6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(239,68,68,.5);
    animation: mHotPulse 1.6s ease-in-out infinite;
}
@keyframes mHotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============ 语言按钮（紫渐变） ============ */
.m-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 32px !important;
    width: auto !important;
    min-width: 54px !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .3px !important;
    border: 0 !important;
    margin-left: 4px !important;
    box-shadow: 0 4px 12px rgba(99,102,241,.35) !important;
    cursor: pointer !important;
}
.m-lang-btn:active {
    transform: scale(.95) !important;
}

/* ============================================================
   商品详情页 · 移动端原生 App 风格
   ============================================================ */

@media (max-width: 768px) {

    /* 整体 */
    .shop-detail {
        padding-bottom: 130px !important;
    }
    .shop-detail-main {
        padding: 0 !important;
        max-width: 100% !important;
    }
    .shop-back {
        display: none !important;
    }

    /* 图片区 */
    .shop-detail-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .sd-gallery {
        gap: 0 !important;
    }
    .sd-main-img {
        aspect-ratio: 1 / 1 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }
    .sd-main-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .sd-thumbs {
        padding: 10px 14px !important;
        gap: 8px !important;
        background: #fff !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }
    .sd-thumb {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
    }

    /* 信息区 */
    .shop-detail-info {
        padding: 14px !important;
        background: #fff !important;
    }

    /* 分类小标签 */
    .shop-detail-cat {
        display: inline-block !important;
        font-size: 11px !important;
        padding: 3px 10px !important;
        border-radius: 6px !important;
        background: #eef2ff !important;
        color: #4f46e5 !important;
        margin-bottom: 10px !important;
    }

    /* 标题 */
    .shop-detail-title {
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin: 0 0 6px !important;
        color: #111827 !important;
    }
    .shop-detail-sub {
        font-size: 13px !important;
        color: #6b7280 !important;
        margin: 0 0 12px !important;
    }

    /* 价格区（放大突出） */
    .shop-detail-price {
        font-size: 28px !important;
        font-weight: 900 !important;
        color: #ef4444 !important;
        letter-spacing: -.5px !important;
        margin: 14px 0 !important;
        padding: 12px 0 !important;
        border-top: 1px solid #f3f4f6 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    /* 属性区（行式） */
    .shop-detail-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }
    .shop-detail-meta .desc-row {
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px 0 !important;
        font-size: 13px !important;
        border-bottom: 1px dashed #f9fafb !important;
        background: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .shop-detail-meta .desc-row span {
        color: #9ca3af !important;
    }
    .shop-detail-meta .desc-row b {
        color: #111827 !important;
        font-weight: 600 !important;
    }

    /* 规格选择器 */
    .sd-attrs {
        margin: 14px 0 !important;
        padding: 14px 0 !important;
        border-top: 1px solid #f3f4f6 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
    .sd-attr-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    .sd-attr-label {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #374151 !important;
        flex: none !important;
        padding: 0 !important;
    }
    .sd-attr-values {
        gap: 8px !important;
    }
    .sd-attr-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        min-width: 60px !important;
        justify-content: center !important;
    }

    /* ============ 底部固定购买栏 ============ */
    .shop-detail-actions {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--tabbar-h) + var(--safe-bottom)) !important;
        z-index: 800 !important;
        background: #fff !important;
        padding: 10px 14px !important;
        border-top: 1px solid #f3f4f6 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,.08) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    /* 数量选择器 */
    .shop-qty {
        display: flex !important;
        align-items: center !important;
        background: #f3f4f6 !important;
        border-radius: 10px !important;
        padding: 2px !important;
        flex: 0 0 auto !important;
        gap: 0 !important;
    }
    .shop-qty button {
        width: 34px !important;
        height: 34px !important;
        border: 0 !important;
        background: transparent !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #4b5563 !important;
        border-radius: 8px !important;
        padding: 0 !important;
    }
    .shop-qty button:active {
        background: #e5e7eb !important;
    }
    .shop-qty input {
        width: 40px !important;
        height: 34px !important;
        border: 0 !important;
        background: transparent !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111827 !important;
        padding: 0 !important;
    }

    /* 按钮组 */
    #addToCartBtn,
    #buyNowBtn {
        flex: 1 !important;
        height: 46px !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
    }
    #addToCartBtn {
        background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
        box-shadow: 0 6px 18px rgba(239,68,68,.35) !important;
        color: #fff !important;
        border: 0 !important;
    }
    #buyNowBtn {
        background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
        box-shadow: 0 6px 18px rgba(99,102,241,.35) !important;
        color: #fff !important;
        border: 0 !important;
    }

    /* 商品描述 */
    .shop-detail-desc {
        margin: 12px !important;
        padding: 18px !important;
        border-radius: 14px !important;
    }
    .shop-detail-desc h3 {
        font-size: 15px !important;
        margin: 0 0 12px !important;
    }

    /* 评价区 */
    .sd-reviews {
        margin: 12px !important;
        padding: 18px !important;
        border-radius: 14px !important;
    }

    /* 相关商品 */
    .shop-section {
        padding: 20px 14px !important;
        margin-top: 0 !important;
    }
    .shop-section-title {
        font-size: 16px !important;
        font-weight: 800 !important;
        margin-bottom: 12px !important;
    }
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .shop-product-card {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
    }
    .shop-product-img {
        aspect-ratio: 1 !important;
    }
    .shop-product-info {
        padding: 10px !important;
    }
    .shop-product-name {
        font-size: 13px !important;
        line-height: 1.35 !important;
        height: 36px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .shop-product-price {
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    /* 收藏按钮 */
    .pd-fav-btn {
        width: 32px !important;
        height: 32px !important;
        vertical-align: middle !important;
    }
}

/* ============================================================
   移动端 · 商品图优化
   ============================================================ */

@media (max-width: 768px) {

    /* 图片区改方形，居中 */
    .sd-main-img {
        aspect-ratio: 1 / 1 !important;
        max-height: 90vw !important;
        background: linear-gradient(135deg, #f9fafb, #f3f4f6) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .sd-main-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 占位图标缩小 + 加文字 */
    .sd-main-img svg {
        width: 64px !important;
        height: 64px !important;
        color: #d1d5db !important;
        stroke-width: 1.2 !important;
    }

    .sd-main-img:not(:has(img))::after {
        content: '暂无图片';
        position: absolute;
        bottom: 28%;
        left: 0;
        right: 0;
        text-align: center;
        color: #9ca3af;
        font-size: 13px;
        font-weight: 500;
    }

    /* 缩略图区（有图时）保持方形小缩略 */
    .sd-thumbs {
        padding: 8px 14px !important;
        background: #fff !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
    .sd-thumb {
        width: 52px !important;
        height: 52px !important;
    }

    /* 无图时整个详情页 padding 上移 */
    .shop-detail-grid {
        padding-top: 0 !important;
    }
}

/* ===== 店铺优惠券（精致版）===== */
.m-coupons-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 14px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.m-coupons-scroll::-webkit-scrollbar { display: none; }

.m-coupon-card {
    flex: 0 0 210px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24,20,40,.04), 0 6px 16px -4px rgba(255,71,87,.12);
    border: 1px solid rgba(255,107,53,.12);
    scroll-snap-align: start;
    transition: transform .18s ease;
}
.m-coupon-card:active { transform: scale(.975); }

.m-coupon-card::before,
.m-coupon-card::after {
    content: '';
    position: absolute;
    left: 78px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f5f7fa;
    z-index: 4;
    transform: translateX(-50%);
}
.m-coupon-card::before { top: -6px; }
.m-coupon-card::after  { bottom: -6px; }

.m-coupon-left {
    flex: 0 0 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #ff7a45 0%, #ff4757 55%, #e83e5c 100%);
    color: #fff;
    padding: 16px 6px;
    overflow: hidden;
}
.m-coupon-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255,255,255,.55) 55%, transparent 55%);
    background-size: 1px 8px;
}

.m-coupon-face {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.6px;
    text-shadow: 0 1px 3px rgba(180,40,60,.28);
    color: #fff;
}
.m-coupon-type {
    font-size: 10px;
    font-weight: 500;
    margin-top: 7px;
    padding: 1px 8px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    line-height: 1.6;
    color: #fff;
}

.m-coupon-right {
    flex: 1;
    padding: 14px 22px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}
.m-coupon-right::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #ffb8a0;
    border-right: 1.5px solid #ffb8a0;
    transform: translateY(-50%) rotate(45deg);
}

.m-coupon-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #2c2c3a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-coupon-desc {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   NovaMall Mobile 缺失样式补全（一次性）
   覆盖：通用/分页/空状态/分类/购物车/商品详情/店铺/账户/排行榜
   ============================================================ */

/* ----- 通用页面容器 & 分页 ----- */
.m-page { padding-bottom: 70px; }
.m-pagination { display: flex; justify-content: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.m-pagination a, .m-pagination span {
    min-width: 34px; height: 34px; line-height: 34px;
    text-align: center; border-radius: 8px;
    background: #fff; color: #4b5563; font-size: 13px;
    border: 1px solid #e5e7eb; text-decoration: none;
}
.m-pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ----- 空状态 ----- */
.m-empty-state { padding: 48px 20px; text-align: center; color: #9ca3af; }
.m-empty-icon { font-size: 48px; opacity: .35; display: block; margin-bottom: 12px; }

/* ----- 分类标签条 & 搜索 ----- */
.m-cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.m-cat-chips::-webkit-scrollbar { display: none; }
.m-cat-chip {
    flex: 0 0 auto; padding: 6px 14px; background: #f3f4f6;
    border-radius: 20px; font-size: 13px; color: #4b5563; white-space: nowrap;
    transition: all .15s;
}
.m-cat-chip.active { background: var(--primary); color: #fff; }
.m-cat-search {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 14px; padding: 10px 14px;
    background: #f3f4f6; border-radius: 22px;
}
.m-cat-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; }
.m-count-bar { padding: 0 14px 8px; font-size: 12px; color: #9ca3af; }

/* ----- 排序条 ----- */
.m-sort-bar { display: flex; gap: 4px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-sort-item {
    flex: 1; text-align: center; padding: 8px 0; font-size: 13px;
    color: #6b7280; border-radius: 8px; transition: all .15s;
}
.m-sort-item.active { color: var(--primary); font-weight: 700; background: #f5f3ff; }

/* ----- 购物车汇总 & 商品行 ----- */
.m-cart-summary {
    position: fixed; bottom: 60px; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #fff; border-top: 1px solid #f3f4f6;
    box-shadow: 0 -2px 10px rgba(0,0,0,.04); z-index: 100;
}
.m-cart-summary .total { font-size: 14px; color: #374151; }
.m-cart-summary .total b { color: #ff4757; font-size: 18px; margin-left: 4px; }
.m-cart-summary .m-btn { padding: 0 28px; height: 40px; border-radius: 20px; font-size: 14px; }

/* ----- 商品详情 ----- */
.m-pd-main { padding-bottom: 80px; }
.m-pd-gallery { position: relative; background: #f9fafb; }
.m-pd-gallery img { width: 100%; display: block; }
.m-pd-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.m-pd-thumbs::-webkit-scrollbar { display: none; }
.m-pd-thumb {
    flex: 0 0 60px; height: 60px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; background: #f3f4f6;
}
.m-pd-thumb.active { border-color: var(--primary); }
.m-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-pd-info { padding: 14px; background: #fff; margin-bottom: 10px; }
.m-pd-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: #111827; }
.m-pd-sub { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.m-pd-price { font-size: 22px; font-weight: 800; color: #ff4757; margin-top: 10px; }
.m-pd-old { font-size: 13px; color: #9ca3af; text-decoration: line-through; margin-left: 8px; }
.m-pd-meta { margin-top: 10px; }
.m-pd-meta-row { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; padding: 4px 0; }
.m-pd-section { padding: 14px; background: #fff; margin-bottom: 10px; border-radius: 12px; }
.m-pd-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #111827; }
.m-pd-desc { font-size: 14px; line-height: 1.7; color: #4b5563; }
.m-pd-attrs { margin-top: 10px; }
.m-pd-attr { margin-bottom: 12px; }
.m-pd-attr-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.m-pd-attr-values { display: flex; flex-wrap: wrap; gap: 8px; }
.m-pd-attr-btn {
    padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 18px;
    font-size: 13px; background: #fff; color: #374151; transition: all .15s;
}
.m-pd-attr-btn.active { border-color: var(--primary); background: #f5f3ff; color: var(--primary); font-weight: 600; }
.m-pd-qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.m-pd-qty button {
    width: 32px; height: 32px; border: 1px solid #e5e7eb; background: #fff;
    border-radius: 8px; font-size: 16px; line-height: 1;
}
.m-pd-qty input { width: 50px; text-align: center; border: 0; font-size: 14px; }
.m-pd-actions {
    position: fixed; bottom: 60px; left: 0; right: 0;
    display: flex; gap: 10px; padding: 10px 14px;
    background: #fff; border-top: 1px solid #f3f4f6; z-index: 100;
}
.m-pd-actions .m-pd-btn { flex: 1; height: 44px; border-radius: 22px; font-size: 15px; font-weight: 600; }
.m-pd-btn-cart { background: #f3f4f6; color: #374151; }
.m-pd-btn-buy { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }

/* ----- 评价 ----- */
.m-pd-review { padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.m-pd-review:last-child { border-bottom: 0; }
.m-pd-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-pd-review-name { font-size: 13px; font-weight: 600; color: #374151; }
.m-pd-review-stars { color: #fbbf24; font-size: 12px; }
.m-pd-review-content { font-size: 13px; line-height: 1.6; color: #4b5563; }
.m-pd-no-review { text-align: center; padding: 30px 0; color: #9ca3af; font-size: 13px; }

/* ----- 店铺详情 ----- */
.m-store-hero-banner { position: relative; height: 180px; background: #e5e7eb; overflow: hidden; }
.m-store-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.m-store-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5));
}
.m-store-hero-content { position: absolute; bottom: 16px; left: 16px; right: 16px; color: #fff; }
.m-store-hero-logo {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid #fff; overflow: hidden; background: #fff;
    margin-bottom: 8px;
}
.m-store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-store-hero-name { font-size: 18px; font-weight: 800; }
.m-store-hero-meta { font-size: 12px; opacity: .9; margin-top: 4px; }
.m-store-stats { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; }
.m-store-stat { text-align: center; }
.m-store-stat b { display: block; font-size: 16px; font-weight: 800; }
.m-store-follow-btn {
    padding: 6px 18px; border-radius: 20px; background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 600; border: 0;
}
.m-store-footbar {
    position: fixed; bottom: 60px; left: 0; right: 0;
    display: flex; gap: 10px; padding: 10px 14px;
    background: #fff; border-top: 1px solid #f3f4f6; z-index: 100;
}
.m-store-footbar-btn {
    flex: 1; height: 44px; border-radius: 22px; background: var(--primary); color: #fff;
    font-size: 15px; font-weight: 600; border: 0;
}
.m-store-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: #fff; border-bottom: 1px solid #f3f4f6;
}
.m-store-row:last-child { border-bottom: 0; }
.m-store-info { flex: 1; min-width: 0; }
.m-store-arrow { color: #d1d5db; font-size: 18px; }

/* ----- 账户页 ----- */
.m-avatar-lg {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
}
.m-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.m-order-tabs {
    display: flex; background: #fff; padding: 12px 0;
    border-radius: 12px; margin: 10px 14px;
}
.m-order-tab {
    flex: 1; text-align: center; text-decoration: none; color: #374151;
}
.m-order-tab-num { font-size: 18px; font-weight: 800; color: var(--primary); }
.m-order-tab-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ----- 排行榜 ----- */
.m-rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-rank-no { width: 24px; text-align: center; font-size: 14px; font-weight: 800; color: #9ca3af; }
.m-rank-no.top { color: #ff4757; }
.m-rank-img { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
.m-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.m-rank-info { flex: 1; min-width: 0; }
.m-rank-name { font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rank-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.m-rank-price { font-size: 14px; font-weight: 700; color: #ff4757; }

/* ----- 区块包装 ----- */
.m-section-wrap { background: #fff; margin-top: 10px; padding: 16px 0; }


/* ============================================================
   NovaMall Mobile 精致升级版 · 覆盖式追加
   说明：后写优先，本块会覆盖此前同名的旧规则，无需删除旧代码
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --m-radius-xs: 8px;
    --m-radius-sm: 10px;
    --m-radius:    14px;
    --m-radius-lg: 18px;
    --m-radius-xl: 22px;

    --m-shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
    --m-shadow-sm: 0 2px 6px -1px rgba(17, 24, 39, .06);
    --m-shadow:    0 4px 16px -4px rgba(17, 24, 39, .08);
    --m-shadow-lg: 0 12px 32px -8px rgba(17, 24, 39, .12);
    --m-shadow-primary: 0 6px 20px -6px rgba(124, 58, 237, .45);

    --m-ease:  cubic-bezier(.22, 1, .36, 1);
    --m-ease-out: cubic-bezier(.16, 1, .3, 1);
    --m-dur:   .26s;
    --m-dur-fast: .16s;

    --m-gap:   12px;
    --m-gap-sm: 8px;
    --m-pad-x: 14px;

    --m-primary-grad:  linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --m-danger-grad:   linear-gradient(135deg, #ff7a45 0%, #ff4757 55%, #e83e5c 100%);
    --m-surface-grad:  linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

/* ---------- 2. 基础 & 全局优化 ---------- */
body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}
img { max-width: 100%; height: auto; display: block; }
a { -webkit-tap-highlight-color: transparent; }

/* 数字等宽对齐（价格/Tab 数字/券面额） */
.m-product-price, .m-product-sales, .m-flash-price b, .m-flash-price s,
.m-pd-price, .m-pd-old, .m-order-tab-num, .m-coupon-face,
.m-rank-price, .m-cart-price, .m-cart-summary .total b {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* 隐藏所有横向滚动条 */
.m-hscroll, .m-cat-chips, .m-pd-thumbs, .m-coupons-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.m-hscroll::-webkit-scrollbar, .m-cat-chips::-webkit-scrollbar,
.m-pd-thumbs::-webkit-scrollbar, .m-coupons-scroll::-webkit-scrollbar {
    display: none;
}

/* ---------- 3. 全局动效 keyframes ---------- */
@keyframes mFadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes mShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
@keyframes mPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
@keyframes mBreath {
    0%, 100% { box-shadow: 0 6px 20px -6px rgba(124, 58, 237, .45); }
    50%      { box-shadow: 0 10px 28px -6px rgba(124, 58, 237, .65); }
}

/* 入场动画（列表容器统一用） */
.m-section-wrap, .m-product, .m-store-card, .m-coupon-card,
.m-cat-chip, .m-rank-row, .m-cart-item, .m-account-item,
.m-order-tab, .m-flash-card {
    animation: mFadeInUp .5s var(--m-ease) backwards;
}
/* 错峰延迟：同容器内第 1-8 个子元素 */
.m-product-grid > *:nth-child(1) { animation-delay: .02s; }
.m-product-grid > *:nth-child(2) { animation-delay: .06s; }
.m-product-grid > *:nth-child(3) { animation-delay: .10s; }
.m-product-grid > *:nth-child(4) { animation-delay: .14s; }
.m-product-grid > *:nth-child(5) { animation-delay: .18s; }
.m-product-grid > *:nth-child(6) { animation-delay: .22s; }
.m-product-grid > *:nth-child(7) { animation-delay: .26s; }
.m-product-grid > *:nth-child(8) { animation-delay: .30s; }

/* ---------- 4. 页面容器 & 分页 ---------- */
.m-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    background: #f5f6fa;
    min-height: 100vh;
}
.m-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; padding: 20px 14px; flex-wrap: wrap;
}
.m-pagination a, .m-pagination span {
    min-width: 36px; height: 36px; padding: 0 10px;
    line-height: 36px; text-align: center;
    border-radius: var(--m-radius-sm);
    background: #fff; color: #4b5563; font-size: 13px;
    border: 1px solid #eef0f4;
    box-shadow: var(--m-shadow-xs);
    transition: all var(--m-dur-fast) var(--m-ease);
}
.m-pagination a:active { transform: scale(.94); }
.m-pagination .active {
    background: var(--m-primary-grad); color: #fff;
    border-color: transparent; box-shadow: var(--m-shadow-primary);
}

/* ---------- 5. 空状态 ---------- */
.m-empty-state {
    padding: 64px 24px; text-align: center; color: #9ca3af;
    animation: mFadeIn .5s var(--m-ease);
}
.m-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; margin-bottom: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f5f3ff 0%, #ede9fe 100%);
    font-size: 44px; opacity: .85;
    animation: mPulse 2.4s var(--m-ease) infinite;
}
.m-empty-state p, .m-empty-state .m-empty-text {
    font-size: 13.5px; color: #9ca3af; line-height: 1.6;
}

/* ---------- 6. 分类标签 & 搜索 & 排序 ---------- */
.m-cat-chips {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 12px var(--m-pad-x);
    scroll-snap-type: x proximity;
}
.m-cat-chip {
    flex: 0 0 auto; padding: 7px 16px;
    background: #fff; border-radius: 20px;
    font-size: 13px; color: #4b5563; white-space: nowrap;
    border: 1px solid #eef0f4;
    box-shadow: var(--m-shadow-xs);
    transition: all var(--m-dur-fast) var(--m-ease);
    scroll-snap-align: start;
}
.m-cat-chip:active { transform: scale(.95); }
.m-cat-chip.active {
    background: var(--m-primary-grad); color: #fff;
    border-color: transparent; box-shadow: var(--m-shadow-primary);
    font-weight: 600;
}

.m-cat-search {
    display: flex; align-items: center; gap: 8px;
    margin: 6px var(--m-pad-x) 10px; padding: 10px 16px;
    background: #fff; border-radius: 24px;
    border: 1px solid #eef0f4;
    box-shadow: var(--m-shadow-xs);
    transition: box-shadow var(--m-dur) var(--m-ease);
}
.m-cat-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}
.m-cat-search input {
    flex: 1; border: 0; background: transparent; outline: none;
    font-size: 14px; color: #111827;
}
.m-cat-search input::placeholder { color: #b6bcc6; }

.m-count-bar {
    padding: 0 var(--m-pad-x) 10px;
    font-size: 12px; color: #9ca3af;
}

.m-sort-bar {
    display: flex; gap: 6px;
    padding: 8px var(--m-pad-x);
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; z-index: 10;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255,255,255,.85);
}
.m-sort-item {
    flex: 1; text-align: center; padding: 8px 0;
    font-size: 13px; color: #6b7280; border-radius: var(--m-radius-sm);
    transition: all var(--m-dur-fast) var(--m-ease);
}
.m-sort-item:active { transform: scale(.95); }
.m-sort-item.active {
    color: var(--primary); font-weight: 700;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* ---------- 7. 首页 · Hero ---------- */
.m-hero {
    position: relative; overflow: hidden;
    padding: 28px 20px 32px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff; border-radius: 0 0 24px 24px;
}
.m-hero::before {
    content: ''; position: absolute; inset: -50%;
    background: radial-gradient(circle at 20% 10%, rgba(139, 92, 246, .35) 0%, transparent 45%),
                radial-gradient(circle at 85% 90%, rgba(236, 72, 153, .25) 0%, transparent 50%);
    pointer-events: none;
    animation: mFadeIn .8s var(--m-ease);
}
.m-hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px; color: #ede9fe;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.m-hero-tag-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #a5b4fc;
    box-shadow: 0 0 8px #a5b4fc;
    animation: mPulse 1.8s ease-in-out infinite;
}
.m-hero-sub { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.6; }
.m-hero-stats {
    display: flex; gap: 24px; margin-top: 20px;
    padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
}
.m-hero-stats > * { flex: 1; }
.m-hero-stats b {
    display: block; font-size: 22px; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.m-hero-stats span { font-size: 11px; color: rgba(255,255,255,.6); }

/* ---------- 8. 首页 · 特色服务 ---------- */
.m-services {
    display: flex; justify-content: space-around;
    padding: 16px 10px;
    background: #fff; margin: 10px 12px 0;
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow-sm);
}
.m-service {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-service:active { transform: scale(.94); }
.m-service-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, .08);
}
.m-service-text { font-size: 11.5px; color: #4b5563; font-weight: 500; }

/* ---------- 9. 首页 · 优惠券（升级精装） ---------- */
.m-coupons-scroll {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 4px var(--m-pad-x) 14px;
    scroll-snap-type: x mandatory;
}
.m-coupon-card {
    flex: 0 0 220px;
    position: relative;
    display: flex; flex-direction: row; align-items: stretch;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 107, 53, .14);
    box-shadow:
        0 1px 2px rgba(24, 20, 40, .04),
        0 6px 18px -6px rgba(255, 71, 87, .18),
        0 14px 32px -12px rgba(255, 71, 87, .12);
    scroll-snap-align: start;
    transition: transform var(--m-dur-fast) var(--m-ease),
                box-shadow var(--m-dur-fast) var(--m-ease);
}
.m-coupon-card:active {
    transform: scale(.97) translateY(1px);
    box-shadow: 0 2px 8px -2px rgba(255, 71, 87, .18);
}
/* 上下撕口 */
.m-coupon-card::before,
.m-coupon-card::after {
    content: ''; position: absolute; left: 80px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #f5f6fa; z-index: 4;
    transform: translateX(-50%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.m-coupon-card::before { top: -6px; }
.m-coupon-card::after  { bottom: -6px; }

.m-coupon-left {
    flex: 0 0 80px; position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 16px 6px; overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%),
        var(--m-danger-grad);
    color: #fff;
}
.m-coupon-left::before {
    content: ''; position: absolute; left: -22px; bottom: -22px;
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    pointer-events: none;
}
.m-coupon-left::after {
    content: ''; position: absolute; right: 0; top: 10px; bottom: 10px;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255,255,255,.6) 55%, transparent 55%);
    background-size: 1px 8px;
}
.m-coupon-face {
    font-size: 23px; font-weight: 800; line-height: 1;
    letter-spacing: -.8px; color: #fff;
    text-shadow: 0 1px 3px rgba(180, 40, 60, .3);
    position: relative; z-index: 1;
}
.m-coupon-type {
    font-size: 10px; font-weight: 500;
    margin-top: 8px; padding: 1px 9px;
    background: rgba(255,255,255,.24);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px; line-height: 1.7;
    color: #fff; letter-spacing: .5px;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    position: relative; z-index: 1;
}
.m-coupon-right {
    flex: 1; min-width: 0; position: relative;
    display: flex; flex-direction: column; justify-content: center;
    padding: 14px 22px 14px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}
.m-coupon-right::after {
    content: ''; position: absolute; right: 13px; top: 50%;
    width: 6px; height: 6px;
    border-top: 1.5px solid #ffb8a0;
    border-right: 1.5px solid #ffb8a0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-coupon-card:active .m-coupon-right::after {
    transform: translateY(-50%) rotate(45deg) translate(1.5px, -1.5px);
}
.m-coupon-name {
    font-size: 13.5px; font-weight: 700; color: #1f2937;
    line-height: 1.35; letter-spacing: -.1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-coupon-desc {
    font-size: 11px; color: #9ca3af; margin-top: 5px;
    line-height: 1.4; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 10. 首页 · 区块标题 ---------- */
.m-section-wrap {
    background: transparent;
    padding: 16px 0 8px;
    margin-top: 6px;
}
.m-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--m-pad-x) 12px;
}
.m-section-title {
    position: relative;
    font-size: 16px; font-weight: 800; color: #111827;
    padding-left: 12px; letter-spacing: -.2px;
}
.m-section-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 4px; height: 16px; border-radius: 2px;
    transform: translateY(-50%);
    background: var(--m-primary-grad);
    box-shadow: 0 2px 8px -2px rgba(124,58,237,.6);
}
.m-section-more { font-size: 12.5px; color: #9ca3af; }

/* ---------- 11. 首页 · 商品网格 ---------- */
.m-product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--m-gap);
    padding: 0 var(--m-pad-x) 12px;
}
.m-product {
    background: #fff; border-radius: var(--m-radius);
    overflow: hidden;
    box-shadow: var(--m-shadow-xs);
    transition: transform var(--m-dur-fast) var(--m-ease),
                box-shadow var(--m-dur-fast) var(--m-ease);
    will-change: transform;
}
.m-product:active {
    transform: scale(.975);
    box-shadow: var(--m-shadow);
}
.m-product-img {
    width: 100%; aspect-ratio: 1/1;
    background: #f5f6fa; overflow: hidden;
    position: relative;
}
.m-product-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--m-ease);
}
.m-product:active .m-product-img img { transform: scale(1.05); }
.m-product-info { padding: 10px 10px 12px; }
.m-product-name {
    font-size: 13px; font-weight: 600; color: #1f2937;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.m-product-foot {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 8px; gap: 6px;
}
.m-product-price {
    font-size: 16px; font-weight: 800; color: #ff4757;
    letter-spacing: -.3px;
}
.m-product-sales { color: #9ca3af; font-size: 11px; }

/* ---------- 12. 首页 · 限时特惠卡片 ---------- */
.m-hscroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 4px var(--m-pad-x) 12px;
    scroll-snap-type: x proximity;
}
.m-flash-card {
    flex: 0 0 130px;
    background: #fff; border-radius: var(--m-radius-sm);
    overflow: hidden;
    box-shadow: var(--m-shadow-xs);
    scroll-snap-align: start;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-flash-card:active { transform: scale(.96); }
.m-flash-img { width: 100%; aspect-ratio: 1/1; background: #f5f6fa; overflow: hidden; }
.m-flash-img img { width: 100%; height: 100%; object-fit: cover; }
.m-flash-info { padding: 8px 10px 10px; }
.m-flash-name {
    font-size: 12.5px; font-weight: 500; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-flash-price { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.m-flash-price b { color: #ff4757; font-size: 15px; font-weight: 800; }
.m-flash-price s { color: #c0c4cc; font-size: 11px; }

/* ---------- 13. 首页 · 店铺卡片 ---------- */
.m-store-card {
    flex: 0 0 108px;
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px;
    background: #fff; border-radius: var(--m-radius);
    box-shadow: var(--m-shadow-xs);
    scroll-snap-align: start;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-store-card:active { transform: scale(.95); }
.m-store-avatar {
    width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--m-primary-grad);
    color: #fff; font-size: 20px; font-weight: 700;
    box-shadow: 0 4px 14px -4px rgba(124, 58, 237, .4);
}
.m-store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-store-name {
    margin-top: 8px; font-size: 12.5px; font-weight: 600;
    color: #1f2937; max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-store-count { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* ---------- 14. 商品详情 ---------- */
.m-pd-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.m-pd-gallery {
    position: relative; background: #f5f6fa;
    aspect-ratio: 1/1; overflow: hidden;
}
.m-pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.m-pd-thumbs {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 10px var(--m-pad-x);
    background: #fff;
}
.m-pd-thumb {
    flex: 0 0 60px; height: 60px;
    border-radius: var(--m-radius-xs); overflow: hidden;
    border: 2px solid transparent;
    background: #f5f6fa;
    transition: all var(--m-dur-fast) var(--m-ease);
}
.m-pd-thumb:active { transform: scale(.94); }
.m-pd-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.m-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.m-pd-info {
    padding: 16px var(--m-pad-x);
    background: #fff; margin-bottom: 10px;
}
.m-pd-title {
    font-size: 17px; font-weight: 700; line-height: 1.4;
    color: #111827; letter-spacing: -.2px;
}
.m-pd-sub { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.m-pd-price {
    font-size: 24px; font-weight: 800; color: #ff4757;
    letter-spacing: -.6px; margin-top: 12px;
}
.m-pd-old {
    font-size: 13px; color: #c0c4cc;
    text-decoration: line-through; margin-left: 8px;
}
.m-pd-meta { margin-top: 12px; }
.m-pd-meta-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: #6b7280;
    padding: 6px 0; border-bottom: 1px dashed #f3f4f6;
}
.m-pd-meta-row:last-child { border-bottom: 0; }

.m-pd-section {
    padding: 16px var(--m-pad-x);
    background: #fff; margin-bottom: 10px;
}
.m-pd-section h3 {
    font-size: 15px; font-weight: 700;
    margin-bottom: 12px; color: #111827;
    position: relative; padding-left: 10px;
}
.m-pd-section h3::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 3px; height: 14px; border-radius: 2px;
    background: var(--m-primary-grad);
    transform: translateY(-50%);
}
.m-pd-desc { font-size: 14px; line-height: 1.75; color: #4b5563; }

.m-pd-attrs { margin-top: 12px; }
.m-pd-attr { margin-bottom: 14px; }
.m-pd-attr-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 8px;
}
.m-pd-attr-values { display: flex; flex-wrap: wrap; gap: 8px; }
.m-pd-attr-btn {
    padding: 7px 16px;
    border: 1px solid #e5e7eb; border-radius: 20px;
    font-size: 13px; background: #fff; color: #374151;
    transition: all var(--m-dur-fast) var(--m-ease);
}
.m-pd-attr-btn:active { transform: scale(.94); }
.m-pd-attr-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: var(--primary); font-weight: 600;
    box-shadow: 0 2px 10px -2px rgba(124,58,237,.25);
}

.m-pd-qty {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px;
}
.m-pd-qty button {
    width: 34px; height: 34px;
    border: 1px solid #e5e7eb; background: #fff;
    border-radius: var(--m-radius-xs);
    font-size: 16px; line-height: 1;
    color: #374151;
    transition: all var(--m-dur-fast) var(--m-ease);
}
.m-pd-qty button:active {
    transform: scale(.9);
    background: #f5f3ff; border-color: var(--primary); color: var(--primary);
}
.m-pd-qty input {
    width: 54px; text-align: center; border: 0;
    font-size: 14px; font-weight: 600; color: #111827;
    background: transparent;
}

.m-pd-actions {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px;
    padding: 10px var(--m-pad-x);
    background: rgba(255,255,255,.92);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 100;
}
.m-pd-actions .m-pd-btn {
    flex: 1; height: 46px; border-radius: 23px;
    font-size: 15px; font-weight: 700; border: 0;
    transition: transform var(--m-dur-fast) var(--m-ease),
                box-shadow var(--m-dur-fast) var(--m-ease);
}
.m-pd-actions .m-pd-btn:active { transform: scale(.96); }
.m-pd-btn-cart { background: #f3f4f6; color: #374151; }
.m-pd-btn-buy {
    background: var(--m-primary-grad); color: #fff;
    box-shadow: var(--m-shadow-primary);
    animation: mBreath 3s ease-in-out infinite;
}

/* ---------- 15. 商品详情 · 评价 ---------- */
.m-pd-review {
    padding: 14px 0; border-bottom: 1px solid #f3f4f6;
}
.m-pd-review:last-child { border-bottom: 0; }
.m-pd-review-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.m-pd-review-name { font-size: 13px; font-weight: 600; color: #374151; }
.m-pd-review-stars { color: #fbbf24; font-size: 12px; letter-spacing: 1px; }
.m-pd-review-content { font-size: 13.5px; line-height: 1.7; color: #4b5563; }
.m-pd-no-review {
    text-align: center; padding: 36px 0;
    color: #9ca3af; font-size: 13px;
}

/* ---------- 16. 购物车 ---------- */
.m-cart-list { padding: 10px var(--m-pad-x); }
.m-cart-item {
    display: flex; gap: 12px;
    padding: 12px; background: #fff;
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow-xs);
    margin-bottom: 10px;
}
.m-cart-img {
    flex: 0 0 80px; width: 80px; height: 80px;
    border-radius: var(--m-radius-xs); overflow: hidden;
    background: #f5f6fa;
}
.m-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.m-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.m-cart-name {
    font-size: 13.5px; font-weight: 600; color: #1f2937;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.m-cart-price { font-size: 15px; font-weight: 800; color: #ff4757; }

.m-cart-summary {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px var(--m-pad-x);
    background: rgba(255,255,255,.94);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 100;
    box-shadow: 0 -4px 20px -8px rgba(17,24,39,.08);
}
.m-cart-summary .total { font-size: 14px; color: #374151; }
.m-cart-summary .total b { color: #ff4757; font-size: 19px; margin-left: 4px; font-weight: 800; }
.m-cart-summary .m-btn {
    padding: 0 30px; height: 42px; border-radius: 21px;
    font-size: 14px; font-weight: 700;
    background: var(--m-primary-grad); color: #fff; border: 0;
    box-shadow: var(--m-shadow-primary);
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-cart-summary .m-btn:active { transform: scale(.95); }

/* ---------- 17. 店铺详情 ---------- */
.m-store-hero-banner {
    position: relative; height: 190px;
    background: #e5e7eb; overflow: hidden;
}
.m-store-hero-banner img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.02);
}
.m-store-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.m-store-hero-content {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    color: #fff; z-index: 2;
}
.m-store-hero-logo {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    border: 3px solid #fff; background: #fff;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px -6px rgba(0,0,0,.5);
}
.m-store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-store-hero-name {
    font-size: 18px; font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.m-store-hero-meta {
    font-size: 12px; opacity: .92; margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.m-store-stats {
    display: flex; gap: 20px; margin-top: 10px;
    font-size: 12px;
}
.m-store-stat { text-align: center; }
.m-store-stat b {
    display: block; font-size: 17px; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.m-store-follow-btn {
    padding: 7px 20px; border-radius: 20px;
    background: var(--m-primary-grad); color: #fff;
    font-size: 13px; font-weight: 600; border: 0;
    box-shadow: var(--m-shadow-primary);
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-store-follow-btn:active { transform: scale(.94); }
.m-store-footbar {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px;
    padding: 10px var(--m-pad-x);
    background: rgba(255,255,255,.94);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 100;
}
.m-store-footbar-btn {
    flex: 1; height: 46px; border-radius: 23px;
    background: var(--m-primary-grad); color: #fff;
    font-size: 15px; font-weight: 700; border: 0;
    box-shadow: var(--m-shadow-primary);
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-store-footbar-btn:active { transform: scale(.96); }
.m-store-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px var(--m-pad-x);
    background: #fff; border-bottom: 1px solid #f5f6fa;
    transition: background var(--m-dur-fast) var(--m-ease);
}
.m-store-row:active { background: #fafafa; }
.m-store-row:last-child { border-bottom: 0; }
.m-store-info { flex: 1; min-width: 0; }
.m-store-arrow { color: #d1d5db; font-size: 18px; }

/* ---------- 18. 账户页 ---------- */
.m-avatar-lg {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--m-primary-grad);
    color: #fff; font-size: 24px; font-weight: 800;
    box-shadow: 0 6px 20px -6px rgba(124,58,237,.5);
}
.m-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.m-order-tabs {
    display: flex;
    background: #fff; padding: 14px 0;
    border-radius: var(--m-radius-lg);
    margin: 10px var(--m-pad-x);
    box-shadow: var(--m-shadow-sm);
}
.m-order-tab {
    flex: 1; text-align: center; text-decoration: none; color: #374151;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-order-tab:active { transform: scale(.92); }
.m-order-tab-num {
    font-size: 19px; font-weight: 800; color: var(--primary);
    line-height: 1.2;
}
.m-order-tab-label { font-size: 12px; color: #6b7280; margin-top: 3px; }

/* ---------- 19. 排行榜 ---------- */
.m-rank-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px var(--m-pad-x);
    background: #fff; border-bottom: 1px solid #f5f6fa;
    transition: background var(--m-dur-fast) var(--m-ease);
}
.m-rank-row:active { background: #fafafa; }
.m-rank-no {
    width: 26px; text-align: center;
    font-size: 14px; font-weight: 800; color: #9ca3af;
}
.m-rank-no.top { color: #ff4757; }
.m-rank-img {
    width: 52px; height: 52px;
    border-radius: var(--m-radius-xs); overflow: hidden;
    background: #f5f6fa;
}
.m-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.m-rank-info { flex: 1; min-width: 0; }
.m-rank-name {
    font-size: 14px; font-weight: 600; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-rank-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.m-rank-price { font-size: 14px; font-weight: 800; color: #ff4757; }

/* ---------- 20. 公告 ---------- */
.m-announce {
    display: flex; align-items: center; gap: 8px;
    margin: 10px var(--m-pad-x) 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, .22);
    border-radius: var(--m-radius);
    font-size: 12.5px; color: #9a3412;
}
/* ---------- 21. 快捷分类 ---------- */
.m-quick-cats {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px 8px;
    padding: 14px var(--m-pad-x);
    background: #fff;
    margin: 10px var(--m-pad-x) 0;
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow-sm);
}
.m-quick-cat {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; text-decoration: none;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-quick-cat:active { transform: scale(.9); }
.m-quick-cat-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    font-size: 22px;
}
.m-quick-cat-text {
    font-size: 11px; color: #4b5563; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}

/* ---------- 22. 品牌卡片 ---------- */
.m-brand-card {
    flex: 0 0 96px;
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 8px;
    background: #fff; border-radius: var(--m-radius);
    box-shadow: var(--m-shadow-xs);
    scroll-snap-align: start;
    transition: transform var(--m-dur-fast) var(--m-ease);
}
.m-brand-card:active { transform: scale(.95); }

/* ---------- 23. 自适应 · 小屏（≤360px） ---------- */
@media (max-width: 360px) {
    :root { --m-pad-x: 12px; --m-gap: 10px; }
    .m-hero { padding: 22px 16px 26px; }
    .m-hero-stats { gap: 16px; }
    .m-hero-stats b { font-size: 19px; }
    .m-product-grid { gap: 8px; }
    .m-coupon-card { flex: 0 0 200px; }
    .m-quick-cats { grid-template-columns: repeat(4, 1fr); }
    .m-product-name { font-size: 12.5px; }
}

/* ---------- 24. 自适应 · 大屏（≥480px） ---------- */
@media (min-width: 480px) {
    :root { --m-pad-x: 20px; --m-gap: 14px; }
    .m-product-grid { grid-template-columns: repeat(3, 1fr); }
    .m-coupon-card { flex: 0 0 240px; }
}

/* ---------- 25. 自适应 · 平板（≥768px） ---------- */
@media (min-width: 768px) {
    .m-product-grid { grid-template-columns: repeat(4, 1fr); }
    .m-hero { border-radius: 0 0 32px 32px; }
}

/* ---------- 26. 横屏优化 ---------- */
@media (orientation: landscape) and (max-height: 500px) {
    .m-hero { padding: 18px 20px 22px; }
    .m-store-hero-banner { height: 140px; }
}

/* ---------- 27. 减少动效（无障碍） ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- 28. 深色模式（可选，自动跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
    body, .m-page { background: #0f1014; color: #e5e7eb; }
    .m-section-wrap { background: transparent; }
    .m-product, .m-store-card, .m-flash-card,
    .m-pd-info, .m-pd-section, .m-cart-item,
    .m-account-menu, .m-order-tabs, .m-rank-row,
    .m-store-row, .m-quick-cats, .m-brand-card,
    .m-services, .m-sort-bar {
        background: #1a1b21 !important;
        border-color: #2a2b33 !important;
        color: #e5e7eb;
    }
    .m-product-name, .m-pd-title, .m-cart-name,
    .m-rank-name, .m-store-name, .m-section-title,
    .m-flash-name, .m-account-name, .m-account-item-text {
        color: #f3f4f6 !important;
    }
    .m-section-title::before { box-shadow: 0 2px 8px -2px rgba(167,139,250,.6); }
    .m-pd-meta-row { border-bottom-color: #2a2b33; }
    .m-cat-chip { background: #1a1b21; color: #d1d5db; border-color: #2a2b33; }
    .m-cat-search { background: #1a1b21; border-color: #2a2b33; }
    .m-cat-search input { color: #f3f4f6; }
    .m-cat-search input::placeholder { color: #6b7280; }
    .m-coupon-card { background: #1a1b21; border-color: rgba(255,107,53,.25); }
    .m-coupon-right { background: linear-gradient(180deg, #1a1b21 0%, #221c1a 100%); }
    .m-coupon-name { color: #f3f4f6; }
    .m-coupon-desc { color: #9ca3af; }
    .m-coupon-card::before, .m-coupon-card::after { background: #0f1014; }
}


/* ============================================================
   NovaMall Mobile · 独立登录/注册/入驻表单样式
   ============================================================ */

/* ---------- 登录 / 注册 ---------- */
.m-auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    text-align: center;
}
.m-auth-logo-mark {
    width: 64px; height: 64px; margin: 0 auto 18px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff; font-size: 28px; font-weight: 800;
    box-shadow: 0 8px 24px -8px rgba(124,58,237,.5);
}
.m-auth-title {
    font-size: 24px; font-weight: 800; color: #111827;
    margin: 0 0 6px; letter-spacing: -.3px;
}
.m-auth-sub {
    font-size: 13px; color: #6b7280; margin: 0 0 28px;
}
.m-auth-sub a {
    color: var(--primary); font-weight: 700;
    text-decoration: none; margin-left: 4px;
}
.m-auth-form {
    display: flex; flex-direction: column; gap: 14px;
    text-align: left;
}
.m-auth-field { display: flex; flex-direction: column; }
.m-auth-field label {
    font-size: 13px; font-weight: 600; color: #374151;
    margin-bottom: 6px;
}
.m-auth-req { color: #ef4444; }
.m-auth-field input {
    height: 48px; padding: 0 16px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb;
    font-size: 15px; color: #111827;
    transition: all .2s;
    outline: none;
}
.m-auth-field input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}
.m-auth-field input::placeholder { color: #b6bcc6; }
.m-auth-btn {
    height: 50px; margin-top: 8px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 15px; font-weight: 700;
    box-shadow: 0 6px 20px -6px rgba(124,58,237,.5);
    transition: transform .15s;
}
.m-auth-btn:active { transform: scale(.97); }
.m-auth-switch {
    margin-top: 8px; text-align: center;
    font-size: 13px; color: #6b7280;
}
.m-auth-switch a {
    color: var(--primary); font-weight: 700;
    text-decoration: none; margin-left: 4px;
}

/* ---------- 入驻表单 ---------- */
.m-join-wrap {
    padding-bottom: 40px;
}
.m-join-hero {
    padding: 28px 20px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #fff; text-align: center;
    border-radius: 0 0 22px 22px;
    margin-bottom: 16px;
}
.m-join-hero-tag {
    display: inline-block; padding: 4px 12px;
    border-radius: 12px; background: rgba(255,255,255,.14);
    font-size: 11px; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,.18);
}
.m-join-hero-title {
    font-size: 20px; font-weight: 800;
    margin: 12px 0 8px; line-height: 1.35;
}
.m-join-hero-sub {
    font-size: 12.5px; opacity: .85;
    margin: 0 0 18px; line-height: 1.6;
}
.m-join-hero-stats {
    display: flex; justify-content: space-around;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12);
}
.m-join-hero-stats > div { text-align: center; }
.m-join-hero-stats b {
    display: block; font-size: 20px; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.m-join-hero-stats span { font-size: 11px; opacity: .75; }

.m-join-errors {
    margin: 0 16px 14px; padding: 12px 14px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 12px; color: #b91c1c;
    font-size: 13px; line-height: 1.7;
}
.m-join-form { padding: 0 16px; }

.m-join-type-tabs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 22px;
}
.m-join-type {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px;
    background: #fff; border: 2px solid #e5e7eb;
    border-radius: 14px; cursor: pointer;
    transition: all .2s;
}
.m-join-type input { position: absolute; opacity: 0; pointer-events: none; }
.m-join-type.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}
.m-join-type-icon { font-size: 26px; }
.m-join-type-text b {
    display: block; font-size: 13.5px; color: #111827; font-weight: 700;
}
.m-join-type-text small { color: #6b7280; font-size: 11px; }

.m-join-section {
    font-size: 14.5px; font-weight: 800; color: #111827;
    margin: 22px 0 14px; padding-left: 10px;
    position: relative;
}
.m-join-section::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-50%);
}
.m-join-field { margin-bottom: 14px; }
.m-join-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}
.m-join-field label i { color: #ef4444; font-style: normal; }
.m-join-field input[type=text],
.m-join-field input[type=email],
.m-join-field input[type=tel],
.m-join-field input[type=password],
.m-join-field select,
.m-join-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb;
    font-size: 14px; color: #111827;
    outline: none; transition: all .2s;
    font-family: inherit;
}
.m-join-field input:focus,
.m-join-field select:focus,
.m-join-field textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}
.m-join-field small {
    display: block; margin-top: 4px;
    font-size: 11.5px; color: #94a3b8;
}
.m-join-field textarea { resize: vertical; min-height: 90px; }

.m-upload {
    width: 120px; height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer;
    transition: all .2s;
}
.m-upload:active { border-color: var(--primary); background: #f5f3ff; }
.m-upload.has-img { border-style: solid; border-color: #e5e7eb; background: #fff; }
.m-upload-preview {
    font-size: 12px; color: #94a3b8;
    text-align: center; padding: 8px;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.m-upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.m-join-submit {
    width: 100%; height: 52px; margin-top: 22px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 16px; font-weight: 700;
    box-shadow: 0 8px 24px -8px rgba(124,58,237,.5);
    transition: transform .15s;
}
.m-join-submit:active { transform: scale(.97); }
.m-join-tip {
    text-align: center; margin-top: 12px;
    font-size: 11.5px; color: #94a3b8; line-height: 1.6;
}

/* ============================================================
   NovaMall Mobile · RTL 精修补丁（仅阿语生效，LTR 语言零影响）
   ============================================================ */

/* ---------- 1. 顶部导航左右互换 ---------- */
[dir="rtl"] .m-header-left { order: 2; }
[dir="rtl"] .m-header-right { order: 1; }

/* ---------- 2. 价格/数字保持 LTR（阿拉伯数字本身是 LTR） ---------- */
[dir="rtl"] .m-product-price,
[dir="rtl"] .m-product-sales,
[dir="rtl"] .m-flash-price b,
[dir="rtl"] .m-flash-price s,
[dir="rtl"] .m-pd-price,
[dir="rtl"] .m-pd-old,
[dir="rtl"] .m-coupon-face,
[dir="rtl"] .m-order-tab-num,
[dir="rtl"] .m-rank-price,
[dir="rtl"] .m-cart-price,
[dir="rtl"] .m-cart-summary .total b,
[dir="rtl"] .m-hero-stats b,
[dir="rtl"] .m-store-stat b {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* ---------- 3. 箭头/返回图标镜像 ---------- */
[dir="rtl"] .m-account-item-arrow,
[dir="rtl"] .m-store-arrow,
[dir="rtl"] .m-back {
    transform: scaleX(-1);
    display: inline-block;
}

/* ---------- 4. 表单 label 与输入框右对齐 ---------- */
[dir="rtl"] .m-auth-field label,
[dir="rtl"] .m-join-field label,
[dir="rtl"] .m-form-group label,
[dir="rtl"] .m-auth-title,
[dir="rtl"] .m-auth-sub,
[dir="rtl"] .m-auth-switch,
[dir="rtl"] .m-join-section,
[dir="rtl"] .m-join-tip {
    text-align: right;
}
[dir="rtl"] .m-auth-field input,
[dir="rtl"] .m-join-field input,
[dir="rtl"] .m-join-field textarea,
[dir="rtl"] .m-join-field select,
[dir="rtl"] .m-form-group input {
    text-align: right;
    direction: rtl;
}
/* 邮箱/密码/数字字段保持 LTR 输入 */
[dir="rtl"] .m-auth-field input[type="email"],
[dir="rtl"] .m-auth-field input[type="password"],
[dir="rtl"] .m-join-field input[type="email"],
[dir="rtl"] .m-join-field input[type="password"],
[dir="rtl"] .m-join-field input[type="tel"],
[dir="rtl"] .m-form-group input[type="email"],
[dir="rtl"] .m-form-group input[type="password"] {
    text-align: left;
    direction: ltr;
}

/* ---------- 5. 悬浮按钮移到左侧 ---------- */
[dir="rtl"] .m-float-join {
    right: auto;
    left: 14px;
}
[dir="rtl"] .m-float-ai {
    right: auto;
    left: 14px;
}

/* ---------- 6. 优惠券撕口镜像 ---------- */
[dir="rtl"] .m-coupon-card::before,
[dir="rtl"] .m-coupon-card::after {
    left: auto;
    right: 80px;
    transform: translateX(50%);
}
/* 券卡内左右区顺序镜像 */
[dir="rtl"] .m-coupon-left { order: 2; }
[dir="rtl"] .m-coupon-right { order: 1; }
[dir="rtl"] .m-coupon-right::after { display: none; }
[dir="rtl"] .m-coupon-left::after { display: none; }

/* ---------- 7. 购物车/订单/评价行左右镜像 ---------- */
[dir="rtl"] .m-cart-item,
[dir="rtl"] .m-rank-row,
[dir="rtl"] .m-store-row {
    flex-direction: row-reverse;
}
[dir="rtl"] .m-cart-info,
[dir="rtl"] .m-rank-info,
[dir="rtl"] .m-store-info {
    text-align: right;
}

/* ---------- 8. 底部 Tab 顺序镜像 ---------- */
[dir="rtl"] .m-tabbar {
    flex-direction: row-reverse;
}

/* ---------- 9. 区块标题竖线移到右边 ---------- */
[dir="rtl"] .m-section-title {
    padding-left: 0;
    padding-right: 12px;
    text-align: right;
}
[dir="rtl"] .m-section-title::before {
    left: auto;
    right: 0;
}

/* ---------- 10. 商品/店铺卡片内文字对齐 ---------- */
[dir="rtl"] .m-product-name,
[dir="rtl"] .m-flash-name,
[dir="rtl"] .m-store-name,
[dir="rtl"] .m-store-count,
[dir="rtl"] .m-review-name,
[dir="rtl"] .m-review-country,
[dir="rtl"] .m-review-content {
    text-align: right;
}

/* ---------- 11. 商品详情属性/数量对齐 ---------- */
[dir="rtl"] .m-pd-title,
[dir="rtl"] .m-pd-sub,
[dir="rtl"] .m-pd-desc,
[dir="rtl"] .m-pd-meta-row,
[dir="rtl"] .m-pd-attr-label {
    text-align: right;
}
[dir="rtl"] .m-pd-meta-row {
    flex-direction: row-reverse;
}
[dir="rtl"] .m-pd-attrs,
[dir="rtl"] .m-pd-attr-values {
    text-align: right;
}

/* ---------- 12. 账户页菜单图标与文字位置 ---------- */
[dir="rtl"] .m-account-item,
[dir="rtl"] .m-order-tab {
    text-align: right;
}
[dir="rtl"] .m-account-item {
    flex-direction: row-reverse;
}
[dir="rtl"] .m-account-item-arrow {
    margin-left: 0;
    margin-right: auto;
}

/* ---------- 13. 搜索框图标靠右 ---------- */
[dir="rtl"] .m-cat-search {
    flex-direction: row-reverse;
}
[dir="rtl"] .m-cat-search input {
    text-align: right;
}

/* ---------- 14. 排序条镜像 ---------- */
[dir="rtl"] .m-sort-bar {
    flex-direction: row-reverse;
}

/* ---------- 15. 空状态图标居中不受影响（无需改） ---------- */

/* ---------- 16. 弹窗内容对齐（从底部弹出，方向不变） ---------- */
[dir="rtl"] .mls-body,
[dir="rtl"] .mls-head {
    text-align: right;
}
[dir="rtl"] .mls-head .mls-close {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .mls-item {
    flex-direction: row-reverse;
}

/* ---------- 17. 章节标题英文短语避免首尾错位 ---------- */
[dir="rtl"] .m-section-title {
    unicode-bidi: plaintext;
}


/* ===== 登录/注册页 · 品牌区（与首页导航同步） ===== */
.m-auth-brand {
    text-align: center;
    margin-bottom: 26px;
}
.m-auth-logo-img {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px -8px rgba(124, 58, 237, .45), 0 2px 6px rgba(0, 0, 0, .04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-auth-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.m-auth-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -.2px;
    line-height: 1.3;
}
/* RTL 适配 */
[dir="rtl"] .m-auth-brand { text-align: center; }

/* ============================================================
   登录/注册页 · 白色卡片（深底上做浅色卡片，文字用深色可见）
   ============================================================ */
.m-auth-wrap {
    background: #ffffff;
    border-radius: 22px;
    max-width: 440px;
    margin: 16px auto 32px;
    padding: 36px 24px 40px;
    text-align: center;
    box-shadow:
        0 12px 40px -16px rgba(124, 58, 237, .28),
        0 2px 8px rgba(0, 0, 0, .04);
    position: relative;
    z-index: 2;
}

/* 标题深色（白卡上可见） */
.m-auth-title {
    color: #111827 !important;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.3px;
}
.m-auth-sub {
    color: #6b7280 !important;
}
.m-auth-sub a {
    color: var(--primary) !important;
    font-weight: 700;
}

/* 品牌名深色 */
.m-auth-brand-name {
    color: #1f2937 !important;
    font-size: 15px;
    font-weight: 700;
}

/* Logo 图片区：突出、清晰 */
.m-auth-logo-img {
    background: #fff;
    box-shadow:
        0 8px 24px -8px rgba(124, 58, 237, .45),
        0 0 0 1px rgba(124, 58, 237, .08);
}

/* 表单 label 深色 */
.m-auth-field label {
    color: #374151 !important;
}

/* 输入框白底 */
.m-auth-field input {
    background: #f9fafb !important;
    color: #111827 !important;
}
.m-auth-field input:focus {
    background: #fff !important;
}
.m-auth-field input::placeholder {
    color: #b6bcc6 !important;
}

/* 底部切换行深色 */
.m-auth-switch {
    color: #6b7280 !important;
}
.m-auth-switch a {
    color: var(--primary) !important;
    font-weight: 700;
}

/* RTL 兼容 */
[dir="rtl"] .m-auth-wrap {
    text-align: center;
}

/* ============================================================
   商品详情页 · 主图区修复（正方形铺满 + 居中）
   ============================================================ */
.m-pd-gallery {
    position: relative;
    background: #f5f6fa;
    padding: 0;
}
.m-pd-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 66vh;
    padding-bottom: 0 !important;   /* 覆盖旧的 80px */
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.m-pd-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* 铺满、居中裁切 */
    display: block;
}
/* 占位图（无图时）也要居中 */
.m-pd-main > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: .25;
}

/* ============================================================
   商品详情页 · 底部购买栏不被悬浮按钮遮挡
   ============================================================ */
/* 详情页购买栏 z-index 提到最高 */
.m-pd-actions {
    z-index: 1100 !important;
}
/* 详情页把右侧"入驻/客服"悬浮按钮隐藏（它们跟购买栏重叠）*/
body.m-pd-page .m-float-join,
body.m-pd-page .m-float-ai,
body.m-pd-page .m-float-hot {
    display: none !important;
}

/* ============================================================
   商品详情页 · 底部购买栏与 Tab 栏间距优化
   ============================================================ */
.m-pd-actions {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    bottom: 60px !important;   /* 悬浮在 Tab 栏上方 */
}
.m-pd-actions .m-pd-btn {
    height: 46px !important;
    border-radius: 23px !important;
    font-size: 15px !important;
}

/* ============================================================
   店铺详情页 · 精致版样式
   ============================================================ */
.m-store-hero {
    position: relative;
    padding-bottom: 60px; /* 给悬浮卡片留空间 */
}
.m-store-hero-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #1e1b4b;
    position: relative;
}
.m-store-hero-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,27,75,.3) 0%, rgba(30,27,75,.7) 100%);
}
.m-store-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(124,58,237,.4) 0%, transparent 60%);
}

.m-store-hero-card {
    position: relative;
    margin: -48px 14px 0;
    padding: 20px 18px 18px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 32px -12px rgba(17, 24, 39, .15), 0 2px 6px rgba(0,0,0,.04);
    text-align: center;
    z-index: 2;
}
.m-store-hero-logo {
    width: 72px; height: 72px; margin: -52px auto 12px;
    border-radius: 20px; overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px -8px rgba(124, 58, 237, .5), 0 0 0 3px #fff;
    display: flex; align-items: center; justify-content: center;
}
.m-store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-store-hero-initial {
    font-size: 30px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.m-store-hero-name {
    font-size: 19px; font-weight: 800; color: #111827;
    letter-spacing: -.3px; margin: 0 0 6px;
}
.m-store-hero-meta {
    font-size: 12.5px; color: #6b7280;
    margin: 0 0 14px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.m-store-follow-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: 0; border-radius: 22px;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 6px 18px -6px rgba(124,58,237,.5);
    transition: transform .15s;
}
.m-store-follow-btn:active { transform: scale(.95); }

/* 数据卡 4 列 */
.m-store-stats {
    display: flex;
    margin: 14px 14px 0;
    padding: 16px 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px -8px rgba(17,24,39,.08);
}
.m-store-stat {
    flex: 1;
    text-align: center;
    position: relative;
}
.m-store-stat + .m-store-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: #f1f5f9;
}
.m-store-stat b {
    display: block;
    font-size: 18px; font-weight: 800;
    color: #111827; letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
}
.m-store-stat span {
    display: block;
    font-size: 11px; color: #9ca3af; margin-top: 4px;
}

/* 公告 */
.m-store-hero + .m-store-stats + .m-announce,
.m-announce {
    display: flex; align-items: center; gap: 8px;
    margin: 12px 14px 0;
    padding: 11px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, .22);
    border-radius: 14px;
    font-size: 12.5px; color: #9a3412;
}
.m-announce-icon { font-size: 15px; flex: 0 0 auto; }
.m-announce-text {
    flex: 1; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 底部操作条（覆盖旧样式） */
.m-store-footbar {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.95);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 200;
    box-shadow: 0 -4px 20px -8px rgba(17,24,39,.08);
}
.m-store-footbar-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; border-radius: 23px;
    font-size: 14.5px; font-weight: 700;
    border: 0; text-decoration: none;
    transition: transform .15s;
}
.m-store-footbar-btn:active { transform: scale(.96); }
.m-store-footbar-btn.ghost {
    background: #f3f4f6; color: #374151;
    flex: 0 0 130px;
}
.m-store-footbar-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(124,58,237,.5);
}

/* 分类 chips 在店铺页用 */
.m-store-hero + .m-store-stats + .m-announce + .m-section-wrap .m-cat-chip {
    background: #fff;
    border: 1px solid #eef0f4;
}

/* RTL 适配 */
[dir="rtl"] .m-store-hero-meta { direction: rtl; }
[dir="rtl"] .m-store-stats { direction: rtl; }
[dir="rtl"] .m-store-stat + .m-store-stat::before { left: auto; right: 0; }
[dir="rtl"] .m-store-footbar { flex-direction: row-reverse; }

/* ============================================================
   店铺详情页 · 精修 v2
   ============================================================ */

/* ① 店铺头 */
.m-store-hero { position: relative; padding-bottom: 68px; }
.m-store-hero-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #1e1b4b;
    position: relative;
}
.m-store-hero-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,27,75,.15) 0%, rgba(30,27,75,.75) 100%);
}
.m-store-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(124,58,237,.45) 0%, transparent 60%);
}
.m-store-hero-card {
    position: relative;
    margin: -56px 14px 0;
    padding: 24px 18px 18px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 40px -16px rgba(17, 24, 39, .18), 0 2px 6px rgba(0,0,0,.04);
    text-align: center;
    z-index: 2;
}
.m-store-hero-logo {
    width: 76px; height: 76px; margin: -58px auto 12px;
    border-radius: 22px; overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px -10px rgba(124, 58, 237, .55), 0 0 0 4px #fff;
    display: flex; align-items: center; justify-content: center;
}
.m-store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-store-hero-initial {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.m-store-hero-name {
    font-size: 20px; font-weight: 800; color: #111827;
    letter-spacing: -.4px; margin: 0 0 8px;
}
.m-store-hero-meta {
    font-size: 12.5px; color: #6b7280;
    margin: 0 0 16px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.m-store-hero-meta .m-dot { opacity: .5; }
.m-store-follow-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 26px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: 0; border-radius: 24px;
    font-size: 13.5px; font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
    transition: transform .15s, box-shadow .15s, background .2s;
}
.m-store-follow-btn:active { transform: scale(.95); }
.m-store-follow-btn.followed {
    background: #f3f4f6; color: #6b7280;
    box-shadow: none;
}
.m-store-follow-btn .ico { font-size: 15px; font-weight: 700; }

/* ② 数据卡 */
.m-store-stats {
    display: flex;
    margin: 16px 14px 0;
    padding: 18px 8px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px -10px rgba(17,24,39,.10);
}
.m-store-stat { flex: 1; text-align: center; position: relative; }
.m-store-stat + .m-store-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #f1f5f9, transparent);
}
.m-store-stat b {
    display: block;
    font-size: 19px; font-weight: 800;
    color: #111827; letter-spacing: -.4px;
    font-variant-numeric: tabular-nums;
}
.m-store-stat:nth-child(2) b { color: #ff7a45; }
.m-store-stat:nth-child(3) b { color: #fbbf24; }
.m-store-stat span {
    display: block;
    font-size: 11px; color: #9ca3af; margin-top: 5px;
}

/* ③ 公告 */
.m-announce {
    display: flex; align-items: center; gap: 8px;
    margin: 12px 14px 0;
    padding: 11px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, .22);
    border-radius: 14px;
    font-size: 12.5px; color: #9a3412;
}
.m-announce-icon { font-size: 15px; flex: 0 0 auto; }
.m-announce-text {
    flex: 1; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* ⑤ 分类 chips 覆盖 */
.m-cat-chips { padding: 0 14px 8px; }

/* ⑥⑧ 商品卡片角标 */
.m-product-img { position: relative; }
.m-badge-hot {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 7px;
    background: linear-gradient(135deg, #ff7a45, #ff4757);
    color: #fff; font-size: 9.5px; font-weight: 800;
    letter-spacing: .5px; border-radius: 8px;
    box-shadow: 0 3px 8px rgba(255,71,87,.4);
}
.m-product-img .ph,
.m-rank-img .ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 32px; opacity: .3;
}

/* ⑦ 热销榜列表 & 徽章 */
.m-rank-list { padding: 0 14px; background: #fff; margin: 0 14px; border-radius: 16px; box-shadow: 0 4px 16px -8px rgba(17,24,39,.06); overflow: hidden; }
.m-rank-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px;
    border-bottom: 1px solid #f5f6fa;
    transition: background .15s;
}
.m-rank-row:last-child { border-bottom: 0; }
.m-rank-row:active { background: #fafafa; }
.m-rank-no {
    width: 26px; height: 26px; line-height: 26px;
    text-align: center; border-radius: 8px;
    font-size: 12px; font-weight: 800;
    color: #fff;
    background: #d1d5db;
}
.m-rank-no.gold { background: linear-gradient(135deg, #ffb800, #ff7a00); box-shadow: 0 3px 8px -2px rgba(255,140,0,.5); }
.m-rank-no.silver { background: linear-gradient(135deg, #c7d0d9, #9aa5b1); box-shadow: 0 3px 8px -2px rgba(150,160,175,.4); }
.m-rank-no.bronze { background: linear-gradient(135deg, #cd7f32, #a5652a); box-shadow: 0 3px 8px -2px rgba(165,101,42,.4); }
.m-rank-img {
    width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    background: #f5f6fa; flex: 0 0 auto;
}
.m-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.m-rank-info { flex: 1; min-width: 0; }
.m-rank-name {
    font-size: 13.5px; font-weight: 600; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-rank-meta { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.m-rank-price { font-size: 14px; font-weight: 800; color: #ff4757; font-variant-numeric: tabular-nums; }

/* ⑨ 品牌卡 */
.m-brand-card {
    flex: 0 0 100px; height: 100px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 10px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 3px 12px -6px rgba(17,24,39,.08);
    gap: 6px;
}
.m-brand-card img { max-width: 60%; max-height: 60%; object-fit: contain; }
.m-brand-initial {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: var(--primary); font-size: 20px; font-weight: 800;
}
.m-brand-name {
    font-size: 11px; color: #4b5563; text-align: center;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ⑩ 评价卡 */
.m-review-card {
    flex: 0 0 260px;
    background: #fff; border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 14px -6px rgba(17,24,39,.08);
}
.m-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-review-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex: 0 0 auto;
}
.m-review-name { font-size: 13px; font-weight: 700; color: #1f2937; }
.m-review-country { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.m-review-stars { font-size: 11px; color: #fbbf24; letter-spacing: 1px; }
.m-review-content {
    font-size: 12.5px; line-height: 1.7; color: #4b5563;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* 底部留白 + 操作条 */
.m-store-bottom-spacer { height: 90px; }
.m-store-footbar {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.95);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 200;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-store-footbar-btn {
    flex: 1; height: 46px; border-radius: 23px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14.5px; font-weight: 700; border: 0; text-decoration: none;
    transition: transform .15s;
}
.m-store-footbar-btn:active { transform: scale(.96); }
.m-store-footbar-btn.ghost {
    background: #f3f4f6; color: #374151;
    flex: 0 0 110px;
}
.m-store-footbar-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* RTL 适配 */
[dir="rtl"] .m-store-stats { direction: rtl; }
[dir="rtl"] .m-store-stat + .m-store-stat::before { left: auto; right: 0; }
[dir="rtl"] .m-store-footbar { flex-direction: row-reverse; }
[dir="rtl"] .m-rank-row { flex-direction: row-reverse; }
[dir="rtl"] .m-badge-hot { right: auto; left: 8px; }

/* ============================================================
   品牌墙 · 精致版（圆形徽章 + 名字）
   ============================================================ */
.m-brand-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 14px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.m-brand-scroll::-webkit-scrollbar { display: none; }

.m-brand-item {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .18s;
}
.m-brand-item:active { transform: scale(.92); }

.m-brand-badge {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    font-size: 24px; font-weight: 800;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(17,24,39,.18), 0 2px 4px rgba(17,24,39,.04);
    border: 3px solid #fff;
    position: relative;
}
.m-brand-badge img {
    width: 100%; height: 100%; object-fit: cover;
}
.m-brand-badge span {
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* 6 套配色循环 */
.m-brand-color-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.m-brand-color-2 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.m-brand-color-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.m-brand-color-4 { background: linear-gradient(135deg, #10b981, #059669); }
.m-brand-color-5 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.m-brand-color-6 { background: linear-gradient(135deg, #a855f7, #d946ef); }

.m-brand-name {
    font-size: 11.5px;
    color: #374151;
    font-weight: 600;
    text-align: center;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}


/* ============ 品牌墙 · 强制生效版（覆盖旧规则） ============ */
.m-brand-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    overflow-x: auto !important;
    padding: 4px 14px 14px !important;
    background: transparent !important;
}
.m-brand-item {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}
.m-brand-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #fff !important;
    border: 3px solid #fff !important;
    box-shadow: 0 6px 16px -6px rgba(17,24,39,.18) !important;
}
.m-brand-badge img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.m-brand-badge span { line-height: 1 !important; color: #fff !important; }
.m-brand-color-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; }
.m-brand-color-2 { background: linear-gradient(135deg, #ec4899, #f43f5e) !important; }
.m-brand-color-3 { background: linear-gradient(135deg, #f59e0b, #f97316) !important; }
.m-brand-color-4 { background: linear-gradient(135deg, #10b981, #059669) !important; }
.m-brand-color-5 { background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important; }
.m-brand-color-6 { background: linear-gradient(135deg, #a855f7, #d946ef) !important; }
.m-brand-name {
    display: block !important;
    font-size: 11.5px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    text-align: center !important;
    max-width: 76px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ============================================================
   移动端 · 结算页
   ============================================================ */
.m-co-card {
    background: #fff; border-radius: 14px;
    margin: 10px 14px; padding: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-co-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
}
.m-co-head .ico { font-size: 18px; }
.m-co-head h3 { flex: 1; font-size: 15px; font-weight: 700; color: #111827; margin: 0; }
.m-co-pick {
    font-size: 12.5px; color: var(--primary);
    background: #f5f3ff; border: 0; border-radius: 14px;
    padding: 5px 12px; font-weight: 600;
}

.m-co-field { margin-bottom: 10px; }
.m-co-field label { display: block; font-size: 12.5px; color: #6b7280; margin-bottom: 5px; font-weight: 500; }
.m-co-field label b { color: #ef4444; }
.m-co-field input {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    background: #f9fafb; font-size: 14px; color: #111827;
    outline: none; transition: all .15s;
    box-sizing: border-box;
}
.m-co-field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.08); }

.m-co-options { display: flex; flex-direction: column; gap: 8px; }
.m-co-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 1px solid #eef0f4; border-radius: 12px;
    cursor: pointer; transition: all .15s;
}
.m-co-opt input[type=radio] { flex: 0 0 auto; accent-color: var(--primary); }
.m-co-opt:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    box-shadow: 0 0 0 3px rgba(124,58,237,.06);
}
.m-co-opt-body { flex: 1; min-width: 0; }
.m-co-opt-name { font-size: 14px; font-weight: 600; color: #111827; }
.m-co-opt-sub { font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
.m-co-opt-price { font-size: 15px; font-weight: 800; color: #ff4757; }

.m-co-coupons { display: flex; flex-direction: column; gap: 8px; }
.m-co-cp {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid #eef0f4; border-radius: 12px;
    cursor: pointer;
}
.m-co-cp:has(input:checked) {
    border-color: var(--primary);
    background: #f5f3ff;
}
.m-co-cp-face { font-size: 16px; font-weight: 800; color: #ff4757; }
.m-co-cp-name { font-size: 12px; color: #6b7280; }

.m-co-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #f5f6fa;
}
.m-co-item:last-of-type { border-bottom: 0; }
.m-co-item-img {
    width: 48px; height: 48px; border-radius: 8px;
    background: #f5f6fa; overflow: hidden; flex: 0 0 auto;
}
.m-co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.m-co-item-info { flex: 1; min-width: 0; }
.m-co-item-name { font-size: 13px; color: #1f2937; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-co-item-meta { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.m-co-item-price { font-size: 13.5px; font-weight: 700; color: #ff4757; }

.m-co-summary { padding-top: 10px; border-top: 1px solid #f3f4f6; margin-top: 8px; }
.m-co-sum-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 13px; color: #6b7280; padding: 5px 0;
}
.m-co-sum-row b { color: #374151; font-weight: 600; }
.m-co-sum-row.total { padding-top: 10px; border-top: 1px dashed #e5e7eb; margin-top: 6px; }
.m-co-sum-row.total span { font-size: 14px; font-weight: 700; color: #111827; }
.m-co-sum-row.total b { font-size: 20px; font-weight: 800; color: #ff4757; }

.m-co-placeholder { height: 80px; }

.m-co-foot {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 300;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-co-foot-total { display: flex; align-items: baseline; gap: 6px; }
.m-co-foot-total span { font-size: 12px; color: #6b7280; }
.m-co-foot-total b { font-size: 20px; font-weight: 800; color: #ff4757; }
.m-co-submit {
    flex: 1; height: 46px; border-radius: 23px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: 0; font-size: 15px; font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}
.m-co-submit:active { transform: scale(.97); }

/* 地址选择弹窗 */
.m-co-sheet { position: fixed; inset: 0; z-index: 500; }
.m-co-sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.m-co-sheet-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 70vh; background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    animation: mCoSlideUp .25s ease;
    overflow-y: auto;
}
@keyframes mCoSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.m-co-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
}
.m-co-sheet-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.m-co-sheet-head button { background: none; border: 0; font-size: 24px; color: #9ca3af; line-height: 1; }
.m-co-addr-list { max-height: 50vh; overflow-y: auto; }
.m-co-addr {
    padding: 12px; border: 1px solid #eef0f4; border-radius: 12px;
    margin-bottom: 8px; cursor: pointer;
}
.m-co-addr:active { background: #f9fafb; }
.m-co-addr-name { font-size: 14px; font-weight: 600; color: #111827; }
.m-co-addr-name span { font-weight: 400; color: #6b7280; margin-left: 6px; font-size: 12.5px; }
.m-co-addr-line { font-size: 12.5px; color: #6b7280; margin-top: 4px; line-height: 1.5; }

/* 成功页 */
.m-co-success {
    max-width: 400px; margin: 60px auto; padding: 32px 24px;
    text-align: center;
}
.m-co-success-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700;
    box-shadow: 0 16px 40px -10px rgba(16,185,129,.6);
}
.m-co-success h2 { font-size: 22px; font-weight: 800; color: #111827; margin: 0 0 12px; }
.m-co-success-no { font-size: 13px; color: #6b7280; margin: 0 0 6px; }
.m-co-success-total { font-size: 14px; color: #374151; margin: 0 0 24px; }
.m-co-success-total b { color: #ff4757; font-size: 18px; }
.m-co-success-actions { display: flex; flex-direction: column; gap: 10px; }
.m-co-btn {
    height: 46px; line-height: 46px; border-radius: 23px;
    text-decoration: none; font-size: 15px; font-weight: 700;
    background: #f3f4f6; color: #374151;
    display: block; text-align: center;
}
.m-co-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* ============================================================
   移动端 · 订单列表 / 详情
   ============================================================ */
.m-ord-tabs {
    display: flex; overflow-x: auto;
    background: #fff; padding: 0 4px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; z-index: 10;
    scrollbar-width: none;
}
.m-ord-tabs::-webkit-scrollbar { display: none; }
.m-ord-tab {
    flex: 0 0 auto; padding: 12px 16px;
    font-size: 13px; color: #6b7280; text-decoration: none;
    white-space: nowrap; position: relative;
    display: flex; align-items: center; gap: 4px;
}
.m-ord-tab b {
    display: inline-block; padding: 0 6px; height: 16px; line-height: 16px;
    background: #ef4444; color: #fff; border-radius: 8px;
    font-size: 10px; font-weight: 700;
}
.m-ord-tab.active { color: var(--primary); font-weight: 700; }
.m-ord-tab.active::after {
    content: ''; position: absolute; left: 16px; right: 16px;
    bottom: 0; height: 2px; border-radius: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.m-ord-list { padding: 10px 14px; }
.m-ord-card {
    display: block;
    background: #fff; border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
    transition: transform .15s;
}
.m-ord-card:active { transform: scale(.98); }
.m-ord-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 10px; border-bottom: 1px solid #f5f6fa;
    margin-bottom: 10px;
}
.m-ord-no { display: flex; gap: 6px; align-items: baseline; }
.m-ord-no .label { font-size: 11.5px; color: #9ca3af; }
.m-ord-no .num { font-size: 12px; color: #374151; font-family: monospace; }
.m-ord-status {
    padding: 3px 10px; border-radius: 12px;
    font-size: 11.5px; font-weight: 600;
}

.m-ord-items { padding-bottom: 10px; border-bottom: 1px solid #f5f6fa; }
.m-ord-item { display: flex; gap: 10px; padding: 6px 0; }
.m-ord-item-img {
    width: 48px; height: 48px; border-radius: 8px;
    background: #f5f6fa; overflow: hidden; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.m-ord-item-img img { width: 100%; height: 100%; object-fit: cover; }
.m-ord-item-img .ph { font-size: 20px; opacity: .3; }
.m-ord-item-info { flex: 1; min-width: 0; }
.m-ord-item-name {
    font-size: 13px; color: #1f2937; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-ord-item-sku { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.m-ord-item-meta { font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
.m-ord-item-price { font-size: 13px; font-weight: 700; color: #ff4757; flex: 0 0 auto; }
.m-ord-item-more { font-size: 11.5px; color: #9ca3af; text-align: center; padding: 6px 0 0; }

.m-ord-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px;
}
.m-ord-total { display: flex; align-items: baseline; gap: 6px; }
.m-ord-total span { font-size: 12px; color: #6b7280; }
.m-ord-total b { font-size: 17px; font-weight: 800; color: #ff4757; }
.m-ord-time { font-size: 11px; color: #9ca3af; }

/* 空状态 */
.m-ord-empty {
    padding: 60px 20px; text-align: center;
}
.m-ord-empty-icon { font-size: 64px; opacity: .3; margin-bottom: 16px; }
.m-ord-empty p { font-size: 14px; color: #9ca3af; margin: 0 0 20px; }
.m-ord-empty-btn {
    display: inline-block; padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 22px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* 订单详情 */
.m-ord-hero {
    padding: 24px 20px; color: #fff;
    margin-bottom: 10px;
}
.m-ord-hero-status { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.m-ord-hero-no { font-size: 12.5px; opacity: .9; font-family: monospace; }

.m-ord-section {
    background: #fff; border-radius: 14px;
    margin: 10px 14px; padding: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-ord-section-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid #f5f6fa;
}
.m-ord-section-head .ico { font-size: 16px; }
.m-ord-section-head h3 {
    margin: 0; font-size: 14px; font-weight: 700; color: #111827;
}

.m-ord-info-row {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 6px 0; font-size: 13px;
}
.m-ord-info-row span { color: #6b7280; flex: 0 0 auto; }
.m-ord-info-row b { color: #111827; font-weight: 600; text-align: right; word-break: break-all; }

.m-ord-sum-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0; font-size: 13px; color: #6b7280;
}
.m-ord-sum-row b { color: #374151; font-weight: 600; }
.m-ord-sum-row.total {
    padding-top: 10px; margin-top: 6px;
    border-top: 1px dashed #e5e7eb;
}
.m-ord-sum-row.total span { font-size: 14px; font-weight: 700; color: #111827; }
.m-ord-sum-row.total b { font-size: 20px; font-weight: 800; color: #ff4757; }

.m-ord-actions {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 10px; padding: 10px 14px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 300;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-ord-btn {
    flex: 1; height: 46px; border-radius: 23px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14.5px; font-weight: 700;
    background: #f3f4f6; color: #374151;
    border: 0;
}
.m-ord-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* 订单列表内联操作按钮 */
.m-ord-inline-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    padding-top: 10px; margin-top: 8px;
    border-top: 1px solid #f5f6fa;
}
.m-ord-btn-sm {
    padding: 6px 16px; border-radius: 18px;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    background: #f3f4f6; color: #374151;
    border: 1px solid #e5e7eb;
    display: inline-flex; align-items: center;
}
.m-ord-btn-sm.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: 0;
    box-shadow: 0 6px 16px -6px rgba(124,58,237,.5);
}

/* ============================================================
   移动端 · 地址簿
   ============================================================ */
.m-addr-list { padding: 10px 14px; }
.m-addr-card {
    background: #fff; border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-addr-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 10px; border-bottom: 1px solid #f5f6fa;
    margin-bottom: 10px;
}
.m-addr-name { font-size: 15px; font-weight: 700; color: #111827; }
.m-addr-phone { font-size: 13px; color: #6b7280; }
.m-addr-badge {
    margin-left: auto;
    padding: 2px 8px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 10.5px; font-weight: 700;
}
.m-addr-line {
    font-size: 13px; color: #4b5563; line-height: 1.6;
}
.m-addr-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    padding-top: 10px; margin-top: 10px;
    border-top: 1px solid #f5f6fa;
}
.m-addr-btn {
    padding: 5px 14px; border-radius: 16px;
    background: #f3f4f6; color: #374151;
    font-size: 12px; font-weight: 600;
    border: 0; cursor: pointer;
    text-decoration: none;
    display: inline-flex; align-items: center;
}
.m-addr-btn.danger { color: #ef4444; }

.m-addr-empty { padding: 80px 20px; text-align: center; }
.m-addr-empty-icon { font-size: 64px; opacity: .3; margin-bottom: 16px; }
.m-addr-empty p { font-size: 14px; color: #9ca3af; margin: 0 0 20px; }
.m-addr-empty-btn {
    display: inline-block; padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 22px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

.m-addr-bottom-spacer { height: 90px; }
.m-addr-foot {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 10px 14px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 300;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-addr-add-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; border-radius: 23px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 15px; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* 表单 */
.m-addr-form { padding: 14px; }
.m-addr-field { margin-bottom: 14px; }
.m-addr-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}
.m-addr-field label b { color: #ef4444; }
.m-addr-field input {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; font-size: 14px; color: #111827;
    box-sizing: border-box;
    outline: none;
}
.m-addr-field input:focus {
    border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.m-addr-row { display: flex; gap: 12px; }
.m-addr-row .m-addr-field { flex: 1; }

.m-addr-default-switch {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 0; font-size: 14px; color: #374151;
    user-select: none;
}
.m-addr-default-switch input { accent-color: var(--primary); width: 18px; height: 18px; }

.m-addr-form-foot {
    display: flex; gap: 10px; margin-top: 20px;
}
.m-addr-btn-lg {
    flex: 1; height: 46px; border-radius: 23px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    border: 0; cursor: pointer;
}
.m-addr-btn-lg.ghost { background: #f3f4f6; color: #374151; }
.m-addr-btn-lg.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* ===== 通用商品网格（收藏页用）===== */
.m-acc-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; padding: 10px 14px;
}
.m-acc-product {
    display: block; background: #fff; border-radius: 14px;
    overflow: hidden; text-decoration: none;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-acc-product:active { transform: scale(.98); }
.m-acc-product-img {
    width: 100%; aspect-ratio: 1/1; background: #f5f6fa;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.m-acc-product-img img { width: 100%; height: 100%; object-fit: cover; }
.m-acc-product-img .ph { font-size: 36px; opacity: .3; }
.m-acc-product-info { padding: 10px; }
.m-acc-product-name {
    font-size: 13px; color: #1f2937; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 34px;
}
.m-acc-product-price {
    font-size: 15px; font-weight: 800; color: #ff4757; margin-top: 6px;
}

/* ===== 券包 ===== */
.m-cp-tabs {
    display: flex; background: #fff; border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; z-index: 10;
}
.m-cp-tab {
    flex: 1; padding: 12px 0; text-align: center;
    font-size: 13px; color: #6b7280; text-decoration: none;
    position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.m-cp-tab b {
    display: inline-block; padding: 0 6px; height: 16px; line-height: 16px;
    background: #ef4444; color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700;
}
.m-cp-tab.active { color: var(--primary); font-weight: 700; }
.m-cp-tab.active::after {
    content: ''; position: absolute; left: 30%; right: 30%; bottom: 0;
    height: 2px; background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 1px;
}

.m-cp-list { padding: 10px 14px; }
.m-cp-card {
    display: flex; background: #fff; border-radius: 14px;
    overflow: hidden; margin-bottom: 10px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
    border: 1px solid rgba(255,107,53,.12);
}
.m-cp-card.used, .m-cp-card.expired { opacity: .55; filter: grayscale(.6); }
.m-cp-left {
    flex: 0 0 90px;
    background: linear-gradient(135deg, #ff7a45, #ff4757);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
    position: relative;
}
.m-cp-left::after {
    content: ''; position: absolute; right: 0; top: 10px; bottom: 10px;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255,255,255,.5) 55%, transparent 55%);
    background-size: 1px 8px;
}
.m-cp-right {
    flex: 1; padding: 12px 14px; position: relative;
}
.m-cp-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.m-cp-desc { font-size: 12px; color: #6b7280; margin-top: 4px; }
.m-cp-valid { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.m-cp-use {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    padding: 5px 14px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 12px; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px -4px rgba(124,58,237,.5);
}

/* ===== 积分 ===== */
.m-pt-hero {
    padding: 40px 20px; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.m-pt-label { font-size: 13px; opacity: .85; }
.m-pt-value { font-size: 48px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-top: 8px; }
.m-pt-section {
    background: #fff; border-radius: 14px;
    margin: 10px 14px; padding: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-pt-title { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 12px; }
.m-pt-empty { text-align: center; color: #9ca3af; padding: 30px 0; font-size: 13px; }
.m-pt-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f5f6fa;
}
.m-pt-row:last-child { border-bottom: 0; }
.m-pt-row-info { flex: 1; min-width: 0; }
.m-pt-row-title { font-size: 13.5px; color: #1f2937; }
.m-pt-row-time { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.m-pt-row-amount { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ===== 消息 ===== */
.m-msg-list { padding: 10px 14px; }
.m-msg-card {
    background: #fff; border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-msg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.m-msg-title { font-size: 14px; font-weight: 700; color: #111827; }
.m-msg-time { font-size: 11.5px; color: #9ca3af; flex: 0 0 auto; }
.m-msg-body { font-size: 13px; color: #4b5563; line-height: 1.6; word-break: break-all; }

/* ===== 分销中心 ===== */
.m-dist-hero-empty {
    padding: 60px 24px; text-align: center;
}
.m-dist-icon { font-size: 72px; opacity: .7; margin-bottom: 16px; }
.m-dist-hero-empty h2 { font-size: 20px; font-weight: 800; color: #111827; margin: 0 0 12px; }
.m-dist-hero-empty p { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0 0 28px; }
.m-dist-apply-btn {
    display: inline-block; padding: 12px 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 24px;
    text-decoration: none; font-size: 15px; font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}
.m-dist-code {
    display: inline-block; margin-top: 16px;
    padding: 8px 16px; border-radius: 12px;
    background: #f5f3ff; color: var(--primary);
    font-size: 13px; font-family: monospace;
}

.m-dist-hero {
    padding: 40px 20px; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.m-dist-hero-label { font-size: 13px; opacity: .85; }
.m-dist-hero-amount { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-top: 8px; }

.m-dist-stats {
    display: flex; background: #fff; border-radius: 14px;
    margin: -20px 14px 10px; padding: 16px 8px;
    box-shadow: 0 8px 24px -12px rgba(17,24,39,.15);
    position: relative; z-index: 2;
}
.m-dist-stat { flex: 1; text-align: center; position: relative; }
.m-dist-stat + .m-dist-stat::before {
    content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: #f1f5f9;
}
.m-dist-stat b { display: block; font-size: 17px; font-weight: 800; color: #111827; }
.m-dist-stat span { display: block; font-size: 11px; color: #9ca3af; margin-top: 4px; }

.m-dist-section {
    background: #fff; border-radius: 14px;
    margin: 10px 14px; padding: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-dist-section h3 { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 12px; }
.m-dist-link { display: flex; gap: 8px; }
.m-dist-link input {
    flex: 1; height: 40px; padding: 0 12px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    background: #f9fafb; font-size: 12px; font-family: monospace;
    color: #374151; outline: none;
}
.m-dist-link button {
    padding: 0 20px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 13px; font-weight: 600;
}
.m-dist-hint { font-size: 11.5px; color: #9ca3af; margin: 8px 0 0; }

.m-dist-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f5f6fa;
}
.m-dist-row:last-child { border-bottom: 0; }
.m-dist-row-title { font-size: 13px; color: #1f2937; }
.m-dist-row-time { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.m-dist-row-amount { font-size: 14px; font-weight: 700; color: #22c55e; }

/* ===== 我的评价 ===== */
.m-rv-list { padding: 10px 14px; }
.m-rv-card {
    background: #fff; border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-rv-product { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f5f6fa; }
.m-rv-img {
    width: 52px; height: 52px; border-radius: 8px;
    background: #f5f6fa; overflow: hidden; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.m-rv-img img { width: 100%; height: 100%; object-fit: cover; }
.m-rv-img .ph { font-size: 22px; opacity: .3; }
.m-rv-info { flex: 1; min-width: 0; }
.m-rv-name { font-size: 13.5px; color: #1f2937; font-weight: 600; }
.m-rv-stars { color: #fbbf24; letter-spacing: 1px; font-size: 12px; margin-top: 4px; }
.m-rv-content { padding: 10px 0 0; font-size: 13px; color: #4b5563; line-height: 1.7; }
.m-rv-reply {
    margin-top: 10px; padding: 10px 12px;
    background: #f9fafb; border-radius: 8px;
    font-size: 12.5px; color: #6b7280; line-height: 1.6;
}
.m-rv-reply b { color: var(--primary); margin-right: 4px; }
.m-rv-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; margin-top: 10px; border-top: 1px solid #f5f6fa;
    font-size: 11.5px; color: #9ca3af;
}
.m-rv-foot a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== 我的退款 ===== */
.m-rf-list { padding: 10px 14px; }
.m-rf-card {
    background: #fff; border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-rf-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #f5f6fa;
}
.m-rf-no { font-size: 12px; color: #6b7280; font-family: monospace; }
.m-rf-status { padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.m-rf-row {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 5px 0; font-size: 13px;
}
.m-rf-row span { color: #6b7280; flex: 0 0 auto; }
.m-rf-row b { color: #1f2937; font-weight: 600; text-align: right; }
.m-rf-foot {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 10px; margin-top: 8px; border-top: 1px dashed #e5e7eb;
}
.m-rf-amount { font-size: 17px; font-weight: 800; color: #ff4757; }
.m-rf-time { font-size: 11.5px; color: #9ca3af; }

/* ============================================================
   移动端 · 购物车增强
   ============================================================ */
.m-cart-manage-btn {
    font-size: 13px; color: var(--primary);
    background: transparent; border: 0;
    padding: 4px 10px; font-weight: 600;
}

.m-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    position: relative;
}

.m-cart-check {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; flex: 0 0 auto;
    user-select: none;
}
.m-cart-check input { display: none; }
.m-cart-cb-mark {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #d1d5db; background: #fff;
    position: relative; transition: all .15s;
}
.m-cart-cb-mark::after {
    content: ''; position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s;
}
.m-cart-check input:checked + .m-cart-cb-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
}
.m-cart-check input:checked + .m-cart-cb-mark::after {
    transform: rotate(45deg) scale(1);
}

.m-cart-cb-mark + .m-cart-all-label,
.m-cart-check > span:not(.m-cart-cb-mark) {
    font-size: 13px; color: #374151;
}

.m-cart-info { flex: 1; min-width: 0; }
.m-cart-sku { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.m-cart-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}

.m-cart-qty {
    display: flex; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden;
}
.m-cqty-btn {
    width: 28px; height: 28px;
    border: 0; background: #f9fafb;
    font-size: 16px; line-height: 1;
    color: #374151; font-weight: 700;
    cursor: pointer;
}
.m-cqty-btn:active { background: #f3f4f6; }
.m-cqty-input {
    width: 36px; height: 28px; text-align: center;
    border: 0; background: #fff; font-size: 13px;
    font-weight: 600; color: #111827;
    -moz-appearance: textfield;
}
.m-cqty-input::-webkit-outer-spin-button,
.m-cqty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.m-cart-del {
    width: 24px; height: 24px;
    border: 0; background: transparent;
    color: #9ca3af; font-size: 20px; line-height: 1;
    cursor: pointer; padding: 0;
    position: absolute; top: 10px; right: 10px;
}
.m-cart-del:active { color: #ef4444; }

/* 底部结算栏 */
.m-cart-bottom-spacer { height: 90px; }
.m-cart-summary {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #f3f4f6;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 300;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-cart-check-all { flex: 0 0 auto; }
.m-cart-total-box { flex: 1; text-align: right; padding-right: 6px; }
.m-cart-total-label { font-size: 11px; color: #9ca3af; }
.m-cart-total-num { font-size: 19px; font-weight: 800; color: #ff4757; letter-spacing: -.3px; }
.m-cart-checkout {
    flex: 0 0 auto;
    padding: 0 22px;
    height: 42px; border-radius: 21px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

/* 批量删除栏 */
.m-cart-batch {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #f3f4f6;
    z-index: 300;
    box-shadow: 0 -6px 24px -10px rgba(17,24,39,.10);
}
.m-cart-batch-del {
    padding: 0 24px; height: 42px; border-radius: 21px;
    background: #ef4444; color: #fff;
    font-size: 14px; font-weight: 700;
    border: 0; cursor: pointer;
}
.m-cart-batch-del:active { transform: scale(.97); }

/* ============================================================
   移动端 · 评价表单
   ============================================================ */
.m-rvf { padding: 14px; }
.m-rvf-product {
    display: flex; gap: 10px; padding: 12px;
    background: #fff; border-radius: 14px; margin-bottom: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-rvf-img {
    width: 56px; height: 56px; border-radius: 10px;
    background: #f5f6fa; overflow: hidden; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.m-rvf-img img { width: 100%; height: 100%; object-fit: cover; }
.m-rvf-img .ph { font-size: 24px; opacity: .3; }
.m-rvf-info { flex: 1; min-width: 0; }
.m-rvf-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.m-rvf-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }

.m-rvf-block {
    background: #fff; border-radius: 14px;
    padding: 14px; margin-bottom: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
}
.m-rvf-label {
    display: block; font-size: 13px; font-weight: 700; color: #374151;
    margin-bottom: 10px;
}
.m-rvf-label b { color: #ef4444; }

.m-rvf-stars { display: flex; gap: 10px; justify-content: center; padding: 8px 0; }
.m-rvf-star {
    font-size: 32px; color: #d1d5db;
    cursor: pointer; transition: all .15s;
    line-height: 1;
}
.m-rvf-star.active { color: #fbbf24; }
.m-rvf-star:active { transform: scale(1.2); }
.m-rvf-rating-text {
    text-align: center; font-size: 12px; color: #6b7280;
    margin-top: 6px; min-height: 16px;
}

.m-rvf textarea {
    width: 100%; min-height: 100px;
    padding: 12px; border: 1px solid #e5e7eb;
    border-radius: 12px; background: #f9fafb;
    font-size: 14px; color: #111827; line-height: 1.6;
    box-sizing: border-box; outline: none; resize: vertical;
    font-family: inherit;
}
.m-rvf textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.08); }

.m-rvf-images { display: flex; flex-wrap: wrap; gap: 8px; }
.m-rvf-img-item {
    width: 76px; height: 76px; border-radius: 10px;
    overflow: hidden; position: relative;
    background: #f5f6fa;
}
.m-rvf-img-item img { width: 100%; height: 100%; object-fit: cover; }
.m-rvf-img-remove {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff;
    border: 0; font-size: 14px; line-height: 1;
    cursor: pointer;
}
.m-rvf-img-add {
    width: 76px; height: 76px;
    border: 2px dashed #d1d5db; border-radius: 10px;
    background: #f9fafb;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; gap: 2px;
}
.m-rvf-img-add span { font-size: 24px; color: #9ca3af; line-height: 1; }
.m-rvf-img-add small { font-size: 10px; color: #9ca3af; }

.m-rvf-anon {
    display: flex; align-items: center; gap: 8px;
    padding: 14px; font-size: 14px; color: #374151;
    background: #fff; border-radius: 14px; margin-bottom: 14px;
    box-shadow: 0 2px 10px -4px rgba(17,24,39,.08);
    cursor: pointer;
}
.m-rvf-anon input { display: none; }
.m-rvf-check {
    width: 20px; height: 20px; border-radius: 6px;
    border: 2px solid #d1d5db; background: #fff;
    position: relative; transition: all .15s;
}
.m-rvf-check::after {
    content: ''; position: absolute;
    left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); transition: transform .15s;
}
.m-rvf-anon input:checked + .m-rvf-check {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
}
.m-rvf-anon input:checked + .m-rvf-check::after { transform: rotate(45deg) scale(1); }

.m-rvf-actions { display: flex; gap: 10px; }
.m-rvf-btn {
    flex: 1; height: 46px; border-radius: 23px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    text-decoration: none; border: 0; cursor: pointer;
}
.m-rvf-btn.ghost { background: #f3f4f6; color: #374151; }
.m-rvf-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124,58,237,.55);
}

/* 评价区图片 */
.m-pd-review-imgs {
    display: flex; gap: 6px; margin-top: 8px;
    flex-wrap: wrap;
}
.m-pd-review-img {
    width: 60px; height: 60px; border-radius: 8px;
    overflow: hidden; background: #f5f6fa;
    cursor: pointer;
}
.m-pd-review-img img { width: 100%; height: 100%; object-fit: cover; }

/* 图片查看器 */
.m-pd-img-viewer {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.9);
    display: flex; align-items: center; justify-content: center;
}
.m-pd-img-viewer img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
}

/* ============================================================
   分类页 · 修正布局（覆盖旧样式）
   ============================================================ */
form.m-cat-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 10px 14px !important;
    padding: 10px 14px !important;
    background: #fff !important;
    border-radius: 22px !important;
    border: 1px solid #eef0f4 !important;
    box-shadow: 0 2px 8px -4px rgba(17,24,39,.06) !important;
    box-sizing: border-box !important;
}
form.m-cat-search svg {
    flex: 0 0 auto;
}
form.m-cat-search input[type="text"] {
    flex: 1 !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px !important;
    color: #111827 !important;
    padding: 0 !important;
    height: 32px !important;
}
form.m-cat-search input[type="text"]::placeholder {
    color: #b6bcc6 !important;
}
.m-cat-search-btn {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(124,58,237,.5);
}
.m-cat-search-btn:active {
    transform: scale(.97);
}

/* ============================================================
   店铺街 · 精致版
   ============================================================ */

/* 顶部 Hero */
.m-st-hero {
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #fff;
    border-radius: 0 0 24px 24px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.m-st-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(139,92,246,.5) 0%, transparent 65%);
    pointer-events: none;
}
.m-st-hero-title {
    font-size: 22px; font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -.3px;
    position: relative; z-index: 1;
}
.m-st-hero-sub {
    font-size: 12.5px; opacity: .8;
    margin: 0;
    position: relative; z-index: 1;
}

/* 搜索 */
.m-st-search {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 14px;
    padding: 10px 14px;
    background: #fff; border-radius: 22px;
    border: 1px solid #eef0f4;
    box-shadow: 0 2px 8px -4px rgba(17,24,39,.06);
}
.m-st-search svg { flex: 0 0 auto; }
.m-st-search input[type="text"] {
    flex: 1; min-width: 0;
    border: 0; background: transparent;
    outline: none; font-size: 14px; color: #111827;
    padding: 0; height: 32px;
}
.m-st-search input::placeholder { color: #b6bcc6; }
.m-st-search button {
    flex: 0 0 auto;
    height: 32px; padding: 0 16px;
    border: 0; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 4px 12px -4px rgba(124,58,237,.5);
    cursor: pointer;
}

/* 国家 Chips */
.m-st-chips {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 0 14px 10px;
    scrollbar-width: none;
}
.m-st-chips::-webkit-scrollbar { display: none; }
.m-st-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    background: #fff; border-radius: 20px;
    font-size: 12.5px; color: #4b5563;
    text-decoration: none; white-space: nowrap;
    border: 1px solid #eef0f4;
    box-shadow: 0 1px 3px -1px rgba(17,24,39,.04);
    transition: all .15s;
}
.m-st-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 14px -6px rgba(124,58,237,.5);
    font-weight: 600;
}
.m-st-chip:active { transform: scale(.95); }

/* 结果数 */
.m-st-count {
    padding: 0 14px 10px;
    font-size: 12px; color: #9ca3af;
}

/* 店铺 2 列网格 */
.m-st-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 14px;
}

/* 店铺卡片 */
.m-st-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 16px -6px rgba(17,24,39,.10);
    transition: transform .2s ease, box-shadow .2s ease;
}
.m-st-card:active {
    transform: translateY(2px) scale(.97);
    box-shadow: 0 2px 8px -4px rgba(17,24,39,.10);
}

/* Banner 渐变 */
.m-st-card-banner {
    height: 72px;
    position: relative;
    overflow: hidden;
}
.m-st-card-shine {
    position: absolute;
    top: -40px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 60%);
    pointer-events: none;
}

/* Logo 悬浮 */
.m-st-card-logo {
    position: absolute;
    top: 44px; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(17,24,39,.18), 0 0 0 3px #fff;
    z-index: 2;
}
.m-st-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-st-card-logo-mark {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
}

/* 内容区 */
.m-st-card-body {
    padding: 40px 12px 14px;
    text-align: center;
}
.m-st-card-name {
    font-size: 13.5px; font-weight: 700; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -.1px;
    line-height: 1.3;
}
.m-st-card-meta {
    font-size: 11px; color: #9ca3af;
    margin-top: 5px;
    display: flex; align-items: center; justify-content: center;
    gap: 4px; flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.m-st-card-meta .dot { opacity: .5; }
.m-st-card-sales {
    font-size: 10.5px; color: #f59e0b;
    font-weight: 600;
    margin-top: 4px;
}

/* 右上角箭头 */
.m-st-card-arrow {
    position: absolute;
    top: 10px; right: 12px;
    font-size: 18px;
    color: rgba(255,255,255,.85);
    font-weight: 300;
    line-height: 1;
}

/* 小屏 */
@media (max-width: 340px) {
    .m-st-grid { gap: 8px; padding: 0 10px; }
    .m-st-card-name { font-size: 12.5px; }
}

/* ============================================================
   公告跑马灯 · 手机端
   ============================================================ */
.m-announce-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.m-announce-text > span {
    display: inline-block;
    white-space: nowrap;
}
.m-announce-text.is-marquee > span {
    padding-left: 100%;
    animation: mMqMarquee 25s linear infinite;
}
@keyframes mMqMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 公告跑马灯 · 手机端速度优化 */
.m-announce-text.is-marquee > span {
    animation-duration: 18s !important;
}
.m-announce-text.is-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,247,237,.95));
    pointer-events: none;
}

/* ---- 积分签到卡片 ---- */
.m-pt-checkin {
    margin: 12px 15px 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 6px 16px rgba(99,102,241,.25);
}
.m-pt-checkin-title { font-size: 15px; font-weight: 700; }
.m-pt-checkin-sub { font-size: 12px; opacity: .9; margin-top: 4px; }
.m-pt-checkin-btn {
    background: #fff;
    color: #6366f1;
    border: 0;
    border-radius: 20px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s;
}
.m-pt-checkin-btn:active { transform: scale(.96); }
.m-pt-checkin-btn:disabled {
    background: rgba(255,255,255,.35);
    color: #fff;
    cursor: not-allowed;
}

/* ---- 积分商城 ---- */
.m-ps-hero {
    margin: 0 15px 15px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 6px 16px rgba(245,158,11,.25);
}
.m-ps-hero-label { font-size: 13px; opacity: .9; }
.m-ps-hero-value { font-size: 42px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; }
.m-ps-hero-sub { font-size: 12px; opacity: .85; }
.m-ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 15px; }
.m-ps-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.m-ps-card.is-sold { opacity: .65; }
.m-ps-icon { aspect-ratio: 1; background: linear-gradient(135deg, #eef2ff, #f5f3ff); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.m-ps-icon img { width: 100%; height: 100%; object-fit: cover; }
.m-ps-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.m-ps-name { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.3; }
.m-ps-desc { font-size: 11.5px; color: #6b7280; line-height: 1.4; }
.m-ps-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid #f9fafb; }
.m-ps-points { font-size: 11.5px; color: #6b7280; }
.m-ps-points b { color: #f59e0b; font-size: 16px; font-weight: 800; }
.m-ps-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.m-ps-badge.gray { background: #e5e7eb; color: #6b7280; }
.m-ps-badge.info { background: #dbeafe; color: #1e40af; }
.m-ps-badge.warn { background: #fef3c7; color: #92400e; }
.m-ps-btn { width: 100%; padding: 8px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; margin-top: 4px; }
.m-ps-btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.m-ps-btn:not(:disabled):active { transform: scale(.97); }
.m-ps-empty { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 14px; }
.m-ps-empty p { margin-top: 12px; }
.m-ps-actions { display: flex; justify-content: space-between; padding: 20px 15px 0; font-size: 13px; }
.m-ps-link { color: #6366f1; text-decoration: none; font-weight: 600; }

/* ---- 兑换记录 ---- */
.m-pe-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-pe-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
.m-pe-back { font-size: 12.5px; color: #6366f1; text-decoration: none; }
.m-pe-list { padding: 12px 15px; display: flex; flex-direction: column; gap: 10px; }
.m-pe-card { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #f3f4f6; }
.m-pe-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-pe-name { font-size: 14px; font-weight: 700; color: #111827; flex: 1; }
.m-pe-points { font-size: 12.5px; color: #ef4444; font-weight: 700; }
.m-pe-time { font-size: 11.5px; color: #9ca3af; margin-top: 4px; }
.m-pe-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f9fafb; }
.m-pe-btn { display: inline-block; background: #6366f1; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 8px; text-decoration: none; }
.m-pe-empty { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 14px; }
.m-pe-empty p { margin-top: 12px; }

/* ---- 积分页入口 ---- */
.m-pt-entry { margin: 12px 15px 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f3f4f6; }
.m-pt-entry-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #1f2937; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f9fafb; }
.m-pt-entry-link:last-child { border-bottom: 0; }
.m-pt-entry-arrow { color: #9ca3af; font-size: 16px; }

/* ---- 分销中心（补充） ---- */
.m-dist-actions {
    display: flex;
    gap: 10px;
    padding: 12px 15px 0;
}
.m-dist-action {
    flex: 1;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}
.m-dist-action:active { background: #f9fafb; }
.m-dist-hero-sub {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 12px;
    opacity: .9;
    margin-top: 8px;
}
.m-dist-apply-btn {
    display: inline-block;
    margin-top: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* 申请页 */
.m-dist-form-wrap { padding: 20px 15px; }
.m-dist-form-wrap h2 { font-size: 20px; margin: 0 0 8px; color: #111827; }
.m-dist-form-intro { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 20px; }
.m-dist-form label { display: block; margin-bottom: 14px; }
.m-dist-form label span { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 600; }
.m-dist-form input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.m-dist-form input:focus { outline: none; border-color: #6366f1; }
.m-dist-submit { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; margin-top: 10px; }

/* 佣金明细 */
.m-dc-head { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-dc-back { color: #6366f1; text-decoration: none; font-size: 13px; }
.m-dc-head h3 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.m-dc-hero { display: flex; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; margin: 12px 15px; border-radius: 14px; overflow: hidden; }
.m-dc-hero-item { flex: 1; padding: 18px; text-align: center; }
.m-dc-hero-item:first-child { border-right: 1px solid rgba(255,255,255,.2); }
.m-dc-hero-label { font-size: 12px; opacity: .85; }
.m-dc-hero-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.m-dc-withdraw-box { background: #fff; margin: 12px 15px; padding: 16px; border-radius: 12px; border: 1px solid #f3f4f6; }
.m-dc-withdraw-box h4 { margin: 0 0 12px; font-size: 14px; color: #111827; }
.m-dc-withdraw-box label { display: block; margin-bottom: 10px; }
.m-dc-withdraw-box label span { display: block; font-size: 12.5px; color: #374151; margin-bottom: 5px; font-weight: 600; }
.m-dc-withdraw-box input,
.m-dc-withdraw-box select { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.m-dc-submit { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; font-size: 14px; font-family: inherit; margin-top: 4px; }
.m-dc-tip { text-align: center; font-size: 11.5px; color: #9ca3af; margin-top: 8px; }
.m-dc-section { padding: 0 15px; margin-top: 20px; }
.m-dc-section h3 { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 10px; }
.m-dc-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; background: #fff; border-radius: 10px; margin-bottom: 8px; border: 1px solid #f3f4f6; }
.m-dc-row-info { flex: 1; min-width: 0; }
.m-dc-row-title { font-size: 13px; color: #1f2937; }
.m-dc-row-time { font-size: 11.5px; color: #9ca3af; margin-top: 4px; }
.m-dc-row-amount { font-size: 15px; font-weight: 800; color: #22c55e; margin-left: 10px; }
.m-dc-empty { text-align: center; color: #9ca3af; padding: 24px 0; font-size: 13px; }

/* 海报页 */
.m-dp-head { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-dp-back { color: #6366f1; text-decoration: none; font-size: 13px; }
.m-dp-head h3 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.m-dp-poster { margin: 20px 15px; background: linear-gradient(180deg, #6366f1, #8b5cf6); border-radius: 16px; padding: 20px; box-shadow: 0 10px 28px rgba(99,102,241,.3); }
.m-dp-poster-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.m-dp-logo-placeholder { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #6366f1; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.m-dp-poster-brand img { width: 28px; height: 28px; border-radius: 50%; }
.m-dp-poster-body { background: #fff; border-radius: 12px; padding: 20px; text-align: center; }
.m-dp-poster-title { font-size: 16px; font-weight: 800; color: #111827; }
.m-dp-poster-sub { font-size: 12px; color: #6b7280; margin: 6px 0 16px; }
.m-dp-qr { display: flex; justify-content: center; margin-bottom: 12px; }
.m-dp-qr img, .m-dp-qr canvas { border-radius: 8px; }
.m-dp-code { font-size: 12px; color: #6366f1; font-weight: 700; }
.m-dp-actions { padding: 0 15px; }
.m-dp-btn { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #6366f1; color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; }

/* ---- 订单时间轴（手机端） ---- */
.m-ord-timeline {
    background: #fff;
    margin: 12px 15px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}
.m-ord-timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
}
.m-ord-tl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.m-ord-tl-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}
.m-ord-tl-item {
    position: relative;
    padding-left: 26px;
    padding-bottom: 14px;
}
.m-ord-tl-item:last-child { padding-bottom: 0; }
.m-ord-tl-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    box-sizing: border-box;
}
.m-ord-tl-body { font-size: 12.5px; }
.m-ord-tl-action { font-weight: 700; color: #111827; font-size: 13px; }
.m-ord-tl-remark { color: #6b7280; margin-top: 3px; line-height: 1.5; }
.m-ord-tl-time { color: #9ca3af; font-size: 11.5px; margin-top: 3px; }

/* ---- 退款申请页 ---- */
.m-rff-head { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.m-rff-back { color: #6366f1; text-decoration: none; font-size: 13px; }
.m-rff-head h3 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.m-rff-pending { margin: 20px 15px; padding: 20px; background: #fffbeb; border: 1px dashed #fde68a; border-radius: 12px; color: #92400e; text-align: center; font-size: 14px; }
.m-rff-summary { background: #fff; margin: 12px 15px; border-radius: 12px; padding: 16px; border: 1px solid #f3f4f6; }
.m-rff-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; padding: 6px 0; }
.m-rff-summary-row code { font-family: monospace; color: #1f2937; }
.m-rff-summary-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px dashed #f3f4f6; margin-top: 6px; }
.m-rff-summary-total span { font-size: 13px; color: #6b7280; }
.m-rff-summary-total b { font-size: 22px; color: #ef4444; font-weight: 800; }
.m-rff-summary-items { padding-top: 10px; border-top: 1px dashed #f3f4f6; }
.m-rff-item-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; color: #374151; }
.m-rff-form { margin: 12px 15px; }
.m-rff-group { margin-bottom: 16px; }
.m-rff-group > label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.m-rff-types { display: flex; gap: 10px; }
.m-rff-type { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px; border: 1.5px solid #e5e7eb; border-radius: 10px; cursor: pointer; background: #fff; }
.m-rff-type input { flex-shrink: 0; }
.m-rff-type input:checked + span b { color: #6366f1; }
.m-rff-type span { display: flex; flex-direction: column; gap: 2px; }
.m-rff-type b { font-size: 13px; color: #111827; }
.m-rff-type small { font-size: 11px; color: #9ca3af; line-height: 1.3; }
.m-rff-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; font-family: inherit; box-sizing: border-box; resize: vertical; }
.m-rff-form textarea:focus { outline: none; border-color: #6366f1; }
.m-rff-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.m-rff-thumbs img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.m-rff-add { width: 72px; height: 72px; border: 1.5px dashed #d1d5db; border-radius: 8px; background: #fafafa; font-size: 24px; color: #9ca3af; cursor: pointer; }
.m-rff-submit { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; margin-top: 10px; }
.m-rff-submit:active { transform: scale(.98); }

/* ---- 会员权益卡 ---- */
.m-pt-benefits {
    margin: 12px 15px 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    padding: 16px;
}
.m-pt-benefits-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}
.m-pt-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.m-pt-benefit {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.m-pt-benefit-icon { font-size: 22px; line-height: 1; }
.m-pt-benefit-name { font-size: 11.5px; color: #6b7280; margin-top: 6px; }
.m-pt-benefit-val { font-size: 13px; font-weight: 800; color: #4f46e5; margin-top: 2px; }

/* ============ 手机端 AI 客服弹窗（底部滑出）============ */
.m-ai-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:10009;opacity:0;pointer-events:none;transition:opacity .25s;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.m-ai-mask.open{opacity:1;pointer-events:auto}
.m-ai-sheet{position:fixed;left:0;right:0;bottom:0;height:88vh;max-height:88vh;background:#fff;border-radius:22px 22px 0 0;z-index:10010;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s cubic-bezier(.3,.9,.3,1);padding-bottom:env(safe-area-inset-bottom)}
.m-ai-sheet.open{transform:translateY(0)}

.m-ai-head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:22px 22px 0 0;position:relative;flex-shrink:0}
.m-ai-head::before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);width:36px;height:4px;background:rgba(255,255,255,.35);border-radius:2px}
.m-ai-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.m-ai-info{flex:1;min-width:0;padding-top:6px}
.m-ai-title{font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-ai-sub{font-size:11.5px;opacity:.85;margin-top:2px}
.m-ai-close{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.18);border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:6px}

.m-ai-body{flex:1;overflow-y:auto;padding:14px 14px 8px;background:#f9fafb;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:10px}
.m-ai-msg{max-width:82%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.6;word-break:break-word;white-space:pre-wrap;animation:mAiMsgIn .2s ease}
@keyframes mAiMsgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.m-ai-msg.user{align-self:flex-end;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-bottom-right-radius:4px}
.m-ai-msg.assistant{align-self:flex-start;background:#fff;color:#111827;border:1px solid #eef0f4;border-bottom-left-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.m-ai-msg.typing{display:flex;gap:4px;padding:12px 16px}
.m-ai-msg.typing span{width:6px;height:6px;border-radius:50%;background:#a5b4fc;animation:mAiDot 1.2s infinite}
.m-ai-msg.typing span:nth-child(2){animation-delay:.2s}
.m-ai-msg.typing span:nth-child(3){animation-delay:.4s}
@keyframes mAiDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

.m-ai-quick{padding:8px 12px;background:#fff;border-top:1px solid #f3f4f6;display:flex;flex-wrap:wrap;gap:6px;max-height:76px;overflow-y:auto;flex-shrink:0}
.m-ai-quick::-webkit-scrollbar{display:none}
.m-ai-quick-btn{padding:6px 12px;background:#eef2ff;color:#4f46e5;border:0;border-radius:14px;font-size:12px;cursor:pointer;white-space:nowrap;font-family:inherit;line-height:1.4;transition:background .15s}
.m-ai-quick-btn:active{background:#c7d2fe;transform:scale(.96)}

.m-ai-foot{padding:10px 12px 12px;background:#fff;border-top:1px solid #f3f4f6;display:flex;gap:8px;align-items:flex-end;flex-shrink:0}
.m-ai-input{flex:1;border:1.5px solid #e5e7eb;border-radius:14px;padding:10px 14px;font-size:14px;font-family:inherit;resize:none;max-height:80px;line-height:1.5;outline:none;transition:border-color .15s;background:#f9fafb}
.m-ai-input:focus{border-color:#6366f1;background:#fff}
.m-ai-send{width:40px;height:40px;border-radius:50%;border:0;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px rgba(99,102,241,.35)}
.m-ai-send:disabled{opacity:.5}
.m-ai-send:active:not(:disabled){transform:scale(.94)}

/* ============ 移动端底部导航：PC 端隐藏 ============ */
.mobile-bottom-nav { display: none !important; }
@media (max-width: 900px) {
    .mobile-bottom-nav { display: flex !important; }
}

/* 移动端语言选择器 · 国旗 */
.mls-item .mls-flag {
    font-size: 22px;
    line-height: 1;
    margin-right: 12px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

/* 移动端语言旗帜图片 */
.mls-flag .lang-flag-img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* 手机端顶栏语言按钮旗帜 */
.m-lang-btn .lang-flag-img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
}

/* ============ 快捷登录（手机端，09-30 新增） ============ */
.social-login { margin-top: 20px; padding: 0 16px; }
.social-divider {
    position: relative;
    text-align: center;
    margin: 16px 0 14px;
}
.social-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: #e5e7eb;
}
.social-divider span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: #fff;
    color: #9ca3af;
    font-size: 12px;
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.social-btn svg { display: block; }

/* ==================================================
   ✨ NovaMall 手机端设计系统 v2（2026-09-30）
   复用 PC 变量，追加移动端专属
   ================================================== */
:root{
  --nm-grad-primary:linear-gradient(135deg,#6366f1 0,#8b5cf6 55%,#c026d3 100%);
  --nm-grad-gold:linear-gradient(135deg,#fbbf24 0,#f59e0b 60%,#d97706 100%);
  --nm-grad-mint:linear-gradient(135deg,#10b981 0,#06b6d4 100%);
  --nm-grad-fire:linear-gradient(135deg,#f43f5e 0,#ec4899 100%);
  --nm-shadow-md:0 4px 16px rgba(15,23,42,.06);
  --nm-shadow-lg:0 12px 32px rgba(15,23,42,.10);
  --nm-shadow-glow:0 12px 40px rgba(99,102,241,.35);
  --nm-ease:cubic-bezier(.2,1,.3,1);
}

/* 手机端玻璃卡 */
.m-nm-card{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--nm-shadow-md);
  border:1px solid rgba(241,245,249,.9);
  overflow:hidden;
  transition:transform .18s var(--nm-ease);
}
.m-nm-card:active{transform:scale(.985)}

/* 手机端 Hero 头 */
.m-nm-hero{
  position:relative;
  background:var(--nm-grad-primary);
  padding:20px 16px 30px;
  color:#fff;
  overflow:hidden;
}
.m-nm-hero::before{
  content:"";position:absolute;right:-40px;top:-30px;
  width:150px;height:150px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.3),transparent 70%);
}
.m-nm-hero::after{
  content:"";position:absolute;left:-50px;bottom:-40px;
  width:170px;height:170px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.14),transparent 70%);
}
.m-nm-hero > *{position:relative;z-index:1}

/* 手机端金色数字 */
.m-nm-gold{
  background:var(--nm-grad-gold);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  font-weight:900;letter-spacing:-.3px;
}

/* 手机端发光按钮 */
.m-nm-btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;padding:12px 24px;
  background:var(--nm-grad-primary);
  color:#fff;border:0;border-radius:12px;
  font-size:14px;font-weight:800;font-family:inherit;
  box-shadow:var(--nm-shadow-glow);
  cursor:pointer;
  letter-spacing:.3px;
}
.m-nm-btn:active{transform:scale(.97)}

/* 手机端徽章 */
.m-nm-badge{
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 8px;border-radius:6px;
  font-size:10px;font-weight:800;letter-spacing:.4px;
  text-transform:uppercase;
}
.m-nm-badge.hot{background:var(--nm-grad-fire);color:#fff}
.m-nm-badge.new{background:var(--nm-grad-mint);color:#fff}
.m-nm-badge.ltd{background:var(--nm-grad-gold);color:#fff}

/* 手机端撒花复用 */
.nm-confetti-wrap{position:fixed;inset:0;pointer-events:none;z-index:99999;overflow:hidden}


/* v14 zoom lock - only html, never body */
/*html{overflow-x:hidden;}*/

/* v14 kill double-tap zoom 2026-10-06 */
*,*::before,*::after{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;touch-action:manipulation;}

/* v14 overflow-x:clip - no BFC, safe for fixed 2026-10-06 */
/*html{overflow-x:clip;}*/
body{overflow-x:clip;}

/* v14 fix grid min-width 2026-10-06 */
.m-quick-nav>div{min-width:0;max-width:100%;}
.m-quick-nav a{min-width:0;max-width:100%;}
.m-quick-nav a>div:last-child{min-width:0;max-width:100%;}
