/* 商城屏幕样式 */
#shop-screen {
    background-color: #f7f7f7;
    display: none; /* 默认隐藏，由 switchScreen 控制 */
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* 确保层级正确 */
}

#shop-screen.active {
    display: flex;
}

/* 商城顶部导航 */
#shop-screen .app-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Tab 切换栏 */
.shop-tabs {
    display: flex;
    background: #fff;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    flex-shrink: 0;
}

.shop-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.shop-tab-item {
    padding: 12px 8px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.shop-tab-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.shop-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 商城内容区域 */
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

/* 促销 Banner */
.shop-banner {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.shop-banner:active {
    transform: scale(0.98);
}

.shop-banner-tag {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.shop-banner-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-banner-desc {
    font-size: 13px;
    opacity: 0.9;
}

.shop-banner-decoration {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 80px;
    opacity: 0.2;
    transform: rotate(-15deg);
}

/* 商品网格 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-bottom: 20px;
}

/* 商品卡片 */
.shop-item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.shop-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.shop-item-card.ad-item {
    border: 1px dashed #ffd700;
    background: #fffdf5;
}

.shop-item-image-box {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.shop-item-svg {
    width: 60%;
    height: 60%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.shop-item-card:hover .shop-item-svg {
    transform: scale(1.1);
}

.shop-item-ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
}

.shop-item-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-item-desc {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.shop-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff453a;
}

.shop-item-price::before {
    content: '¥';
    font-size: 12px;
    margin-right: 1px;
}

/* 线性风格购买按钮 */
.shop-item-buy-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.shop-item-buy-btn:active {
    background-color: #f5f5f5;
    transform: scale(0.9);
}

/* 加载状态 - 骨架屏 */
.shop-loading-skeleton {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.skeleton-banner {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
}

.skeleton-text {
    height: 14px;
    background: #f0f0f0;
    border-radius: 4px;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

/* 骨架屏扫光动画 */
.skeleton-banner::after,
.skeleton-img::after,
.skeleton-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

.skeleton-banner, .skeleton-img, .skeleton-text {
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* 配送方式弹窗 */
.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.delivery-option-card {
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option-card:hover {
    background: #f0f0f0;
}

.delivery-option-card.active {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.delivery-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.delivery-info {
    flex: 1;
}

.delivery-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
}

.delivery-desc {
    font-size: 12px;
    color: #888;
}

/* 占位状态 */
.shop-empty-state {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.shop-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 商城订单卡片样式 */
.shop-order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 250px;
    overflow: visible; /* 允许时间戳显示在外部 */
    position: relative; /* 确保时间戳定位正确 */
    font-family: 'Poppins', sans-serif;
    border: 1px solid #f0f0f0;
}

.shop-order-header {
    background: var(--primary-color, #ff9a9e);
    color: #fff;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.shop-order-divider {
    height: 1px;
    background: repeating-linear-gradient(to right, #eee 0, #eee 5px, transparent 5px, transparent 10px);
}

.shop-order-body {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-order-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-order-info {
    flex: 1;
    min-width: 0; /* 允许文本溢出省略 */
}

.shop-order-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-order-delivery {
    font-size: 12px;
    color: #888;
}

.shop-order-footer {
    padding: 10px 15px;
    background: #fcfcfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.shop-order-price {
    font-weight: 700;
    color: #ff453a;
}

.shop-order-status {
    color: #4cd964;
    background: rgba(76, 217, 100, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* =========================================
   购物车 UI (Ins风极简毛玻璃胶囊)
   ========================================= */

/* 1. 悬浮胶囊 */
.shop-cart-fab {
    position: absolute;
    bottom: 30px;
    right: 20px;
    height: 54px;
    min-width: 54px;
    padding: 0 16px; /* 默认 padding，圆形时会调整 */
    border-radius: 27px;
    
    /* 毛玻璃背景 */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* 极细边框和柔和阴影 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.02);
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #333;
    overflow: hidden;
}

/* 无商品时保持圆形/小胶囊 */
.shop-cart-fab:not(.has-items) {
    padding: 0;
    width: 54px;
}

.shop-cart-fab:active {
    transform: scale(0.96);
    background-color: rgba(255, 255, 255, 0.95);
}

.shop-cart-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.shop-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-icon svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a; /* 深黑 */
    stroke-width: 1.5px;
}

/* 价格组 (展开时显示) */
.shop-cart-price-group {
    display: flex;
    align-items: center;
    margin-left: 0;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shop-cart-fab.has-items .shop-cart-price-group {
    margin-left: 12px;
    opacity: 1;
    max-width: 100px; /* 足够显示价格 */
}

.shop-cart-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-right: 12px;
}

.shop-cart-total {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* 角标 (极简小红点) */
.shop-cart-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ff3b30;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
    /* 隐藏数字，只显示红点，或者如果需要数字，可以调整样式 */
    color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

/* 如果有商品，角标位置微调 */
.shop-cart-fab.has-items .shop-cart-badge {
    right: auto;
    left: 34px; /* 定位在图标右上角 */
    top: 14px;
}

/* 购物车数字跳动动画 */
.shop-cart-badge.bump {
    animation: bump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 2. 遮罩层 */
.shop-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 变淡 */
    backdrop-filter: blur(2px); /* 模糊背景 */
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.shop-cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 3. 购物车面板 (Bottom Sheet) */
.shop-cart-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80%;
    background-color: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 210;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.shop-cart-panel.active {
    transform: translateY(0);
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
}

.cart-clear-btn {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    font-weight: 400;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    min-height: 150px;
}

.cart-empty-tip {
    text-align: center;
    color: #ccc;
    padding: 40px 0;
    font-size: 14px;
}

.cart-item-row {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-name {
    flex: 1;
    font-size: 15px;
    color: #333;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-weight: 600;
    color: #333;
    margin-right: 20px;
    font-size: 15px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-ctrl-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.cart-ctrl-btn:active {
    background-color: #f5f5f5;
}

.cart-ctrl-btn.plus {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.cart-item-qty {
    font-size: 15px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.cart-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.cart-checkout-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.cart-checkout-btn:active {
    transform: scale(0.98);
}

.cart-checkout-btn:disabled {
    background-color: #f0f0f0;
    color: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* =========================================
   聊天界面 - 小票风格气泡 (Receipt UI)
   ========================================= */

.receipt-bubble {
    background-color: #fff;
    width: 180px;
    padding: 0;
    margin: 0 8px;
    position: relative;
    /* 模拟小票锯齿边缘 */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    font-family: 'Courier New', Courier, monospace; /* 等宽字体感 */
    color: #333;
    overflow: hidden;
    /* 通过 mask 或 background 实现锯齿比较复杂，这里用简单的 border-radius 和虚线模拟 */
    border-radius: 6px; 
}

/* 顶部装饰条 */
.receipt-header {
    text-align: center;
    padding: 10px 10px 10px;
    border-bottom: 2px dashed #e0e0e0;
}

.receipt-brand {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.receipt-id {
    font-size: 10px;
    color: #999;
}

/* 商品列表区 */
.receipt-items {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    line-height: 1.4;
}

.receipt-item-name {
    flex: 0 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 5px;
}

/* 虚线连接符 */
.receipt-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 4px;
    height: 1em;
    opacity: 0.5;
    min-width: 10px;
}

.receipt-item-qty {
    font-weight: bold;
    margin-left: 5px;
}

/* 汇总区 */
.receipt-total-section {
    padding: 10px 15px;
    border-top: 1.5px solid #333; /* 实线强调 */
    border-bottom: 1.5px solid #333;
    margin: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.receipt-total-label {
    font-weight: 900;
    font-size: 14px;
}

.receipt-total-price {
    font-weight: 900;
    font-size: 18px;
}

/* 底部信息 */
.receipt-footer {
    padding: 10px 15px 2px 15px;
    font-size: 10px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receipt-delivery-info {
    display: flex;
    justify-content: space-between;
}

/* 底部锯齿装饰 (使用 radial-gradient 模拟) */
.receipt-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, transparent 50%, #fff 55%) 0 0;
    background-size: 10px 10px;
    transform: rotate(180deg);
}

/* 调整容器的 padding-bottom 以适应锯齿 */
.receipt-bubble {
    padding-bottom: 10px;
}

/* 代付请求小票样式 */
.receipt-bubble.pay-request .receipt-header {
    /* border-bottom: 2px solid #333; Removed to match standard receipt style */
}

.receipt-bubble.pay-request .receipt-brand {
    color: #333;
}

/* 新的状态图标 (SVG) - 替代印章 */
.receipt-status-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    color: #333; /* 深灰/黑，非语义色 */
    opacity: 0.6;
    pointer-events: none;
}

/* 支付状态文字 */
.pay-status-text {
    font-weight: 600;
    color: #333;
}

/* 代付请求操作按钮 */
.receipt-actions {
    display: flex;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.receipt-action-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.receipt-action-btn:first-child {
    border-right: 1px solid #eee;
    color: #4cd964;
}

.receipt-action-btn:last-child {
    color: #ff3b30;
}

.receipt-action-btn:hover {
    background-color: #f9f9f9;
}

/* 自提口令显示 */
.receipt-pickup-code {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    letter-spacing: 1px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 4px;
}

/* Action Sheet Overlay */
.action-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.action-sheet-overlay.visible {
    display: flex;
}

.action-sheet {
    background-color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUp 0.3s ease-out;
}

.action-sheet-button {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background-color: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.action-sheet-button.danger {
    color: #ff3b30;
    background-color: #fff;
}

/* 修复模态框层级问题 */
#shop-category-manage-modal {
    z-index: 300; /* 高于购物车悬浮球 (200) */
}

/* ===================== 收件人 / 我的物品 ===================== */
.shop-bag-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #ff5a5f;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 结账：买给谁 */
.shop-rcp-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: none;
}
.shop-rcp-list::-webkit-scrollbar { display: none; }
.shop-rcp {
    flex: none;
    width: 58px;
    text-align: center;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s ease;
}
.shop-rcp span {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-rcp.active {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 600;
}
.shop-rcp-avatar {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: hidden;
    background: #eee;
}
.shop-rcp.active .shop-rcp-avatar { border-color: var(--primary-color); }
.shop-rcp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-rcp-self {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #888;
    background: #f1f1f1;
}
.shop-rcp.active .shop-rcp-self { color: var(--primary-color); }
.shop-self-note {
    font-size: 13px;
    color: #888;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* 我的物品 / 选角色 弹层（层级低于钱包的支付弹层 100002） */
.sb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 20, 30, .42);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sb-overlay.sb-top { z-index: 100002; }
.sb-sheet {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    max-height: 80%;
    overflow-y: auto;
}
.sb-sheet.sb-tall { min-height: 55%; }
.sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sb-title { font-size: 16px; font-weight: 600; color: #333; text-align: center; margin-bottom: 12px; }
.sb-head .sb-title { text-align: left; }
.sb-close { padding: 4px 8px; color: #999; cursor: pointer; font-size: 16px; }
.sb-list { display: flex; flex-direction: column; gap: 4px; }
.sb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f2f2f2;
}
.sb-ic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f6f6f6;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-ic svg { width: 24px; height: 24px; }
.sb-info { flex: 1; min-width: 0; }
.sb-name { font-size: 14px; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-desc { font-size: 12px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-meta { font-size: 11px; color: #bbb; margin-top: 3px; }
.sb-side { flex: none; text-align: right; }
.sb-qty { font-size: 13px; color: #666; font-weight: 600; margin-bottom: 6px; }
.sb-acts { display: flex; gap: 6px; }
.sb-mini {
    border: 0;
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
}
.sb-mini.ghost { background: #f1f1f1; color: #666; }
.sb-empty { text-align: center; color: #aaa; font-size: 13px; line-height: 1.8; padding: 50px 0; }
.sb-pick-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.sb-pick-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.sb-pick-row:active { background: #f5f5f5; }
.sb-pick-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #eee; }
.sb-btn { width: 100%; border: 0; border-radius: 12px; padding: 11px; font-size: 14px; cursor: pointer; background: var(--primary-color); color: #fff; }
.sb-btn.ghost { background: #f1f1f1; color: #666; }

/* ===================== 商城 v3：黑白灰 ===================== */
#shop-screen .app-header { gap: 6px; padding-left: 10px; padding-right: 10px; }

/* 搜索栏 */
.shop-search-bar {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 3px 0 13px;
    box-sizing: border-box;
    border-radius: 18px;
    background: #f2f2f2;
    border: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.shop-search-bar svg { width: 15px; height: 15px; flex: none; color: #a8a8a8; stroke: currentColor; }
.shop-search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
}
.shop-search-bar input::placeholder { color: #b0b0b0; }
.shop-search-bar input::-webkit-search-cancel-button { display: none; }
.shop-search-clear { color: #bdbdbd; font-size: 12px; padding: 2px 4px; cursor: pointer; }
.shop-search-go {
    flex: none;
    height: 30px;
    padding: 0 15px;
    border: 0;
    border-radius: 15px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    cursor: pointer;
}
.shop-search-cancel {
    display: none;
    border: 0;
    background: none;
    color: #777;
    font-size: 14px;
    padding: 0 6px;
    cursor: pointer;
    white-space: nowrap;
}
#shop-screen.searching .shop-search-cancel { display: block; }
#shop-screen.searching #shop-header-actions,
#shop-screen.searching .shop-tabs { display: none; }

/* 分类标签 */
#shop-screen .shop-tabs { padding: 0 8px; border-bottom: 0; box-shadow: 0 1px 0 #efefef; }
#shop-screen .shop-tab-item { padding: 12px 11px 13px; font-size: 15px; color: #a6a6a6; font-weight: 500; letter-spacing: .3px; }
#shop-screen .shop-tab-item.active { color: #111; font-weight: 700; }
#shop-screen .shop-tab-item.active::after { width: 14px; height: 2px; bottom: 5px; background-color: #111; }

/* 内容区 */
#shop-content-container { padding: 10px 10px 90px; background: #f5f5f5; }

/* 活动横幅：深色 */
#shop-content-container .shop-banner {
    height: auto;
    min-height: 84px;
    margin-bottom: 10px;
    padding: 15px 96px 15px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #141414 0%, #3d3d3d 100%);
    box-shadow: none;
    box-sizing: border-box;
}
#shop-content-container .shop-banner > * { position: relative; }
#shop-content-container .shop-banner-tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 1px 7px;
    margin-bottom: 7px;
}
#shop-content-container .shop-banner-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; text-shadow: none; letter-spacing: .3px; }
#shop-content-container .shop-banner-desc { font-size: 12px; opacity: .65; }
.shop-banner-go {
    position: absolute !important;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #111;
    padding: 6px 13px;
    border-radius: 14px;
}

/* 瀑布流 */
.shop-waterfall { display: flex; gap: 8px; align-items: flex-start; }
.shop-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.shop-feed-foot { text-align: center; color: #bbb; font-size: 12px; padding: 18px 0 6px; min-height: 20px; }
.shop-feed-foot.is-btn {
    display: block;
    width: fit-content;
    margin: 16px auto 6px;
    padding: 9px 28px;
    border: 1px solid #d6d6d6;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
.shop-feed-foot.is-btn:active { background: #f0f0f0; }

/* 商品卡片：白底 + 发丝线，纯文字 */
.sc-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    cursor: pointer;
    transition: transform .15s ease;
}
.sc-card:active { transform: scale(.985); }
.sc-main { padding: 11px 11px 10px; }
.sc-badges { margin-bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.sc-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; line-height: 1.5; letter-spacing: .3px; }
.sc-badge.wanted { color: #fff; background: #111; }
.sc-badge.ad { color: #999; background: #f0f0f0; font-weight: 500; }
.sc-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    letter-spacing: .2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-desc {
    font-size: 11.5px;
    color: #8c8c8c;
    margin-top: 3px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.sc-tag { font-size: 10px; color: #7a7a7a; border: 1px solid #e2e2e2; padding: 0 5px; border-radius: 3px; line-height: 1.6; }
.sc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.sc-price { color: #111; font-weight: 700; line-height: 1; }
.sc-yen { font-size: 11px; margin-right: 1px; font-weight: 600; }
.sc-int { font-size: 19px; letter-spacing: -.3px; }
.sc-dec { font-size: 12px; }
.sc-price s { font-size: 10.5px; color: #bdbdbd; font-weight: 400; margin-left: 5px; }
.sc-add {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-add:active { transform: scale(.9); }
.sc-shop {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #f2f2f2;
    font-size: 10.5px;
    color: #aaa;
}
.sc-mono {
    flex: none;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-shopname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-sales { flex: none; }

/* 搜索主页 */
.ss-home { padding: 4px 0; }
.ss-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #888; margin: 14px 0 10px; }
.ss-clear { color: #bbb; cursor: pointer; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip { background: #fff; color: #444; font-size: 13px; padding: 6px 14px; border-radius: 16px; border: 1px solid #ececec; cursor: pointer; }
.ss-chip:active { background: #ececec; }
.ss-tip { margin-top: 26px; font-size: 12px; color: #cfcfcf; text-align: center; }

/* 空状态按钮 */
#shop-content-container .shop-empty-state .btn-primary { background: #111; color: #fff; border-color: #111; }

/* 商品详情页 */
.sd-page {
    position: absolute;
    inset: 0;
    z-index: 250;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.sd-top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom: 1px solid #f2f2f2;
}
.sd-back { width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: #111; cursor: pointer; }
.sd-top-title { font-size: 16px; font-weight: 600; color: #111; }
.sd-scroll { flex: 1; overflow-y: auto; }
.sd-hero { position: relative; width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sd-hero-mark { font-size: 100px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .85); }
.sd-body { padding: 16px 18px 24px; }
.sd-price-row { display: flex; align-items: flex-end; justify-content: space-between; }
.sd-price-wrap .sc-yen { font-size: 15px; }
.sd-price-wrap .sc-int { font-size: 28px; }
.sd-price-wrap .sc-dec { font-size: 16px; }
.sd-price-wrap .sc-price s { font-size: 12px; }
.sd-sales { font-size: 12px; color: #aaa; }
.sd-name { font-size: 17px; font-weight: 600; color: #111; line-height: 1.4; margin-top: 10px; }
.sd-desc { font-size: 13px; color: #8c8c8c; margin-top: 6px; line-height: 1.5; }
.sd-shop { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; background: #f6f6f6; border-radius: 10px; }
.sd-shop-ic { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #555; }
.sd-shop-name { font-size: 14px; font-weight: 600; color: #111; }
.sd-shop-sub { font-size: 11px; color: #aaa; margin-top: 2px; }
.sd-section { margin-top: 20px; }
.sd-sec-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 10px; }
.sd-skus { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-sku { padding: 6px 14px; border-radius: 16px; background: #f3f3f3; color: #555; font-size: 13px; border: 1px solid transparent; cursor: pointer; }
.sd-sku.active { background: #fff; color: #111; border-color: #111; font-weight: 600; }
.sd-intro { font-size: 13px; color: #666; line-height: 1.7; }
.sd-review { padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.sd-rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sd-rv-user { font-size: 12px; color: #999; }
.sd-rv-stars { font-size: 12px; color: #444; letter-spacing: 1px; }
.sd-rv-text { font-size: 13px; color: #444; line-height: 1.6; }
.sd-gen { margin-top: 20px; padding: 18px 16px; border-radius: 12px; background: #f6f6f6; text-align: center; }
.sd-gen button { border: 0; border-radius: 20px; padding: 10px 22px; font-size: 14px; font-weight: 500; background: #111; color: #fff; cursor: pointer; }
.sd-gen p { margin: 10px 0 0; font-size: 11.5px; color: #b0b0b0; }
.sd-bar {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f2f2f2;
    background: #fff;
}
.sd-btn { flex: 1; border: 0; border-radius: 22px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; background: #111; color: #fff; }
.sd-btn.ghost { background: #f2f2f2; color: #111; }

/* ===== 其余商城界面统一成黑白灰（覆盖前面用主题色的地方） ===== */
.shop-bag-badge { background: #111; box-shadow: 0 0 0 2px #fff; }
.shop-cart-badge { background-color: #111; }
.delivery-option-card.active { border-color: #111; }
.shop-rcp.active { color: #111; }
.shop-rcp.active .shop-rcp-avatar { border-color: #111; }
.shop-rcp.active .shop-rcp-self { color: #111; }
#shop-delivery-modal .btn-primary,
#shop-pickup-modal .btn-primary,
#shop-category-manage-modal .btn-primary { background: #111; color: #fff; border-color: #111; }
.sb-ic { color: #111; background: #f4f4f4; }
.sb-mono { font-size: 18px; font-weight: 700; color: #111; }
.sb-mini { background: #111; color: #fff; }
.sb-mini.ghost { background: #f1f1f1; color: #666; }
.sb-btn { background: #111; color: #fff; }
.sb-btn.ghost { background: #f1f1f1; color: #666; }

/* ===================== 商城 v4：弹窗黑白灰 / 「我的」页面 / 订单 ===================== */
#shop-delivery-modal .modal-window h3,
#shop-pickup-modal .modal-window h3,
#shop-category-manage-modal .modal-window h3 { color: #111; }
.delivery-icon { font-size: 0; color: #111; }
.delivery-icon svg { width: 20px; height: 20px; }

/* 「我的」整页 */
.sm-page {
    position: absolute;
    inset: 0;
    z-index: 260;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}
.sm-page .sd-top { background: #fff; }
.sm-scroll { flex: 1; overflow-y: auto; padding: 10px 12px 0; }

.sm-hero {
    background: linear-gradient(135deg, #141414 0%, #3a3a3a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 18px 18px 16px;
}
.sm-user { display: flex; align-items: center; gap: 12px; }
.sm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex: none;
}
.sm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-uname { font-size: 16px; font-weight: 600; }
.sm-usub { font-size: 11.5px; opacity: .55; margin-top: 2px; }
.sm-total-label { font-size: 12px; opacity: .55; margin-top: 20px; letter-spacing: .5px; }
.sm-total { font-size: 34px; font-weight: 700; letter-spacing: -.5px; margin-top: 4px; line-height: 1.1; }
.sm-total small { font-size: 16px; font-weight: 600; margin-right: 2px; opacity: .8; }
.sm-sub-row { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sm-sub-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sm-sub-row span { font-size: 11px; opacity: .5; }
.sm-sub-row b { font-size: 15px; font-weight: 600; white-space: nowrap; }

.sm-card { background: #fff; border-radius: 14px; padding: 14px 14px 10px; margin-top: 10px; }
.sm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #111; }
.sm-link { font-size: 12px; color: #999; font-weight: 400; cursor: pointer; }
.sm-dim { font-size: 11px; color: #bbb; font-weight: 400; }
.sm-empty { text-align: center; color: #b5b5b5; font-size: 12.5px; line-height: 1.8; padding: 22px 0 18px; }

.sm-entries { display: flex; padding: 4px 0 8px; }
.sm-entry { flex: 1; text-align: center; cursor: pointer; }
.sm-entry b { display: block; font-size: 20px; font-weight: 700; color: #111; line-height: 1.2; }
.sm-entry span { font-size: 11.5px; color: #999; }
.sm-entry:active { opacity: .6; }

/* 进度条 */
.sm-bar { height: 4px; border-radius: 2px; background: #ececec; overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: #111; border-radius: 2px; transition: width .6s ease; }
.sm-bar.light { background: rgba(255, 255, 255, .2); }
.sm-bar.light i { background: #fff; }

.sm-live { padding: 12px 0; border-top: 1px solid #f4f4f4; cursor: pointer; }
.sm-live-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sm-live-name { font-size: 13px; font-weight: 600; color: #111; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-live-st { font-size: 12px; font-weight: 600; color: #111; flex: none; }
.sm-live-sub { font-size: 11.5px; color: #999; margin-top: 7px; line-height: 1.4; }

/* 消费统计 */
.sm-chart { display: flex; gap: 8px; align-items: flex-end; height: 130px; padding: 4px 2px 0; }
.sm-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.sm-amt { font-size: 10px; color: #999; height: 14px; white-space: nowrap; }
.sm-barwrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sm-barwrap i { display: block; width: 60%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: #e2e2e2; }
.sm-barwrap i.cur { background: #111; }
.sm-mlabel { font-size: 11px; color: #aaa; margin-top: 6px; }
.sm-mlabel.cur { color: #111; font-weight: 600; }
.sm-split-title { font-size: 12px; color: #888; margin: 18px 0 10px; }
.sm-split { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.sm-split-name { width: 56px; flex: none; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-split-bar { flex: 1; height: 6px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.sm-split-bar i { display: block; height: 100%; background: #111; border-radius: 3px; }
.sm-split-amt { flex: none; min-width: 64px; text-align: right; color: #111; font-weight: 600; }

/* 订单列表 */
.sm-tabs { display: flex; gap: 4px; background: #fff; border-radius: 12px; padding: 4px; }
.sm-tab { flex: 1; text-align: center; font-size: 13px; color: #999; padding: 8px 0; border-radius: 9px; cursor: pointer; }
.sm-tab.active { background: #111; color: #fff; font-weight: 600; }
.sm-orders { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sm-order { background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; }
.sm-o-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sm-o-who { font-size: 12.5px; color: #666; }
.sm-o-st { font-size: 12.5px; font-weight: 600; color: #111; }
.sm-o-st.done { color: #aaa; font-weight: 500; }
.sm-o-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sm-o-mono {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #555;
}
.sm-o-info { flex: 1; min-width: 0; }
.sm-o-name { font-size: 13px; font-weight: 600; color: #111; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-o-desc { font-size: 11.5px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-o-pq { flex: none; text-align: right; font-size: 12px; color: #555; }
.sm-o-pq div:last-child { color: #aaa; margin-top: 3px; }
.sm-o-sum { text-align: right; font-size: 12px; color: #888; margin: 8px 0 2px; }
.sm-o-sum b { font-size: 15px; color: #111; margin-left: 2px; }
.sm-o-eta { font-size: 11.5px; color: #999; margin-top: 7px; }
.sm-o-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.sm-btn { border: 0; border-radius: 16px; padding: 7px 16px; font-size: 12.5px; font-weight: 500; background: #111; color: #fff; cursor: pointer; }
.sm-btn.ghost { background: #fff; color: #444; border: 1px solid #d9d9d9; }

/* 订单详情 */
.sm-status { background: linear-gradient(135deg, #141414 0%, #3a3a3a 100%); color: #fff; border-radius: 16px; padding: 20px 18px; }
.sm-status-label { font-size: 22px; font-weight: 700; }
.sm-status-sub { font-size: 12.5px; opacity: .6; margin: 6px 0 14px; }
.sm-status .sm-bar { margin-top: 2px; }
.sm-tl { padding: 2px 0 4px; }
.sm-tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.sm-tl-item:last-child { padding-bottom: 4px; }
.sm-tl-item i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; margin-top: 5px; position: relative; z-index: 1; }
.sm-tl-item::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 1px; background: #e6e6e6; }
.sm-tl-item:last-child::before { display: none; }
.sm-tl-item.now i { background: #111; box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.sm-tl-item.next i { background: #fff; border: 1.5px solid #bbb; box-sizing: border-box; }
.sm-tl-item.next .sm-tl-text { color: #aaa; }
.sm-tl-text { font-size: 13px; color: #555; line-height: 1.5; }
.sm-tl-item.now .sm-tl-text { color: #111; font-weight: 600; }
.sm-tl-sub { font-size: 11.5px; color: #999; margin-top: 2px; }
.sm-tl-time { font-size: 11px; color: #bbb; margin-top: 3px; }
.sm-info-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12.5px; color: #888; }
.sm-info-row b { color: #222; font-weight: 500; text-align: right; margin-left: 20px; word-break: break-all; }
.sm-detail-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* ===================== 商城 v5：签到 / 优惠券 / 折叠 / 确认收货 ===================== */
.shop-bag-badge.is-dot { min-width: 0; width: 9px; height: 9px; padding: 0; top: 3px; right: 1px; display: block; }

/* 结算：优惠券行 + 应付金额 */
.shop-coupon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    background: #f6f6f6;
    border-radius: 12px;
    cursor: pointer;
}
.shop-coupon-label { font-size: 14px; font-weight: 600; color: #111; }
.shop-coupon-text { flex: 1; text-align: right; font-size: 13px; color: #999; }
.shop-coupon-text.has { color: #111; font-weight: 600; }
.shop-coupon-arrow { color: #bbb; font-size: 16px; }
.shop-pay-summary { margin-top: 12px; padding: 0 4px; }
.shop-pay-summary > div { display: flex; justify-content: space-between; font-size: 12.5px; color: #888; padding: 3px 0; }
.shop-pay-summary > div.pay { font-size: 15px; font-weight: 700; color: #111; padding-top: 6px; }

/* 签到卡 */
.sm-days { display: flex; gap: 6px; }
.sm-day { flex: 1; text-align: center; border-radius: 10px; padding: 8px 0 7px; background: #f6f6f6; color: #aaa; font-size: 10.5px; border: 1px solid transparent; }
.sm-day b { display: block; font-size: 15px; color: #666; line-height: 1.3; }
.sm-day.done { background: #111; color: rgba(255, 255, 255, .55); }
.sm-day.done b { color: #fff; }
.sm-day.next { background: #fff; border-color: #111; color: #111; font-weight: 600; }
.sm-day.next b { color: #111; }
.sm-sign-btn { display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 22px; padding: 11px; font-size: 14px; font-weight: 600; background: #111; color: #fff; cursor: pointer; }
.sm-sign-btn.done { background: #f1f1f1; color: #aaa; cursor: default; }
.sm-sign-sub { text-align: center; font-size: 11px; color: #b5b5b5; margin: 10px 0 4px; }

/* 折叠 */
.sm-fold { cursor: pointer; margin-bottom: 0; }
.sm-chev { font-size: 12px; color: #999; font-weight: 400; }
.sm-chev.open { color: #111; }
.sm-fold-preview { padding: 10px 0 6px; font-size: 12px; color: #aaa; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.sm-fold + .sb-row { margin-top: 10px; }

/* 进行中订单里的确认收货 */
.sm-live-act { display: flex; justify-content: flex-end; margin-top: 10px; }

/* 优惠券票面 */
.sm-coupons { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sb-sheet .sm-coupons { margin-top: 4px; }
.sm-coupon {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #111;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.sm-coupon::before, .sm-coupon::after {
    content: '';
    position: absolute;
    left: 98px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f5f5f5;
    transform: translateX(-50%);
}
.sb-sheet .sm-coupon::before, .sb-sheet .sm-coupon::after { background: #fff; }
.sm-coupon::before { top: -7px; }
.sm-coupon::after { bottom: -7px; }
.sm-cp-left { width: 98px; flex: none; padding: 14px 6px; text-align: center; border-right: 1px dashed rgba(255, 255, 255, .28); }
.sm-cp-amt { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.sm-cp-amt small { font-size: 13px; font-weight: 600; margin: 0 1px; }
.sm-cp-cond { font-size: 10px; opacity: .6; margin-top: 5px; line-height: 1.35; }
.sm-cp-right { flex: 1; min-width: 0; padding: 14px 14px; display: flex; flex-direction: column; justify-content: center; }
.sm-cp-name { font-size: 14px; font-weight: 600; }
.sm-cp-exp { font-size: 11px; opacity: .55; margin-top: 5px; }
.sm-cp-check { position: absolute; right: 10px; top: 9px; font-size: 10px; font-weight: 600; background: #fff; color: #111; padding: 1px 7px; border-radius: 8px; }
.sm-coupon.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.sm-coupon.off { background: #e9e9e9; color: #999; }
.sm-coupon.off .sm-cp-left { border-right-color: rgba(0, 0, 0, .15); }
.sm-reward-title { text-align: center; font-size: 18px; font-weight: 700; color: #111; margin-top: 4px; }
.sm-reward-sub { text-align: center; font-size: 12.5px; color: #999; margin: 6px 0 12px; }

/* ===================== 商城 v6：签到并进大卡片 / 卡片缩小 ===================== */
.sm-scroll { padding: 8px 10px 0; }
.sm-hero { border-radius: 14px; padding: 13px 14px 11px; }
.sm-avatar { width: 36px; height: 36px; font-size: 15px; }
.sm-user-text { flex: 1; min-width: 0; }
.sm-uname { font-size: 14.5px; }
.sm-usub { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-total-label { font-size: 11px; margin-top: 12px; }
.sm-total { font-size: 27px; margin-top: 2px; }
.sm-total small { font-size: 14px; }
.sm-sub-row { margin-top: 10px; padding-top: 10px; }
.sm-sub-row span { font-size: 10.5px; }
.sm-sub-row b { font-size: 13.5px; }
.sm-hero-sign { flex: none; border: 0; border-radius: 14px; padding: 6px 13px; font-size: 12px; font-weight: 600; background: #fff; color: #111; cursor: pointer; }
.sm-hero-sign:active { transform: scale(.96); }
.sm-hero-sign.done { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); cursor: default; }
.sm-dots { display: flex; gap: 5px; margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sm-dot { flex: 1; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; box-sizing: border-box; }
.sm-dot.done { background: #fff; color: #111; }
.sm-dot.next { border: 1px solid rgba(255, 255, 255, .75); color: #fff; }
.sm-hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.sm-hero-link { color: rgba(255, 255, 255, .85); cursor: pointer; }

.sm-card { border-radius: 12px; padding: 12px 12px 8px; margin-top: 8px; }
.sm-card-head { font-size: 13.5px; margin-bottom: 8px; }
.sm-entry b { font-size: 18px; }
.sm-entries { padding: 2px 0 6px; }
.sm-status { padding: 16px 16px; border-radius: 14px; }
.sm-status-label { font-size: 20px; }

/* ===================== 商城 v7：签到 / 优惠券 都收到大卡片底部 ===================== */
.sm-dots { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sm-dots::before { content: ''; position: absolute; left: 14px; right: 14px; top: 26px; height: 1px; background: rgba(255, 255, 255, .16); }
.sm-dot { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #474747; color: rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; box-sizing: border-box; }
.sm-dot.done { background: #fff; color: #111; }
.sm-dot.next { background: #2a2a2a; border: 1px solid rgba(255, 255, 255, .8); color: #fff; }
.sm-hero-caption { text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, .5); margin-top: 9px; }
.sm-hero-btns { display: flex; gap: 8px; margin-top: 11px; }
.sm-hero-btn { flex: 1; border-radius: 18px; padding: 9px 0; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
.sm-hero-btn:active { transform: scale(.98); }
.sm-hero-btn.primary { background: #fff; color: #111; }
.sm-hero-btn.primary.done { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); cursor: default; }
.sm-hero-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }

/* ===================== 商城 v8：大卡片右上角「优惠券」/ 优惠券页顶部签到卡 ===================== */
.sm-hero-coupon { position: relative; flex: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 14px; padding: 6px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sm-hero-coupon:active { transform: scale(.96); }
.sm-hero-coupon i { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2c2c2c; }
.sm-sign { background: linear-gradient(135deg, #141414 0%, #3a3a3a 100%); color: #fff; border-radius: 14px; padding: 13px 14px 12px; }
.sm-sign-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-sign-title { font-size: 14.5px; font-weight: 600; }
.sm-sign-sub2 { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 3px; }
.sm-sign .sm-dots { margin-top: 12px; }

/* 下单页（和自提口令、分类管理弹窗）的主按钮：底色跟随主题（和发红包、送礼等弹窗的主按钮一致），字色用主题文字色，浅灰底上看得清 */
html:not(#_):not(#__) :is(#shop-delivery-modal, #shop-pickup-modal, #shop-category-manage-modal) .btn.btn-primary,
html:not(#_):not(#__) :is(#shop-delivery-modal, #shop-pickup-modal, #shop-category-manage-modal) .btn.btn-primary:hover,
html:not(#_):not(#__) :is(#shop-delivery-modal, #shop-pickup-modal, #shop-category-manage-modal) .btn.btn-primary:active {
    background: var(--tile-bg-strong) !important; color: var(--sh-text) !important; border-color: var(--sh-sel-line) !important; font-weight: 500;
}
