/* 基础样式重置 */
        /* 搜索和复选框容器 - 同行排列 */
        .search-and-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 3px; /* 与导航栏之间留 3px 间距 */
            margin-bottom: 10px; /* 缩小底部间距 */
            width: 100%;
        }

        /* 搜索框容器 - 让标题与输入框拼合 */
        .search-container {
            flex: 1.5;
            display: flex;
            align-items: center;
            position: relative;
        }

        .search-container input {
            width: 100%;
            height: 28px;
            padding: 2px 8px;
            font-size: 12px;
            font-family: SimSun, serif;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .search-container input::placeholder {
            font-family: SimSun, serif;
            font-size: 11px;
            color: #999;
        }

        /* 列表标题（与输入框同行，无边框无背景） */
        .list-title {
            font-size: 14px;
            font-weight: normal;
            color: #333;
            margin: 0;
            padding: 0;
            height: 30px;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* 配件名称 - 彩色轮动背景，黑色字体 */
        .cat-name {
            color: #000;
            padding: 1px 6px;
            border-radius: 4px;
            margin-right: 4px;
            background: linear-gradient(120deg,
                #ffcccc, #ffe7a8, #c7f0c0,
                #b8d8ff, #e3b6ff, #ffcccc);
            background-size: 300% 300%;
            animation: cat-bg-roll 4s linear infinite;
        }

        @keyframes cat-bg-roll {
            0%   { background-position:   0% 50%; }
            100% { background-position: 300% 50%; }
        }

        /* 复选框容器 - 缩小字号 */
        .checkbox-container,
        .checkbox-container label {
            font-size: 12px;
        }

        /* 复选框样式 - 紧凑排列 */
        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            white-space: nowrap; /* 防止换行 */
        }

        input[type=checkbox] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        /* 刷新按钮 */
        .refresh-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            font-size: 12px;
            color: #555;
            background: #f8f8f8;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .refresh-btn:hover {
            background: #e8e8e8;
            border-color: #bbb;
            color: #333;
        }
        .refresh-btn:active { background: #ddd; }
        .refresh-btn .fa { font-size: 13px; }
        .refresh-btn.loading { opacity: 0.7; pointer-events: none; }

        /* 进度遮罩 */
        .refresh-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.35);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        .refresh-overlay.active { display: flex; }

        /* 进度圆环 */
        .refresh-progress {
            background: #fff;
            border-radius: 16px;
            padding: 30px 36px;
            text-align: center;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        }
        .refresh-progress .ring {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 12px;
        }
        .refresh-progress .ring svg {
            transform: rotate(-90deg);
        }
        .refresh-progress .ring .bg {
            fill: none;
            stroke: #eee;
            stroke-width: 6;
        }
        .refresh-progress .ring .fg {
            fill: none;
            stroke: #0b5cff;
            stroke-width: 6;
            stroke-linecap: round;
            stroke-dasharray: 226.2;
            stroke-dashoffset: 226.2;
            animation: spin 1.5s linear infinite;
        }
        @keyframes spin {
            100% { stroke-dashoffset: 0; }
        }
        .refresh-progress .pct {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 18px;
            font-weight: 600;
            color: #0b5cff;
        }
        .refresh-progress .label {
            font-size: 14px;
            color: #666;
            margin-top: 4px;
        }
        .refresh-progress .done { color: #2e7d32; }
        .refresh-progress .fail { color: #c62828; }

        /* 列表样式 */
        .parts-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .parts-list li {
            display: flex;
            align-items: center; /* 垂直居中对齐 */
            padding: 3px 10px;
            border-bottom: 1px solid #eee;
            white-space: nowrap; /* 防止换行 */
            height: 24px; /* 固定行高 */
        }

        /* 商品名称样式 */
        .product-name {
            flex: 1;
            min-width: 0; /* 允许内容收缩 */
            font-size: 14px;
            color: #333;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px;
            cursor: pointer;
            position: relative;
            line-height: 1;
        }

        /* 价格样式 */
        .product-price {
            position: relative;
            display: inline-block;
            width: 84px;
            text-align: right;
            color: #ff0000;
            font-weight: bold;
            font-size: 14px;
            margin-right: 0px;
            white-space: nowrap;
            line-height: 1;
        }

        /* 价格文字 - 隐藏时直接模糊（红色保留） */
        .product-price .price-text {
            display: inline-block;
            transition: filter 0.3s ease;
        }

        /* 粒子 canvas 覆盖层（隐藏态显示，用于粒子物理效果） */
        .product-price .price-mask {
            position: absolute;
            top: -3px;
            left: -4px;
            right: -4px;
            bottom: -3px;
            opacity: 0;
            pointer-events: none;
            overflow: hidden;
            border-radius: 4px;
            transition: opacity 0.3s ease;
        }
        .product-price .price-mask canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* 隐藏态：红色价格文字直接模糊，粒子层显示飘动 */
        .product-price.hidden .price-text {
            filter: blur(3px);
        }
        .product-price.hidden .price-mask {
            opacity: 1;
        }

        /* 图片容器样式 - 单字大小正方形 + 1px 黑边 + 彩色光晕特效 */
        .image-container {
            position: relative;
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            cursor: pointer;
            margin-right: 6px; /* 与文字之间仅留一个空格间距 */
            margin-left: -3px; /* 整体再向左移 3px */
            border: 1px solid #000;
            border-radius: 3px;
            overflow: hidden;
            animation: thumb-glow 3s linear infinite;
        }

        /* 缩略图样式 */
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            background: #fff;
            transition: transform 0.3s ease;
        }

        /* 循环彩色光晕动画 */
        @keyframes thumb-glow {
            0%   { box-shadow: 0 0 4px 1px rgba(255, 107, 107, 0.9); }
            20%  { box-shadow: 0 0 4px 1px rgba(255, 217, 59, 0.9); }
            40%  { box-shadow: 0 0 4px 1px rgba(107, 203, 119, 0.9); }
            60%  { box-shadow: 0 0 4px 1px rgba(77, 150, 255, 0.9); }
            80%  { box-shadow: 0 0 4px 1px rgba(198, 78, 224, 0.9); }
            100% { box-shadow: 0 0 4px 1px rgba(255, 107, 107, 0.9); }
        }

        /* 图片放大效果 - 三分之二宽度居中显示 */
        .image-container.enlarged {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            width: 66.67vw !important; /* 三分之二视口宽度 */
            max-width: 760px !important;
            min-width: 280px !important;
            height: auto !important;
            max-height: 82vh !important;
            z-index: 1000 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            background: white;
            padding: 15px;
            border-radius: 8px;
            transform-origin: center center;
            animation: scaleIn 0.3s ease-out forwards !important; /* 入场动画 */
        }

        /* 放大后图片样式 - 保持原图比例 */
        .image-container.enlarged .product-image {
            width: 100%;
            height: auto;
            max-height: 82vh;
            object-fit: contain;
        }

        /* 背景遮罩 - 添加淡入动画 */
        .backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .backdrop.active {
            display: block;
            opacity: 1;
        }

        /* 退场动画类 */
        .image-container.enlarged.closing {
            animation: scaleOut 0.3s ease-in forwards;
        }

        .backdrop.closing {
            opacity: 0;
        }

        /* 全称提示样式 */
        .fullname-tooltip {
            position: fixed;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 14px;
            z-index: 1001;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .fullname-tooltip.active {
            opacity: 1;
        }

        /* 动画定义 */
        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes scaleOut {
            from {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            to {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
        }

        /* 响应式调整 - 小屏幕优化 */
        @media (max-width: 480px) {
            .search-and-checkbox {
                gap: 5px;
            }
            
            .checkbox-container {
                font-size: 13px;
            }
            
            }

/* 全局重置与基础设置 */
        html, /* 黑灰色主题色定义 */
        :root {
            --primary-dark: #2d2d2d;
            --primary: #333333;
            --primary-light: #4a4a4a;
            --accent: #ffc107;
            --text-light: #f0f0f0;
            --text-dark: #2d2d2d;
        }

        /* 动画效果 */
        @keyframes float {
            0%, 100% { transform: translateX(0) !important; }
            50% { transform: translateX(8px) !important; }
        }

        @keyframes flash {
            0%, 100% { 
                color: var(--text-light);
                opacity: 1;
            }
            50% { 
                color: var(--accent);
                opacity: 0.8;
            }
        }

        /* 响应式调整 - 小屏手机 */
        @media (max-width: 360px) {

        }

        /* 大屏设备优化 */
        @media (min-width: 768px) {

        }