/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* 确保两列容器不会阻止吸顶效果 */
.product-layout {
    overflow: visible !important;
    align-items: flex-start;
}

/* 电脑端左栏固定并独立滚动 */
@media (min-width: 1000px) {
    .product-sticky-sidebar {
        position: sticky;
        top: 100px;
        align-self: flex-start;

        height: calc(100vh - 110px);
        overflow-y: auto;
        overflow-x: hidden;

        padding-right: 14px;
        scrollbar-width: thin;
        scrollbar-color: #888 transparent;
    }

    .product-sticky-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .product-sticky-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .product-sticky-sidebar::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 8px;
    }

    .product-sticky-sidebar::-webkit-scrollbar-thumb:hover {
        background: #666;
    }
}

/* 手机端恢复普通布局 */
@media (max-width: 999px) {
    .product-sticky-sidebar {
        position: static;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
}
/* Products 总页：把 3 改成 4，就会一行显示 4 个 */
.xg-product-category {
  --products-per-row: 4;
  margin: 48px 0;
}

/* 分类标题 */
.xg-product-category > h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

/* 分类标题下方的蓝色分隔线和简介 */
.xg-category-description {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 2px solid #6f9df5;
  line-height: 1.7;
}

.xg-category-description p {
  margin: 0;
}
/* 产品按网格排列 */
.xg-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--products-per-row), minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* 每个产品是一张卡片 */
.xg-product-card {
  min-width: 0;
  border: 1px solid #e5e8ed;
  background: #fff;
}

.xg-product-card a {
  display: block;
  height: 100%;
  padding: 16px;
  color: #273244;
  text-decoration: none;
}

/* products总归途页图片在上：留出统一高度，完整显示产品 */
.xg-product-card img {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0 auto;
  object-fit: contain;
}

/* 标题在下 */
.xg-product-card h3 {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.xg-product-card a:hover h3 {
  color: #2872fa;
}

/* 平板每行 2 个，手机每行 1 个 */
@media (max-width: 900px) {
  .xg-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .xg-product-grid {
    grid-template-columns: 1fr;
  }
}

/*//添加首页的循环产品卡片*/
.led-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.led-product-card {
    margin: 0;
    overflow: hidden;
    background: #fff;
}

.led-product-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.25 / 1;
}

.led-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.led-product-card:hover .led-product-image img {
    transform: scale(1.04);
}

.led-product-title {
    margin: 14px 0 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.led-product-title a {
    color: #222;
    text-decoration: none;
}

.led-product-title a:hover {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* 平板：2列 */
@media (max-width: 900px) {
    .led-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 手机：1列 */
@media (max-width: 520px) {
    .led-products-grid {
        grid-template-columns: 1fr;
    }
}
/* 只调整页脚联系表单的输入框 */
/* 只调整产品详情组件 */
.product-tab-nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 2px solid #202b35;
}

.product-tab-nav button {
    flex: 1;
    padding: 14px 20px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: #bec0c2;
    color: #202b35;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.product-tab-nav button.is-active {
    background: #202b35;
    color: #fff;
}

.product-tab-panel {
    padding: 30px 0;
}

.product-tab-panel[hidden] {
    display: none;
}
/* 下载文件按钮 */
.product-download-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-download-list a {
    display: inline-block;
    padding: 15px 22px;
    background: #202b35;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.product-download-list a:hover {
    background: #1473a6;
    color: #fff;
}
/* FAQ边框、右侧箭头 */
/* 产品 FAQ */
.product-faq-list details {
    margin: 0 0 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
}

.product-faq-list summary {
    position: relative;
    display: block;
    margin: 0;
    padding: 18px 52px 18px 22px;
    color: #202b35;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

/* 去掉左侧默认三角 */
.product-faq-list summary::marker {
    content: "";
}

.product-faq-list summary::-webkit-details-marker {
    display: none;
}

/* 右侧箭头 */
.product-faq-list summary::after {
    content: "";
    position: absolute;
    right: 23px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

.product-faq-list details[open] summary {
    background: #f5f6f7;
    border-bottom: 1px solid #ddd;
}

.product-faq-list details[open] summary::after {
    content: "";
    transform: translateY(-65%) rotate(45deg);
}

.product-faq-answer {
    padding: 18px 22px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.product-faq-answer p:last-child {
    margin-bottom: 0;
}
/* 产品单页样式 */
.led-product-single {
	background: #fff;
	color: #1d2733;
}

/* 首屏左右两列顶部对齐 */
.led-product-single .product-hero-grid {
    align-items: start;
}

.led-product-single .product-summary h1 {
    margin-top: 0;
}
.product-container {
	width: min(1290px, calc(100% - 40px));
	margin: 0 auto;
}

.product-hero {
	padding: 70px 0;
	background: #FAFBFC;
}

.product-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.product-image img {
	display: block;
	width: 100%;
	height: 500px;
	object-fit: cover;
	background: #fff;
	border-radius: 6px;
}

.product-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 500px;
	background: #e8edf1;
	color: #6b7280;
}

.product-category {
	margin-bottom: 14px;
}

.product-category a {
	display: inline-block;
	margin: 0 8px 8px 0;
	color: #1473a6;
	font-size: 14px;
	text-transform: uppercase;
}

.product-summary h1 {
	margin: 0 0 20px;
	font-size: clamp(18px, 4vw, 30px);
	line-height: 1.15;
}

.product-introduction {
	font-size: 18px;
	line-height: 1.7;
	color: #5c6670;
}

.product-features {
	margin: 25px 0 32px;
	padding-left: 20px;
	line-height: 2;
}

.product-enquiry-button {
	display: inline-block;
	padding: 15px 30px;
	background: #f28c18;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
}

.product-enquiry-button:hover {
	background: #d97808;
	color: #fff;
}

.product-content-section {
	padding: 70px 0;
	background-color: #FAFBFC;
}

.product-content {
	font-size: 17px;
	line-height: 1.8;
}

.product-content img {
	max-width: 100%;
	height: auto;
}

.related-products {
	padding: 70px 0;
	background: #FAFBFC;
}

.related-products h2 {
	margin: 0 0 35px;
	text-align: center;
	font-size: 34px;
}

.related-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.related-product-card {
	overflow: hidden;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.related-product-card a {
	display: block;
	padding-bottom: 24px;
	color: inherit;
	text-decoration: none;
}

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

.related-product-card h3 {
	margin: 20px 20px 10px;
	font-size: 21px;
}

.related-product-card span {
	margin-left: 20px;
	color: #1473a6;
	font-weight: 600;
}

@media (max-width: 768px) {
	.product-hero {
     padding: 40px 0;
        
	}

	.product-hero-grid,
	.related-product-grid {
		grid-template-columns: 1fr;
	}

	.product-image img,
	.product-no-image {
		height: 360px;
	}

	.product-summary h1 {
		font-size: 20px;
	}

}