@charset "UTF-8";
/* --------------------------------------------------------------------------
   0. 卡片网格与卡片（首页产品分类 / 热销产品 / 在线商城）
   -------------------------------------------------------------------------- */
.pf-grid { display: grid; gap: 24px; }
.pf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pf-card {
    display: flex;
    flex-direction: column;
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.pf-card:hover { border-color: var(--pf-accent); transform: translateY(-2px); }

.pf-card__media { display: block; background: #1A1D1F; overflow: hidden; border-radius: var(--pf-radius-lg) var(--pf-radius-lg) 0 0; }
.pf-card__media img { width: 100%; object-fit: cover; }
.pf-card--cat .pf-card__media img { height: 180px; }
.pf-card--prod .pf-card__media img,
.pf-card--shop .pf-card__media img { height: 200px; }

/* 分类卡片配图容器 + 可选角标（对应 ACF 字段 card_badge） */
.pf-card__thumb { display: block; position: relative; }
.pf-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--pf-radius-sm);
    background: var(--pf-accent);
    color: var(--pf-fg-ink);
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 卡片文字区高度对齐设计稿（超出裁剪，保证卡片高度一致） */
.pf-card__body { padding: 18px 20px; overflow: hidden; }
.pf-card--cat .pf-card__body { display: flex; flex-direction: column; gap: 6px; height: 78px; }
.pf-card--prod .pf-card__body,
.pf-card--shop .pf-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pf-card--prod .pf-card__body { height: 93px; }
.pf-card--shop .pf-card__body { height: 101px; }

.pf-card__name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pf-fg);
}
.pf-card--prod .pf-card__name,
.pf-card--shop .pf-card__name { font-size: 15px; }
.pf-card__name a:hover { color: var(--pf-accent); }

.pf-card__meta {
    font-family: var(--pf-font-mono);
    font-size: 11px;
    letter-spacing: .3px;
    color: var(--pf-fg-muted);
}
.pf-card--shop .pf-card__meta { font-size: 10px; }

.pf-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}
.pf-card__moq {
    font-family: var(--pf-font-mono);
    font-size: 11px;
    letter-spacing: .3px;
    color: var(--pf-fg-dim);
}
.pf-card__price {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 18px;
    color: var(--pf-accent);
}

/* 无缩略图时的占位 */
.pf-card__placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1F2225;
    color: var(--pf-line);
    font-family: var(--pf-font-mono);
    font-size: 11px;
    letter-spacing: 1px;
}
.pf-card--prod .pf-card__placeholder,
.pf-card--shop .pf-card__placeholder { height: 200px; }
/* ==========================================================================
   首页样式 —— 卡片网格 / Hero / 数据条 / 工厂与质检 / 商城信任条
   主题：PROFORGE 五金外贸主题（muban）
   对应设计稿：PRODUCT CATEGORIES、HOT PRODUCTS、ONLINE MALL、Hero、Stats Band、FACTORY & QUALITY
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero（设计稿 1440×752，左右 64 间距，上下 96 内边距）
   -------------------------------------------------------------------------- */
.pf-hero {
    position: relative;
    padding: 96px 0;
    background: linear-gradient(90deg, #212426 0%, #171A1C 100%);
    overflow: hidden;
}
.pf-hero__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}
.pf-hero__copy { flex: 0 0 620px; max-width: 620px; }
.pf-hero__chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 2px solid var(--pf-accent-2);
    border-radius: var(--pf-radius-sm);
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 11px;
    line-height: 30px;
    letter-spacing: 1.2px;
    color: var(--pf-accent);
    text-transform: uppercase;
    white-space: nowrap;
    margin-bottom: 32px;
}
.pf-hero__headline { margin-bottom: 32px; }
.pf-hero__headline span { display: block; }
.pf-hero__sub {
    font-size: 18px;
    line-height: 28px;
    color: var(--pf-fg-muted);
    margin-bottom: 32px;
}
.pf-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.pf-hero__trust { display: flex; align-items: center; gap: 16px; }
.pf-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .8px;
    color: var(--pf-fg-muted);
    text-transform: uppercase;
}
.pf-hero__trust-item + .pf-hero__trust-item::before {
    content: '';
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--pf-accent);
    flex: 0 0 auto;
}

/* Hero 右侧图 + 悬浮规格卡 */
.pf-hero__visual {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
}
.pf-hero__visual > img,
.pf-hero__visual > .pf-cover {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--pf-radius-lg);
    background: var(--pf-bg-card);
}
.pf-speccard {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 300px;
    height: 89px;
    padding: 12px 16px;
    overflow: hidden;
    background: var(--pf-bg-inset);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
}
.pf-speccard__eyebrow {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 1.2px;
    color: var(--pf-accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.pf-speccard__title {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    color: var(--pf-fg);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-speccard__meta {
    font-family: var(--pf-font-mono);
    font-size: 11px;
    line-height: 15px;
    color: var(--pf-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   数据条（设计稿 1440×135，上下 36 内边距）
   -------------------------------------------------------------------------- */
.pf-stats { background: var(--pf-bg-alt); border-top: 1px solid var(--pf-line-faint); }
.pf-stats__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 只写上下内边距，左右沿用 .pf-container 的 --pf-gutter，
       否则会把容器的 80px 留白覆盖掉、内容贴到屏幕边缘 */
    padding-top: 36px;
    padding-bottom: 36px;
}
.pf-stats__item { display: flex; flex-direction: column; gap: 6px; }
.pf-stats__num {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 34px;
    line-height: 41px;
    color: var(--pf-fg);
}
.pf-stats__num--accent { color: var(--pf-accent); }
.pf-stats__label {
    font-size: 11px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 1px;
    color: var(--pf-fg-muted);
    text-transform: uppercase;
}
.pf-stats__divider { width: 1px; height: 44px; background: var(--pf-line-faint); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   工厂与质检（设计稿 1440×716，左图 600×540，右文 616）
   -------------------------------------------------------------------------- */
.pf-split {
    display: flex;
    align-items: center;
    gap: 64px;
}
.pf-split__media { position: relative; flex: 0 0 600px; max-width: 600px; }
.pf-split__media img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: var(--pf-radius-lg);
    background: var(--pf-bg-card);
}
.pf-split__copy { flex: 1 1 auto; min-width: 0; }
.pf-split__title { margin-bottom: 18px; }
.pf-split__body {
    font-size: 15px;
    line-height: 24px;
    color: var(--pf-fg-muted);
    margin-bottom: 24px;
}

.pf-statcard {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 220px;
    height: 83px;
    padding: 12px 16px;
    overflow: hidden;
    background: var(--pf-bg-inset);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
}
.pf-statcard__num {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 26px;
    line-height: 28px;
    color: var(--pf-accent);
    white-space: nowrap;
}
.pf-statcard__meta {
    margin-top: 2px;
    font-family: var(--pf-font-mono);
    font-size: 11px;
    line-height: 15px;
    letter-spacing: .3px;
    color: var(--pf-fg-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 24px;
}
.pf-checklist li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-checklist .pf-check {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, .12);
}
.pf-checklist .pf-check svg { width: 12px; height: 9px; }
.pf-checklist span {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--pf-fg);
}

.pf-certrow { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    border: 1px solid var(--pf-line-soft);
    border-radius: var(--pf-radius-sm);
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .6px;
    color: var(--pf-fg-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   商城信任条（设计稿 1280×56）
   -------------------------------------------------------------------------- */
.pf-trustbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--pf-bg-inset);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
}
.pf-trustbar span {
    font-family: var(--pf-font-mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--pf-fg-muted);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .pf-hero__inner { flex-direction: column; align-items: stretch; gap: 48px; }
    .pf-hero__copy { flex: 1 1 auto; max-width: none; }
    .pf-split { flex-direction: column; align-items: stretch; gap: 40px; }
    .pf-split__media { flex: 1 1 auto; max-width: none; }
    .pf-split__media img { height: 420px; }
}

@media (max-width: 1080px) {
    .pf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pf-checklist { grid-template-columns: 1fr; }
    .pf-stats__inner { flex-wrap: wrap; gap: 24px 32px; justify-content: flex-start; }
    .pf-stats__divider { display: none; }
    .pf-trustbar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .pf-hero__visual > img, .pf-hero__visual > .pf-cover { height: 380px; }
    .pf-speccard { position: static; width: 100%; margin-top: 16px; }
    .pf-statcard { right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
    .pf-hero { padding: 56px 0; }
    .pf-speccard { width: 100%; }
    .pf-split__media img { height: 300px; }
    .pf-statcard { position: static; width: 100%; margin-top: 16px; }
}