﻿:root {
    --primary-blue: #007aff;
    --secondary-blue: #0051d5;
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafd;
    --text-primary: #1d1d1f;
    --text-secondary: #666b73;
    --border: #e5e8ee;
    --border-strong: #d9dee7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 10px 26px rgba(16, 24, 40, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--background);
}

[hidden] {
    display: none !important;
}

#compare-modal[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.cpu-topbar {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.cpu-topbar-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.topbar-main {
    min-width: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.top-compare-btn {
    border: 1px solid #c8daf5;
    border-radius: 999px;
    background: #f4f9ff;
    color: #1f527f;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
}

.top-compare-btn:hover {
    border-color: #b4ccf2;
    background: #eaf3ff;
}

.top-compare-btn.has-items {
    border-color: #8eb4ea;
    background: #e0edff;
    color: #153f67;
}

.top-compare-count {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #2a73c9;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 5px;
    line-height: 1;
}

.cpu-topbar h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.cpu-topbar p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.cpu-page {
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px 14px 14px;
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(640px, 1fr) minmax(320px, 430px);
    gap: 10px;
    height: calc(100vh - 78px);
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
    min-height: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    animation: panel-in 0.35s ease forwards;
}

.panel-left {
    animation-delay: 0.02s;
}

.panel-middle {
    animation-delay: 0.08s;
}

.panel-right {
    animation-delay: 0.14s;
    overflow: auto;
}

.panel-head {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    flex-shrink: 0;
}

.panel-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.panel-head-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.board-tabs {
    display: flex;
    gap: 6px;
}

.board-tab {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.board-tab:hover {
    border-color: #c9daf5;
    color: #24507d;
}

.board-tab.active {
    color: var(--secondary-blue);
    border-color: #cfe0ff;
    background: #edf5ff;
}

.panel-tools {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.panel-tools-middle {
    gap: 7px;
}

.value-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-tools label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.panel-tools input,
.panel-tools select {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel-tools input:focus,
.panel-tools select:focus {
    outline: none;
    border-color: #bad2f6;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.08);
}

.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.panel-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.panel-status {
    margin: 0;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid #f0d0d0;
    background: #fff4f4;
    color: #a12525;
    font-size: 12px;
    animation: msg-in 0.22s ease;
}

.panel-status.is-loading {
    border-color: #c9ddfb;
    background: #eff6ff;
    color: #1f4f82;
}

.left-product-list {
    margin: 0;
    padding: 10px;
    list-style: none;
    overflow: auto;
    min-height: 0;
}

.left-product-list li + li {
    margin-top: 7px;
}

.product-item-btn {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    text-align: left;
    cursor: pointer;
    padding: 8px 9px;
    transform: translateY(0);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.product-item-btn:hover {
    border-color: #c9daf5;
    background: #f7fbff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(32, 60, 100, 0.08);
}

.product-item-btn.active {
    border-color: #8fb7f1;
    background: #eef5ff;
    box-shadow: 0 8px 18px rgba(34, 86, 152, 0.14);
}

.product-item-btn.item-enter {
    opacity: 0;
    transform: translateY(8px);
    animation: item-in 0.24s ease forwards;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.product-match {
    margin-top: 3px;
    font-size: 12px;
    color: #22344b;
    line-height: 1.35;
}

.product-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-unmatched {
    color: #8b2b2b;
}

.product-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.favorite-badge {
    flex-shrink: 0;
    border: 1px solid #d9c477;
    border-radius: 999px;
    background: #fff8dc;
    color: #7a5a00;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
}

.mode-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mode-tab {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.mode-tab:hover {
    border-color: #c9daf5;
    color: #24507d;
}

.mode-tab.active {
    color: var(--secondary-blue);
    border-color: #cfe0ff;
    background: #edf5ff;
}

.rank-table-wrap {
    overflow: auto;
    min-height: 0;
    flex: 1;
    padding: 0 10px 10px;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.rank-table th,
.rank-table td {
    border-bottom: 1px solid var(--border);
    padding: 7px 6px;
    text-align: left;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: top;
}

.rank-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface-soft);
    font-weight: 700;
}

.rank-table tbody tr {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.rank-table tbody tr:hover {
    background: #f7fbff;
}

.rank-table tbody tr.active {
    background: #edf5ff;
    animation: active-pulse 0.25s ease;
}

.rank-table tbody tr.row-enter {
    opacity: 0;
    transform: translateY(6px);
    animation: item-in 0.2s ease forwards;
}

.col-rank {
    width: 66px;
}

.col-score {
    width: 110px;
}

.col-price {
    width: 104px;
}

.col-ratio {
    width: 150px;
}

.rank-name {
    font-weight: 600;
    color: #172942;
}

.rank-name-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rank-name-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.rank-compare-btn {
    flex-shrink: 0;
    border: 1px solid #d4e2f7;
    border-radius: 999px;
    background: #f6faff;
    color: #2b5f93;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.rank-compare-btn:hover {
    border-color: #b9d2f4;
    background: #eaf3ff;
}

.rank-compare-btn.active {
    border-color: #95b8ea;
    background: #dfecff;
    color: #1b4a77;
}

.rank-score-na {
    color: var(--text-secondary);
}

.value-param-cell,
.value-price-cell,
.value-ratio-cell {
    color: #20354f;
}

.value-price-cell {
    white-space: nowrap;
    font-weight: 700;
}

.value-ratio-cell {
    white-space: nowrap;
}

.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.region-link-chip {
    border: 1px solid #d8e5f7;
    border-radius: 999px;
    background: #f4f8ff;
    color: #2d5885;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.region-link-chip:hover {
    border-color: #bdd3f2;
    background: #eaf3ff;
}

.region-link-chip.has-multi {
    padding-right: 6px;
}

.region-chip-count {
    margin-left: 4px;
    border-radius: 999px;
    background: #dcecff;
    color: #214d78;
    padding: 1px 5px;
    font-size: 10px;
}

.region-more-chip {
    border: 1px dashed #c8daef;
    border-radius: 999px;
    background: #fbfdff;
    color: #5a7592;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8e5f7;
    border-radius: 999px;
    background: #f4f8ff;
    color: #40648b;
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
}

.rank-more-wrap {
    display: none !important;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    flex-shrink: 0;
    justify-content: center;
}

.rank-more-btn {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: #234f7e;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    transition: all 0.16s ease;
}

.rank-more-btn:hover {
    border-color: #b8d0f7;
    background: #edf5ff;
}

.detail-empty {
    margin: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

#detail-content {
    padding: 10px 12px 14px;
}

.detail-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-action-btn {
    border: 1px solid #c9dcf8;
    border-radius: 999px;
    background: #f3f9ff;
    color: #245f93;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.detail-action-btn:hover {
    border-color: #b2cef5;
    background: #e9f3ff;
}

.detail-action-btn.active {
    border-color: #d5b96a;
    background: #fff5d8;
    color: #6a4f00;
}

.detail-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.detail-compare-btn {
    border: 1px solid #c9dcf8;
    border-radius: 999px;
    background: #f3f9ff;
    color: #245f93;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.detail-compare-btn:hover {
    border-color: #b2cef5;
    background: #e9f3ff;
}

.detail-compare-btn.active {
    border-color: #97bbea;
    background: #ddebff;
    color: #16456e;
}

.detail-compare-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.detail-section-top {
    margin-top: 10px;
}

.detail-metrics {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 7px;
}

.metric-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 8px;
    background: #fbfdff;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.metric-box:hover {
    transform: translateY(-1px);
    border-color: #c8daf5;
}

.metric-k {
    font-size: 11px;
    color: var(--text-secondary);
}

.metric-v {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #172942;
}

.detail-section {
    margin-top: 12px;
}

.detail-section h4 {
    margin: 0 0 7px;
    font-size: 14px;
}

.same-rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.same-rank-title {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.same-rank-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 12px;
    max-height: 214px;
    overflow: auto;
}

.same-rank-list li {
    margin-bottom: 4px;
    line-height: 1.3;
}

.same-rank-list li.current {
    color: var(--secondary-blue);
    font-weight: 700;
}

.detail-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 7px;
}

.kv-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 8px;
    background: #fff;
}

.kv-k {
    font-size: 11px;
    color: var(--text-secondary);
}

.kv-v {
    margin-top: 2px;
    font-size: 12px;
    color: #1c304b;
    word-break: break-word;
}

.compare-count {
    border: 1px solid #d4e4fa;
    border-radius: 999px;
    background: #f3f8ff;
    color: #36628c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
}

.compare-chip-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d5e4f8;
    border-radius: 999px;
    background: #f8fbff;
    color: #284d75;
    font-size: 12px;
    line-height: 1;
    padding: 5px 8px;
}

.compare-chip button {
    border: 0;
    background: transparent;
    color: #5d7ea2;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

.compare-chip button:hover {
    color: #194a79;
}

.compare-clear-btn {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: #315a87;
    font-size: 12px;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.compare-clear-btn:hover {
    border-color: #bad0f3;
    background: #eef5ff;
}

.compare-share-btn {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: #315a87;
    font-size: 12px;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.compare-share-btn:hover {
    border-color: #bad0f3;
    background: #eef5ff;
}

.compare-share-btn.success {
    border-color: #99c4b2;
    background: #edf9f4;
    color: #1e6a4d;
}

.compare-table-wrap {
    margin-top: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: auto;
    background: #fff;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.compare-table th,
.compare-table td {
    border-bottom: 1px solid var(--border);
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-soft);
    z-index: 1;
}

.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-metric {
    width: 126px;
    color: #3e5165;
    font-weight: 600;
    background: #fbfcff;
}

.compare-cpu-name {
    color: #163250;
    font-weight: 700;
    min-width: 160px;
}

.compare-best {
    color: #b42318;
    font-weight: 700;
    background: #fff3f2;
}

.compare-best-note {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f2c5c2;
    border-radius: 999px;
    background: #fff;
    color: #b42318;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
    vertical-align: middle;
    white-space: nowrap;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.compare-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 22, 39, 0.42);
}

.compare-modal-dialog {
    position: relative;
    width: min(1280px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 16px 46px rgba(16, 24, 40, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: panel-in 0.2s ease;
}

.compare-modal-head {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.compare-modal-head h3 {
    margin: 0;
    font-size: 16px;
}

.compare-modal-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-modal-close {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: #2d567f;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.compare-modal-close:hover {
    border-color: #bad0f3;
    background: #eef5ff;
}

.compare-modal-body {
    padding: 10px 12px 12px;
    overflow: auto;
}

.compare-modal-empty {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.empty-row td {
    color: var(--text-secondary);
    text-align: center;
    padding: 14px 10px;
}

@keyframes panel-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes item-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes active-pulse {
    0% {
        box-shadow: inset 0 0 0 rgba(0, 122, 255, 0);
    }
    50% {
        box-shadow: inset 0 0 0 9999px rgba(0, 122, 255, 0.04);
    }
    100% {
        box-shadow: inset 0 0 0 rgba(0, 122, 255, 0);
    }
}

@keyframes msg-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1460px) {
    .cpu-page {
        grid-template-columns: minmax(250px, 300px) minmax(580px, 1fr) minmax(290px, 360px);
    }
}

@media (max-width: 1180px) {
    .cpu-page {
        grid-template-columns: 1fr;
        height: auto;
    }

    .panel {
        min-height: 340px;
    }

    .panel-left,
    .panel-middle,
    .panel-right {
        max-height: none;
    }

    .same-rank-grid {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-compare-btn {
        width: auto;
    }

    .detail-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-actions .detail-action-btn,
    .detail-actions .detail-compare-btn {
        flex: 1;
        justify-content: center;
    }

    .board-tabs {
        flex-wrap: wrap;
    }

    .cpu-topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .compare-modal {
        padding: 8px;
    }

    .compare-modal-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .compare-modal-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .compare-modal-head-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .cpu-topbar-inner {
        padding: 10px 10px;
    }

    .cpu-topbar h1 {
        font-size: 19px;
    }

    .cpu-page {
        padding: 8px 10px 12px;
        gap: 8px;
    }

    .panel {
        min-height: 0;
    }

    .panel-head {
        padding: 9px 10px;
    }

    .panel-head h2 {
        font-size: 15px;
    }

    .panel-tools {
        padding: 9px 10px;
        gap: 7px;
    }

    .left-product-list {
        padding: 8px;
        max-height: 42vh;
    }

    .rank-table-wrap {
        padding: 0 8px 8px;
        max-height: 52vh;
    }

    #detail-content {
        padding: 9px 10px 12px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-kv-grid {
        grid-template-columns: 1fr;
    }

    .compare-modal-head h3 {
        font-size: 15px;
    }

    .compare-modal-body {
        padding: 8px 10px 10px;
    }
}

@media (max-width: 680px) {
    .cpu-topbar-inner {
        padding: 8px;
    }

    .cpu-topbar h1 {
        font-size: 17px;
    }

    .cpu-topbar p {
        font-size: 11px;
    }

    .cpu-page {
        padding: 6px 8px 10px;
        gap: 7px;
    }

    .topbar-actions {
        justify-content: flex-start;
    }

    .top-compare-btn {
        min-height: 34px;
        padding: 7px 10px;
    }

    .panel-head-middle {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-tabs {
        width: 100%;
    }

    .board-tab {
        flex: 1;
        min-height: 34px;
    }

    .mode-tabs {
        width: 100%;
    }

    .mode-tab {
        flex: 1;
        min-height: 34px;
    }

    .tool-row {
        grid-template-columns: 1fr;
    }

    .value-tools {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .value-tools label {
        font-size: 11px;
    }

    .panel-tools input,
    .panel-tools select {
        min-height: 36px;
        font-size: 13px;
    }

    .rank-table {
        min-width: 620px;
    }

    .rank-table th,
    .rank-table td {
        padding: 6px 5px;
        font-size: 11px;
    }

    .col-rank {
        width: 56px;
    }

    .col-score {
        width: 96px;
    }

    .col-price {
        width: 94px;
    }

    .col-ratio {
        width: 128px;
    }

    .rank-more-wrap {
        padding: 7px 8px;
    }

    .rank-more-btn {
        width: 100%;
        min-height: 34px;
    }

    .detail-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .same-rank-list {
        max-height: 160px;
    }

    .compare-modal {
        padding: 6px;
    }

    .compare-modal-dialog {
        width: calc(100vw - 12px);
        max-height: calc(100vh - 12px);
    }

    .compare-modal-head-actions {
        justify-content: flex-start;
    }

    .compare-modal-head-actions > * {
        flex-shrink: 0;
    }

    .compare-share-btn,
    .compare-clear-btn,
    .compare-modal-close {
        min-height: 32px;
    }

    .compare-table {
        min-width: 520px;
    }

    .compare-table th,
    .compare-table td {
        padding: 6px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cpu-page {
        padding: 6px 6px 10px;
    }

    .panel-head,
    .panel-tools {
        padding-left: 8px;
        padding-right: 8px;
    }

    .left-product-list {
        max-height: 40vh;
        padding: 7px;
    }

    .product-item-btn {
        padding: 7px 8px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-match,
    .product-meta {
        font-size: 11px;
    }

    .detail-metrics {
        grid-template-columns: 1fr;
    }

    .compare-count {
        padding: 4px 7px;
    }
}
