.cpv-page { padding-top: 28px; }
.cpv-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 8px 8px 8px 16px; margin-bottom: 28px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.cpv-search i { color: #64748b; font-size: 14px; }
.cpv-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    padding: 10px 8px; font-size: 14px; color: #0f172a; font-family: inherit;
}
.cpv-sort {
    border: 1px solid #e2e8f0; background: #fff; color: #334155;
    border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; font-family: inherit;
}
.cpv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cpv-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;
    color: #1e293b; box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.cpv-card:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.cpv-icon {
    width: 40px; height: 40px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
}
.cpv-icon svg { width: 18px; height: 18px; }
.cpv-icon.tone-0 { background: #ecfdf5; color: #059669; }
.cpv-icon.tone-1 { background: #eff6ff; color: #2563eb; }
.cpv-icon.tone-2 { background: #eef2ff; color: #4f46e5; }
.cpv-icon.tone-3 { background: #f0fdfa; color: #0d9488; }
.cpv-icon.tone-4 { background: #fffbeb; color: #d97706; }
.cpv-icon.tone-5 { background: #f0f9ff; color: #0284c7; }
.cpv-icon.tone-6 { background: #faf5ff; color: #7e22ce; }
.cpv-icon.tone-7 { background: #f8fafc; color: #475569; }
.cpv-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cpv-code { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #E51937; }
.cpv-name { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.cpv-count { font-size: 12px; color: #64748b; }
.cpv-empty { margin: 0; color: #64748b; font-size: 14px; }
.cpv-status { margin: 18px 0 0; text-align: center; color: #64748b; font-size: 13px; font-weight: 600; }
.cpv-sentinel { height: 1px; }

.cpv-hierarchy {
    margin: 36px 0; padding: 28px 32px; border-radius: 12px; color: #fff;
    background: #0A1329; box-shadow: 0 16px 30px rgba(10, 19, 41, .18);
}
.cpv-hierarchy h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.cpv-hierarchy > p { margin: 0 0 22px; max-width: 40rem; color: #cbd5e1; font-size: 14px; line-height: 1.6; }
.h-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; }
.h-lvl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #E51937; margin-bottom: 8px; }
.h-code { font-size: 18px; font-weight: 800; letter-spacing: .03em; }
.h-code .dim { opacity: .35; }
.h-desc { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #cbd5e1; }

.popular-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pop-code {
    display: flex; align-items: center; gap: 10px; max-width: 100%;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08); color: #1e293b;
}
.pop-code:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.pop-code .c { color: #E51937; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pop-code .n { font-size: 13px; font-weight: 600; }
.pop-code .t { font-size: 11px; font-weight: 700; color: #64748b; background: #f8fafc; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

.explainer { display: flex; flex-direction: column; gap: 10px; }
.explainer-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.explainer-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; background: #fff; border: 0; text-align: left; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: #0f172a;
}
.explainer-q i { color: #E51937; transition: transform .2s; }
.explainer-a { display: none; padding: 0 18px 16px; font-size: 14px; line-height: 1.7; color: #334155; }
.explainer-item.open .explainer-a { display: block; }
.explainer-item.open .explainer-q i { transform: rotate(180deg); }

@media (max-width: 1100px) {
    .cpv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .cpv-page .portal-head { flex-direction: column; align-items: stretch; }
    .cpv-search { flex-wrap: wrap; padding: 12px; }
    .cpv-search input { flex: 1 1 100%; }
    .cpv-search .portal-btn, .cpv-sort { width: 100%; justify-content: center; }
    .cpv-hierarchy { padding: 22px 16px; }
}
@media (max-width: 640px) {
    .cpv-grid, .h-steps { grid-template-columns: 1fr; }
    .pop-code { width: 100%; }
    .pop-code .n { flex: 1; min-width: 0; }
}
