/* ============================================================
 * Shop Theme - Main Stylesheet
 * 完整版：全局 / 头部 / 用户菜单 / 商品 / 购物车 / 结算 / 用户中心
 *       / 虚拟商品 / 分类页 / 评论 / 收藏 / 聊天 / 个人中心英雄区
 *       / 铃铛通知 / 消息页 tab
 * ============================================================ */

/* ============================================================
 * 1. 全局重置
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.shop-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

.shop-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-muted { color: #64748b; }

/* ============================================================
 * 2. Header
 * ============================================================ */
.shop-header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.92);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.shop-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    text-decoration: none;
}
.shop-logo:hover { color: #0f172a; }
.shop-logo img { max-height: 40px; width: auto; }

.shop-nav { flex: 1; min-width: 0; }
.shop-menu,
.shop-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.shop-menu li { position: relative; }
.shop-menu > li > a {
    display: block;
    padding: 8px 14px;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-menu > li > a:hover { background: #f1f5f9; color: #0f172a; }

.shop-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.shop-menu li:hover > .shop-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.shop-submenu a {
    display: block;
    padding: 8px 12px;
    color: #334155;
    border-radius: 6px;
    font-size: 0.9rem;
}
.shop-submenu a:hover { background: #f1f5f9; }

.shop-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.shop-search {
    position: relative;
    display: flex;
    align-items: center;
}
.shop-search input {
    width: 220px;
    padding: 8px 40px 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8fafc;
    outline: none;
    transition: background 0.15s, border-color 0.15s;
}
.shop-search input:focus { background: #fff; border-color: #2563eb; }
.shop-search button {
    position: absolute;
    right: 4px;
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.shop-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #334155;
    font-size: 1.15rem;
    transition: background 0.15s;
    text-decoration: none;
    position: relative;
}
.shop-icon-btn:hover { background: #f1f5f9; color: #0f172a; }

/* ============================================================
 * 3. 用户菜单（头像 + 下拉弹窗）
 * ============================================================ */
.shop-user-menu { position: relative; }

.shop-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
}
.shop-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.shop-avatar-guest {
    background: #f1f5f9;
    color: #475569;
    font-size: 1.2rem;
}
.shop-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.shop-avatar-letter { line-height: 1; }

.shop-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 200;
}
.shop-user-menu.is-open .shop-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (min-width: 769px) {
    .shop-user-menu:hover .shop-user-dropdown,
    .shop-user-menu:focus-within .shop-user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.shop-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.shop-user-meta { min-width: 0; flex: 1; }
.shop-user-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-user-email {
    font-size: 0.82rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-user-divider {
    height: 1px;
    background: #e9edf2;
    margin: 10px 0;
}

.shop-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.shop-user-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-width: 0;
}
.shop-user-grid-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.shop-user-grid-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.shop-user-bottom {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.shop-user-bottom-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    min-width: 0;
    white-space: nowrap;
}
.shop-user-bottom-admin {
    background: #eff6ff;
    color: #1d4ed8;
}
.shop-user-bottom-admin:hover {
    background: #dbeafe;
    color: #1d4ed8;
}
.shop-user-bottom-form {
    flex: 1;
    margin: 0;
    display: flex;
    min-width: 0;
}
.shop-user-bottom-logout {
    background: #fef2f2;
    color: #dc2626;
    width: 100%;
}
.shop-user-bottom-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

.shop-guest-dropdown { min-width: 260px; }
.shop-guest-inner { text-align: center; }
.shop-guest-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.shop-guest-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
}

.shop-cart-btn { position: relative; }
.shop-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}
.shop-cart-count.has-items { display: inline-flex; }

/* ============================================================
 * 4. 主布局 / 区域
 * ============================================================ */
.shop-content { min-height: 60vh; }
.shop-area { padding: 48px 0; }
.shop-area-hero { padding: 0; }
.shop-area-features {
    padding: 24px 0;
    background: #f8fafc;
    border-top: 1px solid #e9edf2;
    border-bottom: 1px solid #e9edf2;
}
.shop-area-categories,
.shop-area-main { padding: 48px 0; }

.shop-content-page { padding: 48px 0; }
.shop-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}
@media (min-width: 1024px) {
    .shop-page-layout:has(.shop-page-sidebar) {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}
.shop-page-main { min-width: 0; }
.shop-page-sidebar { min-width: 0; }

.shop-empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #64748b;
}
.shop-empty-state h1 {
    font-size: 2rem;
    color: #0f172a;
    margin: 16px 0 8px;
}

/* ============================================================
 * 5. Blocks / 标题
 * ============================================================ */
.shop-block { padding: 48px 24px; max-width: 1280px; margin: 0 auto; }
.shop-block-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* ============================================================
 * 6. 按钮
 * ============================================================ */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}
.shop-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    color: #0f172a;
}
.shop-btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.shop-btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.shop-btn-block { display: flex; width: 100%; text-align: center; }

.shop-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.shop-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.shop-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.shop-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    box-shadow: none;
}
.shop-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: none;
    box-shadow: none;
}

.shop-btn-danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.shop-btn-danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.shop-btn-buy-now {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.shop-btn-buy-now:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}
.shop-btn-buy-now:disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ============================================================
 * 7. Hero
 * ============================================================ */
.shop-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.shop-hero-small  { min-height: 240px; padding: 48px 24px; }
.shop-hero-medium { min-height: 400px; padding: 64px 24px; }
.shop-hero-large  { min-height: 560px; padding: 96px 24px; }

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
    z-index: 1;
}
.shop-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.shop-hero-left   .shop-hero-inner { text-align: left; }
.shop-hero-center .shop-hero-inner { text-align: center; }
.shop-hero-right  .shop-hero-inner { text-align: right; }

.shop-hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.shop-hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0 0 32px;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.1);
    max-width: 720px;
}
.shop-hero-center .shop-hero-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
 * 8. Feature Icons
 * ============================================================ */
.shop-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.shop-feature { text-align: center; }
.shop-feature-icon { font-size: 2.4rem; margin-bottom: 12px; }
.shop-feature-title { font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.shop-feature-desc { font-size: 0.9rem; color: #64748b; }

/* ============================================================
 * 9. Product Grid
 * ============================================================ */
.shop-product-grid {
    display: grid;
    gap: 24px;
}
.shop-product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.shop-product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shop-product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
    .shop-product-grid.cols-3,
    .shop-product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .shop-product-grid.cols-2,
    .shop-product-grid.cols-3,
    .shop-product-grid.cols-4 { grid-template-columns: 1fr; }
}

.shop-product-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9edf2;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    color: inherit;
    text-decoration: none;
}
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}
.shop-product-image {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.shop-product-card:hover .shop-product-image img { transform: scale(1.04); }
.shop-product-placeholder {
    font-size: 3rem;
    color: #cbd5e1;
}
.shop-product-body { padding: 14px 16px 18px; }
.shop-product-name {
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
    line-height: 1.2;
}
.shop-product-price {
    font-weight: 700;
    color: #dc2626;
    font-size: 1.05rem;
}

/* ============================================================
 * 10. Category Grid
 * ============================================================ */
.shop-category-grid { display: grid; gap: 20px; }
.shop-category-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.shop-category-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.shop-category-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
    .shop-category-grid.cols-2,
    .shop-category-grid.cols-3,
    .shop-category-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.shop-category-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9edf2;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
    text-decoration: none;
}
.shop-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    color: inherit;
}
.shop-category-image {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-category-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-category-placeholder { font-size: 2.4rem; color: #cbd5e1; }
.shop-category-name {
    padding: 12px 8px;
    font-weight: 600;
    color: #0f172a;
}

/* ============================================================
 * 11. Text Block
 * ============================================================ */
.shop-text-block { padding: 0; }
.shop-text-inner { padding: 48px 0; max-width: 800px; margin: 0 auto; }
.shop-text-content { color: #334155; line-height: 1.8; }
.shop-text-content h2 { font-size: 1.5rem; margin: 24px 0 12px; color: #0f172a; }
.shop-text-content h3 { font-size: 1.25rem; margin: 20px 0 10px; color: #0f172a; }
.shop-text-content p { margin: 0 0 16px; }
.shop-text-content ul,
.shop-text-content ol { padding-left: 24px; margin: 0 0 16px; }
.shop-text-content a { color: #2563eb; text-decoration: underline; }

/* ============================================================
 * 12. 商品详情
 * ============================================================ */

.shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 20px;
}
.shop-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}
.shop-breadcrumb a:hover {
    color: #2563eb;
    text-decoration: underline;
}
.shop-breadcrumb-sep {
    color: #cbd5e1;
    user-select: none;
}

.shop-product-detail { padding: 48px 0; }
.shop-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .shop-product-detail-grid { grid-template-columns: 1fr 1fr; }
}

.shop-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.shop-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.shop-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f8fafc;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s;
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-thumb.active,
.shop-thumb:hover { border-color: #2563eb; }

.shop-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.2;
}
.shop-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop-product-price-lg {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
}
.shop-product-price-original {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.shop-product-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.shop-product-discount {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.shop-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #e9edf2;
    border-bottom: 1px solid #e9edf2;
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 20px;
}

.shop-product-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.shop-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.shop-qty button {
    width: 36px;
    height: 40px;
    background: #f8fafc;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #334155;
    transition: background 0.15s;
}
.shop-qty button:hover { background: #e2e8f0; }
.shop-qty input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
}
.shop-qty input::-webkit-outer-spin-button,
.shop-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-product-service-note {
    margin-top: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.7;
}
.shop-product-service-note strong {
    color: #1e40af;
}

.shop-product-delivery-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}
@media (min-width: 640px) {
    .shop-product-delivery-info {
        grid-template-columns: 1fr 1fr;
    }
}
.shop-delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #166534;
}
.shop-delivery-item strong {
    color: #14532d;
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}
.shop-delivery-item > div > div {
    color: #166534;
    opacity: 0.85;
}
.shop-delivery-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.shop-product-description {
    color: #334155;
    line-height: 1.8;
    padding-top: 20px;
    border-top: 1px solid #e9edf2;
}
.shop-product-description img {
    border-radius: 8px;
    margin: 12px 0;
}

.shop-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9edf2;
}

/* ============================================================
 * 13. 购物车
 * ============================================================ */
.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
}
@media (min-width: 1024px) {
    .shop-cart-layout { grid-template-columns: 1fr 340px; }
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e9edf2;
}
.shop-cart-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-cart-price { color: #dc2626; font-weight: 600; }

.shop-cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}
.shop-cart-qty button {
    width: 30px;
    height: 32px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    color: #334155;
    transition: background 0.15s;
}
.shop-cart-qty button:hover { background: #e2e8f0; }
.shop-cart-qty input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
    -moz-appearance: textfield;
}
.shop-cart-qty input::-webkit-outer-spin-button,
.shop-cart-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-cart-line-total {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    min-width: 80px;
}
.shop-cart-remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.15s;
    line-height: 1;
}
.shop-cart-remove:hover { color: #dc2626; }

@media (max-width: 640px) {
    .shop-cart-item {
        grid-template-columns: 60px 1fr auto;
        grid-template-areas:
            "thumb info remove"
            "thumb qty  total";
        row-gap: 8px;
    }
    .shop-cart-thumb { grid-area: thumb; width: 60px; height: 60px; }
    .shop-cart-info  { grid-area: info; }
    .shop-cart-qty   { grid-area: qty; }
    .shop-cart-line-total { grid-area: total; }
    .shop-cart-remove { grid-area: remove; justify-self: end; }
}

/* ============================================================
 * 14. 结算
 * ============================================================ */
.shop-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
}
@media (min-width: 1024px) {
    .shop-checkout-layout { grid-template-columns: 1fr 340px; }
}

.shop-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.shop-card h2,
.shop-card h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: #0f172a;
}

.shop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.shop-form-full { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .shop-form-grid { grid-template-columns: 1fr; }
}

.shop-form-grid label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}
.shop-form-grid input,
.shop-form-grid textarea,
.shop-form-grid select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #ffffff;
}
.shop-form-grid input:focus,
.shop-form-grid textarea:focus,
.shop-form-grid select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.shop-form-grid textarea { resize: vertical; min-height: 80px; }

.shop-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.shop-payment-option:hover { border-color: #cbd5e1; background: #f8fafc; }
.shop-payment-option input[type="radio"] { margin: 0; accent-color: #2563eb; }
.shop-payment-option input[type="radio"]:checked + .shop-payment-icon + span {
    font-weight: 600;
}
.shop-payment-icon { font-size: 1.3rem; }

.shop-virtual-notice {
    padding: 14px 18px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.shop-order-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}
.shop-order-type-virtual {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.shop-order-type-mixed {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.shop-flash {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
}
.shop-flash-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}
.shop-flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.shop-checkout-success {
    max-width: 640px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
}
.shop-checkout-success h1 {
    font-size: 2rem;
    color: #0f172a;
    margin: 16px 0;
}

.shop-payment-info {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    text-align: left;
}
.shop-payment-info h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #0f172a;
}
.shop-payment-info p {
    margin: 6px 0;
    color: #475569;
}

/* ============================================================
 * 15. 侧栏 / 摘要
 * ============================================================ */
.shop-cart-summary,
.shop-checkout-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}
.shop-cart-summary h2,
.shop-checkout-summary h2 {
    font-size: 1.15rem;
    margin: 0 0 16px;
    color: #0f172a;
}
.shop-summary-row,
.shop-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.92rem;
    color: #64748b;
    gap: 12px;
}
.shop-summary-item span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid #e9edf2;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 1023px) {
    .shop-cart-summary,
    .shop-checkout-summary { position: static; }
}

/* ============================================================
 * 16. 用户中心：个人资料卡（旧样式，保留兼容）
 * ============================================================ */
.shop-profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .shop-profile-layout { grid-template-columns: 280px 1fr; }
}

.shop-profile-card {
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 100px;
}
@media (max-width: 1023px) { .shop-profile-card { position: static; } }

.shop-profile-avatar { margin: 0 auto 12px; }
.shop-profile-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    word-break: break-word;
}
.shop-profile-role {
    display: inline-block;
    padding: 2px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.shop-profile-meta {
    text-align: left;
    padding-top: 16px;
    border-top: 1px solid #e9edf2;
}
.shop-profile-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    gap: 12px;
}
.shop-profile-meta-row > span { color: #94a3b8; flex-shrink: 0; }
.shop-profile-meta-row > strong {
    color: #334155;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
 * 17. 用户中心：订单
 * ============================================================ */
.shop-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.shop-order-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    overflow: hidden;
}
.shop-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e9edf2;
}
.shop-order-no {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.shop-order-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}
.shop-order-header-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.shop-order-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.5;
}
.shop-order-type-tag.type-physical {
    background: #f1f5f9;
    color: #475569;
}
.shop-order-type-tag.type-virtual {
    background: #eff6ff;
    color: #1d4ed8;
}
.shop-order-type-tag.type-mixed {
    background: #fef3c7;
    color: #92400e;
}

.shop-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-warn  { background: #fef3c7; color: #92400e; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-gray  { background: #f1f5f9; color: #64748b; }
.badge-blue  { background: #dbeafe; color: #1e40af; }

.shop-order-body {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    padding: 16px 20px;
}
@media (max-width: 640px) {
    .shop-order-body { grid-template-columns: 1fr; }
}

.shop-order-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-order-item {
    display: grid;
    grid-template-columns: 1fr 60px 100px;
    gap: 8px;
    font-size: 0.88rem;
    color: #334155;
    align-items: center;
}
.shop-order-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-order-item-qty { color: #94a3b8; text-align: center; }
.shop-order-item-price {
    text-align: right;
    color: #475569;
    font-weight: 500;
}
.shop-order-item-more {
    font-size: 0.8rem;
    color: #94a3b8;
    padding-top: 4px;
}

.shop-order-summary {
    border-left: 1px solid #e9edf2;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 640px) {
    .shop-order-summary {
        border-left: none;
        border-top: 1px solid #e9edf2;
        padding-left: 0;
        padding-top: 16px;
    }
}
.shop-order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 8px;
}
.shop-order-summary-row > span { color: #94a3b8; }
.shop-order-summary-row > strong { color: #334155; }

.shop-order-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    background: #fafbfc;
    border-top: 1px solid #e9edf2;
    flex-wrap: wrap;
}

.shop-order-detail {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e9edf2;
}
.shop-order-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.shop-order-detail-table th,
.shop-order-detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9edf2;
    text-align: left;
}
.shop-order-detail-table th {
    background: #ffffff;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.8rem;
}

.shop-type-badge-inline {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

.shop-order-detail-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e9edf2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
}
.shop-order-detail-meta > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.shop-order-detail-meta > div > span {
    color: #94a3b8;
    min-width: 90px;
    flex-shrink: 0;
}

@keyframes shop-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}
.shop-order-detail-table a[href^="/download/"] {
    animation: shop-pulse 1.5s ease-out;
}

/* ============================================================
 * 18. Footer
 * ============================================================ */
.shop-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 24px;
    margin-top: 80px;
}
.shop-footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.shop-footer-col-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px;
}
.shop-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-footer-links li { margin-bottom: 8px; }
.shop-footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.shop-footer-links a:hover { color: #ffffff; }

.shop-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
}
.shop-footer-bottom a { color: #94a3b8; }
.shop-footer-bottom a:hover { color: #ffffff; }

/* ============================================================
 * 19. 分页
 * ============================================================ */
.shop-pagination {
    display: flex;
    gap: 6px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s;
}
.shop-pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.shop-pagination .current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    cursor: default;
}

/* ============================================================
 * 20. 通用响应式
 * ============================================================ */
@media (max-width: 1023px) {
    .shop-container { padding: 0 20px; }
    .shop-block { padding: 40px 20px; }
    .shop-block-title { font-size: 1.5rem; }
    .shop-area { padding: 40px 0; }
}

@media (max-width: 768px) {
    .shop-header-inner {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }
    .shop-logo { font-size: 1.2rem; }
    .shop-nav { order: 3; width: 100%; }
    .shop-menu { flex-wrap: wrap; gap: 4px; }
    .shop-search input { width: 140px; }
    .shop-area { padding: 32px 0; }
    .shop-block { padding: 32px 16px; }
    .shop-block-title { font-size: 1.35rem; margin-bottom: 20px; }

    .shop-product-title { font-size: 1.5rem; }
    .shop-product-price-lg { font-size: 1.6rem; }
    .shop-gallery-thumbs { gap: 6px; }
    .shop-thumb { width: 60px; height: 60px; }

    .shop-user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px;
        transform: translateY(100%);
        max-height: 80vh;
        overflow-y: auto;
    }
    .shop-user-menu.is-open .shop-user-dropdown {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .shop-container { padding: 0 16px; }
    .shop-block { padding: 24px 16px; }
    .shop-hero-small  { padding: 32px 16px; min-height: 180px; }
    .shop-hero-medium { padding: 48px 16px; min-height: 300px; }
    .shop-hero-large  { padding: 64px 16px; min-height: 400px; }
    .shop-hero-heading { font-size: 1.75rem; }
    .shop-hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
    .shop-btn { padding: 10px 22px; font-size: 0.9rem; }
    .shop-btn-lg { padding: 12px 28px; font-size: 1rem; }

    .shop-features { gap: 20px; padding: 0 16px; }
    .shop-feature-icon { font-size: 2rem; }

    .shop-product-actions { flex-direction: column; align-items: stretch; }
    .shop-qty { justify-content: center; }
    .shop-product-actions .shop-btn { width: 100%; }

    .shop-cart-summary,
    .shop-checkout-summary { padding: 20px; }

    .shop-checkout-success { padding: 32px 16px; margin: 32px auto; }
    .shop-checkout-success h1 { font-size: 1.5rem; }

    .shop-user-grid { gap: 6px; }
    .shop-user-grid-item { padding: 12px 6px; font-size: 0.8rem; }
    .shop-user-grid-icon { font-size: 1.15rem; }
    .shop-user-bottom-item { padding: 8px 10px; font-size: 0.82rem; }

    .shop-order-type-tag {
        margin-left: 0;
        margin-top: 4px;
    }
    .shop-order-detail-meta > div > span {
        min-width: 70px;
    }
}

/* ============================================================
 * 21. 工具类
 * ============================================================ */
.shop-hidden { display: none !important; }
.shop-text-center { text-align: center; }
.shop-text-right { text-align: right; }
.shop-mt-0 { margin-top: 0 !important; }
.shop-mb-0 { margin-bottom: 0 !important; }

/* ============================================================
 * 22. 分类页
 * ============================================================ */
.shop-category-page { padding: 40px 0; }

.shop-category-header { margin-bottom: 20px; }

.shop-category-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
    max-width: 720px;
}

.shop-category-meta {
    color: #94a3b8;
    font-size: 0.85rem;
}

.shop-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9edf2;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shop-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* ============================================================
 * 23. 收藏按钮
 * ============================================================ */
.shop-btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    font-family: inherit;
}
.shop-btn-favorite:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.shop-btn-favorite:active {
    transform: scale(0.96);
}
.shop-btn-favorite.is-favorited {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.shop-btn-favorite [data-favorite-icon] {
    font-size: 1rem;
    line-height: 1;
}
.shop-btn-favorite [data-favorite-count] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
 * 24. 评分预览（商品信息区）
 * ============================================================ */
.shop-product-rating-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.shop-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 1.05rem;
    line-height: 1;
}
.shop-rating-text {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}
.shop-rating-text .shop-muted {
    font-weight: 400;
    font-size: 0.85rem;
}
.shop-rating-jump {
    color: #2563eb;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: auto;
}
.shop-rating-jump:hover {
    text-decoration: underline;
}

/* ============================================================
 * 25. 评论区
 * ============================================================ */
.shop-reviews {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9edf2;
}

.shop-reviews-header {
    margin-bottom: 20px;
}

.shop-rating-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    margin-bottom: 24px;
}
@media (max-width: 640px) {
    .shop-rating-summary { grid-template-columns: 1fr; gap: 16px; }
}

.shop-rating-avg {
    text-align: center;
    padding-right: 24px;
    border-right: 1px solid #e9edf2;
}
@media (max-width: 640px) {
    .shop-rating-avg { border-right: none; border-bottom: 1px solid #e9edf2; padding: 0 0 16px 0; }
}

.shop-rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}
.shop-rating-stars {
    color: #f59e0b;
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.shop-rating-count {
    color: #94a3b8;
    font-size: 0.85rem;
}

.shop-rating-dist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.shop-rating-bar {
    display: grid;
    grid-template-columns: 36px 1fr 40px;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
}
.shop-rating-bar-label {
    color: #64748b;
    text-align: right;
    font-weight: 500;
}
.shop-rating-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.shop-rating-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.3s;
}
.shop-rating-bar-count {
    color: #64748b;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.shop-review-form-wrap {
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}
.shop-review-form-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 16px;
}
.shop-review-verified-hint {
    display: inline-block;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    border-radius: 6px;
    margin-bottom: 16px;
}
.shop-review-form textarea,
.shop-review-reply-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
    box-sizing: border-box;
}
.shop-review-form textarea:focus,
.shop-review-reply-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.shop-rating-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.shop-rating-input-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
}
.shop-rating-input {
    display: inline-flex;
    gap: 4px;
}
.shop-star-pick {
    font-size: 1.6rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.1s, transform 0.1s;
    line-height: 1;
    user-select: none;
}
.shop-star-pick.active,
.shop-star-pick:hover {
    color: #f59e0b;
}
.shop-star-pick:active {
    transform: scale(1.15);
}
.shop-rating-input-hint {
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 500;
}

.shop-reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.shop-reviews-empty p {
    margin-top: 12px;
    font-size: 0.95rem;
}

.shop-review {
    padding: 20px 0;
    border-bottom: 1px solid #e9edf2;
}
.shop-review:last-child { border-bottom: none; }

.shop-review-header {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.shop-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.shop-review-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-review-time {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 2px;
}
.shop-review-rating {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.shop-badge-verified {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.shop-review-content {
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 52px;
}

.shop-review-actions {
    padding-left: 52px;
    margin-bottom: 12px;
}
.shop-review-action-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.shop-review-action-btn:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.shop-review-reply-form {
    margin: 12px 0 0 52px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
}
.shop-review-reply-form .shop-form-grid {
    margin-bottom: 8px;
    gap: 8px;
}
.shop-review-reply-form input[type="text"],
.shop-review-reply-form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.shop-review-reply-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.shop-review-replies {
    margin: 12px 0 0 52px;
    padding-left: 16px;
    border-left: 2px solid #e9edf2;
}
.shop-review-reply {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}
.shop-review-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.shop-review-reply-body {
    flex: 1;
    min-width: 0;
}
.shop-review-reply-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-review-reply-time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
}
.shop-review-reply-content {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .shop-review-content,
    .shop-review-actions { padding-left: 0; }
    .shop-review-reply-form,
    .shop-review-replies { margin-left: 0; }
    .shop-review-header { grid-template-columns: 36px 1fr; }
    .shop-review-rating { grid-column: 2; margin-top: 4px; }
}

/* ============================================================
 * 26. 聊天界面
 * ============================================================ */
.shop-chat {
    display: flex;
    flex-direction: column;
    height: 70vh;
    min-height: 400px;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.shop-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    align-self: flex-start;
}
.shop-chat-msg.is-mine { align-self: flex-end; }
.shop-chat-msg.is-peer { align-self: flex-start; }

.shop-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.55;
    font-size: 0.92rem;
    word-break: break-word;
    white-space: pre-wrap;
}
.shop-chat-msg.is-mine .shop-chat-bubble {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.shop-chat-msg.is-peer .shop-chat-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e9edf2;
    border-bottom-left-radius: 4px;
}

.shop-chat-time {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}
.shop-chat-msg.is-mine .shop-chat-time { text-align: right; }

.shop-chat-product-card {
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 200px;
}
.shop-chat-msg.is-mine .shop-chat-product-card {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.shop-chat-product-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 6px;
}
.shop-chat-product-text {
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.shop-chat-product-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.shop-chat-product-link:hover { text-decoration: underline; }

.shop-chat-form {
    border-top: 1px solid #e9edf2;
    padding: 12px 16px;
    background: #fff;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.shop-chat-input {
    flex: 1;
    resize: none;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    max-height: 120px;
    min-height: 44px;
    box-sizing: border-box;
}
.shop-chat-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.shop-chat-send-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    height: 44px;
}
.shop-chat-send-btn:hover { background: #1d4ed8; }
.shop-chat-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.shop-chat-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    font-size: 0.92rem;
}

.shop-chat-context {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.shop-chat-context-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.92rem;
}
.shop-chat-context-link:hover { text-decoration: underline; }

/* ============================================================
 * 27. 用户中心：英雄区（全宽背景）
 * ============================================================ */
.shop-user-hero {
    position: relative;
    width: 100%;
    height: 260px;
    background-color: #1e293b;
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 90px;
    overflow: visible;
}

.shop-user-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0.15) 0%,
        rgba(15, 23, 42, 0.35) 60%,
        rgba(15, 23, 42, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.shop-user-hero-inner {
    position: relative;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
}

/* 用户信息 pill（跨界 + 玻璃态，承载 7 项信息） */
.shop-user-hero-profile {
    position: absolute;
    left: 24px;
    bottom: -58px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 28px 12px 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
    color: #fff;
    z-index: 3;
    max-width: calc(100% - 48px);
}

.shop-user-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.shop-user-hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shop-user-hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-user-hero-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.shop-user-hero-role {
    display: inline-block;
    padding: 1px 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.shop-user-hero-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.shop-user-hero-dot {
    color: rgba(255, 255, 255, 0.4);
}

.shop-user-hero-times {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2px;
    line-height: 1.4;
}

.shop-user-hero-times > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ============================================================
 * 28. 用户中心：下方内容区
 * ============================================================ */
.shop-user-body {
    padding: 0 0 60px;
}

.shop-user-body-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.shop-user-sidebar {
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 20px 16px;
    position: sticky;
    top: 88px;
}

.shop-user-sidebar-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px 12px;
    border-bottom: 1px solid #e9edf2;
    margin-bottom: 12px;
}

.shop-user-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-user-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.shop-user-nav-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.shop-user-nav-item.is-active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 500;
}
.shop-user-nav-item.is-active:hover {
    background: #1d4ed8;
    color: #ffffff;
}
.shop-user-nav-icon { font-size: 1rem; flex-shrink: 0; }
.shop-user-nav-label { flex: 1; }
.shop-user-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.shop-user-main {
    min-width: 0;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 24px;
}

/* ============================================================
 * 29. 用户下拉菜单：信息中心
 * ============================================================ */
.shop-user-msg-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}
.shop-user-msg-link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.shop-user-msg-icon { font-size: 1.05rem; }
.shop-user-msg-text { flex: 1; }
.shop-user-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* ============================================================
 * 30. 我的商品
 * ============================================================ */
.shop-my-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-my-product-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-my-product-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.shop-my-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-my-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-my-product-info { min-width: 0; }
.shop-my-product-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.shop-my-product-name a { color: inherit; text-decoration: none; }
.shop-my-product-name a:hover { color: #2563eb; }
.shop-my-product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}
.shop-my-product-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .shop-my-product-item { grid-template-columns: 60px 1fr; }
    .shop-my-product-image { width: 60px; height: 60px; }
    .shop-my-product-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ============================================================
 * 31. 信息中心（会话列表）
 * ============================================================ */
.shop-conv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-conv-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.shop-conv-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: inherit;
}
.shop-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.shop-conv-body { flex: 1; min-width: 0; }
.shop-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.shop-conv-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}
.shop-conv-time {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.shop-conv-preview {
    font-size: 0.85rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-conv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #dc2626;
    color: #fff;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
 * 32. 封面预览
 * ============================================================ */
.shop-cover-preview {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9edf2;
}

.shop-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cover-empty {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ============================================================
 * 33. 用户中心响应式（英雄区 + 侧边栏）
 * ============================================================ */
@media (max-width: 900px) {
    .shop-user-body-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .shop-user-sidebar {
        position: static;
        padding: 14px 12px;
    }
    .shop-user-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .shop-user-nav::-webkit-scrollbar { display: none; }
    .shop-user-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .shop-user-nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    .shop-user-sidebar-title { display: none; }
    .shop-user-main { padding: 16px; }
}

@media (max-width: 768px) {
    .shop-user-hero {
        height: 200px;
        margin-bottom: 80px;
    }
    .shop-user-hero-inner {
        padding: 0 16px;
    }
    .shop-user-hero-profile {
        left: 16px;
        bottom: -48px;
        padding: 10px 20px 10px 10px;
        gap: 12px;
        border-radius: 16px;
    }
    .shop-user-hero-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.35rem;
        border-width: 2px;
    }
    .shop-user-hero-name { font-size: 0.95rem; max-width: 160px; }
    .shop-user-hero-role { font-size: 0.68rem; padding: 1px 8px; }
    .shop-user-hero-sub { font-size: 0.75rem; gap: 4px; }
    .shop-user-hero-times { font-size: 0.68rem; gap: 10px; }

    .shop-user-main .shop-orders-header h1 { font-size: 1.15rem; }
    .shop-conv-item { padding: 12px 14px; gap: 10px; }
    .shop-conv-avatar { width: 40px; height: 40px; font-size: 0.92rem; }
    .shop-chat { height: 60vh; min-height: 320px; }
}

@media (max-width: 480px) {
    .shop-user-hero { height: 170px; margin-bottom: 96px; }
    .shop-user-hero-profile {
        left: 12px;
        right: 12px;
        bottom: -80px;
        max-width: calc(100% - 24px);
        padding: 10px 14px 10px 10px;
        border-radius: 14px;
    }
    .shop-user-hero-avatar { width: 52px; height: 52px; font-size: 1.15rem; }
    .shop-user-hero-name { font-size: 0.9rem; max-width: 140px; }
    .shop-user-hero-top { gap: 6px; }
    .shop-user-hero-sub { font-size: 0.72rem; }
    .shop-user-hero-times {
        font-size: 0.65rem;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
 * 34. 屏幕阅读器隐藏（用于 autocomplete username 字段）
 * ============================================================ */
.shop-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* ============================================================
 * 35. 铃铛通知（Notifications Bell）
 * ------------------------------------------------------------
 * 结构：
 *   .shop-notif-menu[data-notif-menu]
 *     .shop-icon-btn.shop-notif-btn[data-notif-toggle]
 *       .shop-notif-count[data-notif-count]   ← 未读角标
 *     .shop-notif-dropdown[data-notif-dropdown]
 *       .shop-notif-tabs
 *         .shop-notif-tab[data-notif-tab="notifications|announcements"]
 *           .shop-notif-tab-badge / .shop-notif-tab-count
 *       .shop-notif-body
 *         .shop-notif-panel[data-notif-panel]
 *           .shop-notif-item[.is-unread][.is-pinned][data-notif-id]
 *             .shop-notif-item-title
 *             .shop-notif-item-content
 *             .shop-notif-item-time
 *           .shop-notif-empty
 *       .shop-notif-footer
 *         .shop-notif-mark-all[data-notif-mark-all]
 * ============================================================ */

.shop-notif-menu { position: relative; }

.shop-notif-btn { position: relative; }

/* ---- 未读角标 ---- */
.shop-notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 0 0 2px #ffffff;
}

/* ---- 弹窗容器 ---- */
.shop-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 199;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 560px;
}
.shop-notif-menu.is-open .shop-notif-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (hover: hover) and (min-width: 769px) {
    .shop-notif-menu:hover .shop-notif-dropdown,
    .shop-notif-menu:focus-within .shop-notif-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ---- Tab 栏 ---- */
.shop-notif-tabs {
    display: flex;
    border-bottom: 1px solid #e9edf2;
    background: #f8fafc;
    flex-shrink: 0;
}
.shop-notif-tab {
    flex: 1;
    padding: 12px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.15s, background 0.15s;
    position: relative;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.shop-notif-tab:hover { color: #0f172a; }
.shop-notif-tab.is-active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
}
.shop-notif-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #2563eb;
}
.shop-notif-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}
.shop-notif-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #94a3b8;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

/* ---- 内容区 ---- */
.shop-notif-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.shop-notif-panel { display: none; }
.shop-notif-panel.is-active { display: block; }

/* ---- 条目 ---- */
.shop-notif-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    cursor: pointer;
}
.shop-notif-item:hover {
    background: #f8fafc;
    color: inherit;
}
.shop-notif-item.is-unread {
    background: #eff6ff;
}
.shop-notif-item.is-unread:hover {
    background: #dbeafe;
}
.shop-notif-item.is-pinned {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding-left: 13px;
}
.shop-notif-item.is-pinned:hover {
    background: #fef3c7;
}
.shop-notif-item.is-unread.is-pinned {
    background: #fef3c7;
}
.shop-notif-item:last-child {
    border-bottom: none;
}

.shop-notif-item-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 3px;
    word-break: break-word;
}
.shop-notif-item-content {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 4px;
    word-break: break-word;
}
.shop-notif-item-time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}
.shop-notif-pin {
    margin-right: 4px;
    font-size: 0.85em;
}

/* ---- 空状态 ---- */
.shop-notif-empty {
    padding: 48px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- 底部操作 ---- */
.shop-notif-footer {
    border-top: 1px solid #e9edf2;
    padding: 10px 16px;
    background: #f8fafc;
    text-align: center;
    flex-shrink: 0;
}
.shop-notif-mark-all {
    background: none;
    border: none;
    cursor: pointer;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    line-height: 1.5;
}
.shop-notif-mark-all:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.shop-notif-mark-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- 响应式：≤768px 改底部抽屉 ---- */
@media (max-width: 768px) {
    .shop-notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transform: translateY(100%);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    }
    .shop-notif-menu.is-open .shop-notif-dropdown {
        transform: translateY(0);
    }
    .shop-notif-menu:hover .shop-notif-dropdown {
        transform: translateY(100%);
    }
    .shop-notif-menu.is-open:hover .shop-notif-dropdown {
        transform: translateY(0);
    }
}

/* ---- 小屏进一步压缩 ---- */
@media (max-width: 480px) {
    .shop-notif-item { padding: 11px 14px; }
    .shop-notif-item-title { font-size: 0.88rem; }
    .shop-notif-item-content { font-size: 0.8rem; }
    .shop-notif-tab { font-size: 0.86rem; padding: 10px 12px; }
    .shop-notif-footer { padding: 8px 14px; }
    .shop-notif-mark-all { font-size: 0.82rem; }
}

/* ============================================================
 * 36. 消息页（聊天 / 通知 Tab）
 * ------------------------------------------------------------
 * 结构：
 *   .shop-msg-tabs
 *     .shop-msg-tab[.is-active]
 *       .shop-msg-tab-badge
 *   .shop-conv-list (聊天列表，§31 复用)
 *   .shop-notif-page-list (通知列表)
 *     .shop-notif-page-item[.is-unread][href|div]
 *       .shop-notif-page-item-title
 *       .shop-notif-page-item-content
 *       .shop-notif-page-item-time
 * ============================================================ */

.shop-msg-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e9edf2;
    margin-bottom: 20px;
}
.shop-msg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    position: relative;
}
.shop-msg-tab:hover {
    color: #0f172a;
}
.shop-msg-tab.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}
.shop-msg-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

/* 通知列表（消息页内） */
.shop-notif-page-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-notif-page-item {
    display: block;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.shop-notif-page-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: inherit;
}
.shop-notif-page-item.is-unread {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.shop-notif-page-item.is-unread:hover {
    background: #dbeafe;
}
.shop-notif-page-item-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.4;
    word-break: break-word;
}
.shop-notif-page-item-content {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 6px;
    word-break: break-word;
}
.shop-notif-page-item-time {
    color: #94a3b8;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

/* 消息页 tab 在窄屏适当压缩 */
@media (max-width: 480px) {
    .shop-msg-tab {
        padding: 10px 12px;
        font-size: 0.86rem;
    }
    .shop-notif-page-item {
        padding: 14px 16px;
    }
    .shop-notif-page-item-title { font-size: 0.92rem; }
    .shop-notif-page-item-content { font-size: 0.85rem; }
}

/* ============================================================
 * 37. 评论删除按钮
 * ============================================================ */

/* 主评论：与"回复"按钮同层，hover 变红 */
.shop-review-delete-btn:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* 回复：小图标按钮，靠右 */
.shop-review-reply-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-family: inherit;
    line-height: 1.4;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.shop-review-reply-delete-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}
.shop-review-reply-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 回复的 flex 布局里让删除按钮靠右 */
.shop-review-reply-name {
    /* 保持原有 flex，删除按钮通过 margin-left:auto 定位 */
}

/* ============================================================
 * 38. 语言切换器（头像右边）
 * ============================================================ */
.shop-lang-select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.82rem;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    max-width: 100px;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 26px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}
.shop-lang-select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}
.shop-lang-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .shop-lang-select {
        font-size: 0.76rem;
        padding: 4px 8px;
        padding-right: 22px;
        max-width: 78px;
        background-position: right 6px center;
        background-size: 10px;
    }
}
@media (max-width: 480px) {
    .shop-lang-select {
        font-size: 0.72rem;
        padding: 4px 6px;
        padding-right: 20px;
        max-width: 68px;
    }
}