/* 产品详情页面 */
.product-detail-page {
    min-height: 100vh;
    padding: 20px 0;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-header {
    margin-bottom: 20px;
}
.product-detail-back {
    margin-bottom: 20px;
}
.product-detail-back .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D4AF37;
    background-color: #fff;
    color: #D4AF37;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.product-detail-back .back-btn:hover {
    background-color: #D4AF37;
    color: #fff;
}
.product-detail-back .back-btn:active {
    transform: translateY(1px);
}
.page-header .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* 布局容器 */
.product-detail-layout {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 20px;
}

/* 左侧图片区域 */
.product-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.main-image-wrapper {
    width: 50%;
    background: #fff;
    box-sizing: border-box;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.main-image-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.main-video-hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.video-thumbnail {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.video-thumbnail .play-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid #ffffff;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-thumbnail:hover .play-triangle {
    border-left-width: 35px;
    border-top-width: 21px;
    border-bottom-width: 21px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* 缩略图网格 */
.thumbnails-grid {
    display: flex;
    gap: 10px;
    width: 100%;
}

.thumbnail-item {
    cursor: pointer;
    transition: border-color 0.3s;
    overflow: hidden;
    border: 2px solid #000;
    flex: 1;
}

.thumbnail-item.active {
    border-color: #D4AF37;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧信息区域 */
.product-right {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 顶部按钮 */
.top-buttons {
    display: flex;
    gap: 10px;
}

.btn-inquire,
.btn-whatsapp {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-inquire {
    background: #D4AF37;
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

/* 底部 WhatsApp 按钮样式 */
.bottom-buttons-whatsapp {
    margin-top: 10px;
}

.bottom-buttons-whatsapp .btn-whatsapp-contact {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bottom-buttons-whatsapp .btn-whatsapp-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* WhatsApp 图标包装器 */
.bottom-buttons-whatsapp .whatsapp-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* WhatsApp 图标 */
.bottom-buttons-whatsapp .whatsapp-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bottom-buttons-whatsapp .whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bottom-buttons-whatsapp .whatsapp-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.bottom-buttons-whatsapp .whatsapp-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}


.btn-whatsapp:hover {
    opacity: 0.9;
}

/* 产品标题 */
.product-right .product-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.product-model {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin: 5px 0 0 0;
}

/* 产品价格显示 */
.product-price-display {
    font-size: 28px;
    font-weight: 800;
    color: #D4AF37;
}

.product-price-display .price-currency {
    font-size: 20px;
    font-weight: 700;
}

.product-price-display .price-amount {
    font-size: 32px;
}

/* Key Selling Points */
.key-selling-section {
    /* background: #f9f9f9;
    padding: 15px;
    border-radius: 4px; */
}

.key-selling-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.key-selling-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-selling-list li {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    padding-left: 5px;
}

.key-selling-list .bullet {
    color: #D4AF37;
    margin-right: 8px;
}

/* 参数表格 */
.parameter-section {
    /* background: #f9f9f9;
    padding: 15px;
    border-radius: 4px; */
}

.parameter-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
}

.parameter-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.parameter-table tr:last-child {
    border-bottom: none;
}

.param-label {
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    width: 40%;
}

.param-value {
    padding: 8px 0;
    font-size: 13px;
    color: #333;
}

.no-param {
    text-align: center;
    color: #999;
    padding: 20px;
}

.btn-inquire-large {
    width: 100%;
    padding: 15px;
    background: #D4AF37;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-inquire-large:hover {
    opacity: 0.9;
}

/* 标签页区�?*/
.product-tabs {
    background: #fff;
    margin-bottom: 20px;
}

.tabs-nav {
    display: flex;
    background: #333;
    padding: 0;
    margin: 0;
}

.tab-link {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
}

.tab-link:hover {
    background: #555;
}

.tab-link.active {
    background: #D4AF37;
}

.tabs-content {
    padding: 20px 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.tab-content-inner {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

/* 相关产品 */
.related-products {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
}

.related-products h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.related-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-card a {
    text-decoration: none;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 10px;
    line-height: 1.4;
    min-height: 40px;
}

.related-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #D4AF37;
    margin: 0 10px 10px;
}

/* 留言表单 */
.message-form-section {
    background: #fff;
    padding: 20px 0;
}

.message-form-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row input,
.form-item input,
.form-row textarea,
.form-item textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-item input:focus,
.form-row textarea:focus,
.form-item textarea:focus {
    border-color: #D4AF37;
    outline: none;
}

.form-item label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 必填标记样式 - 红色星号 */
.required-mark {
    color: #FF0000;
    font-weight: 700;
    margin-right: 5px;
    font-size: 16px;
}

.message-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.submit-btn {
    align-self: flex-start;
    padding: 12px 30px;
    background: #D4AF37;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* 产品列表页面 */
.products-page {
    min-height: 100vh;
    padding: 40px 0;
    background-color: #e4e4e4;
}

.products-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 38px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37 0%, #2D5A87 100%);
    border-radius: 3px;
}

/* 布局容器 */
.products-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧侧边�?*/
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #545454;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    /* 页头的高�?*/
    top: 170px; 
    overflow: hidden;
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    justify-content: space-between;
}


.category-item.active {
    background: #D4AF37;
    color: #FFFFFF;
    border-radius: 0;
}

.category-item.parent {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.category-item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-item-wrap .active{
    background: #D4AF37;
}
.expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 48px;
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    background: none;
    border: none;
}

.expand-icon:hover {
    color: #FFFFFF;
    opacity: 0.8;
}

.expand-icon.collapsed {
    transform: rotate(-90deg);
}

/* 子分�?*/
.category-group {
    display: flex;
    flex-direction: column;
}

.sub-category {
    display: none;
    flex-direction: column;
    background: #545454;
}

.sub-category.expanded {
    display: flex;
}

.category-item.child {
    font-size: 12px;
    font-weight: 400;
    padding: 12px 20px 12px 40px;
    color: #FFFFFF;
}

.category-item.child:hover {
    background: #444444;
}

.category-item.child.active {
    background: #D4AF37;
    color: #FFFFFF;
    border-radius: 0;
}

/* 右侧主内容区 */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    gap: 16px;
}

.results-count {
    font-size: 15px;
    color: #5D6D7E;
    font-weight: 500;
    flex-shrink: 0;
}

.results-count .count {
    font-weight: 700;
    color: #D4AF37;
    font-size: 18px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    /* width: 280px; */
    height: 44px;
    padding: 0 16px;
    border: 2px solid #E0E6ED;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    color: #333333;
    background: #FFFFFF;
    transition: all 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: #477cf0;
}

.search-input::placeholder {
    color: #999999;
}

.search-btn {
    height: 44px;
    width: 52px;
    padding: 0;
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .search-btn:hover {
    background: #C0392B;
} */

.search-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Filter筛选区�?*/
.filter-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select-wrap {
    position: relative;
}

.filter-select {
    height: 36px;
    padding: 0 28px 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 13px;
    color: #333333;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    max-width: 200px;
    /* width: 140px; */
    appearance: none;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select-wrap::after {
    content: '>';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666666;
    pointer-events: none;
    transition: color 0.2s;
}

.filter-select-wrap:hover::after {
    color: #D4AF37;
}

.filter-select-wrap:hover .filter-select {
    border-color: #D4AF37;
}

.filter-select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

.filter-select option {
    padding: 8px 12px;
    font-size: 13px;
    background: #FFFFFF;
    color: #333333;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 300px;
    line-height: 1.4;
}

/* 分类面包屑导�?*/
.category-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-arrow {
    color: #D4AF37;
    font-weight: 600;
}

.breadcrumb-item {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.breadcrumb-item.parent {
    color: #2C3E50;
    font-weight: 600;
}

.breadcrumb-item.child {
    /* color: #D4AF37; */
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* 产品卡片 */
.product-card {
    background: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    padding: 5px;
    border-radius: 5px;
}

.product-card:hover {
    /* transform: translateY(-8px); */
}

/* 产品标签 - 右上角超出样�?*/
.product-tags {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.tag {
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transform: rotate(0deg);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tag::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid rgba(0, 0, 0, 0.3);
    border-top: 8px solid transparent;
}

/* 三个不同颜色的标�?*/
.tag-color-1 {
    background: #DC2626;
}

.tag-color-1::after {
    border-left-color: #991B1B;
}

.tag-color-2 {
    background: #059669;
}

.tag-color-2::after {
    border-left-color: #047857;
}

.tag-color-3 {
    background: #7C3AED ;
}

.tag-color-3::after {
    border-left-color: #6D28D9;
}

/* 产品图片 */
.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F8FAFC;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* .product-card:hover .product-image::after {
    opacity: 1;
} */

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .product-card:hover .product-image img {
    transform: scale(1.05);
} */

/* 产品信息 */
.product-info {
    padding: 24px;
    text-align: center;
    background: #fff;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 16px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 16px;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 10px;
}

.product-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #D4AF37;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

/* .product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.product-btn:hover::before {
    left: 100%;
} */

/* .product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.45);
    color: #FFFFFF;
} */

/* 对比按钮 */
.compare-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #FFFFFF;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* .compare-btn:hover {
    background: #D4AF37;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
} */

.compare-btn.selected {
    background: #D4AF37;
    color: #FFFFFF;
}

/* 无产品提�?*/
.no-products {
    text-align: center;
    padding: 100px 20px;
    grid-column: 1 / -1;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-products p {
    font-size: 18px;
    color: #95A5A6;
    margin: 0;
}

/* 分页 */
.pagination-bar {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: transparent;
    color: #5D6D7E;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(.disabled) {
    background: #D4AF37;
    color: #FFFFFF;
}

.page-btn.active {
    background: #D4AF37;
    color: #FFFFFF;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
    min-width: auto;
    padding: 0 20px;
}

/* 对比弹窗 */
.compare-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.compare-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #D4AF37;
}

.compare-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.compare-modal-body {
    padding: 24px;
}

.compare-list {
    min-height: 100px;
    margin-bottom: 20px;
}

.compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 8px;
}

.compare-item span {
    font-size: 14px;
    color: #2C3E50;
    font-weight: 500;
}

.remove-compare {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D4AF37;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-compare:hover {
    background: #C0392B;
}

.empty-message {
    text-align: center;
    color: #95A5A6;
    padding: 20px;
}

.compare-action-btn {
    width: 100%;
    padding: 14px;
    background: #D4AF37;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* .compare-action-btn:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
} */

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .products-layout {
        gap: 30px;
    }

    .page-title h1 {
        font-size: 34px;
    }
}

@media screen and (max-width: 768px) {
    .products-page {
        padding: 30px 0;
    }

    .products-layout {
        flex-direction: column;
        gap: 24px;
    }

    .sidebar {
        width: 100%;
        position: static;
        padding: 0;
    }

    .sidebar-header {
        padding: 16px;
    }

    .category-list {
        padding: 8px;
    }

    .category-item {
        padding: 12px 14px;
        font-size: 14px;
    }

    .sub-category {
        padding-left: 24px;
    }

    .category-item.child {
        padding-left: 40px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        width: calc(100% - 52px);
    }

    .results-count {
        text-align: center;
    }


    .category-breadcrumb {
        padding: 12px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .product-info {
        padding: 18px;
    }

    .product-name {
        font-size: 15px;
        min-height: auto;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 520px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .filter-select {
        min-width: 100px;
    }
}

/* 移动端分类侧边栏 */
.mobile-category-btn {
    display: none;
    background: #D4AF37;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.category-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.category-sidebar-overlay.active {
    display: block;
}

.category-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.category-sidebar.active {
    left: 0;
}

.category-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #333;
    color: #fff;
}

.category-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
}

.category-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.category-sidebar .category-list {
    padding: 10px 0;
}

.category-sidebar .category-group {
    border-bottom: 1px solid #eee;
}

.category-sidebar .category-item {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.category-sidebar .category-item.active {
    background: #f5f5f5;
    color: #D4AF37;
}

.category-sidebar .sub-category {
    display: none;
    padding-left: 35px;
    background: #fafafa;
}

.category-sidebar .sub-category.expanded {
    display: flex;
}

.category-sidebar .sub-category .category-item {
    padding: 12px 15px;
    font-size: 13px;
}

.category-sidebar .expand-icon {
    float: right;
    margin-top: 3px;
}

/* ==================== 产品详情页响应式 ==================== */

/* iPad 横屏 1024px */
@media screen and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar {
        width: 220px;
    }

    .products-layout {
        gap: 24px;
    }

    .product-detail-container {
        padding: 0 15px;
    }

    .product-detail-layout {
        gap: 20px;
        padding: 15px 0;
    }

    .product-right {
        width: 350px;
    }

    .product-title {
        font-size: 20px;
    }

    .tabs-nav {
        overflow-x: auto;
    }

    .tab-link {
        padding: 12px 15px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* iPad 竖屏 769px - 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .products-page {
        padding: 30px 0;
    }

    .products-layout {
        flex-direction: row;
        gap: 24px;
    }

    .sidebar {
        width: 200px;
        display: block;
    }

    .mobile-category-btn {
        display: none;
    }

    .filter-bar {
        display: grid;
        flex-direction: row;
        gap: 16px;
        padding: 16px;
    }

    .search-box {
        width: auto;
    }

    .filter-section {
        flex-wrap: nowrap;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-detail-page {
        padding: 15px 0;
    }

    .product-detail-container {
        padding: 0 15px;
    }

    .product-detail-layout {
        flex-direction: row;
        gap: 20px;
        padding: 15px;
    }

    .product-left {
        flex: 1;
    }


    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-link {
        flex: none;
        padding: 12px 15px;
        font-size: 13px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* 手机�?768px及以�?*/
@media screen and (max-width: 768px) {
    .products-page {
        padding: 30px 0;
    }

    .products-layout {
        flex-direction: column;
        gap: 24px;
    }

    .sidebar {
        display: none;
    }

    .mobile-category-btn {
        display: block;
    }

    .filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }

    .search-box {
        width: 100%;
    }

    .filter-section {
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .product-info {
        padding: 18px;
    }

    .product-name {
        font-size: 15px;
        min-height: auto;
    }

    .product-actions {
        flex-direction: column;
    }

    /* 产品详情�?*/
    .product-detail-page {
        padding: 10px 0;
    }

    .product-detail-container {
        padding: 0 10px;
    }

    .product-detail-layout {
        flex-direction: column;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
    }

    .product-left,
    .product-right {
        width: 100%;
        flex: none;
    }

    .top-buttons {
        flex-direction: row;
    }

    .btn-inquire,
    .btn-whatsapp {
        padding: 12px 10px;
        font-size: 13px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-model {
        font-size: 14px;
    }

    .key-selling-section h3,
    .parameter-section h3 {
        font-size: 15px;
    }

    .key-selling-list li,
    .param-label,
    .param-value {
        font-size: 12px;
    }

    .param-label {
        width: 35%;
    }

    .btn-inquire-large {
        padding: 14px;
        font-size: 15px;
    }

    .tabs-nav {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }

    .tab-link {
        flex: none;
        width: calc(50% - 5px);
        padding: 10px;
        font-size: 12px;
        text-align: center;
    }

    .tabs-content {
        padding: 15px 0;
    }

    .tab-content-inner {
        font-size: 13px;
    }

    .related-products {
        padding: 15px;
    }

    .related-products h3 {
        font-size: 16px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-card img {
        height: 120px;
    }

    .related-card h4 {
        font-size: 12px;
        min-height: auto;
    }

    .message-form-section {
        padding: 15px;
    }

    .message-form-section h3 {
        font-size: 16px;
    }

    .message-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* 小屏手机 480px及以�?*/
@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .filter-select {
        min-width: 100px;
    }

    .thumbnails-grid {
        gap: 8px;
    }

    .top-buttons {
        flex-direction: column;
    }

    .btn-inquire,
    .btn-whatsapp {
        padding: 14px;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-link {
        width: 100%;
        border-bottom: 1px solid #444;
    }

    .tab-link:last-child {
        border-bottom: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img {
        height: 150px;
    }

    .message-form input,
    .message-form textarea {
        font-size: 13px;
        padding: 10px;
    }

    .submit-btn {
    width: 100%;
    padding: 12px;
}
}

/* ==================== 产品卡片新增样式 ==================== */

/* Inquire 按钮样式 */
.inquire-btn-card {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inquire-btn-card:hover {
    background: #D4AF37;
    color: #ffffff;
}

/* 产品标题添加可点击提�?*/
.product-name {
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: #D4AF37;
}

/* 快速查看规格弹�?*/
.quick-view-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 90%;
    max-width: 320px;
}

.quick-view-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.quick-view-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.quick-view-content {
    padding: 20px;
}

.quick-view-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #D4AF37;
}

.quick-view-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-view-spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.quick-view-spec-list li:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666666;
    font-weight: 500;
}

.spec-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    margin-left: 12px;
}

/* 图片查看器弹�?*/
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.image-viewer-content {
    position: relative;
    max-width: 100vw;
    max-height: 90vh;
    z-index: 1;
}

.image-viewer-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background: #D4AF37;
    color: #ffffff;
}

/* .image-viewer-prev {
    left: -60px;
}

.image-viewer-next {
    right: -60px;
} */

.image-viewer-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
}

/* 响应式调�?*/
@media screen and (max-width: 768px) {
    .image-viewer-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .image-viewer-next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .quick-view-popup {
        width: 95%;
        max-width: 280px;
    }
    
    .quick-view-content {
        padding: 16px;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* 分类滚动区域 */
.category-section {
    padding: 60px 0;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.category-logos {
    overflow: hidden;
    margin-bottom: 50px;
    padding: 20px 0;
    background: #f8f8f8;
    border-radius: 10px;
}

.category-wrapper {
    display: flex;
    animation: categoryScroll 20s linear infinite;
}

.category-wrapper:hover {
    animation-play-state: paused;
}

@keyframes categoryScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.category-item {
    /* flex: 0 0 180px; */
    /* padding: 20px; */
    /* text-align: center; */
    /* transition: transform 0.3s ease; */
    /* text-decoration: none; */
    /* display: block; */
}

.category-item:hover {
    transform: scale(1.05);
}

.category-btn {
    background: #D4AF37;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-btn:hover {
    background: #d68e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 加工图片滚动区域 */
.products-process_images {
    margin-bottom: 20px;
}

.process-images-container {
    background: #fff;
    padding: 20px 0;
}

.process-images-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.process-images-track {
    overflow: hidden;
    /* background: #f8f8f8; */
    /* border-radius: 10px; */
    padding: 20px 0;
}

.process-images-wrapper {
    display: flex;
    animation: processImagesScroll 25s linear infinite;
}

.process-images-wrapper:hover {
    animation-play-state: paused;
}

@keyframes processImagesScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.process-image-item {
    flex: 0 0 400px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.process-image-item:hover {
    transform: scale(1.05);
}

.process-image-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .process-image-item {
        flex: 0 0 150px;
        margin-right: 10px;
    }
    
    .process-image-item img {
        height: 120px;
    }
    
    .process-images-title {
        font-size: 16px;
    }
}