@charset "UTF-8";
    /*<style>*/
        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        /* 顶部导航栏 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            padding: 0 15px;
            z-index: 1000;
        }
        
        .logo {
            font-weight: bold;
            font-size: 18px;
            color: #e74c3c;
            margin-right: 15px;
        }
        
        .search-box {
            flex: 1;
            position: relative;
        }
        
        .search-input {
            width: 100%;
            height: 34px;
            border: 1px solid #ddd;
            border-radius: 17px;
            padding: 0 15px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }
        
        .search-input:focus {
            border-color: #e74c3c;
        }
        
        .menu-toggle {
            width: 30px;
            height: 30px;
            margin-left: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
        }
        
        .menu-toggle span {
            display: block;
            height: 2px;
            width: 100%;
            background: #333;
            margin: 3px 0;
            transition: 0.3s;
        }
        
        /* 主内容区 */
        .main-content {
            display: flex;
            margin-top: 50px;
            min-height: calc(100vh - 50px);
        }
        
        /* 侧边栏 - 分类导航 */
        .sidebar {
            width: 250px;
            background: #fff;
            height: calc(100vh - 50px);
            overflow-y: auto;
            position: fixed;
            left: 0;
            transition: transform 0.3s;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
            z-index: 900;
        }
        
        .category-header {
            padding: 15px;
            border-bottom: 1px solid #eee;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .category-list {
            padding: 10px 0;
        }
        
        .category-item {
            padding: 8px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: background 0.3s;
        }
        
        .category-item:hover {
            background: #f9f9f9;
        }
        
        .category-item.active {
            background: #e74c3c;
            color: white;
        }
        
        .category-toggle {
            margin-right: 8px;
            width: 16px;
            text-align: center;
            font-size: 12px;
        }
        
        .category-spacer {
            margin-right: 16px;
        }
        
        .category-children {
            display: none;
        }
        
        .category-children.show {
            display: block;
        }
        
        /* 商品列表区 */
        .product-area {
            flex: 1;
            margin-left: 250px;
            padding: 20px;
        }
        
        .page-title {
            margin-bottom: 20px;
            font-size: 20px;
            color: #333;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .product-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .product-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
            background: #f9f9f9;
        }
        
        .product-info {
            padding: 12px;
        }
        
        .product-name {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 40px;
        }
        
        .product-manufacturer {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .product-price {
            font-size: 16px;
            color: #e74c3c;
            font-weight: bold;
        }
        
        /* 商品详情模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }
        
        .modal-content {
            background: #fff;
            max-width: 800px;
            margin: 0 auto;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
        }
        
        .modal-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: bold;
        }
        
        .modal-close {
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }
        
        .modal-body {
            padding: 20px;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }
        
        .product-detail {
            display: flex;
            flex-wrap: wrap;
        }
        
        .product-image-large {
            width: 100%;
            height: 100%;
            max-width: 300px;
            max-height: 300px;
            margin-right: 20px;
            margin-bottom: 20px;
        }
        
        .product-detail-info {
            flex: 1;
            min-width: 300px;
        }
        
        .product-detail-name {
            font-size: 22px;
            margin-bottom: 10px;
            color: #333;
        }
        
        .product-detail-price {
            font-size: 24px;
            color: #e74c3c;
            margin-bottom: 15px;
        }
        
        .detail-section {
            margin-bottom: 20px;
        }
        
        .detail-section h3 {
            font-size: 16px;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }
        
        .detail-row {
            display: flex;
            margin-bottom: 8px;
        }
        
        .detail-label {
            width: 100px;
            color: #666;
            font-size: 14px;
        }
        
        .detail-value {
            flex: 1;
            font-size: 14px;
        }
        
        /* 加载状态 */
        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.show {
                transform: translateX(0);
            }
            
            .product-area {
                margin-left: 0;
                padding: 15px;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }
            
            .modal {
                padding: 10px;
            }
            
            .product-detail {
                flex-direction: column;
            }
            
            .product-image-large {
                max-width: 100%;
                margin-right: 0;
            }
        }
    /*</style>*/