/* 產品列表頁 */

.pl-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
}

.pl-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/images/banner-1.png') center / cover no-repeat;
    filter: blur(2px);
    background-size: cover;
}

.pl-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 73, 144, 0.15);
}

.pl-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;

    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);

}

.pl-hero-title {
    display: inline-block;
    padding: 15px 150px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 32px rgba(1, 73, 144, 0.25);
}

/* 搜尋工具列 */
.pl-toolbar {
    padding-top: 100px;
    padding-bottom: 0;
    background: #f3f6f9;
}

.pl-search-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dbe6f0;
    border-radius: 10px;
    /* overflow: hidden; */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pl-search-select {
    flex: 0 0 240px;
    border-right: 1px solid #dbe6f0;
    border-radius: 10px 0 0 10px;
}

.pl-search-select .layui-form-select {
    margin: 0;
    border-radius: 10px 0 0 10px;
}

.pl-search-select .layui-form-select dl dd {
    border: none;
    height: 52px;
    line-height: 52px;
    border-radius: 0;
    color: #31475d;
    font-size: 15px;
}

.pl-search-select .layui-input,
.pl-search-select .layui-form-select .layui-input{
    border-radius: 10px 0 0 10px;
    border: none;
    height: 52px;
    line-height: 52px;
    color: #31475d;
    font-size: 15px;
    padding-left: 15px;
}

.pl-search-select .layui-form-select .layui-edge {
    border-top-color: #31475d;
}

.pl-search-input {
    flex: 1;
}

.pl-search-input .layui-input {
    height: 52px;
    line-height: 52px;
    border: none;
    border-radius: 0;
    padding: 0 20px;
    font-size: 15px;
}

.pl-search-input .layui-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.pl-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 120px;
    border: none;
    background: #e8edf2;
    color: #1a1e24;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-gesta);
    border-radius: 0 10px 10px 0;
}

.pl-search-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* 篩選標籤 */
.pl-filter-tags {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pl-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pl-tag {
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    background: #7a96a8;
    color: #ffffff;
    font-family: var(--font-gesta);
    width: 18%;
    text-align: center;
}

.pl-tag:hover {
    transform: translateY(-1px);
    background: #5f7f94;
}

.pl-tag.is-active {
    background: var(--primary-color);
    color: #ffffff;
}

.pages{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 35px;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 50px; /* 胶囊状背景 */
    box-shadow: 0 4px 12px rgba(61, 143, 217, 0.15); /* 淡淡的蓝色阴影 */
    padding: 5px;

}

.pagination li {
    margin: 0 2px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%; /* 圆形按钮 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* 普通链接悬停效果 */
.pagination li a:hover {
    background-color: rgba(61, 143, 217, 0.1);
    color: #3d8fd9;
    transform: translateY(-2px);
}

/* 激活状态样式 - 主色调应用 */
.pagination li.active span {
    background: linear-gradient(135deg, #3d8fd9 0%, #2b7ac4 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(61, 143, 217, 0.4);
    font-weight: 600;
}

/* 禁用状态样式 */
.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.pagination li.disabled span:hover {
    background-color: transparent;
    transform: none;
}

/* 上一页/下一页图标优化 */
.pagination li:first-child a,
.pagination li:last-child a {
    font-weight: bold;
    font-size: 16px;
}


/* 產品網格 */
.pl-products {
    padding-top: 50px;
    padding-bottom: 80px;
    background: #f3f6f9;
}

.pl-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.pl-product-card {
    background: #ffffff;
    border: 1px solid #e2eaf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    border-radius: 10px;
}

.pl-product-card:hover {
    transform: translateY(-4px);
    border-color: #cbdde6;
    box-shadow: 0 12px 28px rgba(1, 73, 144, 0.1);
}

.pl-product-card.is-hidden {
    display: none;
}

.pl-product-link {
    display: block;
    padding: 16px 18px 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
}

.pl-card-brand {
    height: 33px;
    margin-bottom: 10px;
}

.pl-card-brand img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.pl-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 12px 8px 16px;
    /* background: #fafbfc; */
    border-radius: 4px;
    margin-bottom: 14px;
    max-height: 300px;
}

.pl-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pl-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1e24;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.pl-card-meta {
    margin: 0;
}

.pl-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.pl-meta-row:last-child {
    margin-bottom: 0;
}

.pl-meta-row dt {
    flex: 0 0 auto;
    color: #1a1e24;
    font-weight: 500;
}

.pl-meta-row dd {
    margin: 0;
    color: #3d8fd9;
    font-weight: 400;
}

.pl-empty {
    text-align: center;
    padding: 48px 20px;
    color: #5a6d7d;
    font-size: 16px;
    background: #ffffff;
    border: 1px dashed #dbe6f0;
    border-radius: 12px;
    margin-top: 24px;
}

.pl-empty[hidden] {
    display: none;
}

/* layui 下拉在搜尋列內 */
.pl-search-bar .layui-form-select dl {
    top: 54px;
    padding: 0;
    border-radius: 10px;
}

@media (max-width: 1200px) {
    .pl-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .pl-hero-title {
        font-size: 32px;
        min-width: 220px;
        padding: 14px 40px;
    }

    .pl-search-bar {
        flex-wrap: wrap;
    }

    .pl-search-select {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #dbe6f0;
    }

    .pl-search-input {
        flex: 1 1 auto;
    }

    .pl-search-btn {
        flex: 0 0 100px;
    }
}

@media (max-width: 767px) {
    .pl-hero {
        min-height: 180px;
        margin-top: 0px;
    }

    .pl-hero-bg{
        filter: blur(0px);
    }

    .pl-hero-inner{
        bottom: -28px;
    }

    .pl-hero-title {
        font-size: 23px;
        padding: 12px 30px;
        min-width: 180px;
    }

    .pl-toolbar{
        padding-top: 60px;
    }

    .pl-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pl-filter-row {
        gap: 8px;
    }

    .pl-tag {
        padding: 8px 10px;
        font-size: 15px;
    }

    .pl-search-btn {
        flex: 0 0 80px;
        font-size: 14px;
    }

    .pl-tag{
        width: 48%;
    }
    .pl-filter-row{
        align-items: center;
        justify-content: space-between;
    }

    .pl-search-select .layui-input, .pl-search-select .layui-form-select .layui-input{
        border-radius: 10px 10px 0 0;
    }

    .pl-search-input .layui-input{
        border-radius: 0 0 0 10px;
    }

    .pl-search-btn{
        border-radius: 0 0 10px 0;
    }

    .pl-search-bar .layui-form-select dl{
        border-radius: 0 0 10px 10px;
    }

    .pl-card-title{
        font-size: 22px;
    }
    .pl-meta-row{
        font-size: 15px;
        gap: 8px;
    }
}



@media (max-width: 480px) {
    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

}