/* 产品详情页样式 */

/* 主容器样式 */
.main-container {
    max-width: 1500px;
    width: 1500px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: #f8f9fa;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.product-thumbnails-container{
    overflow: hidden;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 产品详情容器 */
.product-detail-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    padding: 20px;
}

/* 产品展示区 */
.product-showcase {
    display: flex;
    padding: 35px;
    border-bottom: 1px solid #eee;
    position: relative;
}

@media (max-width: 992px) {
    .product-showcase {
        flex-direction: column;
    }
}

/* 左侧：图片展示区 */
.product-images {
    width: 60%;
    padding-right: 30px;
    display: flex;
    gap: 15px;
    position: relative;
}

@media (max-width: 992px) {
    .product-images {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        flex-direction: column;
    }
}

/* 垂直缩略图列表容器 */
.thumbnails-container {
    position: relative;
    width:fit-content;
    height: 450px;
}

/* 垂直缩略图列表 */
.product-thumbnails-vertical {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 450px;
    overflow-y: hidden;
    padding-right: 10px;
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
}

.product-thumbnails-vertical::-webkit-scrollbar {
    width: 5px;
}

.product-thumbnails-vertical::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.product-thumbnails-vertical::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

.product-thumbnails-vertical::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 缩略图滚动按钮 */
.thumbnail-nav-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.thumbnail-nav-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.thumbnail-nav-btn.prev {
    top: -15px;
}

.thumbnail-nav-btn.next {
    bottom: -15px;
}

.thumbnail-nav-btn i {
    border: solid #666;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.thumbnail-nav-btn.prev i {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.thumbnail-nav-btn.next i {
    transform: rotate(45deg);
    margin-bottom: 3px;
}

/* 大图预览区 */
.product-preview {
    position: relative;
    flex: 1;
    min-width: 620px;
    height: 620px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: crosshair;
}

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

/* 图片放大镜效果 */
.zoom-lens {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -400px;
    border: 1px solid #eee;
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

/* 缩略图项目 */
.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #00823C;
    box-shadow: 0 0 0 1px #00823C;
}

/* 水平缩略图列表 - 保留原有样式但不使用 */
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* 右侧：产品信息 */
.product-info {
    width: 40%;
}

@media (max-width: 992px) {
    .product-info {
        width: 100%;
    }
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.product-code {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 产品标语和使用标签 */
.product-slogan {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-usage-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #1890ff;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 价格信息 */
.product-price-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    width: 60px;
    font-size: 14px;
    color: #666;
}

.price-current {
    font-size: 24px;
    font-weight: 600;
    color: #ff4d4f;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 会员价格样式 */
.member-price-row {
    position: relative;
    background-color: rgba(253, 184, 78, 0.05);
    border-radius: 3px;
    padding: 2px 0;
    margin: 10px -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.member-price-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #FDB84E, #FFD700);
}

.price-member {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFD700, #FDB84E);
    color: #fff;
    padding: 3px 6px 3px 4px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(253, 184, 78, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.member-tag::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

.member-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('../images/member-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.member-price {
    font-size: 20px;
    font-weight: 600;
    color: #FDB84E;
    position: relative;
}

.member-price::after {
    content: "限时特惠";
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 10px;
    background-color: #00823C;
    color: white;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: normal;
    transform: scale(0.85);
    transform-origin: right bottom;
}

.sold-count {
    font-size: 14px;
    color: #666;
}

/* 产品材质 */
.product-material {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.material-label {
    width: 70px;
    font-size: 14px;
    color: #666;
}

.material-value {
    font-size: 14px;
    color: #333;
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 20px;
}

.payment-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    gap: 15px;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.payment-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.payment-icon span {
    font-size: 12px;
    color: #666;
}

/* 规格选择 */
.product-specs {
    margin-bottom: 20px;
}

.specs-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.spec-item:hover {
    border-color: #00823C;
}

.spec-item.active {
    border-color: #00823C;
    background-color: rgba(0,130,60,0.08);
    box-shadow: 0 0 0 1px #00823C;
}

.spec-name {
    font-size: 14px;
    color: #333;
}

.spec-stock {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 仓库选择 */
.warehouse-selection {
    margin-bottom: 20px;
}

.warehouse-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.warehouse-options {
    display: flex;
    gap: 10px;
}

.warehouse-option {
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.warehouse-option:hover {
    border-color: #00823C;
}

.warehouse-option.active {
    border-color: #00823C;
    background-color: rgba(0,130,60,0.08);
    color: #00823C;
    box-shadow: 0 0 0 1px #00823C;
}

/* 商品标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f5f5f5;
    color: #666;
}

.tag.invoice {
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag.reviews {
    background-color: #f6ffed;
    color: #52c41a;
}

.tag.cart {
    background-color: #fff7e6;
    color: #fa8c16;
}

/* 数量选择 */
.quantity-selection {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-label {
    width: 60px;
    font-size: 14px;
    color: #666;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: #e6e6e6;
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    color: #333;
    -moz-appearance: textfield; /* Firefox */
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.action-btn i {
    margin-right: 5px;
    font-size: 18px;
}

.action-btn.favorite {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
}

.action-btn.favorite:hover {
    border-color: #00823C;
    color: #00823C;
}

.action-btn.favorite.active {
    border-color: #00823C;
    color: #00823C;
    background-color: rgba(0,130,60,0.08);
}

.action-btn.add-to-cart {
    background-color: #FDB84E;
    color: #fff;
}

.action-btn.add-to-cart:hover {
    background-color: #fdae35;
}

.action-btn.buy-now {
    background-color: #00823C;
    color: #fff;
}

.action-btn.buy-now:hover {
    background-color: #006e33;
}

/* 图标样式 */
.icon-heart, .icon-cart {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.icon-heart {
    background-image: url('../images/heart-icon.svg');
}

.icon-cart {
    background-image: url('../images/cart-icon.svg');
}

/* 当按钮hover时，图标颜色变化 */
.action-btn.favorite:hover .icon-heart,
.action-btn.favorite.active .icon-heart {
    filter: invert(36%) sepia(96%) saturate(1316%) hue-rotate(127deg) brightness(92%) contrast(101%);
}

.action-btn.add-to-cart .icon-cart {
    filter: brightness(0) invert(1); /* 使图标变为白色 */
}

/* 产品详情标签页 */
.product-tabs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.tab-item {
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00823C;
}

.tab-pane {
    display: none;
    padding:0 30px;
}

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

/* 产品描述 */
.product-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #333;
}

.product-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.product-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.product-description li {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

.product-images-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.product-images-detail img {
    width: 100%;
    border-radius: 4px;
}
.products-container{
    width: 100%;
    max-width: 100%;
}
/* 规格参数容器 */
.specs-container {
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
}

.specs-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #157540;
    font-weight: 600;
}

.specs-container::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 25px;
}

/* 规格参数表格 */
.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 14px 10px;
    text-align: center;
    border-right: 1px solid rgba(221, 221, 221, 0.6);
    border-bottom: 1px solid rgba(221, 221, 221, 0.6);
    vertical-align: middle;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:hover {
    background-color: rgba(0, 130, 60, 0.03);
}

.specs-table th {
    background-color: #a6ddc6;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.specs-table th::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: #00823C;
    border-radius: 2px;
}

.specs-table td {
    color: #666;
    font-size: 15px;
}

.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.specs-table tr:nth-child(even):hover {
    background-color: rgba(0, 130, 60, 0.03);
}

/* 用户评价 */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 25px;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.rating-score {
    font-size: 48px;
    font-weight: 600;
    color: #00823C;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.star {
    width: 16px;
    height: 16px;
    background-image: url('../images/star-empty.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.star.filled {
    background-image: url('../images/star-filled.svg');
    filter: invert(36%) sepia(96%) saturate(1316%) hue-rotate(127deg) brightness(92%) contrast(101%);
}

.star.half-filled {
    background-image: url('../images/star-half.svg');
    filter: invert(36%) sepia(96%) saturate(1316%) hue-rotate(127deg) brightness(92%) contrast(101%);
}

.rating-count {
    font-size: 14px;
    color: #666;
}

.rating-distribution {
    flex-grow: 1;
    padding-left: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.rating-level {
    width: 40px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    flex-grow: 1;
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    margin: 0 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00823C, #4CAF50);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.rating-percent {
    width: 40px;
    font-size: 14px;
    color: #00823C;
    text-align: right;
    font-weight: 500;
}

/* 用户评价列表 */
.review-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #f0f0f0;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-right: 15px;
}

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

.review-content .review-stars {
    margin-bottom: 10px;
    display: flex;
    gap: 3px;
}

.review-content .star {
    width: 14px;
    height: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.review-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.review-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: #00823C;
}

/* 加载更多按钮 */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 10px 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    border-color: #00823C;
    color: #00823C;
    background-color: rgba(0, 130, 60, 0.05);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-preview {
        min-width: 500px;
        height: 500px;
    }
    
    .zoom-result {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .product-preview {
        min-width: 100%;
        height: 500px;
    }
    
    .zoom-result {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 20px;
    }
    
    .product-preview {
        height: 400px;
    }
    
    .product-tabs {
        padding: 20px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-thumbnails-vertical {
        width: 100%;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 10px;
    }
}

/* 规格参数新增部分 */
.spec-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.spec-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    font-weight: 600;
}

.spec-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.spec-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spec-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.spec-image-item::after {
    content: '点击查看大图';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 0;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.spec-image-item:hover::after {
    opacity: 1;
}

.spec-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评价图片样式 */
.review-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.image-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2001;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 2003;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2003;
}

.modal-prev-btn,
.modal-next-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-prev-btn {
    margin-left: -25px;
}

.modal-next-btn {
    margin-right: -25px;
}

.modal-prev-btn:hover,
.modal-next-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 预览图片通用样式 */
.preview-image {
    cursor: pointer;
}

.member-save {
    font-size: 12px;
    color: #00823C;
    margin-left: 5px;
    font-weight: 500;
    background-color: rgba(0, 130, 60, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px dashed rgba(0, 130, 60, 0.3);
}

/* 会员登录提示 */
.member-login-tip {
    display: flex;
    align-items: center;
    background-color: #fffcf3;
    border: 1px dashed #FDB84E;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.member-tip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url('../images/member-tip-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(75%) sepia(57%) saturate(688%) hue-rotate(341deg) brightness(101%) contrast(101%);
}

.member-login-link, .member-register-link {
    color: #FDB84E;
    font-weight: 500;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.member-login-link:hover, .member-register-link:hover {
    color: #f0a732;
    text-decoration: underline;
}

.member-register-link {
    color: #00823C;
}

.member-register-link:hover {
    color: #006c31;
}
        /* 可切削材料表格样式 */
        .material-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .material-table th, .material-table td {
            padding: 12px;
            text-align: center;
            border: 1px solid #e0e0e0;
        }
        
        .material-table th {
            background-color: #a6ddc6;
            color: #333;
            font-weight: 600;
        }
        
        .material-table tr:nth-child(even) td {
            background-color: #f2f2f2;
        }
        
        .material-table tr:nth-child(odd) td {
            background-color: #e0e0e0;
        }
        
        .material-suitability {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .material-suitability.best {
            color: #333;
            font-size: 20px;
        }
        
        .material-suitability.suitable {
            color: #333;
            font-size: 20px;
        }
        
        .legend-container {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-size: 14px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            margin-right: 20px;
        }
        
        .legend-symbol {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 6px;
            font-size: 18px;
        }
        
        .legend-symbol.best {
            color: #333;
        }
        
        .legend-symbol.suitable {
            color: #333;
        }
        
        .price-category {
            margin-bottom: 5px;
            font-weight: 600;
            color: #555;
        }
        
        .price-tier {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding: 8px;
            background-color: #f9f9f9;
            border-radius: 6px;
        }
        
        .tier-name {
            width: 100px;
            font-weight: 500;
        }
        
        .tier-price {
            font-size: 18px;
            font-weight: 600;
            color: #d93025;
        }
        
        .tier-condition {
            font-size: 13px;
            color: #666;
            margin-left: 15px;
        }
        
        /* 规格参数表格样式 */
        .specs-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 20px 0;
            font-size: 14px;
            border: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border-radius: 6px;
            overflow: hidden;
        }
        
        .specs-table th, .specs-table td {
            padding: 14px 10px;
            text-align: center;
            border-right: 1px solid rgba(221, 221, 221, 0.6);
            border-bottom: 1px solid rgba(221, 221, 221, 0.6);
            vertical-align: middle;
        }
        
        .specs-table th {
            background-color: #a6ddc6;
            color: #333;
            font-weight: 500;
            white-space: nowrap;
            position: relative;
        }
        
        /* Column borders for better separation */
        .specs-table th:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            border-right: 1px solid rgba(255, 255, 255, 0.5);
        }
        
        .specs-table tr:nth-child(odd) {
            background-color: #ffffff;
        }
        
        .specs-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .specs-table tr:hover {
            background-color: #f2f9f5;
        }
        
        /* Style for the header with colspan */
        .specs-table th[colspan] {
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        }
        
        /* Style for the dimension headers */
        .specs-table th[rowspan] {
            vertical-align: middle;
        }
        
        /* Make table more compact on mobile */
        @media (max-width: 768px) {
            .specs-table th, .specs-table td {
                padding: 8px 6px;
                font-size: 12px;
            }
        }
/* 购物车样式 */
.cart-panel {
    position: fixed;
    bottom: 0;
    right: -400px;
    width: 100%;
    z-index: 10;
    border-radius: 10px 0 0 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 80vh;
}

.cart-panel.active {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}

.cart-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cart-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 5px;
    transition: color 0.2s;
}

.cart-close:hover {
    color: #333;
}

.cart-close svg {
    width: 18px;
    height: 18px;
}

.cart-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-summary-section {
    margin-bottom: 20px;
}

.cart-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-count {
    font-size: 14px;
    color: #555;
}

.cart-detail-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #157540;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.cart-detail-toggle:hover {
    background-color: rgba(21, 117, 64, 0.1);
}

.cart-detail-toggle svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

.cart-total {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-price {
    color: #f44336;
    font-size: 18px;
}

.cart-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.cart-count-summary {
    font-size: 14px;
    color: #555;
}

.cart-checkout-btn {
    background-color: #157540;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

.cart-checkout-btn:hover {
    background-color: #0e5c32;
}

/* 购物车遮罩层 */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    display: block;
}

/* 购物车商品明细模态框 */
.cart-items-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow: hidden;
}

.cart-items-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cart-items-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}

.cart-items-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-items-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 5px;
    transition: color 0.2s;
}

.cart-items-close:hover {
    color: #333;
}

.cart-items-close svg {
    width: 18px;
    height: 18px;
}

.cart-select-all {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}

.cart-item-checkbox {
    margin-right: 10px;
}

.cart-selection-actions {
    margin-left: auto;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-spec {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.cart-item-stock {
    font-size: 13px;
    color: #28a745;
    margin-bottom: 8px;
}

.cart-item-stock.out-of-stock {
    color: #dc3545;
}

.quantity-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

.quantity-input {
    width: 40px;
    height: 28px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-delete {
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.2s;
}

.cart-item-delete:hover {
    color: #f44336;
}

.empty-cart-message {
    text-align: center;
    padding: 30px 0;
    color: #777;
    font-size: 16px;
}

/* 购物车模态框遮罩层 */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1250;
    display: none;
    backdrop-filter: blur(2px);
}

.cart-modal-overlay.active {
    display: block;
}

/* Toast 消息 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 14px;
    max-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-info {
    background-color: #2196F3;
}

.toast-success {
    background-color: #4CAF50;
}

.toast-warning {
    background-color: #FF9800;
}

.toast-error {
    background-color: #F44336;
}

/* 表格样式优化 */
.specs-table, .material-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.specs-table th, .specs-table td, .material-table th, .material-table td {
    padding: 14px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.specs-table th, .material-table th {
    background-color: #f0f7f3;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #d0e0d6;
}

.specs-table tr:nth-child(even), .material-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.specs-table tr:hover, .material-table tr:hover td {
    background-color: #f0f7f3;
}

/* 产品推荐部分 */
.products-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.products-title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.products-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 图例容器 */
.legend-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}
