/* 顶部横幅 */
.banner-section {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    margin-top: 60px;
}

.banner-content {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}


/* 产品分类导航 */
.category-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 40px;
}

.category-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.category-section h2 span {
    color: #ddbd84;
}

.category-section h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #ddbd84;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 产品分类 */
.product-categories {
    margin-bottom: 30px;
}

/* 一级栏目 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tabs ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tabs ul li,
.category-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 16px;
    color: #666;
}

.category-tabs ul li:hover,
.category-tab:hover {
    background: #e0e0e0;
}

.category-tabs ul li a,
.category-tab a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.category-tabs ul li.active,
.category-tab.active {
    background: #ddbd84;
    color: #333;
}

/* 二级栏目容器 */
.category-content {
    border: 1px solid #f7f7f7;
    background: #f7f7f7;
    padding: 20px;
    min-height: 100px;
}

/* 二级栏目 */
.subcategory-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-content li {
    display: inline-block;
}

.subcategory-content a {
    display: inline-block;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
}

.subcategory-content a:hover {
    background: #ddbd84;
    color: #333;
}

.subcategory-content a:active {
    background: #ddbd84;
    color: #333;
}

.subcategory-content a.active {
    background: #ddbd84;
    color: #333;
}

/* 产品展示区域 */
.product-section {
    background: #fff;
    padding: 40px;
    margin-bottom: 60px;
}

.product-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.product-section h2 span {
    color: #ddbd84;
}

/* 产品筛选 */
.product-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-left span {
    font-size: 14px;
    color: #666;
}

.filter-left select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.filter-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-right span {
    font-size: 14px;
    color: #666;
}

.view-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn {
    background: #ddbd84;
    color: #333;
    border: 1px solid #ddbd84;
}

.view-btn.active {
    background: #ddbd84;
    color: #333;
    border: none;
}

.view-btn i {
    margin-right: 5px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
}

/* 搜索结果统计 */
.result-count {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-left: 15px;
}

/* 无搜索结果 */
.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    background: #fafafa;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon i {
    font-size: 32px;
    color: #999;
}

.no-results h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.no-results p {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 10px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #555;
}

/* 产品列表视图 */
.product-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.product-grid.list-view .product-image {
    flex: 0 0 200px;
    height: 150px;
}

.product-grid.list-view .product-info {
    flex: 1;
    padding: 20px;
}

/* 产品卡片 */
.product-card {
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.product-image {
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3,
.product-card:hover .product-info p {
    color: #ddbd84;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination-links {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-links li {
    display: inline-block;
}

.pagination-links a,
.pagination-links .current,
.pagination-links .disabled {
    padding: 8px 16px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background: #fff;
}

.pagination-links a:hover {
    border: 1px solid #ddbd84;
    background: #ddbd84;
    color: #333;
}

.pagination-links a.active,
.pagination-links .current {
    border: 1px solid #ddbd84;
    background: #ddbd84;
    color: #333;
    font-weight: bold;
}

.pagination-links .disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-links .disabled:hover {
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #ccc;
}

/* 产品详情区域 */
.product-detail-section {
    background: #fff;
    padding: 60px 0;
    margin-top: 60px;
}

.product-detail-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* 产品图片容器 */
.product-images-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 0 0 50%;
}

/* 缩略图容器 */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 滚动按钮 */
.thumbnail-scroll-btn {
    width: 80px;
    height: 20px;
    background: #f7f7f7;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-scroll-btn:hover {
    background: #e0e0e0;
}

.thumbnail-scroll-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 缩略图包装器 */
.thumbnails-wrapper {
    width: 80px;
    height: 330px;
    overflow: hidden;
    /* 超出隐藏 */
}

/* 缩略图列表 */
.thumbnail-list {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
}

/* 缩略图项 */
.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 3px;
}

.thumbnail-item:hover {
    border: 1px solid #666;
}

.thumbnail-item.active {
    border: 1px solid #ddbd84;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #eee;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .product-images-container {
        flex-direction: column;
        width: 100%;
    }

    .product-thumbnails {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        box-sizing: border-box;
    }

    .thumbnails-wrapper {
        width: 100%;
        height: 100px;
        overflow: hidden;
    }

    .thumbnail-list {
        flex-direction: row;
        height: 100%;
    }

    .thumbnail-item {
        width: 88px;
        height: 88px;
        margin-bottom: 0;
        margin-right: 2px;
        flex-shrink: 0;
        border: 2px solid transparent;
    }

    .thumbnail-item.active {
        border-color: #ddbd84;
    }

    .thumbnail-item:last-child {
        margin-right: 0;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border: 1px solid #eee;
    }

    /* 移动端左右按钮在下方 */
    .mobile-btn-bar {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 0px;
    }

    .thumbnail-scroll-btn {
        width: 44px;
        height: 40px;
        border: 1px solid #eee;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #333;
        transition: background 0.2s;
    }

    .thumbnail-scroll-btn:disabled {
        background: #f5f5f5;
        color: #ccc;
        cursor: not-allowed;
    }

    .thumbnail-scroll-btn:hover:not(:disabled) {
        background: #f0f0f0;
    }

    .product-detail-image {
        min-height: auto;
        width: 100%;
    }
    .product-detail-section{
        padding: 0px;
    }
}

/* 大图容器 */
.product-detail-image {
    flex: 1;
    overflow: hidden;
    border: 1px solid #eee;
}

.product-detail-image img {
    width: 100%;
    height: auto;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.product-detail-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 20px;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    font-size: 14px;
    color: #666;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.specs-list li:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.specs-list li span {
    color: #333;
    font-weight: bold;
    margin-right: 5px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.buy-btn:hover {
    background: #ddbd84;
    color: #000;
}

.buy-btn i {
    margin-right: 8px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #ddbd84;
    color: #fff;
}

.back-btn i {
    margin-right: 8px;
}

/* 标签页样式 */
.product-detail-tabs {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;

    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}

.tab-content {
    background: #f9f9f9;
    padding: 30px;
}
.tab-content p>img{
    max-width: 100%;
    width: 100%;
    object-fit: contain;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.tab-panel p {
    line-height: 1.6;
    color: #666;
}

/* 文档列表样式 */
.document-list {
    border: 1px solid #eee;
    overflow: hidden;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    background: #fff;
}

.document-item:hover {
    background: #eee;
}

/* 隔行颜色交替 */
.document-item:nth-child(even) {
    background: #f9f9f9;
}

.document-item:nth-child(even):hover {
    background: #eee;
}

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

.document-icon {
    width: 40px;
    height: 40px;
    background: #ff4d4f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 20px;
}

.document-icon img {
    width: 40px;
    height: 40px;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.document-info h4 a {
    color: #666;
    text-decoration: none;
}

.document-info h4 a:hover {
    color: #000;
    text-decoration: underline;
}

.document-info p {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.document-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

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

.document-download {
    color: #000;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-download:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        width: 100%;
    }

    .category-tabs ul {
        flex-direction: column;
        width: 100%;
    }

    .category-tabs ul li,
    .category-tab {
        width: 100%;
        text-align: center;
    }

    .product-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-left,
    .filter-right {
        width: 100%;
    }

    .view-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .pagination {
        overflow-x: auto;
        white-space: nowrap;
    }

    .pagination-links {
        gap: 5px;
    }

    .pagination-links a,
    .pagination-links .current,
    .pagination-links .disabled {
        padding: 6px 12px;
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid.list-view {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .product-grid.list-view .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .product-grid.list-view .product-image {
        flex: 0 0 120px;
        height: 80px;
    }

    .product-grid.list-view .product-info {
        flex: 1;
        padding: 10px;
    }

    .product-grid.list-view .product-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product-grid.list-view .product-info p {
        font-size: 12px;
        margin-bottom: 0;
    }

    /* 产品详情页面响应式 */
    .product-detail-content {
        flex-direction: column;
        gap: 20px;
    }

    .product-detail-image {
        flex: 0 0 100%;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }

    .tab-content {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}