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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f2f6fa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.header {
    background: #fff;
    border-bottom: 1px solid #e4ecf4;
    padding: 15px 0;
    box-shadow: 0 1px 6px rgba(74,144,217,0.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #4a90d9;
    letter-spacing: 1px;
}












    .main-wrap {
            display: flex;
            align-items: flex-start;
            min-height: calc(100vh - 140px);
            margin-top: 20px;
            gap: 20px;
        }

        .sidebar {
            width: 220px;
            flex-shrink: 0;
            position: sticky;
            top: 20px;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(74,144,217,0.08);
        }

        .sidebar-title {
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            background: linear-gradient(135deg, #5a9fd9, #4a90d9);
            padding: 16px 20px;
            letter-spacing: 1px;
        }

        .sidebar-title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 16px;
            background: rgba(255,255,255,0.5);
            border-radius: 2px;
            margin-right: 10px;
            vertical-align: middle;
        }

        .category-list {
            list-style: none;
            padding: 6px 0;
        }

        .category-list li {
            border-bottom: 1px solid #f5f8fb;
        }

        .category-list li a {
            display: block;
            padding: 13px 20px;
            color: #5a6a7e;
            font-size: 14px;
            transition: all 0.25s ease;
            position: relative;
        }

        .category-list li a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #4a90d9;
            transition: width 0.25s ease;
        }

        .category-list li a:hover,
        .category-list li a.active {
            color: #4a90d9;
            background: linear-gradient(90deg, #f0f7ff, #fff);
            border-left: 3px solid #4a90d9;
            padding-left: 17px;
        }

        .category-list li a:hover::after,
        .category-list li a.active::after {
            width: 100%;
        }

        .content {
            flex: 1;
            min-width: 0;
        }

        .breadcrumb {
            background: #fff;
            border-radius: 8px;
            padding: 12px 20px;
            margin-bottom: 15px;
            font-size: 13px;
            color: #999;
            box-shadow: 0 1px 4px rgba(74,144,217,0.04);
        }

        .breadcrumb a {
            color: #6b7d95;
        }

        .breadcrumb a:hover {
            color: #4a90d9;
        }

        .breadcrumb span {
            color: #333;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .product-card {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            transition: box-shadow 0.35s ease, transform 0.35s ease;
            box-shadow: 0 2px 10px rgba(74,144,217,0.05);
        }

        .product-card:hover {
            box-shadow: 0 12px 36px rgba(74,144,217,0.15);
            transform: translateY(-4px);
        }

        .product-img {
            position: relative;
            width: 100%;
            padding-top: 100%;
            background: #f8fafd;
            overflow: hidden;
        }

        .product-img::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 60%, rgba(74,144,217,0.06));
            opacity: 0;
            transition: opacity 0.35s ease;
            z-index: 1;
            pointer-events: none;
        }

        .product-card:hover .product-img::after {
            opacity: 1;
        }

        .product-img img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .product-card:hover .product-img img {
            transform: scale(1.08);
        }

        .product-info {
            padding: 8px 12px;
        }

        .product-name {
            font-size: 14px;
            color: #2c3e50;
            line-height: 1.6;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            margin-bottom: 2px;
            font-weight: 500;
        }

        .product-name a:hover {
            color: #4a90d9;
        }

        .product-price {
            font-size: 20px;
            font-weight: 700;
            color: #4a90d9;
            letter-spacing: -0.5px;
        }

        .product-price .unit {
            font-size: 14px;
            font-weight: 400;
            margin-right: 2px;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 36px 0;
        }

        .pagination a,
        .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 38px;
            height: 38px;
            background: #fff;
            border: 1px solid #e4eaf2;
            border-radius: 6px;
            color: #5a6a7e;
            font-size: 13px;
            transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(74,144,217,0.03);
        }

        .pagination a:hover {
            color: #fff;
            background: #4a90d9;
            border-color: #4a90d9;
            box-shadow: 0 4px 14px rgba(74,144,217,0.25);
            transform: translateY(-1px);
        }

        .pagination .current {
            background: linear-gradient(135deg, #5a9fd9, #4a90d9);
            border-color: #4a90d9;
            color: #fff;
            box-shadow: 0 4px 14px rgba(74,144,217,0.25);
            font-weight: 600;
        }

        .pagination .disabled {
            color: #c5cdd6;
            cursor: not-allowed;
            box-shadow: none;
        }

        .footer {
            background: linear-gradient(180deg, #4a5568, #3d4a5c);
            color: #b0bed0;
            text-align: center;
            padding: 20px 0;
            margin-top: 40px;
            font-size: 13px;
        }

        @media (max-width: 768px) {
            .main-wrap {
                gap: 10px;
                margin-top: 10px;
            }

            .sidebar {
                width: 100px;
                position: sticky;
                top: 10px;
                border-radius: 6px;
            }

            .sidebar-title {
                font-size: 12px;
                padding: 10px 12px;
                letter-spacing: 0;
            }

            .sidebar-title::before {
                width: 3px;
                height: 12px;
                margin-right: 6px;
            }

            .category-list li a {
                padding: 10px 12px;
                font-size: 12px;
            }

            .category-list li a::after {
                display: none;
            }

            .category-list li a:hover,
            .category-list li a.active {
                border-left-width: 2px;
                padding-left: 10px;
            }

            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .product-card {
                border-radius: 6px;
            }

            .product-info {
                padding: 4px 8px;
            }

            .product-name {
                font-size: 13px;
                line-height: 25px;
            }

            .product-price {
                font-size: 15px;
            }

            .product-price .unit {
                font-size: 12px;
            }

            .breadcrumb {
                padding: 10px 14px;
                font-size: 12px;
                border-radius: 6px;
            }
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
             .detail-wrap {
            max-width: 750px;
            margin: 0 auto;
            padding: 0 15px 30px;
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #6b7d95;
            font-size: 14px;
            padding: 14px 0;
            transition: color 0.25s ease, transform 0.25s ease;
        }

        .back-btn:hover {
            color: #4a90d9;
            transform: translateX(-3px);
        }

        .back-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .gallery-wrap {
            position: relative;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(74,144,217,0.08);
        }

        .gallery-viewport {
            position: relative;
            width: 100%;
            padding-top: 50%;
            overflow: hidden;
            touch-action: pan-y pinch-zoom;
            cursor: grab;
        }

        .gallery-viewport:active {
            cursor: grabbing;
        }

        .gallery-track {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            transition: transform 0.35s ease;
        }

        .gallery-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafd;
        }

        .gallery-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
            user-select: none;
            -webkit-user-drag: none;
        }

        .gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(74,144,217,0.3);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.25s ease;
            backdrop-filter: blur(4px);
        }

        .gallery-arrow:hover {
            background: rgba(74,144,217,0.55);
            transform: translateY(-50%) scale(1.08);
        }

        .gallery-arrow svg {
            width: 18px;
            height: 18px;
            fill: #fff;
        }

        .gallery-arrow.prev {
            left: 14px;
        }

        .gallery-arrow.next {
            right: 14px;
        }

        .gallery-dots {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 6px 0;
        }

        .gallery-dots .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #d4dde8;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .gallery-dots .dot:hover {
            background: #8ab4e0;
        }

        .gallery-dots .dot.active {
            background: linear-gradient(135deg, #5a9fd9, #4a90d9);
            width: 24px;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(74,144,217,0.25);
        }

        .detail-card {
            background: #fff;
            border-radius: 12px;
            padding: 14px 18px;
            margin-bottom: 20px;
            box-shadow: 0 2px 14px rgba(74,144,217,0.06);
        }

        .detail-title {
            font-size: 22px;
            font-weight: 700;
            color: #1a2a3a;
            line-height: 1.5;
        }

        .detail-price-row {
            display: flex;
            align-items: baseline;
            gap: 12px;
            padding: 8px 0;
            border-top: 1px solid #edf2f7;
            border-bottom: 1px solid #edf2f7;
        }

        .detail-price-label {
            font-size: 13px;
            color: #8a9bb5;
            background: #f0f6fc;
            padding: 3px 10px;
            border-radius: 4px;
        }

        .detail-price {
            font-size: 28px;
            font-weight: 700;
            color: #4a90d9;
            letter-spacing: -0.5px;
        }

        .detail-price .unit {
            font-size: 16px;
            font-weight: 400;
        }

        .detail-desc {
            background: #fff;
            border-radius: 12px;
            padding: 18px;
            box-shadow: 0 2px 14px rgba(74,144,217,0.06);
        }

        .detail-desc-title {
            font-size: 17px;
            font-weight: 700;
            color: #1a2a3a;
            margin-bottom: 18px;
            padding-left: 14px;
            border-left: 3px solid #4a90d9;
        }

        .detail-desc-content {
            font-size: 15px;
            color: #4a5a6e;
            line-height: 1.9;
        }

        .detail-desc-content img {
            max-width: 100%;
            margin: 12px 0;
            border-radius: 8px;
        }

        .footer {
            background: linear-gradient(180deg, #4a5568, #3d4a5c);
            color: #b0bed0;
            text-align: center;
            padding: 20px 0;
            margin-top: 40px;
            font-size: 13px;
        }

        @media (max-width: 768px) {
            .detail-wrap {
                padding: 0 0 30px;
            }

            .gallery-wrap {
                border-radius: 0;
            }

            .detail-card,
            .detail-desc {
                border-radius: 0;
                margin-left: 0;
                margin-right: 0;
            }

            .detail-wrap .back-btn,
            .detail-card,
            .detail-desc {
                padding-left: 15px;
                padding-right: 15px;
            }

            .gallery-arrow {
                display: none;
            }
        }
