/* Product detail page - new layout */

.product-detail-layout {
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #333;
}

/* 固定缩略图 */
.product-main-image {
    text-align: center;
    margin-bottom: 50px;
}

.product-main-image img {
    max-width: 100%;
    max-height: 600px;
    display: inline-block;
    vertical-align: middle;
}

/* 主图下方标题 */
.product-main-title {
    text-align: center;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #111;
    margin-top: 20px;
    text-transform: uppercase;
}

/* 文字描述 / 规格 */
.product-spec-section {
    margin-bottom: 50px;
}

.product-spec-title {    font-size: 32px;    font-weight: bold;    color: #111;    text-align: center;    margin-bottom: 20px;}

.product-spec-actions {
    text-align: center;
    margin-bottom: 30px;
}

.product-btn {
    display: inline-block;
    padding: 8px 24px;
    margin: 0 10px;
    border: 2px solid #f36523;
    color: #f36523;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #f36523;
    color: #fff;
}

.product-spec-content {    max-width: 900px;    margin: 0 auto;    padding: 40px;    background-color: #ffffff;    border-radius: 0;    line-height: 1.8;    text-align: center;}

/* 产品细节图：两列网格 */
.product-detail-images {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.detail-img-item {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.detail-img-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 视频编辑框：居中 */
.product-video-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

.product-video-wrap video,
.product-video-wrap iframe,
.product-video-wrap embed {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* WAP */
@media (max-width: 768px) {
    .product-main-image img {
        max-height: 320px;
    }

    .product-detail-images {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px 0;
    }

    .product-spec-content,
    .product-video-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Lightbox */
.product-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.product-lightbox.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.product-lightbox img {
    max-width: 90%;
    max-height: 90%;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* Text description white background, larger text, hover animation */
.product-spec-content {
    font-size: 30px;
}
.product-spec-content p { display: inline-block; text-align: left !important; white-space: pre-wrap; margin: 0; }
.product-spec-content p,
.product-spec-content span,
.product-spec-content strong,
.product-spec-content a {
    font-size: inherit !important;
}
.product-spec-content a,
.product-spec-content a span {
    background-size: 0% 100% !important;
    transition: all 0.5s ease !important;
}
.product-spec-content a:hover,
.product-spec-content a:hover span,
.product-spec-content span:hover {
    background-size: 100% 100% !important;
}

/* 配件列表页 3 列缩略图 */
.parts-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.parts-product-item {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parts-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.parts-product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.parts-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.parts-product-title {
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #111;
    font-family: Arial, sans-serif;
}

/* 产品详情页：左主图 + 右标题/小图 */
.product-top-section {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.product-left-image {
    flex: 0 0 55%;
    max-width: 660px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.product-left-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.product-right-info {
    flex: 1;
    min-width: 0;
}

.product-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #111;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    font-family: Arial Black, Arial, sans-serif;
    line-height: 1.3;
}

.product-thumb-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.product-thumb-scroll::-webkit-scrollbar {
    height: 6px;
}

.product-thumb-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.product-thumb-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-thumb-item:hover {
    border-color: #f36523;
}

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

/* WAP */
@media (max-width: 768px) {
    .parts-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-top-section {
        flex-direction: column;
    }
    .product-left-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .product-left-image img {
        max-height: 320px;
    }
    .product-detail-title {
        font-size: 22px;
    }
    .product-thumb-item {
        width: 80px;
        height: 80px;
    }
}

/* 配件列表页网格优化：正方形 + 整齐对齐 */
.parts-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.parts-product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parts-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.parts-product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.parts-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.parts-product-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #111;
    font-family: Arial, sans-serif;
    min-height: 60px;
    line-height: 1.4;
}

/* 分页按钮美化 */
.pager {
    text-align: center;
    margin-top: 50px !important;
}

.pager span {
    display: inline-block;
    margin: 0 4px;
}

.pager a,
.pager .page-status {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pager a:hover {
    background: #f36523;
    color: #fff;
    border-color: #f36523;
}

.pager .page-num-current {
    background: #f36523;
    color: #fff;
    border-color: #f36523;
    font-weight: bold;
}

.pager .page-status {
    background: #f9f9f9;
    color: #666;
    cursor: default;
}
/* 下载页 PDF 列表样式 */
.download-list {
    max-width: 1200px;
    margin: 0 auto;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 22px 24px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.download-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pdf-icon {
    width: 56px;
    height: 56px;
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-right: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.download-info {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.download-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    line-height: 1.4;
}

.download-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.download-divider {
    color: #ccc;
}

.download-link {
    color: #666;
    text-decoration: none;
    word-break: break-all;
}

.download-link:hover {
    color: #f36523;
    text-decoration: underline;
}

.download-action a {
    display: inline-block;
    padding: 10px 26px;
    background: #f36523;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.download-action a:hover {
    background: #d9531e;
}

/* WAP 下载页 */
@media (max-width: 768px) {
    .download-item {
        flex-wrap: wrap;
        padding: 18px;
    }
    .pdf-icon {
        width: 48px;
        height: 48px;
        font-size: 12px;
        margin-right: 15px;
    }
    .download-info {
        flex: 1;
        padding-right: 0;
        margin-bottom: 15px;
    }
    .download-info h3 {
        font-size: 16px;
    }
    .download-action {
        width: 100%;
        text-align: right;
    }
    .download-action a {
        padding: 8px 20px;
        font-size: 13px;
    }
}
/* 配件详情页：单张大图 */
.parts-single-image {
    text-align: center;
    margin-bottom: 50px;
}

.parts-single-image img {
    max-width: 100%;
    max-height: 600px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

@media (max-width: 768px) {
    .parts-single-image img {
        max-height: 320px;
    }
}
/* 配件详情页：主图下方多图居中 */
.parts-detail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.parts-detail-img-item {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.parts-detail-img-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .parts-detail-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
/* 产品详情页：多图滚动区主图下方居中 */
.product-thumb-section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.product-thumb-section .product-thumb-scroll {
    justify-content: center;
}
/* 荣誉资质图片网格 */
.honor-section {
    max-width: 1200px;
    margin: 0 auto;
}

.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.honor-item {
    display: block;
    text-decoration: none;
    color: #666;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.honor-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.honor-item p {
    margin: 0;
    padding: 12px 10px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
/* 荣誉资质详情页多图 */
.honor-detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.honor-detail-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .honor-detail-images {
        grid-template-columns: 1fr;
    }
}
/* 下载文件按钮 */
.product-download-wrap {
    text-align: center;
    margin: 30px 0;
}

.product-download-btn {
    display: inline-block;
    min-width: 280px;
    padding: 16px 40px;
    background: #f36523;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-download-btn:hover {
    background: #d9531e;
    transform: translateY(-2px);
}

/* 产品视频区域 */
.product-videos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.product-video-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    background: #fff;
}

.product-video-item:last-child {
    margin-bottom: 0;
}

.product-video-player {
    flex: 0 0 55%;
    max-width: 660px;
    background: #f5f5f5;
}

.product-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.product-video-info {
    flex: 1;
    text-align: left;
}

.product-video-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-family: Arial Black, Arial, sans-serif;
    line-height: 1.3;
}

/* WAP */
@media (max-width: 768px) {
    .product-download-btn {
        min-width: 220px;
        padding: 14px 28px;
        font-size: 16px;
    }

    .product-video-item {
        flex-direction: column;
        gap: 20px;
    }

    .product-video-player {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .product-video-info {
        text-align: center;
    }

    .product-video-title {
        font-size: 22px;
    }
}
