/* ==========================================================================
   13. PakFactory 风格：产品目录页 & 产品详情页
   ========================================================================== */

/* 目录产品卡片网格 */
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pf-card {
    display: block; background: var(--white); border: 1px solid var(--gray-100);
    border-radius: 10px; overflow: hidden; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.pf-card-thumb {
    width: 100%; aspect-ratio: 4 / 3; overflow:hidden; background-color: var(--gray-100);
    background-size: cover; background-position: center; transition: transform .5s ease;
}
.pf-card:hover .pf-card-thumb { transform: scale(1.04); }
.pf-card-title {
    display: block; padding: 0 16px 16px; font-size: 0.95rem; font-weight: 600;
    color: var(--ink); line-height: 1.4; min-height: 2.8em;
}
.pf-card:hover .pf-card-title { color: var(--green-dark); }

/* 产品详情：面包屑 */
.pf-breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin: 24px 0 20px; }
.pf-breadcrumb a { color: var(--gray-500); text-decoration: none; }
.pf-breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.pf-breadcrumb .sep { margin: 0 8px; color: var(--gray-100); }
.pf-breadcrumb .current { color: var(--ink); font-weight: 600; }

/* 产品详情：图库 + 信息两栏 */
.pf-detail { padding-top: 40px; }
.pf-product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pf-main-img img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--white);
    border: 1px solid var(--gray-100); border-radius: 12px; display: block;
}
.pf-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pf-thumb {
    width: 74px; height: 74px; border-radius: 8px; overflow: hidden; padding: 0;
    border: 2px solid transparent; background: none; cursor: pointer; line-height: 0;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb.active, .pf-thumb:hover { border-color: var(--green); }

/* 产品详情：信息栏 */
.pf-option {
    display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
    color: var(--gray-500); text-transform: uppercase; margin-bottom: 10px;
}
.pf-option span { color: var(--green-dark); }
.pf-title { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 14px; }
.pf-detail .pf-short { color: var(--gray-500); line-height: 1.7; margin: 0 0 22px; font-size: 1rem; }
.pf-features { list-style: none; margin: 0 0 28px; padding: 0; }
.pf-features li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--ink-2); font-size: 0.95rem; }
.pf-features li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 2px; color: var(--green);
}
.pf-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pf-actions .btn { padding: 14px 28px; font-size: 0.95rem; }
.pf-detail .pf-note { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.pf-note i { color: var(--green); margin-right: 4px; }

/* 产品详情：Tabs */
.pf-tabs { margin-top: 56px; border: 1px solid var(--gray-100); border-radius: 12px; overflow: hidden; background: var(--white); }
.pf-tab-nav { display: flex; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.pf-tab {
    flex: 1; padding: 16px 10px; background: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; color: var(--gray-500);
    border-bottom: 3px solid transparent; font-family: inherit;
}
.pf-tab:hover { color: var(--ink); }
.pf-tab.active { color: var(--green-dark); border-bottom-color: var(--green); background: var(--white); }
.pf-panel { display: none; padding: 30px 34px; }
.pf-panel.active { display: block; }
.pf-panel .entry-content > :first-child { margin-top: 0; }

/* 规格表 */
.pf-spec-table { width: 100%; border-collapse: collapse; }
.pf-spec-table th, .pf-spec-table td {
    text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.92rem;
}
.pf-spec-table tr:last-child th, .pf-spec-table tr:last-child td { border-bottom: none; }
.pf-spec-table th { width: 220px; color: var(--ink); font-weight: 600; background: var(--gray-50); }
.pf-spec-table td { color: var(--gray-500); line-height: 1.6; }

/* FAQ */
.pf-faq-item { border-bottom: 1px solid var(--gray-100); padding: 18px 0; }
.pf-faq-item:last-child { border-bottom: none; padding-bottom: 4px; }
.pf-faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.pf-faq-item p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; margin: 0; }

/* 相关产品 */
.pf-related { margin-top: 56px; }
.pf-related > h2 { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 0 0 22px; letter-spacing: -0.01em; }

/* 响应式 */
@media (max-width: 1024px) {
    .pf-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-product { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-panel { padding: 20px; }
    .pf-spec-table th { width: 140px; }
    .pf-tab { font-size: 0.85rem; padding: 14px 6px; }
}
@media (max-width: 480px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-actions .btn { width: 100%; text-align: center; }
    .pf-title { font-size: 1.6rem; }
}


.pf-card-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
