/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background-color: #f9faff;
}

.zhima-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

/* 顶部横幅 */
.banner-wrap {
    width: 100%;
    height: 340px;
    position: relative;
    overflow: hidden;
}

.banner-bg {
    width: 100%;
    height: 100%;
    background-image: url('https://www.zhimaicoud.cn/themes/cart/zhimacart/assets/img/banner-cp.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}



/* 主内容区 */
.main-content {
    max-width: 1340px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 产品选购标题 */
.product-select-title {
    margin-bottom: 20px;
}

.product-select-title h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.product-select-title p {
    font-size: 16px;
    color: #666;
    padding-left: 15px;
}

/* 产品容器 */
.product-container {
    display: flex;
    margin-bottom: 30px;
}

/* 左侧导航 - 新样式 */
.category-nav {
    width: 300px;
    height: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-right: 50px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* 搜索框 */
.search-box {
    padding: 15px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.search-box input {
    width: 100%;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 0 15px 0 35px;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg t='1690000000000' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2222' width='16' height='16'%3E%3Cpath d='M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6c3.2 3.2 8.4 3.2 11.6 0l43.6-43.5c3.2-3.2 3.2-8.4 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z' p-id='2222' fill='%23999999'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    cursor: pointer;
}

/* 分类列表 */
.category-list {
    flex: 1;
    overflow: auto;
}

/* 一级分类项 */
.category-first-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.first-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    cursor: pointer;
    background: linear-gradient(to right, #f9faff 0%, #fff 100%);
    position: relative;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-first-item.active .first-item-header {
    background: linear-gradient(to right, #2b84d7 0%, #fff 100%);
    color: #fff;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='%23666' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.2s ease;
}

.arrow-icon.up {
    transform: rotate(180deg);
}

/* 二级分类列表 */
.category-second-list {
    background-color: #f8f9fa;
    display: none;
}

.category-second-list.show {
    display: block;
}

/* 二级分类项 */
.category-second-item {
    height: 40px;
    line-height: 40px;
    padding: 0 0 0 30px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.category-second-item:hover {
    background-color: rgba(43, 132, 215, 0.05);
    color: #2b84d7;
}

.category-second-item.active {
    background-color: rgba(43, 132, 215, 0.1);
    color: #2b84d7;
    font-weight: 500;
}

/* HOT标签 */
.hot-label {
    background-color: #ff4d4f;
    color: #fff;
    font-size: 10px;
    height: 15px;
    width: 30px;
    line-height: 15px;
    text-align: center;
    border-radius: 2px;
    margin-right: 15px;
    font-weight: normal;
}

/* 产品列表 */
.product-list {
    flex: 1;
}

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

/* 产品卡片 */
.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 库存标签 */
.stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(41, 72, 223, 0.1);
    color: #2948df;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
}

.stock-tag.sold-out {
    background-color: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 15px;
}

/* 产品描述 */
.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 试用选项 */
.trial-option {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(41, 72, 223, 0.05);
    border-radius: 4px;
}

.trial-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.trial-info {
    font-size: 13px;
    color: #2948df;
}

.specs-list {
    margin-bottom: 15px;
}

.spec-item {
    font-size: 14px;
    line-height: 28px;
    color: #666;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9fafe;
}

.price {
    display: flex;
    flex-direction: column;
}

/* 价格块 */
.price-block {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.price-number {
    font-size: 24px;
    font-weight: bold;
    color: #2948df;
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* 原价 */
.original-price {
    width: 100%;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-top: 5px;
}

.btn-buy {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2948df;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-buy:hover {
    background-color: #1c3ac1;
}

.btn-buy.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 分页 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
}

.pagination li.active a {
    background-color: #2948df;
    color: #fff;
    border-color: #2948df;
}

/* 空数据提示 */
.no-data {
    text-align: center;
    padding: 50px 0;
}

.empty img {
    width: 100px;
    margin-bottom: 20px;
}

.empty p {
    color: #999;
    font-size: 14px;
}

/* 禁止使用声明 */
.usage-warning {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.usage-warning p {
    font-size: 14px;
    line-height: 1.6;
    color: #b22222;
}

/* 响应式样式 */
@media screen and (max-width: 1280px) {
    .main-content {
        width: 100%;
        padding: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .banner-wrap {
        height: 200px;
    }
    
    .gpu-text {
        font-size: 80px;
    }
    
    .product-container {
        flex-direction: column;
    }
    
    .category-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
} 