.rf-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 25px;
}

.rf-category-grid-sub {
    margin-bottom: 42px;
}

.rf-category-card {
    overflow: hidden;
    border: 1px solid #e0e9dc;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 70, 46, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rf-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(24, 70, 46, 0.10);
}

.rf-category-picture {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #edf5e8;
}

.rf-category-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.rf-category-card:hover .rf-category-picture img {
    transform: scale(1.035);
}

.rf-category-details {
    padding: 16px 18px 19px;
}

.rf-category-details h3 {
    font-size: 19px;
    line-height: 1.5;
    color: #1a4d32;
    margin: 0 0 6px;
}

.rf-category-details p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #688071;
    line-height: 1.8;
    min-height: 47px;
}

.rf-category-more {
    font-size: 13px;
    font-weight: 700;
    color: #23764b;
}

.rf-empty-state {
    margin: 24px 0;
    padding: 28px 20px;
    border-radius: 12px;
    background: #f2f8f0;
    color: #627a68;
    text-align: center;
}

.rf-product-photos {
    min-width: 0;
}

.rf-product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.rf-product-thumbnail {
    flex: 0 0 86px;
    height: 66px;
    border: 2px solid #e1e9dc;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: #f4f8f1;
}

.rf-product-thumbnail.is-current {
    border-color: #2a7a4b;
}

.rf-product-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rf-parameter-list {
    border: 1px solid #deebdc;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.rf-parameter-item {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #deebdc;
    line-height: 1.8;
    font-size: 14px;
}

.rf-parameter-item:last-child {
    border-bottom: 0;
}

.rf-parameter-item strong {
    min-width: 100px;
    color: #2e6543;
}

.rf-parameter-item span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .rf-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 650px) {
    .rf-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .rf-category-details {
        padding: 12px;
    }
    .rf-category-details h3 {
        font-size: 16px;
    }
    .rf-category-details p {
        font-size: 12px;
        line-height: 1.6;
        min-height: 56px;
    }
    .rf-parameter-item {
        flex-direction: column;
        gap: 3px;
    }
    .rf-product-thumbnail {
        flex-basis: 74px;
        height: 58px;
    }
}

/* 产品分类和月份：移动端按需展开、优先露出商品图片。 */
.rf-filter-shell {
    margin-bottom: 24px;
}

.rf-filter-toggle {
    display: none;
}

.rf-filter-shell .filter-panel {
    padding: 22px 26px;
}

.rf-category-chips .chip-cat {
    background: #eaf2e8;
    border: 1px solid #d4e5d3;
    color: #315b41;
}

.rf-category-chips .chip-cat:hover {
    background: #d9e9d5;
}

.rf-category-chips .chip-cat.active {
    background: #1b6845;
    border-color: #1b6845;
    color: #fff;
}

.filter-group .chip-month {
    background: #eff3ec;
    border: 1px solid #e0e7dc;
    color: #41624b;
}

.filter-group .chip-month.active {
    color: #fff;
    background: #1b6845;
    border-color: #1b6845;
}

.rf-month-help {
    color: #7b6a4d;
    font-size: 13px;
    align-self: center;
}

.rf-more-categories {
    display: none;
    text-align: center;
    margin: 12px 0 30px;
}

.rf-products-preview-head {
    margin-top: 38px;
}

/* 图片网格：先以占位背景保持 4:3 尺寸，再加载真实图片。 */
.rf-deferred {
    background: #eef4eb;
}

/* 联系页面：左侧表单，右侧精简企业联系资料。 */
.rf-contact-layout {
    grid-template-columns: 1.12fr .88fr;
    align-items: stretch;
    gap: 28px;
}

.rf-contact-form,
.rf-contact-info {
    height: 100%;
    padding: 30px;
}

.rf-contact-form .form-grid {
    gap: 14px 16px;
}

.rf-contact-form h2,
.rf-contact-info h2 {
    font-size: 25px;
    margin: 9px 0 8px;
}

.rf-contact-form > p {
    margin-bottom: 20px;
    line-height: 1.75;
}

.rf-contact-info .contact-entry {
    padding: 12px 0;
}

.rf-contact-info .contact-entry strong {
    font-size: 15px;
    margin-top: 3px;
}

.rf-contact-info .rf-contact-lead {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.rf-wechat-line {
    margin-top: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid #d6e5d3;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.rf-wechat-line img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border: 5px solid #fff;
    background: #fff;
    flex: 0 0 112px;
    border-radius: 8px;
}

.rf-wechat-line strong {
    color: #215c39;
    font-size: 16px;
}

.rf-wechat-line p {
    margin: 5px 0 0;
    color: #68826d;
    line-height: 1.65;
    font-size: 12px;
}

.rf-optional {
    font-size: 11px;
    color: #96a49a;
    font-weight: 400;
}

.rf-required {
    color: #c44739;
}

@media (max-width: 830px) {
    .rf-contact-layout {
        grid-template-columns: 1fr;
    }

    .rf-contact-form,
    .rf-contact-info {
        height: auto;
    }
}

@media (max-width: 680px) {
    .rf-filter-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid #d9e8d9;
        background: #fff;
        color: #1d583a;
        border-radius: 13px;
        padding: 17px;
        font-size: 15px;
        font-weight: 700;
    }

    .rf-filter-toggle-indicator {
        white-space: nowrap;
        color: #5b876b;
        font-size: 12px;
    }

    .rf-filter-shell .filter-panel {
        display: none;
        padding: 18px 13px;
        margin-top: 8px;
        border-radius: 13px;
    }

    .rf-filter-shell.is-open .filter-panel {
        display: block;
    }

    .rf-category-chips .chip {
        padding: 7px 10px;
        font-size: 12px;
    }

    .rf-store-categories:not(.is-expanded) > .rf-category-card:nth-child(n + 5) {
        display: none;
    }

    .rf-more-categories {
        display: block;
    }

    .rf-products-preview-head {
        margin-top: 30px;
    }

    .rf-contact-form,
    .rf-contact-info {
        padding: 21px 18px;
    }

    .rf-wechat-line img {
        width: 98px;
        height: 98px;
        flex-basis: 98px;
    }
}
