/* ========================================
   产品应用页面样式
   ======================================== */

/* 页面背景色 */
body {
    background: #fff;
}

/* 产品应用页面容器 */
.container.product-application-page {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.product-application-page {
    padding: 40px 0;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin: 20px 0;
}

.page-title h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-title .breadcrumb {
    font-size: 14px;
    color: #7f8c8d;
}

.page-title .breadcrumb a {
    color: #3b7dd6;
    text-decoration: none;
}

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

/* 分类导航 */
.category-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav-item a {
    display: block;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #606266;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.category-nav-item a:hover {
    background: #e8f4ff;
    color: #3b7dd6;
}

.category-nav-item a.active {
    background: #3b7dd6;
    color: #fff;
}

/* 产品列表区域 */
.products-section {
    padding: 0;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-list {
    display: flex;
    flex-direction: column;
}

/* 产品项外层容器 - 全屏背景 */
.product-item-wrapper {
    width: 100%;
    padding: 10px 0;
}

.product-item-wrapper.bg-white {
    background: #fff;
}

.product-item-wrapper.bg-gray {
    background: #f9f9f9;
}

/* 产品项 */
.product-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    box-shadow: none !important;
    background: none !important;
}

.product-item:hover {
    box-shadow: none !important;
    background: none !important;
}

.product-item.image-left {
    flex-direction: row;
}

.product-item.image-right {
    flex-direction: row-reverse;
}

/* 产品图片 */
.product-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
    text-decoration: none;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品徽章 */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.product-badges .badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.product-badges .badge.hot {
    background: #ff4757;
}

.product-badges .badge.new {
    background: #3b7dd6;
}

/* 产品内容 */
.product-content {
    flex: 1;
    padding: 0;
}

.product-item.image-right .product-content {
    padding: 30px 0 30px 30px;
}

.product-title-link {
    text-decoration: none;
    display: block;
}

.product-title {
    font-size: 24px;
    color: #3b7dd6;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-title-link:hover .product-title {
    color: #2d6bc4;
}

/* 产品参数 */
.product-params {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-params li {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.product-params .param-icon {
    color: #999;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1.5;
}

.product-params .param-name {
    color: #666;
    flex-shrink: 0;
}

.product-params .param-value {
    color: #333;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.product-actions a,
.product-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
}

.product-actions .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-inquiry {
    background: #3b7dd6;
    color: #fff;
    border: 2px solid #3b7dd6;
    box-shadow: 0 2px 8px rgba(59, 125, 214, 0.2);
}

.btn-inquiry svg {
    width: 20px;
    height: 20px;
}

.btn-inquiry:hover {
    background: #2d6bc4;
    border-color: #2d6bc4;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 125, 214, 0.4);
}

.btn-inquiry:active {
    box-shadow: 0 2px 6px rgba(59, 125, 214, 0.3);
}

.btn-more {
    background: #fff;
    color: #3b7dd6;
    border: 1px solid #3b7dd6;
}

.btn-more:hover {
    background: #3b7dd6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 125, 214, 0.3);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* 分页样式 */
.pagination-box {
    padding: 20px 0;
    text-align: center;
}

/* ThinkPHP 默认分页样式覆盖 */
.pagination-box ul {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-box ul li {
    display: inline-block;
}

.pagination-box ul li a,
.pagination-box ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: none;
    background: #f5f5f5;
    color: #606266;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 6px;
}
.pagination-box ul li.pageNum a{
    border-radius: 50%;
}
.pagination-box ul li a:hover {
    background: #e8e8e8;
}

/* 当前页样式 - 蓝色圆形 */
.pagination-box ul li.active span {
    background: #409eff;
    color: #fff;
    border-radius: 50%;
    min-width: 40px;
    width: 40px;
    height: 40px;
}

/* 禁用状态 */
.pagination-box ul li.disabled span,
.pagination-box ul li.disabled a {
    color: #c0c4cc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-box ul li.disabled a:hover {
    background: #f5f5f5;
}

/* 总数信息样式 */
.pagination-box ul li .total-info {
    color: #606266;
    border: none;
    background: none;
    padding: 0;
    min-width: auto;
}

/* 前往文字样式 */
.pagination-box ul li .goto-text {
    color: #606266;
    border: none;
    background: none;
    padding: 0;
    min-width: auto;
}

/* 输入框样式 */
.pagination-box ul li.goto-input {
    margin: 0 5px;
}

.pagination-box ul li.goto-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    color: #606266;
    outline: none;
    transition: border-color 0.3s ease;
}

.pagination-box ul li.goto-input input:focus {
    border-color: #409eff;
}

.pagination-box ul li.goto-input input::-webkit-inner-spin-button,
.pagination-box ul li.goto-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 24px;
    }

    .category-nav-item a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .products-container {
        padding: 0 15px;
    }

    .product-item-wrapper {
        padding: 20px 0;
    }

    .product-item,
    .product-item.image-left,
    .product-item.image-right {
        flex-direction: column !important;
        gap: 0;
    }

    .product-image-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .product-content,
    .product-item.image-right .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .product-params li {
        font-size: 13px;
    }

    .product-params .param-name {
        min-width: 100px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions a,
    .product-actions button {
        text-align: center;
        width: 100%;
    }

    .pagination-box {
        padding: 30px 0;
    }

    .pagination-box ul {
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination-box ul li a,
    .pagination-box ul li span {
        min-width: 36px;
        height: 36px;
        padding: 0 6px;
        font-size: 13px;
    }

    .pagination-box ul li.active span {
        min-width: 36px;
        width: 36px;
        height: 36px;
    }

    .pagination-box ul li.goto-input input {
        width: 45px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========================================
   产品详情页样式（用于详情页）
   ======================================== */

/* 产品详情页容器特殊处理 */
.container.product-detail-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 面包屑导航 */
.product-detail-container > .breadcrumb {
    font-size: 14px;
    color: #7f8c8d;
    padding: 20px 0;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.product-detail-container > .breadcrumb a {
    color: #3b7dd6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-detail-container > .breadcrumb a:hover {
    color: #2d6bc4;
    text-decoration: underline;
}

.product-detail-container > .breadcrumb span {
    color: #333;
}

.product-detail {
    background: #fff;
    width: 100%;
}

.product-main {
    background: #f7f7f7;
    width: 100%;
    padding: 40px 0;
}

.product-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    height: 350px;
    text-align: center;
}

.main-image img {
    height: auto;
    display: block;
    object-fit: none;
    margin: 0 auto;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: all 0.3s ease;

}

.thumbnail:hover,
.thumbnail.active {
    border-color: #ddd;
}

.product-info-detail h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #3b7dd6;
    font-weight: 600;
    line-height: 1.4;
}

.product-info-detail .category {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.product-info-detail .category a {
    color: #0066cc;
}

.price-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.price-box .price {
    font-size: 32px;
    color: #e74c3c;
    font-weight: 700;
}

.summary {
    margin-bottom: 25px;
}

.summary h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.summary p {
    line-height: 1.8;
    color: #555;
}

.product-meta {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* 产品参数列表样式优化 */
.product-params {
    margin-bottom: 30px;
}

.product-params .params-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-params .params-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.product-params .params-list li:last-child {
    border-bottom: none;
}

.product-params .param-name {
    color: #666;
    min-width: 100px;
    flex-shrink: 0;
    position: relative;
    padding-left: 15px;
}

.product-params .param-name::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #3b7dd6;
    font-size: 10px;
}

.product-params .param-value {
    color: #333;
    flex: 1;
}


/* 产品详情内容 */
.product-content {
    width: 100%;
    padding: 40px 0;
}

.product-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-body {
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.content-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* 相关产品 */
.related-products {
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to right, #246CA7, #2EC3A2);
}

.related-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.related-products .section-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    display: block;
}

.related-products .section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    -webkit-text-fill-color:#fff
}

.related-products .section-header .section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 20px;
    background: #fff;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式 */
@media (max-width: 1400px) {
    .related-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .product-main-container {
        grid-template-columns: 400px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .product-main-container {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px;
    }

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

    .product-params .param-name {
        min-width: 80px;
        font-size: 13px;
    }

    .product-params .param-value {
        font-size: 13px;
    }

    .related-products .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 180px;
    }

    .product-card-info {
        padding: 15px;
    }

    .product-card-title {
        font-size: 15px;
    }

    .product-card-desc {
        font-size: 12px;
    }
}


