/* ============================================================
   VMS 客户商城样式 - 现代电商视觉（移动优先，适配桌面）
   品牌主色：靛蓝 + 渐变；卡片柔光阴影；圆润精致
   ============================================================ */
:root {
    --s-primary: #c9a227;
    --s-primary-2: #8a6a12;
    --s-primary-soft: #faf5e0;
    --s-danger: #ef4444;
    --s-success: #10b981;
    --s-warn: #f59e0b;
    --s-text: #1e293b;
    --s-text-2: #475569;
    --s-muted: #94a3b8;
    --s-border: #e8eaf0;
    --s-bg: #f4f5fa;
    --s-card: #ffffff;
    --s-radius: 16px;
    --s-radius-sm: 10px;
    --s-shadow: 0 1px 3px rgba(20,16,4,.05), 0 4px 16px rgba(20,16,4,.06);
    --s-shadow-lg: 0 4px 12px rgba(20,16,4,.08), 0 12px 32px rgba(20,16,4,.12);
    --s-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--s-font); background: var(--s-bg); color: var(--s-text); -webkit-tap-highlight-color: transparent; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--s-text); }

/* ---------- 头部 ---------- */
.s-head { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(20,16,6,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,162,39,.35); }
.s-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.s-logo img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 6px rgba(201,162,39,.35); }
.s-logo-txt { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; box-shadow: 0 2px 6px rgba(201,162,39,.4); }
.s-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; color: #f5efd8; }
.s-nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.s-nav a { font-size: 14px; color: #cbbd94; padding: 5px 2px; position: relative; font-weight: 500; }
.s-nav a.on { color: #e6c860; font-weight: 700; }
.s-nav a.on::after { content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--s-primary), var(--s-primary-2)); }
.s-search-btn { display: none; border: 1px solid rgba(201,162,39,.4); background: rgba(201,162,39,.12); border-radius: 20px; padding: 6px 16px; font-size: 12px; color: #e6c860; cursor: pointer; }
@media (max-width: 640px) {
    .s-nav a { font-size: 13px; }
    .s-search-btn { display: block; }
    .s-head { padding: 9px 12px; }
}

.s-main { max-width: 1080px; margin: 0 auto; min-height: 70vh; padding-bottom: 84px; }

/* ---------- 首页顶部搜索 ---------- */
.s-top-search { padding: 14px 16px 4px; }
.s-top-search form { display: flex; align-items: center; background: #fff; border-radius: 26px; border: 1px solid var(--s-border); box-shadow: var(--s-shadow); overflow: hidden; }
.s-top-search input { flex: 1; border: 0; outline: none; padding: 12px 18px; font-size: 14px; background: transparent; }
.s-top-search button { border: 0; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; padding: 0 20px; cursor: pointer; align-self: stretch; border-radius: 0 26px 26px 0; }
.s-top-search button svg { width: 18px; height: 18px; vertical-align: middle; }
.s-top-search .hot { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0; font-size: 12px; overflow-x: auto; }
.s-top-search .hot::-webkit-scrollbar { display: none; }
.s-top-search .hot span { color: var(--s-muted); flex-shrink: 0; }
.s-top-search .hot a { color: var(--s-text-2); flex-shrink: 0; background: #fff; border: 1px solid var(--s-border); border-radius: 14px; padding: 3px 11px; }
.s-top-search .hot a:active { background: var(--s-primary-soft); }

/* ---------- 轮播 ---------- */
.s-banner { position: relative; overflow: hidden; border-radius: 16px; margin: 12px 16px 0; background: #fff; box-shadow: var(--s-shadow); }
.s-banner-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.s-banner-slide { min-width: 100%; }
.s-banner-slide img { width: 100%; height: 200px; object-fit: cover; }
@media (max-width: 640px) { .s-banner-slide img { height: 170px; } }
.s-banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.s-banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: .3s; cursor: pointer; }
.s-banner-dots i.on { width: 18px; background: #fff; }

/* ---------- 公告 ---------- */
.s-notice { display: flex; align-items: center; gap: 9px; margin: 10px 16px 0; padding: 11px 14px; background: linear-gradient(90deg, #fffbeb, #fef3c7); border-radius: 12px; color: #92400e; font-size: 13px; border: 1px solid #fde68a; }
.s-notice svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--s-warn); }
.s-notice-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/* ---------- 分类快捷入口 ---------- */
.s-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 16px 0; padding: 18px 8px 14px; background: #fff; border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
@media (max-width: 400px) { .s-cats { grid-template-columns: repeat(4, 1fr); } }
.s-cat { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 0; }
.s-cat-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px rgba(15,23,42,.08); transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.s-cat:active .s-cat-ic { transform: scale(.88); }
.s-cat-ic svg { width: 21px; height: 21px; }
.s-cat-name { font-size: 12px; color: var(--s-text-2); font-weight: 500; }

/* ---------- 区块 ---------- */
.s-sec { margin: 18px 16px 0; }
.s-sec-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 14px; }
.s-sec-h span { font-size: 17px; font-weight: 800; position: relative; padding-left: 12px; }
.s-sec-h span::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 17px; border-radius: 3px; background: linear-gradient(180deg, var(--s-primary), var(--s-primary-2)); }
.s-sec-h a { font-size: 12px; color: var(--s-muted); display: inline-flex; align-items: center; gap: 3px; }
.s-sec-h a:hover { color: var(--s-primary); }

/* ---------- 资料卡片 ---------- */
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.s-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.05); transition: transform .18s ease, box-shadow .18s ease; position: relative; display: flex; flex-direction: column; }
.s-card:active { transform: scale(.97); }
@media (hover: hover) {
    .s-card:hover { transform: translateY(-3px); box-shadow: var(--s-shadow-lg); }
}
.s-card-img { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #faf5e0, #f5ecd0); overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.s-card:hover .s-card-img img { transform: scale(1.06); }
.s-card-img .s-tag { position: absolute; top: 9px; left: 9px; z-index: 2; }
.s-card-body { padding: 11px 13px 13px; }
.s-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.45; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--s-text); }
.s-card-brief { font-size: 11.5px; color: var(--s-muted); margin-top: 5px; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.s-price { color: var(--s-danger); font-weight: 800; font-size: 16px; letter-spacing: -.2px; }
.s-price em { font-style: normal; font-size: 11px; font-weight: 600; margin-right: 1px; }
.s-sales { font-size: 11px; color: var(--s-muted); }

.s-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; backdrop-filter: blur(4px); }
.s-tag.red { background: rgba(239,68,68,.9); color: #fff; }
.s-tag.orange { background: rgba(245,158,11,.92); color: #fff; }
.s-tag.blue { background: rgba(201,162,39,.92); color: #fff; }
.s-tag.discount { background: linear-gradient(135deg, #e2442f, #c0341f); color: #fff; }
.s-card-soldout { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(18,14,6,.45); }
.s-card-soldout span { background: rgba(18,14,6,.88); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 5px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); }

/* ---------- 服务保障 ---------- */
.s-service { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 16px 0; padding: 18px 10px; background: #fff; border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
.s-service-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--s-text-2); text-align: center; font-weight: 500; }
.s-service-item svg { width: 26px; height: 26px; color: var(--s-primary); }
.s-service-item:nth-child(2) svg { color: var(--s-success); }
.s-service-item:nth-child(3) svg { color: var(--s-warn); }

/* ---------- 详情页 ---------- */
.s-detail { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.s-detail-img { background: #fff; border-radius: var(--s-radius); overflow: hidden; box-shadow: var(--s-shadow); }
.s-detail-img img { width: 100%; max-height: 440px; object-fit: contain; }
.s-detail-info { background: #fff; border-radius: var(--s-radius); padding: 20px; box-shadow: var(--s-shadow); }
.s-detail-title { font-size: 20px; font-weight: 800; line-height: 1.5; }
.s-detail-sub { margin-top: 8px; color: var(--s-muted); font-size: 13px; }
.s-detail-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: linear-gradient(135deg, #fff7f7, #fff1f1); padding: 12px 14px; border-radius: 12px; }
.s-price-lg { color: var(--s-danger); font-weight: 800; font-size: 26px; letter-spacing: -.3px; }
.s-price-lg em { font-style: normal; font-size: 13px; font-weight: 600; }
.s-old-price { color: var(--s-muted); font-size: 13px; }
.s-discount { background: rgba(239,68,68,.12); color: var(--s-danger); font-size: 12px; padding: 3px 9px; border-radius: 6px; font-weight: 700; }
.s-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.s-detail-tags span { font-size: 12px; color: var(--s-text-2); background: var(--s-bg); padding: 5px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.s-detail-tags svg { width: 14px; height: 14px; }
.s-detail-stock { margin-top: 12px; font-size: 12px; color: var(--s-warn); }
.s-detail-stock.soldout { color: #e02424; font-weight: 700; }
.s-spec-wrap { margin-top: 14px; }
.s-spec-label { font-size: 13px; font-weight: 600; color: var(--s-text); margin-bottom: 8px; }
.s-spec-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.s-spec-op { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; border: 1.5px solid var(--s-border); border-radius: 10px; background: var(--s-card); cursor: pointer; font-size: 13px; color: var(--s-text); transition: all .15s; }
.s-spec-op i { font-style: normal; font-size: 11.5px; color: var(--s-muted); }
.s-spec-op b.s-spec-sold { font-size: 10px; color: var(--s-warn); font-weight: 500; }
.s-spec-op.on { border-color: var(--s-primary); color: var(--s-primary); background: var(--s-primary-soft); }
.s-spec-op.on i { color: var(--s-primary); }
.s-paper-opt { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--s-text); cursor: pointer; }
.s-paper-opt .s-switch { flex-shrink: 0; }
.s-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--s-text); margin-bottom: 6px; }
.s-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--s-border); border-radius: 10px; font-size: 14px; background: var(--s-card); color: var(--s-text); }
.s-input:focus { outline: none; border-color: var(--s-primary); }
.s-co-item .td-sub.small, .s-co-item-info .td-sub { font-size: 12px; color: var(--s-muted); margin-top: 3px; }
.s-me-badge { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--s-primary); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
.s-me-grid a { position: relative; }
.s-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.s-order-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; color: var(--s-primary); background: var(--s-primary-soft); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #475569; }
.badge-warn { background: #fff7e6; color: #d48806; }
.badge-ok { background: #e6f7e6; color: #389e0d; }
.badge-err { background: #fff1f0; color: #cf1322; }
.s-coupon-tip { margin-top: 13px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--s-primary); background: var(--s-primary-soft); padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.s-coupon-tip svg { width: 17px; height: 17px; flex-shrink: 0; }
.s-detail-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.s-detail-desc { background: #fff; border-radius: var(--s-radius); padding: 20px; line-height: 1.9; font-size: 14px; box-shadow: var(--s-shadow); }
.s-rich { white-space: pre-wrap; word-break: break-word; color: var(--s-text-2); }
.s-muted { color: var(--s-muted); }

/* ---------- 按钮 ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.s-btn:active { transform: scale(.96); }
.s-btn svg { width: 18px; height: 18px; }
.s-btn-primary { background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; box-shadow: 0 4px 14px rgba(201,162,39,.34); }
.s-btn-primary:hover { box-shadow: 0 6px 20px rgba(201,162,39,.42); }
.s-btn-secondary { background: var(--s-bg); color: var(--s-text-2); }
.s-btn-ghost { background: transparent; border-color: var(--s-border); color: var(--s-text-2); }
.s-btn-danger { background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff; }
.s-btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.w-full { width: 100%; }
.s-link { color: var(--s-primary); }

/* ---------- 分类页 ---------- */
.s-search { margin: 14px 16px 8px; }
.s-search form { display: flex; align-items: center; background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--s-border); box-shadow: var(--s-shadow); }
.s-search input { flex: 1; border: 0; outline: none; padding: 12px 18px; font-size: 14px; background: transparent; }
.s-search button { border: 0; background: transparent; padding: 0 18px; color: var(--s-primary); cursor: pointer; }
.s-search button svg { width: 20px; height: 20px; }
.s-cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.s-cat-bar::-webkit-scrollbar { display: none; }
.s-cat-bar a { flex-shrink: 0; padding: 8px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--s-border); font-size: 13px; color: var(--s-text-2); font-weight: 500; transition: all .18s; }
.s-cat-bar a.on { background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(201,162,39,.34); }
.s-sort-bar { display: flex; align-items: center; gap: 16px; padding: 2px 16px 12px; }
.s-sort-bar a { font-size: 13px; color: var(--s-muted); font-weight: 500; }
.s-sort-bar a.on { color: var(--s-primary); font-weight: 700; }
.s-count { margin-left: auto; font-size: 12px; color: var(--s-muted); background: #fff; padding: 3px 12px; border-radius: 12px; border: 1px solid var(--s-border); }
.s-pages { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 22px; }
.s-page { padding: 9px 18px; background: #fff; border-radius: 10px; font-size: 13px; border: 1px solid var(--s-border); font-weight: 500; transition: all .18s; }
.s-page:hover { border-color: var(--s-primary); color: var(--s-primary); }
.s-page-cur { font-size: 13px; color: var(--s-muted); }

/* ---------- 空状态 ---------- */
.s-empty { text-align: center; padding: 70px 20px; }
.s-empty-ic { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: #fff; box-shadow: var(--s-shadow); color: var(--s-muted); display: flex; align-items: center; justify-content: center; }
.s-empty-ic svg { width: 36px; height: 36px; }
.s-empty-t { font-size: 15px; color: var(--s-text-2); margin-bottom: 20px; }

/* ---------- 登录 ---------- */
.s-auth { max-width: 430px; margin: 44px auto; padding: 0 16px; }
.s-auth-brand { text-align: center; margin-bottom: 26px; }
.s-auth-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(201,162,39,.38); }
.s-auth-title { font-size: 22px; font-weight: 800; }
.s-auth-card { background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: var(--s-shadow-lg); }
.s-auth-sub { text-align: center; color: var(--s-muted); font-size: 13px; margin: 6px 0 24px; }
.s-auth-tabs { display: flex; background: #f1f3f7; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.s-auth-tabs span { flex: 1; text-align: center; padding: 9px 0; font-size: 13px; font-weight: 600; color: var(--s-muted); border-radius: 9px; cursor: pointer; transition: all .18s; }
.s-auth-tabs span.on { background: #fff; color: var(--s-primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.s-auth-pane.hide { display: none; }
.s-auth-card .form-item { margin-bottom: 16px; }
.s-auth-card label { display: block; font-size: 13px; color: var(--s-text-2); margin-bottom: 7px; font-weight: 500; }
.s-auth-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--s-border); border-radius: 12px; outline: none; font-size: 14px; background: #fafbfc; transition: border-color .18s, box-shadow .18s; }
.s-auth-card input:focus { border-color: var(--s-primary); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,39,.14); }
.s-code-row { display: flex; gap: 10px; }
.s-code-row input { flex: 1; }
.s-code-row .s-btn { flex-shrink: 0; padding: 12px 16px; font-size: 13px; }
.s-auth-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; color: var(--s-muted); font-size: 12px; }
.s-auth-note svg { width: 14px; height: 14px; }

/* ---------- 下单 ---------- */
.s-checkout { max-width: 580px; margin: 0 auto; padding: 14px 16px; }
.s-co-card { background: #fff; border-radius: var(--s-radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--s-shadow); }
.s-co-title { font-size: 15px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.s-co-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--s-primary), var(--s-primary-2)); }
.s-co-item { display: flex; gap: 14px; }
.s-co-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; box-shadow: var(--s-shadow); }
.s-co-item-info { flex: 1; }
.s-co-item-name { font-size: 14px; font-weight: 600; line-height: 1.45; }
.s-co-item-price { color: var(--s-danger); font-weight: 700; margin-top: 6px; font-size: 16px; }
.s-co-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14px; color: var(--s-text-2); border-top: 1px dashed var(--s-border); }
.s-co-total { font-weight: 700; color: var(--s-text); font-size: 15px; }
.s-co-total b { color: var(--s-danger); font-size: 18px; }
.s-co-detail-toggle { cursor: pointer; user-select: none; color: var(--s-text-2); }
.s-co-detail-toggle .s-chev { color: var(--s-primary); font-size: 12px; transition: transform .2s; }
.s-co-detail { background: rgba(250,245,224,.45); border-radius: 9px; padding: 2px 12px; margin-top: 2px; }
.s-co-detail .s-co-row { border-top: 0; padding: 8px 0; font-size: 13px; }
.s-pay-items { margin-top: 4px; }
.s-pay-item { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 2px solid var(--s-border); border-radius: 14px; margin-bottom: 10px; cursor: pointer; position: relative; transition: all .18s; }
.s-pay-item.on { border-color: var(--s-primary); background: var(--s-primary-soft); }
.s-pay-item input { position: absolute; opacity: 0; }
.s-pay-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.s-pay-ic.wx { background: #07c160; }
.s-pay-ic.ali { background: #1677ff; }
.s-pay-ic.bal { background: linear-gradient(135deg, #d4af37, #b8860b); }
.s-pay-ic.card { background: #64748b; }
.s-pay-name { font-size: 14px; font-weight: 600; }
.s-pay-rc-link { margin-left: 10px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.s-pay-tip { display: block; font-size: 12px; color: var(--s-muted); margin-top: 2px; }
.s-pay-tag { display: inline-block; font-size: 11px; color: #1677ff; background: rgba(22,119,255,.1); border: 1px solid rgba(22,119,255,.3); border-radius: 6px; padding: 1px 7px; margin-left: 8px; font-weight: 600; vertical-align: middle; }
.s-pay-check { position: absolute; right: 15px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--s-border); transition: all .18s; }
.s-pay-item.on .s-pay-check { border-color: var(--s-primary); background: var(--s-primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M20 6L9 17l-5-5'/></svg>") center/13px no-repeat; }
.s-co-agree { font-size: 12px; color: var(--s-muted); margin: 4px 2px 14px; line-height: 1.7; }
.s-co-agree input { margin-right: 6px; accent-color: var(--s-primary); }
.s-co-submit { width: 100%; padding: 14px; font-size: 16px; }
.s-co-tip { text-align: center; font-size: 12px; color: var(--s-muted); margin-top: 12px; }
.s-pay-qr { width: 150px; height: 150px; margin: 0 auto; border: 1px dashed var(--s-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--s-muted); font-size: 13px; }
.s-pay-qr-img { width: 200px; height: 200px; margin: 0 auto; border-radius: 10px; object-fit: contain; display: block; box-shadow: var(--s-shadow-lg); }
.s-pay-wait { text-align: center; margin-top: 12px; font-size: 13px; color: var(--s-muted); }

/* ---------- 支付成功 ---------- */
.s-pay-success { max-width: 500px; margin: 44px auto; padding: 0 16px; text-align: center; }
.s-ps-ic { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--s-success); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(16,185,129,.25); }
.s-ps-ic svg { width: 40px; height: 40px; }
.s-ps-title { font-size: 21px; font-weight: 800; }
.s-ps-sub { color: var(--s-muted); margin-top: 8px; font-size: 14px; }
.s-ps-order { background: #fff; border-radius: var(--s-radius); padding: 20px; margin: 26px 0; text-align: left; box-shadow: var(--s-shadow); }
.s-ps-order > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--s-border); font-size: 14px; }
.s-ps-order > div:last-child { border: 0; }
.s-ps-order span { color: var(--s-muted); }
.s-ps-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- 个人中心 ---------- */
.s-member { max-width: 720px; margin: 0 auto; padding: 14px 16px; }
.s-me-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); border-radius: var(--s-radius); padding: 24px 20px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(201,162,39,.34); }
.s-me-head::before { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.08); }
.s-me-head::after { content: ''; position: absolute; right: 20px; bottom: -40px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.06); }
.s-me-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,.4); }
.s-me-name { font-size: 18px; font-weight: 800; }
.s-me-mobile { font-size: 13px; opacity: .9; margin-top: 3px; }
.s-me-head .s-btn { margin-left: auto; background: rgba(255,255,255,.18); border-color: transparent; color: #fff; backdrop-filter: blur(4px); z-index: 2; }
.s-me-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--s-radius); padding: 20px 6px; margin: 14px 0; text-align: center; box-shadow: var(--s-shadow); }
.s-me-stats div { border-right: 1px solid var(--s-border); }
.s-me-stats div:last-child { border: 0; }
.s-me-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--s-primary); }
.s-me-stats span { font-size: 12px; color: var(--s-muted); }
.s-me-stat-link { display: block; color: inherit; }
.s-me-stat-link:hover div { border-color: var(--s-primary); }
.s-me-tabs { display: flex; background: var(--s-bg); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.s-me-tabs a { flex: 1; text-align: center; padding: 10px; font-size: 13px; color: var(--s-text-2); border-radius: 9px; font-weight: 500; transition: all .22s cubic-bezier(.4,0,.2,1); position: relative; }
.s-me-tabs a.on { background: #fff; color: var(--s-primary); font-weight: 700; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.s-me-body { background: #fff; border-radius: var(--s-radius); padding: 16px; min-height: 220px; box-shadow: var(--s-shadow); }
.s-me-back { display: inline-block; font-size: 13px; color: var(--s-primary); margin-bottom: 14px; font-weight: 500; }
.s-me-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.s-me-filter-tab { padding: 6px 14px; font-size: 12px; color: var(--s-text-2); background: var(--s-bg); border-radius: 20px; border: 1px solid var(--s-border); transition: all .18s; }
.s-me-filter-tab.on { background: var(--s-primary); border-color: var(--s-primary); color: #fff; font-weight: 600; }

/* 订单 */
.s-order-card { border: 1px solid var(--s-border); border-radius: 14px; margin-bottom: 13px; overflow: hidden; transition: box-shadow .18s; }
.s-order-card:hover { box-shadow: var(--s-shadow); }
.s-order-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; background: linear-gradient(90deg, var(--s-bg), #fff); font-size: 12px; color: var(--s-text-2); border-bottom: 1px solid var(--s-border); }
.s-order-item { display: flex; align-items: center; gap: 13px; padding: 15px; }
.s-order-item img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.s-order-item-info { flex: 1; min-width: 0; }
.s-order-item-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-order-item-time { font-size: 12px; color: var(--s-muted); margin-top: 4px; }
.s-order-item-price { font-size: 16px; font-weight: 700; color: var(--s-danger); }
.s-order-actions { display: flex; gap: 10px; padding: 0 15px 15px; justify-content: flex-end; }
.s-bargain-state { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.s-text-success { color: var(--s-success); font-weight: 600; }
.s-text-warn { color: var(--s-warn); font-weight: 600; }

/* 优惠券 */
.s-coupon { display: flex; border: 1px solid var(--s-border); border-radius: 14px; margin-bottom: 13px; overflow: hidden; position: relative; }
.s-coupon::before, .s-coupon::after { content: ''; position: absolute; left: 110px; width: 16px; height: 16px; border-radius: 50%; background: var(--s-bg); border: 1px solid var(--s-border); z-index: 2; }
.s-coupon::before { top: -9px; border-bottom-color: transparent; border-right-color: transparent; }
.s-coupon::after { bottom: -9px; border-top-color: transparent; border-right-color: transparent; }
.s-coupon-l { width: 118px; background: linear-gradient(135deg, #ff6b6b, #f87171); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 8px; }
.s-coupon-l b { font-size: 24px; }
.s-coupon-l span { font-size: 11px; opacity: .92; }
.s-coupon-r { flex: 1; padding: 16px; }
.s-coupon-name { font-size: 14px; font-weight: 600; }
.s-coupon-expire { font-size: 12px; color: var(--s-muted); margin-top: 6px; }
.s-coupon.used { opacity: .55; }
.s-coupon.used .s-coupon-l { background: linear-gradient(135deg, #9ca3af, #6b7280); }

/* 下载记录 / 个人资料 */
.s-dl-row { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px dashed var(--s-border); }
.s-dl-row:last-child { border: 0; }
.s-bal-summary { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #d4af37, #b8860b); color: #fff; border-radius: var(--s-radius); padding: 20px 18px; margin-bottom: 14px; box-shadow: var(--s-shadow); }
.s-bal-summary b { font-size: 26px; font-weight: 800; display: block; }
.s-bal-summary span { font-size: 12px; opacity: .9; }
.s-bal-summary-r .s-btn { background: #fff; color: #b8860b; border: 0; }
.s-bal-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: middle; }
.s-bal-tag.in { color: #0a8f3c; background: rgba(10,143,60,.12); }
.s-bal-tag.out { color: #d97706; background: rgba(217,119,6,.12); }
.s-bal-delta { font-size: 15px; font-weight: 800; white-space: nowrap; }
.s-bal-delta.in { color: #0a8f3c; }
.s-bal-delta.out { color: #d97706; }
.s-dl-name { font-size: 14px; font-weight: 600; }
.s-badge { font-size: 11px; color: var(--s-success); background: rgba(16,185,129,.12); padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.s-me-card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.s-me-profile > div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--s-border); font-size: 14px; }
.s-me-profile span { color: var(--s-muted); }

/* ---------- 下载页 ---------- */
.s-download { max-width: 580px; margin: 0 auto; padding: 14px 16px; }
.s-dl-head { text-align: center; padding: 34px 0 22px; }
.s-dl-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(201,162,39,.34); }
.s-dl-ic svg { width: 34px; height: 34px; }
.s-dl-title { font-size: 18px; font-weight: 800; }
.s-file-list { background: #fff; border-radius: var(--s-radius); padding: 8px 16px; box-shadow: var(--s-shadow); }
.s-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px dashed var(--s-border); }
.s-file-row:last-child { border: 0; }
.s-file-info { min-width: 0; }
.s-file-name { font-size: 14px; font-weight: 600; }
.s-dl-tip { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 11px 13px; background: linear-gradient(90deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 12px; color: #92400e; font-size: 12px; }
.s-wx-tip { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; padding: 12px 14px; background: linear-gradient(90deg, #eff6ff, #e0f2fe); border: 1px solid #bae6fd; border-radius: 12px; color: #1e40af; font-size: 13px; line-height: 1.7; }
.s-dl-tip svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--s-warn); }
.s-dl-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- 关于我们 ---------- */
.s-about { max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.s-about-hero { text-align: center; padding: 40px 0 28px; }
.s-about-logo { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(201,162,39,.38); }
.s-about-name { font-size: 22px; font-weight: 800; }
.s-about-slogan { color: var(--s-muted); font-size: 13px; margin-top: 6px; }
.s-about-card { background: #fff; border-radius: var(--s-radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--s-shadow); }
.s-about-title { font-size: 15px; font-weight: 700; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.s-about-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--s-primary), var(--s-primary-2)); }
.s-about-card p { font-size: 14px; line-height: 1.9; color: var(--s-text-2); }
.s-about-list > div { display: flex; gap: 11px; padding: 9px 0; font-size: 14px; line-height: 1.7; color: var(--s-text-2); }
.s-about-list span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 3px; font-weight: 600; }
.s-about-contact > div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--s-border); font-size: 14px; }
.s-about-contact span { color: var(--s-muted); }

/* ---------- 底部 / 底栏 ---------- */
.s-foot { max-width: 1080px; margin: 0 auto; text-align: center; padding: 26px 16px 90px; }
.s-foot-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 13px; }
.s-foot-links a { font-size: 13px; color: var(--s-muted); transition: color .18s; }
.s-foot-links a:hover { color: var(--s-primary); }
.s-foot-shop { font-size: 13px; color: var(--s-text-2); }
.s-foot-icp { font-size: 11px; color: var(--s-muted); margin-top: 6px; }
.s-tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(20,16,6,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(201,162,39,.35); display: flex; padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); z-index: 50; box-shadow: 0 -4px 16px rgba(20,16,4,.18); }
.s-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #8f846a; padding: 4px 0; transition: color .18s; position: relative; }
.s-tabbar a.on { color: #e6c860; font-weight: 600; }
.s-tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(201,162,39,.5)); }
.s-tabbar svg { width: 23px; height: 23px; }
@media (min-width: 768px) { .s-tabbar { display: none; } }

/* ---------- 浮动客服 ---------- */
.s-float-consult { position: fixed; right: 16px; bottom: 96px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(201,162,39,.42); cursor: pointer; border: 0; transition: transform .18s ease; }
.s-float-consult:active { transform: scale(.92); }
.s-float-consult svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .s-float-consult { right: 24px; bottom: 24px; } }
.s-float-top { position: fixed; right: 16px; bottom: 154px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; background: rgba(20,16,6,.88); color: #e6c860; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(20,16,4,.3); cursor: pointer; border: 1px solid rgba(201,162,39,.3); transition: transform .18s ease, opacity .2s; backdrop-filter: blur(8px); }
.s-float-top:active { transform: scale(.9); }
.s-float-top svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .s-float-top { right: 24px; bottom: 84px; } }

/* ---------- 弹窗 ---------- */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100; align-items: flex-end; justify-content: center; }
.modal-mask.show { display: flex; }
.s-modal { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 540px; max-height: 82vh; display: flex; flex-direction: column; animation: sUp .25s cubic-bezier(.4,0,.2,1); }
@media (min-width: 640px) { .modal-mask { align-items: center; padding: 20px; } .s-modal { border-radius: 20px; } }
@keyframes sUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--s-border); }
.modal-head h3 { font-size: 16px; flex: 1; font-weight: 700; }
.modal-head .x { border: 0; background: none; font-size: 22px; color: var(--s-muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--s-border); }
.form-item { margin-bottom: 14px; }
.form-item label, .form-item .s-field-label { display: block; font-size: 13px; color: var(--s-text-2); margin-bottom: 6px; font-weight: 500; }
.form-item input, .form-item select, .form-item textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--s-border); border-radius: 11px; outline: none; font-size: 14px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--s-primary); box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.form-item textarea { min-height: 70px; resize: vertical; }
.s-consult-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--s-border); font-size: 14px; }
.s-consult-row span { color: var(--s-muted); width: 60px; flex-shrink: 0; }
.s-consult-row b { flex: 1; word-break: break-all; }
.s-consult-qr { text-align: center; padding: 18px 0; }
.s-consult-qr img { width: 170px; height: 170px; margin: 0 auto; border-radius: 12px; object-fit: contain; box-shadow: var(--s-shadow); }
.s-consult-qr .s-muted { margin-top: 8px; }
.s-consult-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--s-muted); padding: 12px 14px; border-radius: 10px; background: rgba(127,127,127,.06); margin-bottom: 4px; }
.s-consult-dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(156,163,175,.5); }
.s-consult-status.on { color: #16a34a; background: rgba(22,163,74,.08); }
.s-consult-status.on .s-consult-dot { background: #22c55e; animation: sPulse 1.6s infinite; }
@keyframes sPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- 小票 ---------- */
.receipt { font-size: 13px; }
.receipt-h { text-align: center; padding-bottom: 10px; border-bottom: 2px dashed var(--s-border); }
.receipt-h b { font-size: 15px; display: block; }
.receipt-h span { color: var(--s-muted); font-size: 12px; }
.receipt-no { text-align: center; font-size: 12px; color: var(--s-muted); padding: 8px 0; border-bottom: 1px dashed var(--s-border); }
.receipt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--s-border); gap: 10px; }
.receipt-row span { color: var(--s-muted); }
.receipt-row .price { color: var(--s-danger); font-size: 15px; }
.receipt-anti { text-align: center; font-size: 11px; color: var(--s-muted); padding: 10px 0; }

/* ---------- 提示 ---------- */
.alert { padding: 11px 15px; border-radius: 11px; font-size: 13px; margin-bottom: 13px; }
.alert.danger { background: rgba(239,68,68,.08); color: var(--s-danger); border: 1px solid rgba(239,68,68,.18); }
.alert.info { background: var(--s-primary-soft); color: var(--s-primary); border: 1px solid rgba(201,162,39,.18); }

@media print {
    body * { visibility: hidden; }
    .modal-mask, .modal, .modal-body { visibility: visible; }
    .modal { position: absolute; left: 0; top: 0; }
}

/* Toast */
.s-toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.s-toast { background: rgba(15,23,42,.92); color: #fff; padding: 11px 22px; border-radius: 24px; font-size: 13px; animation: sIn .2s ease; max-width: 86vw; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.s-toast.err { background: rgba(239,68,68,.92); }
@keyframes sIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 小工具类 */
.s-mt-4 { margin-top: 4px; }
.s-mt-8 { margin-top: 8px; }
.s-center { text-align: center; }
.s-font-bold { font-weight: 700; }

/* ============================================================
   金刚区（功能入口）
   ============================================================ */
.s-grid-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 16px 0; padding: 20px 8px 16px; background: #fff; border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
.s-grid-nav a { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 0; }
.s-gn-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s; box-shadow: 0 4px 10px rgba(15,23,42,.06); }
.s-grid-nav a:active .s-gn-ic { transform: scale(.88); }
.s-gn-ic svg { width: 21px; height: 21px; }
.s-grid-nav a > span:last-child { font-size: 12px; color: var(--s-text-2); font-weight: 500; transition: color .18s; }
.s-grid-nav a:hover > span:last-child { color: var(--s-primary); }

/* ============================================================
   领券中心（首页横幅 + 独立页）
   ============================================================ */
.s-coupon-banner { margin: 14px 16px 0; padding: 16px; background: linear-gradient(135deg, #ff6b6b, #f43f5e); border-radius: var(--s-radius); box-shadow: 0 8px 24px rgba(244,63,94,.28); }
.s-cb-title { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 13px; }
.s-cb-title svg { width: 20px; height: 20px; }
.s-cb-title span { font-size: 16px; font-weight: 800; }
.s-cb-title a { margin-left: auto; font-size: 12px; opacity: .9; }
.s-cb-list { display: flex; flex-direction: column; gap: 10px; }
.s-cb-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.95); border-radius: 13px; padding: 12px 14px; }
.s-cb-v { width: 74px; text-align: center; flex-shrink: 0; }
.s-cb-v b { display: block; font-size: 21px; font-weight: 800; color: var(--s-danger); }
.s-cb-v span { font-size: 11px; color: var(--s-muted); }
.s-cb-info { flex: 1; min-width: 0; }
.s-cb-name { font-size: 13.5px; font-weight: 700; }
.s-cb-btn { flex-shrink: 0; background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff; border: 0; border-radius: 18px; padding: 8px 22px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.s-cb-btn:active { transform: scale(.94); }
.s-cb-btn.got { background: #e5e7eb; color: var(--s-muted); cursor: default; }
.s-cb-card .s-cb-v b { color: var(--s-danger); }

/* 领券中心独立页 */
.s-cp { max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.s-cp-head { text-align: center; padding: 30px 0 24px; }
.s-cp-title { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 21px; font-weight: 800; }
.s-cp-title svg { width: 26px; height: 26px; color: var(--s-danger); }
.s-cp-sub { color: var(--s-muted); font-size: 13px; margin-top: 7px; }
.s-cp-list { display: flex; flex-direction: column; gap: 13px; }
.s-cp-card { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 15px; padding: 15px; box-shadow: var(--s-shadow); }
.s-cp-l { width: 86px; text-align: center; flex-shrink: 0; }
.s-cp-l b { display: block; font-size: 23px; font-weight: 800; color: var(--s-danger); }
.s-cp-l span { font-size: 11px; color: var(--s-muted); }
.s-cp-r { flex: 1; min-width: 0; }
.s-cp-name { font-size: 14px; font-weight: 700; }
.s-cp-cond { display: flex; gap: 10px; margin-top: 5px; font-size: 11.5px; color: var(--s-muted); }
.s-cp-btn { flex-shrink: 0; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; border: 0; border-radius: 18px; padding: 9px 22px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.s-cp-btn:active { transform: scale(.94); }
.s-cp-btn.got { background: #e5e7eb; color: var(--s-muted); cursor: default; }

/* ============================================================
   热销榜单
   ============================================================ */
.s-rank { background: #fff; border-radius: var(--s-radius); padding: 6px 16px; box-shadow: var(--s-shadow); }
.s-rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--s-border); }
.s-rank-item:last-child { border: 0; }
.s-rank-no { width: 24px; height: 24px; border-radius: 8px; background: var(--s-bg); color: var(--s-text-2); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-rank-no.medal { color: #5b3a00; }
.s-rank-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.s-rank-info { flex: 1; min-width: 0; }
.s-rank-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-rank-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }

/* ============================================================
   限时活动
   ============================================================ */
.s-campaigns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s-campaign { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--s-shadow); position: relative; overflow: hidden; }
.s-campaign-badge { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f43f5e, #fb7185); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-campaign-info { flex: 1; min-width: 0; }
.s-campaign-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-campaign-time { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: rgba(244,63,94,.7); }

/* ============================================================
   详情页增强：多图 / 收藏 / 试看
   ============================================================ */
.s-detail-gallery { position: relative; background: #fff; border-radius: var(--s-radius); overflow: hidden; box-shadow: var(--s-shadow); }
.s-detail-img { display: none; }
.s-detail-img.on { display: block; }
.s-detail-img img { width: 100%; max-height: 440px; object-fit: contain; }
.s-gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.s-gallery-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.7); transition: .3s; cursor: pointer; }
.s-gallery-dots i.on { width: 18px; background: #fff; }
.s-detail-favrow { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.s-btn-fav { border: 1px solid var(--s-border); background: #fff; color: var(--s-text-2); border-radius: 22px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 5px; }
.s-btn-fav svg { width: 16px; height: 16px; }
.s-btn-fav.on { border-color: #f43f5e; color: #f43f5e; background: rgba(244,63,94,.06); }

/* 详情/评价 tab */
.s-sec-tabs { display: flex; gap: 4px; background: var(--s-bg); border-radius: 12px; padding: 4px; margin-bottom: 14px; position: relative; }
.s-sec-tabs button { flex: 1; padding: 10px 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--s-text-2); border-radius: 9px; cursor: pointer; transition: all .22s cubic-bezier(.4,0,.2,1); position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; }
.s-sec-tabs button::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 3px; border-radius: 2px; background: var(--s-primary); transform: translateX(-50%); transition: width .25s cubic-bezier(.4,0,.2,1); }
.s-sec-tabs button.on { background: #fff; color: var(--s-primary); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.s-sec-tabs button.on::after { width: 18px; }
.s-sec-tabs button i { font-style: normal; font-size: 11px; background: var(--s-primary); color: #fff; border-radius: 8px; padding: 1px 6px; margin-left: 0; }
.s-tab-pane { display: none; }
.s-tab-pane.on { display: block; }

/* 评价 */
.s-review-sum { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 13px; padding: 18px; margin-bottom: 13px; box-shadow: var(--s-shadow); }
.s-review-score b { font-size: 34px; font-weight: 800; color: #f59e0b; display: block; line-height: 1; }
.s-review-score span { font-size: 12px; color: var(--s-muted); margin-top: 4px; display: block; }
.s-review-stars { display: flex; gap: 3px; color: #f59e0b; }
.s-review-stars svg { width: 18px; height: 18px; }
.s-review-stars.sm svg { width: 14px; height: 14px; }
.s-review-count { margin-left: auto; font-size: 12px; color: var(--s-muted); }
.s-reviews { background: #fff; border-radius: 13px; padding: 4px 16px; box-shadow: var(--s-shadow); }
.s-review { padding: 15px 0; border-bottom: 1px dashed var(--s-border); }
.s-review:last-child { border: 0; }
.s-review-head { display: flex; align-items: center; gap: 10px; }
.s-review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-review-name { font-size: 13.5px; font-weight: 600; }
.s-review-time { margin-left: auto; font-size: 11px; color: var(--s-muted); flex-shrink: 0; }
.s-review-content { font-size: 13.5px; color: var(--s-text-2); line-height: 1.7; margin-top: 9px; word-break: break-word; }
.s-review-imgs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.s-review-imgs img { width: 72px; height: 72px; border-radius: 9px; object-fit: cover; cursor: zoom-in; }
.s-review-reply { margin-top: 9px; padding: 9px 12px; background: var(--s-bg); border-radius: 9px; font-size: 12.5px; color: var(--s-text-2); line-height: 1.6; }
.s-review-reply b { color: var(--s-primary); }

/* 评价表单 */
.s-rating { display: flex; gap: 6px; }
.s-rating svg { width: 30px; height: 30px; color: #f59e0b; cursor: pointer; transition: transform .15s; }
.s-rating svg:active { transform: scale(1.15); }

/* ============================================================
   购物车
   ============================================================ */
.s-cart { max-width: 720px; margin: 0 auto; padding: 14px 16px; }
.s-cart-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.s-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--s-text-2); cursor: pointer; }
.s-check input { width: 18px; height: 18px; accent-color: var(--s-primary); }
.s-cart-list { display: flex; flex-direction: column; gap: 12px; }
.s-cart-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 15px; padding: 14px; box-shadow: var(--s-shadow); transition: opacity .25s, height .25s, padding .25s; }
.s-cart-img { width: 78px; height: 78px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.s-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.s-cart-info { flex: 1; min-width: 0; }
.s-cart-name { font-size: 14px; font-weight: 600; line-height: 1.45; display: block; }
.s-cart-sub { margin-top: 4px; }
.s-cart-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.s-cart-bottom .s-price-lg { font-size: 18px; }
.s-cart-del { border: 0; background: transparent; color: var(--s-muted); cursor: pointer; padding: 8px; flex-shrink: 0; }
.s-cart-del svg { width: 19px; height: 19px; }
.s-cart-del:active { color: var(--s-danger); }
.s-cart-bar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 12px 16px; margin-top: 14px; box-shadow: 0 -4px 20px rgba(15,23,42,.08); z-index: 40; }
.s-cart-bar-right { display: flex; align-items: center; gap: 14px; }
.s-cart-total { font-size: 13px; color: var(--s-text-2); }
.s-cart-total b { margin-left: 4px; }

/* 数量步进器 */
.s-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--s-border); border-radius: 18px; overflow: hidden; }
.s-stepper button { width: 28px; height: 28px; border: 0; background: var(--s-bg); font-size: 16px; color: var(--s-text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.s-stepper button:active { background: var(--s-border); }
.s-stepper b { min-width: 30px; text-align: center; font-size: 14px; }

/* ============================================================
   个人中心：功能宫格 / 邀请 / 子标题
   ============================================================ */
.s-me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff; border-radius: var(--s-radius); padding: 16px 8px 13px; margin-bottom: 14px; box-shadow: var(--s-shadow); }
.s-me-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--s-text-2); font-weight: 500; position: relative; }
.s-me-grid svg { width: 25px; height: 25px; color: var(--s-primary); }
.s-me-grid a:nth-child(2n) svg { color: #f43f5e; }
.s-me-grid a:nth-child(3n) svg { color: #f59e0b; }
.s-me-grid a:nth-child(4n) svg { color: var(--s-success); }
.s-me-dot { position: absolute; top: -3px; right: 50%; transform: translateX(16px); width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; }
.s-me-subtitle { font-size: 13px; font-weight: 700; color: var(--s-text-2); margin: 18px 2px 10px; }
.s-me-grid a:active svg { transform: scale(.9); }
.s-me-grid svg { transition: transform .15s; }

/* 邀请 */
.s-invite-box { text-align: center; padding: 20px 0; }
.s-invite-code { font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--s-primary); background: var(--s-primary-soft); border-radius: 14px; padding: 12px 0; margin-bottom: 8px; border: 1px dashed var(--s-primary); }
.s-invite-actions { display: flex; gap: 12px; justify-content: center; }
.s-me-card-title { display: flex; align-items: center; gap: 8px; }
.s-me-card-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--s-primary), var(--s-primary-2)); }

/* ============================================================
   积分中心
   ============================================================ */
.s-pts { max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.s-pts-hero { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #f59e0b, #fbbf24); border-radius: var(--s-radius); padding: 24px 22px; color: #fff; box-shadow: 0 8px 24px rgba(245,158,11,.32); position: relative; overflow: hidden; }
.s-pts-hero::after { content: ''; position: absolute; right: -26px; top: -26px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.1); }
.s-pts-bal b { font-size: 38px; font-weight: 800; display: block; line-height: 1; }
.s-pts-bal span { font-size: 12px; opacity: .95; margin-top: 5px; display: block; }
.s-btn-light { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); border-radius: 22px; padding: 10px 24px; font-weight: 700; cursor: pointer; font-size: 14px; }
.s-btn-light:active { transform: scale(.95); }
.s-pts-signed { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.22); border-radius: 22px; padding: 9px 18px; font-weight: 600; font-size: 13px; }
.s-pts-signed i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #f59e0b; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.s-pts-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: #fff; border-radius: var(--s-radius); padding: 16px 12px; margin: 14px 0; box-shadow: var(--s-shadow); }
.s-pts-day { text-align: center; padding: 8px 0; border-radius: 10px; }
.s-pts-day i { font-style: normal; font-size: 11px; color: var(--s-muted); }
.s-pts-day b { display: block; font-size: 16px; font-weight: 700; margin: 3px 0; }
.s-pts-day span { font-size: 10px; color: var(--s-muted); }
.s-pts-day.today { background: var(--s-primary-soft); }
.s-pts-day.today b { color: var(--s-primary); }
.s-pts-day.on { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.s-pts-day.on i, .s-pts-day.on b, .s-pts-day.on span { color: #fff; }
.s-pts-rule { background: #fff; border-radius: var(--s-radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--s-shadow); }
.s-pts-rule-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.s-pts-rule-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.s-pts-rule ul { padding-left: 18px; }
.s-pts-rule li { font-size: 13px; color: var(--s-text-2); line-height: 2; }
.s-text-danger { color: var(--s-danger); font-weight: 600; }

/* 结算增强 */
.s-co-qty { font-size: 13px; color: var(--s-muted); font-weight: 500; }
.s-co-select { padding: 8px 12px; border: 1px solid var(--s-border); border-radius: 9px; font-size: 13px; background: #fff; color: var(--s-text); outline: none; max-width: 230px; }
.s-co-points { cursor: pointer; align-items: center; }
.s-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.s-switch input { opacity: 0; width: 0; height: 0; }
.s-switch i { position: absolute; inset: 0; background: var(--s-border); border-radius: 24px; transition: .2s; cursor: pointer; }
.s-switch i::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.s-switch input:checked + i { background: var(--s-success); }
.s-switch input:checked + i::before { transform: translateX(20px); }
.s-buy-opt { margin-bottom: 10px; }

/* 议价专拍价提示条 */
.s-bargain-tip { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.05)); border: 1px solid rgba(212,175,55,.35); color: #8a6d1a; font-size: 13px; line-height: 1.5; }
.s-bargain-tip svg { width: 18px; height: 18px; flex-shrink: 0; color: #d4af37; }
.s-bargain-tip b { color: #8a6d1a; font-weight: 600; }

/* 头部徽标 */
.s-badge { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #f43f5e; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.s-tab-badge { position: absolute; top: -2px; left: 50%; transform: translateX(6px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #f43f5e; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* 桌面端 */
@media (min-width: 640px) {
    .s-grid { grid-template-columns: repeat(3, 1fr); }
    .s-detail { grid-template-columns: 380px 1fr; }
    .s-modal { border-radius: 20px; }
    .s-cats { grid-template-columns: repeat(5, 1fr); }
}

/* ===== 余额充值 ===== */
.s-rc { padding-bottom: 40px; }
.s-rc-hero { margin: 16px; padding: 22px 18px; border-radius: 16px; background: linear-gradient(135deg, #1e3a8a, #1d4ed8 55%, #3b82f6); color: #fff; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(29,78,216,.25); }
.s-rc-bal { display: flex; align-items: baseline; gap: 10px; }
.s-rc-bal b { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.s-rc-bal span { font-size: 13px; opacity: .85; }
.s-rc-tip { font-size: 12px; opacity: .9; }
.s-rc-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 2px; }
.s-rc-plan { border: 1.5px solid var(--s-border); border-radius: 12px; padding: 12px 6px; background: var(--s-card); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: all .15s; text-align: center; }
.s-rc-plan b { font-size: 14px; color: var(--s-text); }
.s-rc-plan span { font-size: 11px; color: #d97706; font-weight: 700; }
.s-rc-plan i { font-size: 10px; font-style: normal; color: var(--s-muted); }
.s-rc-plan.on { border-color: var(--s-primary); background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.05)); box-shadow: 0 3px 10px rgba(212,175,55,.2); }
.s-rc-plan.on b { color: #8a6d1a; }
.s-rc-custom span { color: var(--s-muted); font-weight: 400; }
.s-rc-amount { margin-top: 14px; }
.s-rc-amount label { display: block; font-size: 12px; color: var(--s-muted); margin-bottom: 6px; }
.s-rc-bonus { margin-top: 8px; font-size: 13px; color: var(--s-text-2); }
.s-rc-bonus b { color: #d97706; font-size: 15px; }
.s-rc-paytabs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.s-rc-paytab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 0; border: 2px solid var(--s-border); border-radius: 12px;
    background: var(--s-card); font-size: 14px; font-weight: 700; color: var(--s-text-2);
    cursor: pointer; transition: all .18s;
}
.s-rc-paytab.on { border-color: var(--s-primary); color: var(--s-primary); background: var(--s-primary-soft); }
.s-detail-payamt { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 700; color: #e02424; }
.s-rc-qr { display: flex; flex-direction: column; align-items: center; padding: 12px 0 0; gap: 10px; width: 100%; overflow: hidden; }
.s-rc-qr img { width: 200px; height: 200px; max-width: 70vw; border-radius: 12px; border: 1px solid var(--s-border); object-fit: contain; background: #fff; flex-shrink: 0; }
.s-rc-qr-t { font-size: 14px; font-weight: 700; color: var(--s-text); position: relative; }
.s-rc-qr p { text-align: center; font-size: 12px; line-height: 1.75; margin: 0; max-width: 100%; word-break: break-word; }
.s-rc-form { padding: 4px 2px; }
.s-rc-form label { display: block; font-size: 12px; color: var(--s-muted); margin: 10px 0 6px; }
.s-rc-up { border: 1.5px dashed var(--s-border); border-radius: 12px; padding: 18px 12px; text-align: center; }

.s-rc-rejected-tip { margin: 0 16px; padding: 10px 12px; border-radius: 10px; background: #fff3e0; border: 1px solid rgba(230,81,0,.28); color: #e65100; font-size: 12.5px; line-height: 1.7; }

.s-rc-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.s-rc-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--s-text, #333); font-weight: 600; }
.s-rc-field input { width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 14px; border: 1px solid var(--s-border, #e2e8f0); border-radius: 8px; background: var(--s-bg, #fff); color: var(--s-text, #222); outline: none; }
.s-rc-field input:focus { border-color: var(--s-primary, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.s-rc-up-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.s-rc-up-icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 24px; font-weight: 300; display: flex; align-items: center; justify-content: center; }
.s-rc-up img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; }
.s-rc-secure { margin: 16px; padding: 14px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.03)); border: 1px solid rgba(34,197,94,.28); }
.s-rc-secure-title { font-size: 15px; font-weight: 800; color: #15803d; margin-bottom: 8px; }
.s-rc-secure p { font-size: 12.5px; color: #14532d; line-height: 1.9; margin: 0 0 6px; }
.s-rc-submit { margin: 20px 16px; }
.s-rc-btn { width: 100%; padding: 14px; font-size: 16px; }
.s-rc-load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 8px; }
.s-rc-load-bar { width: 100%; height: 12px; border-radius: 8px; background: var(--s-bg); overflow: hidden; }
.s-rc-load-fill { height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, var(--s-primary), var(--s-primary-2)); transition: width .25s ease; }
.s-rc-load-pct { font-size: 15px; font-weight: 700; color: var(--s-text); }
.s-rc-load-tip { font-size: 14px; color: var(--s-text); }
.s-rc-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 14px; text-align: center; }
.s-rc-done-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(34,197,94,.35); }
.s-rc-done h3 { margin: 2px 0; }
.s-rc-done p { font-size: 14px; color: var(--s-text-2); }
.s-rc-done b { color: #d97706; font-size: 18px; }
.s-co-resume-tip { padding: 10px 12px; border-radius: 10px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); color: #15803d; font-size: 13px; line-height: 1.7; margin-bottom: 4px; }
.s-vc-upload { display: none; }
.s-rc-done .s-btn { margin-top: 8px; }
.s-rc-orders { padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; }
.s-rc-order { border: 1px solid var(--s-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.s-rc-order-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-rc-order-h b { font-size: 14px; color: var(--s-text); }
.s-rc-order .s-muted { font-size: 12px; margin-top: 4px; }
.s-badge-ok { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #15803d; background: rgba(34,197,94,.12); white-space: nowrap; }
.s-badge-wait { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #b45309; background: rgba(245,158,11,.14); white-space: nowrap; }
 .s-badge-gold { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #8a6d1a; background: rgba(212,175,55,.16); white-space: nowrap; }
 .s-badge-err { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #b91c1c; background: rgba(239,68,68,.12); white-space: nowrap; }
.s-rc-textarea { min-height: 84px; resize: vertical; }
@media (min-width: 640px) {
    .s-rc-plans { grid-template-columns: repeat(7, 1fr); }
}

/* 余额不足充值提示条 */
.s-me-recharge-tip { display: block; margin: 12px 16px 0; padding: 11px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.05)); border: 1px solid rgba(212,175,55,.4); color: #8a6d1a; font-size: 13px; font-weight: 600; text-align: center; }

/* 在线咨询聊天面板 */
.s-chat-box { height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 2px; margin-top: 6px; }
.s-chat-bub { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-break: break-word; position: relative; }
.s-chat-out { align-self: flex-start; background: #fff; border: 1px solid var(--s-border); border-top-left-radius: 4px; color: var(--s-text); }
.s-chat-in { align-self: flex-end; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; border-top-right-radius: 4px; }
.s-chat-sys { align-self: center; background: rgba(127,127,127,.08); color: var(--s-muted); font-size: 12px; border-radius: 999px; padding: 4px 10px; }
.s-chat-time { font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; }
.s-chat-recall { display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit; opacity: .75; font-size: 11px; cursor: pointer; text-decoration: underline; }
.s-chat-in .s-chat-recall { color: #fff; }
.s-chat-input { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.s-chat-input .s-input { flex: 1; }
.s-chat-login-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: rgba(201,162,39,.08); border-radius: 10px; font-size: 13px; color: var(--s-text); margin-top: 6px; }
.s-consult-contacts { margin-top: 6px; }
.s-consult-contacts .s-consult-row:last-of-type { border-bottom: 0; }

/* 我的赠品 */
.s-gift-wechat { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.05)); border: 1px solid rgba(212,175,55,.4); font-size: 13px; color: #8a6d1a; }
.s-gift-wechat b { font-size: 15px; }
.s-order-gifts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(201,162,39,.07); border: 1px dashed rgba(201,162,39,.45); font-size: 13px; }
.s-order-gifts a { color: var(--s-primary); font-weight: 600; }

/* ===== 移动端排版优化（更宽松，不堆叠） ===== */
@media (max-width: 640px) {
    body { font-size: 15px; line-height: 1.62; }
    .s-btn svg { flex-shrink: 0; }
    .s-btn-sm svg { width: 15px; height: 15px; }
    .s-order-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .s-order-item { gap: 12px; padding: 14px 15px; }
    .s-order-item-name { font-size: 14.5px; }
    .s-me-body { padding: 14px; }
    .s-dl-head { padding: 26px 0 20px; }
    .s-dl-title { font-size: 17px; }
    .s-dl-ic { width: 66px; height: 66px; border-radius: 18px; }
    .s-dl-ic svg { width: 30px; height: 30px; }
    .s-wx-tip { font-size: 12.5px; line-height: 1.75; padding: 11px 13px; }
    .form-item input, .form-item select, .form-item textarea { font-size: 16px; }
    .s-file-row { flex-wrap: wrap; gap: 10px 12px; }
    .s-file-actions { width: 100%; justify-content: flex-end; }
    .s-order-head { padding: 11px 13px; }
    .s-about-card { padding: 16px; }
}

/* 下载页双按钮组 */
.s-file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.s-file-actions .s-btn-sm { white-space: nowrap; }
.s-download .s-file-list { padding: 6px 14px; }
.s-file-name { line-height: 1.45; word-break: break-all; }

/* 退款收款码上传 */
.s-up-qr { border: 1.5px dashed var(--s-border); border-radius: 14px; overflow: hidden; background: #fff; }
.s-up-qr-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; color: var(--s-muted); cursor: pointer; font-size: 13px; transition: background .18s; }
.s-up-qr-inner:active { background: var(--s-bg); }
.s-up-qr-inner svg { width: 26px; height: 26px; color: var(--s-primary); }
.s-up-qr-prev { padding: 10px; }
.s-up-qr-prev img { width: 100%; max-height: 170px; object-fit: contain; border-radius: 8px; }

/* ============================================
   流畅度增强：搜索联想 / 动效 / 懒加载
   ============================================ */
html { scroll-behavior: smooth; }
.s-main { animation: sFadeIn .3s ease both; }
@keyframes sFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 搜索联想 */
.s-search { position: relative; }
.s-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
    background: var(--s-card, #fff); border-radius: 14px;
    border: 1px solid var(--s-border, rgba(0,0,0,.08));
    box-shadow: 0 18px 48px rgba(0,0,0,.14); overflow: hidden;
    animation: sDrop .16s ease both;
}
@keyframes sDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.s-sg-t { padding: 9px 14px 5px; font-size: 11px; color: var(--s-muted, #9aa0a8); letter-spacing: 1px; }
.s-sg-item {
    display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 14px;
    color: var(--s-text, #1f2937); transition: background .12s;
}
.s-sg-item svg { width: 15px; height: 15px; color: var(--s-primary, #c9a227); flex-shrink: 0; }
.s-sg-item:hover { background: var(--s-primary-soft, rgba(201,162,39,.1)); }
.s-sg-hot {
    width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-style: normal; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #d4af37, #8a6a12);
}
.s-sg-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--s-muted, #9aa0a8); }

/* 图片懒加载淡入 */
img[data-src] { opacity: 0; transition: opacity .35s ease; }
img[data-src].s-loaded { opacity: 1; }
.s-img-ph {
    background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08), rgba(0,0,0,.04));
    background-size: 200% 100%; animation: sShimmer 1.2s ease-in-out infinite;
}
@keyframes sShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 商品卡片悬浮 */
.s-card, .s-mat-card { transition: transform .22s cubic-bezier(.22,.68,.4,1), box-shadow .22s ease; }
.s-card:hover, .s-mat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20,12,2,.12), 0 0 0 1px var(--s-primary-soft, rgba(201,162,39,.25));
}

/* 按钮按压反馈 */
.s-btn, .s-btn-primary, .s-btn-ghost { transition: transform .12s ease, box-shadow .2s ease; }
.s-btn:active, .s-btn-primary:active, .s-btn-ghost:active { transform: scale(.96); }

/* toast 弹入 */
.s-toast { animation: sToastIn .25s cubic-bezier(.22,.68,.4,1) both; }
@keyframes sToastIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* 悬浮客服 & 回顶 */
.s-float-consult, .s-float-top { transition: transform .18s ease, box-shadow .2s ease; }
.s-float-consult:hover, .s-float-top:hover { transform: translateY(-3px) scale(1.06); }

/* 分页与筛选轻触反馈 */
.s-page, .s-cat-bar a, .s-sort-bar a { transition: all .15s ease; }

/* 意见反馈页 */
.s-fb-form { padding: 18px; }
.s-fb-field { margin-bottom: 14px; }
.s-fb-field label { display: block; font-size: 13px; color: var(--s-muted, #6b7280); margin-bottom: 7px; }
.s-fb-types { display: flex; gap: 8px; flex-wrap: wrap; }
.s-fb-type {
    padding: 7px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
    border: 1px solid var(--s-border, rgba(0,0,0,.1)); color: var(--s-text, #1f2937); transition: all .15s;
}
.s-fb-type.on { background: linear-gradient(135deg, var(--s-primary, #c9a227), var(--s-primary-2, #a8851a)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--s-primary-soft, rgba(201,162,39,.35)); }
.s-fb-field textarea, .s-fb-field input {
    width: 100%; border: 1px solid var(--s-border, rgba(0,0,0,.1)); border-radius: 10px;
    padding: 10px 12px; font-size: 14px; background: var(--s-card, #fff); color: var(--s-text, #1f2937); outline: none;
}
.s-fb-field textarea:focus, .s-fb-field input:focus { border-color: var(--s-primary, #c9a227); box-shadow: 0 0 0 3px var(--s-primary-soft, rgba(201,162,39,.15)); }
.s-fb-count { text-align: right; font-size: 12px; color: var(--s-muted, #9aa0a8); margin-top: 4px; }
.s-fb-item { padding: 16px 18px; margin-bottom: 12px; }
.s-fb-head { display: flex; align-items: center; gap: 10px; }
.s-fb-tag { font-size: 12px; color: var(--s-primary, #c9a227); background: var(--s-primary-soft, rgba(201,162,39,.12)); padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.s-fb-content { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--s-text, #1f2937); white-space: pre-wrap; word-break: break-word; }
.s-fb-reply {
    margin-top: 12px; padding: 10px 14px; border-radius: 10px;
    background: var(--s-primary-soft, rgba(201,162,39,.08)); border-left: 3px solid var(--s-primary, #c9a227);
}
.s-fb-reply b { font-size: 12px; color: var(--s-primary, #c9a227); }
.s-fb-reply p { font-size: 13px; margin-top: 4px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* 手机端：顶部导航收进 tabbar，视觉更干净 */
@media (max-width: 640px) {
    .s-nav { display: none; }
    .s-top-search { padding: 12px 12px 4px; }
    .s-sec { margin: 16px 12px 0; }
    .s-banner { margin: 12px 12px 0; border-radius: 14px; }
    .s-cats { margin: 12px 12px 0; border-radius: 14px; }
    .s-notice { margin: 10px 12px 0; }
    .s-service { margin: 12px 12px 0; border-radius: 14px; }
    .s-grid { gap: 10px; }
    .s-card { border-radius: 14px; }
    .s-card-img { aspect-ratio: 4/3.2; }
    .s-card-body { padding: 10px 11px 12px; }
    .s-card-title { font-size: 13px; }
    .s-sec-h span { font-size: 16px; }
}

/* 导航头像 */
.s-nav-me { display: inline-flex; align-items: center; gap: 6px; }
.s-nav-me img, .s-nav-me .s-nav-me-t {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2));
    color: #fff; font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.s-nav-me img { border: 2px solid var(--s-primary-soft); }
.s-nav-me-n { font-style: normal; }

/* 个人中心头像 */
.s-me-avatar { position: relative; }
.s-me-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.s-me-avatar-edit {
    position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px;
    border-radius: 50%; border: 2px solid #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2));
    color: #fff; display: flex; align-items: center; justify-content: center; padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.s-me-avatar-edit svg { width: 13px; height: 13px; }

/* ============================================
   前端视觉升级：动效与质感（桌面端）
   ============================================ */
@keyframes sFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.s-sec, .s-grid-nav, .s-banner, .s-cats, .s-notice, .s-service, .s-top-search, .s-coupon-banner { animation: sFadeUp .34s ease both; }
.s-sec:nth-child(2) { animation-delay: .04s; }
.s-sec:nth-child(3) { animation-delay: .08s; }
@media (min-width: 641px) {
    .s-card { transition: transform .22s ease, box-shadow .24s ease, border-color .22s ease; }
    .s-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.10); border-color: color-mix(in srgb, var(--s-primary) 45%, transparent); }
    .s-card-img img { transition: transform .35s ease; }
    .s-card:hover .s-card-img img { transform: scale(1.05); }
    .s-btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
    .s-btn:active { transform: scale(.96); }
    .s-btn-primary { transition: all .18s ease; }
    .s-btn-primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--s-primary) 45%, transparent); }
    .s-cat-item, .s-gn-ic { transition: transform .18s ease; }
    .s-cat-item:hover .s-gn-ic, .s-gn-ic:hover { transform: scale(1.12); }
    .s-card { overflow: hidden; }
    .s-card-img img { transform-origin: center; }
}
/* 卡片价格黑金强调 */
.s-card-price b, .s-price { background: linear-gradient(120deg, #e8433a, #f0483e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* 空状态插画级图标 */
.s-empty { text-align: center; padding: 44px 20px; }
.s-empty-t { font-size: 15px; font-weight: 600; margin-top: 10px; }
/* 搜索条精致化 */
.s-top-search form {
    background: color-mix(in srgb, var(--s-primary-soft) 60%, #fff);
    border: 1px solid color-mix(in srgb, var(--s-primary) 30%, transparent);
    border-radius: 999px; overflow: hidden;
}
.s-top-search form input { background: transparent; }
.s-top-search form button { background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; }

/* 消息中心 */
.s-msg-list { display: flex; flex-direction: column; gap: 10px; }
.s-msg-item { background: var(--s-card, #fff); border: 1px solid var(--s-border); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.s-msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.s-msg-head b { font-size: 14px; }
.s-msg-head span { font-size: 12px; color: var(--s-muted); }
.s-msg-body { font-size: 13px; line-height: 1.7; color: var(--s-text); word-break: break-all; }

/* 资料包内容目录 */
.pv-sec .s-sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-hint { font-size: 12px; color: var(--s-muted); font-weight: 400; }
.pv-hint b { color: var(--s-primary); }
.pv-hint.ok { color: var(--s-primary); }
.pv-tree { background: var(--s-card, #fff); border: 1px solid var(--s-border); border-radius: 12px; padding: 8px 14px; margin-top: 4px; max-height: 480px; overflow: auto; }
.pv-list, .pv-sub { list-style: none; margin: 0; padding: 0; }
.pv-sub { display: none; padding-left: 16px; }
.pv-dir.open > .pv-sub { display: block; }
.pv-dir-t { display: flex; align-items: center; gap: 6px; padding: 6px 4px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--s-text); user-select: none; }
.pv-dir-t .pv-arrow { transition: .2s; color: #bbb; font-style: normal; font-size: 12px; width: 12px; }
.pv-dir.open > .pv-dir-t .pv-arrow { transform: rotate(90deg); }
.pv-dir-t .pv-folder { background: #fdf2e0; color: #d4880f; font-size: 10px; border-radius: 5px; padding: 2px 5px; font-weight: 700; }
.pv-file-b { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--s-text); transition: background .15s; }
.pv-file-b:hover { background: #f6f7fb; }
.pv-file-b .pv-ic { font-size: 10px; font-weight: 800; border-radius: 5px; padding: 2px 5px; flex: none; color: #fff; background: #9aa4b5; }
.pv-file-b .pv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-file-b .pv-size { font-size: 11px; color: #aaa; flex: none; }
.pv-eye { font-size: 11px; color: var(--s-primary); border: 1px solid var(--s-primary); border-radius: 20px; padding: 1px 8px; flex: none; }
.pv-lock { font-size: 11px; color: #bbb; flex: none; }
.pv-file-b[data-lock] { cursor: not-allowed; }
.pv-file-b[data-lock]:hover { background: none; }
.pv-sel { display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer; }
.pv-sel input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--s-primary, #3b6cf6); cursor: pointer; }
.pv-selbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--s-card, #fff); border: 1px solid var(--s-border); border-top: none; border-radius: 0 0 12px 12px; padding: 8px 14px; }
.pv-selbar-l { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pv-selbar-l b { color: var(--s-primary); }
.pv-selbar-r { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.s-co-sel { margin-top: 8px; background: #f7f9ff; border: 1px dashed var(--s-primary-bd, #d6e4ff); border-radius: 8px; padding: 8px 12px; }
.s-co-sel-t { font-size: 12px; color: var(--s-muted); margin-bottom: 4px; }
.s-co-sel-t b { color: var(--s-primary); }
.s-co-sel-list { list-style: none; margin: 0; padding: 0; max-height: 140px; overflow: auto; }
.s-co-sel-list li { font-size: 12px; color: var(--s-text); padding: 2px 0; padding-left: 14px; position: relative; }
.s-co-sel-list li::before { content: "·"; position: absolute; left: 2px; color: var(--s-primary); }
.pv-body { max-height: 66vh; overflow: auto; display: flex; flex-direction: column; align-items: stretch; }
.pv-text { background: #f7f8fa; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin: 0; }
.pv-trunc { text-align: center; color: #999; font-size: 12px; padding: 8px; }
.pv-img { max-width: 100%; max-height: 60vh; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.pv-pdf { width: 100%; height: 60vh; border: 1px solid var(--s-border); border-radius: 8px; }
.pv-media { width: 100%; border-radius: 8px; max-height: 60vh; }
.pv-media-tip { text-align: center; color: #999; font-size: 12px; padding: 8px; }
.pv-unsup { text-align: center; color: #999; padding: 40px 10px; font-size: 13px; }

/* ===== 预览：警告 / 倒计时 / 水印 / 结束遮罩 ===== */
.pv-warn { display: none; background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; font-size: 12px; line-height: 1.6; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; }
.pv-countbar { display: none; align-items: center; gap: 10px; background: #f5f5f5; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.pv-countbar i { display: block; height: 6px; background: linear-gradient(90deg, #ff4d4f, #ff7875); border-radius: 3px; width: 100%; min-width: 40px; }
.pv-countbar span { font-size: 12px; color: #cf1322; font-weight: 600; flex: none; min-width: 100px; text-align: right; }
.pv-stage { position: relative; }
.pv-wm { display: none; position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.pv-wm .pv-wm-lines { position: absolute; inset: 0; overflow: hidden; }
.pv-wm .pv-wm-line { position: absolute; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 700; color: rgba(207, 19, 34, 0.16); letter-spacing: 6px; white-space: nowrap; transform: rotate(-18deg); }
.pv-over { display: none; position: absolute; inset: 0; z-index: 6; background: rgba(255, 247, 246, 0.97); flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; border-radius: 8px; }
.pv-over-b { font-size: 20px; font-weight: 800; color: #cf1322; }
.pv-over-s { font-size: 13px; color: #555; line-height: 1.6; max-width: 320px; }
.pv-over-a { font-size: 12px; color: #999; }

/* ===== 红字警告框（付款页 / 退款） ===== */
.s-warn-box { border: 1px solid #ffccc7; background: #fff1f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.s-warn-t { font-size: 14px; font-weight: 800; color: #cf1322; margin-bottom: 4px; }
.s-warn-c { font-size: 13px; line-height: 1.7; color: #a8071a; }
.s-warn-box-sm { padding: 10px 12px; margin: 6px 0 12px; }
.s-warn-box-sm .s-warn-c { font-size: 12px; }


/* ===== PDF 转图片预览（pdf.js canvas，无下载入口） ===== */
.pv-load { text-align: center; color: #888; padding: 40px 10px; font-size: 13px; }
.pv-pdf { position: relative; }
.pv-pdf-pages { max-height: 60vh; overflow: auto; border: 1px solid var(--s-border); border-radius: 8px; background: #fff; }
.pv-pdf-page { width: 100%; height: auto; display: block; }
.pv-pdf-page + .pv-pdf-page { border-top: 2px dashed #e8e8e8; }
/* 预览区域禁止长按保存 / 触摸菜单 / 文本选择 */
.pv-body, .pv-stage, .pv-pdf, .pv-pdf-pages, .pv-pdf-page, .pv-media, .pv-img {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none; touch-action: manipulation;
}


/* ===== 收银台(扫码凭证支付)移动端优化 ===== */
.ov-h { overflow: hidden; }
#vPayModal .s-modal { max-height: 88dvh; }
#vPayModal .modal-head { border-bottom: 0; padding: 15px 18px 0; }
.v-pay-amount { display: flex; justify-content: space-between; align-items: center; margin: 8px 16px 2px; padding: 11px 16px; border-radius: 13px; background: linear-gradient(135deg, var(--s-primary), var(--s-primary-2)); color: #fff; font-size: 13px; box-shadow: 0 5px 14px rgba(59,108,246,.28); }
.v-pay-amount b { font-size: 22px; letter-spacing: .5px; }
#vPayModal .modal-body { padding: 12px 16px 6px; }
.s-rc-warn { position: relative; width: 100%; box-sizing: border-box; background: #fff7e6; border: 1px solid #ffe1a8; color: #9a6b00; border-radius: 10px; padding: 8px 12px; font-size: 12px; line-height: 1.7; text-align: left; cursor: pointer; }
@media (max-width: 640px) {
    #vPayModal .s-rc-warn { max-height: 40px; overflow: hidden; }
    #vPayModal .s-rc-warn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(rgba(255,247,230,0), #fff7e6); pointer-events: none; }
    #vPayModal .s-rc-warn.open { max-height: none; }
    #vPayModal .s-rc-warn.open::after { display: none; }
    #vPayModal .s-rc-paytabs { padding: 10px 0 0; }
    #vPayModal .s-rc-qr { padding: 10px 6px 2px; gap: 6px; }
    #vPayModal .s-rc-qr img { width: min(180px, 58vw); height: auto; aspect-ratio: 1; }
}
/* ===== checkout 移动端美化 ===== */
@media (max-width: 640px) {
    .s-checkout { padding: 12px 12px 96px; }
    .s-co-card { padding: 16px 15px; border-radius: 16px; margin-bottom: 12px; }
    .s-co-item img { width: 64px; height: 64px; border-radius: 10px; }
    .s-co-title { font-size: 14px; margin-bottom: 12px; }
    .s-pay-item { padding: 13px 14px; border-radius: 13px; }
    .s-co-submit { position: sticky; bottom: 10px; z-index: 30; border-radius: 14px; box-shadow: 0 6px 20px rgba(15,23,42,.18); }
    .s-co-tip { margin-top: 8px; }
}

/* ===== 预览目录：自动展开 + 高度受限 + 长名换行 ===== */
.pv-tree { max-height: 360px; }
.pv-file-b { align-items: flex-start; }
.pv-file-b .pv-name { white-space: normal; word-break: break-word; overflow-wrap: anywhere; line-height: 1.5; }
/* ===== 预览台：点击目录文件后进入的全屏预览台 ===== */
#pvModal .modal { width: 94vw; max-width: 1200px; height: 90vh; max-height: 90vh; display: flex; flex-direction: column; }
#pvModal .modal-body { flex: 1; min-height: 0; padding: 12px 16px; }
#pvModal .pv-body { max-height: none; height: 100%; display: flex; flex-direction: column; }
#pvModal .pv-countbar { flex: none; }
#pvModal .pv-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: #20242e; border-radius: 10px; overflow: hidden; }
#pvModal .pv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
#pvModal .pv-media { max-width: 100%; max-height: 100%; }
#pvModal .pv-pdf-pages { max-height: 100%; height: 100%; overflow: auto; background: #fff; }

/* ===== 独立支付页：区块隔离，收款码不溢出 ===== */
.s-pay-page { max-width: 560px; margin: 0 auto; padding-bottom: 32px; }
.s-pay-page .s-sec {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 14px 16px 0;
    box-shadow: var(--s-shadow);
    overflow: hidden;
    isolation: isolate;
    position: relative;
    z-index: 1;
}
.s-pay-page .s-sec-h { padding: 0 0 12px; }
.s-pay-page .s-rc-hero { position: relative; z-index: 1; }
.s-pay-page .s-dl-name { white-space: normal; word-break: break-word; overflow: visible; height: auto; }
.s-pay-page .s-rc-paytabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0 0 14px;
}
.s-pay-page .s-rc-paytab {
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .15s ease, box-shadow .18s ease;
}
@media (min-width: 640px) {
    .s-pay-page .s-rc-paytabs { flex-direction: row; }
    .s-pay-page .s-rc-paytab { flex: 1; width: auto; }
}
.s-pay-page .s-rc-paytab:active { transform: scale(.98); }
.s-pay-page .s-rc-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.s-pay-page .s-rc-qr img {
    width: 200px;
    height: 200px;
    max-width: min(200px, 64vw);
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    flex-shrink: 0;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.s-pay-page .s-rc-qr img:active { transform: scale(.98); }
.s-pay-page .s-rc-qr-t { margin: 0; text-align: center; }
.s-pay-page .s-rc-qr p {
    margin: 0;
    padding: 0 2px;
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
    word-break: break-word;
}
.s-pay-page .s-rc-warn {
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 2px;
    cursor: default;
}
.s-pay-page .s-rc-warn::after { display: none; }
.s-pay-page .s-rc-form { padding: 0; gap: 12px; }
.s-pay-page .s-rc-up { transition: border-color .18s ease, background .18s ease; }
.s-pay-page .s-rc-up:hover { border-color: var(--s-primary); background: var(--s-primary-soft); }
.s-pay-page .s-rc-submit { margin: 16px; display: flex; flex-direction: column; gap: 10px; }
.s-pay-page .s-rc-submit .s-btn { width: 100%; transition: transform .15s ease, box-shadow .2s ease; }
.s-pay-page .s-rc-rejected-tip { margin: 14px 16px 0; }
.s-pay-page .s-rc-secure { margin: 14px 16px 0; }
.s-qr-zoom {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.78);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.s-qr-zoom img {
    width: min(420px, 92vw);
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

.s-co-coupon-row { align-items: center; gap: 12px; }
.s-co-coupon-row .s-co-select {
    min-width: 180px;
    max-width: 62%;
    padding: 8px 10px;
    border: 1px solid var(--s-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--s-text);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.s-co-coupon-row .s-co-select:focus {
    outline: none;
    border-color: var(--s-primary);
    box-shadow: 0 0 0 3px var(--s-primary-soft);
}
.s-pay-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--s-primary-soft);
    color: var(--s-primary);
    font-size: 13px;
}
.s-pay-coupon b { font-weight: 700; }
.s-bargain-page .s-co-card { animation: sFadeUp .34s ease both; }
.s-bargain-page .s-input { margin-top: 4px; transition: border-color .18s ease, box-shadow .18s ease; }
.s-bargain-page .s-input:focus { border-color: var(--s-primary); box-shadow: 0 0 0 3px var(--s-primary-soft); }
.s-pay-page .s-rc-submit .s-btn:hover { box-shadow: 0 8px 18px rgba(59,108,246,.22); }
.s-pay-page .s-rc-submit .s-btn:active { transform: scale(.98); }
.s-chat-input .btn { flex-shrink: 0; }
