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



/* 全局容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-items {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== 产品顶部Hero区域 ====================== */
.product-hero {
    width: 100%;
    background: #fff;
    padding: 60px 0;
}
.hero-row {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    /* 修复：取消垂直居中，顶部对齐 */
    align-items: flex-start;
}

/* 产品画廊 */
.hero-gallery {
    flex: 1.2;
    min-width: 320px;
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(11, 18, 32, 0.04);
    padding: 12px;
}
.gallery-main {
    position: relative;
    overflow: hidden;
}
.slide {
    display: none;
    position: relative;
    z-index: 2;
    width: calc(100% - 24px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.slide.active {
    display: block;
}
.hero-gallery .slide img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

/* 左右切换按钮 */
.hero-gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    color: #222;
    width: 34px;
    height: 34px;
    border-radius: 2px;
    cursor: pointer;
    z-index: 9;
    transition: 0.2s;
}
.prev { left: 10px; }
.next { right: 10px; }
.hero-gallery button:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* 底部缩略图栏 */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.7;
}
.thumb-item.active {
    border-color: #2563eb;
    opacity: 1;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* 右侧产品信息栏 */
.hero-info {
    flex: 1.6;
    min-width: 320px;
}
.single-breadcrumb {
    margin-bottom: 13px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #555;
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li + li::before {
    content: "/";
    margin: 0 6px;
    color: #999;
}
.breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}
.breadcrumb a:hover {
    color: #15234d;
}
.breadcrumb li:last-child {
    color: #0f172a;
    font-weight: 500;
}

.hero-info h1 {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 10px;
    font-weight: 800;
    color: #0b1220;
}
.hero-desc {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 16px;
}
.hero-head-content {
    margin-bottom: 18px;
    line-height: 1.7;
}
.hero-head-content img[src^="https://s.w.org/images/core/emoji"] {
    max-width: 1.2em;
    height: auto;
    vertical-align: middle;
}

/* 产品规格表格 - 分割线加深加粗，更明显 */
.product-spec-table-wrap {
    margin: 20px 0 24px;
}
.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    /* 加粗深色外边框 */
    border: 1px solid #ddd;
    border-radius: 1px;
}
.product-spec-table tr {
    /* 横向分割线加粗深色 */
    border-bottom: 1px solid #ddd;
}
.product-spec-table tr:last-child {
    border-bottom: none;
}
.product-spec-table th {
    width: 260px;
    padding: 16px 20px;
    background: #f5f5f5;
    text-align: left;
    font-weight: 600;
    color: #111111;
    font-size: 15px;
    /* 垂直分割线 */
    border-right: 1px solid #eee;
}
.product-spec-table td {
    padding: 16px 20px;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

/* 移动端自适应 */
@media(max-width:768px){
    .product-spec-table th {
        width: 140px;
    }
}

/* 按钮区域 */
.hero-cta {
    margin-top: 24px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-quote,
.btn-whatsapp {
    padding: 14px 28px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}
.btn-quote {
    background: #194072;
    color: #fff;
    border: 0;
    cursor: pointer;
}
.btn-quote:hover {
    background: #162c47;
}
.btn-whatsapp {
    background: #2F855A;
    color: #fff;
    padding: 14px 24px;
}
.btn-whatsapp:hover {
    background: #1C4532;
    color: #fff;
}

/* 锚点导航 */
.anchor-nav-wrap {
    padding: 18px 0 34px;
}
.anchor-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.anchor-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    min-width: 160px;
    height: 48px;
    border-radius: 2px;
    background: #fff;
    border: 1px solid #334155;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.18s ease;
}
.anchor-nav .nav-item:hover {
    border-color: #1F6B57;
    color: #1F6B57;
}

/* 通用内容区块 */
.block-divider {
    margin-bottom: 60px;
    padding-top: 10px;
}
.table-title {
    font-size: 22px;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #0b1220;
    font-weight: 700;
}
.product-content {
    line-height: 1.8;
    color: #333;
}

/* FAQ区块 */
.faq {
    border-left: 3px solid #22c55e;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    line-height: 1.6;
    color: #1e293b;
}
.faq strong {
    color: #0b1220;
}
.faq-q-text {
    font-size: 17px;
    color: #0b1220;
    font-weight: 600;
}
.faq-a-text {
    font-size: 14px;
    color: #475569;
}

/* 相关产品网格 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 22px;
}
.related-item {
    background: #f7f9fc;
    border: 1px solid #e5e9f2;
    border-radius: 2px;
    overflow: hidden;
    transition: 0.25s ease;
}
.related-item:hover {
    border-color: rgba(34,197,94,0.3);
}
.related-item a {
    text-decoration: none;
    color: #0b1220;
}
.related-info {
    padding: 12px;
}
.related-title {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: #333;
}

/* ====================== 左侧侧边栏双栏布局（和分类页面样式统一：带外框+分类分隔线） ====================== */
.catalog-grid-wrap {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
    /* 侧边栏恢复外边框白底，和分类页一致 */
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}
.catalog-grid-wrap .container-items {
    flex: 1;
    max-width: unset;
    padding: 0;
}

.sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0b1220;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    margin: 0;
}
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
.cat-item {
    position: relative;
    padding: 8px 20px;
    /* 分类项之间保留分隔线 */
    border-bottom: 1px solid #f0f0f0;
}
.cat-item:last-child {
    border-bottom: none;
}
.cat-item > a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding-right: 30px;
}
.cat-item > a.active {
    color: #2F855A;
    font-weight: 600;
}
.toggle-icon {
    position: absolute;
    right: 20px;
    top: 8px;
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

/* 子分类列表 */
.children {
    list-style: none;
    padding-left: 16px;
    height: 0;
    overflow: hidden;
    transition: height 0.24s ease;
    background: #fafafa;
}
.cat-item.open .children {
    height: auto;
    margin-top: 8px;
}
.children li {
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
}
.children a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}
.children a.active {
    color: #2F855A;
    font-weight: 600;
}

/* 侧边栏推荐产品 */
.sidebar-featured-wrap {
    border-top: 1px solid #eee;
}
.sidebar-featured-list {
    list-style: none;
    padding: 16px 20px 24px;
    margin: 0;
}
.featured-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    /* 推荐产品项分隔线保留 */
    border-bottom: 1px solid #f0f0f0;
}
.featured-item:last-child {
    border-bottom: none;
}
.featured-item a {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}
.feat-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
}
.feat-title {
    font-size: 14px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====================== 移动端响应式 ====================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .catalog-grid-wrap {
        flex-direction: column;
    }
    .catalog-sidebar {
        width: 100%;
    }
}
@media (max-width: 900px) {
    .hero-row {
        flex-direction: column;
    }
    .hero-info {
        text-align: center;
    }
    .anchor-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    .anchor-nav .nav-item {
        min-width: unset;
        flex: 1;
        padding: 12px 18px;
    }
}
@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .anchor-nav {
        flex-direction: column;
    }
    .anchor-nav .nav-item {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .hero-info h1 {
        font-size: 28px;
    }
    .product-hero {
        padding: 40px 0;
    }
}

