
/* ===== params 自身样式 ===== */
.params {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto);
    gap: 0 24px;
}
@media (max-width: 640px) {
    .params {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: auto;
    }
}
.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f1f1f4;
    font-size: 13px;
}
.param-row .k { color: #7c7a8a; }
.param-row .v {
    color: #14171e;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}
.param-row .v[data-fields] {
    cursor: pointer;
    position: relative;
    transition: color .15s;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 4px;
}
.param-row .v[data-fields]:hover {
    color: #6366f1;
    background: #eef0ff;
}
.param-row .v[data-fields]::after {
    content: '🔍';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0;
    transition: opacity .15s;
}
.param-row .v[data-fields]:hover::after { opacity: .6; }

/* ===== 同架构对比弹窗 ===== */
.saf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 30, .45);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: saf-fade .15s ease;
}
@keyframes saf-fade { from { opacity: 0; } to { opacity: 1; } }
.saf-modal-wrap {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    overflow: hidden;
    animation: saf-pop .18s ease;
}
@keyframes saf-pop {
    from { transform: translateY(8px) scale(.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.saf-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f1f4;
    font-size: 15px;
    font-weight: 600;
    color: #14171e;
    flex-shrink: 0;
}
.saf-modal-head .saf-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f1f4;
    border: none;
    font-size: 18px;
    color: #3a4256;
    cursor: pointer;
    line-height: 1;
    transition: all .15s;
}
.saf-modal-head .saf-close:hover {
    background: #eef0ff;
    color: #6366f1;
}
.saf-modal-body { padding: 18px 20px; overflow-y: auto; overflow-x: auto; }
.saf-modal { font-size: 13px; min-width: 400px; }
.saf-modal h4 {
    font-size: 13px;
    font-weight: 600;
    color: #3a4256;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.saf-modal h4 .count { font-weight: 400; color: #7c7a8a; font-size: 12px; }
.saf-modal .arch-tag {
    background: #eef0ff;
    color: #6366f1;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.saf-modal table { width: 100%; border-collapse: collapse; font-size: 13px; }
.saf-modal th, .saf-modal td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f1f4;
    white-space: nowrap;
}
.saf-modal th {
    background: #f1f1f4;
    font-weight: 600;
    color: #3a4256;
    font-size: 12px;
    position: sticky;
    top: 0;
}
.saf-modal th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background .15s, color .15s;
}
.saf-modal th.sortable:hover { background: #eef0ff; color: #6366f1; }
.saf-modal th.sortable.active { background: #eef0ff; color: #6366f1; }
.saf-modal th.sortable .sort-arrow {
    display: inline-block;
    margin-left: 4px;
    opacity: .8;
    font-weight: 700;
}
.saf-modal td.v { font-family: 'JetBrains Mono', monospace; color: #14171e; }
.saf-modal td.name { color: #3a4256; font-weight: 500; }
.saf-modal a.cpu-link {
    color: #3a4256;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: all .15s;
}
.saf-modal a.cpu-link:hover {
    color: #6366f1;
    border-bottom-color: #6366f1;
}
.saf-modal td.empty-row {
    text-align: center;
    color: #7c7a8a;
    padding: 24px;
    font-style: italic;
}
.saf-modal tr.current { background: #f0f9ff; }
.saf-modal tr.current td { color: #0071c5; font-weight: 600; }
.saf-modal tr.current td:first-child { border-left: 3px solid #0071c5; }
.saf-modal tr.current .cur-mark { color: #0071c5; margin-left: 4px; }
.saf-modal .empty { color: #7c7a8a; font-style: italic; }
.saf-modal .loading {
    padding: 40px 20px;
    text-align: center;
    color: #7c7a8a;
    font-size: 13px;
}
.saf-modal .tip {
    margin-top: 12px;
    font-size: 12px;
    color: #7c7a8a;
    padding-top: 10px;
    border-top: 1px dashed #f1f1f4;
}
@media (max-width: 480px) {
    .saf-modal { min-width: 0; }
    .saf-modal-wrap { max-width: 100%; }
    .saf-modal th, .saf-modal td { padding: 7px 8px; font-size: 12px; }
}
