    /* ==========================================
       Design Token System — 所有可配置值集中在此
       修改品牌色/间距/字号只需改这里，不需要逐行查找
       ========================================== */
    :root {
        /* --- 品牌色 --- */
        --gb-blue: #0d35b9;
        --gb-blue-dark: #0b2da1;
        --gb-blue-light: rgba(13, 53, 185, 0.05);

        /* --- 中性色 --- */
        --gb-white: #ffffff;
        --gb-bg-gray: #f7f7f7;
        --gb-bg-gray-light: #f7f7f8;
        --gb-bg-gray-cool: #f1f3f9;
        --gb-bg-gray-warm: #f6f7fb;
        --gb-bg-card: #f9f9f9;
        --gb-border-light: #f0f0f0;
        --gb-border: #e0e0e0;
        --gb-border-medium: #ccc;

        /* --- 文字色 --- */
        --gb-text-main: #333333;
        --gb-text-secondary: #555555;
        --gb-text-muted: #999999;
        --gb-text-placeholder: #aaaaaa;

        /* --- 功能色 --- */
        --gb-danger: #ff4757;
        --gb-danger-bg: #fff0f0;
        --gb-accent: #ff6b35;

        /* --- 间距 --- */
        --gb-space-xs: 4px;
        --gb-space-sm: 8px;
        --gb-space-md: 12px;
        --gb-space-lg: 16px;
        --gb-space-xl: 20px;
        --gb-space-2xl: 24px;

        /* --- 尺寸 --- */
        --gb-card-width: 308px;
        --gb-card-height: 410px;
        --gb-sidebar-width: 240px;
        --gb-sidebar-desktop-width: 308px; /* 与卡片等宽时用 */

        /* --- 圆角 --- */
        --gb-radius-sm: 4px;
        --gb-radius-md: 8px;
        --gb-radius-lg: 12px;
        --gb-radius-xl: 14px;
        --gb-radius-2xl: 16px;
        --gb-radius-pill: 20px;

        /* --- 阴影 --- */
        --gb-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        --gb-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

        /* --- 字号 --- */
        --gb-font-xs: 11px;
        --gb-font-sm: 12px;
        --gb-font-body: 13px;
        --gb-font-md: 14px;
        --gb-font-lg: 16px;
        --gb-font-xl: 20px;
        --gb-font-2xl: 24px;
        --gb-font-3xl: 28px;

        /* --- 过渡 --- */
        --gb-transition-fast: all 0.2s ease;
        --gb-transition: all 0.3s ease;

        /* --- 响应式断点 (供参考，CSS 媒体查询中直接使用) --- */
        /* 1200px — 平板横屏  */
        /* 1024px — 平板竖屏  */
        /* 860px  — 中等屏幕  */
        /* 768px  — 手机端     */
        /* 480px  — 小屏手机   */
    }

    .gb-shop-wrapper {
        display: flex;
        gap: 20px;
        padding: 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: #fff;
        min-height: 800px;
        box-sizing: border-box;
    }

    .gb-shop-wrapper *,
    .gb-shop-wrapper *:before,
    .gb-shop-wrapper *:after {
        box-sizing: inherit;
    }

    /* 侧边栏样式 */
    .gb-sidebar {
        width: var(--gb-sidebar-width);
        flex-shrink: 0;
    }

    .gb-color-entry-card {
        background: var(--gb-bg-gray);
        padding: 15px 20px;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 20px;
        font-weight: 500;
        color: var(--gb-text-main);
    }

    /* 工具栏样式 */
    .gb-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: var(--theme-sticky-offset, 0);
        z-index: 50;
        background: #fff;
        padding: 20px 10px 20px 10px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 20px;
    }

    .gb-tab-group {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .gb-tab-group button {
        background: none;
        border: none;
        font-size: 16px;
        color: #999;
        cursor: pointer;
        margin-right: 25px;
        padding: 8px 0;
        position: relative;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .gb-tab-group button.active {
        color: var(--gb-blue);
        font-weight: 600;
    }

    .gb-tab-group button.active:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--gb-blue);
    }

    .gb-filter-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 14px;
        color: #999;
        flex-shrink: 0;
    }

    .gb-sort-box {
        display: flex;
        gap: 5px;
        background: #f1f3f9;
        padding: 4px 6px;
        border-radius: 20px;
    }

    .gb-sort-box .sort-item {
        padding: 4px 12px;
        border-radius: 16px;
        cursor: pointer;
        color: #555;
        /* 加深默认颜色 */
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .gb-sort-box .sort-item:hover {
        background: rgba(13, 53, 185, 0.05);
        color: var(--gb-blue);
    }

    .gb-sort-box .sort-item.active {
        background: #fff;
        color: var(--gb-blue);
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(13, 53, 185, 0.1);
    }

    /* 网格布局 (5列，购物车展开时变为4列) */
    .gb-grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
        transition: grid-template-columns 0.3s ease;
    }

    /* 购物车展开时，主内容区域收窄，网格变为4列 */
    .gb-shop-wrapper.cart-open .gb-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* [模块 5] 零件卡片复刻 (像素级优化) */
    .gb-item-card {
        background: #fff;
        border-radius: var(--gb-radius);
        box-shadow: var(--gb-card-shadow);
        width: var(--gb-card-width);
        height: var(--gb-card-height);
        position: relative;
        overflow: hidden;
        transition: box-shadow 0.3s ease;
        border: none !important;
    }

    .gb-item-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }

    .gb-card-pic {
        height: 65%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .gb-card-pic img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        transition: transform 0.4s ease;
    }

    .gb-item-card:hover .gb-card-pic img {
        transform: scale(1.08);
    }

    /* [优化点] 底部信息与动作层容器 */
    .gb-card-footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 30%;
        /* 与 3:4 比例对齐，约占卡片总高的 30% */
        background: #fff;
        overflow: hidden;
    }

    /* 常态信息层 */
    .gb-info-layer {
        padding: 0 18px 15px 18px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .gb-part-name {
        margin: 10px 0 0 0;
        font-size: 14px;
        font-weight: 600;
        /* 加粗 */
        color: var(--gb-text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gb-part-sku {
        margin: 2px 0 8px 0;
        font-size: 12px;
        font-weight: 500;
        color: var(--gb-text-sku);
    }

    .gb-part-price {
        color: var(--gb-blue);
        font-size: 20px;
        font-weight: 800;
        /* 极致加粗 */
    }

    /* [优化点] 鼠标悬停动作层 */
    .gb-action-layer {
        position: absolute;
        top: 100%;
        /* 初始位置在卡片外正下方 */
        width: 100%;
        height: 100%;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* 悬停联动位移 */
    .gb-item-card:hover .gb-info-layer {
        transform: translateY(-100%);
    }

    .gb-item-card:hover .gb-action-layer {
        transform: translateY(-100%);
    }

    /* 按钮子组件 */
    .gb-btn-fav {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none !important;
        /* 彻底移除所有边框 */
        transition: background 0.2s;
    }

    .gb-btn-cart {
        flex: 2;
        /* 购买按钮占比更大 */
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--gb-blue);
        /* 确保使用标准高砖蓝 */
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none !important;
    }

    .gb-btn-fav:hover {
        background: #f9f9f9;
    }

    .gb-btn-cart:hover {
        background: var(--gb-blue-dark);
    }

    /* [模块 6] 翻页器样式 */
    .gb-pagination-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
        gap: 8px;
        user-select: none;
        padding-bottom: 50px;
    }

    .gb-page-btn {
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 500;
    }

    .gb-page-btn:hover {
        border-color: var(--gb-blue);
        color: var(--gb-blue);
    }

    .gb-page-btn.active {
        background: var(--gb-blue);
        color: #fff;
        border: none;
        box-shadow: 0 4px 10px rgba(13, 53, 185, 0.2);
    }

    .gb-page-btn.disabled {
        cursor: not-allowed;
        opacity: 0.4;
    }

    .gb-page-dots {
        padding: 0 5px;
        color: #999;
    }

    .gb-page-goto {
        margin-left: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #666;
    }

    .gb-page-goto input {
        width: 50px;
        height: 36px;
        text-align: center;
        border: 1px solid #eee;
        border-radius: 4px;
        outline: none;
    }

    .gb-page-goto input:focus {
        border-color: var(--gb-blue);
    }

    /* 侧边栏整体 - 调整宽度为 308px，与商品卡片一致以消除闪烁 */
    .gb-sidebar {
        width: 308px;
        flex-shrink: 0;
        padding-top: 76px;
        /* 约等于 toolbar 高度 + margin，使侧边栏内容与主网格顶线齐平 */
    }

    /* All Categories Premium Card Styles */
    .gb-category-card {
        background: #fff;
        border-radius: var(--gb-radius);
        box-shadow: var(--gb-card-shadow);
        padding: 20px 18px;
        margin-bottom: 24px;
        width: 308px;
        box-sizing: border-box;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    /* Top Banner: All Parts */
    .gb-cat-banner {
        background: #f7f7f8;
        border-radius: 12px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 15px;
        border: 1px solid transparent;
        width: 100%;
        text-align: left;
    }

    .gb-cat-banner:hover {
        background: #f0f0f2;
    }

    .gb-cat-banner.active {
        background: rgba(13, 53, 185, 0.05);
        border-color: rgba(13, 53, 185, 0.1);
    }

    .gb-cat-banner-icon {
        width: 44px;
        height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .gb-cat-banner-icon img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .gb-cat-banner-label {
        font-size: 15px;
        font-weight: 700;
        color: #333;
    }

    .gb-cat-banner.active .gb-cat-banner-label {
        color: var(--gb-blue);
    }

    /* The Grid (3 columns) */
    .gb-cat-grid-wrapper {
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 2000px;
    }

    .gb-category-card.collapsed .gb-cat-grid-wrapper {
        max-height: 215px;
    }

    .gb-cat-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
    }

    .gb-cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px 0;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .gb-cat-item:hover {
        background: rgba(13, 53, 185, 0.03);
    }

    .gb-cat-item.active {
        background: #fff;
        border-color: var(--gb-blue);
        box-shadow: 0 2px 8px rgba(13, 53, 185, 0.1);
    }

    .gb-cat-icon-box {
        height: 50px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
    }

    .gb-cat-icon-box img {
        max-width: 85%;
        max-height: 100%;
        object-fit: contain;
    }

    .gb-cat-item-label {
        font-size: 11px;
        font-weight: 600;
        color: #666;
        line-height: 1.2;
        padding: 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .gb-cat-item.active .gb-cat-item-label {
        color: var(--gb-blue);
    }

    /* Expand Button Row */
    .gb-cat-footer {
        display: flex;
        justify-content: center;
        padding-top: 15px;
        cursor: pointer;
        width: 100%;
    }

    .gb-cat-arrow-icon {
        width: 20px;
        height: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .gb-cat-arrow-icon::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
        transform: rotate(45deg);
        transition: all 0.3s;
    }

    .gb-category-card:not(.collapsed) .gb-cat-arrow-icon::after {
        transform: rotate(-135deg);
        margin-top: 5px;
    }

    .gb-cat-footer:hover .gb-cat-arrow-icon::after {
        border-color: var(--gb-blue);
    }

    /* All Colors 功能入口 - 极致复刻官网感 */
    .gb-color-entry-card {
        background-color: #f7f7f8;
        border-radius: 12px;
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 24px;
        border: 1px solid transparent;
        user-select: none;
    }

    .gb-color-entry-card:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        border-color: #eee;
        transform: translateY(-1px);
    }

    .gb-color-entry-card:active {
        transform: scale(0.98);
        background-color: #f2f2f3;
    }

    .gb-color-header-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .gb-color-entry-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .gb-color-entry-label {
        color: #333;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: -0.2px;
    }

    /* 复刻官网箭头 (CSS-based Sleek Arrow) */
    .gb-icon-arrow-right {
        width: 8px;
        height: 8px;
        border-top: 2px solid #555;
        border-right: 2px solid #555;
        transform: rotate(45deg);
        transition: transform 0.2s;
        margin-right: 4px;
    }

    .gb-color-entry-card:hover .gb-icon-arrow-right {
        border-color: var(--gb-blue);
        transform: rotate(45deg) translateX(2px);
    }

    /* 展开状态 - 尺寸与商品卡片物理对齐 */
    .gb-color-entry-card.expanded {
        background-color: #fff;
        width: 308px;
        /* 与商品卡片完全一致 */
        min-height: 410px;
        /* 与商品卡片完全一致 */
        box-shadow: var(--gb-card-shadow);
        border: 1px solid #eee;
        padding: 24px 20px;
        cursor: default;
        position: relative;
        flex-direction: column;
        align-items: stretch;
        display: flex;
    }

    .gb-color-entry-card.expanded .gb-color-header-row {
        margin-bottom: 20px;
        /* 在标题和下方内容间增加间距 */
    }

    .gb-color-entry-card.expanded .gb-icon-arrow-right {
        transform: rotate(135deg);
        /* 箭头向下 */
        cursor: pointer;
    }

    /* 内部迷你像素筛选区 */
    .gb-color-expanded-content {
        display: none;
        flex-direction: column;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .gb-color-entry-card.expanded .gb-color-expanded-content {
        display: flex;
    }

    .gb-mini-color-grid {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        /* 扩展为 10 列以填满宽度 */
        gap: 6px;
        margin-top: 5px;
        /* overflow: visible; */
        /* 核心修改：移除内部滑动，全部展示 */
        flex: 1;
        /* 占据剩余空间 */
        overflow-y: auto;
        /* 在 3:4 固定比例内滚动，避免撑大卡片 */
        padding-right: 4px;
    }

    /* 恢复精致滚动条 */
    .gb-mini-color-grid::-webkit-scrollbar {
        width: 4px;
        display: block;
    }

    .gb-mini-color-grid::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .gb-color-type-label {
        font-size: 11px;
        font-weight: 700;
        color: #aaa;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 12px 0 6px 0;
        grid-column: 1 / -1;
        /* 占据整行 */
    }

    .gb-pixel-block {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 3px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: transform 0.1s;
    }

    .gb-pixel-block:hover {
        transform: scale(1.2);
        z-index: 2;
        border-color: rgba(0, 0, 0, 0.2);
    }

    .gb-pixel-block.active {
        outline: 2px solid var(--gb-blue);
        outline-offset: 1px;
        transform: scale(1.1);
    }

    .gb-color-footer {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        text-align: right;
    }

    .gb-reset-link {
        background: none;
        border: none;
        color: #999;
        font-size: 12px;
        cursor: pointer;
        padding: 0;
        text-decoration: underline;
    }

    .gb-reset-link:hover {
        color: var(--gb-blue);
    }

    /* 骨架屏强制占位 */
    .gb-skeleton {
        height: 410px !important;
        width: 308px !important;
        background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 50%, #f0f0f0 75%);
        background-size: 400% 100%;
        animation: gb-shimmer 1.5s infinite;
        border-radius: 12px;
    }

    @keyframes gb-shimmer {
        0% {
            background-position: -468px 0;
        }

        100% {
            background-position: 468px 0;
        }
    }

    .gb-loading-spin {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(13, 53, 185, 0.1);
        border-top: 3px solid var(--gb-blue);
        border-radius: 50%;
        animation: gb-spin 0.8s linear infinite;
    }

    .gb-skeleton-line {
        background: #f0f0f0;
        border-radius: 4px;
        animation: gb-shimmer 1.5s infinite;
    }

    @keyframes gb-spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* [模块 7] 变体矩阵样式 */
    .gb-variant-matrix {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
        margin-top: 10px;
        max-height: 160px;
        overflow-y: auto;
        padding-right: 6px;
    }

    .gb-variant-matrix::-webkit-scrollbar {
        width: 4px;
        display: block;
    }

    .gb-variant-matrix::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .gb-v-block {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        cursor: pointer;
        border: 1px solid rgba(0, 0, 0, 0.08);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .gb-v-block:hover {
        transform: scale(1.18);
        z-index: 5;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .gb-v-block.active {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gb-blue);
        z-index: 4;
    }

    .gb-v-block.out-of-stock {
        opacity: 0.35;
    }

    .gb-v-block.out-of-stock::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1.5px;
        background: #555;
        transform: rotate(-45deg);
        pointer-events: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



    /* ==========================================
       响应式布局 - 手机端适配
       ========================================== */

    /* ==========================================
       详情弹窗 (Modal) 样式 - Step 1: Lightweight Skeleton
       ========================================== */
    .gb-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 2000;
        display: none;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity;
    }

    .gb-modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .gb-modal-container {
        background: #fff;
        width: 92%;
        max-width: 1040px;
        height: 85vh;
        max-height: 720px;
        border-radius: 28px;
        box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
        position: relative;
        overflow: hidden;
        transform: scale(0.96) translateZ(0);
        /* Hardware accelerated */
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        will-change: transform;
    }

    .gb-modal-overlay.active .gb-modal-container {
        transform: scale(1) translateZ(0);
    }

    .gb-modal-close {
        position: absolute;
        top: 24px;
        right: 24px;
        background: rgba(240, 242, 245, 0.8);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 26px;
        color: #444;
        cursor: pointer;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .gb-modal-close:hover {
        background: #e4e6e9;
        transform: rotate(90deg);
    }

    .gb-modal-content {
        display: flex;
        height: 100%;
        width: 100%;
    }

    /* 详情页基础布局结构 */
    .gb-modal-left {
        flex: 1.3;
        background: #fcfcfd;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 50px;
        border-right: 1px solid #f0f0f2;
    }

    .gb-modal-right {
        flex: 1;
        padding: 40px 48px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: #fff;
    }

    body.modal-open {
        overflow: hidden;
    }

    /* ==========================================
       搜索框样式
       ========================================== */
    .gb-search-box {
        position: relative;
        display: flex;
        align-items: center;
        background: #f6f7fb;
        border: 1.5px solid #eaecf4;
        border-radius: 12px;
        padding: 0 14px;
        transition: border-color 0.2s, box-shadow 0.2s;
        flex: 1;
        max-width: 420px;
        min-width: 200px;
        flex-shrink: 1;
        box-sizing: border-box;
    }

    .gb-search-box:focus-within {
        border-color: var(--gb-blue);
        box-shadow: 0 0 0 3px rgba(13, 53, 185, 0.08);
        background: #fff;
    }

    .gb-search-icon {
        color: #aab;
        flex-shrink: 0;
        pointer-events: none;
        transition: color 0.2s;
    }

    .gb-search-box:focus-within .gb-search-icon {
        color: var(--gb-blue);
    }

    #gb-search-input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: #333;
        padding: 10px 8px;
        font-family: inherit;
        min-width: 0;
        width: 100%;
    }

    #gb-search-input::placeholder {
        color: #bbb;
    }

    #gb-search-clear {
        background: none;
        border: none;
        cursor: pointer;
        color: #ccc;
        font-size: 18px;
        padding: 0 2px;
        line-height: 1;
        display: none;
        transition: color 0.15s;
    }

    #gb-search-clear:hover {
        color: #999;
    }

    #gb-search-input:not(:placeholder-shown)~#gb-search-clear {
        display: block;
    }

    .gb-search-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(13, 53, 185, 0.07);
        border: 1px solid rgba(13, 53, 185, 0.15);
        color: var(--gb-blue);
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    /* ==========================================
       购物车侧边抽屉样式 (右侧滑出)
       ========================================== */
    .gb-cart-drawer {
        position: fixed;
        top: var(--theme-sticky-offset, 0);
        right: 0;
        width: 420px;
        height: calc(100vh - var(--theme-sticky-offset, 0px));
        background: #fff;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 2100;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .gb-cart-drawer.active {
        transform: translateX(0);
    }

    /* 购物车抽屉遮罩（与 Modal / 移动端抽屉 / 颜色选择器模式一致） */
    .gb-cart-drawer-overlay {
        display: none;
        position: fixed;
        top: var(--theme-sticky-offset, 0);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--theme-sticky-offset, 0px));
        background: rgba(0, 0, 0, 0.35);
        z-index: 2099;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .gb-cart-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 购物车展开时，为主容器添加遮罩效果 */
    .gb-shop-wrapper {
        position: relative;
        transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .gb-shop-wrapper.cart-open {
        margin-right: 420px;
    }

    /* 购物车按钮样式保持不变 */
    #gb-cart-open-btn {
        position: relative;
        background: var(--gb-blue);
        color: #fff;
        border: none;
        cursor: pointer;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    #gb-cart-open-btn:hover {
        background: var(--gb-blue-dark);
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(13, 53, 185, 0.3);
    }

    #gb-cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #fff;
        color: var(--gb-blue);
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        line-height: 1;
        border: 2px solid var(--gb-blue);
        display: none;
        /* 默认隐藏 */
    }

    #gb-cart-badge.visible {
        display: flex;
    }

    /* 移除旧的购物车容器样式 */
    .gb-cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 28px 20px;
        border-bottom: 1px solid #f2f2f2;
        flex-shrink: 0;
    }

    .gb-cart-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--gb-text-main);
        margin: 0;
    }

    .gb-cart-list {
        flex: 1;
        overflow-y: auto;
        padding: 16px 28px;
    }

    .gb-cart-list::-webkit-scrollbar {
        width: 4px;
    }

    .gb-cart-list::-webkit-scrollbar-thumb {
        background: var(--gb-border);
        border-radius: 10px;
    }

    .gb-cart-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 0;
        border-bottom: 1px solid #f5f5f5;
        animation: fadeIn 0.25s ease;
    }

    .gb-cart-item:last-child {
        border-bottom: none;
    }

    .gb-cart-item-img {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        background: #f9f9f9;
        object-fit: contain;
        padding: 5px;
        flex-shrink: 0;
    }

    .gb-cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .gb-cart-item-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--gb-text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gb-cart-item-id {
        font-size: 11px;
        color: var(--gb-text-muted);
        margin-top: 2px;
    }

    .gb-cart-item-price {
        font-size: 14px;
        font-weight: 700;
        color: var(--gb-blue);
        margin-top: 4px;
    }

    .gb-qty-ctrl {
        display: flex;
        align-items: center;
        gap: 0;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .gb-qty-btn {
        width: 32px;
        height: 32px;
        background: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
        font-weight: 500;
    }

    .gb-qty-btn:hover {
        background: #f5f5f5;
        color: var(--gb-blue);
    }

    .gb-qty-display {
        width: 38px;
        height: 32px;
        border: none;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: var(--gb-text-main);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .gb-cart-item-del {
        background: none;
        border: none;
        cursor: pointer;
        color: #ccc;
        padding: 6px;
        border-radius: 6px;
        transition: all 0.2s;
        flex-shrink: 0;
        font-size: 16px;
        line-height: 1;
    }

    .gb-cart-item-del:hover {
        background: #fff0f0;
        color: #ff4757;
    }

    .gb-cart-empty {
        text-align: center;
        padding: 60px 20px;
        color: #bbb;
    }

    .gb-cart-empty svg {
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .gb-cart-empty p {
        font-size: 14px;
        font-weight: 500;
    }

    .gb-cart-footer {
        flex-shrink: 0;
        padding: 20px 28px;
        border-top: 1px solid #f2f2f2;
        background: #fff;
    }

    .gb-cart-total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .gb-cart-total-label {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    .gb-cart-total-value {
        font-size: 22px;
        font-weight: 800;
        color: var(--gb-blue);
    }

    .gb-cart-actions {
        display: flex;
        gap: 10px;
    }

    .gb-cart-checkout-btn {
        flex: 2;
        height: 50px;
        background: var(--gb-blue);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
    }

    .gb-cart-checkout-btn:hover {
        background: var(--gb-blue-dark);
    }

    .gb-cart-clear-btn {
        flex: 1;
        height: 50px;
        background: #fff;
        color: var(--gb-text-muted);
        border: 1px solid #eee;
        border-radius: 14px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .gb-cart-clear-btn:hover {
        border-color: #ff4757;
        color: #ff4757;
    }

    /* ── Cart Group (batch-to-cart collapsible groups) ── */
    .gb-cart-group {
        border: 1px solid var(--gb-border);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .gb-cart-group-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: var(--gb-bg-gray-light);
        cursor: pointer;
        user-select: none;
    }

    .gb-cart-group-arrow {
        font-size: 10px;
        color: var(--gb-text-muted);
        width: 14px;
        text-align: center;
        flex-shrink: 0;
    }

    .gb-cart-group-info {
        flex: 1;
        min-width: 0;
    }

    .gb-cart-group-name {
        font-weight: 600;
        font-size: 14px;
        color: var(--gb-text-main);
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gb-cart-group-summary {
        font-size: 12px;
        color: var(--gb-text-muted);
    }

    .gb-cart-group-remove {
        background: none;
        border: none;
        font-size: 16px;
        color: var(--gb-text-muted);
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 6px;
        line-height: 1;
        flex-shrink: 0;
    }

    .gb-cart-group-remove:hover {
        background: var(--gb-danger-bg);
        color: var(--gb-danger);
    }

    .gb-cart-group-body .gb-cart-item {
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--gb-border);
        margin: 0;
    }

    /* ==========================================
       结账确认弹窗样式
       ========================================== */
    .gb-checkout-confirm-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .gb-checkout-confirm-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .gb-checkout-confirm-dialog {
        background: #fff;
        border-radius: 20px;
        padding: 40px 32px 32px;
        max-width: 440px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        text-align: center;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .gb-checkout-confirm-overlay.active .gb-checkout-confirm-dialog {
        transform: scale(1);
    }

    .gb-checkout-confirm-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--gb-blue) 0%, #1e5aff 100%);
        border-radius: 50%;
        margin: 0 auto 24px;
        color: #fff;
    }

    .gb-checkout-confirm-icon svg {
        width: 48px;
        height: 48px;
    }

    .gb-checkout-confirm-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--gb-text-main);
        margin: 0 0 16px;
    }

    .gb-checkout-confirm-message {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        margin: 0 0 32px;
    }

    .gb-checkout-confirm-message strong {
        color: #ff6b35;
        font-weight: 600;
        display: block;
        margin-top: 12px;
        font-size: 16px;
    }

    .gb-checkout-confirm-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .gb-checkout-cancel-btn,
    .gb-checkout-proceed-btn {
        flex: 1;
        padding: 14px 24px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
        outline: none;
    }

    .gb-checkout-cancel-btn {
        background: var(--gb-border-light);
        color: #666;
    }

    .gb-checkout-cancel-btn:hover {
        background: #e0e0e0;
        color: var(--gb-text-main);
    }

    .gb-checkout-proceed-btn {
        background: linear-gradient(135deg, var(--gb-blue) 0%, #1e5aff 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(13, 53, 185, 0.3);
    }

    .gb-checkout-proceed-btn:hover {
        box-shadow: 0 6px 20px rgba(13, 53, 185, 0.4);
        transform: translateY(-1px);
    }

    .gb-checkout-proceed-btn:active {
        transform: translateY(0);
    }

    /* ==========================================
       商品详情颜色选择器弹窗样式
       ========================================== */
    .gb-color-picker-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 2500;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gb-color-picker-overlay.active {
        display: flex;
        opacity: 1;
    }

    .gb-color-picker-dialog {
        background: #fff;
        border-radius: 20px;
        max-width: 600px;
        width: 90%;
        max-height: 80vh;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transform: scale(0.9);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .gb-color-picker-overlay.active .gb-color-picker-dialog {
        transform: scale(1);
    }

    .gb-color-picker-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 24px 16px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .gb-color-picker-header h3 {
        font-size: 20px;
        font-weight: 700;
        color: #333;
        margin: 0;
    }

    .gb-color-picker-content {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }

    .gb-color-picker-content::-webkit-scrollbar {
        width: 6px;
    }

    .gb-color-picker-content::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .gb-color-picker-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .gb-color-picker-block {
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
        position: relative;
    }

    .gb-color-picker-block:hover {
        transform: scale(1.15);
        z-index: 2;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .gb-color-picker-block.active {
        border-color: var(--gb-blue);
        border-width: 3px;
        box-shadow: 0 0 0 3px rgba(13, 53, 185, 0.2);
        transform: scale(1.1);
    }

    .gb-color-picker-block.out-of-stock {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .gb-color-picker-block.out-of-stock::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background: #555;
        transform: rotate(-45deg);
        pointer-events: none;
    }

    .gb-color-type-section {
        margin-bottom: 24px;
    }

    .gb-color-type-section h4 {
        font-size: 14px;
        font-weight: 600;
        color: #666;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* ==========================================
       手机端底部导航栏样式
       ========================================== */
    .gb-mobile-bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 1500;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
    }

    .gb-mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #666;
        font-size: 11px;
        cursor: pointer;
        padding: 6px 12px;
        transition: all 0.2s;
        position: relative;
        flex: 1;
        max-width: 80px;
    }

    .gb-mobile-nav-btn svg {
        margin-bottom: 4px;
        stroke-width: 2;
    }

    .gb-mobile-nav-btn:active {
        transform: scale(0.95);
        color: var(--gb-blue);
    }

    .gb-mobile-nav-btn.active {
        color: var(--gb-blue);
    }

    .gb-mobile-nav-badge {
        position: absolute;
        top: 2px;
        right: 8px;
        background: #fff;
        color: var(--gb-blue);
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        border: 2px solid var(--gb-blue);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        line-height: 1;
    }

    .gb-mobile-nav-badge.visible {
        display: flex;
    }

    /* ==========================================
       手机端抽屉样式
       ========================================== */
    .gb-mobile-drawer {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 75vh;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 2000;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
    }

    .gb-mobile-drawer.active {
        display: flex;
        transform: translateY(0);
    }

    .gb-mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px 15px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .gb-mobile-drawer-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin: 0;
    }

    .gb-mobile-drawer-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .gb-mobile-drawer-content::-webkit-scrollbar {
        width: 4px;
    }

    .gb-mobile-drawer-content::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 10px;
    }

    /* 抽屉遮罩 */
    .gb-mobile-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .gb-mobile-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 手机端分类网格 */
    .gb-mobile-category-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gb-mobile-category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        background: #f7f7f8;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        border: 2px solid transparent;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .gb-mobile-category-item:active {
        transform: scale(0.95);
    }

    .gb-mobile-category-item.active {
        background: rgba(13, 53, 185, 0.05);
        border-color: var(--gb-blue);
    }

    .gb-mobile-category-item img {
        width: 50px !important;
        height: 40px !important;
        max-width: 50px !important;
        max-height: 40px !important;
        object-fit: contain;
        margin-bottom: 8px;
        display: block;
    }

    .gb-mobile-category-item span {
        font-size: 11px;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1.2;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .gb-mobile-category-item.active span {
        color: var(--gb-blue);
    }

    /* 手机端颜色网格 */
    .gb-mobile-color-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
    }

    .gb-mobile-color-block {
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
    }

    .gb-mobile-color-block:active {
        transform: scale(0.9);
    }

    .gb-mobile-color-block.active {
        border-color: var(--gb-blue);
        border-width: 3px;
        box-shadow: 0 0 0 2px rgba(13, 53, 185, 0.2);
    }

    /* 手机端筛选选项 */
    .gb-mobile-filter-section {
        margin-bottom: 25px;
    }

    .gb-mobile-filter-section h4 {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0 0 12px 0;
    }

    .gb-mobile-filter-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .gb-mobile-filter-option {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        background: #f7f7f8;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .gb-mobile-filter-option:active {
        transform: scale(0.98);
    }

    .gb-mobile-filter-option input[type="checkbox"],
    .gb-mobile-filter-option input[type="radio"] {
        margin-right: 12px;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .gb-mobile-filter-option label {
        flex: 1;
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }

    .gb-mobile-filter-actions {
        display: flex;
        gap: 10px;
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        bottom: 0;
    }

    .gb-mobile-filter-reset {
        flex: 1;
        padding: 12px;
        background: #f0f0f0;
        color: #666;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .gb-mobile-filter-apply {
        flex: 2;
        padding: 12px;
        background: var(--gb-blue);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }


    /* ==========================================
       响应式布局 — 所有 @media 规则集中在此
       按断点从大到小排列
       ========================================== */

    /* --- 平板横屏 / 小屏电脑 (<=1200px) --- */

    /* 平板和小屏电脑：4列 */
    @media (max-width: 1200px) {
        .gb-grid-container {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* --- 平板横屏 (769-1200px) --- */

    /* 平板端优化 */
    @media (min-width: 769px) and (max-width: 1200px) {
        .gb-cart-drawer {
            width: 360px;
        }

        .gb-shop-wrapper.cart-open {
            margin-right: 360px;
        }

        .gb-shop-wrapper.cart-open .gb-grid-container {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* --- 平板竖屏 (<=1024px) --- */

    /* 平板竖屏：3列 */
    @media (max-width: 1024px) {
        .gb-grid-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
    }

    /* --- 中等屏幕 (<=860px) --- */

    @media (max-width: 860px) {
        .gb-modal-container {
            width: 95%;
            height: 92vh;
            border-radius: 20px;
        }

        .gb-modal-content {
            flex-direction: column;
        }

        .gb-modal-left {
            flex: none;
            height: 40%;
            padding: 20px;
        }
    }

    /* --- 手机端 (<=768px) --- */

    /* 手机端：3列 + 隐藏侧边栏 */
    @media (max-width: 768px) {
        .gb-shop-wrapper {
            flex-direction: column;
            padding: 10px;
            gap: 0;
        }

        .gb-sidebar {
            display: none;
        }

        .gb-main-content {
            width: 100%;
        }

        .gb-grid-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        /* 工具栏优化 */
        .gb-toolbar {
            position: static; /* 取消桌面端吸顶 */
            flex-wrap: wrap;
            gap: 10px;
            padding-bottom: 15px;
            margin-bottom: 15px;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            box-sizing: border-box;
        }

        .gb-tab-group {
            width: 100%;
            order: 1;
            overflow: hidden;
        }

        .gb-tab-group button {
            margin-right: 0;
            padding: 8px 0;
            font-size: 14px;
            white-space: nowrap;
        }

        .gb-search-box {
            width: 100%;
            max-width: 100%;
            order: 2;
            min-width: 0;
            flex-shrink: 1;
        }

        .gb-filter-controls {
            width: 100%;
            order: 3;
            flex-wrap: wrap;
            gap: 10px;
        }

        .gb-sort-box {
            width: 100%;
            justify-content: space-around;
        }

        /* 购物车按钮固定在右上角 */
        #gb-cart-open-btn {
            display: none; /* 手机端也隐藏，使用底部导航栏 */
        }

        /* 商品卡片自适应 */
        .gb-item-card {
            width: 100%;
            height: auto;
            aspect-ratio: 3/4;
        }

        .gb-card-pic {
            height: 60%;
            padding: 10px;
        }

        .gb-card-footer {
            height: 40%;
        }

        .gb-part-name {
            font-size: 12px;
        }

        .gb-part-sku {
            font-size: 11px;
        }

        .gb-part-price {
            font-size: 16px;
        }

        /* 骨架屏移动端适配 */
        .gb-skeleton {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 3/4;
        }

        /* 分页器移动端适配 */
        .gb-pagination-wrapper {
            gap: 6px;
        }
        .gb-page-btn {
            width: 32px;
            height: 32px;
            font-size: 12px;
        }
        .gb-page-goto {
            margin-left: 0;
            width: 100%;
            justify-content: center;
            margin-top: 8px;
        }

        /* 详情弹窗全屏 */
        .gb-modal-container {
            width: 100%;
            height: 100vh;
            max-height: 100vh;
            border-radius: 0;
        }

        .gb-modal-content {
            flex-direction: column;
        }

        .gb-modal-left {
            flex: none;
            height: 40%;
            padding: 20px;
        }

        .gb-modal-right {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        /* 购物车抽屉全屏 */
        .gb-cart-drawer {
            width: 100vw;
        }

        .gb-shop-wrapper.cart-open {
            margin-right: 0;
        }

        /* 移动端购物车展开时，网格调整为更少列 */
        .gb-shop-wrapper.cart-open .gb-grid-container {
            grid-template-columns: repeat(2, 1fr);
        }

        .gb-color-picker-grid {
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
        }

        .gb-mobile-bottom-nav {
            display: flex;
        }

        /* 为底部导航栏留出空间 */
        .gb-shop-wrapper {
            padding-bottom: 70px;
        }
    }

    /* --- 小屏手机 (<=480px) --- */

    /* 超小屏手机：2列 */
    @media (max-width: 480px) {
        .gb-grid-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
        }

        .gb-part-name {
            font-size: 11px;
        }

        .gb-part-price {
            font-size: 14px;
        }

        .gb-btn-cart {
            font-size: 12px;
        }
    }

    /* 响应式优化 */
    @media (max-width: 480px) {
        .gb-checkout-confirm-dialog {
            padding: 32px 24px 24px;
        }

        .gb-checkout-confirm-icon {
            width: 64px;
            height: 64px;
        }

        .gb-checkout-confirm-icon svg {
            width: 36px;
            height: 36px;
        }

        .gb-checkout-confirm-title {
            font-size: 20px;
        }

        .gb-checkout-confirm-message {
            font-size: 14px;
        }

        .gb-checkout-confirm-actions {
            flex-direction: column;
        }

        .gb-checkout-cancel-btn,
        .gb-checkout-proceed-btn {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .gb-color-picker-grid {
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }

        .gb-color-picker-dialog {
            width: 95%;
            max-height: 85vh;
        }

        .gb-color-picker-header {
            padding: 20px 20px 12px;
        }

        .gb-color-picker-header h3 {
            font-size: 18px;
        }

        .gb-color-picker-content {
            padding: 20px;
        }
    }

/* ======================================================================== */
/* [gb-orders] Customer Orders Page                                         */
/* ======================================================================== */

/* Container */
.gb-orders-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 var(--gb-space-lg);
}

.gb-orders-title {
    font-size: var(--gb-font-2xl);
    font-weight: 700;
    color: var(--gb-text-main);
    margin: 0 0 var(--gb-space-xs);
}

.gb-orders-customer {
    font-size: var(--gb-font-sm);
    color: var(--gb-text-muted);
    margin: 0 0 var(--gb-space-lg);
}

/* ---- Status bar ---- */

.gb-orders-status {
    font-size: var(--gb-font-md);
    color: var(--gb-text-muted);
    min-height: 24px;
    margin-bottom: var(--gb-space-md);
}

.gb-orders-status--loading {
    color: var(--gb-text-muted);
}

.gb-orders-status--error {
    color: var(--gb-danger);
}

.gb-orders-status--success {
    color: #22c55e;
}

/* ---- Card wrapper — wraps the entire order list in a defined container ---- */

.gb-orders-card {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-md);
    background: var(--gb-white);
    overflow: hidden;
}

/* Card header row (desktop only — column labels) */
.gb-orders-card__header {
    display: flex;
    align-items: center;
    padding: var(--gb-space-md) var(--gb-space-lg);
    border-bottom: 2px solid var(--gb-border-light);
    background: var(--gb-bg-gray);
    font-size: var(--gb-font-xs);
    font-weight: 600;
    color: var(--gb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gb-orders-card__header-col--product {
    width: 80px;
    flex-shrink: 0;
}

.gb-orders-card__header-col--info {
    flex: 1;
}

.gb-orders-card__header-col--action {
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

/* ---- Order list ---- */

.gb-orders-list {
    display: flex;
    flex-direction: column;
}

/* ---- Order list item (collapsed row) ---- */

.gb-orders-item {
    display: flex;
    align-items: center;
    gap: var(--gb-space-lg);
    padding: var(--gb-space-lg);
    background: var(--gb-white);
    border-bottom: 1px solid var(--gb-border-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.gb-orders-item:last-child {
    border-bottom: none;
}

.gb-orders-item:hover {
    background: rgba(13, 53, 185, 0.03);
}

.gb-orders-item--expanded {
    background: rgba(13, 53, 185, 0.04);
    border-bottom-color: transparent;
}

/* Thumbnail */
.gb-orders-item__thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.gb-orders-item__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--gb-radius-sm);
}

/* Info block */
.gb-orders-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gb-orders-item__id {
    font-family: monospace;
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: var(--gb-text-main);
}

.gb-orders-item__time {
    font-size: var(--gb-font-sm);
    color: var(--gb-text-muted);
}

.gb-orders-item__amount {
    font-size: var(--gb-font-md);
    font-weight: 700;
    color: var(--gb-blue);
}

.gb-orders-item__hint {
    font-size: var(--gb-font-xs);
    color: var(--gb-text-muted);
    margin-top: 2px;
}

/* Actions */
.gb-orders-item__actions {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gb-orders-item__pay-btn {
    display: inline-block;
    padding: 6px var(--gb-space-lg);
    background: var(--gb-white);
    color: var(--gb-blue);
    border: 1px solid var(--gb-blue);
    border-radius: var(--gb-radius-sm);
    font-size: var(--gb-font-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.gb-orders-item__pay-btn:hover {
    background: var(--gb-blue);
    color: var(--gb-white);
}

/* ---- Detail panel (accordion) ---- */

.gb-orders-detail {
    padding: 0 var(--gb-space-lg) var(--gb-space-lg);
    background: rgba(13, 53, 185, 0.01);
    border-bottom: 1px solid var(--gb-border-light);
    animation: gb-fade-in 0.2s ease;
}

@keyframes gb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gb-orders-detail__loading {
    text-align: center;
    padding: var(--gb-space-xl);
    color: var(--gb-text-muted);
    font-size: var(--gb-font-sm);
}

.gb-orders-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--gb-space-md);
    padding-top: var(--gb-space-md);
}

/* ---- Part card inside order detail ---- */

.gb-order-part-card {
    background: var(--gb-bg-gray);
    border: 1px solid var(--gb-border-light);
    border-radius: var(--gb-radius-md);
    padding: var(--gb-space-md) var(--gb-space-md) var(--gb-space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.gb-order-part-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gb-order-part-card__qty {
    position: absolute;
    top: var(--gb-space-sm);
    right: var(--gb-space-sm);
    font-size: var(--gb-font-sm);
    font-weight: 600;
    color: #555;
    line-height: 1;
}

.gb-order-part-card__img-wrap {
    text-align: center;
    padding: var(--gb-space-lg) 0 var(--gb-space-md);
    flex-shrink: 0;
}

.gb-order-part-card__img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

.gb-order-part-card__info {
    margin-top: auto;
}

.gb-order-part-card__name {
    font-size: var(--gb-font-sm);
    font-weight: 500;
    color: var(--gb-text-main);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.gb-order-part-card__sku {
    font-size: var(--gb-font-xs);
    color: var(--gb-text-muted);
    line-height: 1.2;
    margin-bottom: 4px;
}

.gb-order-part-card__price {
    font-size: var(--gb-font-xs);
    color: var(--gb-text-muted);
    line-height: 1.3;
    padding-top: var(--gb-space-xs);
    border-top: 1px solid var(--gb-border-light);
}

/* ---- Empty state ---- */

.gb-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px var(--gb-space-lg);
    text-align: center;
}

.gb-orders-empty__icon {
    color: var(--gb-border);
    margin-bottom: var(--gb-space-lg);
}

.gb-orders-empty__text {
    font-size: var(--gb-font-md);
    color: var(--gb-text-muted);
    margin: 0 0 var(--gb-space-xl);
}

.gb-orders-empty__btn {
    display: inline-block;
    padding: var(--gb-space-sm) var(--gb-space-xl);
    background: var(--gb-blue);
    color: var(--gb-white);
    border-radius: var(--gb-radius-sm);
    font-size: var(--gb-font-md);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.gb-orders-empty__btn:hover {
    background: var(--gb-blue-dark);
}

/* ---- Login hint ---- */

.gb-orders-login-hint {
    text-align: center;
    padding: 80px var(--gb-space-lg);
}

.gb-orders-login-text {
    font-size: var(--gb-font-lg);
    color: var(--gb-text-muted);
    margin: 0 0 var(--gb-space-xl);
}

.gb-orders-login-btn {
    display: inline-block;
    padding: 6px var(--gb-space-2xl);
    background: var(--gb-white);
    color: var(--gb-blue);
    border: 1px solid var(--gb-blue);
    border-radius: var(--gb-radius-sm);
    font-size: var(--gb-font-md);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.gb-orders-login-btn:hover {
    background: var(--gb-blue);
    color: var(--gb-white);
}

/* ---- Status badge (moved from gb-batch demo, shared with orders) ---- */

.gb-order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--gb-radius-pill);
    font-size: var(--gb-font-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.gb-order-status--pending {
    background: #fef9c3;
    color: #854d0e;
}

.gb-order-status--paid {
    background: #dcfce7;
    color: #166534;
}

.gb-order-status--expired {
    background: #f1f5f9;
    color: #64748b;
}

.gb-order-status--unknown {
    background: #f1f5f9;
    color: #64748b;
}

/* ---- Pagination container ---- */

.gb-orders-pagination {
    margin-top: var(--gb-space-xl);
}

/* ------------------------------------------------------------------------ */
/* [gb-orders] Responsive — 手机端 (≤768px)                                 */
/* ------------------------------------------------------------------------ */

@media (max-width: 768px) {
    .gb-orders-container {
        margin: 20px auto;
        padding: 0 var(--gb-space-sm);
    }

    .gb-orders-title {
        font-size: var(--gb-font-xl);
    }

    /* Card header: hide on mobile (too cramped) */
    .gb-orders-card__header {
        display: none;
    }

    /* Card: remove border on mobile for edge-to-edge look */
    .gb-orders-card {
        border: none;
        border-radius: 0;
    }

    /* Order row: keep flex but shrink thumbnail, stack actions below */
    .gb-orders-item {
        flex-wrap: wrap;
        gap: var(--gb-space-sm);
        padding: var(--gb-space-md);
    }

    .gb-orders-item__thumb {
        width: 60px;
        height: 60px;
    }

    .gb-orders-item__info {
        flex: 1;
        gap: 2px;
    }

    .gb-orders-item__id {
        font-size: var(--gb-font-xs);
    }

    .gb-orders-item__time {
        font-size: var(--gb-font-xs);
    }

    .gb-orders-item__amount {
        font-size: var(--gb-font-sm);
    }

    .gb-orders-item__actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: var(--gb-space-xs);
    }

    .gb-orders-item__pay-btn {
        padding: var(--gb-space-xs) var(--gb-space-md);
        font-size: var(--gb-font-xs);
    }

    /* Detail grid: smaller minimum column */
    .gb-orders-detail {
        padding: 0 var(--gb-space-md) var(--gb-space-md);
    }

    .gb-orders-detail__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--gb-space-sm);
    }

    /* Part card */
    .gb-order-part-card {
        padding: var(--gb-space-sm) var(--gb-space-sm) var(--gb-space-md);
    }

    .gb-order-part-card__img {
        max-width: 90px;
        max-height: 90px;
    }

    .gb-order-part-card__qty {
        font-size: var(--gb-font-xs);
    }

    /* Empty state */
    .gb-orders-empty {
        padding: 60px var(--gb-space-lg);
    }

    /* Login hint */
    .gb-orders-login-hint {
        padding: 40px var(--gb-space-lg);
    }

    .gb-orders-login-text {
        font-size: var(--gb-font-md);
    }
}
