/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 




 /*侧边栏*/
 



/* Industrial Style Product Categories - Hover Version */
/*.wc-block-product-categories {*/
/*  margin: 0;*/
/*  border: 1px solid #ddd;*/
/*  background: #f5f5f5;*/
/*}*/

/*.wc-block-product-categories-list {*/
/*  list-style: none;*/
/*  padding: 0;*/
/*  margin: 0;*/
/*}*/

/*.wc-block-product-categories-list-item {*/
/*  border-bottom: 1px solid #ddd;*/
/*  position: relative;*/
/*}*/

/*.wc-block-product-categories-list-item:last-child {*/
/*  border-bottom: none;*/
/*}*/

/*.wc-block-product-categories-list-item a {*/
/*  display: block;*/
/*  padding: 12px 15px;*/
/*  color: #333;*/
/*  text-decoration: none;*/
/*  font-weight: 500;*/
/*  transition: all 0.2s;*/
/*  background: #fff;*/
/*}*/

/* Parent category items */
/*.wc-block-product-categories-list-item--has-children > a {*/
/*  background: #f0f0f0;*/
/*  font-weight: 600;*/
/*}*/

/* Active/hover states */
/*.wc-block-product-categories-list-item a:hover,*/
/*.wc-block-product-categories-list-item.current-cat > a {*/
/*  background: #e0e0e0;*/
/*  color: #000;*/
/*}*/

/* Submenu indicator */
/*.wc-block-product-categories-list-item--has-children > a::after {*/
/*  content: '▼';*/
/*  position: absolute;*/
/*  right: 15px;*/
/*  font-size: 10px;*/
/*  color: #666;*/
/*}*/

/* Subcategories */
/*.wc-block-product-categories-list--depth-1 {*/
/*  padding-left: 0;*/
/*  display: none;*/
/*  background: #f8f8f8;*/
/*  border-top: 1px solid #ddd;*/
/*  position: absolute;*/
/*  width: 100%;*/
/*  z-index: 100;*/
/*  box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
/*}*/

/* Show submenu on hover */
/*.wc-block-product-categories-list-item--has-children:hover .wc-block-product-categories-list--depth-1 {*/
/*  display: block;*/
/*}*/

/* Subcategory items */
/*.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item a {*/
/*  padding-left: 25px;*/
/*  background: #f8f8f8;*/
/*  font-weight: 400;*/
/*}*/

/* Current subcategory */
/*.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item.current-cat > a {*/
/*  background: #e0e0e0;*/
/*  font-weight: 500;*/
/*  position: relative;*/
/*}*/

/*.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item.current-cat > a::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  left: 15px;*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  width: 4px;*/
/*  height: 4px;*/
/*  background: #333;*/
/*  border-radius: 50%;*/
/*}*/


/*文章列表导航*/

.wp-block-categories {
  margin: 0;
  border: 1px solid #ddd;
  background: #f5f5f5;
}

.wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-categories-list .cat-item {
  border-bottom: 1px solid #ddd;
  position: relative;
}

.wp-block-categories-list .cat-item:last-child {
  border-bottom: none;
}

.wp-block-categories-list .cat-item a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  background: #fff;
}

/* Active/hover states */
.wp-block-categories-list .cat-item a:hover,
.wp-block-categories-list .cat-item.current-cat > a,
.wp-block-categories-list .cat-item.current-cat-parent > a,
.wp-block-categories-list .cat-item.current-cat-ancestor > a {
  background: #e0e0e0;
  color: #000;
}

/* Submenu indicator for items with children */
.wp-block-categories-list .cat-item.cat-parent > a::after {
  content: '▼';
  position: absolute;
  right: 15px;
  font-size: 10px;
  color: #666;
}

/* Current category marker */
.wp-block-categories-list .cat-item.current-cat > a {
  position: relative;
}

.wp-block-categories-list .cat-item.current-cat > a::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
}

/* ============================================
   工艺详情页面样式 (Process Detail Page)
   ============================================ */

.process-detail-container {
    width: 100%;
    margin: 30px auto;
    padding: 0 15px;
}

.process-detail-wrapper {
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
}

.process-detail-gallery {
    flex: 1;
    min-width: 0;
}

.process-detail-main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    padding-top: 100%; /* 1:1 比例 */
}

.process-detail-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.process-detail-main-image img:hover {
    transform: scale(1.02);
}

.process-detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.process-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #f5f5f5;
    position: relative;
}

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

.process-thumb-item:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.process-thumb-item.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.process-detail-content {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 35px;
    background: #fff;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.process-detail-title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.process-detail-description {
    color: #555;
    line-height: 2;
    font-size: 16px;
    margin-bottom: 30px;
}

.process-detail-description p {
    margin-bottom: 18px;
    text-align: justify;
}

.process-detail-description p:first-of-type {
    font-size: 17px;
    color: #444;
    line-height: 1.9;
}

/* 章节标题样式（如【PVD应用价值】） */
.process-detail-description h3,
.process-detail-description h4 {
    color: #4CAF50;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

.process-detail-description ul,
.process-detail-description ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.process-detail-description li {
    margin-bottom: 18px;
    padding-left: 28px;
    position: relative;
    line-height: 1.9;
}

.process-detail-description li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #4CAF50;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.process-detail-description strong {
    color: #2c3e50;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    margin-right: 8px;
}

/* 关联产品区域 */
.process-linked-products {
    margin-top: 25px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8f5e9;
}

.process-linked-products-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
}

.process-linked-products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.process-linked-products-wrapper {
    position: relative;
    
    margin: 0 30px;
}

.process-linked-products-slider {
    display: flex;
    transition: transform 0.4s ease;
    gap: 8px;
    width: 100%;
}

.process-linked-product-item {
    flex: 0 0 calc(25% - 9px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.process-linked-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.process-linked-product-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.process-linked-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    position: relative;
}

.process-linked-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(69, 160, 73, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-linked-product-item:hover .process-linked-product-image::after {
    opacity: 1;
}

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

.process-linked-product-item:hover .process-linked-product-image img {
    transform: scale(1.05);
}

.process-linked-product-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.process-linked-product-name {
    color: #2c3e50;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.process-linked-product-item:hover .process-linked-product-name {
    color: #4CAF50;
}

/* 轮播导航按钮 */
.process-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
}

.process-products-nav:hover:not(.disabled) {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.process-products-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.process-products-prev {
    left: -20px;
}

.process-products-next {
    right: -20px;
}

/* 响应式：关联产品 */
@media (max-width: 1200px) {
    .process-linked-product-item {
        flex: 0 0 calc(33.333% - 6px);
    }
    
    .process-linked-product-image {
        width: 55px;
        height: 55px;
    }
    
    .process-linked-product-name {
        font-size: 11.5px;
    }
    
    .process-products-prev {
        left: -15px;
    }
    
    .process-products-next {
        right: -15px;
    }
}

@media (max-width: 968px) {
    .process-linked-products-wrapper {
        margin: 0 25px;
    }
    
    .process-linked-products-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .process-linked-product-item {
        flex: 0 0 calc(50% - 4px);
    }
    
    .process-linked-product-link {
        padding: 6px;
        gap: 8px;
    }
    
    .process-linked-product-image {
        width: 50px;
        height: 50px;
    }
    
    .process-linked-product-name {
        font-size: 11px;
    }
    
    .process-products-nav {
        width: 36px;
        height: 36px;
    }
    
    .process-products-prev {
        left: -10px;
    }
    
    .process-products-next {
        right: -10px;
    }
}

@media (max-width: 600px) {
    .process-linked-products {
        margin-top: 20px;
        margin-bottom: 15px;
        padding-top: 15px;
    }
    
    .process-linked-products-wrapper {
        margin: 0 20px;
    }
    
    .process-linked-products-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .process-linked-product-item {
        flex: 0 0 100%;
    }
    
    .process-linked-product-link {
        padding: 6px;
        gap: 8px;
    }
    
    .process-linked-product-image {
        width: 50px;
        height: 50px;
    }
    
    .process-linked-product-name {
        font-size: 11px;
    }
    
    .process-products-nav {
        width: 32px;
        height: 32px;
    }
    
    .process-products-prev {
        left: -5px;
    }
    
    .process-products-next {
        right: -5px;
    }
}

/* CTA 按钮区域 */
.process-detail-cta {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e8f5e9;
}

.process-cta-content {
    margin-bottom: 20px;
}

.process-cta-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.process-cta-description {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.process-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.process-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
    color: #fff !important;
}

.process-cta-button svg {
    transition: transform 0.3s ease;
}

.process-cta-button:hover svg {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .process-detail-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-detail-gallery {
        order: 1;
    }
    
    .process-detail-content {
        order: 2;
        padding: 25px;
    }
    
    .process-detail-title {
        font-size: 24px;
    }
    
    .process-detail-description {
        font-size: 15px;
    }
    
    .process-cta-title {
        font-size: 20px;
    }
    
    .process-cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 600px) {
    .process-detail-container {
        padding: 0 10px;
    }
    
    .process-detail-wrapper {
        padding: 20px;
    }
    
    .process-detail-thumbnails {
        gap: 10px;
    }
    
    .process-thumb-item {
        width: 60px;
        height: 60px;
    }
    
    .process-detail-title {
        font-size: 20px;
    }
    
    .process-detail-content {
        padding: 20px;
    }
    
    .process-cta-title {
        font-size: 18px;
    }
    
    .process-cta-description {
        font-size: 14px;
    }
    
    .process-cta-button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Lightbox 样式 */
.process-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.process-lightbox-overlay.show {
    opacity: 1;
}

.process-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 999999;
}

.process-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

.process-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: transform 0.3s;
}

.process-lightbox-close:hover {
    transform: rotate(90deg);
}