/* ============================================================
   山君模板 · 蓝白流光 · 纯移动端（桌面 760px 居中）
   layer 弹层依赖 header 引入的 layui.css；页面 UI 不依赖 layui 组件样式
   ============================================================ */

:root {
    --sj-brand: #2563eb;
    --sj-brand-deep: #1d4ed8;
    --sj-brand-soft: #60a5fa;
    --sj-brand-pale: #eff6ff;
    --sj-white: #ffffff;
    --sj-bg: #f0f7ff;
    --sj-bg-card: rgba(255, 255, 255, 0.94);
    --sj-text: #0f2744;
    --sj-text-muted: #64748b;
    --sj-border: rgba(37, 99, 235, 0.14);
    --sj-radius: 14px;
    --sj-radius-sm: 10px;
    --sj-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
    --sj-tabbar-h: 56px;
    --sj-tabbar-float-gap: 12px;
    --sj-goods-bar-h: 56px;
    --sj-topbar-h: 52px;
    --sj-topbar-shadow: 0 4px 16px rgba(15, 39, 68, 0.08), 0 1px 4px rgba(15, 39, 68, 0.05);
    --sj-drawer-w: 260px;
    --sj-max-w: 760px;
    --sj-glow: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 45%, transparent 70%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body.sj-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sj-text);
    background: var(--sj-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
img { max-width: 100%; display: block; }

/* 背景流光 */
.sj-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(96, 165, 250, 0.32), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(37, 99, 235, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(239, 246, 255, 0.95), transparent 60%);
}

.sj-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--sj-max-w);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--sj-bg);
    box-shadow: 0 0 60px rgba(29, 78, 216, 0.07);
}

/* 流光组件 */
@keyframes sj-shimmer {
    0% { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}

.sj-glow-card {
    position: relative;
    overflow: hidden;
    background: var(--sj-bg-card);
    border: 1px solid var(--sj-border);
    border-radius: var(--sj-radius-sm);
}
.sj-glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sj-glow);
    transform: translateX(-120%) skewX(-12deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.sj-glow-card:active::after,
.card:active::after,
.goods-card:active::after {
    opacity: 1;
    animation: sj-shimmer 0.65s ease-out;
}

.sj-glow-btn {
    position: relative;
    overflow: hidden;
}
.sj-glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sj-brand-soft), var(--sj-brand), var(--sj-brand-soft));
    opacity: 0.35;
    z-index: -1;
}

.sj-glow-text {
    background: linear-gradient(135deg, var(--sj-brand-deep), var(--sj-brand), var(--sj-brand-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.sj-glow-line {
    background: linear-gradient(90deg, var(--sj-brand-pale), var(--sj-white), var(--sj-brand-pale));
}

.sj-glow-ring {
    box-shadow: 0 0 0 3px var(--sj-brand-pale), 0 4px 20px rgba(37, 99, 235, 0.35);
}

.sj-glow-bar {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,240,255,0.98) 100%);
    border-top: 1px solid var(--sj-border);
}

/* PJAX */
.pjax-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    max-width: var(--sj-max-w);
    height: 3px;
    z-index: 99999;
    background: linear-gradient(90deg, var(--sj-brand), var(--sj-brand-soft), #fff);
    pointer-events: none;
    transition: width 0.15s ease-out;
    border-radius: 0 0 3px 3px;
}
.pjax-bar.running { width: 85%; transition: width 8s cubic-bezier(0.1, 0.5, 0.3, 1); }
.pjax-bar.done { width: 100%; transition: width 0.15s ease-in; }

/* 顶栏 */
.sj-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--sj-topbar-h);
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    box-shadow: var(--sj-topbar-shadow);
    transition: box-shadow 0.25s, border-color 0.25s;
}
.sj-topbar.is-scrolled {
    border-color: var(--sj-border);
    box-shadow: 0 6px 22px rgba(15, 39, 68, 0.1), 0 2px 6px rgba(15, 39, 68, 0.06);
}
.sj-topbar__logo {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    padding: 0 8px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sj-topbar__logo img { height: 32px; width: auto; margin: 0; }
.sj-topbar__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}
.sj-topbar__act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--sj-text);
    text-decoration: none;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.sj-topbar__act i {
    font-size: 15px;
    line-height: 1;
}
.sj-topbar__act--order {
    color: var(--sj-brand);
    background: var(--sj-brand-pale);
    border-color: rgba(37, 99, 235, 0.12);
}
.sj-topbar__act--order span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sj-topbar__act--menu {
    width: 34px;
    padding: 0;
    color: var(--sj-text-muted);
}
.sj-topbar__act--menu i {
    font-size: 16px;
}
.sj-topbar__act:active {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 2px 6px rgba(15, 39, 68, 0.08);
}
.sj-topbar__act--order:active {
    color: var(--sj-brand-deep);
}
.sj-topbar__act--menu:active {
    color: var(--sj-brand);
}
.sj-topbar__act--menu.is-open {
    background: #fff;
    color: var(--sj-brand);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 2px 6px rgba(15, 39, 68, 0.08);
}

/* 主内容（底部留白含悬浮底栏高度 + 下边距） */
.sj-main, #main {
    padding: 12px 12px calc(var(--sj-tabbar-h) + var(--sj-tabbar-float-gap) + 20px + env(safe-area-inset-bottom, 0px));
    min-height: calc(100vh - var(--sj-topbar-h) - var(--sj-tabbar-h) - var(--sj-tabbar-float-gap));
}

.page-body { padding-top: 4px; }

/* 底部导航 · 悬浮胶囊 */
.sj-tabbar {
    position: fixed;
    bottom: calc(var(--sj-tabbar-float-gap) + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: calc(var(--sj-max-w) - 24px);
    height: var(--sj-tabbar-h);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 600;
    padding: 0 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 28px rgba(15, 39, 68, 0.12),
        0 2px 8px rgba(15, 39, 68, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.sj-tabbar.sj-glow-bar {
    background: rgba(255, 255, 255, 0.94);
    border-top: none;
}
.sj-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--sj-text-muted);
    font-size: 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.sj-tabbar__item.is-active { color: var(--sj-brand); }
.sj-tabbar__icon { font-size: 20px; line-height: 1; }
.sj-tabbar__item--center { position: relative; }
.sj-tabbar__fab {
    width: 44px;
    height: 44px;
    margin-top: -14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sj-brand-soft), var(--sj-brand));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.sj-tabbar__item--center.is-active .sj-tabbar__fab,
.sj-tabbar__item--center:active .sj-tabbar__fab {
    transform: scale(1.05);
}

/* 迷你页脚（文档流，在底栏上方） */
.sj-mini-footer {
    text-align: center;
    padding: 8px 12px 6px;
    margin-bottom: 20px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--sj-text-muted);
}
.sj-mini-footer a { color: var(--sj-brand-soft); }

/* 抽屉遮罩（全屏压暗，盖住顶栏/内容/底栏） */
.sj-drawer-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 680;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.sj-drawer-backdrop.is-visible {
    visibility: visible;
    pointer-events: auto;
}
.sj-drawer-backdrop.is-open {
    opacity: 1;
}

.sj-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(var(--sj-drawer-w), 72vw);
    max-width: var(--sj-max-w);
    z-index: 750;
    display: flex;
    flex-direction: column;
    background: #f4f5f7;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
}
.sj-drawer.is-visible { visibility: visible; }
.sj-drawer--left {
    left: max(0px, calc(50% - var(--sj-max-w) / 2));
    transform: translateX(-105%);
    box-shadow: 6px 0 32px rgba(15, 39, 68, 0.14);
}
.sj-drawer--right {
    right: max(0px, calc(50% - var(--sj-max-w) / 2));
    transform: translateX(105%);
    box-shadow: -6px 0 32px rgba(15, 39, 68, 0.14);
}
.sj-drawer--left.is-open { transform: translateX(0); }
.sj-drawer--right.is-open { transform: translateX(0); }

.sj-drawer--bottom {
    top: auto;
    left: max(0px, calc(50% - var(--sj-max-w) / 2));
    right: max(0px, calc(50% - var(--sj-max-w) / 2));
    width: auto;
    max-width: var(--sj-max-w);
    max-height: min(88vh, 720px);
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -8px 40px rgba(15, 39, 68, 0.16);
}
.sj-drawer--bottom.is-open { transform: translateY(0); }

.sj-drawer__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 14px;
    background: linear-gradient(135deg, var(--sj-brand-deep) 0%, var(--sj-brand) 55%, var(--sj-brand-soft) 100%);
    color: #fff;
}
.sj-drawer__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sj-drawer__title-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sj-drawer__title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sj-drawer__title-text strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.sj-drawer__title-text small {
    font-size: 11px;
    opacity: 0.88;
    font-weight: 400;
}
.sj-drawer__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sj-drawer__close:active {
    background: rgba(255, 255, 255, 0.32);
}
.sj-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}
.sj-drawer__section-title {
    margin: 4px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sj-text-muted);
}
.sj-drawer__section-title:not(:first-child) {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
}
.sj-drawer__empty {
    color: var(--sj-text-muted);
    text-align: center;
    padding: 32px 16px;
    font-size: 13px;
    background: #fff;
    border-radius: 10px;
}

.sj-cat-item,
.sj-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin-bottom: 6px;
    color: var(--sj-text);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.sj-cat-item:active,
.sj-nav-item:active {
    background: var(--sj-brand-pale);
}
.sj-cat-item.is-active,
.sj-nav-item.is-active {
    background: linear-gradient(90deg, var(--sj-brand-pale) 0%, #fff 100%);
    color: var(--sj-brand-deep);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.sj-cat-item--all .sj-cat-item__dot {
    background: linear-gradient(145deg, var(--sj-brand-soft), var(--sj-brand));
    color: #fff;
}
.sj-cat-item__dot {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.sj-cat-item__name,
.sj-nav-item > span:first-child {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
}
.sj-cat-item__arrow,
.sj-nav-item > .fa-angle-right {
    flex-shrink: 0;
    font-size: 12px;
    color: #cbd5e1;
}
.sj-cat-item.is-active .sj-cat-item__arrow,
.sj-nav-item.is-active > .fa-angle-right {
    color: var(--sj-brand-soft);
}
.sj-cat-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.sj-cat-item__count {
    flex-shrink: 0;
    min-width: 22px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--sj-brand);
    background: var(--sj-brand-pale);
    border-radius: 20px;
}
.sj-cat-group {
    margin-bottom: 2px;
}
.sj-cat-children {
    margin: 0 0 6px 16px;
    padding: 6px 0 2px 12px;
    border-left: 2px solid rgba(37, 99, 235, 0.15);
}
.sj-cat-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--sj-text-muted);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.sj-cat-child:active,
.sj-cat-child.is-active {
    background: #fff;
    color: var(--sj-brand);
}

.sj-nav-group {
    margin-bottom: 6px;
}
.sj-nav-toggle {
    width: 100%;
    cursor: pointer;
    text-align: left;
}
.sj-nav-toggle .fa-chevron-down {
    transition: transform 0.25s;
    font-size: 11px;
    color: #94a3b8;
}
.sj-nav-toggle.is-open .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--sj-brand);
}
.sj-nav-sub {
    display: none;
    margin: -2px 0 6px;
    padding: 4px 0 4px 12px;
}
.sj-nav-sub.is-open {
    display: block;
}
.sj-nav-sub-item {
    display: block;
    padding: 9px 12px;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--sj-text-muted);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sj-nav-sub-item:active,
.sj-nav-sub-item.is-active {
    background: #fff;
    color: var(--sj-brand);
    border-left-color: var(--sj-brand);
}
.sj-nav-item > span:first-child i {
    width: 18px;
    margin-right: 4px;
    color: var(--sj-brand-soft);
    text-align: center;
}
.sj-nav-item--danger {
    color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.06);
}
.sj-nav-item--danger > span:first-child i {
    color: #ef4444;
}

.sj-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--sj-brand-pale) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.sj-user-card__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sj-brand);
    font-size: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.sj-user-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sj-user-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--sj-brand-deep);
}
.sj-user-card__money {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sj-brand);
}

body.sj-drawer-open,
body.sj-search-open { overflow: hidden; }

/* 搜索层 */
.sj-search-layer {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(15, 39, 68, 0.48);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.sj-search-layer.is-active { opacity: 1; visibility: visible; }
.sj-search-layer__panel {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    border-radius: var(--sj-radius);
    box-shadow: var(--sj-shadow);
}
.sj-search-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sj-search-tab {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--sj-text-muted);
    background: var(--sj-brand-pale);
    cursor: pointer;
}
.sj-search-tab.active {
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
}
.sj-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.sj-search-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
    background: #fff;
}
.sj-search-form button {
    width: 44px;
    border-radius: var(--sj-radius-sm);
    background: var(--sj-brand);
    color: #fff;
    cursor: pointer;
}
.sj-search-cancel {
    width: 100%;
    padding: 10px;
    color: var(--sj-text-muted);
    font-size: 14px;
    cursor: pointer;
}

/* 公告 */
.site-announcement {
    margin-bottom: 14px;
    border-radius: var(--sj-radius);
    overflow: hidden;
    border: 1px solid var(--sj-border);
    background: var(--sj-bg-card);
}
.site-announcement__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--sj-brand-pale);
    font-weight: 600;
    font-size: 13px;
}
.site-announcement__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.site-announcement__body { padding: 12px 14px; word-break: break-word; }
.site-announcement__body img { max-width: 100%; height: auto; }
.site-announcement__uptime {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--sj-border);
    font-size: 12px;
    color: var(--sj-text-muted);
    text-align: right;
}

/* Hero */
.hero-carousel {
    position: relative;
    margin: 0 -12px 14px;
    border-radius: 0 0 var(--sj-radius) var(--sj-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 220px;
}
.hero-track { position: relative; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: var(--sj-brand-pale);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 39, 68, 0.5) 100%);
}
.hero-slide__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    color: #fff;
    z-index: 2;
}
.hero-title { font-size: 18px; font-weight: 700; }
.hero-desc { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.hero-btns .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    color: var(--sj-brand-deep);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.hero-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}
.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}
.hero-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

/* 区块 */
.section { margin-bottom: 20px; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sj-brand-deep);
    position: relative;
    padding-left: 10px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sj-brand), var(--sj-brand-soft));
}
.section-more { font-size: 12px; color: var(--sj-brand); }

/* 面包屑 */
.breadcrumb {
    font-size: 12px;
    color: var(--sj-text-muted);
    margin-bottom: 12px;
}
.breadcrumb a { color: var(--sj-brand); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.card, .goods-card {
    position: relative;
    overflow: hidden;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.goods-card:active { transform: scale(0.98); }
.card-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--sj-brand-pale);
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.goods-no-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: var(--sj-text-muted);
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    padding: 8px;
}
.card-body { padding: 10px; }
.card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.card-stats {
    font-size: 11px;
    color: var(--sj-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}
.card-stats__stock { flex-shrink: 0; }
.card-stats__sold {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
}
.card-bottom { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--sj-brand);
}
.price-original {
    font-size: 11px;
    color: var(--sj-text-muted);
    text-decoration: line-through;
}
.goods-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    z-index: 2;
}
.goods-badge--auto {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
}
.goods-badge--manual {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    background: var(--sj-white);
    border: 1px solid var(--sj-border);
    font-size: 12px;
    white-space: nowrap;
}
.category-tab.active {
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    border-color: transparent;
}
.category-tab-icon { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.category-tab-count { opacity: 0.75; font-size: 11px; }
.category-tabs--sub .category-tab { font-size: 11px; padding: 6px 10px; }

.goods-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.goods-sort-link {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    background: var(--sj-white);
    border: 1px solid var(--sj-border);
    color: var(--sj-text-muted);
}
.goods-sort-link.active {
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    border-color: var(--sj-brand-soft);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination-btn, .pagination-num {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sj-white);
    border: 1px solid var(--sj-border);
    font-size: 13px;
    color: var(--sj-text);
}
.pagination-num.active {
    background: var(--sj-brand);
    color: #fff;
    border-color: var(--sj-brand);
}
.pagination-btn.disabled { opacity: 0.4; pointer-events: none; }
.pagination-dots { color: var(--sj-text-muted); }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--sj-radius);
    background: var(--sj-bg-card);
    border: 1px dashed var(--sj-border);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.6; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--sj-text-muted); }

/* 商品详情 */
.detail-card {
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    overflow: hidden;
    margin-bottom: 14px;
}
.detail-layout { display: flex; flex-direction: column; }

.detail-gallery--goods .detail-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px;
}
.detail-gallery--goods .detail-img img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
}
.detail-gallery--goods .goods-no-image {
    width: 100%;
    height: 220px;
}
.detail-img img { width: 100%; max-height: 320px; object-fit: contain; margin: 0 auto; }
.detail-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
}
.detail-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}
.detail-thumb.active { border-color: var(--sj-brand); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 14px; }
.detail-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.detail-intro { font-size: 13px; color: var(--sj-text-muted); margin-top: 8px; }
.detail-price-box { margin-top: 12px; }
.detail-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.detail-price-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
}
.detail-price { font-size: 22px; font-weight: 700; color: var(--sj-brand); line-height: 1.2; }
.detail-price-original {
    font-size: 13px;
    color: var(--sj-text-muted);
    text-decoration: line-through;
}
.detail-stats-row {
    flex-shrink: 0;
    margin-top: 0;
    font-size: 12px;
    color: var(--sj-text-muted);
    text-align: right;
    white-space: nowrap;
}
.detail-stats-row .detail-stat-item strong {
    font-weight: 600;
    color: var(--sj-text);
}
.detail-stat-sep { margin: 0 6px; opacity: 0.5; }

.spec-section { margin-top: 14px; }
.spec-group-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--sj-brand-deep); }
.spec-group-options { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--sj-border);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}
.spec-btn.active {
    border-color: var(--sj-brand);
    background: var(--sj-brand-pale);
    color: var(--sj-brand-deep);
}
.spec-btn.disabled { opacity: 0.45; pointer-events: none; }
.spec-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    border-radius: 4px;
    margin-bottom: 4px;
}

.detail-qty-row { margin-top: 14px; }
.detail-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    overflow: hidden;
}
.detail-qty-btn {
    width: 36px;
    height: 36px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    font-size: 18px;
    cursor: pointer;
}
.detail-qty-input {
    width: 48px;
    text-align: center;
    border-left: 1px solid var(--sj-border);
    border-right: 1px solid var(--sj-border);
    height: 36px;
}

.detail-form-field { margin-top: 12px; }
.detail-form-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    color: inherit;
}
.detail-form-field-label .fa {
    flex-shrink: 0;
    font-size: 14px;
    color: inherit;
}
.detail-form-field-required {
    color: #dc2626;
    margin-left: 2px;
}
.detail-form-field-input {
    width: 100%;
    max-width: 100% !important;
    padding: 10px 12px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    background: #fff;
}

/* 购买抽屉 · 优惠券 */
.detail-coupon {
    margin-top: 14px;
    padding: 12px;
    background: linear-gradient(145deg, #f8fbff 0%, var(--sj-brand-pale) 100%);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--sj-radius-sm);
}
.detail-coupon-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 400;
    color: inherit;
}
.detail-coupon-title .fa {
    font-size: 14px;
    color: var(--sj-brand);
}
.detail-coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}
.detail-coupon-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: var(--sj-text);
}
.detail-coupon-input::placeholder { color: #94a3b8; }
.detail-coupon-input:focus {
    border-color: var(--sj-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.detail-coupon-input[readonly] {
    background: #f1f5f9;
    color: var(--sj-text-muted);
}
.detail-coupon-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.15s;
}
.detail-coupon-btn:active { opacity: 0.9; transform: scale(0.98); }
.detail-coupon-btn--primary {
    background: linear-gradient(135deg, var(--sj-brand-deep), var(--sj-brand));
    color: #fff;
}
.detail-coupon-btn--ghost {
    background: #fff;
    color: var(--sj-brand);
    border: 1px solid var(--sj-brand);
}
.detail-coupon-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.detail-coupon-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--sj-brand);
    background: #fff;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.detail-coupon-choose:active {
    background: rgba(37, 99, 235, 0.06);
}
.detail-coupon-goget {
    border-style: solid;
    border-color: rgba(37, 99, 235, 0.22);
}
.detail-coupon-guest-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--sj-text-muted);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
}
.detail-coupon-guest-tip .fa {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--sj-brand);
}
.detail-coupon-guest-tip a { color: var(--sj-brand); }
.detail-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-size: 12px;
}
.detail-coupon-applied-name {
    flex: 1;
    min-width: 0;
    font-weight: 400;
    color: var(--sj-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-coupon-applied-saved {
    flex-shrink: 0;
    font-weight: 500;
    color: #dc2626;
}

/* 选券弹层（layer） */
.detail-coupon-picker {
    padding: 4px 2px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.detail-coupon-pick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.detail-coupon-pick-item:last-child { margin-bottom: 0; }
.detail-coupon-pick-item:active {
    border-color: var(--sj-brand);
    background: var(--sj-brand-pale);
}
.detail-coupon-pick-value {
    flex-shrink: 0;
    min-width: 52px;
    font-size: 15px;
    font-weight: 700;
    color: var(--sj-brand);
    text-align: center;
    line-height: 1.2;
}
.detail-coupon-pick-main { flex: 1; min-width: 0; }
.detail-coupon-pick-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--sj-text);
    line-height: 1.35;
}
.detail-coupon-pick-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--sj-text-muted);
    line-height: 1.4;
}
.detail-coupon-pick-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    background: var(--sj-brand);
    cursor: pointer;
}
.detail-coupon-pick-btn:active { opacity: 0.9; }

.detail-payment-section { margin-top: 14px; }
.detail-payment-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 13px;
    color: inherit;
}
.detail-payment-title .fa {
    font-size: 14px;
    color: var(--sj-brand);
}
.detail-payment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-payment-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}
.detail-payment-item.active { border-color: var(--sj-brand); background: var(--sj-brand-pale); }
.detail-payment-item img { width: 24px; height: 24px; object-fit: contain; }
.detail-payment-item.is-disabled { opacity: 0.4; pointer-events: none; }

.detail-actions { margin-top: 16px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-primary, .btn-lg {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sj-glow);
    transform: translateX(-120%);
    animation: sj-shimmer 2.5s ease-in-out infinite;
}

.detail-discount-section { margin-top: 14px; }
.detail-discount-section__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 400;
    color: inherit;
}
.detail-discount-section__title .fa {
    font-size: 14px;
    color: var(--sj-brand);
}
.detail-discount-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.detail-discount-item {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sj-text);
    background: var(--sj-brand-pale);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 10px;
}
.detail-discount-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    font-size: 11px;
    color: #fff;
    background: var(--sj-brand);
    border-radius: 4px;
    vertical-align: middle;
}
.detail-body {
    line-height: 1.7;
    word-break: break-word;
}
.detail-body img { max-width: 100%; height: auto; }

/* 文章详情区块（标题 + 正文同在卡片内；正文区不加额外 padding/border） */
.article-detail {
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    padding: 14px;
    margin-top: 12px;
}
.article-detail .detail-body {
    padding: 0;
    margin-top: 0;
    border: none;
    background: transparent;
}
.detail-title { font-size: 16px; margin-bottom: 8px; }

/* 博客 */
.blog-layout, .blog-main { display: block; }
.blog-article-grid, .article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.article-grid-card, .article-card {
    display: flex;
    flex-direction: column;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
    overflow: hidden;
}
.blog-article-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
}
.blog-article-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
}
.blog-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-article-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--sj-text-muted);
    background: #eef2f7;
}
.article-grid-img { aspect-ratio: 16/10; background: var(--sj-brand-pale); }
.article-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}
.article-grid-body, .card-content { padding: 12px; }
.blog-article-title {
    font-size: 13px;
    line-height: 1.45;
    color: var(--sj-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-article-excerpt {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--sj-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-article-tags {
    margin-top: 6px;
    display: flex;mkinu/gmkinu/g
    flex-wrap: wrap;
    gap: 4px;
}
.card-excerpt { font-size: 13px; color: var(--sj-text-muted); margin-top: 6px; }
.card-meta {
    font-size: 11px;
    color: var(--sj-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-article-meta {
    width: 100%;
    margin-top: 1px;
    font-size: 11px;
    color: var(--sj-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.blog-article-meta__views {
    margin-left: auto;
    flex-shrink: 0;
}
.article-tag, .article-tag-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    font-size: 11px;
    margin-right: 4px;
}
.article-list { display: flex; flex-direction: column; gap: 10px; }

/* 搜索页 */
.page-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--sj-brand-deep); }
.search-box { display: flex; gap: 8px; margin-bottom: 14px; }
.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--sj-border);
    border-radius: 12px;
    background: #fff;
}
.search-type-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.search-type-tab {
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    background: var(--sj-white);
    border: 1px solid var(--sj-border);
}
.search-type-tab.active {
    background: var(--sj-brand);
    color: #fff;
    border-color: transparent;
}

/* 登录注册 */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 20px 0;
}
.auth-card {
    width: 100%;
    padding: 24px 20px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    box-shadow: var(--sj-shadow);
}
.auth-title { font-size: 22px; font-weight: 700; text-align: center; }
.auth-subtitle { text-align: center; color: var(--sj-text-muted); font-size: 13px; margin: 6px 0 20px; }
.auth-field { margin-bottom: 14px; }
.auth-label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--sj-text-muted); }
.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--sj-border);
    border-radius: 12px;
    background: #fff;
}
.auth-input-wrap input { flex: 1; padding: 12px 0; border: none; background: transparent; }
.auth-input-wrap .fa { color: var(--sj-brand-soft); }
.auth-eye { color: var(--sj-text-muted); cursor: pointer; padding: 8px; }
.auth-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.auth-submit.is-loading { opacity: 0.7; pointer-events: none; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--sj-text-muted); }
.auth-footer a { color: var(--sj-brand); font-weight: 600; }

/* 内页通用 */
.page-body {
    background: #f4f5f7;
    margin: 0 -12px;
    padding: 0 12px 8px;
}
.breadcrumb {
    white-space: normal;
    line-height: 1.5;
}
.btn-outline {
    background: #fff;
    color: var(--sj-brand);
    border: 1px solid var(--sj-brand-soft);
    box-shadow: none;
}
.btn-outline::after { display: none; }
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.btn-row .btn-primary,
.btn-row .btn-outline {
    width: auto;
    min-width: 120px;
    flex: 1;
    max-width: 160px;
    padding: 12px 16px;
}

/* 标签页 */
.tag-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    margin-bottom: 14px;
}
.tag-page-name { font-size: 16px; font-weight: 700; color: var(--sj-brand-deep); }
.tag-page-count { font-size: 12px; color: var(--sj-text-muted); margin-top: 2px; }
.tag-page-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.tag-page-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.tag-page-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--sj-border);
    border-radius: 20px;
    color: var(--sj-text);
}
.tag-page-item.active {
    background: var(--sj-brand-pale);
    border-color: var(--sj-brand-soft);
    color: var(--sj-brand);
}
.tag-page-item-count {
    font-size: 11px;
    color: var(--sj-text-muted);
}

/* 404 */
.not-found {
    text-align: center;
    padding: 48px 16px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
}
.not-found-code {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--sj-brand);
    opacity: 0.25;
    margin-bottom: 8px;
}
.not-found-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.not-found-desc { font-size: 13px; color: var(--sj-text-muted); margin-bottom: 20px; line-height: 1.6; }

/* 密码页 */
.password-page {
    max-width: 400px;
    margin: 24px auto;
    padding: 32px 20px;
    text-align: center;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    box-shadow: var(--sj-shadow);
}
.password-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.password-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.password-desc { font-size: 13px; color: var(--sj-text-muted); margin-bottom: 18px; }
.password-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    text-align: center;
    background: #fff;
}
.password-input:focus { border-color: var(--sj-brand); outline: none; }
.password-error { margin-top: 10px; color: #dc2626; font-size: 13px; }

/* 文章详情 */
.article-detail .detail-meta,
.article-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--sj-text-muted);
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--sj-border);
}
.article-detail-meta__row--date {
    line-height: 1.5;
}
.article-detail-meta__row--extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
}
.article-detail-meta__views { margin-left: 0; }
.article-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
}
.article-nav a {
    font-size: 13px;
    color: var(--sj-brand);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav span { font-size: 13px; color: #cbd5e1; }
.detail-tags {
    margin-top: 14px;
    padding: 12px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 评论区 */
.comment-section {
    margin-top: 14px;
    padding: 14px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
}
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sj-border);
}
.comment-header-left { display: flex; align-items: center; gap: 8px; }
.comment-title { font-size: 16px; font-weight: 700; }
.comment-count {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sj-brand);
    background: var(--sj-brand-pale);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.comment-sort {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
}
.comment-sort-btn {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--sj-text-muted);
    border-radius: 6px;
    cursor: pointer;
}
.comment-sort-btn.active {
    background: #fff;
    color: var(--sj-brand);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.08);
}
.comment-form-box {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sj-border);
}
.comment-form-wrapper { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sj-brand-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sj-brand);
}
.comment-form-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-form-body { flex: 1; min-width: 0; }
.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    background: #f8fafc;
}
.comment-textarea:focus {
    border-color: var(--sj-brand);
    background: #fff;
    outline: none;
}
.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.comment-char-count { font-size: 11px; color: var(--sj-text-muted); }
.comment-submit-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    border-radius: 8px;
    cursor: pointer;
}
.comment-submit-btn:disabled { opacity: 0.5; }
.comment-cancel-btn {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--sj-text-muted);
    background: #f1f5f9;
    border-radius: 8px;
}
.comment-login-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed var(--sj-border);
    font-size: 13px;
    color: var(--sj-text-muted);
}
.comment-login-btn {
    margin-left: auto;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--sj-brand);
    border: 1px solid var(--sj-brand-soft);
    border-radius: 8px;
}
.comment-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 39, 68, 0.06);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sj-brand-pale);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sj-brand);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-author { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-content { font-size: 13px; line-height: 1.55; color: var(--sj-text); word-break: break-word; }
.comment-meta { margin-top: 6px; font-size: 11px; color: var(--sj-text-muted); }
.comment-actions { margin-top: 6px; display: flex; gap: 12px; }
.comment-action-btn { font-size: 12px; color: var(--sj-text-muted); cursor: pointer; }
.comment-loading, .comment-empty {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--sj-text-muted);
}

/* 优惠券 */
.coupon-intro {
    font-size: 13px;
    color: var(--sj-text-muted);
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--sj-brand-pale);
    border-radius: 10px;
    line-height: 1.5;
}
.coupon-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.coupon-card {
    display: flex;
    background: #fff;
    border-radius: var(--sj-radius-sm);
    overflow: hidden;
    border: 1px solid var(--sj-border);
    box-shadow: 0 2px 8px rgba(15, 39, 68, 0.05);
}
.coupon-card__left {
    width: 100px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--sj-brand-deep), var(--sj-brand-soft));
    color: #fff;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.coupon-card__left::before,
.coupon-card__left::after {
    content: '';
    position: absolute;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #f4f5f7;
    border-radius: 50%;
}
.coupon-card__left::before { top: -6px; }
.coupon-card__left::after { bottom: -6px; }
.coupon-card__value { font-size: 22px; font-weight: 700; }
.coupon-card__caption { font-size: 11px; opacity: 0.9; margin-top: 4px; text-align: center; }
.coupon-card__right {
    flex: 1;
    min-width: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    border-left: 2px dashed var(--sj-border);
}
.coupon-card__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.coupon-card__desc { font-size: 12px; color: var(--sj-text-muted); line-height: 1.45; margin-bottom: 6px; }
.coupon-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--sj-text-muted); margin-bottom: 6px; }
.coupon-card__tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    font-weight: 500;
}
.coupon-card__code { font-size: 11px; margin-bottom: 8px; }
.coupon-card__code-val { font-family: monospace; color: var(--sj-brand); font-weight: 600; }
.coupon-card__actions { display: flex; gap: 8px; margin-top: auto; }
.coupon-btn {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.coupon-btn-ghost {
    background: #fff;
    color: var(--sj-brand);
    border: 1px solid var(--sj-brand-soft);
}
.coupon-btn-primary {
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    border: none;
}
.coupon-btn.is-disabled {
    background: #f1f5f9;
    color: var(--sj-text-muted);
    border: 1px solid var(--sj-border);
    cursor: not-allowed;
}

/* 订单结果 */
.order-result { max-width: 100%; }
.order-result-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    margin-bottom: 12px;
}
.order-result-card--success .order-result-icon { color: #10b981; }
.order-result-icon { font-size: 44px; color: #f59e0b; margin-bottom: 10px; }
.order-result-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.order-result-desc { font-size: 13px; color: var(--sj-text-muted); line-height: 1.5; }
.order-info-card {
    background: var(--sj-bg-card);
    border-radius: var(--sj-radius);
    border: 1px solid var(--sj-border);
    padding: 14px;
    margin-bottom: 12px;
}
.order-info-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sj-border);
}
.order-info-grid { display: flex; flex-direction: column; gap: 10px; }
.order-info-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.order-info-label { color: var(--sj-text-muted); flex-shrink: 0; }
.order-info-value {
    color: var(--sj-text);
    text-align: right;
    word-break: break-all;
}
.order-info-value--price { color: #dc2626; font-weight: 600; }
.order-info-value--mono { font-family: ui-monospace, monospace; font-size: 12px; }
.order-goods-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 39, 68, 0.06);
}
.order-goods-item:last-child { border-bottom: none; }
.order-goods-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef2f7;
}
.order-goods-img img { width: 100%; height: 100%; object-fit: cover; }
.order-goods-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 18px;
}
.order-goods-info { flex: 1; min-width: 0; }
.order-goods-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.order-goods-spec { font-size: 11px; color: var(--sj-text-muted); margin-top: 2px; }
.order-goods-qty { font-size: 12px; color: var(--sj-text-muted); flex-shrink: 0; }
.order-goods-price {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    flex-shrink: 0;
}
.order-delivery-content {
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}
.order-delivery-label { font-size: 12px; color: #059669; font-weight: 600; margin-bottom: 4px; }
.order-delivery-text { font-size: 13px; line-height: 1.6; word-break: break-all; }

/* 搜索 · 文章列表用横卡 */
.search-hint { font-size: 13px; color: var(--sj-text-muted); margin-bottom: 14px; }
.section-header--compact { margin-bottom: 12px; }
.section-title--sm { font-size: 15px; }
.section-title--sm::before { height: 14px; }
.search-results-block { margin-bottom: 24px; }
.sj-detail-content { margin-top: 14px; }
.order-result-actions { text-align: center; margin-top: 24px; }
.password-page .password-submit { width: 100%; }
.tag-page-header--empty { margin-bottom: 24px; }
.search-box .btn-primary {
    width: auto;
    flex-shrink: 0;
    padding: 12px 18px;
}
.search-box .btn-primary::after { display: none; }

/* 隐藏桌面侧边栏布局残留 */
.blog-sidebar, .sidebar-widget { display: none !important; }
.blog-layout { display: block !important; }

/* wrapper 兼容 */
.wrapper { max-width: 100%; padding: 0; }

/* ============================================================
   商城首页 · sj-home（仅 goods_index，:has 限定不改其他页）
   ============================================================ */
.sj-shell:has(.sj-home) {
    background: #f4f5f7;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.06);
    /* 首页不按整屏撑高，避免内容与底栏之间出现大块空白 */
    min-height: 0;
    padding-bottom: calc(var(--sj-tabbar-h) + var(--sj-tabbar-float-gap) + env(safe-area-inset-bottom, 0px));
}
.sj-shell:has(.sj-home) .sj-ambient {
    display: none;
}
.sj-main:has(.sj-home),
#main:has(.sj-home) {
    background: #f4f5f7;
    min-height: 0;
    padding-bottom: 12px;
}
.sj-home {
    margin: 0 -12px;
    padding: 0 12px 0;
    min-height: 0;
}

.sj-home-hero .hero-carousel {
    margin: 0 0 14px;
    border-radius: var(--sj-radius);
    box-shadow: var(--sj-shadow);
    border: 1px solid var(--sj-border);
}

.sj-home-announce {
    margin-bottom: 14px;
    border-radius: var(--sj-radius);
    overflow: hidden;
}

.sj-home-block {
    margin-bottom: 22px;
}

.sj-home-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sj-home-block__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--sj-brand-deep);
    padding-left: 10px;
    position: relative;
}

.sj-home-block__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sj-brand), var(--sj-brand-soft));
}

.sj-home-block__more {
    font-size: 12px;
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    gap: 2px;
}

.sj-home-cats-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sj-home-cats-scroll::-webkit-scrollbar { display: none; }

.sj-home-cat {
    flex-shrink: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    text-align: center;
}

.sj-home-cat__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.sj-home-cat__icon--all {
    background: linear-gradient(145deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
}

.sj-home-cat__icon--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-home-cat__name {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--sj-text);
}

.sj-home-cat__count {
    font-size: 10px;
    color: var(--sj-brand);
    background: var(--sj-brand-pale);
    padding: 0 6px;
    border-radius: 8px;
}

.sj-home-hscroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sj-home-hscroll::-webkit-scrollbar { display: none; }

.sj-home-hcard {
    flex-shrink: 0;
    width: 132px;
    overflow: hidden;
}

.sj-home-hcard__img {
    position: relative;
    aspect-ratio: 1;
    background: var(--sj-brand-pale);
    border-radius: var(--sj-radius-sm) var(--sj-radius-sm) 0 0;
    overflow: hidden;
}

.sj-home-hcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-home-hcard__body {
    padding: 8px 10px 10px;
}

.sj-home-hcard__title {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.sj-home-hcard__price {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sj-home-hcard__price .price { font-size: 14px; }

.sj-home-hcard__sold {
    font-size: 10px;
    color: var(--sj-text-muted);
}

.sj-home-grid {
    gap: 10px;
}

.sj-home-gcard {
    border-radius: var(--sj-radius-sm);
}

.sj-home-gcard .card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
}
.sj-home-gcard .card-stats__stock {
    flex-shrink: 0;
}
.sj-home-gcard .card-stats__sold {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
}

/* 首页发货标签：自动(绿) / 人工(橙) */
.sj-home .goods-badge--auto {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.32);
}
.sj-home .goods-badge--manual {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.32);
}

.sj-home-empty {
    text-align: center;
    padding: 36px 20px;
}

.sj-home-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--sj-brand-pale);
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sj-home-empty h3 { font-size: 16px; margin-bottom: 6px; }
.sj-home-empty p { font-size: 13px; color: var(--sj-text-muted); margin-bottom: 14px; }

.sj-home-empty__btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sj-brand), var(--sj-brand-soft));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sj-home-all-goods {
    margin-top: 12px;
    text-align: center;
}

.sj-home-all-goods__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sj-border);
    color: var(--sj-brand);
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.2s, border-color 0.2s;
}

.sj-home-all-goods__btn:active {
    background: var(--sj-brand-pale);
    border-color: var(--sj-brand-soft);
}

.sj-home-newlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sj-home-newitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.sj-home-newitem__img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sj-brand-pale);
}

.sj-home-newitem__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-home-newitem__info {
    flex: 1;
    min-width: 0;
}

.sj-home-newitem__title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sj-home-newitem__arrow {
    color: var(--sj-text-muted);
    font-size: 16px;
}

.sj-home-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sj-home-article {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: center;
}

.sj-home-article__thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sj-brand-pale);
}

.sj-home-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-home-article__body {
    flex: 1;
    min-width: 0;
}

.sj-home-article__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sj-home-article__meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--sj-text-muted);
    display: flex;
    gap: 10px;
}

.sj-home-block--articles { margin-bottom: 4px; }

/* 首页在 #main 内时收紧顶距 */
.sj-main .sj-home,
#main .sj-home {
    padding-top: 0;
}

/* 首页版权条与灰底衔接 */
.sj-shell:has(.sj-home) .sj-mini-footer {
    background: #f4f5f7;
}

/* 商品详情：独立底栏 + 购买抽屉 */
body:has(.sj-goods-detail) #sjTabbar {
    display: none !important;
}
body:has(.sj-goods-detail) .sj-main {
    padding-bottom: calc(var(--sj-goods-bar-h) + var(--sj-tabbar-float-gap) + 20px + env(safe-area-inset-bottom, 0px));
}
.sj-goods-bar {
    display: none;
    position: fixed;
    z-index: 600;
    left: max(12px, calc(50% - var(--sj-max-w) / 2 + 12px));
    right: max(12px, calc(50% - var(--sj-max-w) / 2 + 12px));
    bottom: calc(var(--sj-tabbar-float-gap) + env(safe-area-inset-bottom, 0px));
    height: var(--sj-goods-bar-h);
    padding: 8px 10px;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--sj-border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(29, 78, 216, 0.14);
    backdrop-filter: blur(12px);
}
body:has(.sj-goods-detail) .sj-goods-bar {
    display: flex;
}
.sj-goods-bar__item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 52px;
    padding: 0 8px;
    color: var(--sj-text-muted);
    font-size: 11px;
}
.sj-goods-bar__icon { font-size: 20px; line-height: 1; color: var(--sj-brand); }
.sj-goods-bar__buy {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--sj-brand-deep), var(--sj-brand));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    cursor: pointer;
}
.sj-goods-bar__buy:active { opacity: 0.92; transform: scale(0.98); }
.sj-goods-buy-drawer .sj-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    background: #fff;
}
.sj-goods-buy-drawer__foot {
    flex-shrink: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--sj-border);
}
.sj-goods-buy-drawer__submit {
    width: 100%;
    display: block;
}
.sj-goods-buy-drawer .spec-section:first-child { margin-top: 0; }
