/* ===== CHIPER Popular Parts — scoped styles ===== */

.ch-pp {
    color: #4B5565;
    font-family: inherit;
    max-width: 1360px;
    margin: 0 auto;
}

/* ---- 标题区（页面正文内 .ch-pp-header） ---- */
.ch-pp-header {
    margin-bottom: 28px;
}
.ch-pp-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #10233F;
    margin: 0 0 8px;
    line-height: 1.25;
}
.ch-pp-subtitle {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ---- B. 厂商筛选 ---- */
.ch-pp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.ch-pp-tab {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #DCE3EC;
    border-radius: 8px;
    background: #fff;
    color: #10233F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ch-pp-tab:hover {
    border-color: #086FD6;
    color: #086FD6;
}
.ch-pp-tab.is-active {
    background: #086FD6;
    border-color: #086FD6;
    color: #fff;
}

/* ---- C. 搜索 + A-Z ---- */
.ch-pp-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.ch-pp-search {
    display: flex;
    width: 100%;
    max-width: 440px;
}
.ch-pp-search input[type="search"] {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #DCE3EC;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    color: #10233F;
    background: #fff;
    margin: 0;
}
.ch-pp-search input[type="search"]:focus {
    outline: none;
    border-color: #086FD6;
    box-shadow: 0 0 0 3px rgba(8, 111, 214, .18);
}
.ch-pp-search button {
    height: 44px;
    padding: 0 20px;
    border: 1px solid #086FD6;
    border-radius: 0 8px 8px 0;
    background: #086FD6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}
.ch-pp-search button:hover {
    background: #0B2B50;
    border-color: #0B2B50;
}

.ch-pp-az {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.ch-pp-az-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #086FD6;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.ch-pp-az-item:hover {
    background: #EAF2FC;
}
.ch-pp-az-item.is-active {
    background: #086FD6;
    color: #fff;
}

/* ---- D. 筛选状态 ---- */
.ch-pp-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #718096;
}
.ch-pp-status-label {
    font-weight: 500;
    color: #4B5565;
}
.ch-pp-status-chip {
    padding: 3px 10px;
    border-radius: 999px;
    background: #EAF2FC;
    color: #0B2B50;
    line-height: 1.5;
}
.ch-pp-status-clear {
    margin-left: auto;
    color: #086FD6;
    text-decoration: none;
    font-weight: 500;
}
.ch-pp-status-clear:hover {
    text-decoration: underline;
}

/* ---- E. 产品网格 ---- */
.ch-pp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ch-pp-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 76px;
    padding: 16px 40px 16px 16px;
    border: 1px solid #DCE3EC;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ch-pp-item:hover {
    border-color: #086FD6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 43, 80, .08);
}
.ch-pp-item:focus-visible {
    outline: 2px solid #086FD6;
    outline-offset: 2px;
}
.ch-pp-item::after {
    content: "\2192";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0;
    font-size: 16px;
    line-height: 1;
}
.ch-pp-pn {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #0B2B50;
    line-height: 1.35;
    word-break: break-word;
}
.ch-pp-brand {
    font-size: 12px;
    color: #718096;
    line-height: 1.3;
}

/* ---- F. 空结果 ---- */
.ch-pp-empty {
    padding: 44px 20px;
    text-align: center;
    border: 1px dashed #DCE3EC;
    border-radius: 10px;
    background: #fff;
}
.ch-pp-empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #10233F;
    margin: 0 0 8px;
}
.ch-pp-empty-sub {
    font-size: 14px;
    color: #718096;
    margin: 0 0 18px;
}

/* ---- G. 分页 ---- */
.ch-pp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 24px 0;
}
.ch-pp-pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #DCE3EC;
    border-radius: 8px;
    background: #fff;
    color: #10233F;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ch-pp-pg:hover {
    border-color: #086FD6;
    color: #086FD6;
}
.ch-pp-pg.is-current {
    background: #086FD6;
    border-color: #086FD6;
    color: #fff;
}
.ch-pp-pg-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: #718096;
}

/* ---- H. RFQ 转化入口 ---- */
.ch-pp-cta {
    margin-top: 32px;
    padding: 28px 24px;
    border-radius: 12px;
    background: #EFF5FD;
    text-align: center;
}
.ch-pp-cta h2 {
    font-size: 20px;
    color: #10233F;
    margin: 0 0 8px;
    line-height: 1.3;
}
.ch-pp-cta p {
    font-size: 14px;
    color: #4B5565;
    margin: 0 0 20px;
    line-height: 1.5;
}
.ch-pp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ---- 按钮 ---- */
.ch-pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease;
}
.ch-pp-btn-primary {
    background: #086FD6;
    color: #fff;
    border: 1px solid #086FD6;
}
.ch-pp-btn-primary:hover {
    background: #0B2B50;
    border-color: #0B2B50;
}
.ch-pp-btn-secondary {
    background: #fff;
    color: #086FD6;
    border: 1px solid #086FD6;
}
.ch-pp-btn-secondary:hover {
    background: #EAF2FC;
}

/* ---- 无障碍 ---- */
.ch-pp .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .ch-pp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ch-pp-grid { grid-template-columns: repeat(2, 1fr); }
    .ch-pp-tools { flex-direction: column; gap: 14px; }
    .ch-pp-search { max-width: 100%; }
    .ch-pp-az { width: 100%; }
    .ch-pp-header h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .ch-pp-grid { grid-template-columns: 1fr; }
    .ch-pp-item { min-height: 68px; }
    .ch-pp-tab { height: 40px; padding: 0 14px; font-size: 13px; }
    .ch-pp-pagination { gap: 4px; }
    .ch-pp-pg { min-width: 36px; height: 36px; padding: 0 10px; }
    .ch-pp-cta { padding: 24px 16px; }
}
