/**
 * 宠物派 · 风险词条数据库 专用样式
 * 覆盖模板：archive-risk_item / single-risk_item / taxonomy-yh_domain / taxonomy-yh_category
 * 加载方式：在 functions.php 中 wp_enqueue_style('cwp-pet-food', ...) 注册
 */

/* ==========================================================================
   1. Topbar：隐藏搜索框（三个模板共用）
   ========================================================================== */
.site-header-center,
.mobile-search-trigger {
    display: none !important;
}

.site-header-left {
    flex: 1;
}

/* ==========================================================================
   2. 全局 Reset & 设计令牌
   ========================================================================== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.pet-food-page {
    --fp: #fff;
    --fs: #f5f5f7;
    --t1: #1d1d1f;
    --t2: #86868b;
    --t3: #aeaeb2;
    --b2: rgba(0, 0, 0, .25);
    --b3: rgba(0, 0, 0, .1);
    --green: #248A3D;
    --yellow: #BF5700;
    --red: #D70015;
    --font: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

    font-family: var(--font);
    color: var(--t1);
    max-width: none;
}

@media (prefers-color-scheme: dark) {
    .pet-food-page {
        --fp: #1c1c1e;
        --fs: #2c2c2e;
        --t1: #f5f5f7;
        --t2: #aeaeb2;
        --t3: #636366;
        --b2: rgba(255, 255, 255, .25);
        --b3: rgba(255, 255, 255, .1);
    }
}

@media (min-width: 1024px) {
    .tax-pet_food_category .cat-hero h1 {
        margin-bottom: 0;
    }
}

.single-risk_item .full-page {
    background: var(--bg-page) !important;
}

/* ==========================================================================
   3. 公共组件
   ========================================================================== */

/* 返回链接 */
.pf-back {
    font-size: 13px;
    color: var(--t3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    margin-bottom: 32px;
}

.pf-back:hover {
    color: var(--t1);
}

/* 危险等级徽标（分类页卡片 & 可复用） */
.pf-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.pf-badge.is-green {
    background: rgba(36, 138, 61, .1);
    color: var(--green);
}

.pf-badge.is-yellow {
    background: rgba(191, 87, 0, .1);
    color: var(--yellow);
}

.pf-badge.is-red {
    background: rgba(215, 0, 21, .1);
    color: var(--red);
}

/* ==========================================================================
   4. 首页（archive-risk_item）
   ========================================================================== */

/* 首页 main：flex 容器，负责撑高和垂直居中 */
.pf-home-main {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: none;
    background: #fff;
}

/* 首页内容区：限制宽度，负责内容布局 */
.pf-wrap {
    width: 100%;
    max-width: 720px;
    padding: 48px 0 56px;
    font-family: var(--font);
    color: var(--t1);
}

/* 品牌区块 */
.brand-block {
    margin-bottom: 32px;
    text-align: center;
}

.brand-logo {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 20px;
    margin-top: 0;
}

.brand-sub {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--t2);
    margin: 0;
}

/* Hero */
.hero {
    margin-bottom: 28px;
    text-align: center;
}

/* archive-risk_item：首页搜索模块（与首页 pf-promo 统一） */
.hero.pf-promo-banner {
    margin-bottom: 28px;
    text-align: center;
}

.hero.pf-promo-banner .pf-promo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 24px 0 22px;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero.pf-promo-banner .pf-promo-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero.pf-promo-banner .pf-promo-title {
    margin: 0 0 10px;
    color: var(--t1);
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.hero.pf-promo-banner .pf-promo-desc {
    margin: 0 0 18px;
    color: var(--t2);
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: -0.01em;
}

.hero.pf-promo-banner .search-shell {
    position: relative;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.hero.pf-promo-banner .pf-promo-form {
    width: 100%;
    margin: 0 auto;
}

.hero.pf-promo-banner .pf-promo-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.hero.pf-promo-banner .pf-promo-search:focus-within {
    background: #fff;
    border-color: var(--theme-color, #5C3FC4);
    box-shadow: 0 0 0 3px rgba(76, 59, 113, 0.08);
}

.hero.pf-promo-banner .pf-promo-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--t3);
    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;
}

.hero.pf-promo-banner .pf-promo-search input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 18px 0 52px;
    border: none;
    background: transparent;
    color: var(--t1);
    outline: none;
    line-height: 1;
}

.hero.pf-promo-banner .pf-promo-search input::placeholder {
    color: var(--t3);
    opacity: 1;
}

/* 搜索建议下拉 */
.search-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--fp);
    border: .5px solid var(--b3);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    z-index: 20;
    text-align: left;
}

.suggestion-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

.suggestion-item:hover {
    background: var(--fs);
}

.suggestion-name {
    font-size: 14px;
    color: var(--t1);
}

.suggestion-alias {
    font-size: 12px;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
}

/* 区块 */
.pf-wrap .section {
    margin-top: 38px;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--t2);
    margin-bottom: 14px;
    margin-top: 0;
}

/* 标签组 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 16px;
    border: .5px solid var(--b3);
    border-radius: 999px;
    font-size: 14px;
    color: var(--t1);
    background: var(--fp);
    text-decoration: none;
    transition: border-color .15s ease;
}

.tag:hover {
    border-color: var(--b2);
}

/* 热门标签：只用淡色文字区分，不加重边框和背景 */
.tag.red-tag {
    color: #c0392b;
    background: #fff8f8;
    border-color: rgba(192, 57, 43, .15);
}

.tag.green-tag {
    color: #27742a;
    background: #f6fbf4;
    border-color: rgba(39, 116, 42, .15);
}

.tag .dot {
    display: none;
}

.tag.red-tag .dot {
    background: #D70015;
}

.tag.green-tag .dot {
    background: #248A3D;
}

.tag:not(.red-tag):not(.green-tag) .dot {
    background: #BF5700;
}

/* 分类浏览面板 */
.browse-panel {
    margin-top: 14px;
}

.pf-browse-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pf-browse-tab {
    cursor: pointer;
}

.pf-browse-tab.is-active {
    border-color: var(--theme-color);
    background: var(--theme-color);
    color: #fff;
}

.pf-browse-groups {
    display: grid;
    gap: 0;
}

.pf-browse-group {
    display: grid;
    gap: 10px;
}

.pf-browse-group[hidden] {
    display: none !important;
}

.pf-browse-subtags {
    gap: 10px;
    align-content: flex-start;
}

.pf-browse-subtag {
    min-height: 34px;
    padding: 4px 14px;
    border-color: var(--b3);
    background: transparent;
    color: var(--t2);
    font-size: 13px;
}

.pf-browse-subtag:hover {
    border-color: var(--b2);
    color: var(--t1);
}

.pf-browse-actions {
    margin-top: 14px;
}

.pf-browse-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pf-browse-link:hover {
    text-decoration: underline;
}

/* 未找到提示：去掉黄色背景，改用细边框 */
.not-found-msg {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: .5px solid var(--b3);
    background: var(--fp);
    color: var(--t2);
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================================================
   5. 详情页（single-risk_item）
   ========================================================================== */

.pf-single {
    background: var(--fp);
}

.pf-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

/* 状态标识 */
.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pf-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.pf-hero-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pf-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 28px;
    row-gap: 18px;
}

.pf-hero-copy {
    min-width: 0;
    max-width: 560px;
}

/* 标题区 */
.pf-title {
    font-size: clamp(34px, 5.2vw, 48px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin-bottom: 14px;
}

.pf-aliases {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-alias {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--fs);
    color: var(--t2);
}

/* 犬/猫切换 */
.pf-toggle {
    display: flex;
    flex: 0 0 auto;
    align-self: center;
    padding: 4px;
    border: .5px solid var(--b3);
    border-radius: 999px;
    overflow: hidden;
    margin: 0;
    background: rgba(255, 255, 255, .85);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .65);
}

.pf-tab {
    flex: 1;
    min-width: 92px;
    min-height: 44px;
    padding: 11px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--t2);
    background: transparent;
    border: none;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pf-tab.active {
    background: var(--theme-color);
    color: var(--fp);
}

/* 内容块 */

.pf-block:first-of-type {
    margin-top: 28px;
}

.pf-block-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--t3);
    margin-bottom: 10px;
}

.pf-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--t2);
}

/* 处理步骤 */
.pf-steps {
    list-style: none;
    counter-reset: s;
    margin: 0;
    padding: 0;
}

.pf-steps li {
    counter-increment: s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: .5px solid var(--b3);
    font-size: 14px;
    color: var(--t2);
    line-height: 1.7;
}

.pf-steps li:last-child {
    border-bottom: none;
}

.pf-steps li::before {
    content: counter(s);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fs);
    color: var(--t2);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 词条页反馈区 */
.article-feedback {
    margin: 40px 0 0;
    padding-top: 24px;
    text-align: center;
}

.article-feedback-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.28;
    font-weight: 760;
    color: var(--theme-color);
    letter-spacing: -0.02em;
}

.article-feedback-desc {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--t2);
}

.article-feedback-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.article-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.article-feedback-btn {
    appearance: none;
    min-width: 130px;
    height: 50px;
    padding: 0 22px;
    border: 2px solid var(--theme-color);
    border-radius: 999px;
    background: #fff;
    color: var(--theme-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.article-feedback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(76, 59, 113, 0.12);
    background: rgba(76, 59, 113, 0.04);
}

.article-feedback-btn.is-active {
    background: var(--theme-color);
    color: #fff;
}

.article-like,
.article-like--inside-feedback {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.like-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 22px;
    border: 2px solid rgba(76, 59, 113, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--theme-color);
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.like-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--link-color-pink);
}

.like-btn.liked {
    background: var(--link-color-pink);
    border-color: var(--link-color-pink);
    color: #fff;
}

.like-btn.liked .icon-like {
    background-color: #fff;
    opacity: 1;
}

.like-btn.liked .like-count {
    color: rgba(255, 255, 255, 0.82);
}

.icon-like {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-color: currentColor;
    opacity: .92;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background-color 0.3s ease;
}

.like-text {
    display: inline-block;
    transition: color 0.3s ease;
    will-change: transform;
}

.like-count {
    color: var(--t2);
    font-weight: 600;
    transition: color 0.3s ease;
}

.pf-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pf-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pf-related-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--theme-color);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.pf-related-item:hover {
    background: rgba(76, 59, 113, 0.04);
    transform: translateY(-1px);
}

.pf-related-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pf-related-item__badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pf-related-item__badge--red {
    background: rgba(215, 0, 21, .1);
    color: var(--red);
}

.pf-related-item__badge--yellow {
    background: rgba(191, 87, 0, .1);
    color: var(--yellow);
}

.pf-related-item__badge--green {
    background: rgba(36, 138, 61, .1);
    color: var(--green);
}

.pf-related-item__title {
    color: var(--link-color);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
    min-width: 0;
}

.pf-related-item__title:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pf-related-item__desc {
    color: var(--text-normal);
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================================
   5b. Hero / 搜索框 / 分类导航（taxonomy-pet_food_category 新版，来源 category-baike.css）
   ========================================================================== */

.hero-container {
    padding: 0 0 30px;
    --t1: #1d1d1f;
    --t2: #86868b;
    --t3: #aeaeb2;
}

/* cat-hero：桌面端 flex 换行 + 词条统计行独占一行 */
.cat-hero {
    flex-wrap: wrap;
}

.desc-count {
    margin-top: 0;
}

.cat-hero-count {
    width: 100%;
    font-size: 12px !important;
    color: var(--text-muted);
    margin-top: 8px !important;
    line-height: 1.4;
}

.cat-hero-count strong {
    color: var(--theme-color);
}

@media (min-width: 1024px) {
    .cat-hero p {
        margin: 0;
        font-size: 14px;
    }

    .desc-count {
        margin-top: 8px;
    }
}

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

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

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

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

.sys-nav a {
    display: inline-block;
    flex: 0 0 auto;
    height: 36px;
    line-height: 35px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--border-color, #e0e0e5);
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    color: var(--t1);
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.sys-nav a:hover {
    background: color-mix(in srgb, var(--theme-color, #5C3FC4) 8%, transparent);
    border-color: color-mix(in srgb, var(--theme-color, #5C3FC4) 40%, transparent);
    color: var(--theme-color, #5C3FC4);
    text-decoration: none;
}

.sys-nav a.is-active {
    background: var(--theme-color, #5C3FC4);
    border-color: var(--theme-color, #5C3FC4);
    color: #fff;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .sys-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        margin: 0 auto;
        max-width: var(--max);
        padding: 0 30px;
        gap: 6px;
    }
}

/* ==========================================================================
   6. 分类页（taxonomy-pet_food_category）
   ========================================================================== */

.pf-tax-inner {
    width: 100%;
    margin: 0 auto;
}

.pf-tax-back {
    font-size: 13px;
    color: var(--t3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    margin-bottom: 28px;
}

.pf-tax-back:hover {
    color: var(--t1);
}

.pf-tax-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.pf-tax-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--t2);
    margin-bottom: 6px;
}

.pf-tax-count {
    font-size: 13px;
    color: var(--t3);
    margin-bottom: 32px;
}

/* 分类导航 */
.pf-tax-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.pf-tax-nav a,
.pf-tax-nav span {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: .5px solid var(--b2);
    font-size: 13px;
    color: var(--t2);
    text-decoration: none;
}

.pf-tax-nav .is-current {
    background: var(--t1);
    color: var(--fp);
    border-color: var(--t1);
}

.pf-tax-nav a:hover {
    color: var(--t1);
}

/* 卡片网格 */
.pf-tax-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: .5px solid var(--b3);
    border-radius: 14px;
    overflow: hidden;
}

.pf-food-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--fp);
    padding: 30px;
    text-decoration: none;
    color: var(--t1);
    transition: background .12s;
    border-right: .5px solid var(--b3);
    border-bottom: .5px solid var(--b3);
}

.pf-food-card:hover {
    background: var(--fs);
}

.pf-food-card:nth-child(4n) {
    border-right: none;
}

.pf-food-card:nth-last-child(-n+4):nth-child(4n+1),
.pf-food-card:nth-last-child(-n+4):nth-child(4n+1)~.pf-food-card {
    border-bottom: none;
}

/* 卡片内容 */
.pf-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pf-card-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.pf-card-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.pf-card-badge.is-green {
    background: rgba(36, 138, 61, .1);
    color: var(--green);
}

.pf-card-badge.is-yellow {
    background: rgba(191, 87, 0, .1);
    color: var(--yellow);
}

.pf-card-badge.is-red {
    background: rgba(215, 0, 21, .1);
    color: var(--red);
}

.pf-card-summary {
    font-size: 13px;
    line-height: 1.7;
    color: var(--t2);
}

.pf-card-aliases {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pf-card-alias {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: var(--fs) 1px solid;
    color: var(--t3);
}

/* 空状态 */
.pf-tax-empty {
    padding: 40px 0;
    color: var(--t3);
    font-size: 14px;
}

/* 分页 */
.pf-tax-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.pf-tax-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: .5px solid var(--b2);
    color: var(--t2);
    text-decoration: none;
    font-size: 13px;
}

.pf-tax-pagination .page-numbers.current {
    background: var(--t1);
    color: var(--fp);
    border-color: var(--t1);
}

/* ==========================================================================
   6b. 分类页新版：无图卡片（pf-card-noimg）+ 食材 grid
   ========================================================================== */

/* 覆盖 archive-page-wrap 里的 grid 默认列数：食材页用 3 列 */
.pf-food-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 0 0 40px;
}

@media (min-width: 1024px) {
    .pf-food-grid {
        padding: 24px 30px 40px;
        margin: 0 auto;
        max-width: var(--max);
    }
}

.pf-domain-archive {
    padding-bottom: 48px;
}

.pf-domain-categories {
    max-width: var(--max);
    margin: 0 auto 28px;
    padding: 0 30px;
}

.pf-domain-results {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 30px;
}

.pf-domain-results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pf-domain-results-head .section-label {
    margin: 0;
}

.pf-domain-results-count {
    margin: 0;
    font-size: 13px;
    color: var(--t2);
}

.pf-domain-archive .pf-food-grid {
    padding: 0;
    max-width: none;
    margin: 0;
}

/* 无图卡片基础 */
.pf-card-noimg {
    position: relative;
    background: var(--fp);
    border: .5px solid var(--b3);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}

.pf-card-noimg:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

/* 全卡片主链接（语义化方案，替代空 absolute 覆盖层）*/
.pf-card-noimg .pf-card-main-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pf-card-noimg .card-body {
    position: relative;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 头部：食材名 + 徽标 */
.pf-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pf-card-noimg .title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.pf-card-noimg .title a {
    color: var(--t1);
    text-decoration: none;
}

.pf-card-noimg .title a:hover {
    color: #5C3FC4;
}

.pf-card-noimg .desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--t2);
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   7. 响应式
   ========================================================================== */

@media (max-width: 720px) {
    .pf-tax-inner {
        padding: 24px 18px 60px;
    }

    .pf-tax-title {
        font-size: 30px;
    }

    .pf-tax-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 新版食材 grid：移动端 2 列 */
    .pf-food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pf-domain-categories,
    .pf-domain-results {
        padding: 0 16px;
    }

    .pf-domain-results-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 14px;
    }

}

@media (max-width: 640px) {
    .pf-wrap {
        padding: 32px 0 40px;
    }

    .brand-logo {
        font-size: 34px;
    }

    .pf-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .pf-tax-grid {
        grid-template-columns: 1fr;
    }

    .pf-food-card {
        border-right: none;
    }

    .pf-food-card:nth-last-child(1) {
        border-bottom: none;
    }

    /* 新版食材 grid：手机单列 */
    .pf-food-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .hero.pf-promo-banner .pf-promo-inner {
        padding: 34px 0 28px;
        border-radius: 0;
    }

    .hero.pf-promo-banner .pf-promo-desc {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .hero.pf-promo-banner .pf-promo-inner {
        padding: 42px 0 34px;
        border-radius: 0;
    }

    .hero.pf-promo-banner .pf-promo-title {
        font-size: clamp(42px, 4vw, 60px);
        line-height: 1.02;
    }

    .hero.pf-promo-banner .pf-promo-desc {
        font-size: 17px;
        line-height: 1.95;
    }
}

/* ==========================================================================
   8. A11y & GEO 辅助类
   ========================================================================== */

.sys-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: inherit;
    justify-content: inherit;
}

.sys-nav-list li {
    display: inline-flex;
}


.geo-meta-box {
    margin-top: 8px;
    border: .5px solid var(--b3);
    border-radius: 14px;
    padding: 20px 24px;
    background: var(--fp);
}

.geo-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: .5px solid var(--b3);
}

.geo-row:last-of-type {
    border-bottom: none;
}

.geo-row--inline .geo-val {
    white-space: normal;
}

.geo-key {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    padding-top: 2px;
    line-height: 1.6;
}

.geo-val {
    font-size: 14px;
    line-height: 1.85;
    color: var(--t1);
    min-width: 0;
    word-break: break-word;
}

/* 等级徽标 */
.geo-level-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.geo-val--red .geo-level-badge {
    background: rgba(215,0,21,.1);
    color: var(--red);
}

.geo-val--yellow .geo-level-badge {
    background: rgba(191,87,0,.1);
    color: var(--yellow);
}

.geo-val--green .geo-level-badge {
    background: rgba(36,138,61,.1);
    color: var(--green);
}

/* 别名灰色 */
.geo-aliases {
    color: var(--t3);
    font-size: 13px;
}

.geo-update {
    margin-top: 14px;
    color: var(--t3);
    font-size: 12px;
    line-height: 1.7;
    border-top: .5px solid var(--b3);
    padding-top: 10px;
}

@media (max-width: 640px) {
    .geo-meta-box {
        padding: 16px 18px;
    }

    .geo-row {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .geo-key {
        font-size: 12px;
    }

    .geo-val {
        font-size: 13px;
    }

    .geo-update {
        font-size: 11px;
    }
}


/* ===== single-risk_item 信息层级优化 ===== */

.pf-hero-summary {
    margin: 18px 0 0;
    padding-bottom: 30px;
}

.pf-qa-item + .pf-qa-item {
    margin-top: 20px;
}

.pf-qa-question {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 600;
    color: var(--t2) !important;
    margin: 0;
}

.pf-qa-answer {
    font-size: 20px;
    line-height: 1.75;
    font-weight: 650;
    color: var(--t1);
    margin: 10px 0 0;
}

.pf-qa-item {
    margin-top: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.pf-qa-item--red .pf-qa-answer {
    color: #D70015;
}

.pf-qa-item--yellow .pf-qa-answer {
    color: #BF5700;
}

.pf-qa-item--green .pf-qa-answer {
    color: #248A3D;
}

.pf-aliases {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-alias {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--fs);
    color: var(--t2);
}


.pf-block {
    padding: 28px 0;
    border-top: var(--border-color) 1px solid;
}

.pf-block-title {
    font-weight: 700;
    color: var(--t1);
    line-height: 1.4;
    margin: 0 0 16px;
}

.pf-text {
    font-size: 15px;
    line-height: 1.95;
    color: var(--t2);
}

.pf-overview-block {
    margin-top: 24px;
    padding-left: 20px;
}

.pf-overview-row {
    display: block;
    padding: 22px 0;
    border-top: 1px dashed rgba(92, 63, 196, 0.16);
}

.pf-overview-item {
    min-width: 0;
}

.pf-overview-item__label {
    margin: 0 0 12px;
    color: var(--t2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.pf-overview-item__value {
    color: var(--t1);
    line-height: 1.7;
    word-break: break-word;
}

.pf-source-list {
    margin: 0;
    padding-left: 20px;
    color: var(--t2);
}

.pf-source-list li {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.9;
}

.pf-source-list li:last-child {
    margin-bottom: 0;
}

.pf-steps li {
    padding: 13px 0;
    font-size: 15px;
    color: var(--t1);
    line-height: 1.8;
}

.pf-steps li::before {
    width: 26px;
    min-width: 26px;
    height: 26px;
    margin-top: 1px;
    background: rgba(92, 63, 196, .08);
    color: var(--theme-color, #5C3FC4);
}

.pf-expert-summary {
    margin-top: 28px;
}

.geo-meta-box {
    margin-top: 0;
    border: .5px solid var(--b3);
    border-radius: 20px;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(245, 245, 247, .7), rgba(255, 255, 255, .95));
}

.geo-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: .5px solid var(--b3);
}

.geo-row:last-of-type {
    border-bottom: none;
}

.geo-key {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    line-height: 1.7;
    padding-top: 2px;
}

.geo-val {
    font-size: 15px;
    line-height: 1.85;
    color: var(--t1);
    min-width: 0;
    word-break: break-word;
}

.geo-aliases {
    color: var(--t3);
    font-size: 14px;
}

.geo-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.geo-val--red .geo-level-badge {
    background: rgba(215, 0, 21, .1);
    color: var(--red);
}

.geo-val--yellow .geo-level-badge {
    background: rgba(191, 87, 0, .1);
    color: var(--yellow);
}

.geo-val--green .geo-level-badge {
    background: rgba(36, 138, 61, .1);
    color: var(--green);
}

.geo-update {
    margin-top: 14px;
    color: var(--t3);
    font-size: 12px;
    line-height: 1.7;
    border-top: .5px solid var(--b3);
    padding-top: 10px;
}

.pf-related {
    margin-top: 50px;
    padding-top: 28px;
    border-top: var(--border-color) 1px solid;
}

@media (max-width: 640px) {
    .pf-inner {
        padding: 20px 0 64px;
    }

    .pf-hero-card {
        padding: 20px 18px 18px;
        border-radius: 16px;
        margin-bottom: 22px;
    }

    .pf-hero-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pf-toggle {
        width: 100%;
        align-self: stretch;
    }

    .pf-tab {
        min-width: 0;
    }

    .pf-qa-question {
        font-size: 16px;
    }

    .pf-qa-answer {
        font-size: 16px;
        line-height: 1.8;
    }

    .pf-block-title {
        font-size: 18px;
    }

    .pf-text,
    .pf-steps li,
    .geo-val,
    .pf-source-list li {
        font-size: 14px;
    }

    .pf-overview-panel {
        border-radius: 16px;
    }

    .pf-overview-block {
        margin-top: 18px;
    }

    .pf-overview-head {
        padding: 18px 18px 4px;
    }

    .pf-overview-body {
        padding: 0 18px 18px;
    }

    .pf-overview-row {
        padding: 18px 0;
    }

    .pf-overview-item__value {
        font-size: 16px;
        line-height: 1.8;
    }

    .geo-meta-box {
        padding: 16px 18px;
    }

    .geo-row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .geo-key {
        font-size: 12px;
        padding-top: 0;
    }

    .geo-aliases {
        font-size: 13px;
    }

    .geo-update {
        font-size: 11px;
    }

    .pf-related-item {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .pf-related-item__title {
        font-size: 18px;
    }
}
