/* Category list page - match reference card style */

.category-page-title {
    width: 1200px;
    margin: 0 auto;
    padding: 80px 0 30px 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.category-page-title h1 {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 54px;
    color: #000;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.category-tabs {
    width: 1200px;
    margin: 0 auto;
    padding: 30px 0 40px;
    text-align: center;
}

.category-tab {
    display: inline-block;
    padding: 12px 40px;
    margin: 0 12px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #f36523;
    border-radius: 4px;
    background: #fff;
    color: #f36523;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: #f36523;
    color: #fff;
}

.category-sections {
    width: 100%;
    min-width: 1200px;
}

.category-section {
    width: 100%;
    min-width: 1200px;
    padding: 80px 0;
    background-color: #d4dde6;
}

.category-section-inner {
    width: 1200px;
    margin: 0 auto;
}

.category-product-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.category-product-imgwrap {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: transparent;
}

.category-product-imgwrap img {
    max-width: 100%;
    max-height: 520px;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
}

.category-product-info {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background-color: #8a9bb0;
}

.category-product-title {
    font-family: Arial Black, Arial, sans-serif;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
}

.category-product-title div:first-child {
    font-size: 60px;
}

.category-product-title div:last-child {
    font-size: 48px;
}

.category-product-line {
    display: block;
    width: 90%;
    max-width: 320px;
    height: 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.85);
    margin: 28px auto;
}

.category-product-slogan {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 28px;
    letter-spacing: 1px;
}

.category-product-detail {
    display: inline-block;
    padding: 8px 32px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.category-product-detail:hover {
    background: #fff;
    color: #8a9bb0;
}

/* Alternate color schemes */
.category-section:nth-child(4n+1) { background-color: #d4dde6; }
.category-section:nth-child(4n+1) .category-product-info { background-color: #8a9bb0; }
.category-section:nth-child(4n+1) .category-product-detail:hover { color: #8a9bb0; }

.category-section:nth-child(4n+2) { background-color: #e8e0d4; }
.category-section:nth-child(4n+2) .category-product-info { background-color: #b8a894; }
.category-section:nth-child(4n+2) .category-product-detail:hover { color: #b8a894; }

.category-section:nth-child(4n+3) { background-color: #dbe6d8; }
.category-section:nth-child(4n+3) .category-product-info { background-color: #8fa88c; }
.category-section:nth-child(4n+3) .category-product-detail:hover { color: #8fa88c; }

.category-section:nth-child(4n+4) { background-color: #e0e4e8; }
.category-section:nth-child(4n+4) .category-product-info { background-color: #8a94a0; }
.category-section:nth-child(4n+4) .category-product-detail:hover { color: #8a94a0; }

/* WAP responsive */
@media (max-width: 768px) {
    .category-page-title {
        width: 100%;
        padding: 30px 15px 20px;
    }

    .category-page-title h1 {
        font-size: 32px;
    }

    .category-tabs {
        width: 100%;
        padding: 15px 10px 25px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .category-tab {
        padding: 8px 16px;
        margin: 6px 4px;
        font-size: 14px;
    }

    .category-section {
        min-width: 100%;
        padding: 30px 15px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .category-section-inner {
        width: 100%;
    }

    .category-product-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .category-product-imgwrap,
    .category-product-info {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        width: 100%;
        padding: 25px;
    }

    .category-product-imgwrap img {
        max-height: 280px;
    }

    .category-product-title div:first-child {
        font-size: 40px;
    }

    .category-product-title div:last-child {
        font-size: 32px;
    }
}
/* ===== 产品中心新布局：左侧边栏 + 右侧网格 ===== */

.product-center-wrap {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 40px 0 80px;
}

/* 左侧边栏 */
.product-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.product-sidebar-title {
    padding: 24px 18px 24px 12px;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 20px;
    color: #333;
    text-transform: uppercase;
    line-height: 1.2;
    border-bottom: 1px solid #e0e0e0;
}

.product-sidebar-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background: #f36523;
    margin-top: 12px;
    border-radius: 2px;
}

.product-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.product-sidebar-menu li:last-child {
    border-bottom: none;
}

.product-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 16px 18px 16px 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.product-sidebar-menu li.active a,
.product-sidebar-menu li a:hover {
    background: #f36523;
    color: #fff;
}

.product-menu-icon {
    width: 32px;
    height: 32px;
    margin-right: 14px;
    flex-shrink: 0;
}

.product-sidebar-menu li.active .product-menu-icon,
.product-sidebar-menu li a:hover .product-menu-icon {
    filter: brightness(0) invert(1);
}

.product-menu-arrow {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* 右侧主区域 */
.product-main {
    flex: 1;
    background: #f0f0f0;
    border-radius: 0;
    padding: 32px;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 300px;
    max-height: 300px;
    box-sizing: border-box;
    background: #f0f0f0;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 14px 6px;
    border-top: none;
    gap: 8px;
}

.product-card-title {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 17px;
    color: #333;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px 5px 16px;
    background: #f36523;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    transition: background 0.3s ease;
}
.product-card:hover .product-card-btn {
    background: #d9531e;
}


.product-card:hover .product-card-btn {
    background: #d9531e;
}

/* ===== WAP 适配 ===== */
@media (max-width: 768px) {
    .product-center-wrap {
        width: 100%;
        flex-direction: column;
        padding: 20px 12px 40px;
        gap: 20px;
        box-sizing: border-box;
    }

    .product-sidebar {
        width: 100%;
    }

    .product-sidebar-title {
        padding: 18px 15px;
        font-size: 18px;
    }

    .product-sidebar-menu {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .product-sidebar-menu li {
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        flex-shrink: 0;
    }

    .product-sidebar-menu li:last-child {
        border-right: none;
    }

    .product-sidebar-menu li a {
        padding: 14px 16px;
        font-size: 13px;
    }

    .product-menu-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .product-menu-arrow {
        display: none;
    }

    .product-main {
        padding: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card-img {
        min-height: 160px;
        max-height: 160px;
        padding: 0;
        background: #f0f0f0;
    }

    .product-card-img img {
        max-height: 160px;
        background: #f0f0f0;
    }

    .product-card-footer {
        padding: 2px 10px 4px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .product-card-title {
        font-size: 15px;
    }

    .product-card-btn {
        font-size: 9px;
        padding: 4px 8px 4px 12px;
        gap: 3px;
        background: #f36523;
        color: #fff;
        clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
        position: relative;
    }
    .product-card:hover .product-card-btn {
        background: #d9531e;
    }
}
