/* ===============================
   页面整体样式
================================ */
.custom-product-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.product-title {
    display: none; /* PC端隐藏标题，移动端显示 */
}

/* ===============================
   面包屑导航（PC端）
================================ */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    margin-bottom: 20px;
    color: #555;
    background-color: #f9f9f9;
    padding: 0 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb-nav a {
    color: #0078d7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #005fa3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #888;
    font-weight: 400;
}

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

/* ===============================
   产品画廊布局（PC端：缩略图 + 主图 + 右侧信息）
================================ */
.product-gallery-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px; /* 主图与右侧信息区间距 */
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    height: 380px; /* 高度和主图一致 */
    position: relative;
    flex-shrink: 0;
}

.thumbnail-track {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    overflow: hidden; /* 去掉滚动 */
}

.thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.thumb img.active,
.thumb img:hover {
    border-color: #455;
}

/* 缩略图箭头按钮 */
.thumb-nav {
    background: rgba(0,0,0,0.1);
    border: none;
    font-size: 16px;
    cursor: default;
    padding: 2px 6px;
    user-select: none;
    margin: 2px 0;
}

.thumb-nav:hover {
    background: rgba(0,0,0,0.2);
}

.thumb-nav.prev,
.thumb-nav.next {
    transform: rotate(90deg);
}

/* 主图 */
.main-image-container {
    order: 2;
    position: relative;
    width: 380px;
    height: 380px;
    flex-shrink: 0;
    cursor: crosshair;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 放大镜 */
.zoom-lens {
    position: absolute;
    border: 2px solid #000;
    width: 100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
}

.zoom-result {
    position: absolute;
    border: 1px solid #000;
    width: 300px;
    height: 300px;
    top: 0;
    left: 110%;
    background-repeat: no-repeat;
    background-size: cover;
    display: none;
    z-index: 99;
}

/* 右侧信息区 */
.product-side-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 420px;
    order: 3;
}

.product-side-info .info-item {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
	.info-item a {
		text-decoration: underline !important;
			color:#5dade2 !important;
	}

.product-side-info .info-item:nth-last-child(-n+2) {
    border-bottom: none ;
}
.side-title{
		font-weight:bold;
	   font-size:20px;
	   font-family: 
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}
	
	.short_description{
		font-size:14px;
		color: #666;
		
		padding-top:0px !important;
		padding-bottom:0px !important;
	}
	
	.short_description p{
		margin-top:0px !important;
		
	}

.contact-btn {
    padding: 8px 16px;
    background-color: #0078d7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #005fa3;
}

/* ===============================
   产品信息区与锚点导航
================================ */
.product-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.anchor-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.anchor-navigation a {
    text-decoration: none;
    color: #0078d7;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.anchor-navigation a:hover {
    background-color: #0078d7;
    color: #fff;
}

.product-section {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    scroll-margin-top: 80px;
}

.product-section:last-child {
    border-bottom: none;
}

.product-section h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 12px;
}

.product-section p {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}


/* 产品属性表格：固定冒号列宽度 */
.attributes-table {
    table-layout: fixed; /* 关键 */
	  width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.attributes-table th,
.attributes-table td {
    padding: 4px 8px;
    font-size: 15px;
    text-align: left;
	  font-weight: normal;
}

.attributes-table th {
    width: 30%;
	 color: #333;
}

.attributes-table td.attr-sep {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
	  color: #555;
}

.attributes-table td:not(.attr-sep) {
    width: calc(70% - 40px);
	 color: #555;
}

/* 产品描述图片居中 */
.product-description img {
    display: block;
    margin: 0 auto;
}	


	
/* 默认隐藏（PC端） */
.mobile-bottom-btn {
    display: none;
}

/* ===============================
   手机端样式-1
================================ */
@media (max-width: 767px) {

    .product-title {
        display: block;
		   text-align: center;    /* 文字居中 */
    }

    .breadcrumb-nav {
        display: none;
    }

    /* 产品画廊改为纵向 */
    .product-gallery-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-image-container {
        order: 0;
        width: 100%;
        max-width: 500px;
        height: auto;
        margin-bottom: 10px;
    }

    .main-image-container img {
        height: auto;
        object-fit: contain;
    }

    .thumbnail-wrapper {
        order: 1;
        flex-direction: row;
        width: 100%;
        max-width: 500px;
        margin-top: 10px;
        justify-content: flex-start;
        height: 80px !important;
    }

    .thumbnail-track {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 5px;
        scroll-behavior: smooth;
    }

    .thumb-nav {
        display: none;
    }

    .zoom-result {
        display: none !important;
    }

    .product-side-info {
        display: none;
    }

    .anchor-navigation {
        display: none;
    }

    .product-section {
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .product-section h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .product-section p {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .attributes-table tr {
        display: flex;
        justify-content: space-between;
        padding: 2px 0;
    }

    .attributes-table th {
        width: 35%;
        font-weight: normal;
        padding-right: 8px;
        font-size: 15px;
    }

    .attributes-table td {
        width: 65%;
        font-size: 15px;
    }

    /* 移动端底部固定按钮 */
    .mobile-bottom-btn {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #fff;
        box-sizing: border-box;
        z-index: 9999;
        border-top: 1px solid #eee;
        padding: 0 10px !important;
    }

    .mobile-bottom-btn button {
        width: 100%;
        height: 44px;
        background-color: #1677ff;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
    }

    .mobile-bottom-btn button:active {
        background-color: #0958d9;
    }

    .pum-container {
        max-width: 90vw !important;
    }

    body {
        padding-bottom: 60px; /* 避免底部按钮遮挡内容 */
    }
}		

/* ===============================
   平板样式（768px - 1040px）
   基于手机端布局，优化主图/缩略图/字体
================================ */
@media (min-width: 768px) and (max-width: 1040px) {

    /* 显示标题，字体稍大 */
    .product-title {
        display: block;
        font-size: 24px;
        margin-bottom: 18px;
		   text-align: center;    /* 文字居中 */
    }

    /* 隐藏面包屑导航 */
    .breadcrumb-nav {
        display: none;
    }

    /* 产品画廊：纵向布局，主图上方，缩略图横向滚动 */
    .product-gallery-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* 主图容器略大 */
    .main-image-container {
        order: 0;
        width: 95%;
        max-width: 600px;
        height: auto;
        margin-bottom: 12px;
    }

    .main-image-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 缩略图容器略大 */
    .thumbnail-wrapper {
        order: 1;
        flex-direction: row;
        width: 95%;
        max-width: 700px;
        margin-top: 12px;
        justify-content: flex-start;
        height: 100px !important;
    }

    .thumbnail-track {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        scroll-behavior: smooth;
    }

    .thumb img {
        width: 100px;
        height: 100px;
    }

    .thumb-nav {
        display: none;
    }

    /* 隐藏右侧信息区 */
    .product-side-info {
        display: none;
    }

    /* 隐藏锚点导航 */
    .anchor-navigation {
        display: none;
    }

    /* 产品信息区 */
    .product-section {
        padding: 12px 0;
        margin-bottom: 22px;
    }

    .product-section h2 {
        font-size: 22px; /* 略大 */
        margin-bottom: 12px;
    }

    .product-section p {
        font-size: 15px; /* 略大 */
        margin-bottom: 10px;
    }

    /* 属性表格 */
    .attributes-table tr {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
		  
    }

    .attributes-table th {
        width: 35%;
        font-weight: normal;
        padding-right: 8px;
        font-size: clamp(25px, 1.5rem, 30px);
    }

    .attributes-table td {
        width: 65%;
		font-size: clamp(25px, 1.5rem, 30px);
    }

    /* 移动端底部固定按钮显示 */
    .mobile-bottom-btn {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 120px;
        background: #fff;
        box-sizing: border-box;
        z-index: 9999;
        border-top: 1px solid #eee;
        padding: 0 10px !important;
    }

    .mobile-bottom-btn button {
        width: 100%;
        height: 100px;
        background-color: #1677ff;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 34px;
        cursor: pointer;
    }

    .mobile-bottom-btn button:active {
        background-color: #0958d9;
    }

    /* 放大镜隐藏 */
    .zoom-result {
        display: none !important;
    }

    .pum-container {
        max-width: 160vw !important;
    }

    body {
        padding-bottom: 120px; /* 避免底部按钮遮挡内容 */
    }

}
