/* =========================
   整体布局
========================= */
.category-product-wrap {
    display: flex;
    gap: 40px;
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* =========================
   左侧分类
========================= */
.category-left {
    flex: 0 0 300px;
    align-self: flex-start;
}

.category-title-text {
    display: flex;
    align-items: center;
    height: 50px;
    margin: 0 0 20px;
    padding-left: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: blue;
}

.category-sidebar {
    padding: 0 20px;
    font-family: Georgia, "Times New Roman", serif;
}

.category-block {
    margin-bottom: 20px;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title span {
    font-size: 16px;
    font-weight: 500;
}

.toggle-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    background: none;
    cursor: pointer;
}

/* 二级分类 */
.category-list {
    list-style: none;
    padding-left: 22px;
    margin-top: 10px;
}

.category-list li {
    position: relative;
    margin-bottom: 10px;
}

.category-list li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0.9em;
    width: 4px;
    height: 1px;
    background: #ddd;
}

.category-list a {
    font-size: 15px;
    color: #999 !important;
    text-decoration: none;
}

.category-list a:hover {
    color: #2f80ff;
}

/* 折叠控制 */
.category-block:not(.is-open) .category-list {
    display: none;
}

/* =========================
   右侧产品区
========================= */
.product-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    background: #eee;
    text-align: center;
}

.category-name {
    display: inline-flex;
    align-items: center;
    height: 48px;
    margin-bottom: 20px;
    padding: 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    background: #eee;
}

.category-description p {
    display: none;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 15px;
}

/* =========================
   产品列表
========================= */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.product-list li {
    flex: 0 0 calc((100% - 40px) / 3);
    position: relative;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.product-image-wrapper:hover {
    transform: translateY(-4px);
}

.product-link img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.product-name-below {
    margin-top: 14px;
    text-align: center;
    transition: opacity 0.3s;
}

/* =========================
   PC Hover 效果
========================= */
@media (min-width: 768px) {
    .product-name-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 20px 0 0 20px;
        background: rgba(0, 123, 255, 0.9);
        display: flex;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .product-list li:hover .product-name-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .product-name-overlay .product-title {
        color: #fff !important;
        font-size: 0.95rem;
        text-decoration: none;
    }

    .product-list li:hover .product-name-below {
        opacity: 0;
    }
}

/* =========================
   移动端
========================= */
@media (max-width: 767px) {
    .category-product-wrap {
        display: block;
        margin: 0;
        padding: 0;
    }

    .category-left,
    .category-title-text,
    .category-sidebar {
        display: none;
    }

    .product-showcase {
        padding: 0 10px;
    }

    .section-title {
        margin-top: 40px;
        margin-bottom: 0;
    }

    .category-name {
        display: flex;
        justify-content: center;
        font-size: 1rem;
        font-weight: 400;
    }

    .product-list {
        gap: 15px;
    }

    .product-list li {
        flex: 1 1 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }

    .product-name-overlay,
    .category-list li::before {
        display: none !important;
    }
}

/* 面包屑导航 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;
}

/* 移动端隐藏 */
@media (max-width: 767px) {
    .breadcrumb-nav {
        display: none;
    }
}

