.container {
    width: 100%;
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.hero-container {
    padding: 0 0 30px;
}

/* ========== 栏目头背景图标 ========== */
.hero-container {
    min-height: 120px;
    background-repeat: no-repeat;
    background-position: 98% 10px;
    background-size: clamp(120px, 18vw, 180px) auto;
}

.category-maomi-pinzhong .hero-container {
    background-image: url('../images/icon_maomi_pinzhong.svg');
}

.category-maomi-jibing .hero-container {
    background-image: url('../images/icon_maomi_jibing.svg');
}

.category-maomi-zhengzhuang .hero-container {
    background-image: url('../images/icon_maomi_zhengzhuang.svg');
}

.category-maomi-yaowu .hero-container {
    background-image: url('../images/icon_maomi_yaowu.svg');
}

.category-gougou-pinzhong .hero-container {
    background-image: url('../images/icon_gougou_pinzhong.svg');
}

.category-gougou-jibing .hero-container {
    background-image: url('../images/icon_gougou_jibing.svg');
}

.category-gougou-zhengzhuang .hero-container {
    background-image: url('../images/icon_gougou_zhengzhuang.svg');
}

.category-gougou-yaowu .hero-container {
    background-image: url('../images/icon_gougou_yaowu.svg');
}

/* ========== 搜索框 ========== */
.m-bar {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
}


@media (min-width: 1024px) {
    .hero-container {
        background-position: 75% 25px;
    }

    .m-bar {
        max-width: var(--max);
        padding: 0 30px;
    }

    .inline-search {
        width: min(520px, 100%);
    }
}

/* ========== 内容分组容器 ========== */
.groups {
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    gap: 15px;
}

/* ========== 分组内容样式 ========== */
.group ul,
.group ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
    column-gap: 28px;
    padding-bottom: 15px;
}

@media (min-width:1024px) {
    .group ul {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.group ul>.group ul li {
    display: flex;
}

.group ul li a {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    background: transparent;
    color: var(--link-color);
}

.group ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.group ul li a::after {
    background: none;
}

.groups>.group {
    border-bottom: none;
}

.groups>.group:not([hidden]):has(~ .group:not([hidden])) {
    border-bottom: 1px solid var(--border-color);
}

/* ========== 标题样式 ========== */
h2 {
    margin: 0 0 25px;
    font-weight: 500;
    color: var(--text-dark);
}

h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

/* ========== 分类导航条 ========== */
.sys-nav,
.type-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    z-index: 20;
    margin: 10px 0 15px;
    padding: 8px 16px;
    gap: 8px;
    border-radius: var(--radius-xs);
    background: #fff;
    scrollbar-width: none;
}

.sys-nav::-webkit-scrollbar,
.type-nav::-webkit-scrollbar {
    display: none;
}

.sys-nav a,
.type-nav a {
    display: inline-block;
    flex: 0 0 auto;
    height: 36px;
    line-height: 35px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    text-align: center;
    white-space: nowrap;
    scroll-snap-align: start;
    color: var(--text-dark);
}

.sys-nav a:hover,
.type-nav a:hover {
    background: var(--theme-color-50);
    border-color: var(--theme-color-200);
    color: var(--theme-color);
    text-decoration: none;
}

.sys-nav a.is-active,
.sys-nav a[aria-selected="true"],
.type-nav a.is-active,
.type-nav a[aria-selected="true"] {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sys-nav a.is-disabled,
.type-nav a.is-disabled {
    opacity: .35;
    pointer-events: none;
}

@media (min-width: 1024px) {

    .sys-nav,
    .type-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        margin: 20px auto 0;
        width: 100%;
        max-width: var(--max);
        padding: 0 30px;
        gap: 6px;
    }

    .sys-nav a,
    .type-nav a {
        flex: initial;
        font-size: 14px;
        scroll-snap-align: initial;
    }
}


.inline-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.inline-search:focus-within {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 20%, transparent);
}

.inline-search input[type="text"] {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 150px 0 52px;
    line-height: 48px;
}

.inline-search input[type="text"]:focus {
    outline: none;
}

.inline-search input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2' fill='none'/%3E%3Cpath d='M20 20L16.5 16.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='2' fill='none'/%3E%3Cpath d='M20 20L16.5 16.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.inline-search .btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 24px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: var(--theme-color);
    color: #fff;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}

.inline-search .btn:hover {
    transform: translateY(-50%) scale(1.02);
}

/* 输入框容器 */

.inline-search .input-with-clear{
    flex:1;
    height:100%;
}

/* 清除按钮 */

.inline-search .input-clear{
    position:absolute;
    right:140px;
    top:50%;
    transform:translateY(-50%);

    width:24px;
    height:24px;

    display:none;
    align-items:center;
    justify-content:center;

    border-radius:999px;
    color:var(--text-muted);
    cursor:pointer;
}

.inline-search .input-clear:hover{
    background:rgba(0,0,0,.06);
    color:var(--text-main);
}

.inline-search .input-clear::before{
    content:"";
    width:14px;
    height:14px;
    background:currentColor;

    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 6.75 17.25 17.25M17.25 6.75 6.75 17.25' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;

    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.75 6.75 17.25 17.25M17.25 6.75 6.75 17.25' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

.category-maomi-pinzhong .cover,
.category-gougou-pinzhong .cover {
    aspect-ratio: 1 / 1;
}