/* 产品中心区域样式 */
.product-center-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-center-section .more-section-head {
    text-align: center;
    margin-bottom: 60px;
}

.product-center-section .more-section-head .title h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-center-section .more-section-head .title p {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* 产品分类导航 */
.link-section-head ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-wrap: wrap;
}

.link-section-head ul li {
    margin: 0 20px 10px 0;
}

.link-section-head ul li:last-child {
    margin-right: 0;
}

.link-section-head ul li a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.link-section-head ul li a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

/* 产品列表样式 */
.link-section-list {
    margin-bottom: 40px;
}

.list-product-item {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    height: 100%;
}

.list-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.list-product-item .pic {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
    background: #f8f9fa;
}

.list-product-item .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-product-item .text {
    padding: 20px;
}

.list-product-item .text h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.list-product-item .text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 查看更多按钮 */
.more-btn {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

.more-plain-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.more-plain-btn:hover {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
}

.more-plain-btn i {
    margin-left: 8px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .list-product-item .pic {
        height: 180px;
    }
    
    .list-product-item .text {
        padding: 16px;
    }
    
    .list-product-item .text h1 {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .product-center-section {
        padding: 60px 0;
    }
    
    .product-center-section .more-section-head {
        margin-bottom: 40px;
    }
    
    .product-center-section .more-section-head .title h1 {
        font-size: 28px;
    }
    
    .list-product-item .pic {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .product-center-section {
        padding: 40px 0;
    }
    
    .product-center-section .more-section-head .title h1 {
        font-size: 24px;
    }
    
    .link-section-head ul {
        justify-content: flex-start;
        margin-bottom: 30px;
    }
    
    .link-section-head ul li {
        margin: 0 15px 10px 0;
    }
    
    .link-section-head ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .list-product-item .pic {
        height: 140px;
    }
    
    .list-product-item .text {
        padding: 15px;
    }
    
    .list-product-item .text h1 {
        font-size: 15px;
    }
    
    .list-product-item .text p {
        font-size: 13px;
    }
    
    .more-btn {
        margin-top: 30px;
        margin-bottom: 60px;
    }
}

/* FoxUI 椭圆文本样式 */
.foxui-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foxui-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* list-product 样式 */
    .list-product {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    /* ===== 通用工具类 ===== */
    .foxcms-main-product {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    .card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .card-lg {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .rounded-sm {
        border-radius: 8px;
    }

    .rounded-lg {
        border-radius: 12px;
    }

    .transition {
        transition: all 0.3s ease;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text-primary {
        color: #007bff;
    }

    .text-secondary {
        color: #666;
    }

    .text-muted {
        color: #999;
    }

    .text-dark {
        color: #1a1a1a;
    }

    .bg-light {
        background: #f8f9fa;
    }

    .border-bottom {
        border-bottom: 1px solid #eee;
    }

    /* ===== 面包屑导航 ===== */
    .breadcrumb-section {
        padding: 20px 0;
        margin-top: 10px;
        /* background: #f8f9fa;
        border-bottom: 1px solid #eee;*/
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .breadcrumb a {
        color: #007bff;
        text-decoration: none;
    }

    .breadcrumb a:hover {
        text-decoration: underline;
    }

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

    .breadcrumb .current {
        color: #666;
    }

    /* ===== 产品详情主体 ===== */


    /* 产品图片区域 */
    .product-gallery {
        padding-right: 40px;
        margin-bottom: 40px;
        margin-top: 40px;


    }

    /* 产品信息区域 */
    .product-info {
        padding: 20px;

    }

    .main-image {
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .main-image img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

    .thumbnail-list {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

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

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

    /* ===== 产品信息 ===== */

    .product-title {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .product-title_ab {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 0px;
        line-height: 1.3;
    }

    .product-meta {
        margin-bottom: 10px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }

    .meta-label {
        font-size: 14px;
        color: #999;
        width: 58px;
        font-weight: 400;
        text-align: justify;
        text-align-last: justify;
    }

    .meta-value {
        font-size: 14px;
        color: #999;
        font-weight: 400;
    }

    .meta-value a {
        color: #007bff;
        text-decoration: none;
    }

    .meta-value a:hover {
        text-decoration: underline;
    }

    /* ===== 价格和数量 ===== */
    .product-price {

        margin-bottom: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        /* background: #f8f9fa; */
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .price-label {
        font-size: 16px;
        color: #666;
    }

    .price {
        font-size: 24px;
        font-weight: 600;
        color: #007bff;
    }

    .product-quantity {
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .quantity-label {
        font-size: 16px;
        color: #999;

    }

    .quantity-selector {
        display: flex;
        align-items: center;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        background: white;
    }

    .quantity-btn {
            width: 32px;
            height: 32px;
            border: none;
            background: #f8f9fa;
            color: #666;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .quantity-btn:hover {
        background: #007bff;
        color: white;
    }

    .quantity-btn:active {
        transform: scale(0.95);
    }

    .quantity-input {
            width: 50px;
            height: 32px;
            border: none;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            background: white;
            outline: none;
        }

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

    .quantity-input[type=number] {
        -moz-appearance: textfield;
    }

    /* ===== 产品描述和操作 ===== */
    .product-summary {
        margin-bottom: 32px;
        margin-top: 32px;
    }

    .product-summary p {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
    }

    .product-actions {
        display: flex;
        gap: 16px;
    }

    /* ===== 按钮样式 ===== */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 18px;
    }

    .btn-primary {
        background: #007bff;
        color: white;
    }

    .btn-primary:hover {
        background: #0056b3;
    }

    .btn-outline {
        background: transparent;
        color: #007bff;
        border: 2px solid #007bff;
    }

    .btn-outline:hover {
        background: #007bff;
        color: white;
    }

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

    /* ===== 详情标签页 ===== */
    .product-details {
        margin-bottom: 60px;
    }

    .detail-tabs {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .tab-nav {
        display: flex;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: 15px;
    }

    .tab-item {
        flex: 1;
        text-align: center;
        padding: 16px 24px;
        cursor: pointer;
        font-weight: 600;
        color: #666;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .tab-item.active {
        color: #007bff;
        background: white;
        border-bottom-color: #007bff;
    }

    .tab-content {
        padding: 40px;
    }

    .tab-pane {
        display: none;
    }

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

    .content-wrapper {
        font-size: 16px;
        line-height: 1.8;
        color: #333;
    }

    /* ===== 规格和特性网格 ===== */
    .spec-grid,
    .features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .spec-grid {
        gap: 0;
    }

    .features-grid {
        gap: 32px;
    }

    .spec-item {
        display: flex;
        border-bottom: 1px solid #eee;
    }

    .foxui-table {
        width: 100%;
        border-collapse: collapse;
    }

    .foxui-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }

    .spec-label {
        background: #f8f9fa;
        font-weight: 500;
        color: #666;
        width: 30%;
        padding: 12px 16px;
        flex: 0 0 40%;
    }

    .spec-value {
        color: #333;
        padding: 12px 16px;
        flex: 1;
    }

    .feature-item {
        margin-bottom: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid #eee;
    }

    .feature-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    .feature-item h4 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 12px;
    }

    .feature-item p {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
    }

    /* ===== 相关产品 ===== */
    .related-products {
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .section-title {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 40px;
        text-align: center;
    }

    .product-item {
        margin-bottom: 30px;
    }

    .product-link {
        display: block;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        text-decoration: none;
        color: inherit;
    }

    .product-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        text-decoration: none;
        color: inherit;
    }

    .product-image {
        position: relative;
        overflow: hidden;
    }

    .product-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .product-link:hover .product-image img {
        transform: scale(1.05);
    }

    .product-desc {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
        margin-bottom: 16px;
    }

    .product-price .price-value {
        font-size: 22px;
        font-weight: 600;
        color: #ff0000;
        margin-left: 12px;
    }

    /* ===== 响应式设计 ===== */
    @media (max-width: 768px) and (max-width: 1024px) {
        .foxcms-main-product {
        padding-top: 60px;
        padding-bottom: 30px;
        }

        .breadcrumb-section {
            display: none;
        }

        .product-gallery {
            padding-right: 0;
            margin-bottom: 20px;
        }

        .product-info {
            padding: 10px;
        }


        .btn-primary {
            background: #007bff;
            color: white;

        }

        button+button {
            margin-left: 0px;
        }

        .main-image img {
            height: 300px;
        }

        .product-actions {
            flex-direction: row;
            gap: 12px;
            margin-bottom: 30px;
        }

        .product-actions .btn {
            min-width: 0;
        }

        .product-actions .btn:first-child {
            flex: 0.4;
            /* 分享按钮占40% */
        }

        .product-actions .btn:last-child {
            flex: 0.6;
            /* 立即购买按钮占60% */

        }

        .product-quantity {
            flex-direction: row;
            align-items: center;
            gap: 12px;
        }

        .quantity-label {
            min-width: auto;
        }

        .tab-nav {
            flex-direction: row;
        }

        .tab-content {
            padding: 20px;
        }

        .spec-grid,
        .features-grid {
            grid-template-columns: 1fr;
        }

        .features-grid {
            gap: 20px;
        }
    }
/* 固定相关产品信息区高度，避免因文字换行导致卡片高度不一致 */
.related-products .product-info {
    height: 200px; /* 可根据需要微调高度 */
    overflow: hidden; /* 超出内容隐藏，保持布局整齐 */
}